CN118018984A - Data transmission method, device, electronic equipment and storage medium - Google Patents

Data transmission method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN118018984A
CN118018984A CN202211392483.5A CN202211392483A CN118018984A CN 118018984 A CN118018984 A CN 118018984A CN 202211392483 A CN202211392483 A CN 202211392483A CN 118018984 A CN118018984 A CN 118018984A
Authority
CN
China
Prior art keywords
bluetooth
data
bluetooth device
communication
processed data
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.)
Pending
Application number
CN202211392483.5A
Other languages
Chinese (zh)
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 Bangcle Technology Co ltd
Original Assignee
Beijing Bangcle 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 Bangcle Technology Co ltd filed Critical Beijing Bangcle Technology Co ltd
Priority to CN202211392483.5A priority Critical patent/CN118018984A/en
Publication of CN118018984A publication Critical patent/CN118018984A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a data transmission method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: receiving communication data sent by a first Bluetooth device and/or a second Bluetooth device under the condition that the first Bluetooth device and the second Bluetooth device establish communication connection; the communication data is sent to a client, and the client processes the communication data to obtain processed data; receiving the processed data and indication information sent by the client, wherein the indication information is used for indicating a transmission mode of the processed data; and transmitting the processed data in the transmission mode.

Description

Data transmission method, device, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of Bluetooth testing, and particularly relates to a data transmission method, a data transmission device, electronic equipment and a storage medium.
Background
In the related art, an over-the-air sniffing manner is generally adopted when testing bluetooth communications. The air sniffing is to sniff electromagnetic waves generated by both communication parties with the identity of a third party, thereby capturing the data of the communication. In the process, a special Bluetooth chip is used, broadcast signals of a target Bluetooth are firstly locked, when the target Bluetooth is connected with other Bluetooth, frequency modulation information of the Bluetooth can be sniffed, and then frequency modulation tracking is carried out, so that a data packet of Bluetooth communication can be obtained.
However, the above method can only sniff communication data by capturing electromagnetic waves, and cannot control the communication between both parties, which makes it inconvenient to test bluetooth communication and cannot secure the test bluetooth communication in all aspects.
Disclosure of Invention
The embodiment of the application provides a data transmission method, a data transmission device, electronic equipment and a storage medium, which are used for solving the problem that the communication of two parties cannot be controlled, so that the Bluetooth communication test is inconvenient.
In a first aspect, an embodiment of the present application provides a data transmission method, applied to a master control device, including:
receiving communication data sent by a first Bluetooth device and/or a second Bluetooth device under the condition that the first Bluetooth device and the second Bluetooth device establish communication connection;
the communication data is sent to a client, and the client processes the communication data to obtain processed data;
Receiving the processed data and indication information sent by the client, wherein the indication information is used for indicating a transmission mode of the processed data;
And transmitting the processed data in the transmission mode.
In a second aspect, an embodiment of the present application provides a data transmission method, applied to a client, including:
Receiving communication data sent by a master control device, wherein the communication data is sent to the master control device by a first Bluetooth device and/or a second Bluetooth device under the condition that the first Bluetooth device and the second Bluetooth device establish communication connection;
Processing the communication data to obtain processed data;
And sending the processed data and the indication information to the main control equipment, wherein the indication information is used for indicating the transmission mode of the processed data, and the main control equipment performs transmission processing on the processed data through the transmission mode.
In a third aspect, an embodiment of the present application provides a data transmission apparatus, which is applied to a master control device, including:
the first receiving module is used for receiving communication data sent by the first Bluetooth device and/or the second Bluetooth device under the condition that the first Bluetooth device and the second Bluetooth device establish communication connection;
the sending module is used for sending the communication data to a client, and the client processes the communication data to obtain processed data;
the second receiving module is used for receiving the processed data and the indication information sent by the client, wherein the indication information is used for indicating the transmission mode of the processed data;
and the transmission processing module is used for carrying out transmission processing on the processed data in the transmission mode.
In a fourth aspect, an embodiment of the present application provides a data transmission device, applied to a client, including:
The communication module is used for receiving communication data sent by the main control equipment, wherein the communication data is sent to the main control equipment by the first Bluetooth equipment and/or the second Bluetooth equipment under the condition that the communication connection is established between the first Bluetooth equipment and the second Bluetooth equipment;
the processing module is used for processing the communication data to obtain processed data;
The sending module is used for sending the processed data and the indication information to the main control equipment, wherein the indication information is used for indicating the transmission mode of the processed data, and the main control equipment carries out transmission processing on the processed data through the transmission mode.
In a fifth aspect, an embodiment of the present application provides an electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, the program or instruction implementing the steps of the method according to the first or second aspect when executed by the processor.
In a sixth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor implement the steps of the method according to the first or second aspect.
In the embodiment of the application, under the condition that the first Bluetooth device and the second Bluetooth device establish communication connection, communication data sent by the first Bluetooth device and/or the second Bluetooth device is received, the communication data is sent to a client, and the client processes the communication data to obtain processed data; receiving processed data and indication information sent by a client, wherein the indication information is used for indicating a transmission mode of the processed data, and transmitting the processed data in the transmission mode; the method and the device realize monitoring of communication data between two Bluetooth devices through the master control device, and can process and transmit the communication data through the client, so that the communication between two Bluetooth devices is controlled, and the communication between the Bluetooth devices can be tested in all aspects.
Drawings
Fig. 1 is a flow chart of a data transmission method applied to a master device in an embodiment of the application;
fig. 2 is a flow chart of a data transmission method applied to a client in an embodiment of the application;
Fig. 3 is a schematic diagram of data transmission before a master device and two bluetooth devices according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a data transmission device applied to a master device according to an embodiment of the present application;
Fig. 5 is a schematic structural diagram of a data transmission device applied to a client according to an embodiment of the present application;
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The data transmission method provided by the embodiment of the application is described in detail below through specific embodiments and application scenarios thereof with reference to the accompanying drawings.
Fig. 1 illustrates a data transmission method according to an embodiment of the present invention, which may be performed by a master device, which may develop a board for a single chip, raspberry group, or embedded processor (ADVANCED RISC MACHINES, ARM), or the like. The method comprises the following steps:
Step 101: and under the condition that the first Bluetooth device and the second Bluetooth device establish communication connection, receiving communication data sent by the first Bluetooth device and/or the second Bluetooth device.
Specifically, in the case where the first bluetooth device and the second bluetooth device have established a communication connection, the master device may receive communication data sent by the first bluetooth device, or receive communication data sent by the second bluetooth device, or receive communication data sent by the first bluetooth device and the second bluetooth device at the same time. Of course, when communication data sent by the first bluetooth device and communication data sent by the second bluetooth device are received simultaneously, the communication data sent by the first bluetooth device and the communication data sent by the second bluetooth device need to be distinguished.
The main control equipment monitors real-time communication data between the first Bluetooth equipment and the second Bluetooth equipment by receiving the communication data sent by the first Bluetooth equipment and/or the second Bluetooth equipment.
Step 102: and sending the communication data to a client, and processing the communication data by the client to obtain processed data.
Specifically, after receiving the communication data, the master control device may send the communication data to the client, and the client processes the communication data to obtain processed data. The master control device can send communication data to the client through USB receiving.
When the client processes the communication data, the communication data can be stored, so that a tester can analyze the stored communication data by recording; the communication data can be modified, so that a tester can test whether integrity check exists between the first Bluetooth device and the second Bluetooth device, the file is prevented from being lost in transmission or injected with viruses by people, and the safety of communication is ensured.
The communication data is sent to the client, and the client processes the communication data, so that the processing process of the communication data is realized, and the problem that the communication data can only be acquired and cannot be dynamically analyzed and debugged in the air sniffing packet capturing mode is avoided.
Step 103: and receiving the processed data and the indication information sent by the client, wherein the indication information is used for indicating the transmission mode of the processed data.
Specifically, the client may further set a transmission mode for indicating the processed data, and send the indication information for indicating the transmission mode of the processed data to the master control device, and at this time, the master control device may receive the processed data and the indication information sent by the client, so that the processed data can be transmitted and processed by using the transmission mode in the indication information, and data transmission control between the first bluetooth device and the second bluetooth device is achieved.
Step 104: and transmitting the processed data in the transmission mode.
Specifically, the processed data is transmitted in a transmission mode, so that the data transmission between the first Bluetooth device and the second Bluetooth device can be controlled, and further the communication control between the two Bluetooth devices is realized.
In one embodiment, when the transmission mode is used for performing transmission processing on the processed data, the method includes at least one of the following steps:
forwarding the processed data to a target Bluetooth device under the condition that the transmission mode is forwarding, wherein the target Bluetooth device is a second Bluetooth device under the condition that the communication data is sent by a first Bluetooth device, and the target Bluetooth device is a first Bluetooth device under the condition that the communication data is sent by the second Bluetooth device;
Under the condition that the transmission mode is interception, prohibiting forwarding the processed data to the target Bluetooth device;
and under the condition that the transmission mode is repeated transmission, repeatedly transmitting the processed data to the target Bluetooth equipment.
Specifically, if the transmission mode is forwarding, the master control device may serve as a bridge between two communication parties and forward the processed data to the target bluetooth device. Of course, if the communication data is sent by the first bluetooth device, the target bluetooth device is the second bluetooth device, and if the communication data is sent by the second bluetooth device, the target bluetooth device is the first bluetooth device. If the transmission mode is interception, communication of one party can be intercepted, and the communication is not forwarded to the other party of communication data, namely forwarding of the processed data to the target Bluetooth device is forbidden. If the transmission mode is repeated transmission, the processed data can be repeatedly transmitted to the target Bluetooth device. In this way, the transmission control of the processed data is realized by any mode.
Of course, if the target bluetooth device is the first bluetooth device, forwarding the processed data to the first bluetooth device through the first bluetooth module; and if the target Bluetooth device is the second Bluetooth device, forwarding the processed data to the second Bluetooth device through the second Bluetooth module.
In addition, in one embodiment, when the master device receives the communication data sent by the first bluetooth device and/or the second bluetooth device, the method may include the following steps:
Establishing communication connection between the first Bluetooth device and a first Bluetooth module in the main control device, and receiving first communication data sent by the first Bluetooth device through the first Bluetooth module;
And/or
And establishing communication connection between the second Bluetooth device and a second Bluetooth module in the main control device, and receiving second communication data sent by the second Bluetooth device through the second Bluetooth module.
Specifically, a first Bluetooth module and a second Bluetooth module are arranged in the main control equipment. Or the master control device is respectively connected with the first Bluetooth module and the second Bluetooth module, and can be connected through a serial peripheral interface (SERIAL PERIPHERAL INTERFACE, SPI) or an integrated circuit bus (Inter-INTEGRATED CIRCUIT, IIC).
The first bluetooth module and the second bluetooth module may be low energy (Bluetooh Low Energy, BLE) bluetooth or normal bluetooth.
The main control equipment can establish communication connection with the first Bluetooth equipment through the first Bluetooth module, and receive first communication data sent by the first Bluetooth equipment through the first Bluetooth module; communication connection is established between the main control equipment and the second Bluetooth equipment through the second Bluetooth module, and second communication data sent by the second Bluetooth equipment are received through the second Bluetooth module, so that the main control equipment can be used as an intermediate party to acquire the communication data between the first Bluetooth equipment and the second Bluetooth equipment.
In addition, it should be noted that the master device may also set a bluetooth switching mode, where bluetooth is divided into a master-slave mode, and when the master device needs to be connected to the slave as a master, it needs to switch to the master mode, and when the master device needs to be connected to the slave as a slave waiting for the connection of the master, it needs to switch to the slave mode.
In addition, in one embodiment, when the communication connection between the first bluetooth device and the first bluetooth module in the master control device is established, the bluetooth function of the second bluetooth device may be turned off, and the device information of the first bluetooth module is modified to the device information of the second bluetooth device, so as to establish the communication connection between the first bluetooth device and the first bluetooth module;
When the communication connection between the second Bluetooth device and the second Bluetooth module in the main control device is established, the Bluetooth function of the first Bluetooth device can be closed, and the device information of the second Bluetooth module is modified into the device information of the first Bluetooth device so as to establish the communication connection between the second Bluetooth device and the second Bluetooth module.
Specifically, the device information of the first bluetooth device and the second bluetooth device may include a bluetooth name, a media access control (MediaAccessControlAddress, MAC) address, and the like.
In this way, the Bluetooth function of the second Bluetooth device is closed, and the device information of the first Bluetooth module is modified so as to disguise the first Bluetooth module as the second Bluetooth device, and connection is established with the first Bluetooth device; and close the bluetooth function of first bluetooth equipment, modify the equipment information of second bluetooth module to disguise second bluetooth module into first bluetooth equipment, establish the connection with second bluetooth equipment, and then realize that master control equipment gets into between first bluetooth equipment and the second bluetooth equipment through bluetooth module, can carry out bluetooth communication with two communicators.
In this way, in this embodiment, under the condition that the first bluetooth device and the second bluetooth device establish communication connection, communication data sent by the first bluetooth device and/or the second bluetooth device is received, the communication data is sent to the client, and the client processes the communication data to obtain processed data; receiving processed data and indication information sent by a client, wherein the indication information is used for indicating a transmission mode of the processed data, and transmitting the processed data in the transmission mode; the method and the device realize monitoring of communication data between two Bluetooth devices through the master control device, and can process and transmit the communication data through the client, so that the communication between two Bluetooth devices is controlled, and the communication between the Bluetooth devices can be tested in all aspects.
As shown in fig. 2, a data transmission method provided by an embodiment of the present invention is shown, and the method may be performed by a client, and includes the following steps:
step 201: and receiving communication data sent by the master control equipment.
And the communication data is sent to the master control equipment by the first Bluetooth equipment and/or the second Bluetooth equipment under the condition that the communication connection is established between the first Bluetooth equipment and the second Bluetooth equipment.
It should be noted that, this step may refer to the relevant content of the embodiment of the master device side, which is not described herein.
Step 202: and processing the communication data to obtain processed data.
Specifically, in one embodiment, when the client processes the communication data to obtain processed data, the communication data may be stored; and/or modifying the communication data to obtain the processed data. The tester can analyze the stored communication data by recording and modify the communication data, so that the tester can test whether the integrity check exists between the first Bluetooth device and the second Bluetooth device, the file is prevented from being lost in transmission or injected with viruses by people, and the safety of communication is ensured.
Therefore, the processed data is obtained by processing the communication data, the processing process of the communication data is realized, and the problem that the communication data can only be obtained and the communication data can not be dynamically analyzed and debugged in the air sniffing packet capturing mode is avoided.
Step 203: and sending the processed data and the indication information to the main control equipment.
The indication information is used for indicating a transmission mode of the processed data, and the main control equipment transmits the processed data through the transmission mode.
In this way, the embodiment realizes monitoring of communication data between two bluetooth devices through the master control device, and can process and control transmission of the communication data through the client, thereby realizing control of communication between two bluetooth devices, and further enabling full-scale testing of communication between bluetooth devices.
As shown in fig. 3, an embodiment of the present application will be described below.
In this embodiment, assuming that the master device is a raspberry group, after the first bluetooth device and the second bluetooth device establish a communication connection, the following steps may be performed:
And closing the Bluetooth function of the second Bluetooth device, modifying the device information of the first Bluetooth module through programming, disguising the first Bluetooth module as the second Bluetooth device, and establishing connection with the first Bluetooth device.
And closing the Bluetooth function of the first Bluetooth device, modifying the device information of the second Bluetooth module through programming, disguising the second Bluetooth module as the first Bluetooth device, and establishing connection with the second Bluetooth device.
The master control equipment receives communication data sent by the first Bluetooth equipment and/or the second Bluetooth equipment and sends the communication data to the client.
The client records, stores or modifies the communication data to obtain processed data. The testers can analyze the communication data through the history records recorded by the main control equipment; in addition, the tester can test whether an integrity check exists between the first bluetooth device and the second bluetooth device by modifying the communication data.
The client sends the processed data and the indication information for indicating the transmission mode to the main control equipment. The transmission mode may include forwarding, interception, and repeated transmission modes.
Under the condition that the transmission mode is forwarding, the main control equipment normally forwards communication data between the first Bluetooth equipment and the second Bluetooth equipment, and whether the first Bluetooth equipment and the second Bluetooth equipment can normally communicate or not is tested, and whether the service normally operates or not is tested.
Under the condition that the transmission mode is repeated transmission, a tester can test whether freshness check exists between the first Bluetooth device and the second Bluetooth device by repeatedly transmitting communication data.
Under the condition that the transmission mode is interception, a tester can test whether identity verification exists between the first Bluetooth device and the second Bluetooth device by intercepting communication data.
In this way, the master control device in this embodiment is responsible for receiving and transmitting communication data, and the client is responsible for processing communication data, so that communication data can be intercepted and modified, historical communication data can be recorded, communication data can be replayed, and the like, and communication control between two bluetooth devices is realized.
Fig. 4 shows a data transmission apparatus according to an embodiment of the present invention, which is applied to a master device, and includes:
A first receiving module 401, configured to receive communication data sent by a first bluetooth device and/or a second bluetooth device when the first bluetooth device and the second bluetooth device establish a communication connection;
A sending module 402, configured to send the communication data to a client, where the client processes the communication data to obtain processed data;
a second receiving module 403, configured to receive the processed data and indication information sent by the client, where the indication information is used to indicate a transmission mode of the processed data;
And the transmission processing module 404 is configured to perform transmission processing on the processed data in the transmission manner.
The data transmission device provided in the embodiment of the present application can implement each process implemented by the method embodiment of fig. 1, and in order to avoid repetition, a description is omitted here.
Fig. 5 shows a data transmission device according to an embodiment of the present invention, which is applied to a client, and includes:
A receiving module 501, configured to receive communication data sent by a master device, where the communication data is sent to the master device by a first bluetooth device and/or a second bluetooth device when the first bluetooth device and the second bluetooth device establish a communication connection;
the processing module 502 is configured to process the communication data to obtain processed data;
And a sending module 503, configured to send the processed data and indication information to the master control device, where the indication information is used to indicate a transmission mode of the processed data, and the master control device performs transmission processing on the processed data through the transmission mode.
The data transmission device provided in the embodiment of the present application can implement each process implemented by the method embodiment of fig. 2, and in order to avoid repetition, a description is omitted here.
It should be noted that, in the present specification, the embodiments related to the data transmission device and the embodiments related to the data transmission method in the present specification are based on the same inventive concept, so the specific implementation of the embodiments related to the data transmission device may refer to the corresponding implementation related to the embodiments related to the data transmission method, and the repetition is omitted.
The data transmission device in the embodiment of the application can be a device, and can also be a component, an integrated circuit or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), etc., and the non-mobile electronic device may be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a Television (TV), a teller machine, a self-service machine, etc., and the embodiments of the present application are not limited in particular.
The data transmission device in the embodiment of the application can be a device with an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
Based on the same technical concept, the embodiment of the application also provides an electronic device, which is used for executing the data transmission method, and fig. 6 is a schematic structural diagram of an electronic device for implementing the embodiments of the application. Electronic devices may vary widely in configuration or performance and may include a processor 610, a communication interface Communications Interface, a memory 630, and a communication bus 640, where the processor 610, the communication interface 620, and the memory 630 communicate with each other via the communication bus 640. The processor 610 may call a computer program stored on the memory 630 and executable on the processor 610 to perform the steps of:
receiving communication data sent by a first Bluetooth device and/or a second Bluetooth device under the condition that the first Bluetooth device and the second Bluetooth device establish communication connection;
the communication data is sent to a client, and the client processes the communication data to obtain processed data;
Receiving the processed data and indication information sent by the client, wherein the indication information is used for indicating a transmission mode of the processed data;
And transmitting the processed data in the transmission mode.
In one embodiment, the receiving the communication data sent by the first bluetooth device and/or the second bluetooth device includes: establishing communication connection between the first Bluetooth device and a first Bluetooth module in the main control device, and receiving first communication data sent by the first Bluetooth device through the first Bluetooth module; and/or establishing communication connection between the second Bluetooth device and a second Bluetooth module in the main control device, and receiving second communication data sent by the second Bluetooth device through the second Bluetooth module.
In one embodiment, the establishing a communication connection between the first bluetooth device and a first bluetooth module in the master device includes: closing the Bluetooth function of the second Bluetooth device, and modifying the device information of the first Bluetooth module into the device information of the second Bluetooth device so as to establish communication connection between the first Bluetooth device and the first Bluetooth module; the establishing a communication connection between the second bluetooth device and a second bluetooth module in the master control device includes: and closing the Bluetooth function of the first Bluetooth device, and modifying the device information of the second Bluetooth module into the device information of the first Bluetooth device so as to establish communication connection between the second Bluetooth device and the second Bluetooth module.
In one embodiment, the transmitting the processed data by the transmission mode includes at least one of the following:
Forwarding the processed data to a target Bluetooth device under the condition that the transmission mode is forwarding, wherein the target Bluetooth device is a second Bluetooth device under the condition that the communication data is sent by a first Bluetooth device, and the target Bluetooth device is a first Bluetooth device under the condition that the communication data is sent by the second Bluetooth device; under the condition that the transmission mode is interception, prohibiting forwarding the processed data to the target Bluetooth device; and under the condition that the transmission mode is repeated transmission, repeatedly transmitting the processed data to the target Bluetooth equipment.
Or the following steps are executed:
Receiving communication data sent by a master control device, wherein the communication data is sent to the master control device by a first Bluetooth device and/or a second Bluetooth device under the condition that the first Bluetooth device and the second Bluetooth device establish communication connection;
Processing the communication data to obtain processed data;
And sending the processed data and the indication information to the main control equipment, wherein the indication information is used for indicating the transmission mode of the processed data, and the main control equipment performs transmission processing on the processed data through the transmission mode.
In one embodiment, the processing the communication data to obtain processed data includes: storing the communication data; and/or modifying the communication data to obtain the processed data.
The specific implementation steps can refer to the steps of the above data transmission method embodiment, and the same technical effects can be achieved, so that repetition is avoided and no further description is provided here.
It should be noted that, the electronic device in the embodiment of the present application includes: a server, a terminal, or other devices besides a terminal.
The above electronic device structure does not constitute a limitation of the electronic device, and the electronic device may include more or less components than illustrated, or may combine some components, or may be different in arrangement of components, for example, an input unit, may include a graphics processor (Graphics Processing Unit, GPU) and a microphone, and a display unit may configure a display panel in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit includes at least one of a touch panel and other input devices. Touch panels are also known as touch screens. Other input devices may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
The memory may be used to store software programs as well as various data. The memory may mainly include a first memory area storing programs or instructions and a second memory area storing data, wherein the first memory area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory may include volatile memory or nonvolatile memory, or the memory may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static random access memory (STATIC RAM, SRAM), dynamic random access memory (DYNAMIC RAM, DRAM), synchronous Dynamic Random Access Memory (SDRAM), double data rate Synchronous dynamic random access memory (Double DATA RATE SDRAM, DDRSDRAM), enhanced Synchronous dynamic random access memory (ENHANCED SDRAM, ESDRAM), synchronous link dynamic random access memory (SYNCH LINK DRAM, SLDRAM), and Direct random access memory (DRRAM).
The processor may include one or more processing units; optionally, the processor integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, and the like, and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor.
The embodiment of the application also provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements each process of the above-mentioned data transmission method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the description is omitted here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium such as a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
The embodiment of the application further provides a chip, which comprises a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is used for running programs or instructions to realize the processes of the embodiment of the method, and can achieve the same technical effects, so that repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (10)

1. A data transmission method applied to a master control device, comprising:
receiving communication data sent by a first Bluetooth device and/or a second Bluetooth device under the condition that the first Bluetooth device and the second Bluetooth device establish communication connection;
the communication data is sent to a client, and the client processes the communication data to obtain processed data;
Receiving the processed data and indication information sent by the client, wherein the indication information is used for indicating a transmission mode of the processed data;
And transmitting the processed data in the transmission mode.
2. The method according to claim 1, wherein the receiving the communication data sent by the first bluetooth device and/or the second bluetooth device includes:
Establishing communication connection between the first Bluetooth device and a first Bluetooth module in the main control device, and receiving first communication data sent by the first Bluetooth device through the first Bluetooth module;
And/or
And establishing communication connection between the second Bluetooth device and a second Bluetooth module in the main control device, and receiving second communication data sent by the second Bluetooth device through the second Bluetooth module.
3. The method for data transmission according to claim 2, wherein,
The establishing a communication connection between the first bluetooth device and a first bluetooth module in the master control device includes:
Closing the Bluetooth function of the second Bluetooth device, and modifying the device information of the first Bluetooth module into the device information of the second Bluetooth device so as to establish communication connection between the first Bluetooth device and the first Bluetooth module;
the establishing a communication connection between the second bluetooth device and a second bluetooth module in the master control device includes:
And closing the Bluetooth function of the first Bluetooth device, and modifying the device information of the second Bluetooth module into the device information of the first Bluetooth device so as to establish communication connection between the second Bluetooth device and the second Bluetooth module.
4. The data transmission method according to claim 1, wherein the transmission processing of the processed data by the transmission method includes at least one of:
forwarding the processed data to a target Bluetooth device under the condition that the transmission mode is forwarding, wherein the target Bluetooth device is a second Bluetooth device under the condition that the communication data is sent by a first Bluetooth device, and the target Bluetooth device is a first Bluetooth device under the condition that the communication data is sent by the second Bluetooth device;
Under the condition that the transmission mode is interception, prohibiting forwarding the processed data to the target Bluetooth device;
and under the condition that the transmission mode is repeated transmission, repeatedly transmitting the processed data to the target Bluetooth equipment.
5. A data transmission method applied to a client, comprising:
Receiving communication data sent by a master control device, wherein the communication data is sent to the master control device by a first Bluetooth device and/or a second Bluetooth device under the condition that the first Bluetooth device and the second Bluetooth device establish communication connection;
Processing the communication data to obtain processed data;
And sending the processed data and the indication information to the main control equipment, wherein the indication information is used for indicating the transmission mode of the processed data, and the main control equipment performs transmission processing on the processed data through the transmission mode.
6. The method according to claim 5, wherein the processing the communication data to obtain processed data comprises:
Storing the communication data; and/or the number of the groups of groups,
And modifying the communication data to obtain the processed data.
7. A data transmission device applied to a master control apparatus, comprising:
the first receiving module is used for receiving communication data sent by the first Bluetooth device and/or the second Bluetooth device under the condition that the first Bluetooth device and the second Bluetooth device establish communication connection;
the sending module is used for sending the communication data to a client, and the client processes the communication data to obtain processed data;
the second receiving module is used for receiving the processed data and the indication information sent by the client, wherein the indication information is used for indicating the transmission mode of the processed data;
and the transmission processing module is used for carrying out transmission processing on the processed data in the transmission mode.
8. A data transmission device, applied to a client, comprising:
The communication module is used for receiving communication data sent by the main control equipment, wherein the communication data is sent to the main control equipment by the first Bluetooth equipment and/or the second Bluetooth equipment under the condition that the communication connection is established between the first Bluetooth equipment and the second Bluetooth equipment;
the processing module is used for processing the communication data to obtain processed data;
The sending module is used for sending the processed data and the indication information to the main control equipment, wherein the indication information is used for indicating the transmission mode of the processed data, and the main control equipment carries out transmission processing on the processed data through the transmission mode.
9. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, the program or instruction when executed by the processor implementing the steps of the data transmission method according to any one of claims 1 to 4 or the steps of the data transmission method according to any one of claims 5 to 6.
10. A readable storage medium, characterized in that the readable storage medium stores thereon a program or instructions, which when executed by a processor, implements the steps of the data transmission method according to any of claims 1-4 or the steps of the data transmission method according to any of claims 5-6.
CN202211392483.5A 2022-11-08 2022-11-08 Data transmission method, device, electronic equipment and storage medium Pending CN118018984A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211392483.5A CN118018984A (en) 2022-11-08 2022-11-08 Data transmission method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211392483.5A CN118018984A (en) 2022-11-08 2022-11-08 Data transmission method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN118018984A true CN118018984A (en) 2024-05-10

