CN116489056A - Intelligent gateway production test method and system and intelligent gateway - Google Patents

Intelligent gateway production test method and system and intelligent gateway Download PDF

Info

Publication number
CN116489056A
CN116489056A CN202310460413.7A CN202310460413A CN116489056A CN 116489056 A CN116489056 A CN 116489056A CN 202310460413 A CN202310460413 A CN 202310460413A CN 116489056 A CN116489056 A CN 116489056A
Authority
CN
China
Prior art keywords
test
software
intelligent gateway
production
merchant
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.)
Pending
Application number
CN202310460413.7A
Other languages
Chinese (zh)
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 CN202310460413.7A priority Critical patent/CN116489056A/en
Publication of CN116489056A publication Critical patent/CN116489056A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application relates to the field of intelligent gateways and discloses an intelligent gateway production test method, an intelligent gateway production test system and an intelligent gateway. The method comprises the following steps: storing production testing software and merchant software in a main memory of an intelligent gateway, and carrying out digital signature on the production testing software and the merchant software to set a safety verification function; the production testing software comprises a plurality of target functional modules, and each target functional module corresponds to one test item; sequentially running test items corresponding to each target functional module through production testing software, and recording the total test times; if the test results corresponding to all the test items meet the preset conditions and the total test times are smaller than the preset threshold, deleting the test software and starting the safety verification function. According to the method and the device for testing the software, the production testing software and the merchant software can be respectively and independently arranged in the intelligent gateway, the production testing software is deleted after the test is passed, and technical leakage caused by technical communication of manufacturers at two sides is avoided when only one set of software is designed.

Description

