Data transmission method and data transmission device

The data transmission device improves response speed and efficiency by using a microcontroller and vibration sensor to manage power supply dynamically, addressing the challenges of lengthy initialization times and increased power requirements in existing devices.

JP7665908B2Active Publication Date: 2025-04-22GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2023052586
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-05-29
Filing Date
2023-03-29
Publication Date
2025-04-22
Estimated Expiration
2040-12-25

AI Technical Summary

Technical Problem

Existing data transmission devices face challenges in achieving both efficient operation and compact design, as they often require lengthy initialization times and increased power supply capacity, which affects response speed and efficiency during data projection.

Method used

A data transmission method and device that utilize a microcontroller, vibration sensor, and control switch to dynamically manage power supply to the data transmission module, activating it only when the device is moved, thus reducing power consumption and initialization time.

Benefits of technology

This approach enhances the response speed and operating efficiency of the data transmission device by reducing power consumption and initialization time, while also minimizing the capacity and volume of the power supply, thus achieving both space and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007665908000020
    Figure 0007665908000020
  • Figure 0007665908000021
    Figure 0007665908000021
  • Figure 0007665908000022
    Figure 0007665908000022
Patent Text Reader

Abstract

To provide a data transmission method and a data transmission device that achieve both space and efficiency so as to improve the response speed and operating efficiency during projection of the data transmission device without excessively increasing the capacity and volume of a power source.SOLUTION: A data transmission device 3 is provided with a microcontroller 34, a power supply 33 and a vibration sensor 35. When the vibration sensor 35 detects the movement of the data transmission device 3 by a user, the microcontroller 34 controls the power source 33 to supply power to a data transmission module 32 and starts the data transmission module 32 before the data transmission device 3 is connected to an electronic device 1. As a result, while improving the response speed and operating efficiency of the data transmission device 3, the capacity and volume of the power supply 33 are reduced because the power supply 33 does not need to supply power to the data transmission module 32 all the time.SELECTED DRAWING: Figure 4
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] (CROSS REFERENCE TO RELATED APPLICATIONS) This application claims priority to the Chinese patent applications filed on May 29, 2020 with application number 202010479265.X, filed on November 8, 2019 with application number 201921922694.9, and filed on November 8, 2019 with application number 201921922693.4 with the State Intellectual Property Office of the People's Republic of China, the entire contents of which are incorporated herein by reference. The present application relates to electronic technology, for example, to a data transmission method and a data transmission device. [Background technology]

[0002] In the prior art, many technical means are provided to help people communicate in a meeting. For example, the presentation is shared by projecting it onto a screen, long-distance instant communication, and a writing canvas provided by a large-screen tablet. There is also a method using a data transmission device. The data transmission device has a communication interface and a data transmission module. When the communication interface is connected to a corresponding interface of a user's electronic device via a connecting line, the display screen of the user's electronic device can be transmitted to the large-screen tablet in the meeting room by the data transmission module.

[0003] In the prior art, after a plurality of data transmission devices are connected to an electronic device, the electronic device can supply power to the data transmission devices, but after the data transmission device is connected to the electronic device and power is supplied, the data transmission module of the data transmission device starts a setting flow such as initialization, and after a certain time has passed and the setting is completed, the operation starts, so that the setting time of the data transmission device is long, and the response speed and operation efficiency of the data transmission device are reduced. However, in other prior art, the data transmission device is provided with a power supply for supplying power to the data transmission module so as to keep the data transmission module in a power-on state, and the display screen of the electronic device is projected immediately after the data transmission device is connected to the electronic device, which can improve efficiency, but the requirements for the capacity and volume of the power supply are high, and the space occupied by the power supply in the data transmission device is large.

[0004] Therefore, a technical challenge in this field is how to balance space and efficiency so as to improve the response speed and operating efficiency of the data transmission device during projection without increasing the capacity or volume of its power supply excessively. Summary of the Invention

