CN115766429A - Matching method and device of system and edge computing gateway - Google Patents

Matching method and device of system and edge computing gateway Download PDF

Info

Publication number
CN115766429A
CN115766429A CN202211379068.6A CN202211379068A CN115766429A CN 115766429 A CN115766429 A CN 115766429A CN 202211379068 A CN202211379068 A CN 202211379068A CN 115766429 A CN115766429 A CN 115766429A
Authority
CN
China
Prior art keywords
target gateway
equipment
model
communication interface
file
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
CN202211379068.6A
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.)
Gree Electric Appliances Inc of Zhuhai
Guochuang Energy Internet Innovation Center Guangdong Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Guochuang Energy Internet Innovation Center Guangdong 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 Gree Electric Appliances Inc of Zhuhai, Guochuang Energy Internet Innovation Center Guangdong Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202211379068.6A priority Critical patent/CN115766429A/en
Publication of CN115766429A publication Critical patent/CN115766429A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The application discloses a matching method and device of a system and an edge computing gateway. Wherein, the method comprises the following steps: acquiring information of a communication interface of target gateway equipment by using a driver; determining the equipment model of the target gateway equipment according to the information of the communication interface; the method provides a scheme for completing equipment system adaptation by utilizing a drive test communication interface and further judging the equipment model for matching a corresponding system for the target gateway equipment according to the equipment model of the target gateway equipment, and does not need to carry out operations of independently manufacturing a system for each model, carrying out drive adaptation and the like, thereby solving the technical problem of more complex scheme for system adaptation.

Description

