Control method and apparatus, and device and storage medium

The second electronic device controls the optical transceiver device of the first electronic device to send pulsed optical signals, which solves the problem of not being able to receive control instructions when the electronic device fails, and realizes rapid recovery of operation and reduces maintenance costs.

WO2025146208A1PCT designated stage expired Publication Date: 2025-07-10RUIJIE NETWORKS CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/072360
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-01-02
Filing Date
2025-01-14
Publication Date
2025-07-10

AI Technical Summary

Technical Problem

Electronic devices cannot receive remote control instructions when some devices fail, resulting in the inability to perform operations, and existing solutions are costly or time-consuming.

Method used

The second optical transceiver device is controlled to send a pulsed optical signal to the first electronic device through the second electronic device. The first electronic device receives and determines the control operation through the unfailed optical transceiver device, avoiding the use of the faulty wireless network module and directly performs the control operation.

Benefits of technology

Quickly restore some devices of electronic equipment to operate, reduce maintenance time and costs, improve maintenance convenience, and avoid additional equipment costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025072360_10072025_PF_FP_ABST
    Figure CN2025072360_10072025_PF_FP_ABST
Patent Text Reader

Abstract

A control method and apparatus, and a device and a storage medium. The control method comprises: a first electronic device receiving, by means of a first optical transceiving device, a pulsed light signal sent by a second electronic device (S103); the first electronic device determining a control operation corresponding to the pulsed light signal (S104); and the first electronic device executing the control operation (S105).
Need to check novelty before this filing date? Find Prior Art

Description

Control method, device, equipment and storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on January 2, 2024, with application number 202410003537.7 and application name “Control Methods, Devices and Related Products”, the entire contents of which are incorporated by reference into this application. Technical Field

[0003] The present application belongs to the field of communication technology, and specifically relates to a control method, device and related products. Background Art

[0004] Currently, when some components of an electronic device (such as a wireless network module) malfunction, the electronic device may be unable to receive control commands sent by a remote device, resulting in the electronic device being unable to perform the operations indicated by the control commands (such as restarting, shutting down, or starting up). In this case, maintenance personnel can be dispatched to the location of the electronic device to manually control the electronic device to perform the aforementioned operations to restore the operation of the aforementioned components and, in turn, the operation of the electronic device. Summary of the Invention

[0005] The purpose of the embodiments of the present application is to provide a control method, device and related products.

[0006] In a first aspect, an embodiment of the present application provides a control method, which includes: a first electronic device receives a pulsed light signal sent by a second electronic device through a first optical transceiver device; the first electronic device determines a control operation corresponding to the pulsed light signal; and the first electronic device performs the control operation.

[0007] An embodiment of the present application provides a control method. When a part of the components of the first electronic device (such as a wireless network module) fails, the second electronic device can control the second optical transceiver component to send a pulsed light signal to the first electronic device, so that the first electronic device can receive the pulsed light signal through the first optical transceiver component that has not failed, and determine the control operation corresponding to the pulsed light signal, instead of continuing to use the wireless network module to receive control instructions. Therefore, it is possible to avoid the situation where the first electronic device cannot perform the control operation, that is, the first electronic device can directly perform the control operation to quickly restore the operation of the above-mentioned parts without the need for maintenance personnel to go to the layout location of the first electronic device to control the first electronic device to perform the control operation, thereby reducing the time spent on restoring the operation of the electronic device. In this way, the convenience of maintaining the first electronic device can be improved.

[0008] In one possible implementation, the first electronic device determines the control operation corresponding to the pulse light signal, including: the first electronic device generates a status signal according to the pulse light signal through the first optical transceiver; the first electronic device obtains the pulse parameters corresponding to the status signal through the processing unit; and the first electronic device determines the control operation corresponding to the pulse parameters through the processing unit.

[0009] In a possible implementation, the first electronic device performs a control operation through a processing unit. When the number of consecutive pulses corresponding to the status signal is greater than or equal to a preset threshold, the first electronic device performs a control operation through the processing unit.

[0010] In one possible implementation, the first electronic device generates a status signal based on the pulsed light signal through the first optical transceiver device, including: the first electronic device generates the status information corresponding to the pulsed light signal based on the pulsed light signal loss Rx_LOS function of the first optical transceiver device, wherein the status information is used to indicate whether the pulsed light signal is lost.

[0011] In one possible implementation, the first electronic device generates the status information corresponding to the pulsed optical signal according to the Rx_LOS function of the first optical transceiver device, including: the first electronic device generates a first pulsed electrical signal according to the pulses in the pulsed optical signal, wherein the first pulsed electrical signal is used to indicate that the pulsed optical signal received by the first optical transceiver device is not lost; and the first electronic device generates a second pulsed electrical signal according to other signals in the pulsed optical signal, wherein the second pulsed electrical signal is used to indicate that the pulsed optical signal received by the first optical transceiver device is lost; wherein the levels of the first pulsed electrical signal and the second pulsed electrical signal are different.

[0012] In a possible implementation, the first electronic device obtains the pulse parameters corresponding to the status signal through the processing unit, including: the first electronic device obtains the pulse parameters corresponding to the first pulse electrical signal and the pulse parameters corresponding to the second pulse electrical signal through the processing unit.

[0013] In a possible implementation, the first electronic device determines the control operation corresponding to the pulse parameter through the processing unit, including: the first electronic device determines the control operation corresponding to the pulse parameter according to a preconfigured operation instruction table.

[0014] In a second aspect, an embodiment of the present application provides a control method, which includes: the second electronic device determines a control instruction, which is used to control the first electronic device to perform a control operation; and the second electronic device controls the second optical transceiver device to send a pulse light signal corresponding to the control operation to the first electronic device according to the control instruction, and the pulse light signal is used to determine the control operation.

[0015] An embodiment of the present application provides a control method. When a part of the components of the first electronic device (such as a wireless network module) fails, the second electronic device can control the second optical transceiver component to send a pulsed light signal to the first electronic device, so that the first electronic device can receive the pulsed light signal through the first optical transceiver component that has not failed, and determine the control operation corresponding to the pulsed light signal, instead of continuing to use the wireless network module to receive control instructions. Therefore, it is possible to avoid the situation where the first electronic device cannot perform the control operation, that is, the first electronic device can directly perform the control operation to quickly restore the operation of the above-mentioned parts without the need for maintenance personnel to go to the arrangement location of the first electronic device to control the first electronic device to perform the control operation, thereby reducing the time spent on restoring the operation of the electronic device. In this way, the convenience of maintaining the first electronic device can be improved.

[0016] In one possible implementation, the second electronic device controls the second optical transceiver device to send a pulsed light signal corresponding to the control operation to the first electronic device according to the control instruction, including: the second electronic device determines the pulse parameters corresponding to the control operation according to the control instruction; and the second electronic device alternately sends the first control signal and the second control signal to the second optical transceiver device according to the pulse parameters, the first control signal being used to control the second optical transceiver device to send the pulsed light signal to the first electronic device, and the second control signal being used to control the second optical transceiver device to stop sending the pulsed light signal to the first electronic device.

[0017] In one possible implementation, the second electronic device alternately sends the first control signal and the second control signal to the second optical transceiver device according to the pulse parameters, including: the second electronic device alternately sends the first control signal and the second control signal to the second optical transceiver device according to the pulse parameters and the first preset number.

[0018] In one possible implementation, the second electronic device determines the control instruction, including: sending a link interruption notification to the first electronic device when it is determined that the first electronic device is unresponsive; and determining the control instruction when the second electronic device does not receive a response from the first electronic device to the notification within a first preset time.

[0019] In one possible implementation, after the second electronic device alternately sends the first control signal and the second control signal to the second optical transceiver device according to the pulse parameters, the method further includes: the second electronic device sets the transmission enable function of the second optical transceiver device to an enabled state, so that the second optical transceiver device sends a pulsed optical signal to the first electronic device; and the second electronic device sets the transmission enable function of the second optical transceiver device to a disabled state, so that the second optical transceiver device stops sending the pulsed optical signal to the first electronic device.

[0020] In a third aspect, an embodiment of the present application provides a control device, which is arranged on a first electronic device. The first control device includes: a receiving module, which is used to receive a pulse light signal sent by a second control device through a first optical transceiver device; and a processing module, which is used to determine a control operation corresponding to the pulse light signal received by the receiving module and execute the control operation.

[0021] In combination with the third aspect and the above-mentioned possible implementation methods, in another possible implementation method, the above-mentioned processing module is specifically used to generate a status signal based on the pulsed light signal through the first optical transceiver device; and obtain the pulse parameters corresponding to the status signal through the processing unit; and determine the control operation corresponding to the pulse parameters through the processing unit.

[0022] In combination with the third aspect and the above-mentioned possible implementation methods, in another possible implementation method, the above-mentioned processing module is specifically used to perform a control operation through the processing unit when the number of continuous pulses corresponding to the status signal is greater than or equal to a preset threshold.

[0023] In a fourth aspect, an embodiment of the present application provides a control device, which is arranged on a second electronic device, and the second control device includes: a determination module, used to determine a control instruction, which is used to control the first control device to perform a control operation; and a processing module, used to control the second optical transceiver device to send a pulse light signal corresponding to the control operation to the first control device according to the control instruction determined by the determination module, and the pulse light signal is used to determine the control operation.

[0024] In combination with the fourth aspect and the above-mentioned possible implementation methods, in another possible implementation method, the above-mentioned processing module is specifically used to determine the pulse parameters corresponding to the control operation according to the control instruction; and according to the pulse parameters, alternately send a first control signal and a second control signal to the second optical transceiver device, the first control signal is used to control the second optical transceiver device to send a pulse light signal to the first control device, and the second control signal is used to control the second optical transceiver device to stop sending a pulse light signal to the first control device.

[0025] In combination with the fourth aspect and the above-mentioned possible implementation methods, in another possible implementation method, the above-mentioned processing module is specifically used to alternately send the first control signal and the second control signal to the second optical transceiver device according to the pulse parameters and the first preset number.

[0026] In the fifth aspect, an embodiment of the present application provides a control system, which includes a first electronic device and a second electronic device; the first electronic device executes the control method described in the first aspect and its possible implementation method; the second electronic device executes the control method described in the second aspect and its possible implementation method.

[0027] In a sixth aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, implements the control method as described in the first aspect and its possible implementation manner of the first aspect, or implements the control method as described in the second aspect and its possible implementation manner of the second aspect.

[0028] In the seventh aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the control method as described in the first aspect and its possible implementation method of the first aspect is implemented, or the control method as described in the second aspect and its possible implementation method of the second aspect is implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. Obviously, the drawings introduced below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0030] FIG1 is a schematic diagram of a control scheme in the related art.

[0031] FIG. 2 is another schematic diagram of a control scheme in the related art.

[0032] FIG3 is another schematic diagram of a control solution in the related art.

[0033] FIG4 is a flow chart of a control method provided in an embodiment of the present application.

[0034] FIG5 is a schematic diagram of a second optical transceiver device provided in an embodiment of the present application.

[0035] FIG6 is another flow chart of the control method provided in an embodiment of the present application.

[0036] FIG7 is another flow chart of the control method provided in an embodiment of the present application.

[0037] FIG8 is another flow chart of the control method provided in an embodiment of the present application.

[0038] FIG9 is a schematic diagram of a signal transmission flow of a control method provided in an embodiment of the present application.

[0039] FIG10 is a schematic structural diagram of a first control device provided in an embodiment of the present application.

[0040] FIG11 is a schematic structural diagram of a second control device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0041] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0042] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and generally objects of a class, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in orders other than those illustrated or described herein. In addition, "first," "second," and the like are not used to limit the number of objects; for example, the first object can be one or more.

[0043] In this document, the term "and / or" simply describes a relationship between related objects, indicating that three possible relationships exist. For example, "A and / or B" could mean: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " in this document generally indicates an "or" relationship between the related objects.

[0044] The terms "at least one" and "at least one of" in the specification and claims of this application refer to any one, any two, or a combination of more than two of the objects included. For example, at least one of a, b, and c can be represented by: "a", "b", "c", "a and b", "a and c", "b and c", and "a, b, and c", where a, b, and c can be single or multiple. Similarly, "at least two" means two or more, and its meaning is similar to "at least one".

[0045] The implementation of the embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0046] Typically, when an electronic device is running for a long time, some components of the electronic device (such as a wireless network module) may malfunction. At this time, the electronic device may be unable to receive control instructions sent by a remote device, that is, it may lose response to the control instructions sent by the remote device, resulting in the electronic device being unable to perform the operation indicated by the control instruction (such as restart operation, shutdown operation, power on operation, etc.).

[0047] In order to solve the above problems, three solutions are proposed in the related art.

[0048] Solution 1, as shown in FIG1 , involves dispatching maintenance personnel to the location of electronic device 01 to manually control electronic device 01 to perform the aforementioned operations, thereby restoring the operation of some of the aforementioned components and, in turn, restoring the operation of electronic device 01. However, since electronic device 01 may be located in a remote area, it may take a long time for maintenance personnel to reach the location of electronic device 01 and manually control electronic device 01 to perform the aforementioned operations. This results in a long time spent restoring the operation of some of the aforementioned components, and, in turn, a long time spent restoring the operation of electronic device 01.

[0049] Solution 2: As shown in Figure 2, an additional remote control switch 02 can be set in the electronic device 01, so that the remote device 03 can send control instructions to the remote control switch 02 via the wireless network, so that the remote control switch 02 can receive the control instructions via the wireless network and perform the operations indicated by the control instructions, thereby restoring the operation of the above-mentioned components. However, since the wireless network module of the electronic device 01 may fail, the remote control switch 02 may still be unable to receive the control instructions. If an independent control network (such as a satellite communication network) is used, it may lead to high costs.

[0050] Solution 3: As shown in FIG3 , an additional power supply cable can be installed between the remote device 03 and the electronic device 01. A switch 04 can be installed on the power supply cable so that the remote device 03 can supply power to the electronic device 01 via the power supply cable. The remote device 03 can then control the switch 04 to be in the off state to shut down the electronic device 01, and then control the switch 04 to be in the on state to power on the electronic device 01, thereby restoring the operation of the aforementioned components. However, the additional power supply cable is expensive and requires separate maintenance, resulting in a high cost.

[0051] The present invention provides a control method, and Figure 4 is a flow chart of a control method provided by the present invention. As shown in Figure 4, the control method may include the following steps 101 to 105.

[0052] Step 101: The second electronic device determines a control instruction.

[0053] In some embodiments of the present application, the second electronic device may specifically be a user terminal, such as a personal computer (PC), a mobile phone, and the like.

[0054] In some embodiments of the present application, when the maintenance personnel determines that the first electronic device is unresponsive, the maintenance personnel can determine that some components of the first electronic device are faulty, so that the maintenance personnel can first control the second electronic device to report the interruption of the wireless communication link (Linkdown) through the wireless communication link between the second electronic device and the first electronic device, and after a first preset time from the moment of reporting the wireless communication link Linkdown, when the maintenance personnel again determines that the first electronic device is unresponsive, the maintenance personnel can input a control instruction in the second electronic device so that the second electronic device can receive the control instruction, so that the second electronic device can determine the control instruction.

[0055] The first electronic device may be a network device, such as a router, a switch, a base station, etc.

[0056] The time unit of the first preset time may be any one of the following: seconds, minutes, hours, etc.

[0057] The aforementioned partial components may include at least one of the following: a wireless network module, a CPU, etc. Of course, the partial components may also include other components, which are not limited in the embodiments of the present application, and those skilled in the art may configure them as needed.

[0058] In the embodiment of the present application, the above control instruction is used to control the first electronic device to perform a control operation.

[0059] In some embodiments of the present application, the control operation may include at least one of the following: a restart operation, a shutdown operation, a power-on operation, etc. Of course, the control operation may also include other operations, which are not limited in the embodiments of the present application, and those skilled in the art may configure them as needed.

[0060] Step 102: The second electronic device controls the second optical transceiver device to send a pulse optical signal corresponding to the control operation to the first electronic device according to the control instruction.

[0061] In an embodiment of the present application, the above-mentioned pulse light signal is used to determine the control operation.

[0062] In some embodiments of the present application, the second optical transceiver device may include at least one of the following: an optical module, a laser transceiver device, and the second optical transceiver device may be connected to the first electronic device via an optical fiber.

[0063] The second optical transceiver device may be connected to a management chip and a service chip of a second electronic device.

[0064] The second electronic device is provided with a management chip, and the management chip of the second electronic device may include at least one of the following: a complex programmable logic device (English: Complex Programmable Logic Device, abbreviated: CPLD) and an application-specific integrated circuit (English: Application-Specific Integrated Circuit, abbreviated: ASIC).

[0065] The management chip of the second electronic device may set the transmit enable (Tx_Disable) function of the second optical transceiver device to an enabled state, so that the second optical transceiver device can transmit pulsed optical signals to the first electronic device, or the management chip of the second electronic device may set the Tx_Disable function of the second optical transceiver device to a disabled state, so that the second optical transceiver device can stop transmitting pulsed optical signals to the first electronic device. When the Tx_Disable function of the second optical transceiver device is disabled, the second optical transceiver device can still receive pulsed optical signals transmitted by the first electronic device.

[0066] The management chip of the second electronic device can determine whether the second optical transceiver has lost the received pulsed light signal based on the situation of the second optical transceiver receiving the pulsed light signal, so as to realize the received signal loss (Rx_LOS) function. In which, if the second optical transceiver does not receive the pulsed light signal sent by the first electronic device within the preset time, the management chip of the second electronic device can determine that the second optical transceiver has lost the received pulsed light signal, that is, confirm that the link between the second electronic device and the first electronic device is disconnected, or if the second optical transceiver receives the pulsed light signal sent by the first electronic device within the preset time, the management chip of the second electronic device can determine that the second optical transceiver has not lost the received pulsed light signal, that is, confirm that the link between the second electronic device and the first electronic device is not disconnected. The preset time can be the time agreed upon in the protocol, and the preset time can specifically be x milliseconds (ms), where x can be any integer between [1,999].

[0067] The second electronic device is provided with a business chip, which may be a chip integrated in the CPU of the second electronic device, so that the second electronic device can transmit a pulsed light signal carrying business data to other devices through the business chip of the second electronic device.

[0068] For example, the second optical transceiver device is an optical module. As shown in FIG5 , the second optical transceiver device is an optical module 10, which is connected to a management chip 11 and a service chip 12 of a second electronic device. Thus, the second electronic device can receive pulsed optical signals from the first electronic device in real time through the optical module 10. For example, the pulses of the input signal in FIG5 represent the reception of pulsed optical signals, and transmit pulsed optical signals to the first electronic device. For example, the pulses of the output signal in FIG5 represent the transmission of pulsed optical signals. Before time t0, the second electronic device can set the Tx_Disable function of the optical module 10 to an enabled state through the management chip 11, so that the optical module 10 can send a pulse optical signal through the optical module 10 before time t0, for example, the pulse of the output signal in FIG5 represents the sending of a pulse optical signal, or the second electronic device can set the Tx_Disable function of the optical module 10 to a disabled state between time t0 and time t1, so that the optical module 10 can stop sending a pulse optical signal through the optical module 10 between time t0 and time t1, or the second electronic device can set the Tx_Disable function of the optical module 10 to an enabled state after time t1, so that the optical module 10 can continue to send a pulse optical signal through the optical module 10 after time t1, for example, the pulse of the output signal in FIG5 represents the sending of a pulse optical signal. Between time t0 and time t1, the optical module 10 can still receive the pulse optical signal sent by the first electronic device (for example, the pulse of the input signal in FIG5 represents the receiving of a pulse optical signal).

[0069] In some embodiments of the present application, the second electronic device may first determine, based on the control instruction, a transmission parameter (e.g., a pulse parameter) corresponding to the control operation, and then control the second optical transceiver device to transmit a pulsed optical signal to the first electronic device according to the transmission parameter. In one possible implementation, as shown in FIG6 in conjunction with FIG4 , step 102 may be implemented through steps 102a and 102b described below.

[0070] Step 102a: The second electronic device determines a pulse parameter corresponding to the control operation according to the control instruction.

[0071] In some embodiments of the present application, the above-mentioned pulse parameters may include at least one of the following: pulse amplitude, pulse width, pulse frequency, etc.

[0072] In some embodiments of the present application, an operation instruction table is pre-configured in the second electronic device, and the operation instruction table includes a one-to-one correspondence between at least one parameter and at least one operation, so that the second electronic device can first determine an operation that is the same as the control operation from at least one operation in the operation instruction table based on the control operation, and then determine the parameter corresponding to the operation as the pulse parameter.

[0073] Exemplarily, an operation instruction table is pre-configured in the second electronic device, which includes a one-to-one correspondence between at least one pulse frequency and at least one operation, such as the correspondence between 1 Hz and a restart operation, the correspondence between 0.5 Hz and a shutdown operation, and the correspondence between 0.1 Hz and a power-on operation. The second electronic device can thereby determine the pulse frequency corresponding to the restart operation, i.e., 1 Hz, based on the control operation (e.g., a restart operation) indicated by the control instruction.

[0074] Step 102b: The second electronic device sends the first control signal and the second control signal alternately to the second optical transceiver device according to the pulse parameters.

[0075] It can be understood that when the second electronic device alternately sends the first control signal and the second control signal to the second optical transceiver according to the pulse parameters, the second optical transceiver device can send a pulse optical signal to the first electronic device.

[0076] In an embodiment of the present application, the first control signal is used to control the second optical transceiver device to send a pulsed light signal to the first electronic device, and the second control signal is used to control the second optical transceiver device to stop sending a pulsed light signal to the first electronic device.

[0077] In some embodiments of the present application, when the above-mentioned pulse parameters include pulse frequency, the second electronic device may first determine at least two sending moments according to the pulse parameters, and then send a first control signal to the second optical transceiver device at the first sending moment of the at least two sending moments to control the second optical transceiver device to send a pulse light signal to the first electronic device, and send a second control signal to the second optical transceiver device at the second sending moment of the at least two sending moments to control the second optical transceiver device to stop sending the pulse light signal to the first electronic device, and send a first control signal to the second optical transceiver device at the third sending moment of the at least two sending moments (in this case, the at least two sending moments include three or more sending moments) to control the second optical transceiver device to send a pulse light signal to the first electronic device, and so on, so that the second optical transceiver device sends a pulse light signal to the first electronic device.

[0078] It can be understood that since the above-mentioned pulse light signal is sent to the first electronic device by the second electronic device controlling the second optical transceiver according to the above-mentioned pulse parameters, the pulse parameters corresponding to the pulse light signal correspond to the above-mentioned pulse parameters.

[0079] In some embodiments of the present application, the second electronic device may alternately send the first control signal and the second control signal to the second optical transceiver device through the management chip of the second electronic device, or the second electronic device may alternately send the first control signal and the second control signal to the second optical transceiver device through the CPU of the second electronic device.

[0080] It can be seen that since the second electronic device can determine the pulse parameters corresponding to the control operation, and alternately send the first control signal and the second control signal to the second optical transceiver device according to the pulse parameters, so that the second optical transceiver device can send a pulse light signal with the same pulse parameters to the first electronic device, in the subsequent steps, the first electronic device can directly determine the corresponding control operation according to the pulse parameters through the processing unit without the need for analysis by the CPU of the first electronic device. Therefore, it can avoid the situation where the first electronic device cannot perform the control operation due to a failure of the CPU of the first electronic device. That is, the first electronic device can directly perform the control operation to quickly restore the operation of the CPU of the first electronic device without the need for maintenance personnel to go to the layout location of the first electronic device to control the first electronic device to perform the control operation, thereby reducing the time spent on restoring the operation of the first electronic device.

[0081] In some embodiments of the present application, the above step 102b can be specifically implemented through the following step 102b1.

[0082] Step 102b1: The second electronic device alternately sends a first control signal and a second control signal to the second optical transceiver device according to the pulse parameter and the first preset quantity, so that the second optical transceiver device sends a pulsed optical signal to the first electronic device.

[0083] In some embodiments of the present application, the second electronic device may first determine a first preset number of sending moments according to the pulse parameters, and then alternately send a first control signal and a second control signal to the second optical transceiver device at the first preset number of sending moments, so that the second optical transceiver device sends a pulsed optical signal to the first electronic device.

[0084] It should be noted that, for the description of the second electronic device alternately sending the first control signal and the second control signal to the second optical transceiver device, reference can be made to the specific description in the above embodiment, and the embodiments of the present application will not be repeated here.

[0085] In some embodiments of the present application, the first preset number is greater than or equal to a preset threshold, wherein the preset threshold may be 40 and the first preset number may be 50.

[0086] In an embodiment of the present application, during the optical fiber communication between the second electronic device and the first electronic device, the pulses in the pulsed light signal received by the first electronic device may change due to some special reasons (such as someone stepping on the optical fiber, etc.). At this time, the first electronic device may misjudge the pulse parameters corresponding to the pulsed light signal. In this way, in the subsequent steps, when the first electronic device determines the corresponding control operation based on the pulse parameters, it may misjudge the control operation based on the inaccurate pulse parameters. Therefore, the value of the first preset number can be set to be larger in advance (i.e., greater than or equal to the preset threshold), so that the second electronic device can alternately send the first control signal and the second control signal to the second optical transceiver according to the pulse parameters and the larger first preset number, so that the number of pulses included in the above-mentioned pulsed light signal is also larger, so that the second electronic device can accurately exclude the pulses in the pulsed light signal that have changed due to the above-mentioned special reasons based on the pulse parameters of each pulse, and accurately determine the pulse parameters corresponding to the pulsed light signal, thereby avoiding the situation where the first electronic device misjudges the control operation corresponding to the pulsed light signal.

[0087] It can be seen that due to certain special reasons, the first electronic device may misjudge the control operation corresponding to the received pulse light signal. Therefore, the second electronic device can alternately send the first control signal and the second control signal to the second optical transceiver device according to the pulse parameters and the first preset number, so that the pulse light signal sent by the second optical transceiver device includes a larger number of pulses. In this way, in subsequent steps, the first electronic device can accurately determine the corresponding control operation based on the larger number of pulses, so that the first electronic device can accurately execute the operation indicated by the second electronic device. In this way, the accuracy of the operation performed by the first electronic device can be improved.

[0088] Step 103: The first electronic device receives the pulsed optical signal sent by the second electronic device through the first optical transceiver device.

[0089] It should be noted that, since the circuit structure of the first optical transceiver is relatively simple, the first optical transceiver is not prone to failure, and the first electronic device can receive the pulsed optical signal sent by the second electronic device through the first optical transceiver.

[0090] In some embodiments of the present application, the first optical transceiver device may include at least one of the following: an optical module, a laser transceiver device, and the first optical transceiver device may be connected to the second electronic device via an optical fiber. The first optical transceiver device may be connected to the second optical transceiver device via an optical fiber.

[0091] The first optical transceiver device may be connected to a management chip and a service chip of the first electronic device.

[0092] The management chip of the first electronic device can set the transmit enable (Tx_Disable) function of the first optical transceiver device to an enabled state so that the first optical transceiver device can send a pulsed optical signal to the second electronic device, or the management chip of the first electronic device can set the Tx_Disable function of the first optical transceiver device to a disabled state so that the first optical transceiver device can stop sending a pulsed optical signal to the second electronic device.

[0093] The management chip of the first electronic device can determine whether the pulsed optical signal received by the first optical transceiver is lost based on the situation of the first optical transceiver receiving the pulsed optical signal, so as to implement the function of receiving the pulsed optical signal loss (Rx_LOS). In particular, if the first optical transceiver does not receive the pulsed optical signal sent by the second electronic device within a preset time period, the management chip of the first electronic device can determine that the pulsed optical signal received by the first optical transceiver is lost, and determine that the signal transmission with the second electronic device has been interrupted, so that the first electronic device can determine that the business with the second electronic device is interrupted; or, if the first optical transceiver receives the pulsed optical signal sent by the second electronic device within a preset time period, the management chip of the first electronic device can determine that the pulsed optical signal received by the first optical transceiver is not lost, and determine that the signal transmission with the second electronic device is normal, so that the first electronic device can determine that the business with the second electronic device is normal.

[0094] Similarly, the management chip of the second electronic device can determine whether the second optical transceiver has lost the received pulsed optical signal based on the situation of the second optical transceiver receiving the pulsed optical signal, so as to implement the received pulsed optical signal loss (Rx_LOS) function. In which, if the second optical transceiver does not receive the pulsed optical signal sent by the first electronic device within a preset time period, the management chip of the second electronic device can determine that the second optical transceiver has lost the received pulsed optical signal and determines that the signal transmission with the first electronic device has been interrupted, so that the second electronic device can determine that the business with the first electronic device is interrupted; or, if the second optical transceiver receives the pulsed optical signal sent by the first electronic device within a preset time period, the management chip of the second electronic device can determine that the second optical transceiver has not lost the received pulsed optical signal and determines that the signal transmission with the first electronic device is normal, so that the second electronic device can determine that the business with the first electronic device is normal.

[0095] The service chip of the first electronic device may be a chip integrated in the CPU of the first electronic device, so that the first electronic device can transmit a pulse light signal carrying service data to other devices through the service chip of the first electronic device.

[0096] Step 104: The first electronic device determines a control operation corresponding to the pulse light signal.

[0097] In some embodiments of the present application, the above step 104 can be specifically implemented through the following step 104a.

[0098] Step 104a: The first electronic device determines a control operation through a processing unit.

[0099] In the embodiment of the present application, the above-mentioned processing unit may include any one of the following: ASIC, programmable logic unit.

[0100] In some embodiments of the present application, the above-mentioned programmable logic unit may include at least one of the following: CPLD, programmable gate array (English: Field-Programmable Gate Array, abbreviated as: FPGA), and target monitoring chip; wherein, the target monitoring chip may specifically be: a programmable power supply, a reset monitoring chip, and it can be understood that the CPLD function is built into the chip.

[0101] It should be noted that since the circuit structure of the programmable logic unit is relatively simple, the programmable logic unit is not prone to failure. The first electronic device can determine the control operation corresponding to the pulse light signal through the programmable logic unit and execute the control operation.

[0102] In some embodiments of the present application, the first electronic device may determine, through a processing unit, a control operation corresponding to the pulsed optical signal based on the Rx_LOS function of the first optical transceiver device.

[0103] Optionally, the processing unit may not include the CPU of the first electronic device.

[0104] Since the CPU of the first electronic device may also fail, in order to avoid the first electronic device being unable to determine the control operation due to the failure of the CPU of the first electronic device, the first electronic device can also determine the control operation through the processing unit that has not failed. Therefore, the situation where the first electronic device is unable to perform the control operation can be avoided. That is, the first electronic device can directly perform the control operation to quickly restore the operation of the above-mentioned parts without the need for maintenance personnel to go to the layout location of the first electronic device to control the first electronic device to perform the control operation, thereby reducing the time spent on restoring the operation of the electronic device. In this way, the convenience of maintaining the first electronic device can be improved.

[0105] In some embodiments of the present application, in combination with FIG. 4 , as shown in FIG. 7 , the above step 104 may be specifically implemented through the following steps 104 b to 104 d.

[0106] Step 104b: The first electronic device generates a status signal according to the pulsed light signal through the first optical transceiver.

[0107] In the embodiment of the present application, the above-mentioned status signal is used to indicate whether the pulsed optical signal received by the first optical transceiver device is lost.

[0108] In the embodiment of the present application, the above-mentioned status signal may specifically be a pulse electrical signal, such as an Rx_LOS signal.

[0109] In some embodiments of the present application, the first electronic device can generate status information using the above-mentioned Rx_LOS function through the first optical transceiver. It should be noted that due to the relatively simple circuit structure of the first optical transceiver, the first optical transceiver is not prone to failure. In the event that some components in the first electronic device fail, the first electronic device can still receive the pulsed optical signal sent by the second electronic device through the first optical transceiver.

[0110] The above-mentioned status signal includes at least one first pulse electrical signal and at least one second pulse electrical signal, and the levels of the first pulse electrical signal and the second pulse electrical signal are different. The first electronic device can generate a first pulse electrical signal based on a pulse included in the pulse light signal through the processing chip of the first optical transceiver device, and generate a second pulse electrical signal based on another signal included in the pulse light signal (i.e., the signal between the first pulse and the next pulse), and so on, to generate the above-mentioned at least one first pulse electrical signal and at least one second pulse electrical signal to generate the status signal. It can be understood that the status signal is composed of the above-mentioned at least one first pulse electrical signal and at least one second pulse electrical signal.

