CN111225052B - Device function expanding method, device and storage medium - Google Patents

Device function expanding method, device and storage medium Download PDF

Info

Publication number
CN111225052B
CN111225052B CN202010007392.XA CN202010007392A CN111225052B CN 111225052 B CN111225052 B CN 111225052B CN 202010007392 A CN202010007392 A CN 202010007392A CN 111225052 B CN111225052 B CN 111225052B
Authority
CN
China
Prior art keywords
data
equipment
network data
instruction
external
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
CN202010007392.XA
Other languages
Chinese (zh)
Other versions
CN111225052A (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.)
TP Link Technologies Co Ltd
Original Assignee
TP Link Technologies 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 TP Link Technologies Co Ltd filed Critical TP Link Technologies Co Ltd
Priority to CN202010007392.XA priority Critical patent/CN111225052B/en
Publication of CN111225052A publication Critical patent/CN111225052A/en
Application granted granted Critical
Publication of CN111225052B publication Critical patent/CN111225052B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • H04L69/324Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the data link layer [OSI layer 2], e.g. HDLC

Abstract

The application is applicable to the technical field of computers, provides an equipment function expanding method, is applied to external equipment, and comprises the following steps: acquiring first network data sent by first equipment, and detecting the data type of the first network data, wherein the first equipment is in communication connection with the external equipment through a general interface; and if the data type is an instruction data type, analyzing the first network data to obtain a functional instruction corresponding to the first network data, and executing the functional instruction. The universal interface of the first equipment is in communication connection with the external equipment, so that the limitation on transmission distance is eliminated, the first equipment does not need to reserve a fixed interface any more, the external equipment has the function of analyzing and identifying network data besides realizing the function expansion of the first equipment by the function of the external equipment, and the capacity of expanding other functions of the first equipment is further expanded.

Description

Device function expanding method, device and storage medium
Technical Field
The application belongs to the technical field of computers, and particularly relates to a method and a device for expanding functions of devices and a storage medium.
Background
With the technological progress, people have more and more requirements on the functions of terminal equipment. Besides purchasing new terminal equipment, function expansion can be performed on the basis of original terminal equipment. For example, function enhancement is performed on the network camera by adding third-party equipment (such as an external supplementary lighting lamp, an external cradle head and the like). However, the existing device function expanding method has limitations, such as that a fixed interface (such as RS232 and RS 485) supporting third-party devices needs to be reserved for the network camera, the network camera and the external device have limitations on data transmission distance, and the external device can only realize its own functions.
Disclosure of Invention
The embodiment of the application provides a method, equipment and a storage medium for expanding the function of equipment, and can solve the problem that the existing method for expanding the function of equipment has limitation.
In a first aspect, an embodiment of the present application provides an apparatus function expanding method, which is applied to an external apparatus, and the method includes:
acquiring first network data sent by first equipment, and detecting the data type of the first network data, wherein the first equipment is in communication connection with the external equipment through a general interface;
and if the data type is an instruction data type, analyzing the first network data to obtain a functional instruction corresponding to the first network data, and executing the functional instruction.
According to the embodiment of the application, the first equipment is in communication connection with the external equipment through the universal interface, the communication connection comprises wired connection and wireless connection, so that the first equipment and the external equipment can remotely transmit data, the limitation on transmission distance is eliminated, and communication can be carried out as long as the universal interface is available, so that the first equipment does not need to reserve a fixed interface any more. The method comprises the steps of obtaining first network data sent by first equipment, detecting the data type of the first network data, analyzing the network data if the data type of the first network data is an instruction data type, obtaining a function instruction corresponding to the first network data, and executing the function instruction, so that the external equipment has the functions of analyzing and identifying the network data besides realizing function expansion of the first equipment by using the functions of the external equipment, and the capacity of expanding other functions of the first equipment.
In a second aspect, an embodiment of the present application provides an apparatus function expanding method, which is applied to a second apparatus, and the method includes:
if it is determined that the first device supports the external device, sending second network data with a data type of an instruction data type to the first device, wherein the second network data is used for indicating the first device to separate the instruction data in the second network data and forward the instruction data to the external device, and the instruction data is used for indicating the external device to analyze the instruction data to obtain a function instruction corresponding to the instruction data and execute the function instruction;
if the first device does not support the external device, third network data with a data type of an instruction data type is sent to the external device, and the third network data is used for indicating the external device to analyze the third network data to obtain a function instruction corresponding to the third network data and executing the function instruction.
In a third aspect, an embodiment of the present application provides an external device, including a memory, a processor, and a computer program that is stored in the memory and is executable on the processor, where the processor implements the device function expanding method described in any one of the first aspects when executing the computer program.
In a fourth aspect, an embodiment of the present application provides a second device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor, when executing the computer program, implements the device function expanding method described in any one of the second aspects.
In a fifth aspect, the present application provides a computer-readable storage medium, and a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the device function expanding method according to any one of the first aspect or the second aspect.
In a sixth aspect, an embodiment of the present application provides a computer program product, which, when running on a terminal device, causes the terminal device to execute the device function expanding method described in any one of the first aspect or the second aspect.
It is understood that the beneficial effects of the second to sixth aspects can be seen from the description of the first aspect, and are not described herein again.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a schematic diagram of a system provided by an embodiment of the present application;
FIG. 2 is a schematic diagram of an application scenario provided in an embodiment of the present application;
fig. 3 is a schematic flowchart of a method for extending device functions according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a method for extending device functions according to another embodiment of the present application;
fig. 5 is a schematic flowchart of a method for extending device functions according to another embodiment of the present application;
fig. 6 is a schematic flowchart of a method for extending device functions according to another embodiment of the present application;
fig. 7 is a schematic flowchart of a method for extending device functions according to another embodiment of the present application;
fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless otherwise specifically stated.
As related introduction of background art, the existing device function expanding method has limitations, and on one hand, a fixed interface (such as RS232 and RS 485) for supporting third-party devices needs to be reserved for the network camera, so that the network camera and external devices need to be ensured to support the fixed interface; on the other hand, the network camera is connected with the external equipment through a wired network, so that the data between the network camera and the external equipment is limited in transmission distance; on the other hand, the external equipment can only realize the single function expansion of the network camera through the own function.
Therefore, an embodiment of the present application provides an apparatus function expanding method, which implements connecting a first apparatus and an external apparatus through a general interface, without requiring the first apparatus to reserve a fixed interface for supporting the external apparatus, and implements a corresponding operation on network data corresponding to a data type by identifying the data type of the network data, so that the external apparatus can implement its own function and also can implement an operation process on the data.
Fig. 1 shows a schematic diagram of a system provided in an embodiment of the present application. The system comprises a first device 101, a second device 102 and an external device 103, wherein the first device 101 is in communication connection with the external device 103 through a universal interface, and the second device 102 is in communication connection with the external device 103 through the universal interface.
The first device 101 is a terminal device that needs to perform function enhancement or function expansion, and for example, the terminal device may be a mobile phone, a tablet computer, a wearable device, an in-vehicle device, an Augmented Reality (AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), a webcam, a network television, or any other terminal device with a communication capability, which is provided with a universal interface.
The second device 102 is a terminal device for acquiring Network data of the first device or executing an instruction to an external device function, and for example, the terminal device may be a mobile phone, a tablet computer, a wearable device, an in-vehicle device, an Augmented Reality (AR)/Virtual Reality (VR) device, a notebook computer, a super-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), a Network Video Recorder (NVR), and the like, which are provided with a universal interface.
The external device 103 is an external device having an independent function and an operation processing capability, and illustratively, the external device may be an external cradle head, an external light supplement lamp, an external alarm, an external sound, an external keyboard, and the like, which are provided with two or more universal interfaces.
For convenience of understanding and explanation, fig. 2 is an application scene diagram illustrating an apparatus function expanding method with a network camera 201 as a first apparatus, an external cradle head 203 as an external apparatus, and an NVR 202 as a second apparatus. The network camera 201 and the NVR 202 are respectively provided with a universal interface, the external cloud deck is provided with 2 universal interfaces, and the universal interfaces on the network camera 201 and the NVR 202 are respectively connected with the 2 universal interfaces on the external cloud deck, so that communication connection is realized.
It should be understood that the application scenarios provided in the embodiments of the present application are only for illustration and are not intended to limit the specific embodiments of the present application. In other specific embodiments, the first device, the external device, and the second device may also be other devices shown in the system.
Fig. 3 shows a schematic flow chart of the device function expanding method provided in the present application, which may be applied to the external device, by way of example and not limitation.
S301, acquiring first network data sent by first equipment, and detecting the data type of the first network data, wherein the first equipment is in communication connection with the external equipment through a general interface;
in S301, the first network data may be instruction data of an instruction data type, such as an instruction for enabling an external device to execute a corresponding function, or the first network data may be data of a non-instruction data type, such as video data, image data, and voice data.
The universal interface comprises a wired network interface and a wireless network interface, wherein the wired network interface is an Ethernet interface, and the wireless network interface is a wifi wireless network interface. The first equipment realizes communication connection with the external equipment through the universal interface, the first equipment does not need to reserve a fixed interface for supporting the external equipment, and the first equipment can be in communication connection, so that hardware of the first equipment does not need to be upgraded, a special interface does not need to be added to the external equipment, and the wide application of the equipment function expanding method is facilitated.
In a possible implementation mode, the first device is a network camera, the external device is an external cloud deck, the network camera acquires video data and sends the video data to the external cloud deck, and the external cloud deck recognizes the video data and forwards the video to the NVR. In another possible implementation manner, the network camera sends instruction data for enabling the external cradle head to perform rotation operation to the external cradle head according to the requirement for recording the video data, and after the external cradle head recognizes the instruction data, the instruction data is analyzed into a function instruction, and rotation operation corresponding to the function instruction is executed.
It should be understood that, in the present application, the first device and the second device may be the first device that needs function enhancement or function expansion in the system, or may be the second device that executes instructions to the function of the external device in the system.
S302, if the data type is the instruction data type, analyzing the first network data to obtain a function instruction corresponding to the first network data, and executing the function instruction.
In the above S302, the external device is provided with an exchange route (specifically, a routing chip), and the exchange route is used to analyze the network data and execute the corresponding function instruction. In this embodiment, the external device realizes the function expansion of the first device by its own function by analyzing the network data and executing the function instruction corresponding to the first network data, and has a function of analyzing and identifying the network data to realize the capability of other function expansion of the first device.
On the basis of the embodiment shown in fig. 3, fig. 4 is a schematic flowchart illustrating another device function expanding method provided in the embodiment of the present application. As shown in fig. 4, the detecting of the data type of the first network data in step S301 specifically includes S401 and S402. It should be noted that, the same steps as those in the embodiment shown in fig. 3 are not repeated herein, please refer to the foregoing description.
S401, detecting a transmission channel of the first network data;
in the S401, the transmission channel is a network protocol layer channel, which may be based on a seven-layer protocol layer model, and from the first layer to the seventh layer, the transmission channel is a physical layer, a data link layer, a network layer, a transport layer, a session layer, a presentation layer, and an application layer. The first device sends first network data to the external device through different network protocol layers according to the network data of different data types.
S402, if the transmission channel of the first network data is a preset protocol layer, determining that the data type of the first network data is an instruction data type.
In the above S402, the predetermined protocol layer is one of the seven protocol layer models. In this embodiment, the network data of the instruction data type is transmitted through a two-layer protocol layer, that is, the data is transmitted through a data link layer, the data link layer is a protocol layer defined by an underlying network, and general data does not go through the layer, such as an HTTP and FTP application layer, a TCP and UDP transmission layer, and an IP network layer, so that as long as the data goes through the data link layer, the data is determined as the instruction data type of the application, so that the network data of the instruction data type and the non-instruction data type of the application can be better distinguished.
On the basis of the embodiment shown in fig. 3, fig. 5 shows a flowchart of another device function expansion method provided in the embodiment of the present application. As shown in fig. 5, step S501 is further included after step S302. It should be noted that, the same steps as those in the embodiment shown in fig. 3 are not repeated herein, please refer to the foregoing description.
S501, if the data type is a non-instruction data type, forwarding the first network data to the second device, wherein the second device is in communication connection with the external device through a general interface.
In the above S501, if the transmission channel of the first network data is not the predetermined protocol layer, it indicates that the first network data is network data of a non-instruction data type, such as video data, language data, and the like. In this embodiment, the external device forwards the first network data of the first device to the second device, thereby playing a role of switching a route.
On the basis of the embodiment shown in fig. 3, the present application provides another embodiment of a device function expanding method. The step S302 specifically includes S3021. It should be noted that, the same steps as those in the embodiment shown in fig. 3 are not repeated herein, please refer to the foregoing description.
And S3021, analyzing the first network data through a preset routing chip on the external device.
In S3021, the routing chip may be a chip with a GPIO interface or an SOC chip (system on chip). The routing chip with the GPIO interface can enable the external device to have a network switching function and a certain operation function, and the external device can support the function expansion of the first device; the SOC chip can be connected with external equipment and has a stronger operation function, such as an image processing and analyzing function, and also has a certain network exchange function.
Fig. 6 is a flowchart illustrating a method for expanding a device function according to another embodiment of the present application, and by way of example and not limitation, the method may be applied to the second device.
S601, if it is determined that the first device supports an external device, sending second network data of which the data type is an instruction data type to the first device, where the second network data is used to instruct the first device to separate instruction data in the second network data and forward the instruction data to the external device, and the instruction data is used to instruct the external device to analyze the instruction data to obtain a function instruction corresponding to the instruction data and execute the function instruction;
in the above S601, the first device takes the network camera and the second device as an example, if the network camera supports the external device, the user may send the second network data of the instruction data type through a graphical interface at a computer (requiring utility software), a mobile phone (requiring APP), or NVR (requiring software support), the second network data is transmitted to the corresponding network camera through the network cable, the network camera separates the instruction data from the second network data and sends the separated instruction data to the external device, the routing chip on the external device analyzes and processes the instruction data, and executes the corresponding instruction, which acts on the functional module of the external device.
And S602, if it is determined that the first device does not support the external device, sending third network data with a data type of an instruction data type to the external device, where the third network data is used to instruct the external device to analyze the third network data to obtain a function instruction corresponding to the third network data, and executing the function instruction.
In the above S602, the first device takes the network camera and the second device as the computer as an example, if the network camera of the user does not support the external device, the user sends the network data of the instruction data type from the graphical interface of the computer (which needs the usability software), the network data is transmitted to the external device through the network cable, and the routing chip on the external device analyzes and processes the network data, executes the corresponding instruction, and acts on the function module of the external device.
The embodiment of the application provides a mode for sending the instruction data to the external equipment supported by the first equipment and a mode for sending the instruction data to the external equipment not supported by the first equipment, so that the external equipment can be controlled to realize function expansion of the first equipment no matter whether the interfaces of the first equipment and the second equipment are consistent or not.
On the basis of the embodiment shown in fig. 6, the present application provides another embodiment of a device function expanding method. The above method further includes S6011 to S6013. It should be noted that, the same steps as those in the embodiment shown in fig. 6 are not repeated herein, please refer to the foregoing description.
S6011, detecting a compatibility index between the first device and the external device;
s6012, if the compatibility index meets a preset index, determining that the first device supports the external device;
s6013, if the compatibility index does not meet the preset index, it is determined that the first device does not support the external device.
In the S6011, the compatibility index includes a software compatibility index and/or a hardware compatibility index, where the software compatibility index includes forward compatibility and backward compatibility, compatibility between different versions, standards and specifications, and data sharing compatibility; the hardware compatibility index includes a particular statement by the first device of the make or model of the external device.
In the foregoing S6012 and S6013, if the software compatibility index and/or the hardware compatibility index meet a preset index, if the brand and the model of the external device conform to a special statement of the first device, it is determined that the first device supports the external device, otherwise it is determined that the first device does not support the external device.
On the basis of the embodiment shown in fig. 6, fig. 7 is a schematic flowchart illustrating another device function expanding method provided in the embodiment of the present application. As shown in fig. 7, the above step S602 further includes S701 and S702. It should be noted that, the same steps as those in the embodiment shown in fig. 6 are not repeated herein, please refer to the foregoing description.
S701, converting the third network data into message data;
s702, sending the message data to the external equipment through a preset protocol layer.
In the above S701 and S702, the message data is a data packet of third network data, and the preset protocol layer may be a two-layer protocol layer. And the third network data is sent to the external equipment through a preset protocol layer, so that the external equipment is favorable for determining the type of the third network data according to a transmission channel of the third network data.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 8, the terminal device 8 of this embodiment may be the external device, which includes: at least one processor 80 (only one is shown in fig. 8), a memory 81, and a computer program 82 stored in the memory 81 and operable on the at least one processor 80, wherein the processor 80 executes the computer program 82 to implement the steps in the various device function expanding method embodiments based on the embodiment shown in fig. 3.
The terminal device 8 may also be the second device described above, and includes: at least one processor 80 (only one is shown in fig. 8), a memory 81, and a computer program 82 stored in the memory 81 and operable on the at least one processor 80, wherein the processor 80 executes the computer program 82 to implement the steps in the various device function expanding method embodiments based on the embodiment shown in fig. 6.
The terminal device 8 may be a mobile phone, a desktop computer, a notebook, a palm computer, a network camera, or other computing devices. The terminal device may include, but is not limited to, a processor 80, a memory 81. Those skilled in the art will appreciate that fig. 8 is merely an example of the terminal device 8, and does not constitute a limitation of the terminal device 8, and may include more or less components than those shown, or combine some components, or different components, such as an input-output device, a network access device, and the like.
The Processor 80 may be a Central Processing Unit (CPU), and the Processor 80 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 81 may in some embodiments be an internal storage unit of the terminal device 8, such as a hard disk or a memory of the terminal device 8. In other embodiments, the memory 81 may also be an external storage device of the terminal device 8, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a flash Card (FlashCard), or the like provided on the terminal device 8. Further, the memory 81 may also include both an internal storage unit and an external storage device of the terminal device 8. The memory 81 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer programs. The memory 81 may also be used to temporarily store data that has been output or is to be output.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/terminal apparatus, a recording medium, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the embodiments of the present application, and they should be construed as being included in the present application.

Claims (9)

1. An equipment function expanding method is applied to external equipment and is characterized by comprising the following steps:
acquiring first network data sent by first equipment, and detecting the data type of the first network data, wherein the first equipment is in communication connection with the external equipment through a general interface;
if the data type is an instruction data type, analyzing the first network data to obtain a functional instruction corresponding to the first network data, and executing the functional instruction;
the detecting the data type of the first network data includes:
detecting a transmission channel of the first network data;
and if the transmission channel of the first network data is a preset protocol layer, determining that the data type of the first network data is an instruction data type.
2. The device function expanding method according to claim 1, further comprising:
and if the data type is a non-instruction data type, forwarding the first network data to second equipment, wherein the second equipment is in communication connection with the external equipment through a general interface.
3. The device function expanding method according to any one of claims 1 to 2, wherein the parsing the first network data includes:
and analyzing the first network data through a preset routing chip on the external equipment.
4. A method for expanding the function of equipment is applied to second equipment, and is characterized in that the method comprises the following steps:
if it is determined that the first device supports the external device, sending second network data with a data type of an instruction data type to the first device, wherein the second network data is used for indicating the first device to separate the instruction data in the second network data and forward the instruction data to the external device, and the instruction data is used for indicating the external device to analyze the instruction data to obtain a function instruction corresponding to the instruction data and execute the function instruction;
if the first device does not support the external device, third network data with a data type of an instruction data type is sent to the external device, and the third network data is used for instructing the external device to analyze the third network data to obtain a function instruction corresponding to the third network data and executing the function instruction.
5. An apparatus expansion method according to claim 4, further comprising:
detecting a compatibility index between the first device and the external device;
if the compatibility index meets a preset index, determining that the first equipment supports the external equipment;
and if the compatibility index does not accord with the preset index, determining that the first equipment does not support the external equipment.
6. The method for expanding the device function according to claim 4, wherein the sending of the third network data with the data type of the instruction data type to the external device includes:
converting the third network data into message data;
and sending the message data to the external equipment through a preset protocol layer.
7. An external device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of any of claims 1 to 3 when executing the computer program.
8. A second device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 4 to 6 when executing the computer program.
9. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 3, or 4 to 6.
CN202010007392.XA 2020-01-04 2020-01-04 Device function expanding method, device and storage medium Active CN111225052B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010007392.XA CN111225052B (en) 2020-01-04 2020-01-04 Device function expanding method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010007392.XA CN111225052B (en) 2020-01-04 2020-01-04 Device function expanding method, device and storage medium

Publications (2)

Publication Number Publication Date
CN111225052A CN111225052A (en) 2020-06-02
CN111225052B true CN111225052B (en) 2023-03-28

Family

ID=70828124

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010007392.XA Active CN111225052B (en) 2020-01-04 2020-01-04 Device function expanding method, device and storage medium

Country Status (1)

Country Link
CN (1) CN111225052B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103166813A (en) * 2011-12-14 2013-06-19 中国电信股份有限公司 Method and system supporting a plurality of manufacturer devices to access to internet of things
CN109245951A (en) * 2018-11-06 2019-01-18 武汉虹信通信技术有限责任公司 A method of network optimization equipment networking monitoring is realized based on web
CN110365644A (en) * 2019-06-05 2019-10-22 华南理工大学 A method of building internet of things equipment high-performance monitoring platform

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1345384A3 (en) * 2002-03-13 2004-09-22 Matsushita Electric Industrial Co., Ltd. Data communication method
CN101277293B (en) * 2007-06-25 2011-05-25 广东中大讯通软件科技有限公司 Adapter for implementing interconnection and intercommunication of multiple protocols among digital household equipments as well as method thereof
CN101989072B (en) * 2009-07-31 2012-10-03 宁波家天下智能系统有限公司 Household equipment controller
CN105208351A (en) * 2015-10-15 2015-12-30 西安工程大学 Pan-tilt control network monitoring system based on ONVIF standards
JP6724367B2 (en) * 2016-01-07 2020-07-15 ヤマハ株式会社 Communication system and communication device
CN106444983A (en) * 2016-09-05 2017-02-22 努比亚技术有限公司 Device and method for achieving computer external connection function
CN106657609A (en) * 2016-11-18 2017-05-10 成都六维人科技有限公司 Virtual reality device and control device and method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103166813A (en) * 2011-12-14 2013-06-19 中国电信股份有限公司 Method and system supporting a plurality of manufacturer devices to access to internet of things
CN109245951A (en) * 2018-11-06 2019-01-18 武汉虹信通信技术有限责任公司 A method of network optimization equipment networking monitoring is realized based on web
CN110365644A (en) * 2019-06-05 2019-10-22 华南理工大学 A method of building internet of things equipment high-performance monitoring platform

Also Published As

Publication number Publication date
CN111225052A (en) 2020-06-02

Similar Documents

Publication Publication Date Title
US11934352B2 (en) Card rendering method and electronic device
CN111309279B (en) Multi-screen interactive display method and device
US20200339139A1 (en) Automobile diagnostic method, apparatus, device and system, and diagnostic connection device
US11711441B2 (en) Method and apparatus for publishing video synchronously, electronic device, and readable storage medium
EP2773128A2 (en) Content streaming between devices
CN114006894B (en) Data processing system, method, electronic device, and computer storage medium
CN111031368A (en) Multimedia playing method, device, equipment and storage medium
CN110290398B (en) Video issuing method and device, storage medium and electronic equipment
CN112398855A (en) Method and device for transferring application contents across devices and electronic device
CN112202803A (en) Audio processing method, device, terminal and storage medium
CN112770159A (en) Multi-screen interaction system, method, device, equipment and storage medium
CN110070592B (en) Generation method and device of special effect package and hardware device
CN111263220A (en) Video processing method and device, electronic equipment and computer readable storage medium
CN114155119A (en) Data processing system, method, electronic device, and computer storage medium
CN114040189A (en) Multimedia test method, device, storage medium and electronic equipment
WO2024066757A1 (en) Data frame transmission method and apparatus, and readable storage medium
CN111225052B (en) Device function expanding method, device and storage medium
CN112527430A (en) Data deployment method and related device
US11606604B2 (en) System and method for streaming video data
WO2023134509A1 (en) Video stream pushing method and apparatus, and terminal device and storage medium
CN115695928A (en) Screen projection method and device, electronic equipment and storage medium
US20080133655A1 (en) Network system
CN113031895A (en) Screen projection control method and device and electronic equipment
CN114639392A (en) Audio processing method and device, electronic equipment and storage medium
CN114490495A (en) Control method, control device, terminal equipment and computer readable storage medium

Legal Events

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