Intelligent gateway production test method and system and intelligent gateway
Technical Field
The application relates to the field of intelligent gateways, in particular to an intelligent gateway production test method, an intelligent gateway production test system and an intelligent gateway.
Background
In the field of design and manufacture of intelligent gateways, there are two common cooperation modes due to the cross complexity of software and hardware of the intelligent gateway: 1) OEM merchants are responsible for all development and design of factory software and production and manufacture auxiliary software, and comprehensively participate in abnormal problem analysis and treatment in the production and manufacture process. ODM manufacturers may offer production test designs, but must ultimately be implemented in owned software by OEM merchants; 2) The OEM merchant only puts forward the intelligent gateway requirement specification, and gives the software and hardware design production to the ODM manufacturer, and the ODM manufacturer is responsible for the production and manufacture.
However, most OEM merchants need to guarantee their own core software technology, and thus only delegate the manufacturing component to the ODM manufacturer, thus deriving a partnership model between ODM and OEM. However, at this time, there is a technical obstacle for the co-production of the smart gateway OEM merchant and the ODM manufacturer: the existing intelligent gateway software generally only has one set of software system, the set of software is researched and developed by OEM merchants or entrusted to ODM manufacturers, the cooperators are completely independent research and development entities, even have competition relation, the cooperators are prevented from cooperatively researching and developing the same intelligent gateway, the time-consuming and labor-consuming low-efficiency deep technology cooperation mode is adopted, the concern of core technology leakage exists for the cooperators, and the expectations of the cooperators cannot be well met.
When the OEM merchant needs to develop the intelligent gateway software by itself, the general production mode is that the OEM merchant integrates production test related instructions in the corresponding software of the intelligent gateway according to the requirements of the ODM manufacturer, and the production instructions are called by the manufacturer in the manufacturing process so as to generate device uniqueness related data and verify the test gateway hardware, and timely discover hardware related defects. The software developed by the OEM merchant has very strict requirements on equipment safety, because the network equipment can bring huge loss to the OEM merchant once being attacked, the data of the software needs to be highly secret, the data can form an obstacle to the integration of the production test function, the development and the execution of the production test function are not the specialty of the OEM merchant, the integration of the production test related function into the OEM merchant software can be complex, and meanwhile, the cooperation difficulty and the cost are very great due to the technical barriers, the technical trust and the like of the two parties.
Disclosure of Invention
In view of the above, in order to solve the defects in the prior art, the embodiments of the present application provide an intelligent gateway production test method, system and intelligent gateway.
In a first aspect, the present application provides a method for testing intelligent gateway production, the method comprising:
storing production testing software and merchant software in a main memory of an intelligent gateway, and carrying out digital signature on the production testing software and the merchant software to set a safety verification function; the production testing software comprises a plurality of target functional modules, and each target functional module corresponds to one test item;
sequentially running test items corresponding to the target function modules through the production test software, and recording test failure times of the same test item;
if the test failure times of all the test items are smaller than a preset threshold value, determining that the intelligent gateway passes the test, deleting the test software, and starting the safety verification function.
In an alternative embodiment, the process of storing the software includes:
presetting a plurality of test items of the intelligent gateway; each test item corresponds to a function to be tested;
acquiring a command sequence corresponding to each test item for controlling operation;
encapsulating the command sequences belonging to the same test item to generate a functional module;
and selecting corresponding target function modules from all the function modules according to a demand instruction sent by a user, combining and packaging the function modules to generate production testing software, and storing the production testing software to a preset position of a main memory in the intelligent gateway.
In an optional implementation manner, the running, by the production testing software, test items corresponding to the target function modules sequentially includes:
receiving a test instruction, wherein the test instruction is used for indicating a target functional module which is required to be operated currently;
and according to the test instruction, running a command sequence in the corresponding target functional module through the production test software, and returning a test result.
In an alternative embodiment, said digitally signing said product testing software and said merchant software comprises:
obtaining jump control logic of the production test software, wherein the jump control logic comprises a jump address of a test guide used for executing a command sequence in the production test software;
and combining the jump control logic, the merchant software and an encryption key of a data writing area in the intelligent gateway to generate a digital signature.
In an alternative embodiment, the method further comprises:
if the test item fails to be tested, adjusting parameters corresponding to the test item, and rerun the test item corresponding to the target functional module until the test item is successfully tested or the test failure times are greater than or equal to the preset threshold.
In an alternative embodiment, the method further comprises:
and if the number of test failures of any one of the test items is greater than or equal to the preset threshold value, terminating the test.
In an alternative embodiment, the method further comprises:
marking the state of the intelligent gateway with the safety verification function as a factory qualified state;
marking the state of the intelligent gateway which does not pass the test as a factory return repair state; the failed test comprises at least one test item with the number of test failures greater than or equal to the preset threshold.
In a second aspect, the present application provides an intelligent gateway production test system, comprising:
the software configuration module is used for storing the production testing software and the merchant software in a main memory of the intelligent gateway and carrying out digital signature on the production testing software and the merchant software so as to set a safety verification function; the production testing software comprises a plurality of target functional modules, and each target functional module corresponds to one test item;
the test module is used for sequentially running test items corresponding to the target function modules through the production test software and recording the test failure times of the same test item;
and the verification starting module is used for determining that the intelligent gateway passes the test if the test failure times of all the test items are smaller than a preset threshold value, deleting the production test software and starting the safety verification function.
In a third aspect, the present application provides an intelligent gateway comprising a memory storing a computer program and at least one processor for executing the computer program to implement the aforementioned intelligent gateway production test method.
In a fourth aspect, the present application provides a computer readable storage medium storing a computer program which, when executed, implements an intelligent gateway production test method according to the foregoing.
The embodiment of the application has the following beneficial effects:
according to the embodiment of the application, the production testing software and the merchant software are configured in the main memory of the intelligent gateway, and digital signatures are carried out on the production testing software and the merchant software so as to set a safety verification function; the production testing software comprises a plurality of target functional modules, and each target functional module corresponds to one test item; sequentially running test items corresponding to each target functional module through production test software, and recording test failure times of the same test item; if the test failure times of all the test items are smaller than a preset threshold value, determining that the intelligent gateway passes the test, deleting the test software, and starting the safety verification function. According to the embodiment of the application, the production testing software and the merchant software can be respectively and independently arranged in the intelligent gateway, and the production testing software is deleted after the test is passed, so that the functional requirements of merchants and ODM manufacturers are realized through two sets of independent software, the problems of technical leakage, low communication efficiency and the like caused by technical communication between the two parties when the two functional requirements are realized through one set of software are avoided, and the safety and the high efficiency of cooperation between the two parties are improved; in addition, the technical cooperation flow between the merchant and the ODM manufacturer is simplified, so that the two parties adopt own software of each party, and the mutual restriction between software codes is reduced; in addition, the embodiment of the application also prevents the data inside the intelligent gateway from being tampered by a third party by starting the safety verification function, and improves the safety of the data and the reliability of the intelligent gateway.
Drawings
In order to more clearly illustrate the technical solutions of the present application, the drawings that are required for the embodiments will be briefly described, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope of protection of the present application. Like elements are numbered alike in the various figures.
Fig. 1 is a schematic diagram of a first implementation of a smart gateway testing method in an embodiment of the present application;
FIG. 2 is a schematic diagram of a second implementation of the intelligent gateway testing method in an embodiment of the present application;
FIG. 3 is a schematic diagram of a third implementation of the smart gateway testing method in an embodiment of the present application;
fig. 4 shows a schematic structural diagram of the intelligent gateway test system in the embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments.
The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, are intended to be within the scope of the present application.
In the following, the terms "comprises", "comprising", "having" and their cognate terms may be used in various embodiments of the present application are intended only to refer to a particular feature, number, step, operation, element, component, or combination of the foregoing, and should not be interpreted as first excluding the existence of or increasing the likelihood of one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and should not be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of this application belong. The terms (such as those defined in commonly used dictionaries) will be interpreted as having a meaning that is identical to the meaning of the context in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in connection with the various embodiments.
Currently, OEMs (i.e., original Equipment Manufacturer, original equipment manufacturers) and ODMs (Original Design Manufacturer, original design manufacturers) are two common design and manufacturing collaboration modes. OEM refers to the production of a support from an external manufacturer according to the requirements and authorizations of the original manufacturer and according to specific conditions. While ODM (Original Design Manufacturer) refers to a manufacturer designing and producing an intelligent gateway according to the specifications and requirements of another manufacturer and requiring the latter to be matched with the brand name for sale.
In view of the technical divergence between the OEM merchants (hereinafter referred to as merchants) and their commissioned manufacturers (ODM manufacturers) in the production process of the intelligent gateway, the design cooperation also means that the two parties need a great deal of time coordination, communication and compromise, and excessive technical communication among different research and development groups seriously hampers the progress of designing and manufacturing the intelligent gateway, so that an efficient and low-cost scheme is needed to reduce the discussion of unnecessary technical details as much as possible, and the mutual assistance and mutual trust of the two parties in the technical field are promoted.
Further, merchants should concentrate on the development and design of the intelligent gateway software itself, but entrust gateway hardware development design and manufacturing processes to professional gateway manufacturing enterprises, not disperse efforts to add software functions related to production test into own factory software, not need to understand production test details, and not need to analyze and locate various problems occurring in the production test process. The manufacturer should not be limited by the merchant software in order to develop intelligent gateway test software which is beneficial to the production test, and can rapidly analyze and locate various abnormal conditions in the production process without communicating with the merchant to reduce the technical dependence on the merchant.
Based on the above, the embodiment of the application provides an intelligent gateway production test method, so as to solve the problems of high production cost and low production efficiency caused by technical divergence between merchants and manufacturers in the production and delivery test processes of the intelligent gateway.
According to the embodiment of the application, two sets of completely independent software are stored in the same intelligent gateway, merchants are only responsible for development and design of intelligent gateway performance software, production and manufacture auxiliary software development and design are all entrusted to ODM manufacturers together with hardware, and the ODM manufacturers directly and rapidly process various abnormal problems encountered in the manufacturing process, so that the intelligent gateway is produced in a loose cooperation mode, the cooperation parties do not involve leakage of respective technical secrets, the efficiency is high, the labor cost is low, and the cooperation feasibility is greatly enhanced. According to the method and the device, when the intelligent gateway or the equipment containing the intelligent gateway is produced, software of both a merchant and an ODM manufacturer can be stored in the intelligent gateway storage, and when the intelligent gateway or the equipment containing the intelligent gateway is determined to be capable of being delivered and circulated, the software of production and measurement configured by the ODM manufacturer is cleared; in addition, the embodiment of the application also modularizes the production test software, realizes flexible transplanting among different SoC (system-on-a-chip) architectures, reduces development cost and improves the consistency of the production process of the intelligent gateway.
In view of this, the embodiments of the present application provide an intelligent gateway production test method, which may be applied to an intelligent gateway or a device including the intelligent gateway, for example, the device may be an intelligent gateway router, etc., and is not limited herein. In this embodiment, merchant software and product testing software are stored in the main memory of the intelligent gateway respectively and independently so as to meet the requirements of merchants and ODM manufacturers, wherein related codes of the merchant software are not changed, so that two sets of software are stored in the intelligent gateway in a merging way for subsequent production, the product testing software is deleted after the intelligent gateway is produced, and only normal software codes corresponding to the merchant software are reserved, so that technical cooperation processes between the merchant and the ODM manufacturers are simplified, the two parties adopt own software, the mutual restriction between software codes is reduced, and the problems of technical leakage, low communication efficiency and the like caused by technical communication between the two parties are avoided when the two functional requirements are realized by one set of software, and the safety and the high efficiency of cooperation between the two parties are improved.
Referring to fig. 1, the method is described in detail below.
S10, storing the production testing software and the merchant software in a main memory of the intelligent gateway, and carrying out digital signature on the production testing software and the merchant software to set a safety verification function.
The created production test software and merchant software are correspondingly stored in a main memory of the intelligent gateway, wherein the production test software is designed by an ODM manufacturer, and the merchant software is designed by an intelligent gateway merchant (namely a merchant), so that the cooperative looseness between the ODM manufacturer and the merchant is realized by matching two different software, the problem of technical leakage between the ODM manufacturer and the merchant is avoided, and the production efficiency of the intelligent gateway is improved. Specifically, a code segment corresponding to the merchant software is stored in a preset position of a main memory in the intelligent gateway, and then a relevant code of the production software is inserted into the merchant software code segment.
The production test software comprises a plurality of combined target functional modules, each target functional module corresponds to one test item, and further, the test of the corresponding test item can be realized by sequentially running each target functional module. That is, the relevant test items required to be tested of the intelligent gateway are integrated into one functional module one by one, and then the required target functional modules can be selected from the functional modules to be combined according to actual test requirements, so that the production test software of the intelligent gateway is correspondingly generated.
It can be understood that the intelligent gateway has different required performances, and the adaptation and the generated software are also different, and each software is used for correspondingly testing the function of the intelligent gateway, so that the correspondence and the adaptation exist between the software and the intelligent gateway. The intelligent gateway produced according to different requirements is not identical in the configured software.
Further, after the production testing software and the merchant software are configured, digital signature is carried out on the production testing software and the merchant software, and then the security verification function of the intelligent gateway is correspondingly generated through the digital signature; the security check function can be started later so that the data in the intelligent gateway is not tampered by a third party, and the data security of the intelligent gateway is improved.
In this embodiment, digital signatures are used to ensure that the code segments in main memory are not falsified. The merchant digitally signs the code segment corresponding to the software product, i.e., the code segment that indicates that the merchant approves the inserted software product. In this embodiment, the code segment stored in the intelligent gateway main memory can be checked by digital signature later, if the inserted code segment fails to be checked by digital signature or digital signature, the code is a forged or tampered code by a third party; therefore, the embodiment can avoid unsafe factors caused by inserting the unrecognized code segments by a third party through digital signature, and improves the data security of the intelligent gateway; in addition, unauthorized code, if inserted, may be discovered without the digital signature or with a digital signature verification failure, disabling the code from running.
As an alternative implementation, as shown in fig. 2, the storage process of the product testing software in the embodiment of the present application includes the following steps:
s41, presetting a plurality of test items of the intelligent gateway.
S42, acquiring a command sequence corresponding to each test item for controlling operation.
S43, packaging the command sequences belonging to the same test item to generate a functional module.
S44, selecting corresponding target function modules from all the function modules according to the demand instructions sent by the user, combining and packaging the target function modules to generate production testing software, and storing the production testing software to a preset position of a main memory in the intelligent gateway.
For example, according to all the performances that the intelligent gateway can possess, all the test items that the intelligent gateway may operate are preset accordingly, each test item corresponds to a function to be tested in the intelligent gateway, and the intelligent gateway is also provided with a command sequence required for controlling each test item to operate. And packaging the test command corresponding to each test item to generate the functional module corresponding to the test item. Subsequently, according to a demand instruction (or a design demand of a merchant) sent by a user, a function module corresponding to the intelligent gateway can be selected as a target function module, each target function module is combined and packaged to generate production test software, and the production test software is stored in a preset position of a main memory of the intelligent gateway, so that the intelligent gateway can be conveniently tested according to the production test software. The preset position may be set according to actual requirements, which is not limited herein.
Optionally, in the embodiment of the present application, a command sequence corresponding to a test item required for controlling operation may be directly obtained directly according to a user's requirement, and the command sequence is packaged as a target functional module, so as to generate production testing software.
In one embodiment, as shown in fig. 3, the process of "digitally signing the product testing software and the merchant software" in the embodiment of the present application specifically includes the following steps:
s51, obtaining jump control logic of the production test software.
S52, combining the jump control logic, merchant software and an encryption key of a data writing area in the intelligent gateway to generate a digital signature.
And generating the test software in the intelligent gateway, and correspondingly storing the jump control logic of the test software when the test software is stored in the memory, wherein the jump control logic comprises the jump address of the test guide used for executing the command sequence in the test software.
To prevent the intelligent gateway from being attacked or hijacked maliciously after leaving the factory, special encryption processing needs to be performed on the jump address logic, and any jump address encryption block and jump address which are illegally modified are easily found and ignored by the internal control system of the intelligent gateway. Specifically, the jump control logic, merchant software, and encryption keys of the data writing area in the intelligent gateway are combined to generate a digital signature. The code segments stored in the main memory of the intelligent gateway can be checked later through the generated digital signature.
When the intelligent gateway starts, if the jump address of the test director of the generating software is found to be a legal address (namely, the jump address of the test director is a pre-encrypted jump address), the intelligent gateway can jump to the address immediately. The production test software and the merchant software are mutually independent, and can adapt to various intelligent gateways only by simple transplanting.
S20, sequentially running test items corresponding to each target functional module through the production test software, and recording the test failure times of the same test item.
After the encryption of the production test software and the merchant software is completed, the ODM manufacturer tests the intelligent gateway through the production test software.
The intelligent gateway is externally connected with a controller, and the controller is used for correspondingly controlling the starting of the production testing software, so that the test items corresponding to each target functional module can be sequentially operated. The controller may be any device or apparatus having a control function, and is not limited herein.
Further, receiving a test instruction from the controller, wherein the test instruction is used for indicating a target functional module which is required to be operated currently; and according to the test instruction, running a command sequence in the corresponding target functional module through the production test software, and returning a test result. In the process, the corresponding test failure times when the intelligent gateway runs each target functional module for testing are also recorded.
It will be appreciated that each target functional module may be sequentially operated, the operation sequence thereof may be preset or selected by the controller, and the specific operation sequence setting manner thereof is specifically set according to the requirement, which is not limited herein. In addition, the test success conditions corresponding to each test item are specifically set according to the requirements, and are not limited herein. If the test result of any test item is determined not to meet the corresponding test success condition, determining that the test item fails in test, and recording the number of test failures.
And S30, if the test failure times of all the test items are smaller than a preset threshold value, determining that the intelligent gateway passes the test, deleting the test software, and starting a safety verification function.
In this embodiment, if all the test items corresponding to all the target functional modules are completed and the test results of all the test items meet the corresponding test success conditions, that is, the number of test failures for completing all the test items is smaller than the preset threshold, it is indicated that the intelligent gateway has completed the production test and can be shipped for use.
Further, if the test result corresponding to at least one test item does not meet the corresponding test success condition, namely the test fails, recording the test failure times, adjusting the parameters corresponding to the test item, and rerun the test item corresponding to the corresponding target functional module until the test result corresponding to the test item meets the test success condition or the test failure times are equal to the preset threshold.
It can be understood that if the test result of a certain test item fails, the test item is repeatedly tested by adjusting the production parameters related to the test item in the intelligent gateway until the pass or test failure times of the test item reach a preset threshold value, so that the function corresponding to the test item is successfully operated and perfected within the preset threshold value range corresponding to the test failure times of each test item, thereby improving the delivery reliability of the intelligent gateway; and if the test failure frequency of any one test item is greater than or equal to a preset threshold value, terminating the test.
Further, if the intelligent gateway passes through all the test items within a preset threshold range corresponding to the test failure times of all the test items, the intelligent gateway is controlled to delete the production test software and activate the safety verification function, so that a third party cannot privately tamper the data in the intelligent gateway when the intelligent gateway is used in a follow-up factory, and the data safety in the intelligent gateway is ensured. And then, marking the state of the intelligent gateway with the safety verification function as a factory qualified state.
Otherwise, if the intelligent gateway fails to pass through all the test items within the preset threshold range corresponding to the test failure times of all the test items, marking the state of the intelligent gateway which fails to pass through the test as a factory return repair state, and subsequently carrying out factory return repair work on the intelligent gateway; that is, the failed test includes that the test result corresponding to at least one test item does not satisfy the preset condition, and/or the total number of tests is greater than or equal to a preset threshold.
The following is illustrated in one specific scenario. After the intelligent gateway hardware is assembled, the intelligent gateway hardware is put into a production test board, the controller can sequentially execute all target function modules according to a set program, after one target function module is selected, the controller invokes a command sequence related to the target function module, the command sequence is used for completing power-on, starting a peripheral test controller, connecting a network cable, inserting external equipment, configuring LED light sensation parameters and the like, further, the controller invokes a command interface of corresponding functions of the intelligent gateway end, such as touching keys and the like to correspondingly configure sensor and test instrument parameters, and then starts test items of the target function module, such as reading a measuring instrument, reading command return values of the intelligent gateway end, reading light sensation data and the like. And analyzing the test data returned to the controller by the intelligent gateway, judging whether the test item passes or not, entering the next round of test item if the result of the test item reaches the standard, otherwise, readjusting the relevant parameters of the intelligent gateway, retesting until the result reaches the standard, writing the adjusted parameters back into the intelligent gateway, and retaining the test result data.
In some extreme cases, when quality problems such as element failure, unstable welding and the like of the intelligent gateway occur, legal results cannot be generated in the set times by the round of testing, and then test process data are recorded for manual analysis and solution, and corresponding failure of testing the target functional module is reported. Only after all test items of each target functional module are qualified, the controller can call the self-deleting interface of the software under test in the intelligent gateway, and erase relevant codes of the software under test in the memory chip, thereby saving occupied space and erasing traces. And finally, starting a safety verification function to enable the intelligent gateway to reach a delivery qualified state.
In the embodiment of the application, the test items of the related functions related to the production test software are modularized, so that the corresponding proper production test software can be quickly formed by recombination according to the performance requirement of a specific intelligent gateway of a specific merchant, the production test software can perfectly coexist with the merchant software in the production and manufacturing stage, and the production test software of the intelligent gateway always maintains relative stability. In addition, the method and the device have the advantages that the recombinability design is carried out for adapting to different intelligent gateways, so that an ODM manufacturer can quickly recombine the module production of the intelligent gateway production test software under the condition that too much technical communication with a merchant is not needed, and the design and the manufacturing progress of the intelligent gateway are quickened; in addition, the embodiment of the application realizes the function of customizing the production testing software for the intelligent gateway of all merchants, instead of only providing the rough production testing requirement to be automatically realized by various merchants, thereby ensuring the maturity and the reliability of the function of the intelligent gateway.
Furthermore, the merchant almost does not need to consider the related content of manufacturing, the merchant software of the intelligent gateway can be designed and developed, the ODM manufacturer does not need to have too much communication with the merchant technically, the two parties are not mutually restricted, the two parties are respectively focused on the respective professional fields, and finally the two party software are freely combined and burnt into the memory of the intelligent gateway.
In addition, the production test software has great flexibility in design, can not be blocked due to insufficient security trust of merchants, ODM manufacturers are well known about the functional details of own software, and can automatically analyze deep reasons and rapidly take corresponding solving measures when an intelligent gateway finds abnormal conditions on a production line, rather than waiting for the service support of merchant technicians. ODM manufacturers provide cooperation guidance for maturity and stability of merchants, merchants do not need to know the production and test related technology and have no redundant technical communication barriers, and can keep factory software of the merchants intact, implant own software codes related to manufacturing and generate data for producing burning software. The two sets of software do not interfere with each other and coexist in harmony when the intelligent gateway is produced, and test related data codes are wiped off without reservation after the subsequent test is finished. ODM manufacturer can control the combination of production survey function and develop alone, consequently, this application can realize in the high automation of production manufacturing process, intelligent, makes intelligent gateway's production survey software retrench high-efficient, occupation space is little simultaneously, inserts in the inside free storage area very easily, can not cause the influence to merchant's software's storage structure.
In order to prevent stored data in the intelligent gateway from being tampered maliciously after leaving a factory in a complex internet environment, the intelligent gateway is illegally upgraded or a memory of the intelligent gateway is re-burned without authorization, and a very strong memory data validity verification function (namely the safety verification function) is adopted in the method. The intelligent gateway activates the security check function after the test is completed. Because key data such as a root certificate is stored in a one-time programming area (OTP) of the SoC, once the root certificate is written, the OTP area of the SoC cannot be changed again, and the root certificate is used for a series of certificate chain authentication later, any data which is not signed by a legal method cannot be identified, so that the data stored in the intelligent gateway memory must be approved by the legitimacy of the intelligent gateway SoC chip to be started for use. The security check function can ensure the legitimacy of the merchant software and the intelligent gateway production test software and eliminate the possibility of running any unlicensed codes.
Referring to fig. 4, an embodiment of the present application further provides an intelligent gateway testing system, where the system includes:
the software configuration module 100 is configured to store the product testing software and the merchant software in a main memory of the intelligent gateway, and digitally sign the product testing software and the merchant software to set a security check function; the production testing software comprises a plurality of target functional modules, and each target functional module corresponds to one test item;
the test module 200 is configured to sequentially run test items corresponding to the target function modules through the production test software, and record test failure times of the same test item;
and the verification enabling module 300 is configured to determine that the intelligent gateway passes the test if the test failure times of all the test items are less than a preset threshold, further delete the product testing software, and enable the security verification function.
The above-described intelligent gateway test system corresponds to the intelligent gateway-based test method of embodiment 1; any of the alternatives in embodiment 1 are also applicable to this embodiment and will not be described in detail here.
The embodiment of the application also provides an intelligent gateway, which comprises a memory and at least one processor, wherein the memory stores a computer program, and the processor is used for executing the computer program to implement the intelligent gateway testing method of the embodiment.
The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, at least one application program required for a function; the storage data area may store data created from the use of the computer device (e.g., production testing software, merchant software, number of test failures, etc.), and so on. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
Embodiments of the present application also provide a computer-readable storage medium storing computer-executable instructions that, when invoked and executed by a processor, cause the processor to perform the steps of the intelligent gateway test method of the above embodiments.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners as well. The apparatus embodiments described above are merely illustrative, for example, of the flow diagrams and block diagrams in the figures, which illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program intelligent gateways according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules or units in the embodiments of the present application may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone intelligent gateway, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in the form of a software intelligent gateway stored in a storage medium, including several instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application.