[0111] It can be understood that since the pulses in the pulsed optical signal are caused by the second optical transceiver device sending the pulsed optical signal, the processing chip of the first optical transceiver device can determine that the pulsed optical signal received by the first optical transceiver device has not been lost based on the pulses of the pulsed optical signal, and generate a first pulse electrical signal, that is, the first pulse electrical signal can be used to indicate that the pulsed optical signal received by the first optical transceiver device has not been lost, the pulse parameters corresponding to the first pulse electrical signal correspond to the pulse parameters corresponding to the pulse optical signal, and the first pulse electrical signal can be understood as the pulse in the status signal. Since the other signals in the pulsed optical signal are caused by the second optical transceiver device stopping sending the pulsed optical signal, the processing chip of the first optical transceiver device can determine that the pulsed optical signal received by the first optical transceiver device has been lost based on the other signals of the pulsed optical signal, and generate a second pulse electrical signal, that is, the second pulse electrical signal can be used to indicate that the pulsed optical signal received by the first optical transceiver device has been lost, the pulse parameters corresponding to the second pulse electrical signal are the same as the pulse parameters corresponding to the pulse optical signal, and the second pulse electrical signal can be understood as the other signals in the status signal (that is, signals other than pulses).

[0112] It should be noted that the above-mentioned status signal may include at least one first pulse electrical signal or at least one second pulse electrical signal. When the status signal includes at least one first pulse electrical signal, it can be understood that the first optical transceiver device receives the pulse optical signal without loss, and when the status signal includes at least one second pulse electrical signal, it can be understood that the first optical transceiver device receives the pulse optical signal without loss. In the above, since the second electronic device sends a pulse optical signal to the first electronic device, the first optical transceiver device will alternate between receiving the pulse optical signal without loss and receiving the pulse optical signal without loss. Therefore, the status signal described above includes at least one first pulse electrical signal and at least one second pulse electrical signal.

[0113] Step 104c: The first electronic device obtains pulse parameters corresponding to the status signal through the processing unit.

[0114] In some embodiments of the present application, the first electronic device determines the pulse parameters corresponding to any first pulse electrical signal or any second pulse electrical signal as the pulse parameters corresponding to the state signal through a processing unit (such as a programmable logic unit).

[0115] It can be understood that the pulse parameters corresponding to the state signal correspond to the pulse parameters corresponding to the pulse light signal.

[0116] Step 104d: The first electronic device determines a control operation corresponding to the pulse parameter through the processing unit.

[0117] In some embodiments of the present application, an operation instruction table is pre-configured in the first electronic device, and the operation instruction table includes a one-to-one correspondence between at least one parameter and at least one operation, so that the first electronic device can first determine a parameter that is the same as the pulse parameter from at least one parameter in the operation instruction table based on the pulse parameter corresponding to the status signal, and then determine the operation corresponding to the parameter as the control operation.

[0118] The operation instruction table in the first electronic device is the same as the operation instruction table in the second electronic device.

[0119] It can be seen that since the first electronic device can generate a status signal, that is, a pulse electrical signal, through the Rx_LOS function of the first optical transceiver device, the first electronic device can directly obtain the pulse parameters corresponding to the status signal through the processing unit, and accurately determine the control operation corresponding to the pulse parameters without the need for analysis by the CPU of the first electronic device. Therefore, it can avoid the situation where the first electronic device cannot perform the control operation due to a failure of the CPU of the first electronic device. That is, the first electronic device can directly perform the control operation to quickly restore the operation of the CPU of the first electronic device without the need for maintenance personnel to go to the layout location of the first electronic device to control the first electronic device to perform the control operation, thereby reducing the time spent on restoring the operation of the first electronic device.

[0120] Step 105: The first electronic device performs a control operation.

[0121] In some embodiments of the present application, the above step 105 can be specifically implemented through the following step 105a.

[0122] Step 105a: The electronic device performs a control operation through the processing unit.

[0123] It can be seen that since the CPU of the first electronic device may also fail, in order to avoid the first electronic device being unable to perform control operations due to the failure of the CPU of the first electronic device, the first electronic device can also perform control operations through a processing unit that has not failed. Therefore, the situation where the first electronic device is unable to perform the control operation can be avoided, that is, the first electronic device can directly perform the control operation to quickly restore the operation of the above-mentioned parts of the components without the need for maintenance personnel to go to the layout location of the first electronic device to control the first electronic device to perform the control operation, thereby reducing the time spent on restoring the operation of the electronic device. In this way, the convenience of maintaining the first electronic device can be improved.

[0124] It should be noted that, for the description of the first electronic device performing the control operation through the processing unit, reference can be made to the specific description in the relevant technology, and the embodiments of the present application will not be repeated here.

[0125] In some embodiments of the present application, in combination with FIG. 4 , as shown in FIG. 8 , the above step 105 may be specifically implemented through the following step 105 b.

[0126] Step 105b: When the number of continuous pulses corresponding to the status signal is greater than or equal to a preset threshold, the first electronic device performs a control operation through the processing unit.

[0127] In an embodiment of the present application, during the process of optical fiber communication between the second electronic device and the first electronic device, there may be a situation where the pulses in the pulsed light signal received by the first electronic device change due to certain special reasons (such as someone stepping on the optical fiber, etc.). At this time, the first electronic device may misjudge the pulse parameters corresponding to the pulsed light signal. In this way, when the first electronic device determines the corresponding control operation based on the pulse parameters, it may misjudge the control operation based on the inaccurate pulse parameters. Therefore, the first electronic device will first determine whether the number of continuous pulses corresponding to the status signal is greater than or equal to the preset threshold, and only when the number of continuous pulses corresponding to the status signal is greater than or equal to the preset threshold, the control operation is executed through the processing unit. Therefore, it can avoid the situation where the first electronic device misjudges the control operation corresponding to the pulsed light signal when a small number of continuous pulses (i.e., the number is less than the preset threshold) appear in the status signal due to certain special reasons mentioned above.

[0128] It can be seen that since the first electronic device may misjudge the control operation corresponding to the received pulse light signal due to certain special reasons, the first electronic device only performs the control operation through the processing unit when the number of consecutive pulses corresponding to the status signal is greater than or equal to the preset threshold, so as to eliminate the situation where the first electronic device misjudges the control operation corresponding to the received pulse light signal due to certain special reasons, so that the first electronic device can accurately execute the operation indicated by the second electronic device, thereby improving the accuracy of the operation executed by the first electronic device.