[0005] In this application, in order to solve the technical problem of low operating efficiency of data transmission devices in the related art, a data transmission method and a data transmission device are provided. According to a first aspect of the present application, there is provided a data transmission method applied to a data transmission device, the data transmission device including a power source, a microcontroller, a communication interface, a vibration sensor, a control switch, and a data transmission module, the control switch being connected between the power source and the data transmission module, the communication interface being for receiving data and transmitting the received data to the data transmission module, the vibration sensor being for generating detection data according to a moving state of the data transmission device, the data transmission module being for performing data communication with a display means, and the microcontroller being for controlling on / off of the control switch based on the detection data generated by the vibration sensor, The data transmission method includes the microcontroller receiving detection data transmitted from the vibration sensor, the detection data including an acceleration value of the vibration sensor itself; when the microcontroller determines that the acceleration value of the vibration sensor itself exceeds a predetermined acceleration threshold, the microcontroller sending a first ON signal to the control switch; the control switch being turned on by the first ON signal to conduct a power supply connection path between the power source and the data transmission module; and the data transmission module executing communication settings including communication settings of the communication interface and / or communication settings for data communication between the data transmission module and the display means. In one embodiment of the first aspect of the present application, the method further includes: after an electronic device is connected to the communication interface, the data transmission module receives stream media data from the communication interface and encodes the stream media data; and the data transmission module transmits the encoded stream media data to the display means. In one embodiment of the first aspect of the present application, the data transmission device further includes an external power detection block for detecting whether or not an external power source is applied to the communication interface, and the method further includes, when the external power detection block detects that an external power source is not applied to the communication interface, sending a second ON signal to the control switch, and the control switch being turned on by the first ON signal and conducting the power supply connection path between the power source and the data transmission module, and the control switch being turned on by the first ON signal and conducting the power supply connection path between the power source and the data transmission module includes the control switch being turned on by the first ON signal and the second ON signal and conducting the power supply connection path between the power source and the data transmission module. In one embodiment of the first aspect of the present application, the method further includes a step of sending a second OFF signal to the control switch when the external power detection block detects that an external power source is turned on to the communication interface after the power supply connection path between the power source and the data transmission module is conductive, and a step of the control switch being turned off by the second OFF signal, thereby cutting off the power supply connection path between the power source and the data transmission module. In one embodiment of the first aspect of the present application, after the power supply connection path between the power source and the data transmission module is made conductive, the microcontroller further includes a step of sending a first OFF signal to the control switch after the first predetermined time has elapsed if it is determined that no external power source has been turned on to the communication interface within a first predetermined time after sending a first ON signal to the control switch, and a step of the control switch being turned off by the first OFF signal, thereby interrupting the power supply connection path between the power source and the data transmission module. In one embodiment of the first aspect of the present application, the method further includes a step of sending a second ON signal to the control switch when the external power detection block detects that the external power source is disconnected from the communication interface and that no external power is applied to the communication interface after the power supply connection path between the power source and the data transmission module is interrupted, and simultaneously, a step of the microcontroller sending a first ON signal to the control switch at a second predetermined time after the external power source is disconnected from the communication interface. In one embodiment of the first aspect of the present application, the method further includes the microcontroller sending a first OFF signal to the control switch after the second predetermined time has elapsed. In one embodiment of the first aspect of the present application, the data transmission module transmitting encoded stream media data to the display means includes the data transmission module transmitting to the display means the encoded stream media data and a data transmission command for instructing the display means to process and display the stream media data. In one embodiment of the first aspect of the present application, the data transmission module sending the encoded stream media data and the data transmission command to the display means includes, after receiving a start command input by a user, the data transmission module sending the encoded stream media data and the data transmission command to the display means. In one embodiment of the first aspect of the present application, after receiving a stop command input by a user, the data transmission module further includes sending a stop transmission command to the display means to instruct the display means to stop transmitting the encoded stream media data to the display means and not display the stream media data. In one embodiment of the first aspect of the present application, when the external power detection block detects a disconnection of the external power source from the communication interface, the data transmission module further includes sending a stop transmission command to the display means to instruct the display means to stop transmitting the encoded stream media data to the display means and not to display the stream media data. According to a second aspect of the present application, there is provided a data transmission method applied to a data transmission device, the data transmission device including a power source, a microcontroller, a communication interface, a vibration sensor, a control switch, and a data transmission module, the control switch being connected between the power source and the data transmission module, the communication interface being for receiving data and transmitting the received data to the data transmission module, the vibration sensor being for generating detection data according to a moving state of the data transmission device, the data transmission module being for performing data communication with a display means, and the microcontroller being for controlling on / off of the control switch based on an interrupt signal transmitted from the vibration sensor, The data transmission method includes the vibration sensor generating detection data including an acceleration value of the vibration sensor according to a movement state of the data transmission device, the vibration sensor transmitting an interrupt signal to the microcontroller when it is determined that the acceleration value of the vibration sensor exceeds a predetermined acceleration threshold, the microcontroller transmitting a first ON signal to the control switch after receiving the interrupt signal, the control switch being turned on by the first ON signal to conduct a power supply connection path between the power source and the data transmission module, and the data transmission module executing communication settings including communication settings of the communication interface and / or communication settings for data communication between the data transmission module and the display means. In one embodiment of the second aspect of the present application, the method further includes: after an electronic device is connected to the communication interface, the data transmission module receives stream media data from the communication interface and encodes the stream media data; and the data transmission module transmits the encoded stream media data to the display means. In one embodiment of the second aspect of the present application, the data transmission device further includes an external power detection block for detecting whether or not an external power source is applied to the communication interface, and the method further includes, when the external power detection block detects that an external power source is not applied to the communication interface, sending a second ON signal to the control switch, and the control switch being turned on by the first ON signal and conducting the power supply connection path between the power source and the data transmission module, and the control switch being turned on by the first ON signal and conducting the power supply connection path between the power source and the data transmission module includes the control switch being turned on by the first ON signal and the second ON signal and conducting the power supply connection path between the power source and the data transmission module. In one embodiment of the second aspect of the present application, the method further includes a step of sending a second OFF signal to the control switch when the external power detection block detects that an external power source is turned on to the communication interface after the power supply connection path between the power source and the data transmission module is conductive, and a step of the control switch being turned off by the second OFF signal, thereby cutting off the power supply connection path between the power source and the data transmission module. In one embodiment of the second aspect of the present application, after the power supply connection path between the power source and the data transmission module is made conductive, the microcontroller further includes a step of sending a first OFF signal to the control switch after the first predetermined time has elapsed if it is determined that no external power source has been turned on to the communication interface within a first predetermined time after sending a first ON signal to the control switch, and a step of the control switch being turned off by the first OFF signal, thereby interrupting the power supply connection path between the power source and the data transmission module. In one embodiment of the second aspect of the present application, the method further includes a step of sending a second ON signal to the control switch when the external power detection block detects that the external power source is disconnected from the communication interface and that no external power is applied to the communication interface after the power supply connection path between the power source and the data transmission module is interrupted, and simultaneously, a step of the microcontroller sending a first ON signal to the control switch at a second predetermined time after the external power source is disconnected from the communication interface. In one embodiment of the second aspect of the present application, the method further includes the microcontroller sending a first OFF signal to the control switch after the second predetermined time has elapsed. In one embodiment of the second aspect of the present application, the data transmission module transmitting the encoded stream media data to the display means includes the data transmission module transmitting the encoded stream media data and a data transmission command to the display means for instructing the display means to process and display the stream media data. In one embodiment of the second aspect of the present application, the data transmission module sending the encoded stream media data and the data transmission command to the display means includes, after receiving a start command input by a user, the data transmission module sending the encoded stream media data and the data transmission command to the display means. In one embodiment of the second aspect of the present application, after receiving a stop command input by a user, the data transmission module further includes sending a stop transmission command to the display means to instruct the display means to stop transmitting the encoded stream media data to the display means and not display the stream media data. In one embodiment of the second aspect of the present application, when the external power detection block detects a disconnection of the external power source from the communication interface, the data transmission module further includes sending a stop transmission command to the display means to instruct the display means to stop transmitting the encoded stream media data to the display means and not to display the stream media data. According to a third aspect of the present application, there is provided a data transmission device including a power supply, a microcontroller, a communication interface, a vibration sensor, a control switch, and a data transmission module, wherein the control switch is connected between the power supply and the data transmission module, the communication interface is for receiving data and transmitting the received data to the data transmission module, the vibration sensor is for generating detection data including an acceleration value of the vibration sensor itself according to a movement status of the data transmission device, the data transmission module is for performing data communication with a display means, and the microcontroller is for controlling the on / off of the control switch based on the detection data generated by the vibration sensor and a predetermined acceleration threshold. In one embodiment of the third aspect of the present application, when the control switch is turned on to conduct a power supply connection path between the power source and the data transmission module, the data transmission module is further used to perform communication settings, where the communication settings include communication settings of the communication interface and / or communication settings for data communication between the data transmission module and the display means. In an embodiment of the third aspect of the present application, the data transmission module is further used for receiving stream media data from the communication interface after an electronic device is connected to the communication interface, encoding the stream media data, and sending the encoded stream media data to the display means. In one embodiment of the third aspect of the present application, the power supply further includes an external power detection module connected to the communication interface and the control switch, and the external power detection module is used to detect whether or not an external power supply is applied to the communication interface. In one embodiment of the third aspect of the present application, the external power supply detection module includes a first triode having a base connected to the communication interface, an emitter grounded, and a collector connected to the power supply, and when the base of the first triode is connected to an external power supply, the collector sends a second OFF signal to turn off the control switch, and when an external power supply is not connected to the base of the first triode, the collector sends a second ON signal to turn on the control switch. In one embodiment of the third aspect of the present application, the external power detection module and the microcontroller cooperatively control the on / off of the control switch, and the control switch is turned on when it receives an ON signal from the external power detection module and an ON signal from the microcontroller, and is turned off when it receives either an OFF signal from the external power detection module or an OFF signal from the microcontroller. In one embodiment of the third aspect of the present application, the power supply further includes a logic gate circuit, which controls the control switch to be turned on or off based on instruction signals from the external power detection module and the microcontroller. In one embodiment of the third aspect of the present application, the control switch includes a field effect transistor having a gate connected to an output end of the logic gate circuit, and the field effect transistor has a source connected to the power supply and a drain connected to the data transmission module, or has a drain connected to the power supply and a source connected to the data transmission module. In one embodiment of the third aspect of the present application, the logic gate circuit includes a logical AND gate circuit, the microcontroller is specifically used for sending a first ON signal to a first input terminal of the logical AND gate circuit, the external power detection module is used for causing the collector of the first triode to send a second ON signal to a second input terminal of the logical AND gate circuit when the base of the first triode is not connected to an external power supply, and the logical AND gate circuit is used for outputting a control signal to the gate of the field effect transistor based on the first ON signal and the second ON signal, and controlling the source and drain of the field effect transistor to be turned on by the gate of the field effect transistor. In one embodiment of the third aspect of the present application, the semiconductor device further includes a second triode having a base connected to the microcontroller, a collector connected to the power supply and also connected to the first input terminal of the AND gate circuit, and an emitter grounded. In one embodiment of the third aspect of the present application, the input terminal of the AND gate circuit is connected to the output terminal of the AND gate circuit, the collector of the AND gate circuit is connected to the power supply and also to the gate of the field effect transistor, and the emitter of the field effect transistor is grounded. In one embodiment of the third aspect of the present application, the external power detection module is used for, when the base of the first triode is connected to the external power supply, the collector of the first triode sends a second OFF signal to the second input end of the AND gate circuit, and the AND gate circuit is used for outputting a control signal to the gate of the field effect transistor based on the second OFF signal, and controlling the source and drain of the field effect transistor to be turned off by the gate of the field effect transistor. In one embodiment of the third aspect of the present application, the external power detection module is further connected to the microcontroller, and the microcontroller is used to determine whether or not an external power supply is applied to the communication interface via the external power detection module. In one embodiment of the third aspect of the present application, the external power detection module includes a first resistor, a second resistor, and a fourth resistor, wherein the first resistor has a first end connected to the communication interface, a second end connected to a first end of the second resistor, a second end of the second resistor connected to the microcontroller, and the second end of the first resistor is further connected to ground via the fourth resistor. In one embodiment of the third aspect of the present application, the microcontroller is specifically used for, when the external power detection module determines that no external power is applied to the communication interface for a first predetermined time after the power supply connection path between the power source and the data transmission module is conductive, sending a first OFF signal to the control switch after the first predetermined time has elapsed, and the control switch is turned off by the first OFF signal. In one embodiment of the third aspect of the present application, the microcontroller is specifically used for sending a first ON signal to the control switch at a second predetermined time after the external power supply is disconnected from the communication interface when the external power supply detection module detects that the external power supply is connected to the communication interface and then disconnected from the communication interface. In one embodiment of the third aspect of the present application, the microcontroller is specifically adapted to send a first OFF signal to the control switch after the second predetermined time has elapsed. In one embodiment of the third aspect of the present application, the data transmission module is specifically used for sending encoded stream media data and a data transmission command to the display means, for instructing the display means to process and display the stream media data. In one embodiment of the third aspect of the present application, the data transmission module is specifically used for transmitting the encoded stream media data and the data transmission command to the display means after receiving a start command input by a user. In one embodiment of the third aspect of the present application, the data transmission module is specifically used for stopping transmission of encoded stream media data to the display means after receiving a stop command input by a user, and sending a stop transmission command to the display means. In one embodiment of the third aspect of the present application, the device further includes a push button connected to the data transmission module, the push button being used to send the start command to the data transmission module when a pressing action by a user is detected. In one embodiment of the third aspect of the present application, the push button is used to send a stop command to the data transmission module when a pressing action by a user is detected after the start command is sent. In one embodiment of the third aspect of the present application, the external power detection module is further connected to the data transmission module, and the data transmission module is used to determine whether or not an external power supply is applied to the communication interface via the external power detection module. In one embodiment of the third aspect of the present application, the external power detection module further includes a first resistor, a third resistor, and a fourth resistor, wherein the first resistor has a first end connected to the communication interface, a second end connected to a first end of the third resistor, a second end of the third resistor connected to the data transmission module, and the second end of the first resistor is further grounded via the fourth resistor. In one embodiment of the third aspect of the present application, the data transmission module is specifically used for stopping transmission of encoded stream media data to the display means and sending a stop transmission command to the display means when a disconnection of external power is detected from the communication interface. In one embodiment of the third aspect of the present application, an external power supply detection module is connected to the microcontroller, and the microcontroller is connected to the data transmission module, and when the external power supply detection module determines whether or not an external power supply is applied to the communication interface, the microcontroller transmits a determination result regarding whether or not an external power supply is applied to the communication interface to the data transmission module. In one embodiment of the third aspect of the present application, an external power supply detection module is connected to the data transmission module, and the data transmission module is connected to the microcontroller, and when the external power supply detection module determines whether or not an external power supply is applied to the communication interface, the data transmission module transmits a determination result regarding whether or not an external power supply is applied to the communication interface to the microcontroller. In one embodiment of the third aspect of the present application, the power supply includes a power management module and a battery, the battery is connected to the power management module, the power management module is further connected to the communication interface, the microcontroller and the control switch, respectively, and the power management module is used to manage the charging and discharging of the battery. In one embodiment of the third aspect of the present application, the power management module includes a charging management module and a power chip module, the charging management module is respectively connected to the communication interface, the power chip module, the battery and the control switch, the power chip module is further connected to the microcontroller, the charging management module is used to manage the charging and discharging of the battery, and the power chip module is further used to perform power supply to the microcontroller. According to a fourth aspect of the present application, there is provided a data transmission device including a power supply, a microcontroller, a communication interface, a vibration sensor, a control switch, and a data transmission module, wherein the control switch is connected between the power supply and the data transmission module, the communication interface is for receiving data and transmitting the received data to the data transmission module, the vibration sensor is for generating detection data including an acceleration value of the vibration sensor itself according to a moving state of the data transmission device, and sends an interrupt signal to the microcontroller based on the acceleration value of the vibration sensor itself and a predetermined acceleration threshold, the data transmission module is for performing data communication with a display means, and the microcontroller is for controlling the on / off of the control switch based on the interrupt signal sent from the vibration sensor. In one embodiment of the fourth aspect of the present application, when the control switch is turned on to conduct a power supply connection path between the power source and the data transmission module, the data transmission module is further used to perform communication settings, where the communication settings include communication settings of the communication interface and / or communication settings for data communication between the data transmission module and the display means. In an embodiment of the fourth aspect of the present application, the data transmission module is further used for receiving stream media data from the communication interface after an electronic device is connected to the communication interface, encoding the stream media data, and sending the encoded stream media data to the display means. In one embodiment of the fourth aspect of the present application, the power supply further includes an external power detection module connected to the communication interface and the control switch, and the external power detection module is used to detect whether or not an external power supply is applied to the communication interface. In one embodiment of the fourth aspect of the present application, the external power supply detection module includes a first triode having a base connected to the communication interface, an emitter grounded, and a collector connected to the power supply, and when the base of the first triode is connected to an external power supply, the collector sends a second OFF signal to turn off the control switch, and when an external power supply is not connected to the base of the first triode, the collector sends a second ON signal to turn on the control switch. In one embodiment of the fourth aspect of the present application, the external power detection module and the microcontroller cooperatively control the on / off of the control switch, and the control switch is turned on when it receives an ON signal from the external power detection module and an ON signal from the microcontroller, and is turned off when it receives either an OFF signal from the external power detection module or an OFF signal from the microcontroller. In one embodiment of the fourth aspect of the present application, the power supply further includes a logic gate circuit, which controls the control switch to be turned on or off based on instruction signals from the external power detection module and the microcontroller. In one embodiment of the fourth aspect of the present application, the control switch includes a field effect transistor having a gate connected to an output terminal of the logic gate circuit, and the field effect transistor has a source connected to the power supply and a drain connected to the data transmission module, or has a drain connected to the power supply and a source connected to the data transmission module. In one embodiment of the fourth aspect of the present application, the logic gate circuit includes a logical AND gate circuit, the microcontroller is specifically used for sending a first ON signal to a first input terminal of the logical AND gate circuit, the external power detection module is used for causing the collector of the first triode to send a second ON signal to the second input terminal of the logical AND gate circuit when the base of the first triode is not connected to an external power supply, and the logical AND gate circuit is used for outputting a control signal to the gate of the field effect transistor based on the first ON signal and the second ON signal, and controlling the source and drain of the field effect transistor to be turned on by the gate of the field effect transistor. In one embodiment of the fourth aspect of the present application, the semiconductor device further includes a second triode having a base connected to the microcontroller, a collector connected to the power supply and also connected to the first input terminal of the AND gate circuit, and an emitter grounded. In one embodiment of the fourth aspect of the present application, the input terminal of the AND gate circuit is connected to the output terminal of the AND gate circuit, the collector of the AND gate circuit is connected to the power supply and also to the gate of the field effect transistor, and the emitter of the field effect transistor is grounded. In an embodiment of the fourth aspect of the present application, the external power detection module is specifically used for, when the base of a first triode is connected to an external power supply, the collector of the first triode sends a second OFF signal to the second input end of the AND gate circuit, and the AND gate circuit is used for outputting a control signal to the gate of the field effect transistor based on the second OFF signal, and controlling the source and drain of the field effect transistor to be turned off by the gate of the field effect transistor. In one embodiment of the fourth aspect of the present application, the external power detection module is further connected to the microcontroller, and the microcontroller is used to determine whether or not an external power supply is applied to the communication interface via the external power detection module. In one embodiment of the fourth aspect of the present application, the external power detection module includes a first resistor, a second resistor, and a fourth resistor, wherein the first resistor has a first end connected to the communication interface, a second end connected to a first end of the second resistor, a second end of the second resistor connected to the microcontroller, and the second end of the first resistor is further connected to ground via the fourth resistor. In one embodiment of the fourth aspect of the present application, the microcontroller is specifically used for, when the external power detection module determines that no external power is applied to the communication interface for a first predetermined time after the power supply connection path between the power source and the data transmission module is conductive, sending a first OFF signal to the control switch after the first predetermined time has elapsed, and the control switch is turned off by the first OFF signal. In one embodiment of the fourth aspect of the present application, the microcontroller is specifically used for sending a first ON signal to the control switch at a second predetermined time after the external power supply is disconnected from the communication interface when the external power supply detection module detects that the external power supply is connected to the communication interface and then disconnected from the communication interface. In one embodiment of the fourth aspect of the present application, the microcontroller is specifically adapted to send a first OFF signal to the control switch after the second predetermined time has elapsed. In one embodiment of the fourth aspect of the present application, the data transmission module is specifically used for sending encoded stream media data and a data transmission command to the display means, for instructing the display means to process and display the stream media data. In one embodiment of the fourth aspect of the present application, the data transmission module is specifically used for transmitting the encoded stream media data and the data transmission command to the display means after receiving a start command input by a user. In one embodiment of the fourth aspect of the present application, the data transmission module is specifically used for stopping transmission of encoded stream media data to the display means after receiving a stop command input by a user, and sending a stop transmission command to the display means. In one embodiment of the fourth aspect of the present application, the device further includes a push button connected to the data transmission module, the push button being used to send the start command to the data transmission module when a pressing action by a user is detected. In one embodiment of the fourth aspect of the present application, the push button is used to send a stop command to the data transmission module when a pressing action by a user is detected after the start command is sent. In one embodiment of the fourth aspect of the present application, the external power detection module is further connected to the data transmission module, and the data transmission module is used to determine whether or not an external power supply is applied to the communication interface via the external power detection module. In one embodiment of the fourth aspect of the present application, the external power detection module further includes a first resistor, a third resistor, and a fourth resistor, wherein the first resistor has a first end connected to the communication interface, a second end connected to a first end of the third resistor, a second end of the third resistor connected to the data transmission module, and the second end of the first resistor is further grounded via the fourth resistor. In one embodiment of the fourth aspect of the present application, the data transmission module is specifically used for stopping transmission of encoded stream media data to the display means and sending a stop transmission command to the display means when a disconnection of external power is detected from the communication interface. In one embodiment of the fourth aspect of the present application, an external power supply detection module is connected to the microcontroller, and the microcontroller is connected to the data transmission module, and when the external power supply detection module determines whether or not an external power supply is applied to the communication interface, the microcontroller transmits a determination result regarding whether or not an external power supply is applied to the communication interface to the data transmission module. In one embodiment of the fourth aspect of the present application, an external power supply detection module is connected to the data transmission module, and the data transmission module is connected to the microcontroller, and when the external power supply detection module determines whether or not an external power supply is applied to the communication interface, the data transmission module transmits a determination result regarding whether or not an external power supply is applied to the communication interface to the microcontroller. In one embodiment of the fourth aspect of the present application, the power supply includes a power management module and a battery, the battery is connected to the power management module, the power management module is further connected to the communication interface, the microcontroller and the control switch, respectively, and the power management module is used to manage the charging and discharging of the battery. In one embodiment of the fourth aspect of the present application, the power management module includes a charging management module and a power chip module, the charging management module is respectively connected to the communication interface, the power chip module, the battery and the control switch, the power chip module is further connected to the microcontroller, the charging management module is used to manage the charging and discharging of the battery, and the power chip module is further used to perform power supply to the microcontroller. According to a fifth aspect of the present application, there is provided a data transmission device including a power interface, a microcontroller, a communication interface, a vibration sensor, a control switch, and a data transmission module, wherein the power interface is for connecting to a power source, the control switch is connected between the power interface and the data transmission module, the communication interface is for receiving data and transmitting the received data to the data transmission module, the vibration sensor is for generating detection data including an acceleration value of the vibration sensor itself according to a moving state of the data transmission device, the data transmission module is for performing data communication with a display means, and the microcontroller is for controlling the on / off of the control switch based on the detection data generated by the vibration sensor and a predetermined acceleration threshold. In one embodiment of the fifth aspect of the present application, when the control switch is turned on to conduct a power supply connection path between the power source and the data transmission module, the data transmission module is further used to perform communication settings, where the communication settings include communication settings of the communication interface and / or communication settings for data communication between the data transmission module and the display means. In an embodiment of the fifth aspect of the present application, the data transmission module is further used for receiving stream media data from the communication interface after an electronic device is connected to the communication interface, encoding the stream media data, and sending the encoded stream media data to the display means. In one embodiment of the fifth aspect of the present application, the device further includes an external power detection module connected to the communication interface and the control switch, and the external power detection module is used to detect whether or not an external power supply is applied to the communication interface. In one embodiment of the fifth aspect of the present application, the external power supply detection module includes a first triode having a base connected to the communication interface, an emitter grounded, and a collector connected to the power supply, and when the base of the first triode is connected to an external power supply, the collector sends a second OFF signal to turn off the control switch, and when an external power supply is not connected to the base of the first triode, the collector sends a second ON signal to turn on the control switch. In one embodiment of the fifth aspect of the present application, the external power detection module and the microcontroller cooperatively control the on / off of the control switch, and the control switch is turned on when it receives an ON signal from the external power detection module and an ON signal from the microcontroller, and is turned off when it receives either an OFF signal from the external power detection module or an OFF signal from the microcontroller. In one embodiment of the fifth aspect of the present application, the power supply further includes a logic gate circuit, which controls the control switch to be turned on or off based on instruction signals from the external power detection module and the microcontroller. In one embodiment of the fifth aspect of the present application, the control switch includes a field effect transistor having a gate connected to an output terminal of the logic gate circuit, and the field effect transistor having a source connected to the power supply and a drain connected to the data transmission module, or having a drain connected to the power supply and a source connected to the data transmission module. In an embodiment of the fifth aspect of the present application, the logic gate circuit includes a logical AND gate circuit, the microcontroller is specifically used for sending a first ON signal to a first input terminal of the logical AND gate circuit, the external power detection module is specifically used for causing the collector of the first triode to send a second ON signal to a second input terminal of the logical AND gate circuit when the base of the first triode is not connected to an external power supply, and the logical AND gate circuit is used for outputting a control signal to the gate of the field effect transistor based on the first ON signal and the second ON signal, and controlling the source and drain of the field effect transistor to be turned on by the gate of the field effect transistor. In one embodiment of the fifth aspect of the present application, the input terminal of the first triode is connected to the microcontroller, the collector is connected to the power supply and also to the first input terminal of the AND gate circuit, and the emitter is grounded. In one embodiment of the fifth aspect of the present application, the input terminal of the AND gate circuit is connected to the output terminal of the AND gate circuit, the collector of the AND gate circuit is connected to the power supply, and the gate of the field effect transistor is also connected to the output terminal of the AND gate circuit, and the emitter of the field effect transistor is grounded. In an embodiment of the fifth aspect of the present application, the external power detection module is specifically used for, when the base of a first triode is connected to an external power supply, the collector of the first triode sends a second OFF signal to the second input end of the AND gate circuit, and the AND gate circuit is used for outputting a control signal to the gate of the field effect transistor based on the second OFF signal, and controlling the source and drain of the field effect transistor to be turned off by the gate of the field effect transistor. In one embodiment of the fifth aspect of the present application, the external power detection module is further connected to the microcontroller, and the microcontroller is used to determine whether or not an external power supply is applied to the communication interface via the external power detection module. In one embodiment of the fifth aspect of the present application, the external power detection module includes a first resistor, a second resistor, and a fourth resistor, wherein the first resistor has a first end connected to the communication interface, a second end connected to a first end of the second resistor, a second end of the second resistor connected to the microcontroller, and the second end of the first resistor is further grounded via the fourth resistor. In one embodiment of the fifth aspect of the present application, the microcontroller is specifically used for, when the external power detection module determines that no external power is applied to the communication interface for a first predetermined time after the power supply connection path between the power source and the data transmission module is conductive, sending a first OFF signal to the control switch after the first predetermined time has elapsed, and the control switch is turned off by the first OFF signal. In one embodiment of the fifth aspect of the present application, the microcontroller is specifically used for sending a first ON signal to the control switch at a second predetermined time after the external power supply is disconnected from the communication interface when the external power supply detection module detects that the external power supply is connected to the communication interface and then disconnected from the communication interface. In one embodiment of the fifth aspect of the present application, the microcontroller is specifically adapted to send a first OFF signal to the control switch after the second predetermined time has elapsed. In one embodiment of the fifth aspect of the present application, the data transmission module is specifically used for sending encoded stream media data and a data transmission command to the display means, for instructing the display means to process and display the stream media data. In one embodiment of the fifth aspect of the present application, the data transmission module is specifically used for transmitting the encoded stream media data and the data transmission command to the display means after receiving a start command input by a user. In one embodiment of the fifth aspect of the present application, the data transmission module is specifically used for stopping transmission of encoded stream media data to the display means after receiving a stop command input by a user, and sending a stop transmission command to the display means. In one embodiment of the fifth aspect of the present application, the device further includes a push button connected to the data transmission module, the push button being used to send the start command to the data transmission module when a pressing action by a user is detected. In one embodiment of the fifth aspect of the present application, the push button is used to send a stop command to the data transmission module when a pressing action by a user is detected after the start command is sent. In one embodiment of the fifth aspect of the present application, the external power detection module is further connected to the data transmission module, and the data transmission module is used to determine whether or not an external power supply is applied to the communication interface via the external power detection module. In one embodiment of the fifth aspect of the present application, the external power detection module further includes a first resistor, a third resistor, and a fourth resistor, wherein the first resistor has a first end connected to the communication interface, a second end connected to a first end of the third resistor, a second end of the third resistor connected to the data transmission module, and the second end of the first resistor is further grounded via the fourth resistor. In one embodiment of the fifth aspect of the present application, the data transmission module is specifically used for stopping transmission of encoded stream media data to the display means and sending a stop transmission command to the display means when a disconnection of external power is detected from the communication interface. In one embodiment of the fifth aspect of the present application, an external power supply detection module is connected to the microcontroller, and the microcontroller is connected to the data transmission module, and when the external power supply detection module determines whether or not an external power supply is applied to the communication interface, the microcontroller transmits a determination result regarding whether or not an external power supply is applied to the communication interface to the data transmission module. In one embodiment of the fifth aspect of the present application, an external power supply detection module is connected to the data transmission module, and the data transmission module is connected to the microcontroller, and when the external power supply detection module determines whether or not an external power supply is applied to the communication interface, the data transmission module transmits a determination result regarding whether or not an external power supply is applied to the communication interface to the microcontroller. According to a sixth aspect of the present application, there is provided a data transmission device including a power interface, a microcontroller, a communication interface, a vibration sensor, a control switch, and a data transmission module, wherein the power interface is for connecting to a power source, the control switch is connected between the power interface and the data transmission module, the communication interface is for receiving data and transmitting the received data to the data transmission module, the vibration sensor is for generating detection data including an acceleration value of the vibration sensor itself according to a moving state of the data transmission device, and transmits an interrupt signal to the microcontroller based on the acceleration value of the vibration sensor itself and a predetermined acceleration threshold, the data transmission module is for performing data communication with a display means, and the microcontroller is for controlling the on / off of the control switch based on the interrupt signal transmitted from the vibration sensor. In one embodiment of the sixth aspect of the present application, when the control switch is turned on to conduct a power supply connection path between the power source and the data transmission module, the data transmission module is further used to perform communication settings, where the communication settings include communication settings of the communication interface and / or communication settings for data communication between the data transmission module and the display means. In an embodiment of the sixth aspect of the present application, the data transmission module is further used for receiving stream media data from the communication interface after an electronic device is connected to the communication interface, encoding the stream media data, and sending the encoded stream media data to the display means. In one embodiment of the sixth aspect of the present application, the present invention further includes an external power detection module connected to the communication interface and the control switch, and the external power detection module is used to detect whether or not an external power supply is applied to the communication interface. In one embodiment of the sixth aspect of the present application, the external power supply detection module includes a first triode having a base connected to the communication interface, an emitter grounded, and a collector connected to the power supply, and when the base of the first triode is connected to an external power supply, the collector sends a second OFF signal to turn off the control switch, and when an external power supply is not connected to the base of the first triode, the collector sends a second ON signal to turn on the control switch. In one embodiment of the sixth aspect of the present application, the external power detection module and the microcontroller cooperatively control the on / off of the control switch, and the control switch is turned on when it receives an ON signal from the external power detection module and an ON signal from the microcontroller, and is turned off when it receives either an OFF signal from the external power detection module or an OFF signal from the microcontroller. In one embodiment of the sixth aspect of the present application, the power supply further includes a logic gate circuit, which controls the control switch to be turned on or off based on instruction signals from the external power detection module and the microcontroller. In one embodiment of the sixth aspect of the present application, the control switch includes a field effect transistor having a gate connected to an output terminal of the logic gate circuit, and the field effect transistor has a source connected to the power supply and a drain connected to the data transmission module, or has a drain connected to the power supply and a source connected to the data transmission module. In an embodiment of the sixth aspect of the present application, the logic gate circuit includes a logical AND gate circuit, the microcontroller is specifically used for sending a first ON signal to a first input terminal of the logical AND gate circuit, the external power detection module is specifically used for causing the collector of the first triode to send a second ON signal to a second input terminal of the logical AND gate circuit when the base of the first triode is not connected to an external power supply, and the logical AND gate circuit is used for outputting a control signal to the gate of the field effect transistor based on the first ON signal and the second ON signal, and controlling the source and drain of the field effect transistor to be turned on by the gate of the field effect transistor. In one embodiment of the sixth aspect of the present application, the semiconductor device further includes a second triode having a base connected to the microcontroller, a collector connected to the power supply and also connected to the first input terminal of the AND gate circuit, and an emitter grounded. In one embodiment of the sixth aspect of the present application, the input terminal of the AND gate circuit is connected to the output terminal of the AND gate circuit, the collector of the AND gate circuit is connected to the power supply, and the gate of the field effect transistor is also connected to the output terminal of the AND gate circuit, and the emitter of the field effect transistor is grounded. In an embodiment of the sixth aspect of the present application, the external power detection module is specifically used for, when the base of a first triode is connected to an external power supply, the collector of the first triode sends a second OFF signal to the second input end of the AND gate circuit, and the AND gate circuit is used for outputting a control signal to the gate of the field effect transistor based on the second OFF signal, and controlling the source and drain of the field effect transistor to be turned off by the gate of the field effect transistor. In one embodiment of the sixth aspect of the present application, the external power detection module is further connected to the microcontroller, and the microcontroller is used to determine whether or not external power is applied to the communication interface via the external power detection module. In one embodiment of the sixth aspect of the present application, the external power detection module includes a first resistor, a second resistor, and a fourth resistor, wherein the first resistor has a first end connected to the communication interface, a second end connected to a first end of the second resistor, a second end of the second resistor connected to the microcontroller, and the second end of the first resistor is further grounded via the fourth resistor. In one embodiment of the sixth aspect of the present application, the microcontroller is specifically used for, when the external power detection module determines that no external power is applied to the communication interface for a first predetermined time after the power supply connection path between the power source and the data transmission module is conductive, sending a first OFF signal to the control switch after the first predetermined time has elapsed, and the control switch is turned off by the first OFF signal. In one embodiment of the sixth aspect of the present application, the microcontroller is specifically used for sending a first ON signal to the control switch at a second predetermined time after the external power supply is disconnected from the communication interface when the external power supply detection module detects that the external power supply is connected to the communication interface and then disconnected from the communication interface. In one embodiment of the sixth aspect of the present application, the microcontroller is specifically adapted to send a first OFF signal to the control switch after the second predetermined time has elapsed. In one embodiment of the sixth aspect of the present application, the data transmission module is specifically used for sending encoded stream media data and a data transmission command to the display means, for instructing the display means to process and display the stream media data. In one embodiment of the sixth aspect of the present application, the data transmission module is specifically used for transmitting the encoded stream media data and the data transmission command to the display means after receiving a start command input by a user. In one embodiment of the sixth aspect of the present application, the data transmission module is specifically used for stopping transmission of encoded stream media data to the display means after receiving a stop command input by a user, and sending a stop transmission command to the display means. In one embodiment of the sixth aspect of the present application, the device further includes a push button connected to the data transmission module, the push button being used to send the start command to the data transmission module when a pressing action by a user is detected. In one embodiment of the sixth aspect of the present application, the push button is used to send a stop command to the data transmission module when a pressing action by a user is detected after the start command is sent. In one embodiment of the sixth aspect of the present application, the external power detection module is further connected to the data transmission module, and the data transmission module is used to determine whether or not an external power supply is applied to the communication interface via the external power detection module. In one embodiment of the sixth aspect of the present application, the external power detection module further includes a first resistor, a third resistor, and a fourth resistor, wherein the first resistor has a first end connected to the communication interface, a second end connected to a first end of the third resistor, a second end of the third resistor connected to the data transmission module, and the second end of the first resistor is further grounded via the fourth resistor. In one embodiment of the sixth aspect of the present application, the data transmission module is specifically used for stopping transmission of encoded stream media data to the display means and sending a stop transmission command to the display means when a disconnection of external power is detected from the communication interface. In one embodiment of the sixth aspect of the present application, an external power supply detection module is connected to the microcontroller, and the microcontroller is connected to the data transmission module, and when the external power supply detection module determines whether or not an external power supply is applied to the communication interface, the microcontroller transmits a determination result regarding whether or not an external power supply is applied to the communication interface to the data transmission module. In one embodiment of the sixth aspect of the present application, an external power supply detection module is connected to the data transmission module, and the data transmission module is connected to the microcontroller, and when the external power supply detection module determines whether or not an external power supply is applied to the communication interface, the data transmission module transmits a determination result regarding whether or not an external power supply is applied to the communication interface to the microcontroller. According to a seventh aspect of the present application, there is provided a data transmission method applicable to a data transmission device, the data transmission method including: acquiring detection data generated by a vibration sensor for generating detection data according to a movement state of the data transmission device, the detection data including an acceleration value of the vibration sensor itself; and, when it is determined that the acceleration value of the vibration sensor itself exceeds a predetermined acceleration threshold, controlling a power supply of the data transmission device to supply power to a data transmission module for performing data communication with a display means. In one embodiment of the seventh aspect of the present application, after a power supply of the data transmission device is controlled to supply power to a data transmission module, after it is determined that an electronic device is connected to a communication interface of the data transmission device, the method further includes receiving stream media data from the communication interface, encoding the stream media data, and then transmitting the encoded stream media data to a display means. In one embodiment of the seventh aspect of the present application, when it is determined that the vibration sensor's own acceleration value exceeds a predetermined acceleration threshold, controlling the power supply of the data transmission device to supply power to the data transmission module includes, when it is determined that the vibration sensor's own acceleration value exceeds the acceleration threshold and it is determined that no external power supply is applied to the communication interface, controlling the power supply of the data transmission device to supply power to the data transmission module. In one embodiment of the seventh aspect of the present application, the method further includes controlling a power supply of the data transmission device to stop supplying power to the data transmission module when it is determined that an external power supply is turned on to the communication interface after the power supply of the data transmission device has been controlled to supply power to the data transmission module. In one embodiment of the seventh aspect of the present application, after a power supply of the data transmission device is controlled to supply power to a data transmission module, if it is determined that no external power supply has been applied to the communication interface within a first predetermined time after the power supply of the data transmission device is controlled to supply power to the data transmission module, the power supply is controlled to stop supplying power to the data transmission module after the first predetermined time has elapsed. In one embodiment of the seventh aspect of the present application, after the power supply of the data transmission device has been controlled to supply power to the data transmission module, if an external power supply is applied to the communication interface and then determined to have been disconnected from the communication interface of the data transmission device, the method further includes maintaining power supply from the power supply of the data transmission device to the data transmission module for a second predetermined time after the external power supply is disconnected from the communication interface. In one embodiment of the seventh aspect of the present application, the method further includes controlling the power source to stop supplying power to the data transmission module after the second predetermined time has elapsed. In one embodiment of the seventh aspect of the present application, transmitting the encoded stream media data to the display means includes transmitting the encoded stream media data and a data transmission command to the display means for instructing the display means to process and display the stream media data. In one embodiment of the seventh aspect of the present application, sending the encoded streaming media data and the data transmission command to the display means includes sending the encoded streaming media data and the data transmission command to the display means after receiving a start command input by a user. In one embodiment of the seventh aspect of the present application, after receiving a stop command input by a user, the method further includes sending a stop transmission command to the display means to instruct the display means to stop transmitting the encoded stream media data to the display means and not display the stream media data. In one embodiment of the seventh aspect of the present application, when disconnection of external power supply is detected from the communication interface, the method further includes stopping transmission of encoded stream media data to the display means and sending a stop transmission command to the display means to instruct the display means not to display the stream media data. According to an eighth aspect of the present application, there is provided a data transmission method applicable to a data transmission device, the data transmission method including: acquiring an interrupt signal generated by a vibration sensor for generating an interrupt signal based on the detection data generated according to a movement state of the data transmission device; and, when it is determined that the interrupt signal has been received, controlling a power supply of the data transmission device to supply power to a data transmission module for performing data communication with a display means. In one embodiment of the eighth aspect of the present application, after a power supply of the data transmission device is controlled to supply power to a data transmission module, after it is determined that an electronic device is connected to a communication interface of the data transmission device, the method further includes receiving stream media data from the communication interface, encoding the stream media data, and then sending the encoded stream media data to a display means. In one embodiment of the eighth aspect of the present application, when it is determined that the interrupt signal has been received, controlling the power supply of the data transmission device to supply power to the data transmission module includes, when it is determined that the interrupt signal has been received and it is determined that no external power supply has been applied to the communication interface, controlling the power supply of the data transmission device to supply power to the data transmission module. In one embodiment of the eighth aspect of the present application, the method further includes controlling a power supply of the data transmission device to stop supplying power to the data transmission module when it is determined that an external power supply is turned on to the communication interface after the power supply of the data transmission device has been controlled to supply power to the data transmission module. In one embodiment of the eighth aspect of the present application, the method further includes controlling the power supply to stop supplying power to the data transmission module after the power supply of the data transmission device is controlled to supply power to the data transmission module, and if it is determined that no external power supply is applied to the communication interface within a first predetermined time after the power supply of the data transmission device is controlled to supply power to the data transmission module, after the first predetermined time has elapsed. In one embodiment of the eighth aspect of the present application, after the power supply of the data transmission device has been controlled to supply power to the data transmission module, if an external power supply is applied to the communication interface and then determined to have been disconnected from the communication interface of the data transmission device, the method further includes maintaining power supply from the power supply of the data transmission device to the data transmission module for a second predetermined time after the external power supply is disconnected from the communication interface. In one embodiment of the eighth aspect of the present application, the method further includes controlling the power source to stop supplying power to the data transmission module after the second predetermined time has elapsed. In one embodiment of the eighth aspect of the present application, transmitting the encoded stream media data to the display means includes transmitting the encoded stream media data and a data transmission command to the display means for instructing the display means to process and display the stream media data. In one embodiment of the eighth aspect of the present application, sending the encoded streaming media data and the data transmission command to the display means includes sending the encoded streaming media data and the data transmission command to the display means after receiving a start command input by a user. In one embodiment of the eighth aspect of the present application, after receiving a stop command input by a user, the method further includes sending a stop transmission command to the display means to instruct the display means to stop transmitting the encoded stream media data to the display means and not display the stream media data. In one embodiment of the eighth aspect of the present application, the method further includes, when a disconnection of external power supply is detected from the communication interface, stopping transmission of encoded stream media data to the display means and sending a stop transmission command to the display means to instruct the display means not to display the stream media data. According to a ninth aspect of the present application, there is provided an integrated circuit comprising one or more processors, a memory, and a program, the program being stored in the memory and configured to be executed by the one or more processors, and configured to implement a data transmission method as described in any one of the seventh aspects of the present application. According to a tenth aspect of the present application, there is provided a data transmission method applicable to a data transmission device, the data transmission method including: a microcontroller receiving detection data or an interrupt signal; an external power detection module sending a second ON signal to a logical AND gate circuit for turning on a control switch; the microcontroller sending a first ON signal to the logical AND gate circuit for turning on the control switch; and the logical AND gate circuit sending a control signal to the control switch to turn on the control switch based on the first ON signal and the second ON signal input thereto, so as to conduct a power supply connection path between a power supply of the data transmission device and a data transmission module. In one embodiment of the tenth aspect of the present application, the external power detection module further includes, when detecting that an external power source is turned on, sending a second OFF signal to the logical AND gate circuit for turning off a control switch; the external power detection module sending a signal indicating that an external power source is turned on to the microcontroller; the microcontroller sending a first ON signal to the logical AND gate circuit for turning on the control switch; and the logical AND gate circuit sending a control signal to the control switch to turn off the control switch based on the first ON signal and the second OFF signal input thereto. In one embodiment of the tenth aspect of the present application, the external power supply detection module further includes, when detecting a disconnection of the external power supply, sending a second ON signal to the logical AND gate circuit for turning on a control switch; the external power supply detection module sending a signal indicating that the external power supply is not turned on to the microcontroller; the timer of the microcontroller starting to count based on a predetermined time; and the logical AND gate circuit sending a control signal to the control switch to turn on the control switch based on the second ON signal sent from the external power supply detection module and the first ON signal sent from the microcontroller. In one embodiment of the tenth aspect of the present application, at the predetermined time, when the external power detection module detects that an external power source has been turned on, the external power detection module sends a second OFF signal to the logical AND gate circuit for turning off the control switch, and the logical AND gate circuit sends a control signal to the control switch based on the second OFF signal and a first ON signal sent from the microcontroller to turn off the control switch. In one embodiment of the tenth aspect of the present application, when the external power detection module has not detected the on-board external power supply at the predetermined time, after a timer of the microcontroller finishes timing based on the predetermined time, the microcontroller sends a first OFF signal to the logical AND gate circuit for turning off the control switch, and the logical AND gate circuit sends a control signal to the control switch to turn off the control switch based on the first OFF signal for turning off the control switch sent from the microcontroller and a second ON signal for turning on the control switch sent from the external power detection module. In one embodiment of the tenth aspect of the present application, before the microcontroller receives the detection data or the interrupt signal, the microcontroller is in a first power consumption operating state by being powered by a power source of the data transmission device. In one embodiment of the tenth aspect of the present application, the microcontroller further includes being in a second power consumption working state after receiving the detection data or the interrupt signal. According to an eleventh aspect of the present application, there is provided a data transmission method including: starting power supply from a built-in power source of a data transmission device to a data transmission module based on information transmitted from a sensor; establishing a communication link with a display means; and, if a connection with an electronic device is detected, stopping power supply from the built-in power source of the data transmission device to the data transmission module; receiving data from the electronic device; and transmitting the data to the display means via the established communication link. In one embodiment of the eleventh aspect of the present application, when a disconnection from the electronic device is detected, the method further includes initiating power supply from an internal power source of the data transmission device to the data transmission module to maintain the established communication link. In one embodiment of the eleventh aspect of the present application, when a disconnection from the electronic device is detected, starting power supply from the built-in power supply of the data transmission device to the data transmission module and maintaining the established communication link specifically means, when a disconnection from the electronic device is detected, starting power supply from the built-in power supply of the data transmission device to the data transmission module, maintaining the established communication link, and if no connection with any electronic device is detected after a predetermined time has elapsed, stopping power supply from the built-in power supply of the data transmission device to the data transmission module. In one embodiment of the eleventh aspect of the present application, the data transmission module is a WiFi module.

[0006] In view of the above, the present application provides a data transmission method according to an embodiment, and a data transmission device including a microcontroller, a power supply, and a vibration sensor. When the vibration sensor detects the movement of the data transmission device by the user, the microcontroller controls the power supply to supply power to the data transmission module, and starts the data transmission module before the data transmission device is connected to the electronic device, thereby improving the response speed and operation efficiency of the data transmission device, while reducing the capacity and volume of the power supply since the power supply does not need to constantly supply power to the data transmission module. Furthermore, the data transmission device can achieve both space and efficiency, and can improve the response speed and operation efficiency of the data transmission device during projection without excessive capacity or volume of the power supply of the data transmission device. [Brief description of the drawings]

[0007] [Figure 1] FIG. 1 is a schematic diagram of a scene to which the present application applies. [Diagram 2] FIG. 2 is a schematic diagram of a data transmission device according to one technique. [Diagram 3] FIG. 3 is a schematic diagram showing the configuration of a data transmission device according to another technique. [Figure 4] FIG. 4 is a block diagram illustrating an application scene of a data transmission device according to an embodiment of the present application. [Diagram 5]FIG. 5 is a schematic diagram of the connection relationship between a microcontroller and a vibration sensor according to an embodiment of the present application. [Figure 6] FIG. 6 is a schematic diagram of a vibration sensor according to some embodiments of the present application. [Figure 7] FIG. 7 is a schematic diagram of a microcontroller according to some embodiments of the present application. [Figure 8] FIG. 8 is a flow diagram of a data transmission method according to an embodiment of the present application. [Figure 9] FIG. 9 is a flow diagram of a data transmission method according to an embodiment of the present application. [Figure 10] FIG. 10 is a block schematic diagram of an application scene of a data transmission device according to an embodiment of the present application. [Figure 11] FIG. 11 is a block diagram illustrating an application scene of a data transmission device according to an embodiment of the present application. [Figure 12] FIG. 12 is a schematic diagram of a charge management IC chip and peripheral circuits according to some embodiments of the present application. [Figure 13] FIG. 13 is a schematic diagram of a power chip and peripheral circuits according to some embodiments of the present application. [Figure 14] FIG. 14 is a block schematic diagram of an application scene of a data transmission device according to an embodiment of the present application. [Figure 15] FIG. 15 is a schematic diagram of a control switch and an AND gate circuit related to some embodiments of the present application. [Figure 16] FIG. 16 is a schematic diagram of a partial circuit of an external power supply detection module according to some embodiments of the present application. [Figure 17] FIG. 17 is a schematic flow diagram of a control method for a data transmission device according to an embodiment of the present application. [Figure 18] FIG. 18 is a block schematic diagram of an application scene of a data transmission device according to an embodiment of the present application. [Figure 19] FIG. 19 is a state diagram of a data transmission module according to some embodiments of the present application when the data transmission module performs a control method for a data transmission device. [Figure 20] FIG. 20 is a block schematic diagram of an application scene of a data transmission device according to an embodiment of the present application. [Figure 21] FIG. 21 is a schematic diagram of a partial circuit configuration of an external power supply detection module according to an embodiment of the present application. [Figure 22] FIG. 22 is a state diagram illustrating a microcontroller according to some embodiments of the present application performing a control method for a data transmission device. [Figure 23] FIG. 23 is a block diagram of an application scene of an embodiment of a data transmission device provided by the present application. [Figure 24] FIG. 24 is a block diagram illustrating an application scene of an embodiment of a data transmission device provided by the present application. [Diagram 25] FIG. 25 is a flow diagram of a data transmission method according to an embodiment of the present application. [Figure 26] FIG. 26 is a block schematic diagram of an application scene of a data transmission device according to an embodiment of the present application. [Figure 27] FIG. 27 is a flow diagram of an embodiment of a data transmission method according to the present application. [Figure 28] FIG. 28 is a flow diagram of an embodiment of a data transmission method according to the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0008] Hereinafter, the technical means of the embodiments of the present application will be clearly and completely described with reference to the drawings, but it is obvious that the described embodiments are only a part of the embodiments of the present application, not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of the present application without creative efforts are covered by the protection scope of the present application.

[0009] The terms "first", "second", "third", "fourth", etc. (when present) in the specification, claims and the above-mentioned attached drawings are intended to distinguish between similar objects without describing a particular order or precedence. The data used in this manner should be understood to be interchangeable as appropriate, such that the embodiments of the present application described herein are, for example, performed in an order other than that shown or described herein. It should be noted that the terms "comprise", "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus that includes a series of steps or means is not necessarily limited to only those steps or means expressly recited, but may include other steps or means not expressly recited or inherent to such process, method, product or apparatus.

[0010] Before describing the embodiments of the present application in detail, the problems in the prior art and the scenes to which the present application is applied will be described with reference to the accompanying drawings.

[0011] 1 is a schematic diagram of a scenario in which the present application is applicable. Take for example a scenario in which a user needs to share a presentation on an electronic device 1 during a meeting. Due to the limited size of the screen of the electronic device 1, the user can connect the electronic device 1 to a data transmission device 3 via a connection cable 2, and then the presentation displayed on the display screen of the electronic device 1 can be projected and displayed on a display means 4 mounted on a wall by the data transmission device 3.

[0012] The electronic device 1 may be a device having a display screen, such as a laptop computer, a tablet PC, a desktop computer, or a workstation. The electronic device 1 is capable of data communication with a data transmission device 3, and for example, a connection cable 2 may be provided between the electronic device 1 and the data transmission device 3 for interconnection via wired communication. The connection cable 2 may be a Universal Serial Bus (simply referred to as USB) connection cable, a High Definition Multimedia Interface (simply referred to as HDMI (registered trademark)) connection cable, or a network connection cable. In one embodiment, the USB connection cable may be a USB Type-C connection cable.

[0013] In some embodiments, the connecting cable 2 may be integrated with the data transmission device 3, i.e., the connecting cable 2 may form an integral device together with the data transmission device 3. In this case, the connecting cable 2 may be regarded as a part of the data transmission device 3, so that when a user connects the data transmission device 3 to the electronic device 1, the user can connect the electronic device 1 to the other end of the connecting cable without connecting the data transmission device 3 to one end of the connecting cable 2, thereby improving efficiency and avoiding the data transmission device 3 being unable to connect to the electronic device 1 because the connecting cable 2 cannot be found.

[0014] The data transmission device 3 can be connected to the display means 4 by wireless communication. The wireless communication includes, but is not limited to, Wireless Fidelity (Wi-Fi), Bluetooth (registered trademark), or other short-distance wireless communication. In some embodiments, the data transmission device 3 may be called a projection device, a projection equipment, a wireless projection equipment, a screen sharing device, or a wireless screen sharing equipment. The display means 4 may be called a large-screen tablet, etc. The display means 4 can collaboratively realize the presentation sharing of the electronic device 1 in accordance with the data transmission device 3. In some embodiments, the display means 4 can further realize functions such as long-distance instant communication and a writing canvas by a control panel by itself.

[0015] Since the data transmission device 3 is connected to the electronic device 1 via a wire, the data transmission device 3 can supply power from the electronic device 1 to the data transmission device 3 via the connection cable 2 after being connected to the electronic device 1 without turning on an external power source. For example, FIG. 2 is a schematic diagram of a configuration of a data transmission device according to one technology. The data transmission device 3 includes a communication interface 31 and a data transmission module 32 that receives data transmitted from the electronic device 1 through the connection between the communication interface 31 and the connection cable 2. When the connection cable 2 is a USB connection cable, the communication interface 31 may be a USB interface (e.g., a USB Type-C interface), and accordingly, the electronic device 1 may be equipped with a USB interface. Thereby, the USB connection cable 2 can establish a connection between the electronic device 1 and two USB interfaces in the data transmission device 3 to realize the establishment of a connection between the electronic device 1 and the data transmission device 3. Since the USB connection cable can transmit both data and power, the electronic device 1 can sequentially supply data and power to the data transmission module 32 via the connection cable 2 and the communication interface 31, so that there are at least two connection theories, data connection and power connection, between the data transmission module 32 and the communication interface 31. For example, the data transmission module 32 can be connected to the data transmission module 32 via the illustrated path. (outside 1) The power transmitted from the electronic device 1 may be received via TIFF0007665908000001.tif6127. (outside 2) After receiving the display screen data transmitted from the electronic device 1 via TIFF0007665908000002.tif7127, the display screen may be projected and displayed on the display means 4 via wireless communication.

[0016] However, in the data transmission device 3 as shown in Fig. 2, when the start-up of the data transmission module 32 is finished, all the power required for operations such as projection of the display screen is supplied from the electronic device 1, so the electronic device 1 needs to simultaneously transmit the transmission data and power to the data transmission module via the power connection cable 2. However, when the data transmission device 3 is not connected to the electronic device 1, the data transmission module 32 has no input power and is in an off state. After the user connects the electronic device 1 and the data transmission device 3 with the connection cable 2, the data transmission module 32 cannot immediately receive data and perform operations such as projection of the display screen, so it must first check the path. (Outside 3) TIFF0007665908000003.tif8127, start and initialize the data transmission module 32, and switch the data transmission module 32 from the off state to the operating state by performing operations such as communication settings. (outside 4) The electronic device 1 can receive data via the data transmission device 3 via the connection cable 2. The time when the electronic device 1 and the data transmission device 3 are connected with the connection cable 2 is designated as a first time, and the time when the data transmission module 32 is switched from the off state to the working state is designated as a second time. (outside 5) It should be understood that even if the data of the display screen is transmitted to the data transmission module 32 via TIFF0007665908000005.tif6127, the data transmission module 32 cannot project and display the display screen on the display means 4. When the data transmission module 32 switches to the working state, that is, when the data transmission module 32 is ready to project the screen, after the second time, the path from the electronic device 1 to the data transmission module is (outside 6) The data transmission module 32 routes the display screen data transmitted via TIFF0007665908000006.tif6127. (outer 7) TIFF0007665908000007.tif6127 and projected and displayed on the display means 4. When a user starts using the data transmission device 3 and connects the data transmission device 3 to the electronic device 1, the user is given the intuition that after the electronic device 1 and the data transmission device 3 are connected by the connection cable 2 (first time), the display screen projected by the electronic device 1 is to be displayed on the display means 4, and during this 10 to 20 seconds, the data transmission device 3 cannot project the display screen of the electronic device 1 onto the display means 4 at all, and the response speed and operation efficiency of the data transmission device 3 during projection are reduced, affecting the user's experience.

[0017] The data transmission device can also constantly keep the data transmission module of the data transmission device in an operating state by using an individual power supply method, thereby improving the response speed of the data transmission device to the projection of an input display screen. For example, FIG. 3 is a schematic diagram of the configuration of a data transmission device according to another technology. In addition to a communication interface 31 and a data transmission module 32, the data transmission device 3 is specially provided with a power supply 33 for supplying power to the data transmission module 32. When the communication interface 31 of the data transmission device 3 is not connected to the electronic device 1, a power supply 33 provided in the data transmission device 3 is connected via a path from the power supply 33 to the data transmission device 3 so that the data transmission module 32 can be kept in an operating state even when the data transmission device 3 and the electronic device 1 are not connected by the connection cable 2. (outside 8) The data transmission module 32 is supplied with power via the data transmission device 32. After the user connects the electronic device 1 and the communication interface 31 of the data transmission device 3 with the connection cable 2 (referred to as the first time), the data transmission module 32 is always in an operational state. (outer 9) TIFF0007665908000009.tif7127, and then the display screen can be projected and displayed on the display means 4. After the user connects the electronic device 1 and the data transmission device 3 with the connection cable 2, the display screen of the electronic device 1 to be projected can be quickly displayed on the display means 4, improving the response speed and operation efficiency and giving the user the intuition of "plug and play."

[0018] However, although the data transmission device 3 as shown in FIG. 3 has improved response speed and operating efficiency, the data transmission module 32 of the data transmission device 3 must be kept in operation at all times, thereby extending the continuous power supply time of the data transmission device 3 as much as possible for the "plug and play" function, and the power supply 33 of the data transmission device 3 has a large capacity and volume, which increases the space occupied by the data transmission device 3, seriously affecting the internal layout and external design of the data transmission device 3.

[0019] In view of the above, a data transmission device as shown in FIG. 2 has the problem of slow response speed and low operating efficiency, and a data transmission device as shown in FIG. 3 has a lack of equipment space and capacity. However, an urgent technical issue in this field is how to balance space and efficiency so as to improve the response speed and operating efficiency of the data transmission device during projection without increasing the capacity and volume of the power supply in the data transmission device excessively.

[0020] Therefore, the present application provides a data transmission method and a data transmission device provided with a microcontroller and a vibration sensor. When the data transmission device is not connected to an electronic device, and the vibration sensor does not detect the movement of the data transmission device by the user, the microcontroller controls not to supply power from the power source to the data transmission module via the control switch, so that the data transmission module is not supplied with power and is kept in an off state, and only when the vibration sensor detects the movement of the data transmission device by the user (for example, when the user picks up the data transmission device), the microcontroller controls to supply power from the power source to the data transmission module via the control switch, thereby starting the data transmission module and switching it from an off state to an operating state before the data transmission device and the electronic device are connected, thereby improving the response speed and operating efficiency of the data transmission device, while reducing the capacity and volume of the power source without the power source constantly supplying power to the data transmission module. Optionally, the microcontroller of the data transmission device can be set to a standby state when the vibration sensor does not detect the movement of the data transmission device by the user. The power consumption when the microcontroller is in a standby state is made smaller than the power consumption when the microcontroller is in a normal operating state so as to save the power consumption of the microcontroller itself. The microcontroller can be powered by the power source of the data transmission device. When the microcontroller is in a standby state, only when the vibration sensor detects the movement of the data transmission device by the user (for example, when the user picks up the data transmission device), the microcontroller is woken up and switched from the standby state to the working state, and then controls the power source to supply power to the data transmission module via the control switch, and starts the data transmission module before the data transmission device and the electronic device are connected.

[0021] The technical solutions of the present application will be described in detail below through specific examples. Some of the following examples can be combined with each other, and the same or similar concepts or processes will not be described in detail in some examples.

[0022] 4 is a block diagram of an application scene of a data transmission device according to an embodiment of the present application. The electronic device 1, the connection cable 2, the data transmission device 3 and the display means 4 as shown in FIG. 4 can be applied to the scene as shown in FIG. 1. Specifically, the data transmission device 3 according to this embodiment includes a communication interface 31, a data transmission module 32 and a power supply 33. After the data transmission device 3 is connected to the electronic device 1 via the connection cable 2, the data transmission module 32 transmits the signal via the path shown in the figure. (Outside 10) The power transmitted from the electronic device 1 may be received via the path shown in FIG. (Outside 11) The data transmission module 32 may receive display screen data transmitted from the electronic device 1 via TIFF0007665908000011.tif7127 and perform data communication with the display means 4 via wireless communication. The data communication includes projecting and displaying the display screen on the display means 4. When the communication interface 31 of the data transmission device 3 is not connected to the electronic device 1, the power supply 33 is connected to the path so that the data transmission module 32 is in an operational state. (Outside 12) The data transmission module 32 can be powered via the TIFF0007665908000012.tif6127. In this embodiment, the power supply 33 is (Outside 13) Rather than constantly supplying power to the data module 32 via TIFF0007665908000013.tif6127, power is supplied to the data module 32 depending on the on or off state of a control switch 36 connected between the power supply 33 and the data transmission module 32. When the control switch 36 is on, the power supply 33 can supply power to the data transmission module 32 via the control switch 36, and when the control switch 36 is off, the power supply 33 can no longer supply power to the data transmission module 32 via the control switch 36.

[0023] In this embodiment, the on / off control of the control switch 36 is realized by the microcontroller 34 and the vibration sensor 35. Specifically, when the data transmission device 3 moves, the vibration sensor 35 in the data transmission device 3 generates detection data according to the movement status of the data transmission device 3, and can transmit the detection data to the microcontroller 34. For example, if the vibration sensor 35 in this embodiment is an acceleration sensor, it generates detection data including at least the acceleration value of the vibration sensor 35 itself according to the movement status of the data transmission device. Based on the detection data generated by the vibration sensor 35, the microcontroller 34 controls the on / off of the control switch 36 between the power source 33 and the data transmission module 32, thereby preventing the power source 33 from being routed. (Outside 14) Whether or not to supply power to the data transmission module 32 can be controlled via TIFF0007665908000014.tif6127. That is, in the data transmission device 3 of this embodiment, a power supply 33 connected to the data transmission module 32 is provided, and whether or not to supply power from the power supply 33 to the data transmission module 32 is controlled by the microcontroller 34 based on the detection data of the vibration sensor 35.