Claims (10)

1. An intelligent gateway production test method, which is characterized by comprising the following steps:
storing production testing software and merchant software in a main memory of an intelligent gateway, and carrying out digital signature on the production testing software and the merchant software to set a safety verification function; the production testing software comprises a plurality of target functional modules, and each target functional module corresponds to one test item;
sequentially running test items corresponding to the target function modules through the production test software, and recording test failure times of the same test item;
if the test failure times of all the test items are smaller than a preset threshold value, determining that the intelligent gateway passes the test, deleting the test software, and starting the safety verification function.
2. The intelligent gateway production test method according to claim 1, wherein the storing process of the production test software comprises:
presetting a plurality of test items of the intelligent gateway; each test item corresponds to a function to be tested;
acquiring a command sequence corresponding to each test item for controlling operation;
encapsulating the command sequences belonging to the same test item to generate a functional module;
and selecting corresponding target function modules from all the function modules according to a demand instruction sent by a user, combining and packaging the function modules to generate production testing software, and storing the production testing software to a preset position of a main memory in the intelligent gateway.
3. The intelligent gateway production test method according to claim 1 or 2, wherein the running test items corresponding to the target function modules sequentially by the production test software includes:
receiving a test instruction, wherein the test instruction is used for indicating a target functional module which is required to be operated currently;
and according to the test instruction, running a command sequence in the corresponding target functional module through the production test software, and returning a test result.
4. The intelligent gateway production test method of claim 1, wherein digitally signing the production test software and the merchant software comprises:
obtaining jump control logic of the production test software, wherein the jump control logic comprises a jump address of a test guide used for executing a command sequence in the production test software;
and combining the jump control logic, the merchant software and an encryption key of a data writing area in the intelligent gateway to generate a digital signature.
5. The intelligent gateway production test method of claim 1, further comprising:
if the test item fails to be tested, adjusting parameters corresponding to the test item, and rerun the test item corresponding to the target functional module until the test item is successfully tested or the test failure times are greater than or equal to the preset threshold.
6. The intelligent gateway production test method according to claim 1 or 5, further comprising:
and if the number of test failures of any one of the test items is greater than or equal to the preset threshold value, terminating the test.
7. The intelligent gateway production test method according to claim 1 or 5, further comprising:
marking the state of the intelligent gateway with the safety verification function as a factory qualified state;
marking the state of the intelligent gateway which does not pass the test as a factory return repair state; the failed test comprises at least one test item with the number of test failures greater than or equal to the preset threshold.
8. An intelligent gateway production test system, comprising:
the software configuration module is used for storing the production testing software and the merchant software in a main memory of the intelligent gateway and carrying out digital signature on the production testing software and the merchant software so as to set a safety verification function; the production testing software comprises a plurality of target functional modules, and each target functional module corresponds to one test item;
the test module is used for sequentially running test items corresponding to the target function modules through the production test software and recording the test failure times of the same test item;
and the verification starting module is used for determining that the intelligent gateway passes the test if the test failure times of all the test items are smaller than a preset threshold value, deleting the production test software and starting the safety verification function.
9. An intelligent gateway comprising a memory storing a computer program and at least one processor for executing the computer program to implement the intelligent gateway production test method of any of claims 1-7.
10. A computer readable storage medium, characterized in that it stores a computer program which, when executed, implements the intelligent gateway production test method according to any of claims 1-7.
CN202310460413.7A 2023-04-23 2023-04-23 Intelligent gateway production test method and system and intelligent gateway Pending CN116489056A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310460413.7A CN116489056A (en) 2023-04-23 2023-04-23 Intelligent gateway production test method and system and intelligent gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310460413.7A CN116489056A (en) 2023-04-23 2023-04-23 Intelligent gateway production test method and system and intelligent gateway