Family

ID=90941615

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211392483.5A Pending CN118018984A (en) 2022-11-08 2022-11-08 Data transmission method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN118018984A (en)

Similar Documents

Publication Publication Date Title
CN107133180B (en) Dynamic page testing method, testing device and storage medium
CN108876369B (en) Block chain-based data communication method and device and computer-readable storage medium
CN110869907B (en) Method and terminal for browsing application page
CN104376263B (en) The method and apparatus that application behavior intercepts
US20140223545A1 (en) Method for the dynamic creation of an execution environment for an application to secure the application, associated computer program product and computing apparatus
CN108200089A (en) Implementation method, device, system and the storage medium of information security
CN105357323A (en) HTML5 page debugging method and device in APP
Hamandi et al. Android SMS malware: Vulnerability and mitigation
CN104182681B (en) Hook-based iOS (iPhone operating system) key behavior detection device and detection method thereof
CN107172075B (en) Communication method, system and readable storage medium based on network isolation
KR20110128632A (en) Method and device for detecting malicious action of application program for smartphone
CN106550031A (en) The method and device of data backup
CN112699034B (en) Virtual login user construction method, device, equipment and storage medium
CN105320880A (en) Terminal control method and apparatus
US7437563B2 (en) Software integrity test
CN108600234A (en) A kind of auth method, device and mobile terminal
CN106603498A (en) Event reporting method and event reporting device
Wen et al. Thwarting Smartphone SMS Attacks at the Radio Interface Layer.
CN106529236A (en) Unlocking method, apparatus and system
CN118018984A (en) Data transmission method, device, electronic equipment and storage medium
CN106293962A (en) A kind of method and apparatus of calling system order
CN110752933A (en) Verification code input method and device, electronic equipment and storage medium
CN114039760B (en) Security testing method and device, computer equipment and storage medium
CN113114681B (en) Test message processing method, device, computer system and readable storage medium
CN106534047A (en) Information transmitting method and apparatus based on Trust application

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