[0024] In addition, the data transmission device 3 is usually placed on a table in a conference room, and the table may be subjected to a certain degree of vibration due to various external forces. In one possible scenario, due to the high sensitivity of the vibration sensor, the data transmission device 3 is moved slightly and falsely activated, causing the vibration sensor to generate an unnecessary signal. In order to filter out the unnecessary signal, the microcontroller 34 stores a predetermined acceleration threshold so as to store the acceleration threshold in advance, receives the acceleration value of the vibration sensor 35 itself contained in the detection data transmitted from the vibration sensor 35, and when it is determined that the acceleration value of the vibration sensor 35 itself exceeds the pre-stored acceleration threshold, controls the control switch 36 between the power supply 33 and the data transmission module 32 to be on, so as to filter out the unnecessary signal from the power supply 33. (Outside 15) Alternatively, in another possible embodiment, the vibration sensor 35 stores an acceleration threshold in advance, and when it is determined that the acceleration value included in the detection data exceeds the acceleration threshold stored in advance, the vibration sensor 35 transmits an interrupt signal to the microcontroller 34. After receiving the interrupt signal, the microcontroller 34 controls a control switch 36 between the power supply 33 and the data transmission module 32 to turn on, thereby disconnecting the power supply 33 from the path. (Outside 16) Power may be supplied to the data transmission module 32 via TIFF0007665908000016.tif6127.

[0025] Alternatively, in some embodiments, the vibration sensor 35 may be specifically an acceleration sensor provided in the data transmission device 3. The acceleration sensor may obtain real-time acceleration values ​​in a total of six directions, including the positive and negative directions of three reference axes of the current data transmission device 3, according to the movement of the data transmission device 3, and the real-time acceleration values ​​in the six directions may be generated as detection data by the vibration sensor 35. More specifically, FIG. 5 is a schematic diagram of a connection relationship between a microcontroller and a vibration sensor according to an embodiment of the present application. The connection relationship between the microcontroller 34 and the vibration sensor 35 includes at least an I2C (Inter-Integrated Circuit) connection and / or an interrupt (simply referred to as INT) connection. This connection relationship may be a plurality of actual connection cables or a single integrated connection cable, but the present application does not limit the specific implementation of the connection relationship. Exemplarily, in certain printed circuit boards (simply referred to as PCB), this connection relationship may be a conductive line printed on the circuit board. The microcontroller 34 may perform settings such as initialization for the vibration sensor 35 through the I2C connection, and may read out detection data of the vibration sensor 35 through the I2C connection. At this time, the microcontroller 34 needs to actively acquire detection data of the vibration sensor 35. The vibration sensor 35 can transmit an interrupt (simply called INT) signal to the microcontroller through the INT connection. The I2C connection and the INT connection may be set simultaneously between the microcontroller 34 and the vibration sensor 35 shown in FIG. 5, or the I2C connection may be set when only the I2C signal is transmitted between the microcontroller 34 and the vibration sensor 35, or the INT connection may be set when the INT signal is transmitted between the microcontroller 34 and the vibration sensor 35.

[0026] Optionally, in the data transmission device 3 according to this embodiment, the power supply 33 is also used to power the microcontroller 34. In one embodiment, the microcontroller 34 may have two power consumption states, a first power consumption operating state and a second power consumption operating state. Before the microcontroller 34 receives the detection data or an interrupt signal, the microcontroller 34 is powered by the power supply of the data transmission device 3 to be in the first power consumption operating state, and after the microcontroller 34 receives the detection data or an interrupt signal, the microcontroller 34 is in the second power consumption operating state. In some application scenarios, the microcontroller 34 consumes less power in the first power consumption operating state than in the second power consumption operating state. Specifically, the first power consumption operating state may be a low power consumption operating state, and the second power consumption operating state may be a high power consumption operating state. The microcontroller 34 may select a micro control unit (simply referred to as MCU) that is in the low power consumption operating state. When the microcontroller 34 is in standby state, it is kept in a low power consumption state and its operating current is limited to the uA level to minimize the power consumption of the power supply 33 by the microcontroller 34 itself when the data transmission device 3 is not connected to the electronic device 1.

[0027] Illustratively, FIG. 6 is a schematic diagram of a vibration sensor according to some embodiments of the present application. The vibration sensor can select an acceleration sensor chip of type "LIS3DHTR". FIG. 7 is a schematic diagram of a microcontroller according to some embodiments of the present application. The microcontroller can select an MCU chip of type "STM32L011D3P6". Combining the examples shown in FIG. 6 and FIG. 7, the INT1 pin of the vibration sensor is connected to the PC15 / OSC32_OUT pin of the microcontroller to realize the "INT connection" as shown in FIG. 5, so that the vibration sensor can send an interrupt signal to the PC15 / OSC32_OUT pin of the microcontroller via the INT1 pin. The SCL / SPC pin of the vibration sensor is connected to the PA9 / I2C1_SCL / USART2_TX pin of the microcontroller, and the SDA / SDI / SDO pin of the vibration sensor is connected to the PA10 / I2C1_SDA / USART2_RX pin of the microcontroller, so as to cooperatively realize the "I2C connection" as shown in Figure 5, so that the vibration sensor can transmit I2C data (I2C serial data) to the PA10 / I2C1_SDA / USART2_RX pin of the microcontroller through the SDA / SDI / SDO pin, transmit an I2C clock signal (I2C serial clock) to the PA9 / I2C1_SCL / USART2_TX of the microcontroller through the SCL / SPC pin, etc. Note that, as shown in Figures 6 and 7, only one type of selectable microcontroller and vibration sensor is shown in the embodiment of this application, but the specific realization of the microcontroller and the vibration sensor is not limited in this application.

[0028] Alternatively, if the control switch 36 according to the present embodiment is a switch tube such as a triode or a field effect transistor, the control signal transmitted from the microcontroller 34 to the control end of the control switch 36 may be H level or L level. For example, if the control switch 36 is a field effect transistor, the control end of the field effect transistor becomes the gate, and the source and drain are connected to the data transmission module 32 and the power supply 33, respectively. At this time, when the gate of the field effect transistor receives a signal of H level (corresponding to N-channel type) or L level (corresponding to P-channel type), it is referred to as a first ON signal. The first ON signal controls the field effect transistor to be on, so that the source and drain of the field effect transistor are conductive, and the power supply 33 can supply power to the data transmission module 32 via the control switch 36. When the field effect transistor receives a signal of L level (corresponding to N-channel type) or H level (corresponding to P-channel type), it is referred to as a first OFF signal. The first OFF signal controls the field effect transistor to be turned off, thereby cutting off the connection between the source and drain of the field effect transistor, and the power supply 33 stops supplying power to the data transmission module 32 .

[0029] In the embodiments of the present application, the data transmission device 3 is provided with a power interface for connecting to a power source 33. The power source 33 can power the data transmission module 32 via the power interface. In some embodiments, the power source 33 of the data transmission device 3 can include a non-removable battery. The battery can be connected to the data transmission module 32 via the power interface of the data transmission device 3 to power the data transmission module 32. In some embodiments, the power source 33 of the data transmission device 3 can include a removable battery. When a battery is installed in the data transmission device 3, the battery can be connected to the data transmission module 32 via the power interface of the data transmission device 3 to power the data transmission module 32.

[0030] When the data transmission device 3 transmits data to the display means 4, for example, when projecting on the display means 4, the microcontroller 34 can control whether to supply power from the power source 33 to the data transmission module 32 based on the detection data from the vibration sensor 35. For example, FIG. 8 is a flow diagram of a data transmission method according to an embodiment of the present application. The data transmission method is performed by the data transmission device 3 as shown in FIG. 4, and includes the following steps when the data transmission device 3 is not connected to the electronic device 1:

[0031] In step S101, the microcontroller 34 receives detection data transmitted from the vibration sensor 35, the detection data including the acceleration value of the vibration sensor 35 itself.

[0032] Specifically, when the microcontroller 34 controls the data transmission device 3, it is necessary to first obtain detection data obtained by detecting the movement of the data transmission device 3 using the vibration sensor 35. The detection data includes at least the acceleration value of the vibration sensor itself. In this embodiment, the vibration sensor 35 is an acceleration sensor. The acceleration sensor detects the movement state of the data transmission device 3 in real time and generates acceleration data in six directions (for example, the acceleration data detected in one embodiment is 0 mg, 200 mg, 100 mg, 150 mg, 0 mg, and 400 mg). The microcontroller 34 may obtain the detection data detected in real time by the vibration sensor 35 by connecting to the vibration sensor 35 at regular intervals, or the vibration sensor 35 may transmit the detection data detected in real time to the microcontroller 34 at regular intervals.

[0033] S102 is that the microcontroller 34 sends a first ON signal to the control switch 36 when it determines that the acceleration value of the vibration sensor 35 itself exceeds a predetermined acceleration threshold.

[0034] The microcontroller 34 can store a predetermined acceleration threshold by storing the acceleration threshold in advance. Next, the microcontroller 34 judges whether the acceleration value of the vibration sensor 35 itself received from the vibration sensor 35 exceeds the acceleration threshold. If the answer is "YES", it indicates that the data transmission device 3 has moved, and the data transmission device 3 may have been moved when the user tries to connect the electronic device 1 and the data transmission device 3 with the connection cable 2. If the answer is "NO", it indicates that the data transmission device 3 has not moved and is in a stationary state. For example, if the acceleration threshold value stored in advance by the microcontroller 34 is 350 mg (mg is the unit of the acceleration sensor, the resolution of the G-Sensor), and the acceleration values ​​of the vibration sensor 35 itself in six directions acquired by the microcontroller 34 are (0 mg, 200 mg, 100 mg, 150 mg, 0 mg, 400 mg), and if the acceleration value of 400 mg in one direction exceeds the acceleration threshold of 350 mg, the microcontroller 34 transmits a first ON signal to the control switch 36. If the acceleration value in any direction of the vibration sensor 35 itself exceeds the acceleration threshold, the microcontroller 34 sends a first ON signal to the control switch 36 if it determines that the acceleration value in at least one direction has exceeded the acceleration threshold, indicating that the data transmission device 3 has caused movement in that direction.

[0035] In step S103, the control switch 36 is turned on in response to the first ON signal, so that the power supply connection path between the power source 33 and the data transmission module 32 is conductive.

[0036] The control switch 36 is turned on in response to the first ON signal to establish a power supply connection path between the power source 33 and the data transmission module 32 , and power is supplied from the power source 33 to the data transmission module 32 via the control switch 36 .

[0037] S104 is for the data transmission module 32 to perform communication setup.

[0038] Specifically, after the power supply connection path between the power source and the data transmission module is established, power is supplied from the power source 33 to the data transmission module 32, and after the data transmission module 32 is powered on, communication settings including communication settings of the communication interface 31 and / or communication settings for data communication between the data transmission module 32 and the display means 4 can be executed.

[0039] In order to avoid the problem of high power consumption of the microcontroller 34 and the vibration sensor 35 due to frequent transmission and reception of detection data between the microcontroller 34 and the vibration sensor 35, in another embodiment, the vibration sensor 35 judges whether its own acceleration value in the detection data has reached a predetermined acceleration threshold, and when it is judged that its own acceleration value has reached the predetermined acceleration threshold, it sends an interrupt signal to the microcontroller 34 via an INT connection provided between the microcontroller 34 and the vibration sensor 35, so that the microcontroller 34 can control the on / off of the control switch 36 depending on whether the interrupt signal is received or not. Specifically, Fig. 9 is a flow diagram of a data transmission method according to an embodiment of the present application. The data transmission method may be executed by a data transmission device 3 as shown in Fig. 4. It should be understood that the data transmission device 3 as shown in Fig. 4 is configured to execute any one of the data transmission methods of the embodiments as shown in Fig. 8 or Fig. 9, and is configured to execute the data transmission methods of the embodiments as shown in Fig. 8 and Fig. 9, and to execute any one of the data transmission methods according to an instruction or setting by a user of the data transmission device 3. This enhances the functions of the data transmission device 3, increases the freedom of selection and setting by the user, and further improves the user's experience.

[0040] Specifically, the data transmission method as shown in FIG. 9, when the data transmission apparatus 3 is not connected to the electronic device 1, includes the following steps:

[0041] In step S201, the vibration sensor 35 generates detection data including at least the acceleration value of the vibration sensor 35 itself in accordance with the movement state of the data transmission device 3.

[0042] S202 is for the vibration sensor 35 to send an interrupt signal to the microcontroller 34 when it is determined that its own acceleration value exceeds the acceleration threshold value.

[0043] Specifically, in this embodiment, the vibration sensor 35 continuously generates detection data including its own acceleration value at a predetermined time interval, and each time detection data is generated, the detection data is not directly transmitted to the microcontroller 34, but the acceleration value of the detection data is compared with a predetermined acceleration threshold. In some embodiments, the predetermined acceleration threshold may be stored in the vibration sensor 35 in advance by the transmission of a command by the microcontroller 34. In some other embodiments, the vibration sensor 35 may set a trigger threshold of the vibration sensor 35 in advance as the predetermined acceleration threshold by the hardware parameters of the peripheral hardware circuit. If the acceleration value of the detection data generated by the vibration sensor 35 does not exceed the predetermined acceleration threshold, the vibration sensor 35 continuously generates detection data at regular time intervals and does not perform any other operation. If the acceleration value of a certain detection data generated by the vibration sensor 35 exceeds the predetermined acceleration threshold, this indicates that the data transmission device 3 has moved, and the vibration sensor 35 can transmit an interrupt signal to the microcontroller 34 via the INT connection with the microcontroller 34.

[0044] S203 is that the microcontroller 34 sends a first ON signal to the control switch 36 after receiving the interrupt signal.

[0045] The microcontroller 34 sends a first ON signal to the control switch after the vibration sensor 35 receives an interrupt signal sent by the INT connection in S202.

[0046] In S204, the control switch 36 is turned on in response to the first ON signal, and the power supply connection path between the power source 33 and the data transmission module 32 is made conductive.

[0047] Finally, the control switch 36 is turned on in response to the first ON signal, thereby establishing a power supply connection path between the power source 33 and the data transmission module 32, and supplying power from the power source 33 to the data transmission module 32 via the control switch 36.

[0048] In step S205, the data transmission module 32 performs communication setup.

[0049] Specifically, after the power supply connection path between the power source and the data transmission module is established, power is supplied from the power source 33 to the data transmission module 32, and after the data transmission module 32 is powered on, communication settings including communication settings of the communication interface 31 and / or communication settings for data communication between the data transmission module 32 and the display means 4 can be executed.

[0050] As described above, in the data transmission device according to the embodiment of the present application, a vibration sensor for detecting whether the data transmission device has moved and a microcontroller for controlling the control switch between the power source and the data transmission module to be turned on to supply power from the power source to the data transmission module based on the detection data by the vibration sensor are provided, and after the microcontroller detects that the data transmission device has moved using the vibration sensor, the control switch between the power source and the data transmission module is turned on to supply power from the power source to the data transmission module. Therefore, when the data transmission device of this embodiment is not used, the power source does not need to supply power to the data transmission module. When a user uses the data transmission device of this embodiment, when the movement of the data transmission device by the user is detected (time T0), this means that the user may try to connect the electronic device and the data transmission device with a connection cable. At time T0, the microcontroller controls the power source to supply power to the data transmission module, and the data transmission module is started before the connection between the data transmission device and the electronic device, and executes communication setting. Assuming that the data transmission module completes the setting operation such as communication setting at time T1, for a user using the data transmission device, when the user connects the electronic device and the data transmission device with a connection cable at time T2 after time T1, the data transmission module of the data transmission device has already completed the setting operation such as communication setting, i.e., after time T2, the data transmission module starts receiving the display screen data transmitted from the electronic device from the communication interface and can project it on the display means. When the user connects the electronic device and the data transmission device with a connection cable at time T3 between times T0 and T1, the time from when the user picks up the data transmission device to when he or she inserts it into the electronic device is short, but since it is necessary to wait for the time between time T3 and time T1, when the data transmission module completes the setting operation such as communication setting at time T1, the data transmission module can receive the display screen data transmitted from the electronic device from the communication interface and project it on the display means.

[0051] In the data transmission device according to the present embodiment, compared to the data transmission device shown in Fig. 2, the data transmission module starts to start before the data transmission device is connected to the electronic device, reducing the waiting time when the user uses the data transmission device, and ideally, no waiting time is required, improving the response speed and operation efficiency of the data transmission device. Compared to the data transmission device shown in Fig. 3, there is no need to constantly supply power from the power source to the data transmission module, so that only when the movement detection module actually detects that the user may move the data transmission device, the power supply is controlled to supply power from the power source to the data transmission module, thereby reducing the demand for power required to supply power from the power source to the data transmission module, and reducing the capacity and volume of the power source provided in the data transmission device. As described above, the data transmission device according to the present application can achieve both space and efficiency, and when the power source of the data transmission device does not need to have an excessive capacity or volume, the response speed and operation efficiency of the data transmission device during data transmission can also be improved. In addition, in the data transmission device of this embodiment, a control switch is provided between the power supply and the data transmission module, and whether or not power is supplied from the power supply to the data transmission module can be controlled by turning the switch on and off, making it possible to realize power supply control by a microcontroller with a simple circuit configuration.

[0052] Alternatively, in the data transmission device 3 as shown in FIG. 4 above, the power supply 33 directly supplies power to the data transmission module 32 and the microcontroller 34 as an example. Similarly, after the data transmission device 3 is connected to the electronic device 1 by the communication interface 31, the power supplied from the electronic device 1 is also directly supplied to the data transmission module 32 and the microcontroller 34 via the communication interface 31. The power supply 33 may be a rechargeable battery provided in the data transmission device 3. In such a case, it is necessary to control the timing of charging and discharging the battery. Therefore, in one possible embodiment of the power supply 33, FIG. 10 is a block diagram of an application scene of the data transmission device according to an embodiment of the present application. In the data transmission device as shown in FIG. 10, in the embodiment as shown in FIG. 4, the power supply 33 may specifically include a power management module 331 and a battery 332 for storing power. The battery 332 provided in the data transmission device of this embodiment may be a lithium battery. For example, a battery with a power consumption of 1 mA or less and a capacity of 50-100 mAH can be selected. The power management module 331 is connected to the communication interface 31 and the battery 332, and manages charging and discharging of power by the battery 332 in accordance with the power from the electronic device 1 acquired by the communication interface 31. The battery 332 supplies power to the microcontroller 34 and the data transmission module 32 via the power management module 331.

[0053] Specifically, the power management module 331 may include an IC (Integrated Circuit) chip for managing charging and discharging of the battery 332. When the data transmission device 3 is connected to the electronic device 1 with the connection cable 2, power is transmitted from the electronic device 1 to the communication interface 31 via the connection cable 2, and the power management module 331 transmits the power received by the communication interface 31 to the battery 332 for charging. When the data transmission device 3 is not connected to the electronic device 1, the power management module 331 controls the battery 332 to output power, and transmits the power from the battery 332 to the microcontroller 34 for power supply, and the path of FIG. (Outside 17) The data can be transmitted to the data transmission module 32 via TIFF0007665908000017.tif7127 to supply power.

[0054] Optionally, FIG. 11 is a block diagram of an application scene of a data transmission device according to an embodiment of the present application. In the data transmission device as shown in FIG. 11, in the embodiment as shown in FIG. 10, the power management module 331 provided in the power supply 33 may specifically include a charging management IC chip 3311 and a power chip 3312. The power chip 3312 converts the voltage (generally 3.5V-4.2V) supplied from the battery 332 into an appropriate voltage (e.g., 3.3V) to supply power to the microcontroller 34, and may be a DC-DC converter (direct current-direct current converter) or an LDO (low dropout regulator). The charging management module specifically charges the battery 332 with power from the electronic device 1 received via the communication interface 31 when charging the battery 332, and in this case, if the battery 332 is a lithium battery, it can convert the DC power into a constant current output to charge the battery 332, and when discharging, it can use a path (Outside 18) TIFF0007665908000018.tif6127 to the data transmission module 32 and to manage power supply to the microcontroller 34 via the power chip 3312.

[0055] 12 is a schematic diagram of a charge management IC chip and peripheral circuits according to some embodiments of the present application. The charge management IC chip can be selected as a power management chip of the type "SY6952B". Here, the "IN" pin of the charge management IC chip is connected to the communication interface 31, and can receive the power VBUS transmitted from the electronic device 1 via the communication interface 31, and the charge management IC chip can control the "LX" pin to be connected to the battery B1 and charge the power VBUS received from the "IN" pin to the battery 1. FIG. 13 is a schematic diagram of a power chip and peripheral circuits according to some embodiments of the present application. The power chip can be selected as a power chip of the type "LC1458CB5TR33". Here, the power chip is used to convert VBAT into a suitable operating voltage of the microcontroller, for example (3.3V), by connecting the VIN pin to the power VBAT supplied from the battery and the VOUT pin to the power supply pin of the microcontroller 34. In addition, although Figures 12 and 13 show only one selectable type of charge management IC chip and power supply chip in the embodiment of the present application, the present application does not limit the specific realization of the charge management IC chip and power supply chip.

[0056] As described above, the data transmission device according to the present embodiment further subdivides the power supply configuration based on the data transmission device according to the above embodiment. A management module provided in the power supply controls the charging and discharging of the battery, and after the data transmission device is connected to an electronic device, the electronic device can power the data transmission device and charge the battery, and then, after the connection between the data transmission device and the electronic device is cut off, the battery can power the microcontroller and data transmission module of the data transmission device. This increases the continuous power supply capacity of the power supply of the data transmission device, and reduces the requirement for battery capacity because the battery can be charged.

[0057] In some embodiments, referring to FIG. 11, when the external electronic device 1 is inserted into the data transmission device 3, the interface power pin of the electronic device 1 supplies power to the data transmission device 3, and since the power source of the electronic device 1 usually has a higher voltage than the battery 332 of the data transmission device 3, the power source of the electronic device 1 can directly charge the battery 332 via the path of "communication interface 31-control switch 36-battery 332". Since the charging current and / or charging voltage of this charging are not processed by the power management module 331 (this processing includes, see above, for example, converting the output voltage and / or output current of the electronic device to a suitable output voltage and / or output current), the charging current and / or charging voltage may be too high or too low, which may damage the battery 332. Therefore, an external power detection module may be provided to avoid direct charging from the power source of the electronic device 1 to the battery 332 of the data transmission device 3. This external power detection module can detect whether or not the operating power is supplied from the electronic device 1 to the data transmission device 3, and if "YES", send a level signal to the control switch 36 to turn off the control switch 36. Since the control switch 36 is turned off, the power source of the electronic device 1 cannot directly charge the battery 332 via the path of "communication interface 31-control switch 36-battery 332".

[0058] Therefore, in some embodiments, based on the embodiments as shown in the above-mentioned Figures 4 to 13, the data transmission device 3 further includes an external power supply detection module for detecting whether or not an external power supply is applied to the communication interface 31 of the data transmission device 3. Here, the application of an external power supply to the communication interface 31 of the data transmission device 3 may mean that operating power is supplied from the electronic device 1 to the data transmission device 3 via the connection cable 2 in a scene as shown in Figure 4, and the absence of the application of an external power supply to the communication interface 31 of the data transmission device 3 may mean that the data transmission device 3 is not connected to the electronic device 1 via the connection cable 2 in a scene as shown in Figure 4.

[0059] Specifically, Fig. 14 is a block schematic diagram of an application scene of a data transmission device according to an embodiment of the present application. The data transmission device 3 as shown in Fig. 10 further includes an external power detection module 37, which is connected to the communication interface 31 and the control switch 36 in the embodiment shown in Fig. 4, for detecting whether or not an external power source is turned on to the communication interface 31. When the external power detection module 37 detects that the external power source is not turned on to the communication interface 31, it transmits a second ON signal to the control switch 36 to turn on the control switch 36. After the data transmission device 3 is connected to the electronic device 1 via the connection cable 2, the electronic device 1 can transmit power to the communication interface 31 of the data transmission device 3 via the connection cable 2, and at this time, the data transmission device 3 receives power from the electronic device 1. Therefore, the electronic device 1 is called an external power source, and accordingly, the power source 33 provided in the data transmission device 3 is called an internal power source.

[0060] When the microcontroller 34 detects the movement of the data transmission device 3, it sends a first ON signal to the control switch 36 to turn on the control switch 36, so that when the external power detection module 37 detects that no external power is applied to the communication interface 31, it also sends a second ON signal to the control switch 36 to turn on the control switch 36. Therefore, the control switch 36 of the data transmission device 3 may be provided with an associated control circuit so that the first ON signal provided by the microcontroller 34 and the second ON signal provided by the external power detection module 37 cooperatively control the control switch 36.

[0061] Specifically, when the microcontroller 34 determines based on the detection data generated by the vibration sensor 35 that the current data transmission device 3 has been moved by the user, the microcontroller 34 transmits a first ON signal to the control switch 36 when the user subsequently attempts to connect an electronic device. However, when the communication interface 31 has already been connected to the electronic device 1 via the connection cable 2, it is meaningless to turn on the control switch 36 by the first ON signal. Therefore, when the external power detection module 37 determines that the current communication interface 31 is not powered on by an external power source, it transmits a second ON signal to the control switch 36, so that the control switch 36 is turned on when it simultaneously receives the first ON signal and the second ON signal. Then, after the power supply connection path between the internal power source 33 and the data transmission module 32 is established, the external power source detection module 37 does not send a second ON signal to the control switch when it detects a connection between the external power source and the communication interface 31 (i.e., a connection between the data transmission device 3 and the electronic device 1) (in one embodiment, when the second ON signal is H level, the L level is regarded as not sending the second ON signal, or when the second ON signal is L level, the H level is regarded as not sending the second ON signal, or is described as a second OFF signal). At this time, regardless of whether the control switch 36 receives the first ON signal from the microcontroller 34, if it does not receive the second ON signal, it is turned off, and the power supply connection path between the internal power source and the data transmission module 32 is interrupted.

[0062] More specifically, in order to realize the above-mentioned control method of the data transmission device, the control switch 36 can cooperatively determine whether to turn off by the first ON signal and the second ON signal. The present application further provides a specific configuration design of the control switch 36 and related control circuit in the data transmission device 3 as shown in FIG. 4. FIG. 15 is a configuration schematic diagram of the control switch and related circuits of the AND gate circuit according to some embodiments of the present application. As shown in FIG. 15, the on / off of the control switch 36 may be realized by the on / off of the field effect transistor Q4 in the figure. The source S of the field effect transistor Q4 is connected to the pin VBAT of the internal power supply, and the drain D is connected to the power supply terminal VIN_805_7911 of the data transmission module 32. In the example shown in FIG. 15, when the type of the field effect transistor Q4 is selected as a p-channel reinforced field effect transistor, when the gate G becomes the control end of Q4, upon receiving an L level signal, the field effect transistor Q4 is turned on and conducts between the source S and the drain D, and upon receiving an H level signal, the field effect transistor Q4 is turned off and cuts off the connection between the source S and the drain D.

[0063] 15, a logic gate circuit is further provided in front of the field effect transistor Q4, which combines the first ON signal from the microcontroller 34 and the second ON signal from the external power detection module 37 to cooperatively determine the H level signal or the L level signal sent to the field effect transistor Q4 by the two ON signals. In a specific embodiment, the logic gate circuit is an AND gate circuit.

[0064] In the first aspect, the first input of the AND gate circuit D36 may be for receiving the "MCU_CL" signal. Here, the L level signal output from the microcontroller via the STM32_1108_IO pin may be referred to as the first ON signal, and this L level signal may be used to turn on the field effect transistor Q4. In the circuit as shown in FIG. 15, the L level signal output from the STM32_1108_IO pin turns off the triode QM2 (referred to as the second triode) to obtain the H level "MCU_CL" signal (i.e., the L level signal output from the microcontroller 34 is inverted), and the H level "MCU_CL" signal is input to the AND gate circuit D36. It should be understood that the H level signal output from the microcontroller via the STM32_1108_IO pin may be referred to as the first OFF signal, and this H level signal is used to turn off the field effect transistor Q4. 15, after the H-level signal output from the STM32_1108_IO is inverted by the triode QM2, the L-level "MCU_CL" signal is input to the AND gate circuit D36. At this time, the L-level "MCU_CL" signal is input to the AND gate circuit D36.

[0065] In the second aspect, the second input terminal of the AND gate circuit D36 may be for receiving a "VBS_CL" signal. FIG. 16 is a schematic diagram of a part of the circuit of an external power supply detection module according to some embodiments of the present application. Here, the external power supply detection module 37 may include a triode QM1 (referred to as a first triode). The triode QM1 has a base connected to the communication interface of the data transmission device 3, detects whether an external power supply VBUS is applied to the communication interface, an emitter grounded, and a collector connected to an internal power supply (VBAT), and outputs a "VBS_CL" signal. When no external power supply is applied to the communication interface, when VBUS becomes an L level, the triode QM1 is turned off, and the output "VBS_CL" signal becomes an H level signal (VBAT) for turning on the field effect transistor Q4, which is referred to as a second ON signal. When an external power supply is applied to the communication interface, when VBUS becomes H level, the triode QM1 is turned on and the “VBS_CL” signal that is output becomes an L level signal (ground) for turning off the field effect transistor Q4, and is referred to as the second OFF signal.

[0066] Finally, the AND gate circuit D36 can control the on / off of the field effect transistor Q4 by cooperatively determining whether the signal sent from the output terminal of the AND gate circuit D36 to the field effect transistor Q4 is a L level signal or a H level signal based on the "MCU_CL" signal sent from the microcontroller in the first direction and the "VBS_CL" signal sent from the external power detection module 37 in the second direction. The logical correspondence between the "MCU_CL" signal and the "VBS_CL" signal is as shown in Table 1 below.

[0067] [Table 1]

[0068] Specifically, in situation 1 shown in Table 1, when the electronic device 1 is not connected to the data transmission device 3 and no external power is applied to the communication interface 31, the external power detection module 37 outputs a second ON signal to the AND gate circuit D36, that is, in the circuit as shown in FIG. 15, the “VBS_CL” signal output to the second input terminal of the AND gate circuit D36 by the external power detection module 37 becomes an H level signal. At this time, if the microcontroller 34 does not detect the movement of the data transmission device 3, it outputs a first OFF signal of H level. After the first OFF signal of H level is inverted by the triode QM2 in the circuit as shown in FIG. 15, the “MCU_CL” signal finally output to the first input terminal of the AND gate circuit D36 becomes an L level signal, the lower diode of the AND gate circuit D36 in FIG. 15 is turned on, the AND gate circuit D36 outputs an L level signal, the triode QM3 (referred to as the third triode) is turned off, and finally the signal input to the gate G of the field effect transistor Q4 becomes an H level signal (an H level signal output from the internal power supply VBAT via resistors RM7 and RM9), the field effect transistor Q4 is turned off, the connection between the source S and the drain D is cut off, and no power is supplied from the internal power supply to the data transmission module 32 via the field effect transistor Q4.

[0069] In the situation 2 shown in Table 1, since there is no external power supply, the "VBS_CL" signal from the external power supply detection module 37 to the second input terminal of the AND gate circuit D36 becomes an H level signal. At this time, when the microcontroller 34 detects that the data transmission device 3 has been moved by the vibration sensor 35, it outputs a first ON signal of L level to the AND gate circuit D36. After the first ON signal of L level is inverted by the triode QM2 in the circuit shown in FIG. 15, the "MCU_CL" signal finally output to the first input terminal of the AND gate circuit D36 becomes an H level signal, both of the two diodes of the AND gate circuit D36 in FIG. 15 are turned off, the internal power supply VBAT turns on the triode QM3, and finally the signal input to the gate G of the field effect transistor Q4 becomes an L level signal (ground), the field effect transistor Q4 is turned on, and the source S and the drain D are conductive, and power is supplied from the internal power supply to the data transmission module 32 via the field effect transistor Q4.

[0070] In the situations 3 and 4 in Table 1, after the data transmission device 3 and the electronic device 1 are connected, the electronic device 1 can supply power to the data transmission device 3 through the connection cable 2, and the external power detection module 37 outputs a second OFF signal to the AND gate circuit D36. That is, the “VBS_CL” signal output from the external power module 37 to the second input terminal of the AND gate circuit D36 in the circuit shown in FIG. 15 becomes an L level signal, and the upper diode in the AND gate D36 in FIG. 15 is turned on, and then the microcontroller Regardless of whether the "MCU_CL" signal generated from 34 to the first input terminal of the AND gate circuit D36 is an H level signal or an L level signal, an L level signal is output from the AND gate D36 to the base of the triode QM3 to turn off the triode QM3, and finally the signal output to the gate G of the field effect transistor Q4 becomes an H level signal (an H level signal output from the internal power supply VBAT via resistors RM7 and RM9), the field effect transistor Q4 is turned off, and the connection between the source S and the drain D is cut off. Therefore, after the external power supply is turned on to the data transmission device, regardless of what instructions are given from the microcontroller, power is not supplied to the data transmission module from the internal power supply via the field effect transistor Q4.

[0071] In addition, devices such as capacitance and resistance provided in the circuit configurations shown in Figures 15 and 16 are for voltage division and protection, and are provided appropriately under the functional elements of the present application, such as the field effect transistor, triode, and logical AND gate circuit. In this application, there is no limitation on whether resistance and capacitance are provided at each position in the circuit, and on the size and specifications of the resistance and capacitance provided, but in actual application, appropriate installation and adjustment can be performed according to specific circuit demands and operating parameters of the functional elements.

[0072] In the above embodiments of the present application, from the viewpoint of the microcontroller installed in the data transmission device, we have described how the microcontroller controls the rapid power supply from the power source to the data transmission module, so that the data transmission module can quickly receive power and start up. However, even if the data transmission module itself is not connected to the data transmission device, it can start initialization and related communication setting flow after receiving power, and cooperate with the microcontroller to realize rapid start-up, so that after the data transmission device and the electronic device are connected, the data transmission device can transmit data transmitted from the electronic device to the display means, for example, project the display screen of the electronic device on the display means.

[0073] Specifically, Fig. 17 is a flow diagram of a control method of a data transmission device according to an embodiment of the present application. The execution subject of the method shown in Fig. 17 may be a data transmission module of the data transmission device, or may be a processor of the data transmission module, such as a central processing unit (CPU) or a system level chip (SoC). The method shown in Fig. 17 may be executed by the data transmission module after S103 as shown in Fig. 8 or S204 as shown in Fig. 9, in which the microcontroller controls the power supply from the power source to the data transmission module. Specifically, the method includes the following steps: S301 is for the data transmission module to perform communication setup after being powered on. Specifically, taking the data transmission device 3 of the embodiment shown in FIG. 4 as an example, after the microcontroller 34 of the data transmission device 3 controls the power supply from the power source 33 to the data transmission module 32, the data transmission module 32 is powered on and performs its own initialization setting and related communication setting. Here, the communication setting includes the communication setting of the communication interface 31 by the data transmission module 32 and / or the communication setting for data communication with the display means 4 by the data transmission module 32. For example, if the communication interface 31 is a USB interface, the data transmission module 32 needs to perform the communication setting for the USB interface according to the USB communication protocol. If the data transmission module 32 projects a display screen on the display means 4 via Wi-Fi, it needs to perform the communication setting of the data transmission module 32 according to the Wi-Fi protocol.

[0074] S302 is that the data transmission module receives stream media data from the communication interface, and encodes the stream media data, which includes but is not limited to video streaming data and audio streaming data.

[0075] Then, after completing the setting for communication, the data transmitting module 32 can receive the stream media data corresponding to the display screen of the electronic device 1 sent from the communication interface 31, and encode the stream media data. The function of encoding is to make the stream media data conform to the communication protocol between the data transmitting module 32 and the display means 4. For example, when communicating between the data transmitting module 32 and the display means 4 through Wi-Fi, the data transmitting module 32 can encode the stream media data according to the Wi-Fi protocol in S302, and then transmit the encoded stream media data to the display means 4 through Wi-Fi.

[0076] If the user has already connected the electronic device 1 and the data transmission device 3 with the connection cable 2 before the data transmission module 32 completes the communication setting in S301, the data transmission module receives the stream media data from the electronic device 1 through the communication interface and encodes it in S302 after completing the communication setting in S301. If the user has not yet connected the data transmission device 3 and the electronic device 1 after the data transmission module 32 completes the communication setting in S301, the data transmission module 32 cannot temporarily receive the stream media data from the communication interface 31. After the user connects the electronic device 1 and the data transmission device 3 with the connection cable 2, the data transmission module 32 starts to execute S302, and can receive the stream media data from the electronic device 1 through the communication interface and encode it. Then, the encoded stream media data is sent to the display means 4.

[0077] Therefore, in this embodiment, after the data transmission module 32 of the data transmission device 3 obtains power from the power source 33, even if the data transmission device 3 is not currently connected to the electronic device 1, the relevant communication setting flow can be performed first, and after the user connects the data transmission device 3 to the electronic device 1 via the connection cable 2, the data transmission device 3 can receive the stream media data corresponding to the display screen transmitted by the electronic device 1 and perform subsequent processing such as encoding, thereby improving the response speed and transmission efficiency of the data transmission module 32. After the data transmission device 3 is inserted into the electronic device 1, the user is given the intuitive feeling that the stream media data of the display screen of the electronic device 1 is immediately processed and projected onto the display means 4 in a short time, thereby providing the user with a "plug and play" user experience and improving the operation efficiency.

[0078] S303 is that the data transmission module transmits the stream media data encoded in S302 to the display unit for displaying, or the data transmission module transmits the stream media data to the display unit after receiving a start command input by the user.

[0079] Next, in S303, the data transmission module 32 can transmit the stream media data encoded in S302 to the display means 4 in the set communication method for display. Alternatively, when the data transmission module 32 receives a command input by a user, it executes S303 to transmit the encoded stream media data to the display means 4 in the set communication method for display. The stream media data may be video streaming data received in real time such that the screen of the electronic device 1 and the screen of the display means 4 are basically synchronized.

[0080] Alternatively, when the data transmission module transmits the stream media data to the display means 4 in S303, the data transmission module synchronously transmits a data transmission command (a screen sharing command is exemplified in this specification) to the display means 4, so that the display means 4 processes and displays the received stream media data from the data transmission module after receiving the data transmission command (a screen sharing command is exemplified in this specification). The screen sharing command means that the display means performs processing such as decoding and display. For example, during data transmission, a user inputs a stop command (e.g., the user presses the stop button of the data transmission device) to the data transmission device 3, and the data transmission device 3 transmits a stop transmission command (a screen sharing stop command is exemplified in this specification) to the display means 4 to instruct the display means 4 to stop transmitting the encoded stream media data to the display means 4 and not to display the received stream media data, so that the display means 4 stops displaying the display screen generated by the stream media data transmitted from the data transmission device 3.

[0081] Optionally, Fig. 18 is a block diagram of an application scene of a data transmission device according to an embodiment of the present application. The data transmission device 3 as shown in Fig. 18 further includes a push button 38, which is provided on the surface of the data transmission device 3 and connected to the data transmission module 32 in the data transmission device 3 in the embodiment as shown in Fig. 4. A user can issue a start command to the data transmission module 32 by pressing the push button 38. After receiving the start command, the data transmission module 32 transmits the encoded stream media data to the display means 4.

[0082] More specifically, Figure 19 is a state diagram illustrating a state when a data transmission module according to some embodiments of the present application executes a control method for a data transmission device. The detailed operations performed from when the data transmission module is powered on to when data is transmitted are described with the SoC of the data transmission module as the execution body.

[0083] As shown in FIG. 19, the communication interface is a USB Type-C interface, and the data transmission module and the display means perform data communication by Wi-Fi. After the data transmission module 32 is powered by the power source 33, the SoC is initialized. The initialization includes, but is not limited to, SOC UBoot loading, SoC Linux (registered trademark) kernel loading, and Type-C drive loading. After the SoC completes its initialization, the communication interface (USB interface) and data communication (Wi-Fi) are set. The USB interface setting shown by the left arrow in FIG. 19 and the Wi-Fi setting shown by the right arrow in FIG. 19 may be performed simultaneously or sequentially by the SoC, but the order of execution is not particularly limited. The Wi-Fi setting process includes the steps of loading a Wi-Fi drive, connecting the Wi-Fi to a Wi-Fi hot point corresponding to the display means through a predetermined account and password, and establishing a corresponding network port after connecting to the hot point, so that the SoC can perform data communication with the display means 4 via Wi-Fi. The process of configuring a USB interface includes the steps of loading an image file and preparing the USB gadget storage.

[0084] Next, after the SoC finishes executing the above initialization flow and the data transmission device 32 and the electronic device 1 are connected, when the USB device (data transmission device 32) is identified by the electronic device 1, the SoC can receive the stream media data transmitted from the electronic device 1 via the USB interface, encode the stream media data according to the set Wi-Fi protocol parameters, and wait for the user to press a push button. The SoC receives a start command issued by the user pressing the push button, establishes a network port in advance, transmits the encoded stream media data to the display means 4, and also transmits a screen sharing command to the display means 4. The display means 4 then processes (e.g., decodes) the received stream media data before displaying it.

[0085] Alternatively, after the data transmission module 32 transmits the stream media data to the display means 4, the data transmission module 32 stops transmitting the screen sharing command to the display means 4 after receiving a stop command input by the user, and the data transmission module 32 itself also stops continuing to transmit the stream media data to the display means, and here, the input of the stop command by the user may be by pressing the push button 38 again.

[0086] In another embodiment, Fig. 20 is a block schematic diagram of an application scene of a data transmission device according to an embodiment of the present application. In addition to being connected to the control switch 36 and sending a second ON signal to the control switch 36, the external power detection module 37 may also be connected to the microcontroller 34 and the data transmission module 32 to detect whether or not an external power supply is applied to the communication interface 31, and send a corresponding instruction signal (for example, an H level signal indicates that an external power supply is applied to the communication interface 31, an L level signal indicates that an external power supply is not applied to the communication interface 31, or an L level signal indicates that an external power supply is applied to the communication interface 31, and an H level signal indicates that an external power supply is not applied to the communication interface 31) to the controller 34 and / or the data transmission module 32 according to the detection result. It should be understood that when the external power detection module 37 is not connected to the data transmission module 32 but connected to the microcontroller 34, and when the external power detection module 37 is connected to both the microcontroller 34 and the data transmission module 32, the data transmission module 32 detects whether there is an external power supply to the communication interface 31, and determines whether to send stream media data to the display means.

[0087] Specifically, in an actual application of the external power detection module 37, in one scene, after the data transmission module 32 transmits stream media data to the display means 4, an instruction signal transmitted from the external power detection module 37 connected to the data transmission module 32 provided in the data transmission device 3 is used to detect whether the external power supply from the communication interface 31 has been disconnected. When the data transmission module 32 receives the instruction signal transmitted from the external power detection module 37 indicating that the external power supply has been disconnected, the data transmission module 32 may stop transmitting a screen sharing command to the display means 4, and the data transmission module 32 itself may also stop continuing to transmit stream media data to the display means 4. In another scenario, when the microcontroller 34 receives an instruction signal transmitted from the external power detection module 37 indicating that the external power supply has been cut off, the microcontroller 34 starts a timer. If the microcontroller 34 does not receive an instruction signal transmitted from the external power detection module 37 indicating that the external power supply has been turned on to the communication interface 31 within a predetermined time (e.g., 60 seconds) measured by the timer, the microcontroller 34 transmits a signal to the control switch 36 to turn off the control switch 36 (i.e., the first OFF signal). At this time, the external power detection module 37 also transmits a signal to the control switch 36 to turn off the control switch 36 (i.e., the second ON signal). In order to transmit a FF signal, the microcontroller 34 controls the control switch 36 to be off, the microcontroller 34 enters a standby state, and when an instruction signal indicating that external power should be turned on to the communication interface 31, transmitted by the external power supply detection module 37, is received within a predetermined time (e.g., 60 seconds) counted by the timer, the microcontroller 34 continues to transmit a signal for turning the control switch 36 on (i.e., the above-mentioned first ON signal) to the control switch 36, and at this time, the external power supply detection module 37 transmits a signal for turning the control switch 36 off (i.e., the above-mentioned second OFF signal) to the control switch 36, so that the control switch 36 is controlled to be off.

[0088] 21 is a schematic diagram of a partial circuit of an external power supply detection module according to an embodiment of the present application. The external power supply detection module 37 shown in FIG. 21 further includes a resistor R28 (referred to as a first resistor), a resistor R84 (referred to as a fourth resistor), a resistor R101 (referred to as a second resistor), and a resistor R100 (referred to as a third resistor) in the partial circuit shown in FIG. 16. In the configuration shown in FIG. 16, the external power supply detection module 37 is provided with a triode for inversion processing at the rear stage of the external power supply VBUS to be connected in order to match the circuit of the control switch 36, but it should be understood that the external power supply detection module 37 does not need to be provided with a triode for connecting the microcontroller 34 and the data transmission module 32.

[0089] 21, if the power supply applied to the communication interface 31 is denoted as VBUS, VBUS is grounded via resistors R28 and R84, and VBUS is further connected to the USB0_DET pin of the data transmission module 32 via resistors R28 and R100, and the data transmission module can determine whether or not the external power supply VBUS has been applied to the communication interface of the data transmission device 3 based on the level value of the USB0_DET pin. VBUS is further connected to the MCU_DET pin of the microcontroller 34 via resistors R28 and R101, and the microcontroller 34 can determine whether or not the external power supply VBUS has been applied to the communication interface of the data transmission device 3 based on the level value of the MCU_DET pin.

[0090] For example, when an external power source is applied to the communication interface 31, VBUS goes to H level, and at this time, the signal transmitted by the external power source detection module 37 to the data transmission module 32 via the USB0_DET pin also goes to H level. This H level signal is regarded as an indication signal indicating that external power has been applied to the communication interface 31, and the data transmission module 32 can determine that an external power source is connected to the communication interface 31 based on the H level indication signal. When an external power source is not connected to the communication interface 31, VBUS goes to L level, and at this time, the signal transmitted by the external power source detection module 37 to the data transmission module 32 via the USB0_DET pin also goes to L level. This L level signal is regarded as an indication signal indicating that external power is not applied to the communication interface, and the data transmission module 32 can determine that external power is not applied to the communication interface 31 based on the L level indication signal. Also, for example, when an external power supply is applied to the communication interface, VBUS goes to H level, and at this time, the signal transmitted by the external power supply detection module 37 to the microcontroller 34 via the MCU_DET pin also goes to H level, and this H level signal is regarded as an indication signal indicating that external power supply has been applied to the communication interface 31, and the microcontroller 34 can determine that an external power supply has been connected to the communication interface 31 based on the H level indication signal, and when an external power supply is not connected to the communication interface 31, VBUS goes to L level, and at this time, the signal transmitted by the external power supply detection module 37 to the microcontroller 34 via the MCU_DET pin also goes to L level, and this L level signal is regarded as an indication signal indicating that external power supply is not applied to the communication interface 31, and the microcontroller 34 can determine that external power supply is not applied to the communication interface 31 based on the external power OFF signal.

[0091] Optionally, from the viewpoint of circuit safety, the resistors R28, R84, R100, and R101 shown in Fig. 21 are all for ensuring the reliability of the circuit. In the simplest embodiment, the power-on detection circuit shown in Fig. 21 does not need to have a resistor, or the resistance of the resistor provided may be 0. As a result, the MCU_DET pin of the microcontroller 34 and the USB0_DET pin of the data transmission module 32 are directly connected to the external power supply VBUS, realizing more direct detection.

[0092] As described above, in the control method of the data transmission device according to the present embodiment, after the stream media data is transmitted from the data transmission module as the execution subject to the display means and displayed, the data transmission module immediately stops transmitting a screen sharing command to the display means in response to a stop command from the user or in response to the external power supply detection module detecting the disconnection of the external power supply from the communication interface, so that the display means does not continue to display the display screen of the electronic device. In actual use, when the user connects the electronic device to the data transmission device and finds that the screen currently displayed by the electronic device is inappropriately projected and displayed on the display means, a stop command is sent or the data transmission device is directly disconnected from the electronic device, so that the stream media data transmitted by the data transmission device is not displayed on the display means. This improves the response speed of the data transmission device to the disconnection command and operation by the user, improves the response speed and data transmission efficiency of the data transmission device, and also protects the user's privacy to a certain extent. When the user mistakenly displays private information on the screen, the display can be immediately prevented, and the user experience of the data transmission device is improved.

[0093] Alternatively, in the data transmission device 3 according to the embodiment of the present application, when the movement of the data transmission device 3 is detected, the microcontroller 34 controls the power source 33 to supply power to the data transmission module 32. However, in some application scenarios, the movement of the data transmission device 3 is not caused by the user wanting to use the data transmission device 3 to transmit data, but by the user accidentally touching the data transmission device 3 or just wanting to move the data transmission device 3, and then not connecting the data transmission device 3 to the electronic device 1. At this time, if the internal power source 33 continues to supply power to the data transmission module 32 all the time, the power of the power source 33 will be wasted. Therefore, the embodiment of the present application further provides a double power-saving protection mechanism to address this technical problem. In the embodiment of the present application, first, an acceleration threshold (for details, see the setting method of the embodiment of the threshold) provided in the vibration sensor 35 or the microcontroller 34 is set, and the microcontroller 34 judges whether to send an ON signal to the control switch 36 according to the comparison result. By setting the acceleration threshold, partial micro vibrations and invalid vibration signals can be filtered, and the microcontroller 34 sends an ON signal to the control switch 36 to supply power from the power source 33 to the data transmission module 32, thereby avoiding waste of power. However, even if a part of the acceleration value of the detected data by the vibration sensor 35 exceeds the predetermined acceleration threshold, the user does not necessarily want to use the data transmission device 3. Therefore, in order to further reduce waste of power of the power source 33, the microcontroller 34 further includes the following steps after the power supply connection path between the internal power source 33 and the data transmission module 32 is conducted.

[0094] When the microcontroller 34 receives an instruction signal indicating that an external power supply is turned on to the communication interface 31 from the external power supply detection module 37 within a first predetermined time (e.g., 60 seconds, which is a sufficient time for the user to connect the data transmission device 3 and the electronic device 1) after receiving the detection data or interrupt signal from the vibration sensor 35, the microcontroller 34 continues to transmit a signal for turning on the control switch 36 (i.e., the above-mentioned first ON signal) to the control switch 36, and at this time, the external power supply detection module 37 transmits a signal for turning off the control switch 36 (i.e., the above-mentioned second OFF signal) to the control switch 36, thereby controlling the control switch 36 to be off, and the supply between the internal power supply 33 and the data transmission module 32 is interrupted. and if the microcontroller 34 does not receive an instruction signal indicating that an external power source is connected to the communication interface 31 within a first predetermined time period after receiving the detection data or interrupt signal of the vibration sensor 35, the microcontroller 34 transmits a signal for turning off the control switch 36 (i.e., the above-mentioned first OFF signal) to the control switch 36 after the first predetermined time period has elapsed. At this time, the external power detection module 37 transmits a signal for turning on the control switch 36 (i.e., the above-mentioned second ON signal) to the control switch 36, thereby controlling the control switch 36 to be turned off and controlling the power supply connection path between the controlled internal power source 33 and the data transmission module 32 to be cut off.

[0095] Specifically, the execution subject of this step may be the microcontroller 34, and after determining that the data transmission device 3 has been moved, the microcontroller 34 transmits a first ON signal by setting the STM32_1108_IO pin of the microcontroller 34 as shown in FIG. 15 to an L level signal, controls the control switch 36 to ON, supplies power from the internal power supply 33 to the data transmission module 32 via the control switch 36, and the microcontroller 34 can start a timer for a first predetermined time (for example, 60 seconds). After controlling the control switch 36 to ON, the microcontroller 34 detects whether or not an external power supply is applied to the communication interface 31. Alternatively, the microcontroller 34 can determine whether or not an external power supply is applied to the communication interface 31 based on, for example, an instruction signal output by the external power supply detection module 37 of FIG. 21, i.e., the level of the MCU_DET pin. If the instruction signal determines that an external power supply has been turned on before the timer has finished counting 60 seconds, the timer finishes counting, and the microcontroller 34 holds the STM32_1108_IO pin to be an L level signal (turns the control switch 36 on). If the instruction signal determines that no external power supply has been turned on during these 60 seconds after the timer has finished counting 60 seconds, the microcontroller 34 adjusts the STM32_1108_IO pin to be an H level signal to send a first OFF signal (turns the control switch 36 off) after the timer has finished counting 60 seconds, and controls the control switch 36 to be off. Since the power supply does not need to continue to supply power to the data transmission module 32 after 60 seconds, it is ensured that the power supply 33 does not continuously supply power to the data transmission module 32 due to movement caused by erroneous contact with the data transmission device 3 by a person other than the user of the data transmission device, reducing power consumption and improving the completeness of the microcontroller 34 when controlling the data transmission device.

[0096] In addition, in another embodiment of the present application, after the data transmission device 3 is connected to the electronic device 1, the microcontroller 34 can continuously send a signal for turning on the control switch 36 (i.e., the above-mentioned first ON signal) to the control switch 36, and at this time, the external power detection module 37 sends a signal for turning off the control switch 36 (i.e., the above-mentioned second OFF signal) to the control switch 36, thereby controlling the control switch 36 to be turned off and controlling it to cut off the power supply connection path between the internal power supply 33 and the data transmission module 32. Thereafter, when the data transmission device 3 is again unplugged by the user, the microcontroller 34 does not send a signal to the control switch 36 to turn off the control switch 36 (i.e., the first OFF signal) but starts timing a second predetermined time (e.g., 60 seconds) using a timer, and before the end of the timing, continues to send a signal to turn on the control switch 36 (i.e., the first ON signal), and the external power supply detection module 37 sends a signal to turn on the control switch 36 (i.e., the second ON signal) to the control switch 36, thereby controlling the control switch 36 to be on and restoring the power supply connection path between the internal power supply 33 and the data transmission module 32 to conductivity. In this way, even if the data transmission device 3 is removed, if the data transmission device 3 is connected to the electronic device 1 before the timer finishes timing the second predetermined time, the control switch 36 is turned on, power is supplied from the power source 33 to the data transmission module 32, and the data transmission module 32 enters an operating state. Since the external power source is not disconnected and the power is not turned off immediately after the data transmission device 3 is removed, when a user removes one electronic device 1 from the data transmission device 3 and inserts the next electronic device 1, data transmission can be performed quickly, and operating efficiency is improved.

[0097] Alternatively, in the above embodiment, after the microcontroller 34 controls the control switch 36 to be on, if the vibration sensor 35 does not detect the movement of the data transmission device 3, the microcontroller 24 can enter a standby mode. If the vibration sensor 35 subsequently detects the movement of the data transmission device, the microcontroller 34 can be woken up by sending an interrupt signal to the microcontroller 34. When the microcontroller 34 returns to an operating state, the STM32_1108_IO pin can immediately be set to an L level signal to start a timer for a predetermined time to detect whether an external power supply is turned on.

[0098] For example, Fig. 22 is a state diagram when a microcontroller according to some embodiments of the present application executes a control method for a data transmission device. Taking the microcontroller 34 as an example of an MCU provided in the data transmission device 3, after the MCU is powered on (for example, powered on at the time of shipment of the data transmission device 3) and operated, the MCU executes initialization setting including setting of an acceleration threshold. After the above-mentioned startup operation is completed, the MCU sets the STM32_1108_IO pin to an L level signal, and when it is detected that no external power is applied to the communication interface of the data transmission device 3, a timer is started so that a 60-second count begins. During the 60 seconds according to the timer, the MCU continues to detect whether or not an external power is applied to the communication interface, and when it is detected that an external power is applied in 60 seconds, the MCU holds the STM32_1108_IO pin to an L level signal, and when it is not detected that an external power is applied in 60 seconds, the MCU sets the STM32_1108_IO pin to an H level signal and enters a standby state. Until the vibration sensor 35 next detects movement of the data transmission device (i.e., the real-time acceleration value exceeds the predetermined acceleration threshold), it sends an interrupt signal to the MCU, the MCU ends its standby state and switches to an active state, and based on the interrupt signal, makes the STM32_1108_IO pin an L-level signal, and then repeats and cycles the above-mentioned 60-second timer starting process.

[0099] After the data transmission device 3 is connected to the electronic device 1 for a certain time, the MCU sets the STM32_1108_IO pin to an L level signal to turn on the control switch 36, and at this time, the VBS_CL signal sent to the control switch 36 by the external power detection module 37 becomes an L level signal to turn off the control switch 36, so that the control switch 36 is controlled to be off and the power supply connection path between the internal power supply 33 and the data transmission module 32 is cut off. After that, when the user exits the data transmission device 3 again, the microcontroller 34 holds the control switch 36 at an L level signal to turn on the control switch 36, and the VBS_CL signal sent to the control switch 36 by the external power detection module 37 becomes an H level signal to turn on the control switch 36, so that the control switch 36 is controlled to be on and the power supply connection path between the internal power supply 33 and the data transmission module 32 is restored to continuity. In this way, even if the data transmission device 3 is removed, the data transmission module 32 continues to operate, and there is no power reduction due to loss of external power after the data transmission device 3 is removed. Therefore, when the next electronic device 1 is inserted into the data transmission device 3, data transmission can be performed quickly, improving operating efficiency.

[0100] Optionally, an embodiment of the present application provides a control method for a data transmission device, which is applied to switching the connection relationship between the same data transmission device and different electronic devices. The execution subject may be a microcontroller. The microcontroller detects whether an external power source is connected to the communication interface through the MCU_DET pin of the external power source detection module as shown in FIG. 21, and controls the power supply from the internal power source to the data transmission module after detecting the disconnection of the external power source from the communication interface, so that the data transmission module maintains the wireless connection with the display means. When the user then connects another electronic device to the data transmission device, the data transmission module can transmit the stream media data transmitted from the current electronic device to the display means without performing the initialization and related communication setting steps again, and in the process of switching the connection of the data transmission device to a different electronic device, the preparation time required for the switched electronic device to use the data transmission device is reduced, and the waiting time until the user sees the display screen projected on the display means after connecting the switched electronic device to the data transmission device is shortened, so that the data transmission efficiency of the data transmission device is further improved and the user experience is improved.

[0101] In one embodiment, the external power supply detection module 37 is connected only to either the microcontroller 34 or the data transmission module 32, and a communication connection (for example, a connection method using I2C, UART (Universal Asynchronous Receiver / Transmitter), GPIO (General-purpose input / output), etc.) exists between the microcontroller 34 and the data transmission module 32. For example, FIG. 23 is a block schematic diagram of an application scene of an embodiment of the data transmission device according to the present application. The external power supply detection module 37 provided therein is connected to the communication interface 31 and the data transmission module 32, and the data transmission module 32 can determine whether or not an external power supply is connected to the communication interface 31 according to an instruction signal from the external power supply detection module 37, for example, by determining whether or not a power supply VBUS is externally connected to the communication interface by the USB_DET pin shown in FIG. 21, and transmitting the determination result to the microcontroller 34. FIG. 24 is a block schematic diagram of an application scene of an embodiment of the data transmission device according to the present application. The external power supply detection module 37 provided therein is connected to the communication interface 31 and the microcontroller 34, and the microcontroller 34 determines whether or not an external power supply is connected to the communication interface 31 based on an instruction signal from the external power supply detection module 37, and determines whether or not a power supply VBUS is externally connected to the communication interface based on, for example, the MCU_DET pin shown in FIG. 21, and transmits the determination result to the data transmission module 32.

[0102] The present application provides another embodiment. Figure 25 is a flow diagram of a data transmission method according to an embodiment of the present application. Specifically, in the embodiments of Figures 4, 7, 15, 16, and 21, a data transmission method is provided. The data transmission method as shown in Figure 25 includes the following steps:

[0103] Step S401 is for the MCU to receive information transmitted from the sensor.

[0104] The information transmitted from the sensor may be detection data or an interrupt signal. The MCU is also called a microcontroller or a microcontroller means.

[0105] In this embodiment, an example is taken in which the vibration sensor 35 transmits detection data to the MCU, the detection data includes an acceleration value of the vibration sensor 35 itself, the MCU pre-stores an acceleration threshold, and the MCU determines whether the data transmission device 3 is moved based on a comparison result between the acceleration value included in the detection data and the pre-stored acceleration threshold.

[0106] In this embodiment, the vibration sensor 35 may be an acceleration sensor. The acceleration sensor detects the motion state of the data transmission device 3 in real time and generates acceleration data in six directions (for example, the detected acceleration data in one embodiment are 0 mg, 200 mg, 100 mg, 150 mg, 0 mg, and 400 mg). The MCU may acquire the detection data detected in real time by the vibration sensor 35 through communication with the vibration sensor 35 at regular intervals, or the vibration sensor 35 may transmit the detection data detected in real time to the MCU at regular intervals.

[0107] Alternatively, the power supply 33 built in the data transmission device 3 according to the present embodiment may be used to supply power to the MCU. In one embodiment, the MCU is set to two power consumption operating states, a first power consumption operating state and a second power consumption operating state. Here, the MCU is set to the first power consumption operating state by the power supply 33 built in the data transmission device 3 before receiving the detection data or an interrupt signal, and the MCU is set to the second power consumption operating state after receiving the detection data (whose acceleration value exceeds a predetermined acceleration threshold) or an interrupt signal. The power consumption of the MCU is set to be lower in the first power consumption operating state than in the second power consumption operating state, and specifically, the first power consumption operating state may be a low power consumption operating state and the second power consumption operating state may be a high power consumption operating state. The MCU can select a device having a low power consumption operating state. When the MCU is in a standby state, the MCU is maintained in a low power consumption state and its operating current is limited to a uA level, so as to reduce the power consumption of the power supply 33 by the MCU as much as possible when the data transmission device 3 is not connected to the electronic device 1.

[0108] Step S402 is for the MCU to send a first ON signal for turning on the control switch 36 to one input pin of the AND gate circuit D36 when the MCU detects that the data transmission device 3 has been moved.

[0109] Specifically, the MCU judges whether the acceleration value of the vibration sensor 35 itself received from the vibration sensor 35 exceeds the acceleration threshold value. If it is "YES", it indicates that the data transmission device 3 has moved, and if it is "NO", it indicates that the data transmission device 3 has not moved and may be in a stationary state. For example, the MCU has an acceleration threshold value of 350 mg set in advance, and if the acceleration values ​​in six directions acquired by the MCU are (0 mg, 200 mg, 100 mg, 150 mg, 0 mg, 400 mg), it indicates that the data transmission device 3 has moved, and transmits a first ON signal from the STM32_1108_IO pin of the MCU to one input pin of the AND gate circuit D36 (the cathode of the diode below the AND gate circuit D36 as shown in FIG. 15).

[0110] In this embodiment, the first ON signal is for turning on the control switch 36. This first ON signal may be an L level signal. Specifically, the first ON signal for turning on the control switch 36 is an L level signal output from the STM32_1108_IO pin of the MCU. Note that the signal output from the MCU becomes an L level signal, and after being inverted by the triode QM2, the level signal reaching one pin of the AND gate circuit D36 becomes an H level MCU_CL signal. Whether the first ON signal is an H level signal or an L level signal may be set according to the actual situation of the circuit. For example, in another embodiment, the signal for turning on the control switch 36 output from the MCU may directly control one pin of the AND gate circuit D36.

[0111] In another embodiment, when the MCU receives an interrupt signal transmitted from the vibration sensor 35, the MCU determines that the data transmission device 3 has been moved.

[0112] After the MCU determines that the data transmission device 3 has been moved, the timer of the MCU starts counting a predetermined time (for example, 60 seconds).

[0113] Step S403 is that if it is detected that no external power is applied to the communication interface 31 of the data transmission device 3, the external power detection module 37 sends a second ON signal to another input pin of the AND gate circuit D36.

[0114] With reference to the drawings, this second ON signal is a signal for turning on the control switch 36. The second ON signal may be an H level signal. Specifically, the external power supply detection module 37 is connected to another pin (the cathode of the upper diode in the AND gate circuit D36 as shown in FIG. 15) of the AND gate circuit D36, detects whether or not an external power supply is turned on to the communication interface 31, and when it is detected that an external power supply is not turned on, the external power supply detection module 37 transmits an H level signal for turning on the control switch 36 to this input pin of the AND gate circuit D36, specifically, transmits an H level VBS_CL signal for turning on the control switch 36 to the cathode of the upper diode of the AND gate circuit D36.

[0115] Step S404 is that the logical AND gate circuit D36 sends a control signal to the control switch 36 based on the first ON signal and the second ON signal to turn on the control switch 36, thereby conducting the power supply connection path between the power supply 33 of the data transmission device 3 and the data transmission module 32.

[0116] Specifically, as shown in FIG. 15, the second ON signal and the first ON signal of the two input pins of the AND gate circuit D36 are the VBS_CL signal and the MCU_CL signal, respectively, the “VBS_CL” signal is an H-level signal, the “MCU_CL” signal is an H-level signal, the two diodes of the AND gate circuit D36 are both turned off, the H-level signal of the internal power supply VBAT turns on the triode QM3 via resistors RM8 and RM11, and finally the signal input to the gate G of the field effect transistor Q4, which is the control switch 36, is an L-level signal (the gate G is grounded via resistor RM9 and the triode QM3), the field effect transistor Q4 is turned on, conduction occurs between the source S and the drain D, and the internal power supply (power supply 33) supplies power to the data transmission module 32 via the field effect transistor Q4.

[0117] The data transmission module 32 is powered by the power source 33 built in the data transmission device 3, and the data transmission module 32 is started up and performs related communication settings, such as communication settings for communication between the data transmission module 32 and the communication interface and / or communication settings for data communication between the data transmission module 32 and the display means 4. For example, in a Wi-Fi communication environment, the data transmission module 32 may be a Wi-Fi module, and the data transmission module 32 may complete the establishment of a communication link with the Wi-Fi module of the display means 4. The Wi-Fi module of the display means 4 is also an external device. When the Wi-Fi module is built in the display means 4, establishing a communication link with the display means may be a direct communication link with the display means 4, or when the display means 4 communicates through an external Wi-Fi module, a communication link with the external Wi-Fi module may be established first, and the external Wi-Fi module may establish a communication link when the display means 4 is in an operating state.

[0118] Before the data transmission device 3 is connected to the electronic device 1, the data transmission module 32 has already completed the establishment of a communication link with the display means 4. When the data transmission device 3 is connected to the electronic device 1, the data to be transmitted by the electronic device 1 is directly processed by the data transmission device 3 and sent to the display means 4 for display. This avoids the need to configure the communication link only after the data transmission device 3 is connected to the electronic device 1. This reduces the waiting time when the user uses the data transmission device 3 and realizes plug-and-play, thereby improving the response speed and operating efficiency of the data transmission device.

[0119] Based on steps S401-S404 of the above embodiment, a possible application scenario is further provided in which a user picks up or moves the data transmission device 3 to prepare for inserting the communication interface 31 of the data transmission device 3 into the communication interface of the electronic device 1. The communication interface of the electronic device 1 is, for example, a USB interface or a TYPE-C interface of the electronic device 1, but is not limited thereto in the embodiment of the present application. Note that the USB interface or the TYPE-C interface of the electronic device 1 generally has a power pin set therein to provide power to the electronic device inserted therein.

[0120] Step S405 is that after the external power detection module 37 detects that an external power source is turned on to the communication interface 31 of the data transmission device 3, it sends a second OFF signal to another input pin of the AND gate circuit D36 to turn off the control switch 36.

[0121] Specifically, the second OFF signal may be an L level signal. Referring to the drawing, the external power supply detection module 37 sends an L level VBS_CL signal to the cathode of the upper diode of the AND gate circuit D36 to turn off the control switch 36.

[0122] In step S406, at the predetermined time, after the external power detection module 37 detects that the external power has been applied to the communication interface 31 of the data transmission device 3, it sends a signal indicating that the external power has been applied to the MCU, and the MCU continues to send a first ON signal for turning on the control switch 36 to one input pin of the AND gate circuit D36. At this time, it should be understood that the MCU still continues to send the first ON signal for turning on the control switch 36 to one input pin of the AND gate circuit D36.