Publications (1)

Publication Number Publication Date
CN116489056A true CN116489056A (en) 2023-07-25

Family

ID=87213419

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310460413.7A Pending CN116489056A (en) 2023-04-23 2023-04-23 Intelligent gateway production test method and system and intelligent gateway

Country Status (1)

Country Link
CN (1) CN116489056A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117452222A (en) * 2023-12-21 2024-01-26 深圳市安仕新能源科技有限公司 BMS production line quality control method, system and medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117452222A (en) * 2023-12-21 2024-01-26 深圳市安仕新能源科技有限公司 BMS production line quality control method, system and medium

Similar Documents

Publication Publication Date Title
CN107464148A (en) A kind of intelligent contract upgrade method and system based on alliance's chain
CN101088071B (en) Method and device for secure parameterization of electronic devices
US8290660B2 (en) Data access to electronic control units
CN112805694A (en) System and method for improved intelligent contract for block chain implementation
CA3131079A1 (en) Test case generation method and device, computer equipment and storage medium
US10268845B2 (en) Securing of the loading of data into a nonvolatile memory of a secure element
US20170013451A1 (en) Network locking or card locking method and device for a mobile terminal, terminal, sim card, storage media
CN104104672A (en) Method for establishing dynamic authorization code based on identity authentication
CN104200153A (en) Start verification method and system
CN116489056A (en) Intelligent gateway production test method and system and intelligent gateway
KR101751098B1 (en) Method for programming a mobile terminal chip
Oka Building secure cars: assuring the automotive software development lifecycle
US8769654B2 (en) Counterfeit prevention strategy for pluggable modules
CN105138378A (en) BIOS flash method and electronic device
CN113626792B (en) PCIe Switch firmware secure execution method, device, terminal and storage medium
CN114281065A (en) Electronic control unit flashing method and device for vehicle and diagnostic equipment
JP2014120118A (en) Microcomputer, middle ware of the same, and microcomputer operating method
CN117034325B (en) Flash data content encryption method, device, equipment and storage medium
CN112836230B (en) Mirror image encryption method and system in industrial router
JP7287789B2 (en) Semiconductor device, control method, and program
US20240211600A1 (en) Method for reprogram with enhanced security
CN118103841A (en) Method for permitting authorization of execution of a computer program by a vehicle component of a vehicle, vehicle component and computer program
KR20240102424A (en) Method for reprogram with enganced security
CN118132133A (en) Software packaging method, device, equipment and storage medium
CN115686927A (en) Method, device and equipment for quickly checking internal data of Flash

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