CN116166334A - Communication equipment management method and device - Google Patents

Communication equipment management method and device Download PDF

Info

Publication number
CN116166334A
CN116166334A CN202211687463.0A CN202211687463A CN116166334A CN 116166334 A CN116166334 A CN 116166334A CN 202211687463 A CN202211687463 A CN 202211687463A CN 116166334 A CN116166334 A CN 116166334A
Authority
CN
China
Prior art keywords
communication
target
plug
input
management method
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
CN202211687463.0A
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.)
Luster LightTech Co Ltd
Original Assignee
Luster LightTech 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 Luster LightTech Co Ltd filed Critical Luster LightTech Co Ltd
Priority to CN202211687463.0A priority Critical patent/CN116166334A/en
Publication of CN116166334A publication Critical patent/CN116166334A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Abstract

The application discloses a communication equipment management method and device, and belongs to the technical field of communication equipment processing. The communication device management method includes: classifying a plurality of communication devices based on a communication mode to obtain communication devices corresponding to a plurality of types; respectively packaging communication equipment corresponding to each type to obtain a plurality of communication plug-ins corresponding to the plurality of types; receiving a first input of a user to a target communication plugin of the plurality of communication plugins; the target communication plug-in is invoked in response to the first input. According to the communication equipment management method, when the new type of communication equipment is added in the actual application process, the communication plug-in package can be carried out according to the standard communication interface, and when the new type of communication mode is added, only the communication plug-in corresponding to the new type of communication mode is needed to be added in the current communication library, so that the expansibility of the communication equipment is enhanced, and the operation steps are reduced.

Description

Communication equipment management method and device
Technical Field
The application belongs to the technical field of communication equipment processing, and particularly relates to a communication equipment management method and device.
Background
When the industrial visual inspection software is designed, communication equipment of different types and different models are required to be compatible, one communication equipment in the common industrial visual inspection software design method can only be compatible with one type of communication mode, when a new type of communication mode is added, new communication equipment is required to be newly built, the implementation mode is complex, and the expansibility of the communication equipment is limited.
Disclosure of Invention
The present application aims to solve at least one of the technical problems existing in the prior art. Therefore, the application provides the communication equipment management method and the device, which reduce the update frequency of industrial visual detection software and enhance the expansibility of the communication equipment.
In a first aspect, the present application provides a communication device management method, including:
classifying a plurality of communication devices based on a communication mode to obtain communication devices corresponding to a plurality of types;
respectively packaging communication equipment corresponding to each type to obtain a plurality of communication plug-ins corresponding to the plurality of types;
receiving a first input of a user to a target communication plugin of the plurality of communication plugins;
the target communication plug-in is invoked in response to the first input.
According to the communication equipment management method provided by the embodiment of the application, the plurality of communication equipment is classified based on the communication mode, the communication equipment corresponding to the plurality of types is obtained, the communication equipment corresponding to each type is packaged, the plurality of communication plugins corresponding to the plurality of types are obtained, the first input of the target communication plugins in the plurality of communication plugins by a user is received, the target communication plugins are called in response to the first input, the communication plugins can be packaged according to the standard communication interface when the new type of communication equipment is added, and when the new type of communication mode is added, the expansibility of the communication equipment is enhanced and the operation steps are reduced only by adding the communication plugins corresponding to the new type of communication mode in the current communication library.
The communication device management method according to one embodiment of the present application encapsulates communication devices corresponding to each type, and obtains a plurality of communication plugins corresponding to the plurality of types, including:
and encapsulating the communication equipment corresponding to each type based on the protocol type to obtain a plurality of communication plugins.
According to the communication equipment management method of one embodiment of the application, the communication equipment management method is characterized in that each type corresponds to the corresponding protocol type
And then a plurality of communication plug-ins are obtained, so that when other types of communication equipment are required to be added, the communication plug-ins are packaged according to the standard communication interfaces, the expansibility of the communication equipment is enhanced, and the practicability of a user is reduced
Threshold has improved user's use experience.
The communication device management method according to one embodiment of the present application, in response to the first input, invokes the target communication plug-in, including:
invoking, by a communication plugin manager, the target communication plugin in response to the first input; the communication plug-in 0 manager is a cross-platform manager.
According to the communication device management method of the embodiment of the application, the expansibility of device communication is enhanced by calling the target communication plugin through the communication plugin manager in response to the first input, and loading and removing of independent configuration files corresponding to the communication plugin library and the communication plugin can be facilitated by setting the communication plugin manager to be a cross-platform manager
The universal interface is packaged into a universal interface for other platforms, so that the usability of the communication plug-in is ensured, the cross-platform 5-platform equipment can be supported, and the applicable scene of the industrial visual detection software is enhanced.
The communication device management method of one embodiment of the application further comprises the following steps:
determining a target implementation mode corresponding to a target library based on the type of the target library;
and constructing the target library based on the target implementation mode, wherein the target library is a three-party library related to the communication equipment.
0 according to a communication device management method of one embodiment of the present application, a target library is determined by based on the type of the target library
The corresponding target implementation mode and the target library is constructed based on the target implementation mode, so that the communication related module can support the compiling operation of a plurality of platforms, the cross-platform operation of the communication protocol is realized, and the expansibility of the communication equipment is further improved.
According to the communication equipment management method of the embodiment of the application, the communication plug-ins comprise independent configuration files, and the communication plug-ins are independent from each other.
5 according to a communication device management method of one embodiment of the present application, by setting the communication plug-in to include a separate profile,
and each communication plug-in is mutually independent, so that each plug-in can be ensured to be independently operated and not mutually interfered when the communication equipment is added and removed, the stability of the communication equipment is enhanced, and the usability of the communication plug-in is ensured.
According to the communication equipment management method of the embodiment of the application, independent configuration files included in each communication plug-in are configured based on the same communication configuration template.
0 according to a communication device management method of one embodiment of the present application, configuration is performed by being based on the same communication configuration template
The independent configuration files corresponding to the communication plug-ins are convenient for a user to configure the independent configuration files corresponding to the communication plug-ins directly based on the communication configuration templates, so that the operation threshold of the user is reduced, the configuration efficiency is improved, and the use experience of the user is further improved.
In a second aspect, the present application provides a communication device management apparatus, the apparatus comprising:
the first processing module is used for classifying the plurality of communication devices based on the communication mode and acquiring the communication devices corresponding to the plurality of types;
the second processing module is used for respectively packaging the communication equipment corresponding to each type and acquiring a plurality of communication plugins corresponding to the plurality of types;
the third processing module is used for receiving first input of a user to a target communication plugin in the plurality of communication plugins;
and a fourth processing module for invoking the target communication plugin in response to the first input.
According to the communication equipment management device provided by the embodiment of the application, the plurality of communication equipment is classified based on the communication mode, the communication equipment corresponding to the plurality of types is obtained, then the communication equipment corresponding to each type is respectively packaged, the plurality of communication plugins corresponding to the plurality of types are obtained, then the first input of the target communication plugins in the plurality of communication plugins by a user is received, the target communication plugins are called in response to the first input, the communication plugins can be packaged according to the standard communication interface when the new type of communication equipment is added, and when the new type of communication mode is added, the expansibility of the communication equipment is enhanced and the operation steps are reduced only by adding the communication plugins corresponding to the new type of communication mode in the current communication library.
In the communication device management apparatus according to one embodiment of the present application, the second processing module may be further configured to encapsulate, based on a protocol type, a communication device corresponding to each type, and obtain a plurality of communication plugins.
According to the communication equipment management device of the embodiment of the application, the communication equipment corresponding to each type is packaged based on the protocol type, and then the plurality of communication plug-ins are obtained, so that when other types of communication equipment are required to be added, the communication plug-ins can be packaged according to the standard communication interfaces, the expansibility of the communication equipment is enhanced, the practical threshold of a user is reduced, and the use experience of the user is improved.
The communication device management apparatus of one embodiment of the present application, the fourth processing module may be further configured to invoke, by the communication plug-in manager, the target communication plug-in response to the first input; the communication plug-in manager is a cross-platform manager.
According to the communication equipment management device of the embodiment of the application, the target communication plugin is called through the communication plugin manager through responding to the first input, the expansibility of equipment communication is enhanced, the communication plugin manager is set to be a cross-platform manager, loading and removing of independent configuration files corresponding to the communication plugin library and the communication plugin are facilitated, the related general interfaces can be packaged into the general interfaces for other platforms to use, usability of the communication plugin is guaranteed, cross-platform equipment can be supported, and the applicable scene of industrial vision detection software is enhanced.
The communication device management apparatus of one embodiment of the present application may further include a fifth processing module, configured to determine, based on a type of the target library, a target implementation manner corresponding to the target library;
based on the target implementation mode, a target library is constructed, and the target library is a three-party library related to the communication equipment.
According to the communication equipment management device of the embodiment of the application, the target implementation mode corresponding to the target library is determined based on the type of the target library, and the target library is constructed based on the target implementation mode, so that communication related modules can support compiling operation of a plurality of platforms, cross-platform operation of a communication protocol is realized, and further the expansibility of the communication equipment is improved.
The communication device management apparatus according to one embodiment of the present application may further include a sixth processing module, configured to include an independent configuration file in the communication plugins, where each communication plugin is independent of each other.
According to the communication equipment management device of the embodiment of the application, the communication plug-ins comprise independent configuration files and are mutually independent, so that each plug-in can be ensured to be independently operated and not to interfere with each other when the communication equipment is added and removed, the stability of the communication equipment is enhanced, and the usability of the communication plug-ins is ensured.
The communication device management apparatus according to one embodiment of the present application may further include a seventh processing module, configured to configure the independent configuration files included in each communication plug-in based on the same communication configuration template.
According to the communication equipment management device of the embodiment of the application, the independent configuration files corresponding to the communication plug-ins are configured based on the same communication configuration template, so that a user can configure the independent configuration files corresponding to the communication plug-ins directly based on the communication configuration template, the operation threshold of the user is reduced, the configuration efficiency is improved, and the user experience is further improved.
In a third aspect, the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the communication device management method according to the first aspect described above when executing the computer program.
In a fourth aspect, the present application provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a communication device management method as described in the first aspect above.
In a fifth aspect, the present application provides a computer program product comprising a computer program which, when executed by a processor, implements a communication device management method as described in the first aspect above.
The above technical solutions in the embodiments of the present application have at least one of the following technical effects:
the communication plug-in module is used for acquiring the communication devices corresponding to the multiple types by classifying the multiple communication devices based on the communication mode, then respectively encapsulating the communication devices corresponding to the multiple types, acquiring the multiple communication plug-ins corresponding to the multiple types, then receiving the first input of the target communication plug-in module in the multiple communication plug-ins by a user, and calling the target communication plug-in module in response to the first input, so that the communication plug-in module can be encapsulated according to a standard communication interface when the new type of communication device is added in the actual application process, and only the communication plug-in module corresponding to the new type of communication mode is added in the current communication library when the new type of communication mode is added, thereby enhancing the expansibility of the communication device and reducing the operation steps.
Furthermore, by packaging the communication devices corresponding to each type based on the protocol type and then obtaining a plurality of communication plug-ins, when other types of communication devices need to be added, the communication plug-ins can be packaged according to the standard communication interfaces, so that the expansibility of the communication devices is enhanced, the practical threshold of a user is reduced, and the use experience of the user is improved.
Furthermore, by responding to the first input and calling the target communication plugin through the communication plugin manager, the expansibility of the device communication is enhanced, and by setting the communication plugin manager to be a cross-platform manager, the loading and the removal of independent configuration files corresponding to the communication plugin library and the communication plugin are facilitated, the related general interfaces can be packaged into the general interfaces for other platforms, the usability of the communication plugin is ensured, the cross-platform device can be supported, and the application scene of the industrial visual detection software is enhanced.
Still further, through setting up the communication plug-in components and including independent configuration file to set up each communication plug-in components mutually independent, can guarantee that every plug-in components can independent operation when increasing and removing communication equipment, mutually noninterfere, strengthened the stability of communication equipment, guaranteed the ease of use of communication plug-in components.
Additional aspects and advantages of the application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, wherein:
fig. 1 is a schematic flow chart of a communication device management method provided in an embodiment of the present application;
fig. 2 is one of schematic diagrams of a communication device management method according to an embodiment of the present application;
fig. 3 is a second schematic diagram of a communication device management method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a communication device management apparatus provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 6 is a hardware schematic of an electronic device according to an embodiment of the present application.
Detailed Description
Technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application are within the scope of the protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type and not limited to the number of objects, e.g., the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The communication device management method of the present application is described below with reference to fig. 1 to 3.
The execution subject of the communication device management method may be a server, or may be a communication device management apparatus, or may also be a terminal of a user, including but not limited to a mobile terminal and a non-mobile terminal.
For example, mobile terminals include, but are not limited to, cell phones, PDA smart terminals, tablet computers, vehicle-mounted smart terminals, and the like; non-mobile terminals include, but are not limited to, PC-side and the like.
As shown in fig. 1, the communication device management method includes: step 110, step 120, step 130 and step 140.
Step 110, classifying the plurality of communication devices based on the communication mode, and obtaining the communication devices corresponding to the plurality of types.
In this step, the communication modes include serial ports, network ports, PLC Modbus, DIO, and the like.
And classifying the communication equipment according to communication modes such as serial ports, network ports, PLC Modbus, DIO and the like, and obtaining a plurality of types of corresponding communication equipment.
In the method, the plurality of communication devices are classified based on the communication mode, so that the communication devices are conveniently packaged into corresponding types of communication plug-ins in the actual execution process, and when new types of communication devices are needed to be added later, the communication plug-ins can be directly packaged according to the standard communication interfaces, software is not required to be reissued, and the update frequency of the software is reduced.
And 120, respectively packaging the communication equipment corresponding to each type to obtain a plurality of communication plugins corresponding to a plurality of types.
In this step, the communication plug-in may be used to define a generic plug-in interface.
The communication plug-in may encapsulate communication protocols and corresponding generic communication interfaces closely related to the communication and provide a communication interface to the user.
The communication plug-ins are in one-to-one correspondence with the communication devices.
In some embodiments, step 120 may include: and encapsulating the communication equipment corresponding to each type based on the protocol type to obtain a plurality of communication plugins.
In this embodiment, the communication devices corresponding to each type may be encapsulated based on the TCP protocol, or the communication devices corresponding to each type may be encapsulated based on the UDP protocol, or the communication devices corresponding to each type may be encapsulated based on other protocol types, or may be customized based on the user requirement, which is not limited in this application.
In the actual implementation process, the communication devices corresponding to the types are encapsulated based on the protocol types, and class diagrams of the communication plug-ins are obtained as shown in fig. 2.
Fig. 2 includes conventional communication plugins, such as TcpClient, tcpServer, modbus, dio and Mc communication devices, and other types of communication devices are added in practical applications, and the communication plugin package can be performed according to a standard communication interface.
In the application, the communication devices are classified according to communication modes such as serial ports, network ports, PLC Modbus and DIO, the communication devices corresponding to all types are packaged based on protocol types, and a plurality of communication plug-ins corresponding to a plurality of communication devices are obtained.
The communication equipment corresponding to each type is packaged based on the protocol type, so that when the new type of communication equipment is added in the subsequent application process, the communication plug-in package can be directly carried out according to the standard communication interface, and the expansibility of the communication equipment is enhanced.
According to the communication equipment management method provided by the embodiment of the application, the communication equipment corresponding to each type is packaged based on the protocol type, and then a plurality of communication plug-ins are obtained, so that when other types of communication equipment are required to be added, the communication plug-ins can be packaged according to the standard communication interfaces, the expansibility of the communication equipment is enhanced, the practical threshold of a user is reduced, and the use experience of the user is improved.
In some embodiments, the communication plugins include independent configuration files, and each communication plugin is independent of the other.
In this embodiment, the individual configuration files are in a one-to-one correspondence with the communication plug-ins, each plug-in containing an individual configuration file corresponding thereto.
In some embodiments, the individual configuration files included with each communication plug-in are configured based on the same communication configuration template.
In this embodiment, the independent configuration files corresponding to the communication plug-ins are configured based on the same communication configuration template.
For example, the independent configuration file corresponding to the communication plug-in may include: at least one of an ID of the plug-in, an installation address of the plug-in, an icon of the plug-in, description information of the plug-in, a location of the plug-in exposed in the application, and an associated specific event of the plug-in.
The communication configuration template can be customized based on user requirements, and the application is not limited.
According to the communication equipment management method provided by the embodiment of the application, the independent configuration files corresponding to the communication plug-ins are configured based on the same communication configuration template, so that a user can configure the independent configuration files corresponding to the communication plug-ins directly based on the communication configuration template, the operation threshold of the user is reduced, the configuration efficiency is improved, and the user experience is further improved.
According to the communication equipment management method provided by the embodiment of the application, the communication plug-ins are arranged to comprise independent configuration files, and the communication plug-ins are arranged to be independent of each other, so that each plug-in can be ensured to operate independently when the communication equipment is added and removed, the mutual noninterference is avoided, the stability of the communication equipment is enhanced, and the usability of the communication plug-in is ensured.
Step 130, receiving a first input from a user to a target communication card of the plurality of communication cards.
In this step, the target communication plug-in may be selected based on the actual needs of the user.
The first input is for selecting a target communication card from a plurality of communication cards.
Wherein the first input may be at least one of:
first, the first input may be a touch operation including, but not limited to, a click operation, a slide operation, a press operation, and the like.
In this embodiment, the receiving the first input of the user may be receiving a touch operation of the user in a display area of the terminal display screen.
In order to reduce the user's rate of misoperation, the active area of the first input may be defined within a specific area, such as the upper middle area of the user input interface; or in a state where input information is displayed to call the target communication plug-in interface,
displaying a target control on the current interface, and touching the target control to realize first input; or the first input is set to 5 successive multi-tap operations to the display area within the target time interval.
Second, the first input may be a physical key input.
In this embodiment, the body of the terminal is provided with an entity key corresponding to the call target communication plug-in, and the first input of the user is received, or the first input that the user presses the corresponding entity key is received; the first input may also be a combined operation of simultaneously pressing a plurality of physical keys.
Third, 0, the first input may be a voice input.
In this embodiment, the terminal may trigger the display of the call target communication plug-in interface when receiving a voice such as "please input the call target communication plug-in".
Of course, in other embodiments, the first input may also be in other forms, including but not limited to character input, etc., which may be specifically determined according to actual needs, which is not limited in this embodiment of the present application.
Step 140, in response to the first input, invoking the target communication plug-in.
In this step, the target generic communication interface, i.e. the target communication plug-in, is invoked in response to the first input.
In the actual implementation process, a user selects a target communication plugin to realize first input, and the terminal responds to the first input to determine the target communication plugin as a plugin to be called so as to call the target communication plugin from a plurality of communication plugins to carry out related communication.
0 in some embodiments, step 140 may comprise: invoking, by the communication plug-in manager, in response to the first input
A target communication plug-in; the communication plug-in manager is a cross-platform manager.
In this embodiment, as shown in fig. 3, the implementation class diagram of the communication plug-in management is a cross-platform manager, and can operate in windows and linux system environments.
According to the communication device management method provided by the embodiment of the application, the expansibility of device communication is enhanced by calling the target communication plugin through the communication plugin 5 manager in response to the first input, and the communication plugin manager is set to be cross-type
The platform manager is convenient for loading and removing the independent configuration files corresponding to the communication plug-in library and the communication plug-in, can package related general interfaces into general interfaces for other platforms, ensures the usability of the communication plug-in, can support cross-platform equipment, and enhances the application scene of industrial visual detection software.
In the application, a plurality of communication devices are classified based on a communication mode, and the communication devices corresponding to a plurality of types are acquired, wherein 0 is convenient for packaging the communication devices into communication plug-ins of the corresponding types in the actual execution process, so that a new communication library is obtained;
and the communication equipment corresponding to each type is respectively packaged to obtain a plurality of communication plug-ins corresponding to a plurality of types, so that when a new type of communication mode is added in the subsequent application process, only the communication plug-ins are required to be newly added in the current communication library, and the expansibility and the compatibility of the communication library are improved.
The communication library is a library obtained by packaging communication equipment in the form of a plug-in library; and packaging the communication equipment into a corresponding communication plug-in, and only adding the communication plug-in corresponding to the new type of communication mode into the current communication library when the new type of communication mode is needed.
According to the communication equipment management method provided by the embodiment of the application, the plurality of communication equipment is classified based on the communication mode, the communication equipment corresponding to the plurality of types is obtained, the communication equipment corresponding to each type is packaged, the plurality of communication plugins corresponding to the plurality of types are obtained, the first input of the target communication plugins in the plurality of communication plugins by a user is received, the target communication plugins are called in response to the first input, the communication plugins can be packaged according to the standard communication interface when the new type of communication equipment is added, and when the new type of communication mode is added, the expansibility of the communication equipment is enhanced and the operation steps are reduced only by adding the communication plugins corresponding to the new type of communication mode in the current communication library.
In some embodiments, the communication device management method may further include:
determining a target implementation mode corresponding to the target library based on the type of the target library;
based on the target implementation mode, a target library is constructed, and the target library is a three-party library related to the communication equipment.
In this embodiment, the target library is a three-party library related to the communication device, and is an open source library that can be operated by multiple platforms.
Implementations may include libhv library implementations, libmodubs implementations, and MC protocol repackaging implementations.
The target library may be a network-related library, or may be a modbus-related library, or may also be a PLC-related device.
In the actual execution process, the network-related library can be realized by adopting a libhv library, the modbus-related library can be realized by adopting libmodubs, the PLC-related equipment can be realized by adopting MC protocol repackaging, and the target library is constructed based on a target realization mode corresponding to the target library.
According to the communication equipment management method provided by the embodiment of the application, the target implementation mode corresponding to the target library is determined based on the type of the target library, and the target library is constructed based on the target implementation mode, so that the communication related module is ensured to support the compiling operation of a plurality of platforms, the cross-platform operation of a communication protocol is realized, and the expansibility of the communication equipment is further improved.
In some embodiments, the communication device management method can also optimize a communication reconnection mechanism, so that the stability of device communication is enhanced.
The communication device management apparatus provided in the present application will be described below, and the communication device management apparatus described below and the communication device management method described above may be referred to correspondingly to each other.
According to the communication equipment management method provided by the embodiment of the application, the execution main body can be a communication equipment management device. In the embodiment of the present application, a communication device management apparatus is described by taking a method for executing a communication device management by a communication device management apparatus as an example.
The embodiment of the application also provides a communication equipment management device.
As shown in fig. 4, the communication device management apparatus includes: a first processing module 410, a second processing module 420, a third processing module 430, and a fourth processing module 440.
A first processing module 410, configured to classify a plurality of communication devices based on a communication manner, and obtain a plurality of communication devices corresponding to a plurality of types;
the second processing module 420 is configured to encapsulate communication devices corresponding to each type, and obtain a plurality of communication plugins corresponding to a plurality of types;
a third processing module 430 for receiving a first input from a user to a target communication card of the plurality of communication cards;
a fourth processing module 440 for invoking the target communication plug-in response to the first input.
According to the communication equipment management device provided by the embodiment of the application, the plurality of communication equipment is classified based on the communication mode, the communication equipment corresponding to the plurality of types is obtained, then the communication equipment corresponding to each type is respectively packaged, the plurality of communication plugins corresponding to the plurality of types are obtained, then the first input of the target communication plugins in the plurality of communication plugins by a user is received, the target communication plugins are called in response to the first input, the communication plugins can be packaged according to the standard communication interface when the new type of communication equipment is added, and when the new type of communication mode is added, the expansibility of the communication equipment is enhanced and the operation steps are reduced only by adding the communication plugins corresponding to the new type of communication mode in the current communication library.
In some embodiments, the second processing module 420 may be further configured to encapsulate, based on the protocol type, communication devices corresponding to each type, and obtain a plurality of communication plugins.
According to the communication equipment management device provided by the embodiment of the application, the communication equipment corresponding to each type is packaged based on the protocol type, and then a plurality of communication plug-ins are obtained, so that when other types of communication equipment are required to be added, the communication plug-ins can be packaged according to the standard communication interfaces, the expansibility of the communication equipment is enhanced, the practical threshold of a user is reduced, and the use experience of the user is improved.
In some embodiments, the fourth processing module 440 may be further configured to invoke the target communication plugin through the communication plugin manager in response to the first input; the communication plug-in manager is a cross-platform manager.
According to the communication equipment management device provided by the embodiment of the application, the target communication plug-in is called through the communication plug-in manager through responding to the first input, the expansibility of equipment communication is enhanced, the communication plug-in manager is set to be a cross-platform manager, loading and removing of independent configuration files corresponding to the communication plug-in library and the communication plug-in are facilitated, the related general interfaces can be packaged into the general interfaces for other platforms to use, the usability of the communication plug-in is ensured, cross-platform equipment can be supported, and the application scene of industrial vision detection software is enhanced.
In some embodiments, the communication device management apparatus may further include a fifth processing module, configured to determine, based on a type of the target library, a target implementation manner corresponding to the target library;
based on the target implementation mode, a target library is constructed, and the target library is a three-party library related to the communication equipment.
According to the communication equipment management device provided by the embodiment of the application, the target implementation mode corresponding to the target library is determined based on the type of the target library, and the target library is constructed based on the target implementation mode, so that the communication related module is ensured to support the compiling operation of a plurality of platforms, the cross-platform operation of a communication protocol is realized, and the expansibility of the communication equipment is further improved.
In some embodiments, the communication device management apparatus may further include a sixth processing module, configured to include an independent configuration file in the communication plugins, where each communication plugin is independent of each other.
According to the communication equipment management device provided by the embodiment of the application, the communication plug-ins comprise independent configuration files and are mutually independent, so that each plug-in can be ensured to be independently operated and not mutually interfered when the communication equipment is added and removed, the stability of the communication equipment is enhanced, and the usability of the communication plug-in is ensured.
In some embodiments, the communication device management apparatus may further include a seventh processing module configured to configure the independent configuration files included in each communication plug-in based on the same communication configuration template.
According to the communication equipment management device provided by the embodiment of the application, the independent configuration files corresponding to the communication plug-ins are configured based on the same communication configuration template, so that a user can configure the independent configuration files corresponding to the communication plug-ins directly based on the communication configuration template, the operation threshold of the user is reduced, the configuration efficiency is improved, and the user experience is further improved.
The communication device management apparatus in the embodiments of the present application may be an electronic device, or may be a component in an electronic device, for example, an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. By way of example, the electronic device may be a mobile phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, mobile internet appliance (Mobile Internet Device, MID), augmented reality (augmented reality, AR)/Virtual Reality (VR) device, robot, wearable device, ultra-mobile personal computer, UMPC, netbook or personal digital assistant (personal digital assistant, PDA), etc., but may also be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The communication device management apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android operating system, an IOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The communication device management apparatus provided in the embodiments of the present application can implement each process implemented by the embodiments of the methods of fig. 1 to 3, and in order to avoid repetition, a description is omitted here.
Fig. 5 illustrates a physical schematic diagram of an electronic device, as shown in fig. 5, which may include: processor 510, communication interface (Communications Interface) 520, memory 530, and communication bus 540, wherein processor 510, communication interface 520, memory 530 complete communication with each other through communication bus 540. Processor 510 may invoke logic instructions in memory 530 to perform a communication device management method comprising: classifying a plurality of communication devices based on a communication mode to obtain communication devices corresponding to a plurality of types; the communication equipment corresponding to each type is packaged respectively, and a plurality of communication plug-ins corresponding to a plurality of types are obtained; receiving a first input of a user to a target communication plugin of the plurality of communication plugins; in response to the first input, the target communication plug-in is invoked.
Further, the logic instructions in the memory 530 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Fig. 6 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device includes, but is not limited to: radio frequency unit 601, network module 602, audio output unit 603, input unit 604, sensor 605, display unit 606, user input unit 607, interface unit 608, memory 609, and processor 610.
Those skilled in the art will appreciate that the electronic device may further include a power source (e.g., a battery) for powering the various components, and that the power source may be logically coupled to the processor 610 via a power management system such that charge, discharge, and power consumption management functions are performed by the power management system. The electronic device structure shown in fig. 6 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
It should be understood that in the embodiment of the present application, the input unit 604 may include a graphics processor (Graphics Processing Unit, GPU) 6041 and a microphone 6042, and the graphics processor 6041 processes image data of still pictures or videos obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 607 includes at least one of a touch panel 6071 and other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include two parts of a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
The memory 609 may be used to store software programs as well as various data. The memory 609 may mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 609 may include volatile memory or nonvolatile memory, or the memory 609 may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM). Memory 609 in the present embodiment includes, but is not limited to, these and any other suitable types of memory.
The processor 610 may include one or more processing units; the processor 610 integrates an application processor that primarily processes operations involving an operating system, user interfaces, applications, etc., and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
In another aspect, the present application also provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the communication device management method provided by the methods described above, the method comprising: classifying a plurality of communication devices based on a communication mode to obtain communication devices corresponding to a plurality of types; the communication equipment corresponding to each type is packaged respectively, and a plurality of communication plug-ins corresponding to a plurality of types are obtained; receiving a first input of a user to a target communication plugin of the plurality of communication plugins; in response to the first input, the target communication plug-in is invoked.
In yet another aspect, the present application also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform a communication device management method provided by the above methods, the method comprising: classifying a plurality of communication devices based on a communication mode to obtain communication devices corresponding to a plurality of types; the communication equipment corresponding to each type is packaged respectively, and a plurality of communication plug-ins corresponding to a plurality of types are obtained; receiving a first input of a user to a target communication plugin of the plurality of communication plugins; in response to the first input, the target communication plug-in is invoked.
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement each process of the above embodiment of the communication device management method, where the method includes: classifying a plurality of communication devices based on a communication mode to obtain communication devices corresponding to a plurality of types; the communication equipment corresponding to each type is packaged respectively, and a plurality of communication plug-ins corresponding to a plurality of types are obtained; receiving a first input of a user to a target communication plugin of the plurality of communication plugins; in response to the first input, the target communication plug-in is invoked.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting thereof; 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 scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (10)

1. A communication device management method, comprising:
classifying a plurality of communication devices based on a communication mode to obtain communication devices corresponding to a plurality of types;
respectively packaging communication equipment corresponding to each type to obtain a plurality of communication plug-ins corresponding to the plurality of types;
receiving a first input of a user to a target communication plugin of the plurality of communication plugins;
the target communication plug-in is invoked in response to the first input.
2. The method for managing communication devices according to claim 1, wherein the encapsulating the communication devices corresponding to the respective types to obtain the plurality of communication plug-ins corresponding to the plurality of types includes:
And encapsulating the communication equipment corresponding to each type based on the protocol type to obtain a plurality of communication plugins.
3. The communication device management method according to claim 1, wherein the invoking the target communication plug-in response to the first input comprises:
invoking, by a communication plugin manager, the target communication plugin in response to the first input; the communication plug-in manager is a cross-platform manager.
4. A communication device management method according to any one of claims 1 to 3, further comprising:
determining a target implementation mode corresponding to a target library based on the type of the target library;
and constructing the target library based on the target implementation mode, wherein the target library is a three-party library related to the communication equipment.
5. A method of managing a communication device according to any one of claims 1 to 3, wherein the communication plug-ins comprise separate configuration files, each of the communication plug-ins being independent of the other.
6. The communication device management method according to claim 5, wherein the independent configuration files included in each of the communication plug-ins are configured based on the same communication configuration template.
7. A communication device management apparatus, comprising:
the first processing module is used for classifying the plurality of communication devices based on the communication mode and acquiring the communication devices corresponding to the plurality of types;
the second processing module is used for respectively packaging the communication equipment corresponding to each type and acquiring a plurality of communication plugins corresponding to the plurality of types;
the third processing module is used for receiving first input of a user to a target communication plugin in the plurality of communication plugins;
and a fourth processing module for invoking the target communication plugin in response to the first input.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the communication device management method of any of claims 1-6 when the program is executed by the processor.
9. A non-transitory computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when executed by a processor, implements the communication device management method according to any one of claims 1-6.
10. A computer program product comprising a computer program which, when executed by a processor, implements the communication device management method according to any of claims 1-6.
CN202211687463.0A 2022-12-27 2022-12-27 Communication equipment management method and device Pending CN116166334A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211687463.0A CN116166334A (en) 2022-12-27 2022-12-27 Communication equipment management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211687463.0A CN116166334A (en) 2022-12-27 2022-12-27 Communication equipment management method and device

Publications (1)

Publication Number Publication Date
CN116166334A true CN116166334A (en) 2023-05-26

Family

ID=86412428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211687463.0A Pending CN116166334A (en) 2022-12-27 2022-12-27 Communication equipment management method and device

Country Status (1)

Country Link
CN (1) CN116166334A (en)

Similar Documents

Publication Publication Date Title
CN106062763B (en) Method and device for displaying application and picture and electronic equipment
KR102219861B1 (en) Method for sharing screen and electronic device thereof
CN104869305B (en) Method and apparatus for processing image data
JP2016500175A (en) Method and apparatus for realizing floating object
US10409404B2 (en) Method of processing touch events and electronic device adapted thereto
CN105474126A (en) Improved power control techniques for integrated PCIE controllers
KR20160012573A (en) Apparatus for Providing Integrated Functions of Dial and Calculator and Method thereof
CN106776259A (en) A kind of mobile terminal frame rate detection method, device and mobile terminal
CN113867870A (en) Popup management system, popup control method, storage medium, and computer device
CN113419649A (en) Method for operating electronic device and device thereof
CN111026457A (en) Hardware configuration method and device, storage medium and terminal equipment
US20160357409A1 (en) Apparatus and method for displaying a portion of a plurality of background applications
CN116166334A (en) Communication equipment management method and device
CN115357173A (en) Screen control method and device and electronic equipment
CN111580738B (en) Soft keyboard implementation method and device, electronic equipment and storage medium
CN113891441A (en) Network connection method and device and electronic equipment
CN114070892A (en) Data transmission method and device
CN113965640A (en) Message processing method and device
CN108196848B (en) Interface embedded display method and device, user terminal and readable storage medium
CN111782381A (en) Task management method and device, mobile terminal and storage medium
CN111880702A (en) Interface switching method and device and electronic equipment
CN113407020B (en) Component starting method and device, touch chip and electronic equipment
CN109783329B (en) Application program blank data prompting method and system and terminal equipment
CN113268300B (en) Information display method and device
CN111182153B (en) System language setting method and device, storage medium and mobile terminal

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