[0123] The above-mentioned predetermined time is determined by the MCU after the data transmission device 3 is moved. Specifically, as shown in Fig. 21, when an external power supply is applied to the communication interface 31, VBUS becomes H level, and at this time, the signal transmitted by the external power supply detection module 37 to the MCU_DET pin of the MCU also becomes H level, and this H level signal is regarded as an instruction signal indicating that an external power supply is applied to the communication interface 31, and the MCU can identify that an external power supply is connected to the communication interface 31 based on this H level instruction signal, and when an external power supply is not connected to the communication interface 31, VBUS becomes L level, and at this time, the signal transmitted by the external power supply detection module 37 to the MCU_DET pin of the MCU also becomes L level (the MCU_DET pin is grounded via resistors R101 and R84), and this L level signal is regarded as an instruction signal indicating that an external power supply is not applied to the communication interface 31, and the MCU can identify that an external power supply is not connected to the communication interface 31 based on this L level instruction signal.

[0124] If, at the above-mentioned specified time, the MCU determines that external power has been applied to the communication interface 31 based on the H-level signal sent from the external power detection module 37, the MCU stops counting the specified time and continues to send a signal to turn on the control switch 36 to one input pin of the AND gate circuit D36, and at this time, the "MCU_CL" signal remains an H-level signal.

[0125] In step S407, the AND gate circuit D36 transmits a control signal to the control switch 36 to turn the control switch 36 off based on the first ON signal and the second OFF signal.

[0126] Specifically, as shown in FIG. 15, the second OFF signal and the first ON signal of the two input pins of the AND gate circuit D36 are the VBS_CL signal and the MCU_CL signal, respectively. The “VBS_CL” signal is an L level signal, and the “MCU_CL” signal remains an H level signal. The upper diode of the AND gate circuit D36 turns on but the lower diode turns off, so that the AND gate circuit D36 outputs an L level signal. This L level signal controls the triode QM3 to turn off via resistor RM11, and the internal power supply VBAT turns the signal of the gate G of the field effect transistor Q4 to an H level signal via resistors RM7 and RM9, so that the field effect transistor Q4 turns off and the connection between the source S and the drain D is disconnected.

[0127] The field effect transistor Q4 of the control switch 36 is turned off, and the power of the electronic device 1 charges the battery 332 directly without passing through the path of "communication interface 31-control switch 36-battery 332," thereby preventing damage to the battery 332.

[0128] Based on steps S405-S407 of the above embodiment, a possible application scenario is further provided in which a user connects the data transmission device 3 and the electronic device 1 at a predetermined time (e.g., 60 seconds) after the MCU determines that the data transmission device 3 has been moved.

[0129] In step S408, if the external power supply detection module 37 detects a disconnection between the communication interface 31 of the data transmission device 3 and the external power supply, it sends a second ON signal for turning on the control switch 36 to another input pin of the AND gate circuit D36, and the external power supply detection module 37 sends a signal indicating that no external power supply is applied to the communication interface 31 to the MCU, and the signal may be an L level signal.

[0130] The above step S408 is a possible application scenario in which the user disconnects the data transmission device 3 from the electronic device 1 after connecting the data transmission device 3 to the electronic device 1.

[0131] Step S409 is when the MCU receives a signal from the external power supply detection module 37 indicating that no external power is being applied to the communication interface 31, and then the MCU's timer starts timing based on a predetermined time (e.g., 60 seconds).

[0132] In this embodiment, in order to meet the demand for sequential data transmission between users using the same data transmission device 3 and ensure that the next user can also realize plug-and-play of the data transmission device 3, it is necessary to set a corresponding setting for the MCU, and specifically, a predetermined time (for example, 60 seconds) can be stored in the MCU. This predetermined time may be 60 seconds in this embodiment, or may be another time, for example, 50 seconds, in other embodiments, and this time may be set according to a specific application scenario.

[0133] Step S410 remains at this predetermined time, in which the MCU sends a first ON signal for turning on the control switch 36 to one input pin of the AND gate circuit D36.

[0134] Specifically, as shown in FIG. 15, an L-level signal that turns off the triode QM2 is sent from the STM32_1108_IO pin of the MCU to one input pin of the AND gate circuit D36 (the cathode of the lower diode of the AND gate circuit D36), and an H-level “MCU_CL” signal (+3V3_SBH level supplied when the cathode of the lower diode of the AND gate circuit D36 is connected to the internal power supply via resistor RM6) is obtained.

[0135] In step S411, the AND gate circuit D36 transmits a control signal for turning on the control switch 36 to the control switch 36 based on the first ON signal and the second ON signal.

[0136] Specifically, after the control switch 36 is turned on, the internal power supply of the data transmission device 3 supplies power to the data transmission module 32, and keeps the communication link between the data transmission module 32 and the display means 4 in a continuous state. Thus, even if the data transmission device 3 is removed from the electronic device 1, when the user further inserts the next electronic device within this predetermined time, the data of the electronic device can be rapidly transmitted, thereby realizing plug-and-play in the data transmission process of alternating switching between multiple electronic devices by the data transmission device 3.

[0137] In the above steps S410-S411, after the user removes the data transmission device 3 from the electronic device 1, the next electronic device 1 (which may be the removed electronic device 1 or another electronic device) is further inserted during this predetermined time, and the communication link between the data transmission module 32 and the display means 4 is continuously maintained in a connected state during this switching period.

[0138] Optionally, in some embodiments, after step S411, the process may be returned to the loop from step S404 onwards to detect whether or not an external power source is turned on for a predetermined period of time.

[0139] Specifically, when the external power supply detection module 37 detects a connection between the communication interface 31 of the data transmission device 3 and an external power supply within a specified time range of the timer, the external power supply detection module 37 transmits one L-level signal to the logical AND gate circuit D36, and the logical AND gate circuit D36 transmits a signal to the control switch 36 to turn off the control switch 36 based on this L-level signal and an H-level signal from the MCU.

[0140] In step S412, after the user disconnects the data transmission device 3 from the electronic device 1, timing of a predetermined time is started. If the external power supply detection module 37 does not detect a connection between the communication interface 31 of the data transmission device 3 and an external power supply during the predetermined time, after the timer of the MCU finishes timing based on the predetermined time, the MCU sends a first OFF signal to one input pin of the AND gate circuit D36 to turn off the control switch 36.

[0141] In this embodiment, the first OFF signal received by the AND gate circuit D36 may be an L-level signal. Specifically, as shown in FIG. 15, an H-level signal that turns on the triode QM2 is sent from the STM32_1108_IO pin of the MCU to one input pin of the AND gate circuit D36 (the cathode of the diode below the AND gate circuit D36), and an L-level “MCU_CL” signal (the cathode of the diode below the AND gate circuit D36 is grounded via the triode QM2) is obtained.

[0142] In step S413, the AND gate circuit D36 transmits a control signal to the control switch 36 to turn off the control switch 36 based on the second ON signal and the first OFF signal.

[0143] Specifically, as shown in FIG. 15, the second ON signal and the first OFF signal of the two input pins of the AND gate circuit D36 are the VBS_CL signal and the MCU_CL signal, respectively, the “VBS_CL” signal is an H level signal, and the “MCU_CL” signal is an L level signal, the lower diode of the AND gate circuit D36 is turned on while the upper diode is turned off, the AND gate circuit D36 outputs an L level signal, and this L level signal controls the triode QM3 to be turned off via the resistor RM11, the internal power supply VBAT outputs an H level signal to the gate G of the field effect transistor Q4 via the resistors RM7 and RM9, the field effect transistor Q4 is turned off, the connection between the source S and the drain D is cut off, and the power supply connection path between the internal power supply of the data transmission device 3 and the data transmission module 32 is cut off.

[0144] The above steps S412-S413 are possible application scenarios in which the user removes the data transmission device 3 from the electronic device 1 and the next electronic device 1 is not inserted within this predetermined time (the user has already completed the data transmission and no longer uses the data transmission device 3). In such scenarios, if an external power source is not connected to the data transmission device 3 within this predetermined time, it is considered that the user has already completed the current data transmission request and has cut off the internal power supply, so that the power of the internal power source of the data transmission device 3 can be saved.

[0145] Optionally, in the above procedure of steps S401-S413, the MCU can be in the second power consumption operating state by being powered by the power source of the data transmission device 3. Therefore, it should be understood that before S401, the MCU maintains the first power consumption operating state if it does not receive the detection data or the interrupt signal, and switches to the second power consumption operating state after receiving the detection data or the interrupt signal in S401. Optionally, the first power consumption operating state can be a low power consumption operating state, and the second power consumption operating state can be a high power consumption operating state.

[0146] 4 to 25 of the present application, the power supply 33 of the data transmission device 3 is provided inside the data transmission device 3. In another possible embodiment, the data transmission device 3 described in each embodiment of the present application may be connected to an external power supply and may be powered from the external power supply when the electronic device 1 is not turned on.

[0147] For example, Fig. 26 is a block schematic diagram of an application scene of a data transmission device according to an embodiment of the present application. A power supply interface 39 is provided in the data transmission device 3, and when a user uses the data transmission device 3, the power supply interface 39 is connected to an external power supply 5, and then the external power supply 5 can supply power to the data transmission device 3. At this time, the power supply function realized by the power supply interface 39 of the power supply 5 is similar to the power supply function by the power supply 33 in each embodiment shown in Figs. 4 to 25 of the present application, and detailed description thereof will be omitted.

[0148] The data transmission method of each of the above embodiments may be performed by an integrated circuit such as an MCU or SoC. The integrated circuit such as an MCU or SoC includes one or more processors, a memory, and a program, the program being stored in the memory and configured to be executed by the one or more processors, and the program being configured to perform the data transmission method of the above embodiments.

[0149] Those skilled in the art should understand that all or part of the steps of each of the above method embodiments can be realized by software, for example, a coded program. The program may be stored in a storage medium readable by a data transmission device. When the data transmission device executes the program, the data transmission device executes the steps of the data transmission method of each of the above embodiments of the present application. The storage medium includes various media capable of storing program code, such as a ROM, a RAM, a magnetic disk, or an optical disk.

[0150] For example, FIG. 27 is a flow diagram of an embodiment of the data transmission method according to the present application. In the embodiment as shown in FIG. 27, a schematic diagram is shown in which a data transmission device realizes the data transmission method according to the present application by software, and may be applied to a scene as shown in FIG. 1. The execution subject may be the data transmission device, or a more specific processor of the data transmission device, such as a CPU, GPU, SoC, or MCU of the data transmission device. In the following, taking as an example an execution subject the data transmission device, specifically, the data transmission method as shown in FIG. 27 includes the following steps.

[0151] S501 is to receive detection data or an interrupt signal from a vibration sensor.

[0152] S502 is, when it is determined that the acceleration value of the vibration sensor itself exceeds the acceleration threshold value or an interrupt signal is received, the power supply of the data transmission device is controlled to supply power to the data transmission module.

[0153] Specifically, the method according to the present embodiment may be applied to a data transmission device, which is provided with a vibration sensor, a power source for supplying power to the data transmission module, and a data transmission module for performing data communication with a display means.

[0154] In a specific embodiment, a vibration sensor provided in the data transmission device is used to generate detection data including an acceleration value of the vibration sensor itself according to the movement status of the data transmission device, and after the data transmission device receives detection data by the vibration sensor in S501, if it is determined in S502 that the acceleration value of the vibration sensor itself in the detection data exceeds a predetermined acceleration threshold, the power supply of the data transmission device is controlled to supply power to the data transmission module.

[0155] In another specific embodiment, the vibration sensor generates an interrupt signal when the acceleration value of the generated detection data exceeds a predetermined acceleration threshold, and after the data transmission device receives the interrupt signal emitted from the vibration sensor in S501, the power supply of the data transmission device is controlled to supply power to the data transmission module based on the interrupt signal in S502.

[0156] Therefore, in the data transmission method according to the present embodiment, the data transmission device controls the data transmission module to be powered from the power source of the data transmission device after the movement of the data transmission device is detected by the vibration sensor, and when the data transmission device is not in use, the power source does not supply power to the data transmission module, and when the data transmission device is moved by the user, the power source controls the data transmission module to be powered. The data transmission device implementing the method according to the present embodiment can achieve both space and efficiency, and when the power source of the data transmission device does not need to have an excessive capacity or volume, the response speed and operating efficiency of the data transmission device during data transmission can also be improved.

[0157] Optionally, after S502, the method further includes: after it is determined that the electronic device is connected to the communication interface of the data transmission device, receiving stream media data from the communication interface, encoding the stream media data, and then sending the encoded stream media data to a display means at S503.

[0158] Here, after the data transmission module is powered by the power source and completes the startup related settings, it can start to receive stream media data from the electronic device corresponding to its display screen through the communication interface, and encode and send the stream media data to the display means, thereby improving the response speed of the data transmission device to the stream media data sent from the electronic device connected by the user through the communication interface, providing a "plug and play" user experience, and improving the operation efficiency of the data transmission module.

[0159] More specifically, in S502, when the data transmission device determines that the acceleration value of the vibration sensor itself exceeds a predetermined acceleration threshold or receives the interrupt signal, and the communication interface is not powered on by an external power source, the data transmission device controls the power source to supply power to the data transmission module. After S502, when the data transmission device determines that the communication interface is powered on by an external power source, the data transmission device can stop power supply from the power source to the data transmission module. That is, the data transmission device controls the power source to supply power to the data transmission module only when there is no external power source, and when the communication interface is connected to an external power source of another electronic device, the power source does not need to continue powering the data transmission module, thereby reducing power consumption.

[0160] Alternatively, if there is no external power supply to the communication interface for a first predetermined time after the data transmission device executes S502, the data transmission device can be controlled to stop the power supply from the power source to the data transmission module after the first predetermined time has elapsed. Specifically, the first predetermined time is set to ensure that the data transmission device does not cause continuous power supply from the power source to the data transmission module due to movement of the data transmission device due to miscontact with the data transmission device by a non-user, thereby reducing power consumption.

[0161] Alternatively, when the data transmission device determines that the communication interface is powered on and disconnected from the communication interface after executing S502, if there is no external power supply to the communication interface for a second predetermined time after disconnection, the data transmission device continues to control the data transmission module to supply power from the power source for the second predetermined time. Correspondingly, if there is no external power supply to the communication interface for a second predetermined time, after the second predetermined time has elapsed, the data transmission device controls the data transmission module to stop supplying power from the power source. If there is no external power supply to the communication interface for the second predetermined time, when the data transmission device continues to control the data transmission module to supply power from the power source for the second predetermined time, when a user switches the data transmission device from one electronic device to another electronic device, the data transmission module can maintain an operating state during the switching process, and the data transmission device is not immediately powered off due to the external power supply being disconnected after the data transmission device is removed, so that when a user removes one electronic device and inserts a next electronic device, the data transmission device can quickly transmit data, improving the operation efficiency.

[0162] Optionally, in the above embodiment, the data transmission device transmits the encoded stream media data to the display means and also transmits a data transmission command to the display means, the data transmission command being for instructing the display means to process and display the received encoded stream media data. In response, the data transmission device may transmit a transmission stop command to the display means to instruct the display means to stop continuously displaying the received encoded stream media data.

[0163] In one scenario, the data transmission device may transmit the encoded stream media data and the data transmission command to the display means after receiving a start command input by a user, and may stop transmitting the encoded stream media data to the display means and send a transmission stop command to the display means after receiving a stop command input by a user. In another scenario, when the data transmission device detects a disconnection of an external power source from a communication interface, it stops transmitting the encoded stream media data to the display means and sends a transmission stop command to the display means.

[0164] Specifically, according to the data transmission method of this embodiment, the data transmission device stops sending screen sharing commands from the data transmission module to the display means in response to a user's stop command or after the external power detection module detects that the external power has been disconnected from the communication interface, so that the display means will not continue to display the display screen of the electronic device. This improves the response speed of the data transmission device to user's disconnection commands and operations, improves the response speed and projection efficiency of the data transmission device, and can also protect the user's privacy to a certain extent. When the user mistakenly displays private information on the screen, the display can be quickly prevented, and further improves the user experience of the data transmission device.

[0165] Also, for example, Figure 28 is a flow diagram of one embodiment of the data transmission method according to the present application. In the embodiment as shown in Figure 28, another data transmission device shows the schematic diagram of the data transmission method according to the present application by software, and may be applied to the scene as shown in Figure 1. The execution subject may be the data transmission device, or a processor of the data transmission device, etc. Specifically, the data transmission method shown in Figure 28 includes the following steps.

[0166] S601 is to start supplying power from the built-in power source of the data transmission device to the data transmission module based on the information transmitted from the sensor.

[0167] Specifically, the method according to the present embodiment may be applied to a data transmission device. The data transmission device is provided with a sensor for detecting whether the data transmission device has been moved. The sensor may be a vibration detector. When the sensor detects the movement of the data transmission device (for example, the vibration detector detects that the acceleration of the data transmission device exceeds a predetermined acceleration threshold), a user may attempt to transmit data using the data transmission device. Therefore, the sensor emits information, and after the data transmission device receives the information transmitted from the sensor, a built-in power source provided inside the data transmission device is started to supply power to the data transmission module.

[0168] S602 is to establish a communication link with a display means.

[0169] Specifically, in S601, after the data transmission module is powered from the built-in power source, the data transmission module can perform startup-related settings, including at least communication settings for communication between the data transmission module and the display means, and can establish a communication link between the data transmission module and the display means. Optionally, after the electronic device is input into the data transmission device and the communication link is established, the data transmission device receives data from the electronic device, encodes the data, and transmits the encoded data to the display means through the established communication link. Optionally, the data transmission module can be a Wi-Fi module, and the communication link can be a Wi-Fi communication link.

[0170] S603: when a connection with an electronic device is detected, the data transmission device stops supplying power to the data transmission module from its built-in power source.

[0171] Specifically, when the data transmission device detects a connection between the data transmission device and an electronic device, it can supply power to the data transmission device from the power supply of the electronic device, and can control the power supply inside the data transmission device to stop supplying power to the data transmission module, thereby avoiding direct charging from the power supply of the electronic device to the power supply inside the data transmission device.

[0172] S604 is to receive data from the electronic device and transmit the data to the display means via the established communication link.

[0173] In some embodiments, after detecting the connection with the electronic device, the data transmission device can receive data corresponding to the display screen from the electronic device, encode the data, and transmit the encoded data to the display means through the established communication link. Optionally, after detecting the connection with the electronic device, the data transmission device can execute S603 and S604 simultaneously, or there is no limitation on the order of execution thereof.

[0174] 28, in some embodiments, if the data transmission device detects a disconnection from the connected electronic device, the data transmission device starts up its built-in power supply to supply power to the data transmission module, and the established communication link between the data transmission device and the display means is also maintained. If the data transmission device does not detect that any electronic device is connected to the data transmission device for a predetermined time, the data transmission device stops continuous power supply from its built-in power supply to the data transmission module after the predetermined time has elapsed, and after the data transmission module is no longer powered, the established communication link between the data transmission device and the display means is cut off. Therefore, in this embodiment, when a user switches the data transmission device from one electronic device to another electronic device, the data transmission device quickly switches to power supply from the built-in power source during the switching process, so that a seamless switch from power supply from an external power source to power supply from the built-in power source of the data transmission device can be realized. The data transmission device maintains an operating state and maintains an established communication link, and does not immediately power off due to disconnection of the external power source after the data transmission device is removed. Therefore, when a user removes one electronic device and inserts a new electronic device, the data transmission device can quickly transmit data. This realizes plug-and-play during the data transmission process of alternating switching between multiple electronic devices by the data transmission device, and improves operating efficiency.

[0175] In some other embodiments, after S604 as shown in Fig. 28, if the data transmission device detects a disconnection from the connected electronic device, the data transmission device is no longer powered by the power source of the electronic device, so the data transmission device is powered off and the communication link between the data transmission device and the display means is disconnected, and then the data transmission device starts its built-in power source to supply power to the data transmission module, and after the data transmission module is powered by the built-in power source of the data transmission device, the communication setting between the data transmission device and the display means is performed again, and the communication link between the data transmission device and the display means is re-established. The data transmission device starts the communication setting with the display means before being inserted into the next electronic device, and data transmission is quickly performed when the data transmission device is inserted into the next electronic device, reducing or eliminating the waiting time of the user, realizing plug and play in the data transmission process of switching between multiple electronic devices by the data transmission device, and improving the response speed and operation efficiency of the data transmission device during data transmission. An exemplary embodiment of the present application further provides a wireless screen sharing device.

[0176] The wireless screen sharing device includes a wireless transmitting means (realized by the data transmission module of the embodiment of the present application), a vibration sensor, a microcontroller, a switch means (realized by the control switch of the embodiment of the present application), and a power supply means (realized by the power supply of the embodiment of the present application). Here, the vibration sensor is for detecting whether the wireless screen sharing device has moved in at least one predetermined direction. The microcontroller is electrically connected to the vibration sensor. The switch means is electrically connected to the microcontroller, the power supply means, and the wireless transmitting means, respectively. The microcontroller controls the on / off of the switch means.

[0177] In the present application, when the vibration sensor detects the occurrence of movement of the wireless screen sharing device, it transmits the detected signal to the microcontroller, the microcontroller controls the switch means to turn on, the power supply means supplies power to the wireless transmitting means, and the wireless transmitting means starts preparation for data transmission after receiving power, i.e., the wireless transmitting means prepares for data transmission before the wireless screen sharing device is connected to the computer, thereby shortening the preparation time from the computer to data transmission of the wireless transmitting means and further shortening the time for computer data to be transmitted to the display. The wireless screen sharing device performs startup preparation for 3 to 5 seconds before being connected to the computer, and compared to conventional wireless screen sharing devices, the waiting time from when the user inserts the wireless screen sharing device into the computer until screen sharing is normally performed is shortened by 3 to 5 seconds.

[0178] In one embodiment of the present application, when the vibration sensor does not detect the occurrence of movement of the wireless screen sharing device, the microcontroller controls the switch means to be in an off state and does not supply power to the wireless transmitting means. In contrast to the situation in which all circuit modules are constantly powered in the related art, when the device does not transmit data through the wireless screen sharing device, the battery does not need to supply power to the wireless transmitting means, so that power can be saved, the continuous power supply time of the wireless screen sharing device can be increased, and even a battery with a smaller capacity can be selected to meet the needs of actual applications, and the volume required for the wireless screen sharing device can be reduced, meeting the needs of small devices at present, and making it convenient to apply and carry.

[0179] In one embodiment of the present application, the wireless transmitting means includes a system chip and a wireless transmitting module, one end of the system chip is electrically connected to the switch means and the other end is electrically connected to the wireless transmitting module. When the switch means is on, the power supply means supplies power to the system chip, and the system chip controls the wireless transmitting module to start the operation, including starting data transmission preparation and data transmission.