Matching method and device of system and edge computing gateway
Technical Field
The present application relates to the technical field of edge gateways, and in particular, to a matching method and apparatus for a system, and an edge computing gateway.
Background
The GDC is an edge computing gateway (hereinafter referred to as gateway) and generally includes communication interfaces such as a serial port, a network port, a USB port, a CAN port, and Wifi. Due to the fact that the pins of the main chip are limited or the size of the gateway needs to be controlled, the gateway can be subdivided into a plurality of models to meet different requirements. For example, the gateway model with the dual network ports mainly aims at network communication, is provided with a plurality of serial ports and is mainly responsible for data acquisition of bottom-layer equipment. However, multiple models require multiple adaptive systems, multiple TF cards need to be prepared for burning, and if a customer needs to refresh the system, the systems of the various models are easily confused, and a problem occurs in the gateway communication function after a wrong system is refreshed.
In order to solve the above problems, the related art provides a multi-platform software version self-adaptive method and system based on a DTB file, because an embedded Linux system is started by first importing the DTB file, a virtual device node can be created in the DTB file, and before all customized driver modules are loaded, the virtual device node with version information is analyzed and written into the created system file according to an appointed interface. When the customized module is loaded, the version information is firstly acquired, and then the corresponding module is loaded in a self-adaptive mode.
The above solution still has many problems: the driving loading mode can increase the development amount, because if the hardware pin is abnormal, the driving module can not be automatically loaded, or the loading is abnormal, and one more program is not needed to be written for judgment; and according to the content of the version information file, the customized drive module is loaded, all the drives need to be customized, the workload is huge, and the customization possibly influences the drive stability. It can be seen that the above system adaptation scheme is complex and has drawbacks.
Aiming at the technical problem that the scheme for adapting the system is complex, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the application provides a matching method and device of a system and an edge computing gateway, so as to solve the technical problem that a scheme for system adaptation is complex.
In order to solve the above technical problem, according to an aspect of an embodiment of the present application, there is provided a matching method for a system, including: acquiring information of a communication interface of target gateway equipment by using a driver; determining the equipment model of the target gateway equipment according to the information of the communication interface; and matching a corresponding system for the target gateway equipment according to the equipment model of the target gateway equipment.
Optionally, the obtaining, by using the driver, information of the communication interface of the target gateway device includes: testing the communication interface of the target gateway equipment by using the successfully loaded drive to obtain a test result; and obtaining the information of the communication interface according to the test result.
Optionally, before acquiring the information of the communication interface of the target gateway device by using the driver, the method further includes: starting a universal system burned to the target gateway equipment; selecting unloaded candidate drivers from a driver set, wherein the driver set stores drivers of multiple types of hardware; under the condition that the candidate driver is loaded to the target gateway equipment and fails, selecting the candidate driver which is not loaded from the driver set again; and under the condition that the candidate driver is successfully loaded to the target gateway equipment, executing the step of testing the communication interface of the target gateway equipment by using the successfully loaded driver.
Optionally, determining the device model of the target gateway device according to the information of the communication interface includes: acquiring a mapping file, wherein the mapping file records a hardware type and an equipment model; and determining the hardware type included by the target gateway equipment according to the information of the communication interface, and searching the equipment model matched with the hardware type included by the target gateway equipment from the mapping file to be used as the equipment model of the target gateway equipment.
Optionally, matching a corresponding system for the target gateway device according to the device model of the target gateway device includes: searching a device tree file matched with the device model of the target gateway device from a file library, wherein the device tree files of a plurality of device models are stored in the file library; and replacing the device tree file built in the general system of the target gateway device with the searched device tree file to form a system matched with the target gateway device.
Optionally, after replacing the device tree file in the general system of the target gateway device with the found device tree file to form a system matched with the target gateway device, the method further includes: and restarting the system of the target gateway equipment, wherein the restarted system operates according to the replaced equipment tree file.
Optionally, before or after searching for a device tree file matching the device model of the target gateway device from a file library, the method further includes: acquiring a device tree file generated for new gateway devices; and saving the model of the new gateway equipment and the equipment tree file corresponding to the model into the file library.
According to another aspect of the embodiments of the present application, there is also provided a matching device of a system, including: an acquisition unit configured to acquire information of a communication interface of a target gateway device using a driver; the determining unit is used for determining the equipment model of the target gateway equipment according to the information of the communication interface; and the matching unit is used for matching a corresponding system for the target gateway equipment according to the equipment model of the target gateway equipment.
Optionally, the obtaining unit is further configured to: testing the communication interface of the target gateway equipment by using the successfully loaded drive to obtain a test result; and obtaining the information of the communication interface according to the test result.
Optionally, the obtaining unit is further configured to: before information of a communication interface of target gateway equipment is acquired by using a driver, starting a universal system burnt to the target gateway equipment; selecting unloaded candidate drivers from a driver set, wherein the drivers of various types of hardware are stored in the driver set; under the condition that the candidate driver is loaded to the target gateway equipment and fails, selecting the candidate driver which is not loaded from the driver set again; and under the condition that the candidate driver is successfully loaded to the target gateway equipment, testing the communication interface of the target gateway equipment by using the driver which is successfully loaded.
Optionally, the determining unit is further configured to: acquiring a mapping file, wherein the mapping file records a hardware type and an equipment model; and determining the hardware type included by the target gateway equipment according to the information of the communication interface, and searching the equipment model matched with the hardware type included by the target gateway equipment from the mapping file to be used as the equipment model of the target gateway equipment.
Optionally, the matching unit is further configured to: searching a device tree file matched with the device model of the target gateway device from a file library, wherein the device tree files of a plurality of device models are stored in the file library; and replacing the device tree file built in the general system of the target gateway device with the searched device tree file to form a system matched with the target gateway device.
Optionally, the matching unit is further configured to: and after the equipment tree file in the general system of the target gateway equipment is replaced by the searched equipment tree file to form a system matched with the target gateway equipment, restarting the system of the target gateway equipment, and operating the restarted system according to the replaced equipment tree file.
Optionally, the matching unit is further configured to: before or after searching for the device tree file matched with the device model of the target gateway device from a file library, acquiring a device tree file generated for new gateway devices; and saving the model of the new gateway equipment and the equipment tree file corresponding to the model into the file library.
According to another aspect of embodiments of the present application, there is also provided a computer-readable storage medium including a stored program which, when executed by a processor, implements the method described above.
According to another aspect of the embodiments of the present application, there is also provided an electronic device, including: one or more processors; a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the method described above.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the steps of any of the embodiments of the method described above.
By applying the technical scheme of the application, the information of the communication interface of the target gateway equipment is acquired by using the driver; determining the equipment model of the target gateway equipment according to the information of the communication interface; the method provides a scheme for completing equipment system adaptation by utilizing a drive test communication interface and further judging the equipment model for matching a corresponding system for the target gateway equipment according to the equipment model of the target gateway equipment, and does not need to carry out operations of independently manufacturing a system for each model, carrying out drive adaptation and the like, thereby solving the technical problem of more complex scheme for system adaptation.
Drawings
FIG. 1 is a flow chart of an alternative system matching method according to embodiments of the present application;
FIG. 2 is a schematic diagram of an alternative system matching scheme according to embodiments of the present application;
FIG. 3 is a flow chart of an alternative system matching method according to embodiments of the present application;
FIG. 4 is a schematic diagram of a matching device of an alternative system according to embodiments of the present application;
fig. 5 is a block diagram of a terminal according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terminology used in the embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the examples of this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise, and "a plurality" typically includes at least two.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
It should be understood that although the terms first, second, third, etc. may be used in the embodiments of the present application to describe certain features, these features should not be limited to these terms. These terms are only used to distinguish these technical features.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrase "if determined" or "if detected (a stated condition or event)" may be interpreted as "upon determining" or "in response to determining" or "upon detecting (a stated condition or event)" or "in response to detecting (a stated condition or event)", depending on the context.
It is also noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that an article or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such article or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another like element in a commodity or device comprising the element.
Example 1
In order to solve the problems of adaptation and burning of gateway systems of different models, according to one aspect of the embodiments of the present application, a matching method of a system is provided. Fig. 1 is a flow chart of an alternative system matching method according to an embodiment of the present application, as shown in fig. 1, the method includes the following steps:
and step S101, acquiring information of a communication interface of the target gateway equipment by using the driver.
a) According to the scheme, a universal system is manufactured (in other words, only one TF card needs to be prepared), when the system is swiped, the universal system is directly swiped to the gateway, and then the universal system burnt to the target gateway equipment is started;
b) Saving drivers of various hardware, such as drivers of communication interfaces such as serial ports, network ports, USB (universal serial bus), CAN (controller area network) ports, wifi (wireless fidelity) and the like, in a driver set, and selecting unloaded candidate drivers from the driver set;
c) Under the condition that the candidate driver is loaded to the target gateway equipment and fails, selecting the candidate driver which is not loaded from the driver set again;
d) Under the condition that the candidate driver is successfully loaded to the target gateway equipment, testing a communication interface of the target gateway equipment by using the successfully loaded driver to obtain a test result;
e) Obtaining information of the communication interface according to the test result, for example: drive a may be used normally on interface 1, drive B may be used normally on interface 2, etc.
And step S102, determining the equipment model of the target gateway equipment according to the information of the communication interface.
Optionally, a mapping file may be obtained first, and the hardware type and the device model are recorded in the mapping file; and determining the hardware type included by the target gateway equipment according to the information of the communication interface, and searching the equipment model matched with the hardware type included by the target gateway equipment from the mapping file to be used as the equipment model of the target gateway equipment.
And step S103, matching a corresponding system for the target gateway equipment according to the equipment model of the target gateway equipment.
Optionally, a device tree file matched with the device model of the target gateway device may be searched from a file library, where the file library stores device tree files of multiple device models; replacing the device tree file built in the general system of the target gateway device with the searched device tree file to form a system matched with the target gateway device; and then restarting the system of the target gateway equipment, wherein the restarted system operates according to the replaced equipment tree file.
In the above solution, before or after searching for the device tree file matched with the device model of the target gateway device from the file library, the device tree file generated for the new gateway device may be obtained; and saving the model of the new gateway equipment and the equipment tree file corresponding to the model into the file library so as to update the equipment tree file in real time.
Through the steps, the information of the communication interface of the target gateway equipment is obtained by using the driver; determining the equipment model of the target gateway equipment according to the information of the communication interface; the method provides a scheme for completing equipment system adaptation by utilizing a drive test communication interface and further judging the equipment model for matching a corresponding system for the target gateway equipment according to the equipment model of the target gateway equipment, and does not need to carry out operations of independently manufacturing a system for each model, carrying out drive adaptation and the like, thereby solving the technical problem of more complex scheme for system adaptation.
Example 2
In order to overcome the defects, the application provides a scheme of firstly reading the driving information, testing the function of the communication interface and then judging the model of the product. The scheme can be applied to gateways with different communication interfaces, a universal system is burnt, an application program can be compared with a gateway model file written in the system according to the loading condition of a read drive after the system is started for the first time, and the device tree file is automatically switched after the system is started, so that the gateway model is matched with hardware. As an alternative example, the following detailed description is provided to further describe the technical solution of the present application in conjunction with the following specific embodiments:
as shown in the framework of fig. 2, the present solution can be implemented based on multiple files and application programs, firstly, since the number of pins of the communication interface hardware of the main chip is limited, there is a pin multiplexing problem, the file for configuring the pins (including the register, the level, the GPIO port, etc.) is generally called a Device-tree file (Device-tree), which is independent from the system kernel file (Image), the system boot startup file (U-boot), and the file system (Rootfs), and the Device-tree file configures the pin parameters to configure different Device-tree files according to the specific model of the gateway. As shown in the following example, a gateway of a dual RS485 communication port is of a model z1 (one port pin is 0x000F1, 0x000F2, and two port pins are 0x000F3, 0x000F 4), and a gateway of a dual CAN communication port is of a model z2 (one port pin is 0x00F4, 0x000F5, and two port pins are 0x000F6, 0x000F 7), so that the gateway of the model z1 conflicts with the gateway of the model z2 at pin 0x00F4, and two device tree files need to be configured. Similarly, if there is a pin conflict between multiple models of gateways, multiple device tree files need to be prepared. And placing the equipment tree files of various models in the same folder to wait for program processing.
The execution steps are shown in fig. 3:
step S301, load the driver information one by one for testing.
The system is provided with all models of drive modules, the application program loads the drive programs in sequence after the system is started, tests the corresponding communication interface function after the successful loading, unloads the drive when the loading fails, loads the next drive and tests the communication function.
And step S302, determining the model of the equipment by using the communication test result.
Deducing which hardware the system has through the normality of the communication interface function, comparing with the corresponding mapping file to obtain the model information of the system, and compiling the mapping file in an easy-to-analyze xml format. And after the program obtains the model, renaming and writing the corresponding equipment tree file into the kernel system, covering the original equipment tree file of the system, and automatically restarting the system by the program after the writing is finished to obtain the system matched with the hardware.
The scheme can further reduce the development amount and realize low code coupling. When a gateway device with other communication interfaces is newly developed, only a corresponding gateway model interface and a new device tree file are added in a mapping table, and the original application program code is not required to be added and modified; meanwhile, the drivers provided by manufacturers can be directly compiled into the system to realize loading and use, and the original drivers do not need to be customized again or codes do not need to be modified. The customized driving module needs a large amount of testing work of developers, otherwise, the driving is easy to generate unstable conditions, and subsequent troubleshooting is difficult. The primary drive has better stability because of a large amount of tests by manufacturers; even if the driving problem occurs, the abnormal report can be provided to the manufacturer at the first time for joint debugging, and the development and debugging time is reduced.
The instability of the drive is generally reflected in that the drive version is inconsistent with the hardware, and when one interface hardware model is updated and the drive version is not updated, the drive is easy to be abnormal. Therefore, developers write the latest drive version of the hardware interface in the gateway model and interface mapping table, the application program can read the information of the existing drive version when being electrified and started every time and compare the information with the mapping table, and when the versions are judged to be incompatible, fault codes can be reported for users or testers to check.
The application program reads the loading information of the driving program and analyzes the information of the communication interface, so that the hidden danger caused by manual judgment is reduced; the application program judges the type of the gateway according to the information of the communication interface and automatically switches the corresponding system, so that the steps and time for re-burning the system are reduced, burning of the gateways of all types can be completed only by 1 TF card, and a plurality of adaptive systems do not need to be prepared additionally; the problem of system multiplexing that main chip hardware pin is not abundant is solved, cost can be practiced thrift.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art will recognize that the embodiments described in this specification are preferred embodiments and that acts or modules referred to are not necessarily required for this application.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
Example 3
According to another aspect of the embodiment of the application, a matching device of a system for implementing the matching method of the system is also provided. Fig. 4 is a schematic diagram of an alternative system matching apparatus according to an embodiment of the present application, which may include, as shown in fig. 4:
an acquisition unit 41 configured to acquire information of a communication interface of a target gateway device using a driver; a determining unit 43, configured to determine a device model of the target gateway device according to the information of the communication interface; and the matching unit 45 is configured to match a corresponding system for the target gateway device according to the device model of the target gateway device.
Acquiring information of a communication interface of target gateway equipment by using a driver through the module; determining the equipment model of the target gateway equipment according to the information of the communication interface; the method provides a scheme for completing equipment system adaptation by utilizing a drive test communication interface and further judging the equipment model for matching a corresponding system for the target gateway equipment according to the equipment model of the target gateway equipment, and does not need to carry out operations of independently manufacturing a system for each model, carrying out drive adaptation and the like, thereby solving the technical problem of more complex scheme for system adaptation.
Optionally, the obtaining unit is further configured to: testing the communication interface of the target gateway equipment by using the successfully loaded drive to obtain a test result; and obtaining the information of the communication interface according to the test result.
Optionally, the obtaining unit is further configured to: before information of a communication interface of target gateway equipment is acquired by using a driver, starting a universal system burnt to the target gateway equipment; selecting unloaded candidate drivers from a driver set, wherein the drivers of various types of hardware are stored in the driver set; under the condition that the candidate driver is loaded to the target gateway equipment and fails, selecting the candidate driver which is not loaded from the driver set again; and under the condition that the candidate driver is successfully loaded to the target gateway equipment, testing the communication interface of the target gateway equipment by using the driver which is successfully loaded.
Optionally, the determining unit is further configured to: acquiring a mapping file, wherein the mapping file records a hardware type and an equipment model; and determining the hardware type included by the target gateway equipment according to the information of the communication interface, and searching the equipment model matched with the hardware type included by the target gateway equipment from the mapping file to be used as the equipment model of the target gateway equipment.
Optionally, the matching unit is further configured to: searching an equipment tree file matched with the equipment model of the target gateway equipment from a file library, wherein the file library stores equipment tree files of a plurality of equipment models; and replacing the device tree file built in the general system of the target gateway device with the searched device tree file to form a system matched with the target gateway device.
Optionally, the matching unit is further configured to: and after the device tree file in the general system of the target gateway device is replaced by the searched device tree file to form a system matched with the target gateway device, restarting the system of the target gateway device, wherein the restarted system operates according to the replaced device tree file.
Optionally, the matching unit is further configured to: before or after searching for a device tree file matched with the device model of the target gateway device from a file library, acquiring a device tree file generated for new gateway devices; and saving the model of the new gateway equipment and the equipment tree file corresponding to the model into the file library.
It should be noted here that the modules described above are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the disclosure of the above embodiments. It should be noted that the modules as a part of the apparatus may run in a corresponding hardware environment, and may be implemented by software, or may be implemented by hardware, where the hardware environment includes a network environment.
Example 4
This embodiment provides an electronic device, electronic device includes: processor 201, memory 203, and transmission means 205, as shown in fig. 5, the terminal may further include an input-output device 207; wherein:
the memory 203 may be used to store software programs and modules, such as program instructions/modules corresponding to the methods and apparatuses in the embodiments of the present application, and the processor 201 executes various functional applications and data processing by executing the software programs and modules stored in the memory 203, so as to implement the above-described methods. The memory 203 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 203 can further include memory located remotely from the processor 201, which can be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 205 is used for receiving or sending data via a network, and may also be used for data transmission between a processor and a memory. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 205 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device 205 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
Wherein the memory 203 is specifically used for storing application programs.
The processor 201 may call the application stored in the memory 203 via the transmission means 205 to perform the following steps:
example 5
The embodiment of the present application provides software for implementing the technical solutions described in the above embodiments and preferred embodiments.
Embodiments of the present application provide a non-volatile computer storage medium, where computer-executable instructions are stored in the computer storage medium, and the computer-executable instructions may execute the method for editing content in a document in any of the above method embodiments.
The storage medium stores the software, and the storage medium includes but is not limited to: optical disks, floppy disks, hard disks, erasable memory, etc.
The product can execute the method provided by the embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the methods provided in the embodiments of the present application.
The electronic device of the embodiments of the present application exists in various forms, including but not limited to:
(1) Mobile communication devices, which are characterized by mobile communication capabilities and are primarily targeted at providing voice and data communications. Such terminals include smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) The ultra-mobile personal computer equipment belongs to the category of personal computers, has the functions of calculation and processing, and generally has the mobile internet access characteristic. Such terminals include PDA, MID, and UMPC devices, such as ipads.
(3) Portable entertainment devices such devices may display and play multimedia content. Such devices include audio and video players (e.g., ipods), handheld game consoles, electronic books, as well as smart toys and portable car navigation devices.
(4) The server is similar to a general computer architecture, but has higher requirements on processing capability, stability, reliability, safety, expandability, manageability and the like because of the need of providing highly reliable services.
(5) And other electronic devices with data interaction functions, such as televisions, large vehicle-mounted screens and the like.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (11)

1. A method of matching a system, the method comprising:
acquiring information of a communication interface of target gateway equipment by using a driver;
determining the equipment model of the target gateway equipment according to the information of the communication interface;
and matching a corresponding system for the target gateway equipment according to the equipment model of the target gateway equipment.
2. The method of claim 1, wherein obtaining information of the communication interface of the target gateway device using the driver comprises:
testing the communication interface of the target gateway equipment by using the successfully loaded drive to obtain a test result;
and obtaining the information of the communication interface according to the test result.
3. The method of claim 2, wherein prior to obtaining information of the communication interface of the target gateway device using the driver, the method further comprises:
starting a universal system burnt to the target gateway equipment;
selecting unloaded candidate drivers from a driver set, wherein the driver set stores drivers of multiple types of hardware;
under the condition that the candidate driver is loaded to the target gateway equipment and fails, selecting the candidate driver which is not loaded from the driver set again;
and under the condition that the candidate driver is successfully loaded to the target gateway equipment, executing the step of testing the communication interface of the target gateway equipment by using the successfully loaded driver.
4. The method of claim 1, wherein determining the device model of the target gateway device according to the information of the communication interface comprises:
acquiring a mapping file, wherein the mapping file records a hardware type and an equipment model;
and determining the hardware type included by the target gateway equipment according to the information of the communication interface, and searching the equipment model matched with the hardware type included by the target gateway equipment from the mapping file to be used as the equipment model of the target gateway equipment.
5. The method of claim 1, wherein matching a corresponding system for the target gateway device according to the device model of the target gateway device comprises:
searching a device tree file matched with the device model of the target gateway device from a file library, wherein the device tree files of a plurality of device models are stored in the file library;
and replacing the device tree file built in the general system of the target gateway device with the searched device tree file to form a system matched with the target gateway device.
6. The method according to claim 5, wherein after replacing the device tree file in the generic system of the target gateway device with the found device tree file to form a system matched with the target gateway device, the method further comprises:
and restarting the system of the target gateway equipment, wherein the restarted system operates according to the replaced equipment tree file.
7. The method of claim 1, wherein before or after searching for a device tree file from a file library that matches the device model of the target gateway device, the method further comprises:
acquiring a device tree file generated for new gateway devices;
and saving the model of the new gateway equipment and the equipment tree file corresponding to the model into the file library.
8. A matching apparatus for a system, the method comprising:
an acquisition unit configured to acquire information of a communication interface of a target gateway device using a driver;
the determining unit is used for determining the equipment model of the target gateway equipment according to the information of the communication interface;
and the matching unit is used for matching a corresponding system for the target gateway equipment according to the equipment model of the target gateway equipment.
9. An edge computing gateway comprising matching means of the system of claim 8.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
11. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to carry out the method of any one of claims 1 to 7.
CN202211379068.6A 2022-11-04 2022-11-04 Matching method and device of system and edge computing gateway Pending CN115766429A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211379068.6A CN115766429A (en) 2022-11-04 2022-11-04 Matching method and device of system and edge computing gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211379068.6A CN115766429A (en) 2022-11-04 2022-11-04 Matching method and device of system and edge computing gateway

