CN108718439B - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
CN108718439B
CN108718439B CN201810497610.5A CN201810497610A CN108718439B CN 108718439 B CN108718439 B CN 108718439B CN 201810497610 A CN201810497610 A CN 201810497610A CN 108718439 B CN108718439 B CN 108718439B
Authority
CN
China
Prior art keywords
equipment
data transmission
remote control
transmission
sides
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810497610.5A
Other languages
Chinese (zh)
Other versions
CN108718439A (en
Inventor
林行
臧义林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Hard Shell Technology Co ltd
Original Assignee
Beijing Hard Shell Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Hard Shell Technology Co ltd filed Critical Beijing Hard Shell Technology Co ltd
Priority to CN201810497610.5A priority Critical patent/CN108718439B/en
Publication of CN108718439A publication Critical patent/CN108718439A/en
Application granted granted Critical
Publication of CN108718439B publication Critical patent/CN108718439B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Abstract

The disclosure relates to a data transmission method and device. The method comprises the following steps: detecting the current distance between second remote control equipment connected with equipment on the other side of data transmission; judging whether the first remote control device and the second remote control device are the same type of device or not; when the judgment result is yes and the current distance is not greater than the preset distance, allowing the equipment on the two sides to carry out data transmission; after the two-side equipment is allowed to carry out data transmission, the data transmission is carried out according to the transmission parameters of the opposite side. Through the technical scheme, the data transmission of the equipment on two sides can be prevented from being manually authorized, the data transmission authorization process is automatically completed, the quick authorization is realized, the data transmission authorization efficiency of the equipment on two sides is improved, and further, the data transmission can be automatically performed according to the transmission parameters on the opposite side after the quick authorization, so that the efficiency of the whole data transmission scheme is further improved.

Description

Data transmission method and device
Technical Field
The present disclosure relates to the field of data processing, and in particular, to a data transmission method and apparatus.
Background
At present, when data are transmitted between two devices, especially when data are transmitted between two large-screen devices, generally, the operation steps are troublesome, and people on two sides need to cooperate with each other for operation, for example, in order to improve transmission safety, people on two sides need to manually authorize each other to transmit data, then manually click the data to be transmitted and click to send, and finally manually confirm to receive, so that a data transmission scheme formed in the whole data transmission process from authorizing the two devices to actually transmit data between the two devices in the related art is time-consuming and labor-consuming, and has low efficiency.
Disclosure of Invention
The embodiment of the disclosure provides a data transmission method and device. The technical scheme is as follows:
according to a first end face of an embodiment of the present disclosure, there is provided a data transmission method including:
detecting the current distance between second remote control equipment connected with equipment on the other side of data transmission;
judging whether the first remote control device and the second remote control device are the same type of device or not;
when the judgment result is yes and the current distance is not greater than the preset distance, allowing the equipment on the two sides to carry out data transmission;
and after the two-side equipment is allowed to carry out data transmission, carrying out data transmission according to the transmission parameters of the opposite side.
In one embodiment, after allowing the two-sided device to perform data transmission, performing data transmission according to the transmission parameters of the opposite side includes:
after the data transmission of the two-side equipment is allowed, the transmission parameters of the one-side equipment are sent to the second remote control equipment, so that the transmission parameters of the one-side equipment are sent to the other-side equipment after the data transmission of the two-side equipment is allowed by the second remote control equipment;
receiving transmission parameters of the equipment on the other side, which are sent by the second remote control equipment after the equipment on the two sides is allowed to carry out data transmission;
sending the transmission parameters of the equipment on the other side to the equipment on one side so as to enable the equipment on the two sides to perform data transmission according to the transmission parameters on the opposite side, wherein the transmission parameters comprise at least one of the following parameters: device identification, network connection information used for said data transmission.
In one embodiment, the method further comprises:
and after the data transmission of the two sides of equipment is allowed, if the current distance is greater than the preset distance, forbidding the two sides of equipment to carry out the data transmission.
In one embodiment, the detecting a current distance between a second remote control device connected to a device on the other side of the data transmission includes:
when the second remote control device is sensed, determining the current distance according to the strength of a sensing signal, wherein the sensing signal comprises: bluetooth signals and/or magnetic field signals.
In one embodiment, the determining whether the first remote control device and the second remote control device are the same type of device includes:
when the induction signal is a Bluetooth signal, acquiring identification information in the Bluetooth signal; wherein the identification information includes: presetting a character string and/or a device identifier;
and judging whether the first remote control equipment and the second remote control equipment are the same type of equipment or not according to the identification information.
In one embodiment, after allowing the two-sided device to perform data transmission, performing data transmission according to the transmission parameters of the opposite side includes:
after allowing the equipment on the two sides to transmit data, acquiring predetermined data to be transmitted;
transmitting the data to be transmitted to the opposite side according to the transmission parameters of the opposite side;
or
After the data transmission of the two-side equipment is allowed, judging whether a transmission gesture is monitored;
and after the transmission gesture is monitored, transmitting the data to be transmitted to the opposite side according to the transmission parameters of the opposite side.
In one embodiment, the allowing the two side devices to perform data transmission when the determination result is yes and the current distance is not greater than the preset distance includes:
when the judgment result is yes and the current distance is not greater than the preset distance, generating prompt information for allowing the equipment on the two sides to perform data transmission;
and when a confirmation instruction aiming at the prompt information is received, allowing the two-side equipment to carry out data transmission.
According to a second aspect of the embodiments of the present disclosure, there is provided a data transmission apparatus including:
the detection module is used for detecting the current distance between second remote control equipment connected with equipment on the other side of data transmission;
the judging module is used for judging whether the first remote control equipment and the second remote control equipment are the same type of equipment or not;
the first processing module is used for allowing the equipment on the two sides to transmit data when the judgment result is yes and the current distance is not greater than the preset distance;
and the transmission module is used for transmitting data according to the transmission parameters of the opposite side after the data transmission of the equipment on the two sides is allowed.
In one embodiment, the transmission module comprises:
the first sending submodule is used for sending the transmission parameters of the equipment on one side to the second remote control equipment after the equipment on two sides is allowed to carry out data transmission, so that the transmission parameters of the equipment on one side are sent to the equipment on the other side after the second remote control equipment is allowed to carry out data transmission;
the receiving submodule is used for receiving the transmission parameters of the equipment on the other side, which are sent by the second remote control equipment after the equipment on the two sides is allowed to carry out data transmission;
the second sending submodule is configured to send the transmission parameter of the device on the other side to the device on the one side, so that the devices on the two sides perform data transmission according to the transmission parameter on the opposite side, where the transmission parameter includes at least one of the following: device identification, network connection information used for said data transmission.
In one embodiment, the apparatus further comprises:
the second processing module is used for forbidding the equipment on the two sides to carry out data transmission if the current distance is greater than the preset distance after the equipment on the two sides is allowed to carry out data transmission;
the detection module comprises:
a determining submodule, configured to determine the current distance according to strength of a sensing signal when the second remote control device is sensed, where the sensing signal includes: bluetooth signals and/or magnetic field signals.
In one embodiment, the determining module comprises:
the first acquisition submodule is used for acquiring identification information in the Bluetooth signal when the induction signal is the Bluetooth signal; wherein the identification information includes: presetting a character string and/or a device identifier;
and the first judgment submodule is used for judging whether the first remote control device and the second remote control device are the same type of device or not according to the identification information.
In one embodiment, the transmission module comprises:
the second obtaining submodule is used for obtaining the predetermined data to be transmitted after the data transmission of the equipment on the two sides is allowed;
the first transmission submodule is used for transmitting the data to be transmitted to the opposite side according to the transmission parameters of the opposite side;
or
The second judgment submodule is used for judging whether a transmission gesture is monitored or not after the data transmission of the equipment on the two sides is allowed;
and the second transmission submodule is used for transmitting the data to be transmitted to the opposite side according to the transmission parameters of the opposite side after the transmission gesture is monitored.
In one embodiment, the first processing module comprises:
the generating submodule is used for generating prompt information for allowing the equipment on the two sides to transmit data or not when the judgment result is yes and the current distance is not greater than the preset distance;
and the processing submodule is used for allowing the two-side equipment to transmit data when receiving a confirmation instruction aiming at the prompt information.
According to a third aspect of the embodiments of the present disclosure, there is provided a data transmission apparatus, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
detecting the current distance between second remote control equipment connected with equipment on the other side of data transmission;
judging whether the first remote control device and the second remote control device are the same type of device or not;
when the judgment result is yes and the current distance is not greater than the preset distance, allowing the equipment on the two sides to carry out data transmission;
and after the two-side equipment is allowed to carry out data transmission, carrying out data transmission according to the transmission parameters of the opposite side.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the steps of the method of the first end-face embodiment.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the method comprises the steps of automatically detecting the current distance between a first remote control device and a second remote control device, judging whether the two remote control devices are the same type of device or not by self, and when the judgment result is yes and the current distance is not greater than the preset distance, indicating that the distance between the two remote control devices of the same type is short, therefore, the two side devices can be automatically allowed to carry out data transmission (namely, the two side devices can be automatically authorized to carry out data transmission).
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flow chart illustrating a method of data transmission according to an example embodiment.
Fig. 2 is a flow chart illustrating another method of data transmission according to an example embodiment.
FIG. 3A is a flow chart illustrating yet another method of data transmission according to an example embodiment.
FIG. 3B is a schematic diagram illustrating a remote control device with a sensing device mounted thereon according to an exemplary embodiment.
Fig. 3C is a schematic diagram illustrating a positional relationship when inductive devices mounted on two-sided remote control devices interact with each other according to an exemplary embodiment.
Fig. 4 is a block diagram illustrating a data transmission apparatus according to an example embodiment.
Fig. 5 is a block diagram illustrating another data transmission apparatus according to an example embodiment.
Fig. 6 is a block diagram illustrating yet another data transmission apparatus according to an example embodiment.
Fig. 7 is a block diagram illustrating a suitable data transmission arrangement according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
In order to solve the above technical problem, an embodiment of the present disclosure provides a data transmission method, which may be used in a data transmission program, system or apparatus, and an execution subject of the method is a first remote control device connected to one device of two devices for data transmission, where the two devices may be large-screen terminals, such as a smart television, as shown in fig. 1, and the method includes steps S101 to S103:
in step S101, a current distance between second remote control devices connected to the device on the other side of the data transmission is detected;
one side device of the two side devices for data transmission can be a data sending party or a data receiving party, the first remote control device is used for remotely controlling the one side device, the second remote control device is used for remotely controlling the other side device, the first remote control device is connected with the one side device in a wired mode, a Bluetooth mode, a wifi mode, a mobile data network mode and the like, and the second remote control device is connected with the other side device in the wired mode.
In step S102, it is determined whether the first remote control device and the second remote control device are devices of the same type;
in step S103, when the determination result is yes and the current distance is not greater than the preset distance, allowing the devices on both sides to perform data transmission;
in step S104, after the two-sided device is allowed to perform data transmission, data transmission is performed according to the transmission parameters of the opposite side.
The method comprises the steps of automatically detecting the current distance between a first remote control device and a second remote control device, judging whether the two remote control devices are the same type of device or not by self, and when the judgment result is yes and the current distance is not greater than the preset distance, indicating that the distance between the two remote control devices of the same type is short, therefore, the two side devices can be automatically allowed to carry out data transmission (namely, the two side devices can be automatically authorized to carry out data transmission).
As shown in fig. 2, in an embodiment, the step S104 shown in fig. 1, namely, "after allowing the two-side device to perform data transmission, perform data transmission according to the transmission parameter on the opposite side" may include steps S201 to S203:
in step S201, after allowing the two-side devices to perform data transmission, transmitting the transmission parameters of the one-side device to the second remote control device, so that the second remote control device transmits the transmission parameters of the one-side device to the other-side device after allowing the two-side devices to perform data transmission;
in step S202, receiving transmission parameters of the other side device sent by the second remote control device after allowing the two side devices to perform data transmission;
in step S203, the transmission parameters of the device on the other side are sent to the device on one side, so that the devices on both sides perform data transmission according to the transmission parameters on the opposite side, where the transmission parameters include at least one of the following: device identification, network connection information used for data transmission.
After allowing the two-side equipment to perform data transmission, the transmission parameters of the one-side equipment connected with the first remote control equipment are required to be sent to the second remote control equipment, so that the second remote control equipment sends the transmission parameters to the other-side equipment; meanwhile, the first remote control device receives the transmission parameters of the device on the other side sent by the second remote control device, and then sends the transmission parameters of the device on the other side to the device on one side connected with the first remote control device, so that the devices on two sides for data transmission have the transmission parameters of each other, the opposite end can be uniquely determined, and a specific transmission network is determined at the same time, so that the data transmission can be smoothly carried out, the process of acquiring the transmission parameters of each other by the two devices is also automatically completed, and the user does not need to manually confirm the received data, so that the manual operation is reduced, and the efficiency of the whole data transmission scheme can be further improved.
The device identification can be an identification for uniquely identifying the devices on two sides, the network connection information is a network and a network password which can be used respectively when data transmission is carried out, and the network which can be used can be Bluetooth, wifi, a mobile data network, a wired network and the like.
In addition, the data transmission according to the transmission parameters on the opposite side may be performed by selecting an optimal network according to the network identifier and the corresponding password connectable on the opposite side, and then connecting the network using the password of the network to perform the data transmission.
Of course, the transmission parameters include, but are not limited to, the above information, and for example, may also include a data format that can be received by the opposite side device, so that if the data format of the data to be transmitted of the sending side device is not consistent with the data format that can be received by the receiving side device, the sending side device may convert the data format of the data to be transmitted into the data format that can be received by the receiving side device when performing data transmission by using the optimal network.
As shown in fig. 3A, in one embodiment, the method further comprises step S301:
in step S301, after data transmission is allowed for the two side devices, if the current distance is greater than the preset distance, the two side devices are prohibited from performing data transmission.
After data transmission is allowed to be carried out on the two sides of equipment, if the current distance is detected to be larger than the preset distance, the two sides of equipment are forbidden to carry out data transmission, and therefore when the distance between the two sides of remote control equipment is larger, the two sides of equipment are forbidden to carry out data transmission automatically, namely authorization for carrying out data transmission on the two sides of equipment is cancelled.
In one embodiment, the step S101 shown in fig. 1, namely, detecting the current distance between the second remote control devices connected to the device on the other side of data transmission, can be executed as follows:
when sensing a second remote control device, determining a current distance according to the strength of a sensing signal, wherein the sensing signal comprises: bluetooth signals and/or magnetic field signals.
When a second remote control device is sensed, the distance between the two remote control devices can be accurately determined according to the strength of the sensing signal, wherein the stronger the sensing signal is, the closer the current distance between the current devices is, and conversely, the weaker the sensing signal is, the farther the current distance between the current devices is.
In addition, the two side devices may respectively use different inductive signals when detecting the current distance between the two side devices and the opposite side device, for example, the sending side device may determine the current distance between the sending side device and the receiving side device by using a magnetic field signal, and the receiving side device may determine the current distance between the receiving side device and the sending side device by using a bluetooth signal.
Of course, the sensing signals include, but are not limited to, wifi signals, infrared signals, etc.
In one embodiment, the step S102 shown in fig. 1, namely, determining whether the first remote control device and the second remote control device are the same type of device, may be executed as:
when the induction signal is a Bluetooth signal, acquiring identification information in the Bluetooth signal; wherein the identification information includes: presetting a character string and/or a device identifier; the preset character string may be personalized in advance, and the device identifier may be a name, a model number, and the like of the device.
And judging whether the first remote control equipment and the second remote control equipment are the same type of equipment or not according to the identification information.
When the sensing signal is a bluetooth signal, by acquiring identification information in the broadcasted bluetooth signal, it can be automatically determined whether the first remote control device and the second remote control device are devices of the same type, for example: when the identification information of the first remote control device and the identification information of the second remote control device are the same, the first remote control device and the second remote control device can be determined to be the same type of device; or, when the preset character strings of the two devices are the same and the device identifiers satisfy a certain relationship (for example, the model of one remote control device falls into a set model range), the device identifiers can be determined to be the same type of device.
Of course, when the sensing signal is a magnetic field signal, since the two remote control devices of the same type are respectively provided with the matched sensor and magnetic material (as shown in fig. 3B, the left side of each remote control device is provided with the magnetic material containing the permanent magnet, and the right side is provided with the hall sensor), the two remote control devices can be determined to be the same type of device as long as the magnetic field signal is detected (wherein, when the two remote control devices shown in fig. 3B are placed according to the position relationship shown in fig. 3C, that is, the magnetic material on the left side of one remote control device is placed on the right side of the hall sensor of the other remote control device, the magnetic field signal is detected), and if the requirement on the accuracy of the distance is not high, the current distance can be directly determined to be smaller than the preset.
In one embodiment, after allowing the two-sided device to perform data transmission, performing data transmission according to the transmission parameters of the opposite side includes:
after allowing the equipment on the two sides to transmit data, acquiring predetermined data to be transmitted;
transmitting the data to be transmitted to the opposite side according to the transmission parameters of the opposite side;
or
After the data transmission of the two-side equipment is allowed, judging whether a transmission gesture is monitored;
and after the transmission gesture is monitored, transmitting the data to be transmitted to the opposite side according to the transmission parameters of the opposite side.
After the data transmission is allowed to be carried out by the equipment on the two sides, the data transmission can be automatically carried out according to the first mode, so that the whole data transmission process can be automatically completed, the time required by the whole data transmission process is favorably shortened to the greatest extent, and the transmission efficiency of the whole data transmission process is improved. Or
After the data transmission is allowed to be carried out by the equipment on the two sides, whether the transmission gesture is monitored or not can be judged until the transmission gesture is monitored, and then the data transmission is carried out.
The data to be transmitted may be determined in advance, for example, when the two devices are monitored to be the same type of device and the current distance is not greater than the preset distance, or before the current distance between the two devices is detected.
The method for determining the data to be transmitted may be:
receiving a data selection instruction; the data selection instruction is derived from clicking or sliding operation of a user, and various selectable data can be displayed on a remote control device or a device for data transmission.
And determining the data to be transmitted corresponding to the data selection instruction.
Or
The manner of determining the data to be transmitted may be:
establishing a corresponding relation between transmission time/transmission time period and transmission data in advance;
and then, after the data transmission of the equipment at the two sides is allowed, determining the data to be transmitted according to the current transmission time/the transmission time period of the current transmission time and the corresponding relation.
The transmission gesture can be a gesture of sliding a specified distance in a single-finger or multi-finger specified direction, a gesture of clicking a certain position for a certain number of times, and the like.
In an embodiment, in step S103 shown in fig. 1, that is, when the determination result is yes and the current distance is not greater than the preset distance, allowing the two side devices to perform data transmission may be performed as:
when the judgment result is yes and the current distance is not greater than the preset distance, prompt information for whether the data transmission of the equipment on the two sides is allowed is generated;
and when a confirmation instruction for the prompt information is received, allowing the two-side equipment to perform data transmission.
When the two-side equipment is allowed to perform data transmission, the prompt information can be generated, so that when the confirmation instruction is received, the two-side equipment is allowed to perform data transmission again, and data transmission authorization is performed according to the intention of the user.
Finally, it is clear that: the above embodiments can be freely combined by those skilled in the art according to actual needs.
Corresponding to the above data transmission method provided in the embodiment of the present disclosure, an embodiment of the present disclosure further provides a data transmission device, as shown in fig. 4, where the data transmission device includes:
a detection module 401 configured to detect a current distance between second remote control devices connected to the device on the other side of the data transmission;
a determining module 402 configured to determine whether the first remote control device and the second remote control device are devices of the same type;
a first processing module 403, configured to allow the two-side devices to perform data transmission when the determination result is yes and the current distance is not greater than the preset distance;
a transmission module 404 configured to perform data transmission according to the transmission parameters of the opposite side after allowing the two-side device to perform data transmission.
As shown in fig. 5, in one embodiment, the transmission module 404 may include:
the first sending submodule 4041 is configured to send the transmission parameters of the device on one side to the second remote control device after the device on two sides is allowed to perform data transmission, so that the second remote control device sends the transmission parameters of the device on one side to the device on the other side after the device on two sides is allowed to perform data transmission;
the receiving submodule 4042 is configured to receive the transmission parameter of the other side device, which is sent by the second remote control device after allowing the two side devices to perform data transmission;
a second sending sub-module 4043, configured to send the transmission parameters of the other side device to the one side device, so that the two side devices perform data transmission according to the transmission parameters of the opposite side, where the transmission parameters include at least one of: device identification, network connection information used for data transmission.
As shown in fig. 6, in one embodiment, the apparatus further comprises:
the second processing module 601 is configured to prohibit the two-side devices from performing data transmission if the current distance is greater than the preset distance after the two-side devices are allowed to perform data transmission;
the detection module 401 includes:
a determining sub-module 4011 configured to determine a current distance according to the strength of the sensing signal when the second remote control device is sensed, wherein the sensing signal includes: bluetooth signals and/or magnetic field signals.
In one embodiment, the determining module 402 includes:
the first acquisition submodule is configured to acquire identification information in the Bluetooth signal when the induction signal is the Bluetooth signal; wherein the identification information includes: presetting a character string and/or a device identifier;
and the first judgment sub-module is configured to judge whether the first remote control device and the second remote control device are the same type of device according to the identification information.
In one embodiment, the transmission module comprises:
the second obtaining submodule is configured to obtain predetermined data to be transmitted after the data transmission of the two-side equipment is allowed;
the first transmission submodule is configured to transmit the data to be transmitted to the opposite side according to the transmission parameters of the opposite side;
or
The second judgment submodule is configured to judge whether a transmission gesture is monitored or not after the two-side equipment is allowed to perform data transmission;
and the second transmission submodule is configured to transmit the data to be transmitted to the opposite side according to the transmission parameters of the opposite side after the transmission gesture is monitored.
In one embodiment, the first processing module comprises:
the generating submodule is configured to generate prompt information for allowing the equipment on the two sides to perform data transmission when the judgment result is yes and the current distance is not greater than the preset distance;
and the processing submodule is configured to allow the two-side equipment to perform data transmission when receiving a confirmation instruction aiming at the prompt message.
According to an embodiment of the present disclosure, there is also provided a data transmission apparatus, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
detecting the current distance between second remote control equipment connected with equipment on the other side of data transmission;
judging whether the first remote control device and the second remote control device are the same type of device or not;
when the judgment result is yes and the current distance is not greater than the preset distance, allowing the equipment on the two sides to carry out data transmission;
and after the two-side equipment is allowed to carry out data transmission, carrying out data transmission according to the transmission parameters of the opposite side.
The processor may be further configured to:
after the data transmission is allowed to be performed by the two-side equipment, the data transmission according to the transmission parameters of the opposite side comprises the following steps:
after the data transmission of the two-side equipment is allowed, the transmission parameters of the one-side equipment are sent to the second remote control equipment, so that the transmission parameters of the one-side equipment are sent to the other-side equipment after the data transmission of the two-side equipment is allowed by the second remote control equipment;
receiving transmission parameters of the equipment on the other side, which are sent by the second remote control equipment after the equipment on the two sides is allowed to carry out data transmission;
sending the transmission parameters of the equipment on the other side to the equipment on one side so as to enable the equipment on the two sides to perform data transmission according to the transmission parameters on the opposite side, wherein the transmission parameters comprise at least one of the following parameters: device identification, network connection information used for said data transmission.
The processor may be further configured to:
the method further comprises the following steps:
and after the data transmission of the two sides of equipment is allowed, if the current distance is greater than the preset distance, forbidding the two sides of equipment to carry out the data transmission.
The processor may be further configured to:
the detecting a current distance between second remote control devices connected to the device on the other side of the data transmission includes:
when the second remote control device is sensed, determining the current distance according to the strength of a sensing signal, wherein the sensing signal comprises: bluetooth signals and/or magnetic field signals.
The processor may be further configured to:
the determining whether the first remote control device and the second remote control device are the same type of device includes:
when the induction signal is a Bluetooth signal, acquiring identification information in the Bluetooth signal; wherein the identification information includes: presetting a character string and/or a device identifier;
and judging whether the first remote control equipment and the second remote control equipment are the same type of equipment or not according to the identification information.
The processor may be further configured to:
after the data transmission is allowed to be performed by the two-side equipment, the data transmission according to the transmission parameters of the opposite side comprises the following steps:
after allowing the equipment on the two sides to transmit data, acquiring predetermined data to be transmitted;
transmitting the data to be transmitted to the opposite side according to the transmission parameters of the opposite side;
or
After the data transmission of the two-side equipment is allowed, judging whether a transmission gesture is monitored;
and after the transmission gesture is monitored, transmitting the data to be transmitted to the opposite side according to the transmission parameters of the opposite side.
The processor may be further configured to:
when the judgment result is yes and the current distance is not greater than the preset distance, allowing the devices on the two sides to perform data transmission, including:
when the judgment result is yes and the current distance is not greater than the preset distance, generating prompt information for allowing the equipment on the two sides to perform data transmission;
and when a confirmation instruction aiming at the prompt information is received, allowing the two-side equipment to carry out data transmission.
Fig. 7 is a block diagram illustrating an apparatus 700 for data transmission, which is suitable for a terminal device, according to an exemplary embodiment. For example, the apparatus 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 7, the apparatus 700 may include one or at least two of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and a communication component 716.
The processing component 702 generally controls overall operation of the device 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or at least two processors 720 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 702 may include one or at least two modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
The memory 704 is configured to store various types of data to support operations at the apparatus 700. Examples of such data include instructions for any stored object or method of operation on the device 700, contact user data, phonebook data, messages, pictures, videos, and so forth. The memory 704 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 706 provides power to the various components of the device 700. The power components 706 may include a power management system, one or at least two power supplies, and other components associated with generating, managing, and distributing power supplies for the apparatus 700.
The multimedia component 708 includes a screen that provides an output interface between the device 700 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or at least two touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 700 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 710 is configured to output and/or input audio signals. For example, audio component 710 includes a Microphone (MIC) configured to receive external audio signals when apparatus 700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 704 or transmitted via the communication component 716. In some embodiments, audio component 710 also includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 714 includes one or at least two sensors for providing various aspects of status assessment for the device 700. For example, sensor assembly 714 may detect an open/closed state of device 700, the relative positioning of components, such as a display and keypad of device 700, sensor assembly 714 may also detect a change in position of device 700 or a component of device 700, the presence or absence of user contact with device 700, orientation or acceleration/deceleration of device 700, and a change in temperature of device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 716 is configured to facilitate wired or wireless communication between the apparatus 700 and other devices. The apparatus 700 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 716 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an example embodiment, the apparatus 700 may be implemented by one or at least two Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 704 comprising instructions, executable by the processor 720 of the device 700 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of the apparatus 700, enable the apparatus 700 to perform a data transmission method, comprising:
detecting the current distance between second remote control equipment connected with equipment on the other side of data transmission;
judging whether the first remote control device and the second remote control device are the same type of device or not;
when the judgment result is yes and the current distance is not greater than the preset distance, allowing the equipment on the two sides to carry out data transmission;
and after the two-side equipment is allowed to carry out data transmission, carrying out data transmission according to the transmission parameters of the opposite side.
In one embodiment, after allowing the two-sided device to perform data transmission, performing data transmission according to the transmission parameters of the opposite side includes:
after the data transmission of the two-side equipment is allowed, the transmission parameters of the one-side equipment are sent to the second remote control equipment, so that the transmission parameters of the one-side equipment are sent to the other-side equipment after the data transmission of the two-side equipment is allowed by the second remote control equipment;
receiving transmission parameters of the equipment on the other side, which are sent by the second remote control equipment after the equipment on the two sides is allowed to carry out data transmission;
sending the transmission parameters of the equipment on the other side to the equipment on one side so as to enable the equipment on the two sides to perform data transmission according to the transmission parameters on the opposite side, wherein the transmission parameters comprise at least one of the following parameters: device identification, network connection information used for said data transmission.
In one embodiment, the method further comprises:
and after the data transmission of the two sides of equipment is allowed, if the current distance is greater than the preset distance, forbidding the two sides of equipment to carry out the data transmission.
In one embodiment, the detecting a current distance between a second remote control device connected to a device on the other side of the data transmission includes:
when the second remote control device is sensed, determining the current distance according to the strength of a sensing signal, wherein the sensing signal comprises: bluetooth signals and/or magnetic field signals.
In one embodiment, the determining whether the first remote control device and the second remote control device are the same type of device includes:
when the induction signal is a Bluetooth signal, acquiring identification information in the Bluetooth signal; wherein the identification information includes: presetting a character string and/or a device identifier;
and judging whether the first remote control equipment and the second remote control equipment are the same type of equipment or not according to the identification information.
In one embodiment, after allowing the two-sided device to perform data transmission, performing data transmission according to the transmission parameters of the opposite side includes:
after allowing the equipment on the two sides to transmit data, acquiring predetermined data to be transmitted;
transmitting the data to be transmitted to the opposite side according to the transmission parameters of the opposite side;
or
After the data transmission of the two-side equipment is allowed, judging whether a transmission gesture is monitored;
and after the transmission gesture is monitored, transmitting the data to be transmitted to the opposite side according to the transmission parameters of the opposite side.
In one embodiment, the allowing the two side devices to perform data transmission when the determination result is yes and the current distance is not greater than the preset distance includes:
when the judgment result is yes and the current distance is not greater than the preset distance, generating prompt information for allowing the equipment on the two sides to perform data transmission;
and when a confirmation instruction aiming at the prompt information is received, allowing the two-side equipment to carry out data transmission.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A data transmission method, adapted to a first remote control device connected to one of two devices on both sides of data transmission, comprising:
detecting the current distance between second remote control equipment connected with equipment on the other side of data transmission;
judging whether the first remote control device and the second remote control device are the same type of device or not;
when the judgment result is yes and the current distance is not greater than the preset distance, the device on the two sides is allowed to carry out data transmission by automatic authorization;
and after the two-side equipment is allowed to carry out data transmission, carrying out data transmission according to the transmission parameters of the opposite side.
2. The method of claim 1, wherein after allowing the two-sided device to perform data transmission, performing data transmission according to the transmission parameters of the opposite side comprises:
after the data transmission of the two-side equipment is allowed, the transmission parameters of the one-side equipment are sent to the second remote control equipment, so that the transmission parameters of the one-side equipment are sent to the other-side equipment after the data transmission of the two-side equipment is allowed by the second remote control equipment;
receiving transmission parameters of the equipment on the other side, which are sent by the second remote control equipment after the equipment on the two sides is allowed to carry out data transmission;
sending the transmission parameters of the equipment on the other side to the equipment on one side so as to enable the equipment on the two sides to perform data transmission according to the transmission parameters on the opposite side, wherein the transmission parameters comprise at least one of the following parameters: device identification, network connection information used for said data transmission.
3. The method of claim 1, further comprising:
and after the data transmission of the two sides of equipment is allowed, if the current distance is greater than the preset distance, forbidding the two sides of equipment to carry out the data transmission.
4. The method of claim 1,
the detecting a current distance between second remote control devices connected to the device on the other side of the data transmission includes:
when the second remote control device is sensed, determining the current distance according to the strength of a sensing signal, wherein the sensing signal comprises: bluetooth signals and/or magnetic field signals.
5. The method of claim 4,
the determining whether the first remote control device and the second remote control device are the same type of device includes:
when the induction signal is a Bluetooth signal, acquiring identification information in the Bluetooth signal; wherein the identification information includes: presetting a character string and/or a device identifier;
and judging whether the first remote control equipment and the second remote control equipment are the same type of equipment or not according to the identification information.
6. The method of claim 1, wherein after allowing the two-sided device to perform data transmission, performing data transmission according to the transmission parameters of the opposite side comprises:
after allowing the equipment on the two sides to transmit data, acquiring predetermined data to be transmitted;
transmitting the data to be transmitted to the opposite side according to the transmission parameters of the opposite side;
or
After the data transmission of the two-side equipment is allowed, judging whether a transmission gesture is monitored;
and after the transmission gesture is monitored, transmitting the data to be transmitted to the opposite side according to the transmission parameters of the opposite side.
7. The method according to any one of claims 1 to 6, wherein when the determination result is yes and the current distance is not greater than a preset distance, allowing the two-side device to perform data transmission comprises:
when the judgment result is yes and the current distance is not greater than the preset distance, generating prompt information for allowing the equipment on the two sides to perform data transmission;
and when a confirmation instruction aiming at the prompt information is received, allowing the two-side equipment to carry out data transmission.
8. A data transmission apparatus adapted for use with a first remote control device connected to one of two devices on either side of the data transmission, comprising:
the detection module is used for detecting the current distance between second remote control equipment connected with equipment on the other side of data transmission;
the judging module is used for judging whether the first remote control equipment and the second remote control equipment are the same type of equipment or not;
the first processing module is used for automatically authorizing and allowing the equipment on the two sides to carry out data transmission when the judgment result is yes and the current distance is not greater than the preset distance;
and the transmission module is used for transmitting data according to the transmission parameters of the opposite side after the data transmission of the equipment on the two sides is allowed.
9. The apparatus of claim 8, wherein the transmission module comprises:
the first sending submodule is used for sending the transmission parameters of the equipment on one side to the second remote control equipment after the equipment on two sides is allowed to carry out data transmission, so that the transmission parameters of the equipment on one side are sent to the equipment on the other side after the second remote control equipment is allowed to carry out data transmission;
the receiving submodule is used for receiving the transmission parameters of the equipment on the other side, which are sent by the second remote control equipment after the equipment on the two sides is allowed to carry out data transmission;
the second sending submodule is configured to send the transmission parameter of the device on the other side to the device on the one side, so that the devices on the two sides perform data transmission according to the transmission parameter on the opposite side, where the transmission parameter includes at least one of the following: device identification, network connection information used for said data transmission.
10. The apparatus of claim 8, further comprising:
the second processing module is used for forbidding the equipment on the two sides to carry out data transmission if the current distance is greater than the preset distance after the equipment on the two sides is allowed to carry out data transmission;
the detection module comprises:
a determining submodule, configured to determine the current distance according to strength of a sensing signal when the second remote control device is sensed, where the sensing signal includes: bluetooth signals and/or magnetic field signals.
CN201810497610.5A 2018-05-22 2018-05-22 Data transmission method and device Active CN108718439B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810497610.5A CN108718439B (en) 2018-05-22 2018-05-22 Data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810497610.5A CN108718439B (en) 2018-05-22 2018-05-22 Data transmission method and device

Publications (2)

Publication Number Publication Date
CN108718439A CN108718439A (en) 2018-10-30
CN108718439B true CN108718439B (en) 2021-02-05

Family

ID=63900363

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810497610.5A Active CN108718439B (en) 2018-05-22 2018-05-22 Data transmission method and device

Country Status (1)

Country Link
CN (1) CN108718439B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111522438A (en) * 2020-03-25 2020-08-11 华为技术有限公司 Content transmission method, device and medium
CN111666055B (en) * 2020-04-24 2021-12-14 华为技术有限公司 Data transmission method and device
CN114816294A (en) 2020-09-02 2022-07-29 华为技术有限公司 Display method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102932955A (en) * 2012-11-09 2013-02-13 中山爱科数字科技股份有限公司 Digital household device fast point-to-point linking method
CN104469663A (en) * 2014-12-15 2015-03-25 邓晓晖 Information search method and system and wearable information search terminal
CN105306450A (en) * 2015-09-28 2016-02-03 深圳新创客电子科技有限公司 Equipment interconnection method, terminal, server and system
CN105813226A (en) * 2016-04-29 2016-07-27 乐视控股(北京)有限公司 Document transmission method and device
CN106101817A (en) * 2016-07-18 2016-11-09 乐视控股(北京)有限公司 A kind of method and device of wireless data transmission
CN107360538A (en) * 2017-07-06 2017-11-17 中国石油集团东方地球物理勘探有限责任公司 The method and smart machine to be communicated between smart machine

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10057743B2 (en) * 2016-08-17 2018-08-21 Mobilitie, Llc System and method for intelligent small cell operation

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102932955A (en) * 2012-11-09 2013-02-13 中山爱科数字科技股份有限公司 Digital household device fast point-to-point linking method
CN104469663A (en) * 2014-12-15 2015-03-25 邓晓晖 Information search method and system and wearable information search terminal
CN105306450A (en) * 2015-09-28 2016-02-03 深圳新创客电子科技有限公司 Equipment interconnection method, terminal, server and system
CN105813226A (en) * 2016-04-29 2016-07-27 乐视控股(北京)有限公司 Document transmission method and device
CN106101817A (en) * 2016-07-18 2016-11-09 乐视控股(北京)有限公司 A kind of method and device of wireless data transmission
CN107360538A (en) * 2017-07-06 2017-11-17 中国石油集团东方地球物理勘探有限责任公司 The method and smart machine to be communicated between smart machine

Also Published As

Publication number Publication date
CN108718439A (en) 2018-10-30

Similar Documents

Publication Publication Date Title
EP3188414B1 (en) Method and apparatus for controlling smart device
CN105516183B (en) Equipment connection method and device
EP3151507B1 (en) Methods and apparatuses for controlling device
EP3076716A1 (en) Method and apparatus for network access
CN106453052B (en) Message interaction method and device
EP3200116B1 (en) Method and apparatus for acquiring information via a virtual identity module from lost or stolen terminal
EP3096565B1 (en) Method and apparatus for accessing wireless network by terminal device
US20170064182A1 (en) Method and device for acquiring image file
EP3163884A1 (en) Image acquiring method and apparatus, computer program and recording medium
CN105847243B (en) Method and device for accessing intelligent camera
CN106790043B (en) Method and device for sending message in live broadcast application
US9749454B2 (en) Method and device for controlling smart device
CN109050470B (en) Automatic locking method and device for vehicle, server and storage medium
EP3125615A1 (en) Method, apparatus and system for smart device to access router
CN107071862B (en) Account number binding method and device and intelligent equipment
EP3322227B1 (en) Methods and apparatuses for controlling wireless connection, computer program and recording medium
CN108718439B (en) Data transmission method and device
EP3048508A1 (en) Methods, apparatuses and devices for transmitting data
WO2018000710A1 (en) Method and device for displaying wifi signal icon and mobile terminal
EP3614711A1 (en) Method for outputting networking authentication information, networking method, apparatus and storage medium
CN109040651B (en) Video communication method and device
EP3896982A1 (en) Method and apparatus for inputting information on display interface, and storage medium
CN105657676B (en) Information reminding method and device
CN110121148B (en) Interphone team method and device
EP3128722A1 (en) File transmission method and apparatus, computer program and recording medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant