Signal switching method and device, storage medium and electronic equipment

文档序号:567673 发布日期:2021-05-18 浏览:3次 中文

阅读说明:本技术 信号切换方法和装置、存储介质及电子设备 (Signal switching method and device, storage medium and electronic equipment ) 是由 朱俊 蔡剑峰 于 2021-01-25 设计创作,主要内容包括:本发明公开了一种信号切换方法和装置、存储介质及电子设备。其中,该方法包括:通过在目标设备上电后,获取所述目标设备的第一主控模块的第一电平信号,其中,所述第一主控模块用于管理第一业务;在所述第一电平信号指示为低电平信号的情况下,将第一信号切换至所述第一主控模块,达到了多个设备通过第一主控模块和第二主控模块等多个模块插入多节点设备之后,可以自行切换接管相关业务,无需重新断电插拔,无需担心插错的目的,进而解决了现有技术中,多节点设备无法自适应节点接入的多个设备的技术问题。(The invention discloses a signal switching method and device, a storage medium and electronic equipment. Wherein, the method comprises the following steps: after target equipment is powered on, acquiring a first level signal of a first main control module of the target equipment, wherein the first main control module is used for managing a first service; under the condition that the first level signal indicates a low level signal, the first signal is switched to the first main control module, so that the purposes that a plurality of devices are inserted into a plurality of nodes through the first main control module, the second main control module and other modules, the related services can be automatically switched and taken over, the plugging and unplugging are not needed to be interrupted again, and the plugging and unplugging are not needed to be worried about, and the technical problem that the plurality of nodes cannot be self-adaptive to the plurality of devices accessed by the nodes in the prior art is solved.)

1. A node identification method, comprising:

after a target device is powered on, acquiring a first level signal of a first main control module of the target device, wherein the first main control module is used for managing a first service;

and under the condition that the first level signal indicates a low level signal, switching the first signal to the first main control module.

2. The method of claim 1, comprising:

acquiring a second level signal of a second main control module of the target device, wherein the second main control module is used for managing a second service;

and switching a second signal to the second main control module under the condition that the second level signal indicates a high level signal.

3. The method of claim 1, wherein before the obtaining the first level signal of the first master module of the target device, the method comprises:

acquiring first identification information of a first processor in the first main control module;

determining first information of a first level signal of the first master control module according to the first identification information, wherein the first information is used for indicating whether the first level signal is a high level signal or a low level signal.

4. The method of claim 2, wherein before the obtaining the second level signal of the first master module of the target device, the method comprises:

acquiring second identification information of a second processor in the second main control module;

and determining second information of a second level signal of the second main control module according to the second identification information, wherein the second information is used for indicating whether the second level signal is a high level signal or a low level signal.

5. A signal switching apparatus, comprising:

the first obtaining unit is configured to obtain a first level signal of a first main control module of a target device after the target device is powered on, where the first main control module is configured to manage a first service;

the first switching unit is used for switching the first signal to the first main control module under the condition that the first level signal indicates a low level signal.

6. The apparatus of claim 5, wherein the apparatus comprises:

a second obtaining unit, configured to obtain a second level signal of a second main control module of the target device, where the second main control module is configured to manage a second service;

and the second switching unit is used for switching the second signal to the second main control module under the condition that the second level signal indicates a high level signal.

7. The apparatus of claim 5, wherein the apparatus comprises:

a third obtaining unit, configured to obtain first identification information of a first processor in a first main control module of the target device before obtaining a first level signal of the first main control module;

a first determining unit, configured to determine first information of a first level signal of the first master control module according to the first identification information, where the first information is used to indicate whether the first level signal is a high level signal or a low level signal.

8. The apparatus of claim 6, wherein the apparatus comprises:

a fourth obtaining unit, configured to obtain second identification information of a second processor in the second main control module before obtaining the second level signal of the first main control module of the target device;

a second determining unit, configured to determine second information of a second level signal of the second master control module according to the second identification information, where the second information is used to indicate whether the second level signal is a high level signal or a low level signal.

9. A multi-node device, wherein the multi-node device employs a signal switching method, comprising:

the first main control module is connected with the switching module and used for managing the first service;

the second main control module is connected with the switching module and used for managing a second service;

the switching module is used for switching the first signal to the first main control module or switching the second signal to the second main control module according to the first level signal of the first main control module.

10. The multi-node apparatus of claim 9, wherein the multi-node apparatus comprises:

and the storage module is connected with the switching module and is used for storing video streams and/or pictures when the first service is an intelligent analysis and storage service.

11. The multi-node apparatus of claim 9, wherein the multi-node apparatus comprises:

and the visualization module is connected with the switching module and is used for displaying video streams and/or pictures when the first service is an intelligent analysis and storage service.

12. A computer-readable storage medium, comprising a stored program, wherein the program when executed performs the method of any of claims 1 to 4.

13. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 4 by means of the computer program.

Technical Field

The invention relates to the field of multi-service processing all-in-one machines, in particular to a signal switching method and device, a storage medium and electronic equipment.

Background

Due to space limitation, multiple devices cooperatively complete services, such as storage services, intelligent services, and the like, and gradually tend to complete each service by an integrated machine. Currently, an all-in-one machine device has a plurality of nodes, and each node device processes different services, such as: one node device processes services relative to a platform, and the other node processes intelligent related services, so that the all-in-one machine has the possibility of wrong insertion of a plurality of node devices; and the other method is that the hardware is prevented from being plugged in by mistake, and the user is reminded to plug in and pull out again.

In the prior art, the structure is fixed, so that the insertion is not wrong, the traditional mode is adopted, and if a customer inserts the device forcibly, the structural part or the device is damaged, the damage cost of the device is influenced, and the maintenance cost of personnel is also increased. 2. The hardware is prevented from being plugged by mistake, the user is reminded to plug again, the mode needs to be powered off and plugged again, the operation is complex, and the user experience is not facilitated.

In view of the above problems, no effective solution has been proposed.

Disclosure of Invention

The embodiment of the invention provides a signal switching method and device, a storage medium and electronic equipment, which are used for at least solving the technical problem that in the prior art, a multi-node device cannot adapt to a plurality of devices accessed by a node.

According to an aspect of the embodiments of the present invention, there is provided a signal switching method, including: after a target device is powered on, acquiring a first level signal of a first main control module of the target device, wherein the first main control module is used for managing a first service; and under the condition that the first level signal indicates a low level signal, switching the first signal to the first main control module.

Optionally, the method includes: acquiring a second level signal of a second main control module of the target device, wherein the second main control module is used for managing a second service; and switching a second signal to the second main control module under the condition that the second level signal indicates a high level signal.

Optionally, before the obtaining of the first level signal of the first main control module of the target device, the method includes: acquiring first identification information of a first processor in the first main control module; determining first information of a first level signal of the first master control module according to the first identification information, wherein the first information is used for indicating whether the first level signal is a high level signal or a low level signal.

Optionally, before the obtaining of the second level signal of the first main control module of the target device, the method includes: acquiring second identification information of a second processor in the second main control module; and determining second information of a second level signal of the second main control module according to the second identification information, wherein the second information is used for indicating whether the second level signal is a high level signal or a low level signal.

According to another aspect of the embodiments of the present invention, there is also provided a signal switching apparatus, including: the first obtaining unit is configured to obtain a first level signal of a first main control module of a target device after the target device is powered on, where the first main control module is configured to manage a first service; the first switching unit is used for switching the first signal to the first main control module under the condition that the first level signal indicates a low level signal.

Optionally, the apparatus includes: a second obtaining unit, configured to obtain a second level signal of a second main control module of the target device, where the second main control module is configured to manage a second service; and the second switching unit is used for switching the second signal to the second main control module under the condition that the second level signal indicates a high level signal.

Optionally, the apparatus includes: a third obtaining unit, configured to obtain first identification information of a first processor in a first main control module of the target device before obtaining a first level signal of the first main control module; a first determining unit, configured to determine first information of a first level signal of the first master control module according to the first identification information, where the first information is used to indicate whether the first level signal is a high level signal or a low level signal.

Optionally, the apparatus includes: a fourth obtaining unit, configured to obtain second identification information of a second processor in the second main control module before obtaining the second level signal of the first main control module of the target device; a second determining unit, configured to determine second information of a second level signal of the second master control module according to the second identification information, where the second information is used to indicate whether the second level signal is a high level signal or a low level signal.

According to another aspect of the embodiments of the present invention, there is also provided a multi-node device, where the multi-node device employs a signal switching method, including: the first main control module is connected with the switching module and used for managing the first service; the second main control module is connected with the switching module and used for managing a second service; the switching module is used for switching the first signal to the first main control module or switching the second signal to the second main control module according to the first level signal of the first main control module.

Optionally, the multi-node device includes: and the storage module is connected with the switching module and is used for storing video streams and/or pictures when the first service is an intelligent analysis and storage service.

Optionally, the multi-node device includes: and the visualization module is connected with the switching module and is used for displaying video streams or pictures when the first service is an intelligent analysis and storage service.

According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the signal switching method when running.

According to still another aspect of the embodiments of the present invention, there is also provided an electronic device, including a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the signal switching method by the computer program.

In the embodiment of the present invention, after a target device is powered on, a first level signal of a first main control module of the target device is obtained, where the first main control module is used to manage a first service; under the condition that the first level signal indicates a low level signal, the first signal is switched to the first main control module, so that the purposes that a plurality of devices are inserted into a plurality of nodes through the first main control module, the second main control module and other modules, the related services can be automatically switched and taken over, the plugging and unplugging are not needed to be interrupted again, and the plugging and unplugging are not needed to be worried about, and the technical problem that the plurality of nodes cannot be self-adaptive to the plurality of devices accessed by the nodes in the prior art is solved.

Drawings

The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:

FIG. 1 is a schematic diagram of an application environment of an alternative signal switching method according to an embodiment of the present invention;

FIG. 2 is a flow chart of an alternative signal switching method according to an embodiment of the present invention;

FIG. 3 is a block diagram of an alternative target device in accordance with an embodiment of the present invention;

FIG. 4 is a schematic structural diagram of an alternative multi-node device supporting adaptive hybrid insertion according to an embodiment of the present invention;

FIG. 5 is a flowchart of an alternative method for implementing mixed insertion for a multi-node device according to an embodiment of the present invention;

FIG. 6 is a schematic diagram of an alternative signal switching device according to an embodiment of the present invention;

FIG. 7 is a schematic diagram of an alternative multi-node device, according to an embodiment of the invention;

fig. 8 is a schematic structural diagram of an alternative electronic device according to an embodiment of the invention.

Detailed Description

In order to make the technical solutions of the present invention better understood, 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.

It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.

According to an aspect of the embodiments of the present invention, a signal switching method is provided, and optionally, as an optional implementation manner, the signal switching method may be applied, but not limited, to the environment as shown in fig. 1. Terminal device 102, network 104, and server 106.

After a target device is powered on, the server 106 acquires a first level signal of a first main control module of the target device, wherein the first main control module is used for managing a first service; under the condition that the first level signal indicates a low level signal, the first signal is switched to the first main control module, so that the purposes that a plurality of devices are inserted into a plurality of nodes through the first main control module, the second main control module and other modules, the related services can be automatically switched and taken over, the plugging and unplugging are not needed to be interrupted again, and the plugging and unplugging are not needed to be worried about, and the technical problem that the plurality of nodes cannot be self-adaptive to the plurality of devices accessed by the nodes in the prior art is solved.

Optionally, in this embodiment, the signal switching method may include, but is not limited to, being performed by the terminal device 102 and the server 106 together.

Optionally, in this embodiment, the terminal device may be a terminal device configured with a target client, and may include, but is not limited to, at least one of the following: mobile phones (such as Android phones, iOS phones, etc.), notebook computers, tablet computers, palm computers, MID (Mobile Internet Devices), PAD, desktop computers, smart televisions, etc. The target client may be a video client, an instant messaging client, a browser client, an educational client, etc. Such networks may include, but are not limited to: a wired network, a wireless network, wherein the wired network comprises: a local area network, a metropolitan area network, and a wide area network, the wireless network comprising: bluetooth, WIFI, and other networks that enable wireless communication. The server may be a single server, a server cluster composed of a plurality of servers, or a cloud server. The above is merely an example, and this is not limited in this embodiment.

Optionally, as an optional implementation manner, as shown in fig. 2, the signal switching method includes:

step S202, after the target device is powered on, a first level signal of a first main control module of the target device is obtained, where the first main control module is used to manage the first service.

Step S204, under the condition that the first level signal indicates a low level signal, switching the first signal to the first main control module.

Optionally, in this embodiment, the signal switching method may include, but is not limited to, being applied to a kiosk with multiple nodes, where the kiosk may provide multiple slots, and the multiple slots are used to connect multiple devices, and the multiple slots may be identical in appearance.

The first service may include, but is not limited to, an intelligent analysis and storage service, and a visualization management platform service.

In practical application, after the target device is powered on, the ID number of first identification information of a Central Processing Unit (CPU) in the first main control module is 00, a BIOS (Basic Input Output System, BIOS for short) program is loaded, the ID information of the CPU in the first main control module is read, and if the ID information is 00, the BIOS pulls down a GPIO (General Purpose Input Output, GPIO for short); in the switching module, if the GPIO is detected to be low level, the intelligent module or the storage module is switched to the first main control module for processing.

Optionally, in this embodiment, before obtaining the first level signal of the first main control module of the target device, the method may include: acquiring first identification information of a first processor in a first main control module; and determining first information of a first level signal of the first main control module according to the first identification information, wherein the first information is used for indicating whether the first level signal is a high level signal or a low level signal.

The first processor may be understood as a central processing unit CPU. The target device may include, but is not limited to, a device having multiple nodes, such as a kiosk of multiple nodes. The second service may include, but is not limited to, an intelligent analysis and storage service, and a visualization management platform service.

In this embodiment, the first main control module may correspond to a slot for connecting with a device, and the integrated machine may be externally connected with a plurality of devices. And determining a signal for switching to the first main control module according to the level signal of the first processor in the first main control module.

According to the embodiment provided by the application, after a target device is powered on, a first level signal of a first main control module of the target device is acquired, wherein the first main control module is used for managing a first service; under the condition that the first level signal indicates a low level signal, the first signal is switched to the first main control module, so that the purposes that a plurality of devices are inserted into a plurality of nodes through the first main control module, the second main control module and other modules, the related services can be automatically switched and taken over, the plugging and unplugging are not needed to be interrupted again, and the plugging and unplugging are not needed to be worried about, and the technical problem that the plurality of nodes cannot be self-adaptive to the plurality of devices accessed by the nodes in the prior art is solved.

Optionally, the method further includes: acquiring a second level signal of a second main control module of the target device, wherein the second main control module is used for managing a second service; and under the condition that the second level signal indicates a high level signal, switching the second signal to the second main control module.

In this embodiment, the second main control module may correspond to a slot for connecting with a device, and the integrated machine may be externally connected with a plurality of devices. And determining a signal for switching to the second main control module according to the level signal of the second processor in the second main control module.

Optionally, before obtaining the second level signal of the first main control module of the target device, the method may include: acquiring second identification information of a second processor in a second main control module; and determining second information of a second level signal of the second main control module according to the second identification information, wherein the second information is used for indicating whether the second level signal is a high level signal or a low level signal.

In this embodiment, after the target device is powered on, the ID number of the CPU in the second main control module is 01, a BIOS program is loaded, the ID information of the CPU in the main control module is read, and if the ID number is 01, the BIOS pulls up the GPIO at this time; and if the GPIO is detected to be high level, switching the visualization module to a second main control module for processing.

As shown in fig. 3, the target device includes a first main control module, a second main control module, a switching module, an intelligent/storage module, and a visualization module. The first main control module is used for managing storage and intelligent services, and acquiring, distributing, transmitting and the like video streams or pictures; the second main control module is used for platform management service, visual interface and unified management; the intelligent module is used for realizing the processing of an intelligent algorithm and the intelligent analysis of pictures; the storage module is used for storing video streams and pictures; the visualization module is used for displaying videos or pictures and reading data.

The process of multi-node device insertion device detection may be: powering on the equipment, wherein the ID number of a CPU in the first main control module is 00, loading a BIOS program, reading the ID information of the CPU of the main control module, and if the ID number is 00, lowering the GPIO by the BIOS; the ID number of the CPU in the second main control module is 01, a BIOS program is loaded, the ID information of the CPU of the main control module is read, and if the ID number of the CPU of the second main control module is 01, the BIOS raises the GPIO; in the switching module, if the GPIO is detected to be low level, the intelligent module or the storage module is switched to the first main control module for processing, and if the GPIO is detected to be high level, the visualization module is switched to the second main control module for processing.

In practical application, the multi-node equipment supports random mixed insertion, after the multi-node equipment is inserted into the multi-node equipment through the slots, the multi-node equipment automatically switches to take over related services without re-power-off plugging or unplugging, and worrying about wrong insertion is avoided, so that the operation of a user is facilitated.

Optionally, the present application further provides a multi-node device supporting adaptive hybrid insertion, and as shown in fig. 4, a schematic structural diagram of the multi-node device supporting adaptive hybrid insertion is provided. As shown in fig. 4, the multi-node apparatus includes: the system comprises a main control module 1, a main control module 2, a BIOS module 1, a BIOS module 2, a switching module 3, an intelligent/storage module 4 and a visualization module 5. The main control module 1 is connected with the switching module, the switching module is connected with the intelligent storage module, the switching module is connected with the visualization module, and the main control module 2 is connected with the switching module.

Because the device comprises the main control module 1 and the main control module 2, which contain two main controls, and the appearances of the two main controls are the same, the mixed insertion exists, but the interiors of the two main controls are different, different main controls need to process different services, and in this time, after the mixed insertion needs to be supported, the respective services are automatically switched and taken over.

In this embodiment, when the device is powered on, the main control module 1 (i.e., the first main control module) loads a BIOS program, and the main control module 2 (i.e., the second main control module) loads the BIOS program, in the BIOS loading process, the vendor code Vender ID of the CPU is read, when the BIOS reads that the Vender ID of the CPU is 00, it indicates that the main control at this time is used for an intelligent analysis and storage service, and when the BIOS reads that the Vender ID of the CPU is 01, it indicates that the main control at this time is used for a visual platform management service; the CPUs of the two main controllers are respectively provided with a GPIO (general purpose input/output) which is connected with the switching module 3, when the BIOS reads that the vendor ID of the CPU is 00, the GPIO is pulled down, when the switching module 3 detects that the GPIO is low, PCIE/SATA signals are switched to the main control module, the main controllers are used for intelligent analysis and storage services, when the BIOS reads that the vendor ID of the CPU is 01, the GPIO is pulled up, when the switching module 3 detects that the GPIO is high, the HDMI/USB signals are switched to the main control module, and at the moment, the main controllers are used for visual platform management services.

Because the Vender IDs of the CPUs of the two main controllers are different, the Vender ID of one main controller is 00, and the Vender ID of the other main controller is 01, the switching of the main control modules is switched according to the read Vender ID of the CPU corresponding to the level signal. The multi-node equipment supports random mixed insertion, and automatically switches to take over related services after the multi-node equipment is inserted into the multi-node equipment, so that the plugging and unplugging are not required to be powered off again, the plugging and unplugging are not required to be worried about, and the operation of a user is facilitated.

As shown in fig. 5, a flow chart of a method for implementing mixed insertion by a multi-node device, and a structure diagram of a device implementing the method as shown in fig. 4, a specific process of the method for implementing mixed insertion by a multi-node device is as follows.

Step S51, start;

beginning in step S51, the target device is powered on.

Step S52, loading BIOS by the main module;

a step S53 of determining whether the vendor code is satisfied, and if yes, executing a step S54, and if no, executing a step S55;

step S54, CPIO outputs low level;

wherein, in the case where the vendor code Vender ID is 00, it is determined that the CPIO outputs a low level.

Step S55, GPIO outputs high level;

wherein, in the case where the vendor code vendor ID is 01, it is determined that the CPIO output is low.

Step S56, under the condition that the CPIO outputs low level, the service is switched to intelligent analysis and storage service;

step S57, under the condition that GPIO outputs high level, the service is switched into visual management platform service;

step S58 ends.

In the embodiment, the multi-node equipment supports any mixed insertion, and after the multi-node equipment is inserted, the multi-node equipment automatically switches to take over related services without re-power-off plugging or unplugging, so that the user operation is facilitated without worrying about wrong insertion.

It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.

According to another aspect of the embodiments of the present invention, there is also provided a signal switching apparatus for implementing the signal switching method. As shown in fig. 6, the signal switching device includes: a first acquisition unit 61 and a first switching unit 63.

The first obtaining unit 61 is configured to obtain a first level signal of a first main control module of the target device after the target device is powered on, where the first main control module is configured to manage a first service.

The first switching unit 63 is configured to switch the first signal to the first main control module when the first level signal indicates a low level signal.

According to the embodiment provided by the application, after the target device is powered on, the first obtaining unit 61 obtains a first level signal of a first main control module of the target device, where the first main control module is used for managing a first service; the first switching unit 63 switches the first signal to the first main control module when the first level signal indicates a low level signal. After the multiple devices are inserted into the multi-node device through the first main control module, the second main control module and other modules, the related services can be automatically switched and taken over, the plugging and unplugging are not needed to be cut off again, and the purpose of worrying about the wrong plugging is achieved, so that the technical problem that the multi-node device cannot be self-adaptive to the multiple devices accessed by the node in the prior art is solved.

Optionally, the apparatus may include: a second obtaining unit, configured to obtain a second level signal of a second main control module of the target device, where the second main control module is configured to manage a second service; and the second switching unit is used for switching the second signal to the second main control module under the condition that the second level signal indicates a high level signal.

Optionally, the apparatus may include: the third acquiring unit is used for acquiring first identification information of a first processor in a first main control module before acquiring a first level signal of the first main control module of the target device; the first determining unit is configured to determine first information of a first level signal of the first main control module according to the first identification information, where the first information is used to indicate whether the first level signal is a high level signal or a low level signal.

Optionally, the apparatus may include: the fourth obtaining unit is used for obtaining second identification information of a second processor in a second main control module before obtaining a second level signal of the first main control module of the target device; and the second determining unit is used for determining second information of a second level signal of the second main control module according to the second identification information, wherein the second information is used for indicating whether the second level signal is a high level signal or a low level signal.

According to another aspect of the embodiments of the present invention, there is also provided a multi-node device, where the multi-node device employs a signal switching method, as shown in fig. 7, a schematic structural diagram of the multi-node device, where the multi-node device includes: a first master module 71, a second master module 73, and a switching module 75.

The first master control module 71 is connected to the switching module 75, and is configured to manage the first service.

The second main control module 73 is connected to the switching module 75, and is configured to manage the second service.

The switching module 75 is configured to switch the first signal to the first main control module or switch the second signal to the second main control module 73 according to the first level signal of the first main control module 71.

Through the embodiment provided by the present application, the first main control module 71 is connected to the switching module 74, and manages the first service; a second main control module 73, connected to the switching module 75, for managing the second service; the switching module 75 switches the first signal to the first main control module or switches the second signal to the second main control module according to the first level signal of the first main control module. After the multiple devices are inserted into the multi-node device through the first main control module, the second main control module and other modules, the related services can be automatically switched and taken over, the plugging and unplugging are not needed to be cut off again, and the purpose of worrying about the wrong plugging is achieved, so that the technical problem that the multi-node device cannot be self-adaptive to the multiple devices accessed by the node in the prior art is solved.

Optionally, the multi-node device includes: and the storage module is connected with the switching module and is used for storing the video stream and/or the picture when the first service is the intelligent analysis and storage service.

According to another aspect of the embodiment of the present invention, there is also provided an electronic device for implementing the signal switching method, where the electronic device may be the terminal device or the server shown in fig. 1. The present embodiment takes the electronic device as a server as an example for explanation. As shown in fig. 8, the electronic device comprises a memory 802 and a processor 804, the memory 802 having a computer program stored therein, the processor 804 being arranged to perform the steps of any of the above-described method embodiments by means of the computer program.

Optionally, in this embodiment, the electronic device may be located in at least one network device of a plurality of network devices of a computer network.

Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:

s1, after the target device is powered on, obtain a first level signal of a first main control module of the target device, where the first main control module is used to manage the first service.

And S2, switching the first signal to the first main control module under the condition that the first level signal indicates a low level signal.

Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 8 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palmtop computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 8 is a diagram illustrating a structure of the electronic device. For example, the electronics may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 8, or have a different configuration than shown in FIG. 8.

The memory 802 may be used to store software programs and modules, such as program instructions/modules corresponding to the signal switching method and apparatus in the embodiments of the present invention, and the processor 804 executes various functional applications and data processing by running the software programs and modules stored in the memory 802, that is, implements the signal switching method. The memory 802 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 802 can further include memory located remotely from the processor 804, which can be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 802 may be used for information such as a first level signal, a second level signal, and the like. As an example, as shown in fig. 8, the memory 802 may include, but is not limited to, the first acquiring unit 61 and the first switching unit 63 in the signal switching device. In addition, the present invention may further include, but is not limited to, other module units in the signal switching device, which are not described in detail in this example.

Optionally, the transmitting device 806 is configured to receive or transmit data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 806 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device 806 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.

In addition, the electronic device further includes: a display 808, configured to display the first service; and a connection bus 810 for connecting the respective module parts in the above-described electronic apparatus.

In other embodiments, the terminal device or the server may be a node in a distributed system, where the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting a plurality of nodes through a network communication. Nodes can form a Peer-To-Peer (P2P, Peer To Peer) network, and any type of computing device, such as a server, a terminal, and other electronic devices, can become a node in the blockchain system by joining the Peer-To-Peer network.

According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to execute the signal switching method provided in the signal switching aspect or the various alternative implementations of the signal switching aspect. Wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.

Alternatively, in the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:

s1, after the target device is powered on, obtain a first level signal of a first main control module of the target device, where the first main control module is used to manage the first service.

And S2, switching the first signal to the first main control module under the condition that the first level signal indicates a low level signal.

Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.

The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.

The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.

In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.

In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. 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, units or modules, and may be in an electrical 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.

In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.

The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于GPIO的通信方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!