Publications (1)

Publication Number Publication Date
CN115766429A true CN115766429A (en) 2023-03-07

Family

ID=85356604

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211379068.6A Pending CN115766429A (en) 2022-11-04 2022-11-04 Matching method and device of system and edge computing gateway

Country Status (1)

Country Link
CN (1) CN115766429A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116205171A (en) * 2023-05-06 2023-06-02 英诺达(成都)电子科技有限公司 Matching method, device, equipment and storage medium of power switch unit

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104301139A (en) * 2014-09-28 2015-01-21 北京奇虎科技有限公司 Router adaptation method and device and terminal device
CN106713004A (en) * 2016-07-12 2017-05-24 腾讯科技(深圳)有限公司 Router adaptation method and system
CN109547536A (en) * 2018-11-01 2019-03-29 福建星网智慧科技股份有限公司 Intelligent gateway device type automatic identification and method for upgrading software version and system
CN110602768A (en) * 2019-11-13 2019-12-20 江苏东洲物联科技有限公司 Intelligent Internet of things gateway method and device fusing multiple types of data transmission protocols
CN114448802A (en) * 2022-01-28 2022-05-06 北京百度网讯科技有限公司 Gateway configuration method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104301139A (en) * 2014-09-28 2015-01-21 北京奇虎科技有限公司 Router adaptation method and device and terminal device
CN106713004A (en) * 2016-07-12 2017-05-24 腾讯科技(深圳)有限公司 Router adaptation method and system
CN109547536A (en) * 2018-11-01 2019-03-29 福建星网智慧科技股份有限公司 Intelligent gateway device type automatic identification and method for upgrading software version and system
CN110602768A (en) * 2019-11-13 2019-12-20 江苏东洲物联科技有限公司 Intelligent Internet of things gateway method and device fusing multiple types of data transmission protocols
CN114448802A (en) * 2022-01-28 2022-05-06 北京百度网讯科技有限公司 Gateway configuration method and device, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李仕鹏: "" PacketCable 2.0 E-UE Provisioning研究及部分实现"", 《中国优秀硕士论文电子期刊网》, 30 November 2013 (2013-11-30), pages 139 - 25 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116205171A (en) * 2023-05-06 2023-06-02 英诺达(成都)电子科技有限公司 Matching method, device, equipment and storage medium of power switch unit
CN116205171B (en) * 2023-05-06 2023-07-18 英诺达(成都)电子科技有限公司 Matching method, device, equipment and storage medium of power switch unit

Similar Documents

Publication Publication Date Title
US8954805B2 (en) Computer booting method and computer system
US9804832B2 (en) Method, apparatus, and communication device for updating firmware
CN103412769A (en) External card parameter configuration method, equipment and system
CN111176739A (en) System starting method, device, equipment and storage medium
CN110716845B (en) Log information reading method of Android system
US20130080751A1 (en) Method and device for updating bios program for computer system
CN112015448A (en) System upgrading method and device based on over-the-air technology
CN115766429A (en) Matching method and device of system and edge computing gateway
CN110515671A (en) Initial method, apparatus for initializing, terminal device and readable storage medium storing program for executing
CN114816491A (en) System upgrading method and device for multi-system mobile terminal and terminal
CN111158987A (en) Health check method and device of micro-service architecture
CN109471665B (en) Method for automatically installing Windows operating system
CN116775061A (en) Deployment method, device, equipment and storage medium of micro-service application
US7945771B1 (en) System and method for a software application to determine if the storage device and the operating system is an internal drive or an external drive
CN114253781B (en) Test method, device, equipment and storage medium
CN113272785A (en) Method for mounting file system, terminal equipment and storage medium
CN114510375A (en) Flash chip data area dynamic sharing system and method
US20170131946A1 (en) Method and device for formatting storage of mobile terminal
CN105278993A (en) Linux system based drive module upgrading method and apparatus
US20200249959A1 (en) Ndis device configuration method and apparatus, and computer storage medium
CN111953803A (en) BMC starting method, equipment, system and storage medium
CN112148376A (en) Terminal starting method and device
CN116028100B (en) Software version upgrading method and electronic equipment
CN112015452B (en) Firmware upgrading method and device for gate system and gate system
CN115827080B (en) Embedded equipment adaptation method and device based on serial port communication and computer equipment

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