[0129] The embodiment of the present application provides a control method, in which a second electronic device can determine a control instruction for controlling a first electronic device to perform a control operation, and according to the control instruction, control a second optical transceiver to send a pulsed optical signal corresponding to the control operation to the first electronic device, and the pulsed optical signal is used to determine the control operation. Thus, the first electronic device can receive the pulsed optical signal sent by the second electronic device through the second optical transceiver through the first optical transceiver, and determine the control operation corresponding to the pulsed optical signal, and then the first electronic device can perform the control operation. Since in the event that a part of the first electronic device (such as a wireless network module) fails, the second electronic device can control the second optical transceiver to send a pulsed optical signal to the first electronic device, so that the first electronic device can receive the pulsed optical signal through the first optical transceiver that has not failed and determine the control operation corresponding to the pulsed optical signal, instead of continuing to use the wireless network module to receive the control instruction. Therefore, the situation where the first electronic device cannot perform the control operation can be avoided, that is, the first electronic device can directly perform the control operation to quickly restore the operation of the above-mentioned part of the device without the need for maintenance personnel to go to the location of the first electronic device to control the first electronic device to perform the control operation, thereby reducing the time consumed in restoring the operation of the electronic device, thus improving the convenience of maintaining the first electronic device.

[0130] Furthermore, in the control method provided in the embodiment of the present application, remote control of the first electronic device can be achieved without setting up any additional devices, so there is no need to increase the equipment cost.

[0131] Furthermore, since the first electronic device may parse the control instructions not through the CPU of the first electronic device, but may parse the control instructions through a processing unit other than the CPU to determine the control operation, that is, even if the CPU of the first electronic device is turned off, the second electronic device can still control the first electronic device through the control instructions. Therefore, for the sake of energy saving, when the first electronic device is not needed, the second electronic device can also instruct the first electronic device to turn off the CPU and other high-energy-consuming components of the first electronic device, thereby saving energy consumption of the first electronic device. When the first electronic device is needed, the second electronic device can also control the first electronic device to start the CPU and other high-energy-consuming components of the first electronic device through control instructions, thereby avoiding the situation where the first electronic device cannot be used.

[0132] The following is a specific example to illustrate the complete process of an example of the control method provided in an embodiment of the present application.

[0133] Assuming that the first electronic device is a B-end device (such as a base station) and the second electronic device is an A-end device (such as a PC), an operation instruction table can be pre-configured in the A-end device and the B-end device. The operation instruction table includes a one-to-one correspondence between at least one parameter and at least one operation, such as the correspondence between 1Hz and the restart operation, the correspondence between 0.5Hz and the shutdown operation, and the correspondence between 0.1Hz and the power-on operation. As shown in FIG9 , when the maintenance personnel determines that the B-end device is unresponsive, the maintenance personnel may determine that some components of the B-end device are faulty. At this time, the maintenance personnel may first control the A-end device to report the wireless communication link linkdown to the B-end device through the wireless communication link between the A-end device and the B-end device. After a first preset time (e.g., 5 minutes) from the time of reporting the wireless communication link linkdown, when the maintenance personnel again determines that the B-end device is unresponsive, the maintenance personnel may input a control instruction into the A-end device, which is used to control the B-end device to perform a restart operation, so that the A-end device can determine the control instruction, and the A-end device can determine the pulse frequency corresponding to the restart operation (i.e., 1 Hz) according to the control instruction, and alternately send the first control signal and the second control signal to the second optical transceiver at 1 Hz to repeatedly turn the Tx_Disable function of the second optical transceiver on and off, so that the second optical transceiver can alternately send pulsed optical signals to the B-end device. For example, the pulsed optical signal may include 50 pulses (i.e., 50 consecutive pulses). In this way, the B-end device can receive the pulsed optical signal through the first optical transceiver device, and first implement the Rx_LOS function according to the pulsed optical signal through the first optical transceiver device to generate a status signal, and then obtain the pulse frequency of the status signal (i.e., 1Hz) through the processing unit (such as a programmable logic unit), and determine the control operation corresponding to the 1Hz (i.e., restart operation), and start calculating the number of continuous pulses corresponding to the status signal (i.e., 50). Finally, the B-end device can directly execute the restart operation to restore the operation of some components of the B-end device when the number of continuous pulses corresponding to the status signal (i.e., 50) is greater than or equal to the preset threshold (e.g., 40).

[0134] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the interaction between the first electronic device and the second electronic device. It is understandable that, in order to implement the above functions, the first electronic device or the second electronic device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily appreciate that, in combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in a hardware or computer software driven hardware manner depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0135] In the embodiment of the present application, the first electronic device or the second electronic device can be divided into functional modules according to the above-mentioned method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0136] Figure 10 shows a possible schematic diagram of the control device involved in the above embodiment, where the functional modules are divided according to their functions. This control device is the first control device. As shown in Figure 10, the first control device 50 includes a receiving module 51 for receiving pulsed optical signals transmitted by the second control device via a first optical transceiver. A processing module 52 is configured to determine and execute a control operation corresponding to the pulsed optical signal received by the receiving module 51.

[0137] In some embodiments of the present application, the above-mentioned processing module 52 is specifically used to generate a status signal based on the pulsed light signal through the first optical transceiver device; and obtain the pulse parameters corresponding to the status signal through the processing unit; and determine the control operation corresponding to the pulse parameters through the processing unit.

[0138] In some embodiments of the present application, the processing module 52 is specifically configured to execute a control operation through a processing unit when the number of consecutive pulses corresponding to the status signal is greater than or equal to a preset threshold.

[0139] In some embodiments of the present application, the processing module 52 is specifically configured to determine a control operation through a processing unit; and execute the control operation through the processing unit.

[0140] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.

[0141] Figure 11 illustrates a possible schematic diagram of the control device involved in the above-described embodiment, where each functional module is divided according to its function. This control device is a second control device. As shown in Figure 11, the second control device 60 includes a determination module 61 for determining a control instruction, which is used to control the first control device to perform a control operation. A processing module 62 is configured to control the second optical transceiver to transmit a pulsed optical signal corresponding to the control operation to the first control device based on the control instruction determined by determination module 61. This pulsed optical signal is used to determine the control operation.

[0142] In some embodiments of the present application, the above-mentioned processing module 62 is specifically used to determine the pulse parameters corresponding to the control operation according to the control instruction; and according to the pulse parameters, alternately send a first control signal and a second control signal to the second optical transceiver device, the first control signal is used to control the second optical transceiver device to send a pulse light signal to the first control device, and the second control signal is used to control the second optical transceiver device to stop sending a pulse light signal to the first control device.

[0143] In some embodiments of the present application, the processing module 62 is specifically configured to send the first control signal and the second control signal alternately to the second optical transceiver device according to the pulse parameter and the first preset number.

[0144] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.

[0145] The present application also provides a control system including a first electronic device and a second electronic device, wherein the first electronic device executes the control method in the above implementation manner, and the second electronic device executes the control method in the above implementation manner.