[0180] In one embodiment of the present application, the wireless screen sharing device has a housing having a storage chamber for housing the wireless transmitting means, vibration sensor, microcontroller, switch means and power supply means, simplifying the configuration of the wireless screen sharing device and reducing the space it occupies.

[0181] In one embodiment of the present application, the power supply means includes a power management circuit (realized by the power management module of the embodiment of the present application) and a battery, the power management circuit is electrically connected to the microcontroller, the battery and the switch means respectively, and the battery supplies power to the microcontroller and the switch means through the power management circuit. In a specific embodiment of the present application, the power management circuit may be a power management chip, and the power management chip PMU (power management unit) chip may be a highly integrated and portable power management chip. The power management chip integrates multiple types of traditional discrete power management devices into one package. In this way, higher power conversion efficiency and lower power consumption are achieved, and fewer modules are used to fit the reduced board space. Specifically, the power management chip may be a RK805-2 chip, and those skilled in the art can select a suitable power management chip according to the actual situation.

[0182] In one embodiment of the present application, the wireless screen sharing device further includes a power supply interface, the power supply interface is electrically connected to the power management circuit, and the power supply interface can realize power supply to the wireless screen sharing device through the power supply interface. Needless to say, the battery can also be charged through the power supply interface.

[0183] In one embodiment of the present application, the power supply interface may be a USB interface, a TypeC interface, an HDMI (registered trademark) interface, a DP interface, etc. Since a USB interface is generally integrated in a computer, when the power supply interface selects a USB interface, the computer can directly supply power to the wireless screen sharing device, and of course, when the computer does not supply power to the wireless screen sharing device, the computer can supply power from an external power source such as a power bank. The power supply interface is not limited to the above interface, but may be any interface as long as it satisfies the power supply to the wireless screen sharing device via the power supply interface.

[0184] In one embodiment of the present application, the battery is a rechargeable battery, specifically a lithium battery, and when the wireless screen sharing device is not powered through a power interface, the wireless screen sharing device can be powered by its own battery, which makes the power supply method of the wireless screen sharing device more flexible and improves the portability of the wireless screen sharing device, and the device does not need to constantly power all the circuit modules, that is, it only needs to store a small-capacity lithium battery in the storage chamber of the device, which is advantageous for the appearance design of the device.

[0185] Of course, the battery of the present application is not limited to the above lithium battery, but may be other suitable batteries, and those skilled in the art can select a suitable battery according to the actual situation.

[0186] In one embodiment of the present application, the vibration sensor may be at least one of an accelerometer, a gyro, a displacement sensor, a speed sensor, a vibration sensor, etc., which can detect the occurrence of movement of the wireless screen sharing device, and a person skilled in the art may select an appropriate sensor according to the actual situation. In addition, the position of the vibration sensor in the receiving chamber of the wireless screen sharing device is set according to the actual situation. Optionally, the vibration sensor is provided at a position sensitive to a movement signal of the wireless screen sharing device, thus shortening the time for the vibration sensor to detect a signal of the occurrence of movement of the wireless screen sharing device, and further shortening the time for data transmission of the wireless screen sharing device.

[0187] In one embodiment of the present application, the switch means may be an electronic component that plays a role of switching, such as a single-pole double-throw (SPDT), a diode, a transistor, a mercury switch, etc. Those skilled in the art can select an appropriate switch means according to the actual situation. Of course, the switch means can also be realized by a multiple circuit design. In one specific embodiment of the present application, the switch means is connected to one pin of a microcontroller, and the level of the pin is controlled to control the on / off of the switch means, for example, when the pin is at H level, the switch means is turned on, and when the pin is at L level, the switch means is turned off. Alternatively, a small-volume electronic element can be selected as the switch means to save space.

[0188] In one embodiment of the present application, the wireless screen sharing device further includes a wireless receiving means for receiving data from a computer through a wireless transmitting means, and transmitting the received data to a display means through a data transmission interface for displaying the data. The data transmission interface may be a video interface for outputting data, such as an HDMI (registered trademark) interface, a VGA interface, or a DP interface.

[0189] In another exemplary embodiment of the present application, an electronic system is provided. The electronic system includes any one of the wireless screen sharing devices described above. In the system, when the vibration sensor detects the occurrence of movement of the wireless screen sharing device, the system transmits the detected signal to the microcontroller, the microcontroller controls the switch means to be on, the power supply means supplies power to the wireless transmitting means, and the wireless transmitting means starts preparation for data transmission, i.e., the wireless transmitting means prepares for data transmission before the wireless screen sharing device is connected to the computer, thereby shortening the preparation time from the computer to data transmission of the wireless transmitting means, and further shortening the time until the computer transmits data to the display. Before the wireless screen sharing device is connected to the computer, the startup preparation is performed for 3 to 5 seconds, i.e., compared to the conventional wireless screen sharing device, the waiting time from when the user inserts the wireless screen sharing device into the computer until screen sharing is normally performed is shortened by 3 to 5 seconds. If the vibration sensor does not detect the occurrence of movement of the wireless screen sharing device, the microcontroller controls the switch means to be in an off state, and does not supply power to the wireless transmitting means. In contrast to the situation in related technologies where all circuit modules are constantly powered, when the device is not transmitting data through the wireless screen sharing device, the battery does not need to power the wireless transmitting means, thereby saving power, increasing the continuous power supply time of the wireless screen sharing device, and even allowing the selection of a battery with a smaller capacity to meet the needs of actual applications, thereby reducing the volume required for the wireless screen sharing device, meeting the small size needs of current devices, and making it convenient for application and portability.

[0190] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:

[0191] 1) In the wireless screen sharing device of the present application, when the vibration sensor detects the occurrence of movement of the wireless screen sharing device, it transmits the detected signal to the microcontroller, the microcontroller controls the switch means to turn on, the power supply means supplies power to the wireless transmitting means, and the wireless transmitting means starts preparation for data transmission, i.e., the wireless transmitting means prepares for data transmission before the wireless screen sharing device is connected to the computer, thereby shortening the preparation time from the computer to data transmission of the wireless transmitting means, and further shortening the time for computer data to be transmitted to the display. The wireless screen sharing device performs startup preparation for 3 to 5 seconds before being connected to the computer, and compared to conventional wireless screen sharing devices, the waiting time from when the user inserts the wireless screen sharing device into the computer until normal screen sharing is performed is shortened by 3 to 5 seconds.

[0192] 2) In the electronic system of the present application, when the vibration sensor detects the occurrence of movement of the wireless screen sharing device, it transmits the detected signal to the microcontroller, and the microcontroller controls the switch means to turn on, the power supply means supplies power to the wireless transmitting means, and the wireless transmitting means starts preparation for data transmission, i.e., the wireless transmitting means prepares for data transmission before the wireless screen sharing device is connected to the computer, thereby shortening the preparation time from the computer to data transmission of the wireless transmitting means, and further shortening the time until the computer transmits data to the display. Before the wireless screen sharing device is connected to the computer, the startup preparation takes 3 to 5 seconds, i.e., compared to the conventional wireless screen sharing device, the waiting time from when the user inserts the wireless screen sharing device into the computer until screen sharing is normally performed is shortened by 3 to 5 seconds. If the vibration sensor does not detect the occurrence of movement of the wireless screen sharing device, the microcontroller controls the switch means to the off state and does not supply power to the wireless transmitting means. In contrast to the situation in related technologies where all circuit modules are constantly powered, when the device does not transmit data through the wireless screen sharing device, the battery does not need to power the wireless transmitting means, thereby saving power, increasing the continuous power supply time of the wireless screen sharing device, and even allowing the selection of a battery with a smaller capacity to meet the needs of actual applications, thereby reducing the volume required for the wireless screen sharing device, meeting the small size needs of current devices, and making it convenient for application and portability.

[0193] An exemplary embodiment of the present application further provides a wireless screen sharing device.

[0194] The wireless screen sharing device includes a wireless transmitting means (realized by the data transmission module of the embodiment of the present application), a vibration sensor, a system chip (realized by the SoC of the data transmission device of the embodiment of the present application, and in some specific embodiments, the system chip is also used to perform functions similar to those of the microcontroller in the embodiment of the present application), a switch means (realized by the control switch of the embodiment of the present application), and a power supply means (realized by the power supply of the embodiment of the present application), wherein the vibration sensor is for detecting whether the wireless screen sharing device has moved in at least one predetermined direction, the system chip is electrically connected to the vibration sensor and the wireless transmitting means, respectively, the switch means is electrically connected to the system chip, the power supply means, and the wireless transmitting means, respectively, and the system chip controls the on / off of the switch means.

[0195] In the present application, when the vibration sensor detects the occurrence of movement of the wireless screen sharing device, it transmits the detected signal to the system chip, the system chip controls the switch means to turn on, the power supply means supplies power to the wireless transmitting means, and the wireless transmitting means starts preparation for data transmission after being energized, i.e., the wireless transmitting means prepares for data transmission before the wireless screen sharing device is connected to the computer, thereby shortening the preparation time from the computer to data transmission of the wireless transmitting means and further shortening the time for computer data to be transmitted to the display. The wireless screen sharing device performs startup preparation for 3 to 5 seconds before being connected to the computer, and compared to conventional wireless screen sharing devices, the waiting time from when the user inserts the wireless screen sharing device into the computer until normal screen sharing is performed is shortened by 3 to 5 seconds.

[0196] In one embodiment of the present application, when the vibration sensor does not detect the occurrence of movement of the wireless screen sharing device, the system chip controls the switch means to an off state and does not supply power to the wireless transmitting means. In contrast to the situation in which all circuit modules are constantly powered in the related art, when the device does not transmit data through the wireless screen sharing device, the battery does not need to supply power to the wireless transmitting means, so that power can be saved, the continuous power supply time of the wireless screen sharing device can be increased, and a battery with a smaller capacity can be selected to meet the needs of actual applications, and the volume required for the wireless screen sharing device can be reduced, meeting the needs of small devices at present, and making it convenient to apply and carry.

[0197] In one embodiment of the present application, the system chip is used for data transmission from a computer to the wireless transmitting means.

[0198] In one embodiment of the present application, the wireless screen sharing device has a housing having a storage chamber for storing the wireless transmitting means, the vibration sensor, the system chip, the switch means and the power supply means, thereby simplifying the configuration of the wireless screen sharing device and reducing the space it occupies.

[0199] In one embodiment of the present application, the power supply means includes a power management circuit (realized by the power management module of the embodiment of the present application) and a battery, the power management circuit is electrically connected to the system chip, the battery and the switch means respectively, and the battery supplies power to the system chip and the switch means through the power management circuit. In a specific embodiment of the present application, the power management circuit may be a power management chip, and the power management chip PMU (power management unit) chip may be a highly integrated and portable power management chip. The power management chip integrates multiple types of traditional discrete power management devices into one package. In this way, higher power conversion efficiency and lower power consumption are achieved, and fewer modules are used to fit the reduced board space. Specifically, the power management chip may be a RK805-2 chip, and those skilled in the art can select a suitable power management chip according to the actual situation.

[0200] In one embodiment of the present application, the wireless screen sharing device further includes a power interface, and the power interface is electrically connected to the power management circuit. The wireless screen sharing device can be powered through the power interface. It goes without saying that the battery can be charged through the power interface.

[0201] In one embodiment of the present application, the power supply interface is any one of a USB interface, a TypeC interface, an HDMI (registered trademark) interface, a DP interface, etc. Generally, a computer is integrated with a USB interface, so when the power supply interface selects a USB interface, the computer can directly supply power to the wireless screen sharing device, and of course, when the computer does not supply power to the wireless screen sharing device, the power can be supplied from an external power source such as a power bank. The power supply interface is not limited to the above interface, but may be any interface that satisfies the power supply to the wireless screen sharing device via the power supply interface. In one embodiment of the present application, the battery is a rechargeable battery, specifically a lithium battery, and when the wireless screen sharing device is not powered through a power interface, the wireless screen sharing device can be powered by its own battery, which makes the power supply method of the wireless screen sharing device more flexible and improves the portability of the wireless screen sharing device, and the device does not need to constantly power all the circuit modules, that is, it only needs to store a small-capacity lithium battery in the storage chamber of the device, which is advantageous for the appearance design of the device.

[0202] Of course, the battery of the present application is not limited to the above lithium battery, but may be other suitable batteries, and those skilled in the art can select a suitable battery according to the actual situation.

[0203] In one embodiment of the present application, the vibration sensor may be at least one of an accelerometer, a gyro, a displacement sensor, a speed sensor, a vibration sensor, etc., which can detect the occurrence of movement of the wireless screen sharing device, and a person skilled in the art may select an appropriate sensor according to the actual situation. In addition, the position of the vibration sensor in the receiving chamber of the wireless screen sharing device is set according to the actual situation. Optionally, the vibration sensor is provided at a position sensitive to a movement signal of the wireless screen sharing device, thus shortening the time for the vibration sensor to detect a signal of the occurrence of movement of the wireless screen sharing device, and further shortening the time for data transmission of the wireless screen sharing device.

[0204] In one embodiment of the present application, the switch means may be an electronic component that plays a role of switching, such as a single-pole double-throw (SPDT), a diode, a transistor, a mercury switch, etc. Of course, the switch means may also be realized by a multiple circuit design. Those skilled in the art may select an appropriate switch means according to the actual situation. In one specific embodiment of the present application, the switch means is connected to one pin of a system chip, and the level of the pin is controlled to control the on / off of the switch means, for example, when the pin is at H level, the switch means is turned on, and when the pin is at L level, the switch means is turned off. Alternatively, a small-volume electronic element may be selected as the switch means, thereby saving space.

[0205] In one embodiment of the present application, the wireless screen sharing device further includes a wireless receiving means for receiving data received from the computer by the wireless transmitting means, and transmitting the received data to the display means via a data transmission interface for displaying. The data transmission interface may be a video interface for outputting data, such as an HDMI (registered trademark) interface, a VGA interface, or a DP interface.

[0206] In another exemplary embodiment of the present application, an electronic system is provided. The electronic system includes any one of the wireless screen sharing devices described above. In the system, when the vibration sensor detects the occurrence of movement of the wireless screen sharing device, the system chip transmits the detected signal to the system chip, the system chip controls the switch means to be on, the power supply means supplies power to the wireless transmitting means, and the wireless transmitting means starts preparation for data transmission, i.e., the wireless transmitting means prepares for data transmission before the wireless screen sharing device is connected to the computer, thereby shortening the preparation time from the computer to data transmission of the wireless transmitting means, and further shortening the time until the computer transmits data to the display. Before the wireless screen sharing device is connected to the computer, the startup preparation is performed for 3 to 5 seconds, i.e., compared to the conventional wireless screen sharing device, the waiting time from when the user inserts the wireless screen sharing device into the computer to when the screen sharing is normally performed is shortened by 3 to 5 seconds. If the vibration sensor does not detect the occurrence of movement of the wireless screen sharing device, the system chip controls the switch means to be in an off state, and does not supply power to the wireless transmitting means. In contrast to the situation in related technologies where all circuit modules are constantly powered, when the device is not transmitting data through a wireless screen sharing device, the battery does not need to power the wireless transmitting means, thereby saving power, increasing the continuous power supply time of the wireless screen sharing device, and even allowing the selection of a battery with a smaller capacity to meet actual application needs, thereby reducing the volume required for the wireless screen sharing device, meeting the small size needs of current devices, and making it convenient for application and portability.

[0207] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:

[0208] 1) In the wireless screen sharing device of the present application, when the vibration sensor detects the occurrence of movement of the wireless screen sharing device, it transmits the detected signal to the system chip, the system chip controls the switch means to turn on, the power supply means supplies power to the wireless transmitting means, and the wireless transmitting means starts preparation for data transmission after being energized, i.e., the wireless transmitting means prepares for data transmission before the wireless screen sharing device is connected to the computer, thereby shortening the preparation time from the computer to data transmission of the wireless transmitting means and further shortening the time for computer data to be transmitted to the display. The wireless screen sharing device performs startup preparation for 3 to 5 seconds before being connected to the computer, and compared to conventional wireless screen sharing devices, the waiting time from when the user inserts the wireless screen sharing device into the computer to when screen sharing is normally performed is shortened by 3 to 5 seconds.

[0209] 2) In the electronic system of the present application, when the vibration sensor detects the occurrence of movement of the wireless screen sharing device, it transmits the detected signal to the system chip, and the system chip controls the switch means to turn on, the power supply means supplies power to the wireless transmitting means, and the wireless transmitting means starts preparation for data transmission, i.e., the wireless transmitting means prepares for data transmission before the wireless screen sharing device is connected to the computer, thereby shortening the preparation time from the computer to data transmission of the wireless transmitting means, and further shortening the time until the computer transmits data to the display. Before the wireless screen sharing device is connected to the computer, it performs startup preparation for 3 to 5 seconds, i.e., compared to the conventional wireless screen sharing device, the waiting time from when the user inserts the wireless screen sharing device into the computer to when screen sharing is normally performed is shortened by 3 to 5 seconds. If the vibration sensor does not detect the occurrence of movement of the wireless screen sharing device, the system chip controls the switch means to the off state and does not supply power to the wireless transmitting means. In contrast to the situation in related technologies where all circuit modules are constantly powered, when the device does not transmit data through the wireless screen sharing device, the battery does not need to power the wireless transmitting means, thereby saving power, increasing the continuous power supply time of the wireless screen sharing device, and even allowing the selection of a battery with a smaller capacity to meet the needs of actual applications, thereby reducing the volume required for the wireless screen sharing device, meeting the small size needs of current devices, and making it convenient for application and portability.

[0210] It should be understood that in the above data transmission device according to the present application, the division of each module may be merely a division of logical functions, and when actually realized, all or part of the modules may be integrated into one physical entity or may be physically separated. Furthermore, all of these modules may be realized by calling software by a processing element, or part of the modules may be realized by calling software by a processing element and other parts of the modules may be realized by hardware. For example, the microcontroller of the data transmission device may be a processing element provided separately, or may be integrated into a chip of the data transmission device. It may be stored in the memory of the data transmission device as a program code, and may be called by a processing element of the data transmission device to execute the functions of the data transmission device. The implementation form of the other modules is similar. It may be integrated together or may be implemented separately. The processing element described herein may be an integrated circuit. In the implementation process, each step of the above method or each of the above modules may be realized by an integrated logic circuit of the hardware of the processor element, or by instructions by software. For example, the above modules may be one or more integrated circuits implementing the above methods, such as one or more application specific integrated circuits (ASICs), one or more microprocessors (DSPs), one or more field programmable gate arrays (FPGAs), etc. When a certain module is implemented by calling a program code by a processing element, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor capable of calling a program code. These modules may also be integrated together and implemented by a system-on-a-chip (SOC).

[0211] In the above embodiments, all or part may be realized by software, hardware, firmware, or any combination thereof. When realized by software, all or part may be realized as a computer program product. The computer program product may include one or more computer instructions. When the computer program instructions are loaded and executed in a computer, all or part of the flow or function according to the embodiments of the present application is generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another, for example, the computer instructions may be transmitted from a website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, radio, microwave, etc.). The computer-readable storage medium may be any medium accessible by a computer, or a data storage device such as a server, data center, etc. integrated with one or more available media. The computer-readable storage medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital video disc, a DVD), or a semiconductor medium (e.g., a solid state disk, an SSD).

[0212] In the embodiments of the present application, "at least one" means one or more, and "multiple" means two or more. "And / or" describes a relationship with a related object, and indicates that three relationships can exist. For example, A and / or B may indicate three cases: only A exists, both A and B exist, and only B exists. Here, A and B may be singular or plural. It should be understood that the various numeral symbols in the embodiments of the present application are merely distinguished for convenience of explanation without limiting the scope of the embodiments of the present application. In the embodiments of the present application, the magnitude of the numbers of the above processes does not mean the order of execution, and the order of execution of each process is determined by its function or inherent logic, and it should be understood that there is no limitation on the processes implemented in the embodiments of the present application.

Claims

1. A data transmission method applied to a data transmission device, comprising: The microcontroller receives the detection data or an interrupt signal; the external power detection module sends a second ON signal to the AND gate circuit for turning on the control switch; the microcontroller sends a first ON signal to the AND gate circuit to turn on a control switch; the AND gate circuit transmits a control signal to the control switch to turn on the control switch so as to make a power supply connection path between a power supply of the data transmission device and a data transmission module conductive based on the first ON signal and the second ON signal input thereto; A data transmission method comprising:

2. the external power supply detection module transmits a second OFF signal to the AND gate circuit to turn off the control switch when detecting that an external power supply is turned on; The external power detection module sends a signal to the microcontroller indicating that an external power source is turned on; the microcontroller sends a first ON signal to the AND gate circuit to turn on a control switch; the AND gate circuit transmits a control signal to the control switch based on the first ON signal and the second OFF signal input thereto to turn off the control switch; The data transmission method of claim 1 , further comprising:

3. the external power supply detection module transmits a second ON signal to the AND gate circuit to turn on a control switch when detecting a cutoff of the external power supply; the external power detection module sends a signal to the microcontroller indicating that an external power source is not turned on; a timer of the microcontroller starting timing based on a predetermined time; the AND gate circuit transmits a control signal to the control switch to turn on the control switch based on the second ON signal transmitted from the external power supply detection module and the first ON signal transmitted from the microcontroller; The data transmission method of claim 2 further comprising:

4. When the external power supply detection module detects that an external power supply is turned on at the predetermined time, the external power supply detection module transmits a second OFF signal for turning off a control switch to the AND gate circuit, and the AND gate circuit transmits a control signal to the control switch based on the second OFF signal and a first ON signal transmitted from the microcontroller to turn off the control switch.

4. The data transmission method according to claim 3, comprising:

5. When the external power supply detection module does not detect the input of the external power supply during the predetermined time, after the timer of the microcontroller finishes counting based on the predetermined time, the microcontroller sends a first OFF signal to the AND gate circuit to turn off the control switch; the AND gate circuit transmits a control signal to the control switch to turn off the control switch, based on a first OFF signal for turning off the control switch transmitted from the microcontroller and a second ON signal for turning on the control switch transmitted from the external power supply detection module; 5. The data transmission method according to claim 3, further comprising:

6. before the microcontroller receives the detection data or an interrupt signal; The microcontroller is in a first power consumption operating state by being powered by a power source of the data transmission device.

6. The data transmission method according to claim 1, further comprising:

7. The microcontroller is in a second power consumption operating state after receiving the detection data or the interrupt signal. The data transmission method of claim 6, further comprising:

Citation Information

Patent Citations

  • Wireless screen transmission device

    CN209118258U

  • Power source control system for portable terminal equipment

    JP1992307612A

  • Wireless transmitter / Receiver set

    JP2002084361A

  • Portable device

    JP2016063257A

  • Wireless transceiver set

    US20020016188A1