CN111953753A - Communication equipment connection method and device, computer equipment and storage medium - Google Patents

Communication equipment connection method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111953753A
CN111953753A CN202010758528.0A CN202010758528A CN111953753A CN 111953753 A CN111953753 A CN 111953753A CN 202010758528 A CN202010758528 A CN 202010758528A CN 111953753 A CN111953753 A CN 111953753A
Authority
CN
China
Prior art keywords
target
target communication
reset
equipment
communication equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010758528.0A
Other languages
Chinese (zh)
Other versions
CN111953753B (en
Inventor
张明杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Fibocom Wireless Software Inc
Original Assignee
Xian Fibocom Wireless Software Inc
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 Xian Fibocom Wireless Software Inc filed Critical Xian Fibocom Wireless Software Inc
Priority to CN202010758528.0A priority Critical patent/CN111953753B/en
Publication of CN111953753A publication Critical patent/CN111953753A/en
Application granted granted Critical
Publication of CN111953753B publication Critical patent/CN111953753B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/303Terminal profiles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application relates to a communication equipment connection method, a communication equipment connection device, computer equipment and a storage medium. The method comprises the following steps: acquiring a device reset triggering event corresponding to target communication equipment, and resetting the target communication equipment according to the device reset triggering event; scanning the target communication device after resetting the target communication device according to the device reset triggering event; and when the target communication equipment is determined to be scanned, acquiring a target drive file corresponding to the target communication equipment, and configuring the target communication equipment by using the target drive file to obtain the configured target communication equipment, so that the target terminal establishes communication connection with the configured target communication equipment. The method can improve the efficiency of connecting the communication equipment.

Description

Communication equipment connection method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for connecting a communication device, a computer device, and a storage medium.
Background
With the development of communication technology, PCIe (peripheral component interconnect express) technology has appeared, and the PCIe technology has a high data transmission rate and is widely used in the field of communication. The terminal can communicate with the PCIe device through the PCIe driver, wherein the PCIe device refers to a device which adopts PCIe for data transmission.
However, when the PCIe technology does not support hot plug, it often happens that communication between the terminal and the PCIe device is interrupted frequently, and the terminal cannot quickly re-establish a communication connection with the PCIe device, resulting in inefficiency in connecting communication devices.
Disclosure of Invention
In view of the above, it is necessary to provide a communication device connection method, apparatus, computer device, and storage medium capable of improving the efficiency of connecting communication devices, in order to solve the above-described technical problem of low efficiency of connecting communication devices.
A communication device connection method, the method comprising: acquiring a device reset triggering event corresponding to target communication equipment, and resetting the target communication equipment according to the device reset triggering event; scanning the target communication device after resetting the target communication device according to the device reset triggering event; and when the target communication equipment is determined to be scanned, acquiring a target drive file corresponding to the target communication equipment, and configuring the target communication equipment by using the target drive file to obtain the configured target communication equipment, so that the target terminal establishes communication connection with the configured target communication equipment.
In some embodiments, the obtaining of the device reset trigger event corresponding to the target communication device includes: and monitoring the running state of the target communication equipment, and determining to acquire the equipment reset triggering event when the running state of the target communication equipment is monitored to be abnormal.
In some embodiments, the obtaining of the device reset trigger event corresponding to the target communication device includes: acquiring a file upgrading request for upgrading a target device file in the target communication device; and when the corresponding upgrade file is written into the target communication equipment according to the file upgrade request, determining to acquire the equipment reset trigger event.
In some embodiments, said resetting said target communication device in accordance with said device reset triggering event comprises: calling a target equipment reset interface corresponding to the target communication equipment according to the equipment reset triggering event; and carrying out reset operation on a reset pin of the target communication equipment by utilizing the reset interface of the target equipment so as to reset the target communication equipment.
In some embodiments, when it is determined that the target communication device is scanned, acquiring the target driver file corresponding to the target communication device includes: acquiring a target supplier number and a target equipment number corresponding to the target communication equipment, and performing logical operation according to the target supplier number and the target equipment number to obtain target equipment information; and comparing the target device information with a device information value range, and when the comparison is consistent, determining that the target communication device is scanned, and acquiring a target drive file corresponding to the target communication device.
In some embodiments, the obtaining the target driver file corresponding to the target communication device includes: and searching and obtaining a target drive file corresponding to the target communication equipment from a candidate drive file set according to the target equipment number and the target supplier number, wherein the candidate drive file set comprises drive files corresponding to a plurality of communication equipment respectively.
A communication device connection apparatus, the apparatus comprising: the device resetting triggering event acquiring module is used for acquiring a device resetting triggering event corresponding to the target communication device and resetting the target communication device according to the device resetting triggering event; the reset scanning module is used for scanning the target communication equipment after the target communication equipment is reset according to the equipment reset triggering event; and the configured target communication equipment obtaining module is used for obtaining a target drive file corresponding to the target communication equipment when the target communication equipment is determined to be scanned, and configuring the target communication equipment by using the target drive file to obtain the configured target communication equipment so as to establish communication connection between the target terminal and the configured target communication equipment.
In some embodiments, the device reset triggering event obtaining module is further configured to monitor an operating state of the target communication device, determine to obtain the device reset triggering event when the operating state of the target communication device is monitored to be abnormal, and send a device reset instruction to the target communication device according to the device reset triggering event.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the above-described communication device connection method when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned communication device connection method.
According to the communication equipment connecting method, the device, the computer equipment and the storage medium, the equipment reset triggering event corresponding to the target communication equipment is obtained, the target communication equipment is reset according to the equipment reset triggering event, the target communication equipment is scanned after the target communication equipment is reset according to the equipment reset triggering event, the target driving file corresponding to the target communication equipment is obtained when the target communication equipment is determined to be scanned, the target communication equipment is configured by using the target driving file, the configured target communication equipment is obtained, so that the target terminal and the configured target communication equipment are in communication connection, the target communication module and the target terminal are automatically connected after the target communication module is reset, and the efficiency of connecting the communication equipment is improved.
Drawings
FIG. 1 is a diagram of an application environment of a method for communication device connection in some embodiments;
FIG. 2 is a flow diagram illustrating a method for communication device connection in some embodiments;
FIG. 3 is a timing diagram of a method of connection of a communication device in some embodiments;
FIG. 4 is a timing diagram of a method of connection of a communication device in some embodiments;
FIG. 5 is a flowchart illustrating the steps of resetting a target communication device in some embodiments;
FIG. 6 is a block diagram of a communication device connection apparatus in some embodiments;
FIG. 7 is a diagram of the internal structure of a computer device in some embodiments.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The communication device connection method provided by the application can be applied to the application environment shown in fig. 1. The application environment includes a target terminal 102, and the target terminal 102 includes a target communication device therein. The target communication device may be connected to and communicate with the target terminal through a device access interface provided by the target terminal, where the device access interface is, for example, a device interface corresponding to a bus, and the device interface corresponding to the bus may be, for example, an interface corresponding to a PCIe (peripheral component interconnect express, high speed serial computer extended bus standard) bus. The target terminal may also be referred to as HOST, among others.
Specifically, the target terminal 102 obtains a device reset trigger event corresponding to the target communication device, and resets the target communication device according to the device reset trigger event. The target terminal 102 resets the target communication device according to the device reset trigger event, and then scans the target communication device. When the target terminal 102 determines that the target communication device is scanned, the target terminal 102 acquires a target driver file corresponding to the target communication device, and configures the target communication device by using the target driver file to obtain the configured target communication device, so that the target terminal establishes a communication connection with the configured target communication device.
The target terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
In some embodiments, as shown in fig. 2, a method for connecting a communication device is provided, which is described by taking the method as an example applied to the target terminal 102 in fig. 1, and includes the following steps:
s202, acquiring a device reset triggering event corresponding to the target communication device, and resetting the target communication device according to the device reset triggering event.
Specifically, the target communication device is a communication device installed in the target terminal. The communication device may include at least one of a network card, a video card, or a hard disk. The communication device may be connected to the terminal through an interface that does not support hot-plugging. The hot plug refers to plugging and unplugging the device without turning off the power supply of the terminal, that is, plugging and unplugging the device with electricity. The interface which does not support hot plug is provided, when the device is plugged after being unplugged from the terminal or the device is reset, the terminal and the device can not carry out normal data communication, for example, the device can not be driven to normally work. The interface supports hot plug, and after the device is plugged after being unplugged from the terminal or the device is reset, the terminal and the device can carry out normal data communication.
A device reset triggering event refers to an event that triggers resetting of a target communication device. The device reset triggering event may include at least one of a device failure event or a device upgrade event. The device failure event may be an event in which an abnormality occurs in the operational state of the communication device. A device upgrade event refers to an event that upgrades a file in the communication device, and may be, for example, an event that upgrades firmware in the communication device. The firmware refers to a device "driver" stored inside the device, and the operating system can implement the running action of a specific machine according to the standard device driver through the firmware.
In some embodiments, the terminal monitors a device reset trigger event of the communication device, performs a reset operation on the communication device according to the device reset trigger event, and scans the communication device after performing the reset operation on the communication device, as shown in fig. 3.
In some embodiments, when the communication device needs to be reset, the communication device may actively send a reset scanning instruction to the terminal, and the terminal may perform a reset operation and a scanning operation on the communication device according to the reset scanning instruction. The reset scan command is used to instruct the target terminal to perform a reset operation and a scan operation on the target communication device, as shown in fig. 4. For example, when the PCIe device needs to reset by itself, a message that needs to be reset may be sent to the HOST, after the driver corresponding to the PCIe device in the HOST receives the message that the PCIe device needs to reset, the driver may notify a device monitoring daemon (daemon) in the user space, and after the device monitoring daemon receives the message that needs to reset, the device monitoring daemon may call a reset control method interface corresponding to the PCIe device to reset the PCIe device, and then rescan the PCIe device through Sysfs. Therefore, the PCIe equipment can be rescanned under the condition that the PCIe bus does not support hot plug.
And S204, when the target communication equipment is reset according to the equipment reset triggering event, scanning the target communication equipment.
Specifically, the reset refers to restoring the communication device to an original state, which may include a state of the communication device when shipped from a factory. Scanning the communication device refers to acquiring information of the communication device and determining whether the communication device exists according to the acquired information of the communication device. The communication device being present means that the communication device can perform basic data communication with the target terminal, and the communication device being absent may be that the communication device is physically disconnected from the terminal. Wherein the basic data communication may include the terminal obtaining device information of the communication device.
In some embodiments, when scanning the target communication device, the target terminal may scan the interface of the target communication device according to the information of the device interface corresponding to the target communication device. The target terminal can also perform scanning operation on the devices on the device interfaces. Specifically, the target terminal may reset the target communication device according to the device reset trigger event, and scan the devices on each device interface on the target terminal after the reset operation is performed.
In some embodiments, after the target terminal resets the target communication device, the target communication device may send a device scanning instruction to the target terminal in an interrupt manner, so that the target terminal scans the target communication device. For example, when the PCIe device is reset, the HOST may be notified by a GPIO (General-purpose input/output) interrupt to rescan the PCIe bus and re-enumerate the PCIe device.
In some embodiments, the terminal may scan each communication device through a preset device scanning tool, and store the scanned hardware identification information and device address information of each communication device in a preset data structure. The predetermined data structure may be, for example, a linked list data structure. The hardware identification information may be, for example, device hardware identification ID information, and the device address information may be an interface address, such as a bus address, of a device interface corresponding to the communication device. The default device scanning tool may be, for example, the Sysfs file system, which is a special file system used to organize devices in the terminal's system into a hierarchy and provide detailed kernel data structure information to the user mode program. For example, when the system of the terminal is normally powered on, the terminal may search, through the Sysfs file system, hardware identification ID information and device address information of all devices on the PCIe bus after completing scanning of the PCIe device, and store the hardware identification ID information and the device address information in a linked list data structure.
In some embodiments, the terminal may obtain the reset driver files respectively corresponding to the communication devices. The reset driver file may be, for example, a reset pin driver, the reset pin driver may provide a control method interface for resetting the device, and the terminal may reset the device using the control method interface.
S206, when the target communication equipment is determined to be scanned, a target drive file corresponding to the target communication equipment is obtained, the target communication equipment is configured by using the target drive file, and the configured target communication equipment is obtained, so that the target terminal and the configured target communication equipment establish communication connection.
Specifically, the Driver file may also be referred to as a Driver (Driver), which is a special program for causing a computer (terminal) to communicate with a device. The terminal can perform data communication with the communication device through the driver file. The configured target communication device refers to a communication device which drives a target communication module through a target drive file. The configured target communication equipment can work normally and can carry out complex data communication with the target terminal except basic data communication. The complex data communication may include the terminal acquiring the operation data of the normal operation state from the communication device, and the like.
In some embodiments, the target terminal may store driver files corresponding to a plurality of types of communication devices. A communication device may correspond to a driver file. The terminal can obtain the corresponding driving file from the stored driving file according to the information of the communication equipment. The information of the communication device may include a number of the communication device, and the code of the communication device may include at least one of a vendor number (VID) or a device number (DiD).
According to the communication equipment connection method, the equipment reset triggering event corresponding to the target communication equipment is obtained, the target communication equipment is reset according to the equipment reset triggering event, the target communication equipment is scanned after the target communication equipment is reset according to the equipment reset triggering event, the target driving file corresponding to the target communication equipment is obtained when the target communication equipment is determined to be scanned, the target communication equipment is configured by using the target driving file, the configured target communication equipment is obtained, so that the target terminal and the configured target communication equipment are in communication connection, the target communication module and the target terminal are automatically connected after the target communication module is reset, and the efficiency of connecting the communication equipment is improved.
At present, when a PCIe bus in a Linux system does not support hot plug, after the PCIe device is reset, HOST cannot re-scan and enumerate the PCIe device. The PCIe device driver in the HOST can not normally drive the PCIe device into a normal state, so that the communication between the HOST and the PCIe device is interrupted. By adopting the communication equipment connection provided by the application, after the PCIe equipment is reset, the HOST can automatically scan the PCIe equipment, so that the normal communication connection is quickly established with the PCIe equipment, and the efficiency of the HOST for connecting the communication equipment is improved. In a Linux system, a PCIe device driver may communicate with the HOST in a form of an emulated USB (Universal Serial Bus), or in a form of a Virtual Local Area Network (VLAN) configured by a Virtual Network card of the PCIe device driver.
In some embodiments, obtaining a device reset trigger event corresponding to the target communication device includes: and monitoring the running state of the target communication equipment, and determining to acquire an equipment reset triggering event when the running state of the target communication equipment is monitored to be abnormal.
In particular, the operational state of the communication device may be selected from normal and abnormal. The operating state of the communication device being abnormal may include the communication device not being able to operate normally. When the terminal monitors that the operation state of the communication equipment is abnormal, the terminal can determine to monitor the equipment reset triggering event.
In the above embodiment, when the running state of the device is abnormal, it is determined that the obtained device reset triggering event may perform resetting, scanning, and driver file configuration on the device when the device is abnormal, so that the device is helped to recover to the normal running state.
In some embodiments, the acquiring of the device reset trigger event corresponding to the target communication device in step S202 includes: acquiring a file upgrading request for upgrading a target device file in target communication equipment; and when the corresponding upgrade file is written into the target communication equipment according to the file upgrade request, determining to acquire an equipment reset triggering event.
Specifically, a device file refers to a file in a device (communication device), and the device file is, for example, firmware of the communication device. The file upgrading request is used for requesting upgrading of the equipment file. The target device file refers to a device file in the target communication device.
In some embodiments, the terminal may obtain a file upgrade request corresponding to a device file in the communication device, obtain a corresponding upgrade file from the file server according to the file upgrade request, and write the upgrade file into the communication module. After the upgrade file is written into the communication module, the upgrade file can be normally used by the communication module by resetting and reacquiring the communication device. Therefore, the terminal can determine to acquire the device reset triggering event when the upgrade file is written into the communication module.
In the above embodiment, when the upgrade file is written into the communication module, the device reset trigger event is determined to be acquired, and when the file in the device is upgraded, the device can be reset, scanned, and configured with the drive file, so that the device can use the upgrade file normally.
In some embodiments, as shown in fig. 5, resetting the target communication device according to the device reset triggering event in step S204 includes:
and S502, calling a target device reset interface corresponding to the target communication device according to the device reset triggering event.
Specifically, the device reset interface is used for resetting the communication device. Different communication devices can correspond to different device reset interfaces, and the device reset interfaces corresponding to various types of communication devices can be stored in the target terminal. The target device reset interface is a device reset interface corresponding to the target communication device and is used for resetting the target communication device. The device reset interface may be an interface in a reset pin driver, for example, may be a control method interface in a reset pin driver that resets a PCIe device. The system program or other program of the terminal can call the device reset interface to reset the device. For example, the target terminal device may control a reset pin of the PCIe device through a BIOS (Basic Input Output System) or a GPIO, so as to reset the PCIe device.
S504, the reset pin of the target communication device is reset through the target device reset interface, so that the target communication device is reset.
Specifically, the target terminal may utilize the target device reset interface to perform device operation on the level of a reset pin of the target communication device, for example, to set the level of the reset pin to a reset level, where the reset level refers to a level corresponding to a reset state, so that the target communication device realizes reset.
In the above embodiment, according to the device reset triggering event, the target device reset interface corresponding to the target communication device is called, and the reset pin of the target communication device is reset by using the target device reset interface, so as to reset the target communication device, thereby enabling the terminal to automatically reset the communication module, and enabling the terminal to determine the reset time of the communication device, so that under the condition that the device interface does not support hot plugging, the terminal can obtain the communication device according to the reset time, thereby enabling the communication device to normally communicate with the terminal, and improving the connection efficiency of the communication device.
In some embodiments, when it is determined that the target communication device is scanned, acquiring the target driver file corresponding to the target communication device includes: acquiring a target supplier number and a target equipment number corresponding to target communication equipment, and performing logical operation according to the target supplier number and the target equipment number to obtain target equipment information; and comparing the target device information with the device information value range, and when the comparison is consistent, determining that the target communication device is scanned, and acquiring a target drive file corresponding to the target communication device.
In particular, the logical operation may include at least one of a bitwise and operation, a bitwise or operation, or the like. The device information is logically operated according to the provider number and the device number of the communication device, and may be, for example, a result of a bitwise and operation between the provider number and the device number. The target provider number and the target device number are numbers of the target communication device acquired in a process of scanning the target communication device. The device information value range may be a range of devices according to needs, and may be non-0 data, for example. And when the target device information conforms to the device information value range, determining that the target communication device is scanned, otherwise, determining that the target communication device is not scanned.
In some embodiments, the terminal may compare the target device information with the device information value range, and when the comparison is consistent, determine that the target communication device is scanned, and obtain a target driver file corresponding to the target communication device. The consistency of comparison means that the target device information meets the device information value range, that is, the data corresponding to the target device information belongs to the data included in the device information value range.
In some embodiments, the target terminal sends a number obtaining instruction to the target communication device through a device interface corresponding to the target communication device, and when the target communication device exists, the target communication device may return the number to the terminal. And when the target communication equipment does not exist, the target terminal acquires the preset number returned by the interface. The target terminal can determine that the target communication device does not exist, namely the target communication device is not scanned according to the preset number and the device information value range.
In the above embodiment, when the comparison is consistent, the target communication device is determined to be scanned, and the target driver file corresponding to the target communication device is acquired, so that the configuration of the driver file can be performed for the scanned device, and the scanned device is restored to a normal operating state.
In some embodiments, obtaining the target driver file corresponding to the target communication device includes: and searching and obtaining a target drive file corresponding to the target communication equipment from the candidate drive file set according to the target equipment number and the target supplier number, wherein the candidate drive file set comprises drive files corresponding to the plurality of communication equipment respectively.
Specifically, a candidate driver file set may be stored in the terminal, the candidate driver file set may include driver files corresponding to the respective communication devices, and the driver files in the candidate driver file set may be stored in association with the numbers of the corresponding communication devices, for example, in association with at least one of the vendor numbers or the device numbers of the communication devices.
In some embodiments, the driver files in the candidate driver file set may be stored in association with the provider number and the device number of the communication device, and the target terminal may search for the target driver file corresponding to the target communication device from the candidate driver file set according to the target device number and the target provider number corresponding to the target communication device.
In the embodiment, the target drive file corresponding to the target communication device is searched and obtained from the candidate drive file set according to the target device number and the target provider number, and the drive file corresponding to the communication device can be quickly and accurately obtained, so that the connection efficiency of the communication device is improved.
It should be understood that, although the steps in the flowcharts of the above embodiments are shown in sequence as indicated by the arrows, the steps are not necessarily executed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts of the above embodiments may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of the steps or stages in other steps.
In some embodiments, as shown in fig. 6, there is provided a communication device connecting apparatus including: a device reset trigger event obtaining module 602, a reset scanning module 604, and a configured target communication device obtaining module 606, where:
the device reset triggering event obtaining module 602 is configured to obtain a device reset triggering event corresponding to the target communication device, and reset the target communication device according to the device reset triggering event.
The reset scanning module 604 is configured to scan the target communication device after the target communication device is reset according to the device reset trigger event.
The configured target communication device obtaining module 606 is configured to, when it is determined that the target communication device is scanned, obtain a target driver file corresponding to the target communication device, configure the target communication device by using the target driver file, and obtain the configured target communication device, so that the target terminal establishes a communication connection with the configured target communication device.
In some embodiments, the device reset triggering event obtaining module 602 is further configured to monitor an operating state of the target communication device, determine to obtain the device reset triggering event when it is monitored that the operating state of the target communication device is abnormal, and send a device reset instruction to the target communication device according to the device reset triggering event.
In some embodiments, the device reset triggering event acquisition module 602 includes:
and the file upgrading request acquisition unit is used for acquiring a file upgrading request for upgrading a target device file in the target communication device.
And the device resetting instruction sending unit is used for determining to obtain a device resetting trigger event when the corresponding upgrade file is written into the target communication device according to the file upgrading request, and sending a device resetting instruction to the target communication device according to the device resetting trigger event.
In some embodiments, the reset scan module 604 includes:
the target equipment reset interface calling unit is used for calling a target equipment reset interface corresponding to the target communication equipment according to the equipment reset triggering event;
and the reset operation unit is used for carrying out reset operation on a reset pin of the target communication equipment by using the target equipment reset interface so as to realize the reset of the target communication equipment.
In some embodiments, the configured target communication device obtaining module 606 includes:
and the target equipment information obtaining unit is used for obtaining a target supplier number and a target equipment number corresponding to the target communication equipment, and carrying out logic operation according to the target supplier number and the target equipment number to obtain the target equipment information.
And the target drive file obtaining unit is used for comparing the target equipment information with the equipment information value range, and when the comparison is consistent, determining that the target communication equipment is scanned, and obtaining the target drive file corresponding to the target communication equipment.
In some embodiments, the target driver file obtaining unit is further configured to search for a target driver file corresponding to the target communication device from a candidate driver file set according to the target device number and the target provider number, where the candidate driver file set includes driver files corresponding to the plurality of communication devices, respectively.
For the specific definition of the communication device connection means, reference may be made to the above definition of the communication device connection method, which is not described herein again. The respective modules in the above communication device connection apparatus may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In some embodiments, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 7. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a communication device connection method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In some embodiments, a computer device is provided, comprising a memory in which a computer program is stored and a processor which, when executing the computer program, carries out the steps of the above-described communication device connection method.
In some embodiments, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, realizes the steps of the above-mentioned communication device connection method.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of communication device connection, performed by a target terminal, the method comprising:
acquiring a device reset triggering event corresponding to target communication equipment, and resetting the target communication equipment according to the device reset triggering event;
scanning the target communication device after resetting the target communication device according to the device reset triggering event;
and when the target communication equipment is determined to be scanned, acquiring a target drive file corresponding to the target communication equipment, and configuring the target communication equipment by using the target drive file to obtain the configured target communication equipment, so that the target terminal establishes communication connection with the configured target communication equipment.
2. The method of claim 1, wherein the obtaining of the device reset trigger event corresponding to the target communication device comprises:
and monitoring the running state of the target communication equipment, and determining to acquire the equipment reset triggering event when the running state of the target communication equipment is monitored to be abnormal.
3. The method of claim 1, wherein the obtaining of the device reset trigger event corresponding to the target communication device comprises:
acquiring a file upgrading request for upgrading a target device file in the target communication device;
and when the corresponding upgrade file is written into the target communication equipment according to the file upgrade request, determining to acquire the equipment reset trigger event.
4. The method of claim 1, wherein resetting the target communication device according to the device reset triggering event comprises:
calling a target equipment reset interface corresponding to the target communication equipment according to the equipment reset triggering event;
and carrying out reset operation on a reset pin of the target communication equipment by utilizing the reset interface of the target equipment so as to reset the target communication equipment.
5. The method according to claim 1, wherein when it is determined that the target communication device is scanned, acquiring a target driver file corresponding to the target communication device comprises:
acquiring a target supplier number and a target equipment number corresponding to the target communication equipment, and performing logical operation according to the target supplier number and the target equipment number to obtain target equipment information;
and comparing the target device information with a device information value range, and when the comparison is consistent, determining that the target communication device is scanned, and acquiring a target drive file corresponding to the target communication device.
6. The method according to claim 5, wherein the obtaining of the target driver file corresponding to the target communication device comprises:
and searching and obtaining a target drive file corresponding to the target communication equipment from a candidate drive file set according to the target equipment number and the target supplier number, wherein the candidate drive file set comprises drive files corresponding to a plurality of communication equipment respectively.
7. An apparatus for connecting communication devices, the apparatus comprising:
the device resetting triggering event acquiring module is used for acquiring a device resetting triggering event corresponding to the target communication device and resetting the target communication device according to the device resetting triggering event;
the reset scanning module is used for scanning the target communication equipment after the target communication equipment is reset according to the equipment reset triggering event;
and the configured target communication equipment obtaining module is used for obtaining a target drive file corresponding to the target communication equipment when the target communication equipment is determined to be scanned, and configuring the target communication equipment by using the target drive file to obtain the configured target communication equipment so as to establish communication connection between the target terminal and the configured target communication equipment.
8. The apparatus according to claim 7, wherein the device reset triggering event obtaining module is further configured to monitor an operating state of the target communication device, determine to obtain the device reset triggering event when the operating state of the target communication device is monitored to be abnormal, and send a device reset instruction to the target communication device according to the device reset triggering event.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 6.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN202010758528.0A 2020-07-31 2020-07-31 Communication device connection method, device, computer device and storage medium Active CN111953753B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010758528.0A CN111953753B (en) 2020-07-31 2020-07-31 Communication device connection method, device, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010758528.0A CN111953753B (en) 2020-07-31 2020-07-31 Communication device connection method, device, computer device and storage medium

Publications (2)

Publication Number Publication Date
CN111953753A true CN111953753A (en) 2020-11-17
CN111953753B CN111953753B (en) 2023-07-21

Family

ID=73339838

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010758528.0A Active CN111953753B (en) 2020-07-31 2020-07-31 Communication device connection method, device, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN111953753B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000172244A (en) * 1998-12-01 2000-06-23 Digital Electronics Corp Video picture display method
US20030189930A1 (en) * 2001-10-18 2003-10-09 Terrell William C. Router with routing processors and methods for virtualization
CN108228374A (en) * 2017-12-28 2018-06-29 华为技术有限公司 A kind of fault handling method of equipment, apparatus and system
CN109388604A (en) * 2018-11-01 2019-02-26 郑州云海信息技术有限公司 A kind of hot plug control method based on PCIe, device and storage medium
CN109739449A (en) * 2018-12-29 2019-05-10 森大(深圳)技术有限公司 Method, apparatus, equipment and the medium of print parameters and print data synchronization process
CN109815043A (en) * 2019-01-25 2019-05-28 华为技术有限公司 Fault handling method, relevant device and computer storage medium
CN110134446A (en) * 2019-04-18 2019-08-16 深圳市广和通无线股份有限公司 Start the method for PCIE device scanning
CN110300371A (en) * 2019-07-09 2019-10-01 程新宇 A kind of computer equipment manager method based on Internet of Things behavior economics
CN111273923A (en) * 2018-12-05 2020-06-12 华为技术有限公司 FPGA (field programmable Gate array) upgrading method based on PCIe (peripheral component interface express) interface

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000172244A (en) * 1998-12-01 2000-06-23 Digital Electronics Corp Video picture display method
US20030189930A1 (en) * 2001-10-18 2003-10-09 Terrell William C. Router with routing processors and methods for virtualization
CN108228374A (en) * 2017-12-28 2018-06-29 华为技术有限公司 A kind of fault handling method of equipment, apparatus and system
CN109388604A (en) * 2018-11-01 2019-02-26 郑州云海信息技术有限公司 A kind of hot plug control method based on PCIe, device and storage medium
CN111273923A (en) * 2018-12-05 2020-06-12 华为技术有限公司 FPGA (field programmable Gate array) upgrading method based on PCIe (peripheral component interface express) interface
CN109739449A (en) * 2018-12-29 2019-05-10 森大(深圳)技术有限公司 Method, apparatus, equipment and the medium of print parameters and print data synchronization process
CN109815043A (en) * 2019-01-25 2019-05-28 华为技术有限公司 Fault handling method, relevant device and computer storage medium
CN110134446A (en) * 2019-04-18 2019-08-16 深圳市广和通无线股份有限公司 Start the method for PCIE device scanning
CN110300371A (en) * 2019-07-09 2019-10-01 程新宇 A kind of computer equipment manager method based on Internet of Things behavior economics

Also Published As

Publication number Publication date
CN111953753B (en) 2023-07-21

Similar Documents

Publication Publication Date Title
US9240924B2 (en) Out-of band replicating bios setting data across computers
CN110134446B (en) Method for starting PCIE equipment scanning
US10866623B2 (en) Information handling system and method to detect and recover from no power/no post failures
CN106201563B (en) Configuration method and device of starting parameters and method and device for starting mainboard
US7313684B2 (en) Method and apparatus for booting a computer system
US11144416B2 (en) Device fault processing method, apparatus, and system
US20150178096A1 (en) Remote bios update in system having multiple computers
US9448889B2 (en) BIOS failover update with service processor
US9448808B2 (en) BIOS update with service processor without serial peripheral interface (SPI) access
US9529410B2 (en) Service processor (SP) initiated data transaction with BIOS utilizing power off commands
WO2020015203A1 (en) System recovery method and device
US9529750B2 (en) Service processor (SP) initiated data transaction with bios utilizing interrupt
CN109426613B (en) Method for retrieving debugging data in UEFI and computer system thereof
US8335891B2 (en) Method and system for configuring a storage array
CN101373433A (en) Method for updating BIOS and computer and system using the same
CN105144074A (en) Block storage using a hybrid memory device
US20030226137A1 (en) Interface device, and method and computer readable product for updating firmware in the interface device
CN102439557A (en) Hybrid storage device
CN115314416B (en) Network card state automatic detection method and device, electronic equipment and storage medium
KR20130068630A (en) Method for initializing embedded device and apparatus thereof
CN107766097B (en) Electronic device for executing starting operation based on starting instruction provided by endpoint device
US20210334111A1 (en) Systems And Methods For Collecting Deep Operating System (OS) Telemetry
CN108958837B (en) Method, system and medium for dynamically configuring ME firmware
US20140136777A1 (en) Method and system for configuring a storage array
CN111953753B (en) Communication device connection method, device, computer device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant