CPC G06F 1/3231 (2013.01) [G06F 1/263 (2013.01); G06F 1/266 (2013.01); G06F 13/4282 (2013.01); G06F 3/1454 (2013.01); G06F 2213/0016 (2013.01); G06F 2213/0042 (2013.01); G09G 3/2092 (2013.01); G09G 2330/021 (2013.01); G09G 2370/16 (2013.01); H04L 12/10 (2013.01); H04N 7/15 (2013.01)] | 19 Claims |
1. A data transmission method, applied to a data transmission device,
wherein the data transmission device comprises:
a power supply;
a microcontroller;
a communication interface;
a vibration sensor;
a controllable switch; and
a data transmission module, wherein the controllable switch is connected between the power supply and the data transmission module, the communication interface is configured to receive data from an electronic device and transmit the received data to the data transmission module, the vibration sensor is configured to generate detection data according to movement of the data transmission device, the data transmission module is used for data communication with a display device, and the microcontroller is configured to control on and off of the controllable switch according to an interrupt signal transmitted by the vibration sensor, and
wherein the data transmission method comprises:
generating, by the vibration sensor, the detection data according to the movement of the data transmission device, wherein the detection data comprises an acceleration value of the vibration sensor itself;
transmitting, by the vibration sensor, the interrupt signal to the microcontroller when the vibration sensor determines that the acceleration value of the vibration sensor itself exceeds a preset acceleration threshold;
transmitting, by the microcontroller, a first connection signal to the controllable switch after the microcontroller receives the interrupt signal;
turning on the controllable switch according to the first connection signal and connecting a power connection between the power supply and the data transmission module;
after the electronic device is connected to the communication interface, receiving, by the data transmission module, streaming media data from the communication interface, and encoding the streaming media data; and
transmitting, by the data transmission module, the encoded streaming media data to the display device.
|