CN109413370B - Function display method and device, electronic equipment and storage medium - Google Patents

Function display method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN109413370B
CN109413370B CN201710706847.5A CN201710706847A CN109413370B CN 109413370 B CN109413370 B CN 109413370B CN 201710706847 A CN201710706847 A CN 201710706847A CN 109413370 B CN109413370 B CN 109413370B
Authority
CN
China
Prior art keywords
function
displayed
electronic device
type
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.)
Active
Application number
CN201710706847.5A
Other languages
Chinese (zh)
Other versions
CN109413370A (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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology 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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201710706847.5A priority Critical patent/CN109413370B/en
Publication of CN109413370A publication Critical patent/CN109413370A/en
Application granted granted Critical
Publication of CN109413370B publication Critical patent/CN109413370B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • H04N7/181Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention provides a function display method, a function display device, electronic equipment and a storage medium. In the embodiment of the invention, the function related to the first equipment type is displayed in the target electronic equipment by determining the first function to be displayed according to the first equipment type, and the displayed function is no longer the function of all equipment types which can be in communication connection with the target electronic equipment because the first equipment type is the equipment type of the first electronic equipment which is in communication connection with the target electronic equipment, so that the requirement of a user is met, and the user experience is optimized.

Description

Function display method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of device information display technologies, and in particular, to a method and an apparatus for displaying functions, an electronic device, and a storage medium.
Background
Currently, the target electronic device may add an electronic device that can be communicatively connected thereto, such as: the target electronic equipment is a computer, a camera can be added to the computer, the equipment type of the camera is coding equipment, and the coding equipment generally has functions of previewing, replaying and the like, so that the previewing function and the replaying function can be displayed on the computer. Since the electronic devices communicatively connectable to the target electronic device are more various, as shown in fig. 1, the target electronic device displays functions of all device types of the electronic devices communicatively connectable thereto in pages, where fig. 1(a) shows a function of displaying a first page of the target electronic device, and fig. 1(b) shows a function of displaying a second page of the target electronic device.
Due to the function display method, the functions of all device types are displayed, and even if the target electronic device is not added with an electronic device of a certain device type, the function corresponding to the device type is displayed, so that great trouble is brought to the user, for example: assuming that the target electronic device is added with a camera and not added with a scanner, the camera corresponds to the function a, and the scanner corresponds to the function B, the target electronic device will display the function a and the function B, and when the user clicks the displayed function B, the user finds that the function B cannot be set, thereby resulting in poor user experience.
Therefore, a function display method is needed to optimize the user experience.
Disclosure of Invention
The embodiment of the invention aims to provide a function display method, a function display device, electronic equipment and a storage medium, so as to optimize user experience. The specific technical scheme is as follows:
a function display method is applied to a target electronic device, and comprises the following steps:
determining a first device type of a first electronic device in communication connection with the target electronic device;
determining a first function to be displayed according to the first equipment type;
and displaying the first function to be displayed in the target electronic equipment.
Optionally, the step of determining a first device type of a first electronic device communicatively connected to the target electronic device includes:
sending device type acquisition information to first electronic equipment in communication connection with the target electronic equipment;
and receiving the first device type fed back by the first electronic device.
Optionally, the step of determining the first function to be displayed according to the first device type includes:
searching a function corresponding to the first equipment type from a pre-established database according to the first equipment type, wherein the pre-established database stores the corresponding relation between the equipment type and the function;
detecting whether the number of the first device types is 1;
if so, determining the searched function as a first function to be displayed;
if not, all the different functions are determined to be the first function to be displayed from the searched functions.
Optionally, after the step of displaying the first function to be displayed in the target electronic device, the method further includes:
when a second electronic device in communication connection with the target electronic device is detected, determining a second device type of the second electronic device;
determining a function corresponding to the second equipment type;
determining all functions different from each other as second functions to be displayed from the determined functions and the first functions to be displayed;
and displaying the second function to be displayed in the target electronic equipment.
Optionally, the first device type includes:
at least one of an encoding device, a decoding device, an access control device, or an alarm device.
A function display apparatus applied to a target electronic device, the apparatus comprising:
the first device type determining module is used for determining a first device type of a first electronic device in communication connection with the target electronic device;
the first function to be displayed determining module is used for determining a first function to be displayed according to the first equipment type;
the first display module is used for displaying the first function to be displayed in the target electronic equipment.
Optionally, the first device type determining module includes:
a sending unit, configured to send device type acquisition information to a first electronic device in communication connection with the target electronic device;
and the receiving unit is used for receiving the first equipment type fed back by the first electronic equipment.
Optionally, the first function-to-be-displayed determining module includes:
the searching unit is used for searching a function corresponding to the first equipment type from a pre-established database according to the first equipment type, wherein the pre-established database stores the corresponding relation between the equipment type and the function;
the detection unit is used for detecting whether the number of the first equipment types is 1, if so, triggering the first determination unit, and if not, triggering the second determination unit;
the first determining unit is used for determining the searched function as a first function to be displayed;
the second determining unit is configured to determine all the different functions as the first function to be displayed from the searched functions.
Optionally, the apparatus further comprises:
the second device type determining module is used for determining a second device type of a second electronic device when the second electronic device which is in communication connection with the target electronic device is detected after the first function to be displayed is displayed in the target electronic device;
the function determining module is used for determining a function corresponding to the second equipment type;
a second function-to-be-displayed determining module, configured to determine, from the determined function and the first function-to-be-displayed, all functions that are different from each other as a second function-to-be-displayed;
and the second display module is used for displaying the second function to be displayed in the target electronic equipment.
Optionally, the first device type includes:
at least one of an encoding device, a decoding device, an access control device, or an alarm device.
An electronic device comprising a processor and a memory, wherein the memory is for storing a computer program; the processor is used for executing the program stored in the memory and realizing the following steps:
determining a first device type of a first electronic device in communication connection with a target electronic device;
determining a first function to be displayed according to the first equipment type;
and displaying the first function to be displayed in the target electronic equipment.
Optionally, the step of determining a first device type of a first electronic device communicatively connected to the target electronic device includes:
sending device type acquisition information to first electronic equipment in communication connection with the target electronic equipment;
and receiving the first device type fed back by the first electronic device.
Optionally, the step of determining the first function to be displayed according to the first device type includes:
searching a function corresponding to the first equipment type from a pre-established database according to the first equipment type, wherein the pre-established database stores the corresponding relation between the equipment type and the function;
detecting whether the number of the first device types is 1;
if so, determining the searched function as a first function to be displayed;
if not, all the different functions are determined to be the first function to be displayed from the searched functions.
Optionally, after the step of displaying the first function to be displayed in the target electronic device, the method further includes:
when a second electronic device in communication connection with the target electronic device is detected, determining a second device type of the second electronic device;
determining a function corresponding to the second equipment type;
determining all functions different from each other as second functions to be displayed from the determined functions and the first functions to be displayed;
and displaying the second function to be displayed in the target electronic equipment.
Optionally, the first device type includes:
at least one of an encoding device, a decoding device, an access control device, or an alarm device.
A computer-readable storage medium, in which a computer program is stored which, when executed by a processor, carries out the steps of:
determining a first device type of a first electronic device in communication connection with a target electronic device;
determining a first function to be displayed according to the first equipment type;
and displaying the first function to be displayed in the target electronic equipment.
Optionally, the step of determining a first device type of a first electronic device communicatively connected to the target electronic device includes:
sending device type acquisition information to first electronic equipment in communication connection with the target electronic equipment;
and receiving the first device type fed back by the first electronic device.
Optionally, the step of determining the first function to be displayed according to the first device type includes:
searching a function corresponding to the first equipment type from a pre-established database according to the first equipment type, wherein the pre-established database stores the corresponding relation between the equipment type and the function;
detecting whether the number of the first device types is 1;
if so, determining the searched function as a first function to be displayed;
if not, all the different functions are determined to be the first function to be displayed from the searched functions.
Optionally, after the step of displaying the first function to be displayed in the target electronic device, the method further includes:
when a second electronic device in communication connection with the target electronic device is detected, determining a second device type of the second electronic device;
determining a function corresponding to the second equipment type;
determining all functions different from each other as second functions to be displayed from the determined functions and the first functions to be displayed;
and displaying the second function to be displayed in the target electronic equipment.
Optionally, the first device type includes:
at least one of an encoding device, a decoding device, an access control device, or an alarm device.
In the embodiment of the invention, a first device type of a first electronic device in communication connection with a target electronic device is determined, a first function to be displayed is determined according to the first device type, and the first function to be displayed is displayed in the target electronic device. In the embodiment of the invention, the function related to the first equipment type is displayed in the target electronic equipment by determining the first function to be displayed according to the first equipment type, and the displayed function is no longer the function of all equipment types which can be in communication connection with the target electronic equipment because the first equipment type is the equipment type of the first electronic equipment which is in communication connection with the target electronic equipment, so that the requirement of a user is met, and the user experience is optimized.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1(a) is a diagram illustrating a function of a first page display of a target electronic device in the related art;
FIG. 1(b) is a diagram illustrating a second page display function of a target electronic device in the related art;
FIG. 2 is a first flowchart illustrating a function display method according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart illustrating the determination of a first device type provided in the practice of the present invention;
FIG. 4 is a schematic flow chart illustrating a process for determining a first to-be-displayed function in accordance with an embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating a first function to be displayed according to the present invention;
FIG. 6 is a second flowchart illustrating a function display method according to an embodiment of the present invention;
FIG. 7 is a schematic diagram illustrating a second function to be displayed in accordance with the present invention;
FIG. 8 is a schematic structural diagram of a functional display device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to solve the related technical problems, embodiments of the present invention provide a function display method, device, electronic device, and storage medium.
First, a function display method provided in an embodiment of the present invention is described below.
As shown in fig. 2, a function display method provided in an embodiment of the present invention is applied to a target electronic device, and may include:
s101: a first device type of a first electronic device communicatively connected to a target electronic device is determined.
Because the electronic device displays all functions of the electronic device which can be in communication connection with the electronic device in a paging mode at present, and the user experience is poor, in order to optimize the user experience, the functions are displayed based on the requirements of the user when the functions are displayed.
Since a function corresponding to a device to which a general electronic device has been added is a function required by a user, in order to display the function based on the requirement of the user, it is necessary to determine a first device type of a first electronic device communicatively connected to a target electronic device, that is, determine the first device type of the first electronic device to which the target electronic device has been added.
The determining of the first device type of the first electronic device communicatively connected to the target electronic device may be to obtain the first device type by sending a request message. Referring to fig. 3, step S101 may include:
s1011: and sending the device type acquisition information to a first electronic device in communication connection with the target electronic device.
In order to know the first device type of the first electronic device communicatively connected to the target electronic device, the device type acquisition information may be sent to the first electronic device communicatively connected to the target electronic device.
It should be noted that, the process of adding the electronic device to the target electronic device generally includes:
and starting a target application program in the target electronic equipment, wherein the target application program is an application program used for managing the electronic equipment added by the target electronic equipment.
And adding the electronic equipment on the equipment management interface of the target application program.
Specifically, the electronic device may be added to the device management interface of the target application by inputting the IP address, the port number, and the like of the electronic device to be added to the device management interface of the target application, thereby completing the addition of the electronic device.
In addition, in order to ensure security, when adding the electronic device, a user name and a password may be input in addition to the IP address and the port number of the electronic device to be added.
And under the condition that the user name and the password are successfully verified, the electronic equipment is added, and after the electronic equipment is added, the target electronic equipment can be in communication connection with the added electronic equipment.
In order to obtain the first device type of the first electronic device in communication connection with the target electronic device, after the first electronic device is added to the target electronic device, the device type acquisition information may be sent to the first electronic device in communication connection with the target electronic device.
S1012: and receiving the first device type fed back by the first electronic device.
After the device type acquisition information is sent to the first electronic device in communication connection with the target electronic device, the first electronic device receives the device type acquisition information and feeds back the first device type of the first electronic device to the target electronic device, and the target electronic device receives the first device type fed back by the first electronic device.
From this, the target electronic device learns the first device type of the first electronic device.
S102: and determining a first function to be displayed according to the first equipment type.
After determining the first device type of the first electronic device in communication connection with the target electronic device, in order to display the function based on the user's requirement, it is necessary to determine the function to be displayed according to the first device type.
Referring to fig. 4, step S102 may include:
s1021: and searching a function corresponding to the first equipment type from a pre-established database according to the first equipment type, wherein the pre-established database stores the corresponding relation between the equipment type and the function.
In order to determine the functions to be displayed, a database storing the correspondence between the device types and the functions is established in advance.
After the first device type is determined, the function corresponding to the first device type can be found from the pre-established database based on the first device type.
In detail, the process of establishing the database may be:
(1) obtaining a plurality of electronic devices communicably connected to a target electronic device;
(2) determining device types of the obtained plurality of electronic devices;
(3) respectively determining functions corresponding to the equipment types;
(4) and storing the corresponding relation between each equipment type and each function in a database.
In order to establish the database, it is necessary to acquire a plurality of electronic devices communicably connected to the target electronic device, and after the plurality of electronic devices communicably connected to the target electronic device are acquired, it is necessary to determine device types of the plurality of acquired electronic devices in order to establish the database containing the correspondence between the device types and the functions.
Since the functions of the same device type are generally the same, after the device type is determined, the functions corresponding to the respective device types are determined, and then the correspondence between the respective device types and the respective functions is stored in the database. Thus, the database establishment is completed.
For example: assume that the plurality of electronic devices communicably connected to the target electronic device are: the electronic equipment comprises electronic equipment A, electronic equipment B, electronic equipment C and electronic equipment D, wherein the equipment types of the electronic equipment A and the electronic equipment B are W, the equipment type of the electronic equipment C is X, the equipment type of the electronic equipment D is Y, the electronic equipment A and the electronic equipment B have functions a, B and C, the electronic equipment C has functions D and e, and the electronic equipment D has functions f and g;
the process of establishing the database is as follows:
obtaining a plurality of electronic devices communicably connectable to a target electronic device: electronic device a, electronic device B, electronic device C, and electronic device D;
determining device types of the obtained plurality of electronic devices: w, X, Y, respectively;
respectively determining functions corresponding to the equipment types; determining functions corresponding to the device type W as a, b and c, determining functions corresponding to the device type X as d and e, and determining functions corresponding to the device type Y as f and g;
the correspondence between each device type and each function is stored in the database as shown in the following table:
type of device Function(s)
W a、b、c
X d、e
Y f、g
S1022: it is detected whether the number of the first device types is 1, and if so, step S1023 is performed, and if not, step S1024 is performed.
In order to determine the first function to be displayed, after the function corresponding to the first device type is found, the number of the first device type needs to be known, and therefore, whether the number of the device types is 1 is detected, and the subsequent steps are performed according to the detection result.
S1023: and determining the searched function as the first function to be displayed.
When the number of the first device types is detected to be 1, it is indicated that only one device type exists at this time, and since the same function does not exist in the functions corresponding to one device type, at this time, the searched function can be directly determined as the current first function to be displayed.
S1024: and determining all the functions different from each other as the first function to be displayed from the searched functions.
When it is detected that the number of the first device types is not 1, it is indicated that a plurality of device types exist at this time, and since the same function may exist in the functions corresponding to the plurality of device types, it is necessary to determine all mutually different functions as the first function to be displayed from the searched functions in order to avoid repeated display of the functions.
In detail, the first device type may include:
at least one of an encoding device, a decoding device, an access control device, or an alarm device.
The functions of the coding equipment generally comprise preview, playback, alarm and electronic map, wherein the preview function refers to that a video can be previewed after the function is started; the playback function means that the video can be played back after the function is started; the alarm function is that after the function is started, when the condition meeting the alarm condition occurs, the alarm is triggered; the electronic map function means that after the function is started, the positions of all monitoring points in the map can be displayed.
The decoding device has a function of a television wall, wherein the television wall function means that after the function is started, videos collected by all monitoring devices can be displayed on all displays at the same time.
The entrance guard equipment has the functions of entrance guard control, entrance guard real-time monitoring and attendance checking, wherein the entrance guard control function means that after the function is started, the management authority of each entrance guard can be added; the real-time monitoring function of the entrance guard means that after the function is started, each entrance guard can be controlled to be opened or closed; the attendance function refers to that after the function is started, attendance content can be recorded or attendance rules can be set.
The alarm equipment has the functions of displaying real-time alarm and an alarm host, wherein the displaying of the real-time alarm function means that after the function is started, alarm zones and alarm types of all the zones can be set, and processed alarm information and unprocessed alarm information can be checked; the alarm host function means that after the function is started, the monitoring picture of each alarm defense area can be checked.
S103: and displaying the first function to be displayed in the target electronic equipment.
After the first function to be displayed is determined, the first function to be displayed can be displayed in the target electronic device.
In detail, the first function to be displayed may be displayed on a control panel interface of a target application program, where the target application program is an application program in the target electronic device for managing the electronic device added to the electronic device.
In the embodiment of the invention, a first device type of a first electronic device in communication connection with a target electronic device is determined, a first function to be displayed is determined according to the first device type, and the first function to be displayed is displayed in the target electronic device. In the embodiment of the invention, the function related to the first equipment type is displayed in the target electronic equipment by determining the first function to be displayed according to the first equipment type, and the displayed function is no longer the function of all equipment types which can be in communication connection with the target electronic equipment because the first equipment type is the equipment type of the first electronic equipment which is in communication connection with the target electronic equipment, so that the requirement of a user is met, and the user experience is optimized.
The method shown in fig. 2 is described in detail below by way of a specific embodiment:
for example: assuming that the target electronic equipment is a computer, the electronic equipment in communication connection with the computer is a camera, the equipment type of the camera is coding equipment, and the corresponding functions of the coding equipment are preview, playback, alarm and electronic map;
determining that the first equipment type of a camera in communication connection with the computer is coding equipment;
according to the encoding apparatus, it is determined that the first function to be displayed is: preview, playback, alert and electronic map;
as shown in fig. 5, the first function to be displayed is displayed in the computer: preview, playback, alarm and electronic map, the edit common function in fig. 5 is a common option and does not belong to the first function to be displayed.
On the basis of the method shown in fig. 2, as shown in fig. 6, the method for displaying a function according to the embodiment of the present invention, after step S103, may further include:
s104: when a second electronic device communicatively connected to the target electronic device is detected, a second device type of the second electronic device is determined.
In the case where the first function to be displayed is already displayed in the target electronic device, there may be an electronic device newly connected to the target electronic device, and at this time, the function needs to be displayed in the target electronic device again.
S105: and determining the function corresponding to the second equipment type.
In order to determine the function to be displayed, after the second device type is determined, the function corresponding to the second device type is determined.
In detail, the determining of the function corresponding to the second device type may be to search for the function corresponding to the second device type from a pre-established database according to the second device type, where the searched function is the function corresponding to the second device type.
S106: determining all the functions different from each other as a second function to be displayed from the determined function and the first function to be displayed.
After the function corresponding to the second device type is determined, if the function corresponding to the second device type and the displayed first function to be displayed are simply superimposed, the superimposed function is determined as the second function to be displayed, and then the second function to be displayed is displayed in the target electronic device, the same function may be repeatedly displayed.
For example: assuming that the displayed first functions to be displayed are h and i, and the functions corresponding to the second device type are m and i;
simply superimpose functions h and i, and m and i, that is, functions h, i, m and i are used as the second function to be displayed, and if the second function to be displayed is displayed in the target electronic device at this time, a situation of displaying two functions i occurs.
Therefore, in order to avoid the function duplicate display, it is necessary to determine all the functions different from each other as the second function to be displayed from among the determined function and the first function to be displayed.
For example: in connection with the above example, since the function i of the first function to be displayed and the function i of the function corresponding to the second device type are the same function, all the functions different from each other of the determined function and the first function to be displayed are the functions h, i, and m, and then the functions h, i, and m are taken as the second function to be displayed.
Thereby, duplicate display of functions is avoided.
S107: and displaying the second function to be displayed in the target electronic equipment.
After the second function to be displayed is determined, the second function to be displayed can be displayed in the target electronic equipment.
Therefore, under the condition that the first function to be displayed is displayed in the target electronic equipment, when second electronic equipment which is newly connected into the target electronic equipment exists, the second function to be displayed is displayed in the target electronic equipment again in a duplication eliminating mode, and the purpose of overlapping the display function and not repeating the display function is achieved.
The method shown in fig. 5 is described in detail below by way of a specific embodiment:
for example: assuming that the first equipment type is encoding equipment, the first functions to be displayed are preview, playback, alarm and electronic map, the second equipment type is decoding equipment, and the corresponding functions of the decoding equipment are electronic walls;
referring to fig. 5, the target electronic device is displayed with a first function to be displayed: preview, playback, alert and electronic map;
when detecting a second electronic device in communication connection with the target electronic device, determining the device type of the second electronic device as a decoding device;
determining the corresponding function of the decoding device: an electronic wall;
from the determined function and the first function to be displayed, all functions different from each other are determined: previewing, replaying, alarming, the electronic map and the electronic wall, wherein the previewing, the replaying, the alarming, the electronic map and the electronic wall have a second function to be displayed;
as shown in fig. 7, the second function to be displayed is displayed in the target electronic device: preview, playback, alarm, electronic map and electronic wall, the edit common function in fig. 7 is a common option and does not belong to the second function to be displayed.
With respect to the above method embodiment, as shown in fig. 8, an embodiment of the present invention further provides a function display apparatus, where the apparatus may include:
a first device type determining module 201, configured to determine a first device type of a first electronic device communicatively connected to the target electronic device;
a first function-to-be-displayed determining module 202, configured to determine a first function to be displayed according to the first device type;
a first display module 203, configured to display the first function to be displayed in the target electronic device.
In the embodiment of the invention, a first device type of a first electronic device in communication connection with a target electronic device is determined, a first function to be displayed is determined according to the first device type, and the first function to be displayed is displayed in the target electronic device. In the embodiment of the invention, the function related to the first equipment type is displayed in the target electronic equipment by determining the first function to be displayed according to the first equipment type, and the displayed function is no longer the function of all equipment types which can be in communication connection with the target electronic equipment because the first equipment type is the equipment type of the first electronic equipment which is in communication connection with the target electronic equipment, so that the requirement of a user is met, and the user experience is optimized.
In an implementation manner of the present invention, the first device type determining module 201 may include:
a sending unit, configured to send device type acquisition information to a first electronic device in communication connection with the target electronic device;
and the receiving unit is used for receiving the first equipment type fed back by the first electronic equipment.
In an implementation manner of the present invention, the first module 202 for determining a function to be displayed may include:
the searching unit is used for searching a function corresponding to the first equipment type from a pre-established database according to the first equipment type, wherein the pre-established database stores the corresponding relation between the equipment type and the function;
the detection unit is used for detecting whether the number of the first equipment types is 1, if so, triggering the first determination unit, and if not, triggering the second determination unit;
the first determining unit is used for determining the searched function as a first function to be displayed;
the second determining unit is configured to determine all the different functions as the first function to be displayed from the searched functions.
In one implementation manner of the present invention, the apparatus may further include:
the second device type determining module is used for determining a second device type of a second electronic device when the second electronic device which is in communication connection with the target electronic device is detected after the first function to be displayed is displayed in the target electronic device;
the function determining module is used for determining a function corresponding to the second equipment type;
a second function-to-be-displayed determining module, configured to determine, from the determined function and the first function-to-be-displayed, all functions that are different from each other as a second function-to-be-displayed;
and the second display module is used for displaying the second function to be displayed in the target electronic equipment.
In one implementation manner of the present invention, the first device type may include:
at least one of an encoding device, a decoding device, an access control device, or an alarm device.
An embodiment of the present invention further provides an electronic device, as shown in fig. 9, where the electronic device includes a processor 901 and a memory 902, where the memory 902 is used to store a computer program; the processor 901 is configured to execute the program stored in the memory 902, and implement the following steps:
determining a first device type of a first electronic device in communication connection with a target electronic device;
determining a first function to be displayed according to the first equipment type;
and displaying the first function to be displayed in the target electronic equipment.
Note that the target electronic device is the electronic device shown in fig. 9.
In the embodiment of the invention, a first device type of a first electronic device in communication connection with a target electronic device is determined, a first function to be displayed is determined according to the first device type, and the first function to be displayed is displayed in the target electronic device. In the embodiment of the invention, the function related to the first equipment type is displayed in the target electronic equipment by determining the first function to be displayed according to the first equipment type, and the displayed function is no longer the function of all equipment types which can be in communication connection with the target electronic equipment because the first equipment type is the equipment type of the first electronic equipment which is in communication connection with the target electronic equipment, so that the requirement of a user is met, and the user experience is optimized.
In one implementation manner of the present invention, the step of determining a first device type of a first electronic device communicatively connected to a target electronic device may include:
sending the device type acquisition information to a first electronic device in communication connection with the target electronic device;
and receiving a first device type fed back by a first electronic device in communication connection with the target electronic device.
In an implementation manner of the present invention, the step of determining the first function to be displayed according to the first device type may include:
searching a function corresponding to the first equipment type from a pre-established database according to the first equipment type, wherein the pre-established database stores the corresponding relation between the equipment type and the function;
detecting whether the number of the first device types is 1;
if so, determining the searched function as a first function to be displayed;
if not, all the different functions are determined to be the first function to be displayed from the searched functions.
In one implementation manner of the present invention, after the step of displaying the first function to be displayed in the target electronic device, the method may further include:
when a second electronic device in communication connection with the target electronic device is detected, determining a second device type of the second electronic device;
determining a function corresponding to the second equipment type;
determining all functions different from each other as second functions to be displayed from the determined functions and the first functions to be displayed;
and displaying the second function to be displayed in the target electronic equipment.
In one implementation manner of the present invention, the first device type may include:
at least one of an encoding device, a decoding device, an access control device, or an alarm device.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
A computer-readable storage medium, in which a computer program is stored which, when executed by a processor, carries out the steps of:
determining a first device type of a first electronic device in communication connection with a target electronic device;
determining a first function to be displayed according to the first equipment type;
and displaying the first function to be displayed in the target electronic equipment.
In the embodiment of the invention, a first device type of a first electronic device in communication connection with a target electronic device is determined, a first function to be displayed is determined according to the first device type, and the first function to be displayed is displayed in the target electronic device. In the embodiment of the invention, the function related to the first equipment type is displayed in the target electronic equipment by determining the first function to be displayed according to the first equipment type, and the displayed function is no longer the function of all equipment types which can be in communication connection with the target electronic equipment because the first equipment type is the equipment type of the first electronic equipment which is in communication connection with the target electronic equipment, so that the requirement of a user is met, and the user experience is optimized.
In one implementation manner of the present invention, the step of determining a first device type of a first electronic device communicatively connected to a target electronic device may include:
sending the device type acquisition information to a first electronic device in communication connection with the target electronic device;
and receiving a first device type fed back by a first electronic device in communication connection with the target electronic device.
In an implementation manner of the present invention, the step of determining the first function to be displayed according to the first device type may include:
searching a function corresponding to the first equipment type from a pre-established database according to the first equipment type, wherein the pre-established database stores the corresponding relation between the equipment type and the function;
detecting whether the number of the first device types is 1;
if so, determining the searched function as a first function to be displayed;
if not, all the different functions are determined to be the first function to be displayed from the searched functions.
In one implementation manner of the present invention, after the step of displaying the first function to be displayed in the target electronic device, the method may further include:
when a second electronic device in communication connection with the target electronic device is detected, determining a second device type of the second electronic device;
determining a function corresponding to the second equipment type;
determining all functions different from each other as second functions to be displayed from the determined functions and the first functions to be displayed;
and displaying the second function to be displayed in the target electronic equipment.
In one implementation manner of the present invention, the first device type may include:
at least one of an encoding device, a decoding device, an access control device, or an alarm device.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the embodiment of the function display apparatus shown in fig. 8, the embodiment of the electronic device shown in fig. 9, and the computer-readable storage medium, since they are substantially similar to the embodiment of the function display method shown in fig. 2, the description is relatively simple, and relevant points can be found by referring to the partial description of the embodiment of the function display method shown in fig. 2.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A function display method is applied to a target electronic device, and the method comprises the following steps:
determining a first device type of a first electronic device in communication connection with the target electronic device;
determining a first function to be displayed according to the first equipment type;
displaying the first function to be displayed in the target electronic equipment;
wherein, according to the first device type, determining a first function to be displayed includes:
searching a function corresponding to the first equipment type from a pre-established database according to the first equipment type, wherein the pre-established database stores the corresponding relation between the equipment type and the function;
detecting whether the number of the first device types is 1;
if so, determining the searched function as a first function to be displayed;
if not, all the different functions are determined to be the first function to be displayed from the searched functions.
2. The method of claim 1, wherein the step of determining a first device type of a first electronic device communicatively coupled to the target electronic device comprises:
sending device type acquisition information to first electronic equipment in communication connection with the target electronic equipment;
and receiving the first device type fed back by the first electronic device.
3. The method according to claim 1, characterized in that after the step of displaying the first function to be displayed in the target electronic device, the method further comprises:
when a second electronic device in communication connection with the target electronic device is detected, determining a second device type of the second electronic device;
determining a function corresponding to the second equipment type;
determining all functions different from each other as second functions to be displayed from the determined functions and the first functions to be displayed;
and displaying the second function to be displayed in the target electronic equipment.
4. The method of claim 1, wherein the first device type comprises:
at least one of an encoding device, a decoding device, an access control device, or an alarm device.
5. A function display apparatus, applied to a target electronic device, the apparatus comprising:
the first device type determining module is used for determining a first device type of a first electronic device in communication connection with the target electronic device;
the first function to be displayed determining module is used for determining a first function to be displayed according to the first equipment type;
the first display module is used for displaying the first function to be displayed in the target electronic equipment;
wherein, the first function to be displayed determining module includes:
the searching unit is used for searching a function corresponding to the first equipment type from a pre-established database according to the first equipment type, wherein the pre-established database stores the corresponding relation between the equipment type and the function;
the detection unit is used for detecting whether the number of the first equipment types is 1, if so, triggering the first determination unit, and if not, triggering the second determination unit;
the first determining unit is used for determining the searched function as a first function to be displayed;
the second determining unit is configured to determine all the different functions as the first function to be displayed from the searched functions.
6. The apparatus of claim 5, wherein the first device type determination module comprises:
a sending unit, configured to send device type acquisition information to a first electronic device in communication connection with the target electronic device;
and the receiving unit is used for receiving the first equipment type fed back by the first electronic equipment.
7. The apparatus of claim 5, further comprising:
the second device type determining module is used for determining a second device type of a second electronic device when the second electronic device which is in communication connection with the target electronic device is detected after the first function to be displayed is displayed in the target electronic device;
the function determining module is used for determining a function corresponding to the second equipment type;
a second function-to-be-displayed determining module, configured to determine, from the determined function and the first function-to-be-displayed, all functions that are different from each other as a second function-to-be-displayed;
and the second display module is used for displaying the second function to be displayed in the target electronic equipment.
8. The apparatus of claim 5, wherein the first device type comprises:
at least one of an encoding device, a decoding device, an access control device, or an alarm device.
9. An electronic device comprising a processor and a memory, wherein the memory is configured to store a computer program; the processor, configured to execute the program stored in the memory, implements the method steps of any of claims 1-4.
10. A computer-readable storage medium, characterized in that a computer program is stored in the storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 4.
CN201710706847.5A 2017-08-17 2017-08-17 Function display method and device, electronic equipment and storage medium Active CN109413370B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710706847.5A CN109413370B (en) 2017-08-17 2017-08-17 Function display method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710706847.5A CN109413370B (en) 2017-08-17 2017-08-17 Function display method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109413370A CN109413370A (en) 2019-03-01
CN109413370B true CN109413370B (en) 2021-01-15

Family

ID=65454930

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710706847.5A Active CN109413370B (en) 2017-08-17 2017-08-17 Function display method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109413370B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1540533A (en) * 2003-04-25 2004-10-27 ������������ʽ���� Information processor informaton processing method and control program thereof
CN101729672A (en) * 2009-11-10 2010-06-09 中兴通讯股份有限公司 Management method and system of multifunction mobile equipment
JP2016181120A (en) * 2015-03-24 2016-10-13 シャープ株式会社 Information processing device and image formation device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101896008B (en) * 2009-05-20 2013-02-13 仁宝电脑工业股份有限公司 Method for managing wireless communication component functions and user interface device
US9398283B2 (en) * 2013-02-12 2016-07-19 Honeywell International Inc. System and method of alarm and history video playback
CN103761203B (en) * 2013-11-29 2017-09-22 北京中启智源数字信息技术有限责任公司 A kind of general connection method for different hardware equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1540533A (en) * 2003-04-25 2004-10-27 ������������ʽ���� Information processor informaton processing method and control program thereof
CN101729672A (en) * 2009-11-10 2010-06-09 中兴通讯股份有限公司 Management method and system of multifunction mobile equipment
JP2016181120A (en) * 2015-03-24 2016-10-13 シャープ株式会社 Information processing device and image formation device

Also Published As

Publication number Publication date
CN109413370A (en) 2019-03-01

Similar Documents

Publication Publication Date Title
CN110209386B (en) Method for setting buried point of data, method and device for acquiring buried point data
CN110851308A (en) Test method, test device, electronic equipment and storage medium
WO2017113677A1 (en) User behavior data processing method and system
CN107085549B (en) Method and device for generating fault information
CN110557412A (en) data synchronization method and device
CN111123388B (en) Detection method and device for room camera device and detection equipment
EP3298540A1 (en) Systems, methods, and devices for information sharing and matching
CN109992264A (en) Window management method
CN110808881A (en) Model deployment method and device, target monitoring method and device, equipment and system
CN110572719A (en) Information display method, device and equipment
CA3062565A1 (en) Peripheral video presence detection
CN109413370B (en) Function display method and device, electronic equipment and storage medium
CN111083421A (en) Table document display method and device
CN206656471U (en) Air conditioner and monitoring system based on air conditioner
CN110334149B (en) Block chain-based data recording method and device and electronic equipment
CN108037950B (en) Information deleting method and device, electronic equipment and readable storage medium
CN115866211A (en) Equipment position tracking method and device, electronic equipment and medium
CN114040223B (en) Image processing method and system
CN111782869B (en) Video big data event library construction method and device and computer equipment
CN112135199B (en) Video playing method based on multiple types of video sources and related equipment
CN111400327B (en) Data synchronization method and device, electronic equipment and storage medium
CN112256820A (en) Document positioning method and device
CN106845202B (en) File access method, device and system for face recognition system
US20160277628A1 (en) Information processing apparatus, information processsing system, and non-transitory computer readable medium
CN113010587A (en) Data source configuration method, device, terminal, server and 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