[0146] It should be noted that the specific working process of each functional module in the first electronic device and the second electronic device provided in the embodiment of the present application can refer to the specific description of the corresponding process in the method embodiment, and the embodiment of the present application will not be described in detail here. The first electronic device and the second electronic device provided in the embodiment of the present application are used to execute the above-mentioned control method, and thus can achieve the same effect as the above-mentioned control method.

[0147] An embodiment of the present application also provides an electronic device, including a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, implements the control method corresponding to the first electronic device in the above implementation method, or the control method corresponding to the second electronic device in the above implementation method.

[0148] An embodiment of the present application also provides a readable storage medium, characterized in that a program or instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, a control method corresponding to the first electronic device in the above-mentioned implementation method is implemented, or a control method corresponding to the second electronic device in the above-mentioned implementation method is implemented.

[0149] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0150] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0151] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0152] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0153] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0154] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A control method, comprising: The first electronic device receives a pulsed optical signal sent by the second electronic device through a first optical transceiver device; The first electronic device determines a control operation corresponding to the pulsed optical signal based on the pulsed optical signal; And The first electronic device executes the control operation.

2. The method according to claim 1, wherein, The first electronic device determines a control operation corresponding to the pulsed optical signal, including: The first electronic device generates a status signal according to the pulsed optical signal through the first optical transceiver device; The first electronic device obtains pulse parameters corresponding to the status signal through a processing unit; and The first electronic device determines the control operation corresponding to the pulse parameters through the processing unit.

3. The method according to claim 2, wherein The first electronic device generates a status signal according to the pulsed optical signal through the first optical transceiver device, including: The first electronic device generates the status information corresponding to the pulsed optical signal according to the pulsed optical signal loss function of the first optical transceiver device, wherein the status information is used to indicate whether the pulsed optical signal is lost.

4. The method according to claim 3, wherein The first electronic device generates the status information corresponding to the pulsed optical signal according to the function of the first optical transceiver device, including: The first electronic device generates a first pulsed electrical signal according to the pulses in the pulsed optical signal, wherein the first pulsed electrical signal is used to indicate that the pulsed optical signal received by the first optical transceiver device is not lost; and The first electronic device generates a second pulsed electrical signal according to other signals in the pulsed optical signal, wherein the second pulsed electrical signal is used to indicate that the pulsed optical signal received by the first optical transceiver device is lost; wherein the levels of the first pulsed electrical signal and the second pulsed electrical signal are different.

5. The method according to claim 4, wherein The first electronic device obtains the pulse parameters corresponding to the status signal through the processing unit, including: The first electronic device obtains the pulse parameters corresponding to the first pulsed electrical signal and the pulse parameters corresponding to the second pulsed electrical signal through the processing unit.

6. The method according to any one of claims 2-5, wherein The first electronic device determines the control operation corresponding to the pulse parameters through the processing unit, including: The first electronic device determines the control operation corresponding to the pulse parameters according to a pre-configured operation instruction table.

7. The method according to any one of claims 2-6, wherein The first electronic device executes the control operation through a processing unit, including: When the number of consecutive pulses corresponding to the status signal is greater than or equal to a preset threshold, the first electronic device executes the control operation through the processing unit.

8. The method according to claim 7, wherein the first electronic device comprises a network device, and the network device is a router, a switch or a base station.

9. A control method, comprising: The second electronic device determines a control instruction for controlling the first electronic device to execute a control operation; And The second electronic device controls a second optical transceiver device to send a pulsed optical signal corresponding to the control operation to the first electronic device according to the control instruction, and the pulsed optical signal is used to determine the control operation.

10. The method according to claim 9, wherein, The second electronic device controls the second optical transceiver device to send a pulsed optical signal corresponding to the control operation to the first electronic device according to the control instruction, including: The second electronic device determines pulsed parameters corresponding to the control operation according to the control instruction; and The second electronic device alternately sends a first control signal and a second control signal to the second optical transceiver device according to the pulsed parameters, where the first control signal is used to control the second optical transceiver device to send the pulsed optical signal to the first electronic device, and the second control signal is used to control the second optical transceiver device to stop sending the pulsed optical signal to the first electronic device.

11. The method according to claim 10, wherein, The second electronic device alternately sends the first control signal and the second control signal to the second optical transceiver device according to the pulsed parameters, including: The second electronic device alternately sends the first control signal and the second control signal to the second optical transceiver device according to the pulsed parameters and a first preset quantity.

12. The method according to claim 9, wherein, The second electronic device determines the control instruction, including: In the case of determining that the first electronic device is unresponsive, sending a notification of a link interruption to the first electronic device; and In the case of not receiving a response from the first electronic device to the notification within a first preset time, the second electronic device determines the control instruction.

13. The method according to any one of claims 9 - 12, wherein, After the second electronic device alternately sends the first control signal and the second control signal to the second optical transceiver device according to the pulsed parameters, it further includes: The second electronic device sets the transmission enabling function of the second optical transceiver device to the enabled state, so that the second optical transceiver device sends a pulsed optical signal to the first electronic device; and, The second electronic device sets the transmission enabling function of the second optical transceiver device to the off state, so that the second optical transceiver device stops sending a pulsed optical signal to the first electronic device.

14. A control device, the control device being provided on a first electronic device, wherein, The first control device includes: A receiving module, configured to receive the pulsed optical signal sent by the second electronic device through the first optical transceiver device; and A processing module, configured to determine a control operation corresponding to the pulsed optical signal and execute the control operation.

15. A control device, the control device is provided on a second electronic device, wherein, The second control device includes: A determining module, configured to determine a control instruction for controlling the first electronic device to execute a control operation; and A processing module, configured to control the second optical transceiver device to send a pulsed optical signal corresponding to the control operation to the first electronic device according to the control instruction, where the pulsed optical signal is used to determine the control operation.

16. A control system, wherein, The control system includes a first electronic device and a second electronic device; The first electronic device executes the control method according to any one of claims 1 to 8; the second electronic device executes the control method according to any one of claims 9 to 13.

17. An electronic device, characterized in that, It includes a processor and a memory, and the memory stores a program or instruction that can run on the processor. When the program or instruction is executed by the processor, the steps of the control method according to any one of claims 1 to 8 or 9 to 13 are implemented.

18. A readable storage medium, characterized in that, The program or instructions are stored on the readable storage medium, and when the program or instructions are executed by the processor, the steps of the control method described in any one of claims 1 to 8 or 9 to 13 are implemented.

Citation Information

Patent Citations

  • Wired and wireless hot-standby redundancy multi-master communication method and field network node module

    CN102799153A

  • Information communication device and information communication method

    CN103098380A

  • Intelligent equipment wireless monitoring method

    CN105549411A

  • Control method and apparatus, storage medium and electronic device

    CN110444003A

  • Standby communication channel building method and device of communication system and electronic equipment

    CN114070715A