Electronic equipment, signal transmission link and method
By using the internal controller in the electronic device to manage the forwarding controller, the working mode switching and the automatic determination of the master-slave relationship are realized, which solves the problems of insufficient adaptability of signal transmission links and confusing device relationships in the existing technology, and improves multiple depths. Signal transmission efficiency and adaptability of cameras in image acquisition scenarios.
Patent Information
- Application Number
- CN202410742693.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-09-27
AI Technical Summary
Existing electronic device signal transmission links lack adaptability in multiple different image collection scenarios. In particular, the parallel connection method of depth cameras cannot flexibly respond to different image collection needs, resulting in a confusing relationship between master and slave devices, and inconsistent transmission rates and power consumption. good.
By introducing an internal controller into the electronic device to control the opening and closing of the forwarding controller, the working mode switching of the electronic device is realized, thereby using a series connection method in the signal transmission link to automatically determine the master-slave device relationship, improving adaptability and transmission efficiency.
It improves the adaptability of signal transmission links in different application scenarios, reduces the probability of chaotic master-slave relationships, speeds up the transmission rate of communication signals, and reduces device power consumption. It is especially suitable for image acquisition scenarios with multiple depth cameras. .
Smart Images

Figure CN118713694A
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to an electronic device, a signal transmission link and a method. Background Art
[0002] A plurality of electronic devices can usually form a link capable of transmitting signals through a specific connection method. In such a communication link, it is usually necessary to determine a master electronic device and a slave electronic device. The master electronic device controls the slave electronic device by sending a control signal to the slave electronic device.
[0003] Since the working modes of the master electronic device and the slave electronic device are different, the current electronic devices can usually only have one working mode. In this way, the master electronic device needs to be connected to each slave electronic device separately. For example: parallel connection. This type of connection method usually relies on a specific connector, such as a hub. However, the number of electronic devices that can be connected to connectors such as hubs is usually fixed. If the number of electronic devices needs to be increased, it may be necessary to replace the connector and other related components in the signal transmission link.
[0004] That is, the signal transmission link that can be formed by current electronic devices does not have the high adaptability to meet many different application scenarios. In particular, in the scenario where multiple depth cameras (Time of Flight camera, TOF camera) are connected together for image acquisition, one of the depth cameras is used as the main electronic device, and the exposure time of other depth cameras as slave electronic devices is controlled to achieve time-sharing exposure. Since the number of depth cameras required for different image acquisition scenarios is often different, if the signal transmission link formed by the currently commonly used parallel connection method is adopted, it cannot adapt to multiple different image acquisition scenarios. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide an electronic device, a signal transmission link and a method, which can switch different working modes of the electronic device through the control of the forwarding controller by the internal controller inside the electronic device, so that the electronic devices in the signal transmission link can be connected in series. This series connection can improve the adaptability of the signal transmission link in different application scenarios.
[0006] In the first aspect, the present application provides an electronic device for forming a signal transmission link by series connection; the electronic device includes a signal input terminal, an internal controller, a forwarding controller and a signal output terminal; the internal controller is electrically connected to the signal input terminal, the forwarding controller and the signal output terminal respectively; the internal controller is configured to respond to a communication signal and control the opening and closing of the forwarding controller; when the forwarding controller is turned on, the electronic device is determined as a slave electronic device in the signal transmission link; when the forwarding controller is turned off, the electronic device is determined as a master electronic device in the signal transmission link; the forwarding controller is configured to forward the communication signal to the signal output terminal.
[0007] The electronic device controls the opening and closing of the forwarding controller through the internal controller inside the electronic device, so that the electronic device can switch different working modes, and then the electronic devices can be connected in series in the signal transmission link formed by the electronic device provided by the present application. Finally, the adaptability of the signal transmission link in different application scenarios is improved.
[0008] In combination with the first aspect, optionally, the internal controller is configured to: control the forwarding controller to be turned on when the difference between the receiving time and the sending time exceeds a first threshold; and control the forwarding controller to be turned off when the difference between the receiving time and the sending time does not exceed the first threshold; wherein the receiving time includes the time of broadcasting a first synchronization signal to other electronic devices in the signal transmission link; and the sending time includes the time of receiving a second synchronization signal broadcast from other electronic devices in the signal transmission link.
[0009] The above-mentioned electronic device determines whether the electronic device is a master electronic device or a slave electronic device by calculating the difference between the sending time of the first synchronization signal sent by the electronic device and the receiving time of the second synchronization signal. This enables the electronic devices in the signal transmission link to automatically determine the master-slave relationship, and also reduces the probability of confusion in the master-slave relationship in the signal transmission link.
[0010] In combination with the first aspect, optionally, when the electronic device is determined to be a main electronic device: the internal controller is specifically configured to generate the communication signal and transmit it to the signal output end, and control the forwarding controller to be turned off; the signal output end is configured to transmit the communication signal to the signal input end of the slave electronic device in the signal transmission link.
[0011] The electronic device, when determined as the master electronic device, is responsible for generating and sending communication signals, but does not forward received signals, thereby shutting down the forwarding controller inside the device, speeding up the transmission rate of the communication signal and reducing the power consumption of the device.
[0012] In combination with the first aspect, optionally, when the electronic device is determined to be a slave electronic device: the signal input terminal is configured to transmit the communication signal to the forwarding controller; the internal controller is specifically configured to respond to the communication signal and control the forwarding controller to turn on; the forwarding controller is configured to transmit the communication signal to the signal output terminal; the signal output terminal is configured to transmit the communication signal to the signal input terminal of the next slave electronic device in the signal transmission link.
[0013] The above-mentioned electronic device, when the electronic device is determined to be a slave electronic device, turns on the forwarding controller inside the device and is responsible for responding to and forwarding communication signals, thereby realizing the use of the slave electronic device as a relay node and forwarding the communication signal, thereby enhancing the transmission capacity of the communication signal.
[0014] In combination with the first aspect, optionally, the electronic device includes a depth camera.
[0015] The above electronic device improves the adaptability of the signal transmission link formed by connecting multiple depth cameras in series to multiple different image acquisition scenarios.
[0016] In a second aspect, the present application further provides a signal transmission link, comprising a plurality of electronic devices connected in series as described in the first aspect.
[0017] The above-mentioned signal transmission link has the same beneficial effects as the electronic device provided by the above-mentioned first aspect, or any optional implementation manner of the first aspect, and will not be elaborated here.
[0018] In the third aspect, the present application also provides a signal transmission method, which is applied to an electronic device in a signal transmission link as described in the second aspect; the method includes: broadcasting a first synchronization signal to other electronic devices in the signal transmission link, and recording the sending time; receiving a second synchronization signal broadcast from other electronic devices in the signal transmission link, and recording the receiving time; judging whether the difference between the receiving time and the sending time exceeds a first threshold; if it is judged that the difference between the receiving time and the sending time exceeds the first threshold, determining the current electronic device as a slave electronic device; if it is judged that the difference between the receiving time and the sending time does not exceed the first threshold, determining the current electronic device as a master electronic device.
[0019] The above-mentioned signal transmission method determines whether the electronic device is a master electronic device or a slave electronic device by calculating the difference between the sending time of the first synchronization signal sent by the electronic device and the receiving time of the second synchronization signal. This enables the electronic devices in the signal transmission link to automatically determine the master-slave relationship, and also reduces the probability of confusion in the master-slave relationship in the signal transmission link.
[0020] In combination with the third aspect, optionally, after determining the current electronic device as a slave electronic device, the method also includes: monitoring the next broadcast of the first synchronization signal from the master electronic device in the signal transmission link; determining whether the time for receiving the first synchronization signal broadcast next time exceeds a second threshold; if it is determined that the time for receiving the first synchronization signal broadcast next time exceeds the second threshold, determining the current electronic device as the master electronic device.
[0021] The above-mentioned signal transmission method improves the fault tolerance capability of the signal transmission link and simplifies the manual management and maintenance of the signal transmission link by re-determining the slave electronic device as the master electronic device when the time for receiving the next broadcast first synchronization signal from the slave electronic device exceeds a second threshold.
[0022] In combination with the third aspect, optionally, the method is specifically applied to the master electronic device; the method also includes: generating a communication signal by an internal controller; transmitting the communication signal to the slave electronic device by the internal controller; and controlling the forwarding controller of the master electronic device to be turned off by the internal controller.
[0023] The above signal transmission method, when the electronic device is determined as the master electronic device, is responsible for generating and sending the communication signal, and does not forward the received signal, thereby turning off the forwarding controller inside the device, speeding up the transmission rate of the communication signal and reducing the power consumption of the device.
[0024] In combination with the third aspect, optionally, the method is specifically applied to the slave electronic device; the method also includes: the internal controller responding to the communication signal transmitted from the master electronic device; the internal controller controlling the forwarding controller to turn on; and the forwarding controller forwarding the communication signal to the next slave electronic device.
[0025] The above-mentioned signal transmission method, when the electronic device is determined to be a slave electronic device, turns on the forwarding controller inside the device, and is responsible for responding to and forwarding the communication signal, thereby realizing the use of the slave electronic device as a relay node and forwarding the communication signal, thereby enhancing the transmission capacity of the communication signal.
[0026] In summary, the electronic device, signal transmission link and method provided by the present application control the opening and closing of the forwarding controller through the internal controller inside the electronic device, so that the electronic device can switch different working modes, and then the electronic device can be connected in series in the signal transmission link formed by the electronic device provided by the present application. Finally, the adaptability of the signal transmission link in different application scenarios is improved. By calculating the difference between the sending time of the electronic device sending the first synchronization signal and the receiving time of the second synchronization signal, it is determined whether the electronic device is a master electronic device or a slave electronic device, so that the electronic device in the signal transmission link automatically determines the master-slave relationship, and also reduces the probability of confusion in the master-slave relationship in the signal transmission link. When the electronic device is determined to be the master electronic device, it is responsible for generating and sending communication signals, and will not forward the received signals. Then the forwarding controller inside the device is closed, the transmission rate of the communication signal is accelerated, and the power consumption of the device is reduced. When the electronic device is determined to be a slave electronic device, the forwarding controller inside the device is opened, and is responsible for responding and forwarding the communication signal, so that the slave electronic device is used as a relay node and the communication signal is forwarded, which enhances the transmission capacity of the communication signal. In particular, the application of the present invention to a depth camera improves the adaptability of a signal transmission link formed by connecting multiple depth cameras in series to multiple different image acquisition scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0028] Figure 1 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0029] Figure 2 A connection diagram of a signal transmission link provided in an embodiment of the present application;
[0030] Figure 3 A first flow chart of a signal transmission method provided in an embodiment of the present application;
[0031] Figure 4 A second flow chart of the signal transmission method provided in an embodiment of the present application;
[0032] Figure 5 A third flow chart of the signal transmission method provided in an embodiment of the present application;
[0033] Figure 6 A fourth flow chart of the signal transmission method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0034] The following embodiments of the technical solution of the present application are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.
[0035] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0036] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.
[0037] Please refer to Figure 1 , Figure 1 1 is a schematic diagram of the structure of the electronic device 100 provided in the embodiment of the present application. The electronic device 100 provided in the embodiment of the present application can be used to form a signal transmission link 10 by connecting in series. The connection schematic diagram of the signal transmission link 10 is shown in FIG. Figure 2 As shown. The electronic device 100 may include a signal input terminal 110, an internal controller 120, a forwarding controller 130, and a signal output terminal 140. The internal controller 120 may be electrically connected to the signal input terminal 110, the forwarding controller 130, and the signal output terminal 140, respectively. The internal controller 120 may be configured to respond to a communication signal and control the opening and closing of the forwarding controller 130. When the forwarding controller 130 is turned on, the electronic device 100 may be determined as a slave electronic device 100 in the signal transmission link 10. When the forwarding controller 130 is turned off, the electronic device 100 may be determined as a master electronic device 100 in the signal transmission link 10. The forwarding controller 130 may be configured to forward the communication signal to the signal output terminal 140.
[0038] The signal transmission link 10 formed by the series connection of the electronic devices 100 can be a non-closed-loop linear signal transmission link 10 formed by not connecting the first and last electronic devices 100, or a closed-loop annular signal transmission link 10 formed by connecting the first and last electronic devices 100.
[0039] The signal input terminal 110 and the signal output terminal 140 can be a signal input interface and a signal output interface on the electronic device 100, respectively. The internal controller 120 in the master electronic device 100 can be used to generate a communication signal for communicating with other slave electronic devices 100, for example: a control signal for controlling the exposure time of a depth camera. The internal controller 120 in the slave electronic device 100 can be used to respond to the communication signal, for example: corresponding to the control signal for controlling the exposure time of the depth camera, to adjust its own exposure time. The forwarding controller 130 can be used to forward the communication signal to the next slave electronic device 100 in the serial signal transmission link 10.
[0040] In the signal transmission link 10, any electronic device 100 can be determined as either a master electronic device 100 or a slave electronic device 100. When the electronic device 100 is determined as the master electronic device 100, the internal controller 120 inside it can control the internal forwarding controller 130 to be turned off. When the electronic device 100 is determined as a slave electronic device 100, the internal controller 120 inside it can control the internal forwarding controller 130 to be turned on.
[0041] In the above implementation process, the internal controller 120 inside the electronic device 100 controls the opening and closing of the forwarding controller 130, so that the electronic device 100 can switch different working modes, and thus the electronic devices 100 can be connected in series in the signal transmission link 10 formed by the electronic devices 100 provided by the embodiment of the present application. Finally, the adaptability of the signal transmission link 10 in different application scenarios is improved.
[0042] In some optional embodiments, the internal controller 120 may be configured to: when the difference between the receiving time and the sending time exceeds the first threshold, control the forwarding controller 130 to be turned on. When the difference between the receiving time and the sending time does not exceed the first threshold, control the forwarding controller 130 to be turned off. The receiving time may include the time when the first synchronization signal is broadcast to other electronic devices 100 in the signal transmission link 10. The sending time may include the time when the second synchronization signal broadcasted from other electronic devices 100 in the signal transmission link 10 is received.
[0043] That is to say, in the process of determining the master electronic device 100 and the slave electronic device 100 in the signal transmission link 10, the signal transmission link 10 will broadcast synchronization signals to other electronic devices 100 in the signal transmission link 10. Therefore, any electronic device 100 will not only send out a synchronization signal, but also monitor synchronization signals from other electronic devices 100. Take one of the electronic devices 100 as the current electronic device 100 as an example to illustrate, and record the moment of the first synchronization signal broadcasted to the signal transmission link 10 as the sending moment. Record the moment of the second synchronization signal received from the slave link. As the receiving moment. Normally, if the current electronic device 100 sends out the first synchronization signal and receives the second synchronization signal almost at the same time, that is, the sending moment and the receiving moment are almost equal. It means that the second synchronization signal received by the current electronic device 100 is the first synchronization signal sent by it. In this case, the internal controller 120 inside the current electronic device 100 can control the forwarding controller 130 to be turned off so that the current electronic device 100 is determined as the master electronic device 100. On the contrary, the internal controller 120 inside the front electronic device 100 may control the forwarding controller 130 to be turned on, so that the current electronic device 100 is determined as the slave electronic device 100 .
[0044] The first threshold may be 0, or may be other values determined by those skilled in the art according to actual application requirements.
[0045] Among them, the above-mentioned synchronization signal can be used for clock synchronization between each electronic device 100. Taking the electronic device 100 as an example, after the clock of each depth camera in the signal transmission link 10 is synchronized, it is usually convenient to subsequently control the exposure time of each depth camera to achieve time-sharing exposure.
[0046] In the above implementation process, by calculating the difference between the sending time of the first synchronization signal sent by the electronic device 100 and the receiving time of the second synchronization signal, it is determined whether the electronic device 100 is a master electronic device 100 or a slave electronic device 100, thereby realizing that the electronic device 100 in the signal transmission link 10 automatically determines the master-slave relationship, and also reduces the probability of confusion in the master-slave relationship in the signal transmission link 10.
[0047] In some optional implementations, when the electronic device 100 is determined to be the master electronic device 100: the internal controller 120 can be specifically configured to generate a communication signal and transmit it to the signal output terminal 140, and control the forwarding controller 130 to be turned off. The signal output terminal 140 can be configured to transmit the communication signal to the signal input terminal 110 of the slave electronic device 100 in the signal transmission link 10.
[0048] That is to say, when the electronic device 100 is determined to be the master electronic device 100, the communication signal is directed from the internal controller 120 to the signal output terminal 140. In this case, since the electronic device 100 is determined to be the master electronic device 100 and the communication signal is generated by the internal controller 120, there is no need for the internal forwarding controller 130 to forward the communication signal. The internal controller 120 can then control the forwarding controller 130 to be turned off. The signal output terminal 140 can transmit the communication signal to the signal input terminal 110 of the slave electronic device 100 adjacent to the electronic device 100.
[0049] In the above implementation process, when the electronic device 100 is determined as the master electronic device 100, it is responsible for generating and sending communication signals, and does not forward received signals, thereby shutting down the forwarding controller 130 inside the device, speeding up the transmission rate of the communication signal and reducing the power consumption of the device.
[0050] In some optional embodiments, when the electronic device 100 is determined to be a slave electronic device 100: the signal input terminal 110 can be configured to transmit the communication signal to the forwarding controller 130. The internal controller 120 can be specifically configured to respond to the communication signal and control the forwarding controller 130 to start. The forwarding controller 130 can be configured to transmit the communication signal to the signal output terminal 140. The signal output terminal 140 can be configured to transmit the communication signal to the signal input terminal 110 of the next slave electronic device 100 in the signal transmission link 10.
[0051] That is, when the electronic device 100 is determined to be a slave electronic device 100, the communication signal flows from the signal input terminal 110 to the forwarding controller 130, and then to the signal output terminal 140. In this case, since the electronic device 100 is determined to be a slave electronic device 100, the forwarding controller 130 can be turned on by the internal controller 120 to forward the communication signal. The signal output terminal 140 of the electronic device 100 can transmit the communication signal to the signal input terminal 110 of the slave electronic device 100 adjacent to the electronic device 100.
[0052] During the above implementation process, when the electronic device 100 is determined to be a slave electronic device 100, the forwarding controller 130 inside the device is turned on and is responsible for responding to and forwarding communication signals, thereby realizing the use of the slave electronic device 100 as a relay node and forwarding communication signals, thereby enhancing the transmission capacity of communication signals.
[0053] In some optional embodiments, the electronic device 100 may include a depth camera.
[0054] The depth camera is also called a TOF camera (Time of Flight camera). The camera can determine the distance of an object by emitting light pulses and measuring the flight time of the light. Therefore, the camera can be applied to various scenes that require depth perception. Accordingly, the communication signal can be a control signal for controlling the exposure time of each depth camera in the signal transmission link 10. Under the action of this control signal, the time-sharing exposure of each depth camera can be achieved.
[0055] In the above implementation process, the adaptability of the signal transmission link 10 formed by connecting multiple depth cameras in series to multiple different image acquisition scenarios is improved.
[0056] Please continue to refer to Figure 2 Based on the same concept, the signal transmission link 10 provided in the embodiment of the present application may include a plurality of electronic devices 100 connected in series as described in the previous embodiment.
[0057] The above implementation process may be the same as the electronic device described in the previous embodiment, and will not be described in detail here.
[0058] Please refer to Figure 3 , Figure 3 This is a first flow chart of the signal transmission method provided in the embodiment of the present application. Based on the same concept, the signal transmission method provided in the embodiment of the present application should be applicable to the electronic device 100 in the signal transmission link described in the previous embodiment.
[0059] The method may include:
[0060] Step S110: broadcast a first synchronization signal to other electronic devices in the signal transmission link, and record the sending time.
[0061] Step S120: receiving a second synchronization signal broadcasted from other electronic devices in the signal transmission link, and recording the receiving time.
[0062] Step S130: Determine whether the difference between the receiving time and the sending time exceeds a first threshold.
[0063] If it is determined that the difference between the receiving time and the sending time exceeds the first threshold, step S140 is executed: the current electronic device is determined as a slave electronic device.
[0064] If it is determined that the difference between the receiving time and the sending time does not exceed the first threshold, step S150 is executed: the current electronic device is determined as the main electronic device.
[0065] In the above steps S110 to S150, in the process of determining the master electronic device and the slave electronic device in the signal transmission link, the signal transmission link will broadcast synchronization signals to other electronic devices in the signal transmission link. Therefore, any electronic device will not only send out synchronization signals, but also monitor synchronization signals from other electronic devices. Take one of the electronic devices as the current electronic device as an example to illustrate, and record the moment of the first synchronization signal broadcasted to the signal transmission link as the sending moment. Record the moment of the second synchronization signal received from the slave link. As the receiving moment. Normally, if the current electronic device sends out the first synchronization signal and receives the second synchronization signal almost at the same time, that is, the sending moment and the receiving moment are almost equal. It means that the second synchronization signal received by the current electronic device is the first synchronization signal sent by it. In this case, the internal controller inside the current electronic device can control the forwarding controller to be turned off so that the current electronic device is determined to be the master electronic device. On the contrary, the internal controller inside the previous electronic device can control the forwarding controller to be turned on so that the current electronic device is determined to be the slave electronic device.
[0066] The first threshold may be 0, or may be other values determined by those skilled in the art according to actual application requirements.
[0067] Among them, the above-mentioned synchronization signal can be used for clock synchronization between various electronic devices. Taking electronic devices as an example, after the clocks of various depth cameras in the signal transmission link are synchronized, it is usually convenient to subsequently control the exposure time of each depth camera to achieve time-sharing exposure.
[0068] In the above implementation process, by calculating the difference between the sending time of the first synchronization signal sent by the electronic device and the receiving time of the second synchronization signal, it is determined whether the electronic device is a master electronic device or a slave electronic device, thereby realizing that the electronic devices in the signal transmission link automatically determine the master-slave relationship and reducing the probability of confusion in the master-slave relationship in the signal transmission link.
[0069] Please refer to Figure 4 , Figure 4 is a second flow chart of the signal transmission method provided in the embodiment of the present application. In some optional implementations, after step S140, the signal transmission method provided in the embodiment of the present application may further include:
[0070] Step S141: monitoring the next broadcast of the first synchronization signal from the main electronic device in the signal transmission link.
[0071] In the above step S141, after the master-slave relationship of each electronic device in the signal transmission link is determined, the electronic device currently determined as a slave will continue to monitor the first synchronization signal of the master electronic device.
[0072] Step S142: Determine whether the time for receiving the next broadcasted first synchronization signal exceeds a second threshold.
[0073] In the above step S142, the time of broadcasting the first synchronization signal next time may refer to the time length between the moment of receiving the first synchronization signal currently and the moment of broadcasting the first synchronization signal next time. The second time threshold may be set by those skilled in the art according to the characteristics of the first synchronization signal, the network environment, the performance of the device, and the expected working environment. For example, a few minutes or a few hours.
[0074] If it is determined that the time for receiving the next broadcasted first synchronization signal exceeds the second threshold, step S143 is executed: the current electronic device is determined as the main electronic device.
[0075] In the above step S143, if the time of the next broadcast of the first synchronization signal exceeds the second threshold, it usually means that the slave electronic device has not received the first synchronization signal for a long time, and it can be regarded that the master electronic device in the signal transmission link is disconnected. Then, the current slave electronic device can be re-determined as the master electronic device.
[0076] During the above implementation process, when the time for the next broadcast first synchronization signal received by the slave electronic device exceeds the second threshold, the slave electronic device is re-determined as the master electronic device, thereby improving the fault tolerance capability of the signal transmission link and simplifying the manual management and maintenance of the signal transmission link.
[0077] Please refer to Figure 5 , Figure 5 This is a third flow chart of the signal transmission method provided in the embodiment of the present application. In some optional implementations, the signal transmission method provided in the embodiment of the present application can be specifically used in a main electronic device.
[0078] The signal transmission method provided in the embodiment of the present application may also include:
[0079] Step S210: The internal controller generates a communication signal.
[0080] Step S220: The internal controller transmits the communication signal to the slave electronic device.
[0081] Step S230: The internal controller controls the forwarding controller of the main electronic device to be turned off.
[0082] In the above steps S210 to S230, that is, when the electronic device is determined to be the master electronic device, the direction of the communication signal inside it is from the internal controller to the signal output terminal. In this case, since the electronic device is determined to be the master electronic device and the communication signal is generated by the internal controller inside it, there is no need for the internal forwarding controller to forward the communication signal. Then, the internal controller can control the forwarding controller to be turned off. The signal output terminal can transmit the communication signal to the signal input terminal of the slave electronic device adjacent to the electronic device.
[0083] In the above implementation process, when the electronic device is determined as the master electronic device, it is responsible for generating and sending communication signals, and will not forward the received signals, thereby turning off the forwarding controller inside the device, speeding up the transmission rate of the communication signal and reducing the power consumption of the device.
[0084] Please refer to Figure 6 , Figure 6 This is a fourth flow chart of the signal transmission method provided in the embodiment of the present application. In some optional implementations, the signal transmission method provided in the embodiment of the present application can be specifically used in a slave electronic device.
[0085] The signal transmission method provided in the embodiment of the present application may also include:
[0086] Step S240: The internal controller responds to the communication signal transmitted from the main electronic device.
[0087] Step S250: The internal controller controls the forwarding controller to start.
[0088] Step S260: The forwarding controller forwards the communication signal to the next slave electronic device.
[0089] In the above steps S240 to S260, that is, when the electronic device is determined to be a slave electronic device, the communication signal inside it is from the signal input end to the forwarding controller, and then to the signal output end. In this case, since the electronic device is determined to be a slave electronic device, the forwarding controller can be controlled by the internal controller to turn on to forward the communication signal. The signal output end of the electronic device can transmit the communication signal to the signal input end of the slave electronic device adjacent to the electronic device.
[0090] During the above implementation process, when the electronic device is determined to be a slave electronic device, the forwarding controller inside the device is turned on and is responsible for responding to and forwarding communication signals, thereby realizing the use of the slave electronic device as a relay node and forwarding the communication signal, thereby enhancing the transmission capacity of the communication signal.
[0091] The embodiments of the present application also provide a computer program product, which may include a computer-readable storage medium carrying computer-readable program instructions for executing the methods disclosed in the embodiments of the present application.
[0092] Computer readable storage medium can be a tangible device that can hold and store instructions used by an instruction execution device. Computer readable storage medium can be, for example, but not limited to: an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (non-exhaustive list) of computer readable storage medium include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, for example, a punch card or a convex structure in a groove on which instructions are stored, and any suitable combination thereof. The computer readable storage medium used here is not interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated by a waveguide or other transmission medium (for example, a light pulse by an optical fiber cable), or an electrical signal transmitted by a wire.
[0093] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0094] The computer program instructions for executing the disclosed methods of each embodiment of the present application can be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions can be executed completely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer, partially on the remote computer, or completely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet). In some embodiments, by using the state information of computer-readable program instructions to personalize electronic circuits, such as programmable logic circuits, field programmable gate arrays (FPGAs) or programmable logic arrays (PLAs), the electronic circuits can execute computer-readable program instructions.
[0095] In summary, the electronic device, signal transmission link and method provided by each embodiment of the present application, through the internal controller inside the electronic device, controls the opening and closing of the forwarding controller, so that the electronic device can switch different working modes, and then the electronic device can be connected in series in the signal transmission link formed by the electronic device provided by the embodiment of the present application. Finally, the adaptability of the signal transmission link in different application scenarios is improved. By calculating the difference between the sending time of the electronic device sending the first synchronization signal and the receiving time of the second synchronization signal, it is determined whether the electronic device is a master electronic device or a slave electronic device, so that the electronic device in the signal transmission link automatically determines the master-slave relationship, and also reduces the probability of confusion in the master-slave relationship in the signal transmission link. In the case where the electronic device is determined to be the master electronic device, it is responsible for generating and sending communication signals, and the received signal will not be forwarded again. Then the forwarding controller inside the close device speeds up the transmission rate of the communication signal and reduces the power consumption of the device. In the case where the electronic device is determined to be a slave electronic device, the forwarding controller inside the open device is responsible for responding and forwarding the communication signal, and the slave electronic device is used as a relay node and the communication signal is forwarded, which enhances the transmission capacity of the communication signal. In particular, applying the various embodiments of the present application to a depth camera improves the adaptability of a signal transmission link formed by connecting multiple depth cameras in series to multiple different image acquisition scenarios.
[0096] In several embodiments provided by the embodiments of the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to the multiple embodiments of the embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and a part of the module, program segment or code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0097] In addition, the functional modules in each embodiment of the present application can be integrated together to form an independent part, or each module can exist separately, or two or more modules can be integrated to form an independent part.
[0098] The above description is only an optional implementation manner of the embodiments of the present application, but the protection scope of the embodiments of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the embodiments of the present application, which should be covered within the protection scope of the embodiments of the present application.
Claims
1. An electronic device, characterized in that: Used to form a signal transmission link by serial connection; The electronic device comprises a signal input terminal, an internal controller, a forwarding controller and a signal output terminal; The internal controller is electrically connected to the signal input terminal, the forwarding controller and the signal output terminal respectively; The internal controller is configured to respond to the communication signal and control the on and off of the forwarding controller; when the forwarding controller is on, the electronic device is determined to be a slave electronic device in the signal transmission link; When the forwarding controller is turned off, the electronic device is determined as a master electronic device in the signal transmission link; The forwarding controller is configured to forward the communication signal to the signal output terminal.
2. The electronic device according to claim 1, characterized in that: The internal controller is configured to: control the forwarding controller to be turned on when the difference between the receiving time and the sending time exceeds a first threshold; and control the forwarding controller to be turned off when the difference between the receiving time and the sending time does not exceed the first threshold; The receiving time includes the time of broadcasting the first synchronization signal to other electronic devices in the signal transmission link; the sending time includes the time of receiving the second synchronization signal broadcast from other electronic devices in the signal transmission link.
3. The electronic device according to claim 1, characterized in that: When the electronic device is determined to be a master electronic device: the internal controller is specifically configured to generate the communication signal and transmit it to the signal output end, and control the forwarding controller to be turned off; the signal output end is configured to transmit the communication signal to the signal input end of the slave electronic device in the signal transmission link.
4. The electronic device according to claim 1, characterized in that: In the case where the electronic device is determined to be a slave electronic device: the signal input terminal is configured to transmit the communication signal to the forwarding controller; the internal controller is specifically configured to respond to the communication signal and control the forwarding controller to start; the forwarding controller is configured to transmit the communication signal to the signal output terminal; The signal output terminal is configured to transmit the communication signal to a signal input terminal of a next slave electronic device in a signal transmission link.
5. The electronic device according to any one of claims 1 to 4, characterized in that: The electronic device includes a depth camera.
6. A signal transmission link, characterized in that: The electronic device comprises a plurality of electronic devices as claimed in any one of claims 1 to 5 connected in series.
7. A signal transmission method, characterized in that: An electronic device used in a signal transmission link as claimed in claim 6; The method comprises: Broadcasting a first synchronization signal to other electronic devices in the signal transmission link and recording the sending time; Receiving a second synchronization signal broadcasted from other electronic devices in the signal transmission link, and recording a receiving time; Determining whether the difference between the receiving time and the sending time exceeds a first threshold; If it is determined that the difference between the receiving time and the sending time exceeds a first threshold, determining the current electronic device as a slave electronic device; If it is determined that the difference between the receiving time and the sending time does not exceed the first threshold, the current electronic device is determined as the main electronic device.
8. The method according to claim 7, characterized in that After determining the current electronic device as a slave electronic device, the method further includes: monitoring the next broadcast of the first synchronization signal from a master electronic device in the signal transmission link; Determining whether the time of receiving the first synchronization signal broadcasted next time exceeds a second threshold; If it is determined that the time for receiving the first synchronization signal broadcasted next time exceeds the second threshold, the current electronic device is determined as the main electronic device.
9. The method according to claim 7, characterized in that: The method is specifically applied to the main electronic device; The method further comprises: The communication signal is generated by the internal controller; The internal controller transmits the communication signal to the slave electronic device; and The internal controller controls the forwarding controller of the main electronic device to be turned off.
10. The method according to claim 7, characterized in that The method is specifically applied to the slave electronic device; The method further comprises: The internal controller responds to the communication signal transmitted from the main electronic device; The internal controller controls the forwarding controller to start; and The communication signal is forwarded to the next slave electronic device by the forwarding controller.
