Data transmission method and apparatus, storage medium, and computer device
By allowing the data receiving device to actively filter data in data transmission and optimizing the data transmission process through broadcast instructions, the problems of low data transmission efficiency and extended duration in the prior art are solved, and more efficient data transmission is achieved.
Patent Information
- Application Number
- PCT/CN2024/097903
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-08-29
- Filing Date
- 2024-06-07
- Publication Date
- 2025-03-06
AI Technical Summary
The prior art adds device ID data in data transmission to increase the data length and affects efficiency. The sender needs to wait for the receiver to filter the data before sending it, which extends the time of data transmission.
The data transmission command is broadcasted through the data sending device, triggering the data receiving device to actively obtain transmission data from the data sending device, avoiding adding device ID data within the data encoding, and allowing the data receiving device to filter out the desired data based on the target device address.
Improve data transmission efficiency, reduce data transmission time, and avoid the need to increase device ID data within data encoding.
Smart Images

Figure CN2024097903_06032025_PF_FP_ABST
Abstract
Description
Data transmission method, device, storage medium and computer equipment
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on August 29, 2023, with application number 202311104193.0 and application name “A data transmission method, device, storage medium and computer equipment”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present invention relates to the field of computers, and specifically to a data transmission method, device, computer-readable storage medium, and computer equipment. Background Art
[0003] Existing single-wire data transmission protocols require the addition of a unique device ID (identity document) or other verification method within the encoded data when used in one-to-many situations. This device ID helps distinguish different recipients and ensures that data is correctly transmitted to the target device. Each device is assigned a unique device ID. The sender appends the device ID to the data when sending, and the receiver uses the device ID to determine whether to accept the data. By adding a device ID and other verification methods, the reliability and security of one-to-many data transmission can be improved, ensuring that data is accurately transmitted to the target device and maintaining data integrity. SUMMARY OF THE INVENTION
[0004] During the research and practice of the existing technology, the inventors of this application found that in the existing technology, adding device ID data to the data encoding will increase the data length of the data to be transmitted, affecting the data transmission efficiency; and when sending data to the recipient, the sender must wait for the current recipient to filter out the desired part from the data and then receive and process it before sending the data to other recipients, thereby increasing the data transmission time.
[0005] The embodiments of the present application provide a data transmission method and apparatus, which can avoid adding device ID data in the data encoding, thereby improving data transmission efficiency; and there is no need for the sender to wait for the receiver to filter out the desired part before sending data to other receivers, thereby shortening the data transmission time.
[0006] To solve the above technical problems, the embodiments of the present application provide the following technical solutions:
[0007] A data transmission method, applied to a data receiving device, comprising:
[0008] Receive data transmission instructions and determine the target device address assigned by the data sending device;
[0009] Based on the target device address, target data to be transmitted that is desired to be obtained is filtered out from a plurality of data to be transmitted.
[0010] A data transmission method, applied to a data sending device, comprising:
[0011] Acquire multiple data to be transmitted and the device address to which each data to be transmitted is expected to be sent;
[0012] Establish a mapping relationship between each data to be transmitted and the corresponding device address;
[0013] broadcasting a data transmission instruction to a plurality of data receiving devices, triggering the plurality of data receiving devices to determine a target device address assigned by a data sending device;
[0014] Triggering a plurality of data receiving devices to filter out the target data to be transmitted from a plurality of data to be transmitted based on the target device address
[0015] A data transmission device, applied to a data receiving device, comprising:
[0016] A receiving module, configured to receive a data transmission instruction and determine a target device address assigned by a data sending device;
[0017] The screening module is used to screen out target data to be transmitted that is expected to be obtained from multiple data to be transmitted based on the target device address.
[0018] A data transmission device, applied to a data sending device, comprising:
[0019] An acquisition module is used to acquire a plurality of data to be transmitted and an address of a device to which each data to be transmitted is intended to be sent;
[0020] Establishing module, used to establish mapping relationship between each data to be transmitted and corresponding device address;
[0021] A broadcast module, configured to broadcast a data transmission instruction to a plurality of data receiving devices, triggering the plurality of data receiving devices to determine a target device address assigned by a data sending device;
[0022] The trigger module is used to trigger the plurality of data receiving devices to filter out target data to be transmitted from a plurality of data to be transmitted based on the target device address.
[0023] A computer-readable storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor to execute the steps in the above-mentioned data transmission method.
[0024] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned data transmission method when executing the program. Beneficial effects
[0025] In the embodiment of the present application, a data receiving device receives a data transmission instruction, determines the target device address assigned by the data sending device; based on the target device address, the target data to be transmitted that is expected to be obtained is filtered out from multiple data to be transmitted. And a plurality of data to be transmitted and the device address to which each data to be transmitted is expected to be sent are obtained through the data sending device; a mapping relationship between each data to be transmitted and the corresponding device address is established; a data transmission instruction is broadcast to a plurality of data receiving devices, triggering a plurality of the data receiving devices to determine the target device address assigned by the data sending device; triggering a plurality of the data receiving devices to filter out the target data to be transmitted based on the target device address. In this way, it is possible to avoid adding device ID data to the data encoding, thereby improving data transmission efficiency; and there is no need for the sender to wait for the receiver to filter out the desired part before sending data to other receivers, thereby shortening the data transmission time. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0027] FIG1a is a system diagram of a data transmission method provided in an embodiment of the present application.
[0028] FIG1 b is a flow chart of a data transmission method provided in an embodiment of the present application.
[0029] FIG1c is another flow chart of a data transmission method provided in an embodiment of the present application.
[0030] FIG1d is a schematic diagram of allocating device address information to several data receiving devices according to an embodiment of the present application.
[0031] FIG2 a is a schematic structural diagram of a data transmission device provided in an embodiment of the present application.
[0032] FIG2 b is another schematic diagram of the structure of the data transmission device provided in an embodiment of the present application.
[0033] FIG3 is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. Modes for Carrying Out the Invention
[0034] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative efforts are within the scope of protection of this application.
[0035] The embodiments of the present application provide a data transmission method, device, and computer-readable storage medium.
[0036] Please refer to Figure 1a, which is a system diagram of a data transmission system provided in an embodiment of the present application. The system may include at least one data sending device 1000, at least two data receiving devices 2000, at least one database 3000, and a network 4000. The data sending device 1000 and the data receiving device 2000 may be computer devices such as mobile phones, computers, servers, or personal digital assistants. The data sending device 1000 may be connected to the data receiving device 2000 via the network 4000. The network 4000 may be a wireless network or a wired network, such as a wireless local area network (WLAN), a local area network (LAN), a cellular network, a 2G network, a 3G network, a 4G network, a 5G network, etc. In addition, the data receiving devices 2000 may also use their own Bluetooth network or hotspot network to connect to the data sending device 1000, etc. In addition, the system may include multiple databases 3000, which may be databases integrated in the data sending device 1000, or third-party databases that establish a communication connection with the data sending device 1000 through a protocol, and may synchronize and store data to be transmitted in the data sending device 1000 in the database 3000.
[0037] This embodiment of the present application provides a data transmission method that can be performed by a data transmitting device 1000. As shown in Figure 1a, the data transmitting device 1000 receives a data transmission instruction through a data receiving device, determines a target device address assigned by the data transmitting device, and then, based on the target device address, filters desired target data from multiple data to be transmitted. This eliminates the need for the sender to wait for the receiver to filter out the desired data before sending data to other receivers, thus shortening data transmission time.
[0038] The present application also provides a data transmission method, which can be executed by a data receiving device 2000. The data receiving device 2000 obtains multiple data to be transmitted and the device address to which each data to be transmitted is intended to be transmitted through a data sending device; establishes a mapping relationship between each data to be transmitted and the corresponding device address; broadcasts a data transmission instruction to multiple data receiving devices, triggering the multiple data receiving devices to determine the target device address assigned by the data sending device; and triggers the multiple data receiving devices to filter the target data to be transmitted from the multiple data to be transmitted based on the target device address. In this way, the addition of device ID data to the data encoding can be avoided, thereby improving data transmission efficiency.
[0039] It should be noted that the scenario diagram of the data transmission system shown in Figure 1a is only an example. The data transmission system and scenario described in the embodiment of the present application are intended to more clearly illustrate the technical solution of the embodiment of the present application, and do not constitute a limitation on the technical solution provided by the embodiment of the present application. Ordinary technicians in this field can know that with the evolution of the data transmission system and the emergence of new business scenarios, the technical solution provided by the embodiment of the present application is also applicable to similar technical problems.
[0040] In the existing technology, adding device ID data to the data encoding will increase the data length of the data to be transmitted, affecting the data transmission efficiency; and when sending data to the receiver, the sender must wait for the current receiver to filter out the desired part from the data so as to receive and process it before sending the data to other receivers, which increases the data transmission time.
[0041] In this embodiment, the description will be made from the perspective of a data transmission device, which can be specifically integrated into a computer device having a storage unit and a microprocessor installed therein and having computing capabilities.
[0042] Please refer to Figure 1b, which is a flow chart of a data transmission method provided in an embodiment of the present application. The data transmission method includes:
[0043] In step 101, a data transmission instruction is received and a target device address assigned by a data sending device is determined.
[0044] The present application differs from the prior art in that, whereas in the prior art, a data transmitting device sequentially transmits transmission data to each data receiving device, causing each data receiving device to passively receive the transmission data sent by the data transmitting device, the present application broadcasts a data transmission instruction via the data transmitting device, thereby triggering each data receiving device to actively obtain the transmission data from the data transmitting device.
[0045] Specifically, when each data receiving device actively retrieves transmission data from a data sending device, it needs to determine the target device address previously assigned by the data sending device. For example, the target device address corresponding to data receiving device 1 is Address A; the target device address corresponding to data receiving device 2 is Address B; and the target device address corresponding to data receiving device 3 is Address C. Thus, when each data receiving device actively retrieves transmission data from the data sending device, it retrieves the desired target data to be transmitted from the transmission data based on the target device address corresponding to each data receiving device.
[0046] In some implementations, before the step of receiving the data transmission instruction and determining the target device address assigned by the data sending device, the method further includes:
[0047] (1) Receive device address information sent by the data sending device;
[0048] (2) Modify the device address to the device address contained in the device address information.
[0049] Among them, developers can, according to needs, assign corresponding device address information to each data receiving device in advance before data transmission. For example, there are data receiving device 1, data receiving device 2 and data receiving device 3. If the developer expects data receiving device 2 to receive core data, the developer can send device address 11 as device address information to data receiving device 2, triggering data receiving device 2 to modify its own device address to device address 11 carried in the device address information. If the developer expects data receiving device 3 to receive sub-core data, the developer can send device address 21 as device address information to data receiving device 3, triggering data receiving device 3 to modify its own device address to device address 21 carried in the device address information; if the developer expects data receiving device 1 to receive non-core data, the developer can send device address 31 as device address information to data receiving device 1, triggering data receiving device 1 to modify its own device address to device address 31 carried in the device address information.
[0050] In step 102, based on the target device address, target data to be transmitted that is desired to be obtained is screened out from a plurality of data to be transmitted.
[0051] Each data receiving device selects target data to be transmitted that it wishes to obtain from a plurality of data to be transmitted based on the target device address assigned to it.
[0052] For example, data receiving device 1 filters out target data a to be transmitted from multiple data to be transmitted based on the corresponding target device address being address A; data receiving device 2 filters out target data b to be transmitted from multiple data to be transmitted based on the corresponding target device address being address B; data receiving device 3 filters out target data c to be transmitted from multiple data to be transmitted based on the corresponding target device address being address C.
[0053] In some embodiments, each piece of data to be transmitted corresponds to a device address, and the step of filtering out desired target data to be transmitted from the plurality of pieces of data to be transmitted based on the target device address includes:
[0054] (1) Filtering out the designated device address that matches the target device address from the device addresses corresponding to each data to be transmitted;
[0055] (2) The data to be transmitted corresponding to the designated device address is determined as the target data to be transmitted.
[0056] Each data to be transmitted corresponds to a device address. For example, data a to be transmitted corresponds to device address 21, and data b to be transmitted corresponds to device address 11. The data receiving device selects the designated device address that matches the target device address from the device addresses corresponding to each data to be transmitted, and determines the data to be transmitted corresponding to the designated device address as the target data to be transmitted. For example, if the device address corresponding to data receiving device 1 is 21, data a to be transmitted corresponding to device address 21 is determined as the target data to be transmitted; if the device address corresponding to data receiving device 2 is 11, data b to be transmitted corresponding to device address 11 is determined as the target data to be transmitted.
[0057] Specifically, in the data transmitting device, multiple storage addresses can be allocated based on the device addresses of the data receiving device to store different data to be transmitted. Furthermore, from the device addresses corresponding to each data to be transmitted, a target storage area that matches the target device address can be selected; and the data to be transmitted stored in the target storage area can be determined as the target data to be transmitted.
[0058] In some embodiments, the plurality of data to be transmitted exist in the form of data groups, and two adjacent data to be transmitted are divided by a specified level signal. Before the step of screening out the specified device address that matches the target device address from the device address corresponding to each data to be transmitted, the method further includes:
[0059] (1) dividing the data group into a plurality of data to be transmitted based on the specified level signal;
[0060] (2) Executing the step of filtering out a designated device address that matches the target device address from the device addresses corresponding to each data to be transmitted.
[0061] In some embodiments, multiple data to be transmitted can be packaged into data groups, and the multiple data to be transmitted can be divided by a specified level signal, which can be either a high level signal or a low level signal. When each data receiving device obtains target data to be transmitted from the multiple data to be transmitted, the data group can be divided into multiple data to be transmitted based on the specified level signal; and then the step of selecting the specified device address that matches the target device address from the device address corresponding to each data to be transmitted is performed.
[0062] As shown in FIG1c , FIG1c is another flow chart of the data transmission method provided in an embodiment of the present application.
[0063] The present application also provides a data transmission method, which is applied to a data sending device and includes:
[0064] In step 201, a plurality of data to be transmitted and the device address to which each data to be transmitted is expected to be sent are obtained.
[0065] Before data transmission, developers input multiple data to be transmitted and the device address to which each data is expected to be transmitted to the data sending device, triggering the data sending device to obtain multiple data to be transmitted and the device address to which each data is expected to be transmitted.
[0066] In step 202, a mapping relationship between each data to be transmitted and the corresponding device address is established.
[0067] After the data sending device obtains a plurality of data to be transmitted and the device address to which each data to be transmitted is expected to be sent, a mapping relationship between each data to be transmitted and the corresponding device address is established.
[0068] In step 203, a data transmission instruction is broadcast to a plurality of data receiving devices, triggering the plurality of data receiving devices to determine the target device addresses allocated by the data sending device.
[0069] After establishing a mapping relationship between each data to be transmitted and the corresponding device address, a data transmission instruction is broadcast to several data receiving devices that have established a connection relationship with the data sending device, triggering several of the data receiving devices to determine the target device address assigned by the data sending device.
[0070] In step 204, a plurality of the data receiving devices are triggered to filter out target data to be transmitted from a plurality of data to be transmitted based on the target device address.
[0071] The broadcasting of the data transmission instruction triggers a plurality of data receiving devices to determine their respective assigned target device addresses, and then, based on the target device addresses, filter out desired target data to be transmitted from a plurality of data to be transmitted.
[0072] In some embodiments, before the step of obtaining a plurality of data to be transmitted and the device address to which each data to be transmitted is intended to be sent, the method further includes:
[0073] (1) Sending corresponding device address information to each data receiving device in sequence according to the sorting order of the data receiving devices;
[0074] (2) Triggering each of the data receiving devices to modify the device address to the device address in the received device address information.
[0075] The corresponding device address information may be sent to each data receiving device in sequence according to the sorting order of the data receiving devices; and each data receiving device may be triggered to modify the device address to the device address in the received device address information.
[0076] Specifically, please refer to Figure 1d, which is a schematic diagram of assigning device address information to several data receiving devices according to an embodiment of the present application. The developer expects data 1 to be received by the data receiving device at address 51; data 2 to be received by the data receiving device at address 21; data 3 to be received by the data receiving device at address 11; data 4 to be received by the data receiving device at address 41; and data 5 to be received by the data receiving device at address 31. Therefore, in order, address 51 is assigned to data receiving device number 1; address 21 to data receiving device number 2; address 11 to data receiving device number 3; address 41 to data receiving device number 42; and address 31 to data receiving device number 5. As a result, the device address of the data receiving device with sequence number 1 is updated to address 51; the device address of the data receiving device with sequence number 2 is updated to address 21; the device address of the data receiving device with sequence number 3 is updated to address 11; the device address of the data receiving device with sequence number 4 is updated to address 41; and the device address of the data receiving device with sequence number 5 is updated to address 31. Thus, in order, we get data receiving device 5, data receiving device 2, data receiving device 1, data receiving device 4, and data receiving device 3.
[0077] As can be seen from the above, the embodiment of the present application receives a data transmission instruction through a data receiving device, determines the target device address assigned by the data sending device; based on the target device address, filters out the target data to be transmitted that is expected to be obtained from multiple data to be transmitted. And obtains multiple data to be transmitted and the device address to which each data to be transmitted is expected to be sent through the data sending device; establishes a mapping relationship between each data to be transmitted and the corresponding device address; broadcasts a data transmission instruction to several data receiving devices, triggers several of the data receiving devices to determine the target device address assigned by the data sending device; triggers several of the data receiving devices to filter out the target data to be transmitted based on the target device address. In this way, it is possible to avoid adding device ID data to the data encoding, thereby improving data transmission efficiency; and there is no need for the sender to wait for the receiver to filter out the desired part before sending data to other receivers, thereby shortening the data transmission time.
[0078] To facilitate better implementation of the data transmission method provided in the embodiment of the present application, the embodiment of the present application also provides a device based on the above data transmission method. The meanings of the terms are the same as those in the above data transmission method, and the specific implementation details can be referred to the description in the method embodiment.
[0079] Please refer to Figure 2a, which is a structural diagram of a data transmission device provided in an embodiment of the present application, wherein the data transmission device is applied to a data receiving device and may include a receiving module 301 and a screening module 302, etc.
[0080] The receiving module 301 is used to receive a data transmission instruction and determine the target device address assigned by the data sending device;
[0081] The screening module 302 is configured to screen out target data to be transmitted that is desired to be obtained from a plurality of data to be transmitted based on the target device address.
[0082] In some embodiments, the device comprises:
[0083] A second receiving module is used to receive device address information sent by the data sending device;
[0084] The modification module is used to modify the device address to the device address carried in the device address information.
[0085] In some implementations, each piece of data to be transmitted corresponds to a device address, and the screening module 302 includes:
[0086] A first screening submodule is configured to screen out a designated device address that matches the target device address from the device addresses corresponding to each piece of data to be transmitted;
[0087] The determination submodule is used to determine the data to be transmitted corresponding to the designated device address as the target data to be transmitted.
[0088] In some embodiments, the plurality of data to be transmitted exist in the form of data groups, and two adjacent data to be transmitted are divided by a specified level signal. The screening module 302 further includes:
[0089] a division submodule, configured to divide the data group into a plurality of data to be transmitted based on the specified level signal;
[0090] The second screening submodule is configured to perform the step of screening out a designated device address that matches the target device address from the device address corresponding to each data to be transmitted.
[0091] As can be seen from the above, in this embodiment of the application, receiving module 301 receives a data transmission instruction and determines the target device address assigned by the data sending device. Based on the target device address, filtering module 302 filters the desired target data from multiple data to be transmitted. This eliminates the need for the sender to wait for the receiver to filter out the desired data before sending data to other receivers, thus shortening data transmission time.
[0092] Please refer to Figure 2b, which is another structural schematic diagram of the data transmission device provided in an embodiment of the present application, wherein the data transmission device is applied to a data sending device and may include an acquisition module 401, an establishment module 402, a broadcast module 403 and a trigger module 404, etc.
[0093] An acquisition module 401 is configured to acquire a plurality of data to be transmitted and an address of a device to which each data to be transmitted is intended to be sent;
[0094] Establishing module 402, for establishing a mapping relationship between each data to be transmitted and the corresponding device address;
[0095] A broadcast module 403 is configured to broadcast a data transmission instruction to a plurality of data receiving devices, triggering the plurality of data receiving devices to determine a target device address assigned by the data sending device;
[0096] The triggering module 404 is configured to trigger the data receiving devices to filter out target data to be transmitted from the plurality of data to be transmitted based on the target device address.
[0097] In some embodiments, the device further comprises:
[0098] A sending module, configured to send corresponding device address information to each data receiving device in sequence according to the sorting order of the plurality of data receiving devices;
[0099] The second triggering module is configured to trigger each of the data receiving devices to modify the device address to the device address in the received device address information.
[0100] As can be seen from the above, this embodiment of the application uses an acquisition module 401 to acquire multiple data to be transmitted and the device address to which each data to be transmitted is intended to be sent; an establishment module 402 establishes a mapping relationship between each data to be transmitted and the corresponding device address; a broadcast module 403 broadcasts a data transmission instruction to multiple data receiving devices, triggering them to determine the target device address assigned by the data sending device; and a trigger module 404 triggers them to filter the target data to be transmitted from the multiple data to be transmitted based on the target device address. This avoids adding device ID data to the data encoding, improving data transmission efficiency.
[0101] Accordingly, an embodiment of the present application also provides a computer device, which may be a terminal or a server, and the terminal may be a terminal device such as a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer (PC), a personal digital assistant (PDA), etc. As shown in Figure 3, Figure 3 is a structural schematic diagram of a computer device provided in an embodiment of the present application. The computer device 5000 may be a data sending device or a data receiving device, which includes a processor 501 with one or more processing cores, a memory 502 with one or more computer-readable storage media, and a computer program stored in the memory 502 and executable on the processor. The processor 501 is electrically connected to the memory 502. Those skilled in the art will appreciate that the computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown, or combine certain components, or arrange components differently.
[0102] The processor 501 is the control center of the computer device 1000. It uses various interfaces and lines to connect various parts of the entire computer device 1000. By running or loading software programs and / or modules stored in the memory 502 and calling data stored in the memory 502, it executes various functions of the computer device 1000 and processes data, thereby monitoring the computer device 1000 as a whole.
[0103] In the embodiment of the present application, the processor 501 in the computer device 1000 loads instructions corresponding to one or more application processes into the memory 502 according to the following steps, and the processor 501 runs the application stored in the memory 502 to implement various functions:
[0104] Receive data transmission instructions and determine the target device address assigned by the data sending device;
[0105] Based on the target device address, target data to be transmitted that is desired to be obtained is filtered out from a plurality of data to be transmitted.
[0106] In some implementations, before the step of receiving the data transmission instruction and determining the target device address assigned by the data sending device, the method further includes:
[0107] receiving device address information sent by a data sending device;
[0108] The device address is modified to the device address carried in the device address information.
[0109] In some embodiments, each piece of data to be transmitted corresponds to a device address, and the step of filtering out desired target data to be transmitted from the plurality of pieces of data to be transmitted based on the target device address includes:
[0110] Filtering out a designated device address that matches the target device address from the device addresses corresponding to each data to be transmitted;
[0111] The data to be transmitted corresponding to the designated device address is determined as target data to be transmitted.
[0112] In some embodiments, the plurality of data to be transmitted exist in the form of data groups, and two adjacent data to be transmitted are divided by a specified level signal. Before the step of screening out the specified device address that matches the target device address from the device address corresponding to each data to be transmitted, the method further includes:
[0113] dividing the data group into a plurality of data to be transmitted based on the designated level signal;
[0114] The step of filtering out a designated device address that matches the target device address from the device address corresponding to each data to be transmitted is performed.
[0115] In some implementations, a data transmission method, applied to a data sending device, is characterized by comprising:
[0116] Acquire multiple data to be transmitted and the device address to which each data to be transmitted is expected to be sent;
[0117] Establish a mapping relationship between each data to be transmitted and the corresponding device address;
[0118] broadcasting a data transmission instruction to a plurality of data receiving devices, triggering the plurality of data receiving devices to determine a target device address assigned by a data sending device;
[0119] The plurality of data receiving devices are triggered to filter out target data to be transmitted that is desired to be obtained from a plurality of data to be transmitted based on the address of the target device.
[0120] In some embodiments, before the step of obtaining a plurality of data to be transmitted and the device address to which each data to be transmitted is intended to be sent, the method further includes:
[0121] sending corresponding device address information to each data receiving device in sequence according to the sorting order of the plurality of data receiving devices;
[0122] Each of the data receiving devices is triggered to modify the device address to the device address in the received device address information.
[0123] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.
[0124] Optionally, as shown in FIG3 , the computer device 1000 further includes: a touch screen 503, a radio frequency circuit 504, an audio circuit 505, an input unit 506, and a power supply 507. The processor 501 is electrically connected to the touch screen 503, the radio frequency circuit 504, the audio circuit 505, the input unit 506, and the power supply 507, respectively. Those skilled in the art will appreciate that the computer device structure shown in FIG3 does not limit the computer device, and may include more or fewer components than shown, or combine certain components, or arrange the components differently.
[0125] The touchscreen display 503 can be used to display a graphical user interface and receive operational instructions generated by a user acting on the graphical user interface. The touchscreen display 503 may include a display panel and a touch panel. The display panel can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of the computer device. These graphical user interfaces can be composed of graphics, text, icons, videos, or any combination thereof. Optionally, the display panel can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. The touch panel can be used to collect user touch operations on or near it (such as operations performed by a user using a finger, stylus, or any other suitable object or accessory on or near the touch panel), generate corresponding operational instructions, and execute corresponding programs based on the operational instructions. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch direction, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 501, and can receive the command sent by the processor 501 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 501 to determine the type of touch event, and then the processor 501 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 503 to realize input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize input and output functions. That is, the touch display screen 503 can also be used as part of the input unit 506 to realize the input function.
[0126] In this embodiment of the present application, processor 501 executes a game application to generate a graphical user interface (GUI) on touchscreen display 503. The virtual scene on the GUI includes at least one skill control area, which includes at least one skill control. Touchscreen display 503 is used to present the GUI and receive user commands generated by operating the GUI.
[0127] The radio frequency circuit 504 may be used to transmit and receive radio frequency signals, so as to establish wireless communication with a network device or other computer device through wireless communication, and to transmit and receive signals between the network device or other computer device.
[0128] Audio circuit 505 can be used to provide an audio interface between the user and the computer device through a speaker and microphone. Audio circuit 505 can convert received audio data into electrical signals and transmit them to the speaker, which then converts them into sound signals for output. Conversely, the microphone converts collected sound signals into electrical signals, which are then received by audio circuit 505 and converted into audio data. The audio data is then output to processor 501 for processing, then transmitted via RF circuit 504 to, for example, another computer device, or to memory 502 for further processing. Audio circuit 505 may also include an earphone jack to allow communication between external headphones and the computer device.
[0129] The input unit 506 may be configured to receive input digital, character information, or user feature information (such as fingerprint, iris, or facial information), and generate keyboard, mouse, joystick, optical, or trackball signal input related to user settings and function control.
[0130] Power supply 507 is used to supply power to various components of computer device 1000. Optionally, power supply 507 can be logically connected to processor 501 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. Power supply 507 can also include one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components.
[0131] Although not shown in FIG. 3 , the computer device 1000 may further include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.
[0132] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0133] As can be seen from the above, the computer device provided in this embodiment receives a data transmission instruction through a data receiving device, determines the target device address assigned by the data sending device, and filters out the target data to be transmitted from multiple data to be transmitted based on the target device address. Furthermore, the data sending device obtains multiple data to be transmitted and the device address to which each data to be transmitted is to be transmitted; establishes a mapping relationship between each data to be transmitted and the corresponding device address; broadcasts the data transmission instruction to multiple data receiving devices, triggering the multiple data receiving devices to determine the target device address assigned by the data sending device; and triggers the multiple data receiving devices to filter out the target data to be transmitted from multiple data to be transmitted based on the target device address. In this way, the addition of device ID data to the data encoding can be avoided, improving data transmission efficiency. Furthermore, the sender does not need to wait for the receiver to filter out the desired data before sending data to other receivers, shortening the data transmission time.
[0134] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0135] To this end, an embodiment of the present application provides a computer-readable storage medium storing a plurality of computer programs, which can be loaded by a processor to execute the steps of any skill control method provided in the embodiment of the present application. For example, the computer program can execute the following steps:
[0136] The data receiving device receives a data transmission instruction, determines a target device address assigned by a data sending device, and filters out desired target data from a plurality of data to be transmitted based on the target device address. Furthermore, the data sending device obtains a plurality of data to be transmitted and the device address to which each data to be transmitted is to be transmitted; a mapping relationship is established between each data to be transmitted and the corresponding device address; the data transmission instruction is broadcast to a plurality of data receiving devices, triggering the plurality of data receiving devices to determine the target device address assigned by the data sending device; and triggering the plurality of data receiving devices to filter out desired target data from a plurality of data to be transmitted based on the target device address.
[0137] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.
[0138] The storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0139] Since the computer program stored in the storage medium can execute the steps in any one of the data transmission methods provided in the embodiments of the present application, the beneficial effects that can be achieved by any one of the data transmission methods provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0140] The above is a detailed introduction to a data transmission method, device, computer-readable storage medium and computer equipment provided in the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, based on the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A data transmission method, applied to a data receiving device, wherein: include: Receive data transmission instructions and determine the target device address assigned by the data sending device; Based on the target device address, the target data to be transmitted that is expected to be obtained is screened out from the multiple data to be transmitted.
2. The data transmission method according to claim 1, wherein: Before the step of receiving the data transmission instruction and determining the target device address assigned by the data sending device, the method further includes: receiving device address information sent by a data sending device; The device address is modified to the device address carried in the device address information.
3. The data transmission method according to claim 1, wherein: Each of the data to be transmitted corresponds to a device address, and the step of filtering out the target data to be transmitted that is expected to be obtained from the multiple data to be transmitted based on the target device address includes: Filtering out a designated device address that matches the target device address from the device address corresponding to each data to be transmitted; The data to be transmitted corresponding to the designated device address is determined as the target data to be transmitted.
4. The data transmission method according to claim 3, wherein: The plurality of data to be transmitted exist in the form of data groups, and two adjacent data to be transmitted are divided by a specified level signal. Before the step of screening out a specified device address matching the target device address from the device address corresponding to each data to be transmitted, the step further includes: Dividing the data group into a plurality of data to be transmitted based on the designated level signal; The step of screening out a designated device address that matches the target device address from the device address corresponding to each data to be transmitted is performed.
5. The data transmission method according to claim 1, wherein: The step of filtering out target data to be transmitted that is expected to be obtained from a plurality of data to be transmitted based on the target device address includes: Filtering out a target storage area matching the target device address; The data to be transmitted stored in the target storage area is determined as the target data to be transmitted.
6. A data transmission method, applied to a data sending device, wherein: include: Acquire multiple data to be transmitted and the device address to which each data to be transmitted is expected to be sent; Establishing a mapping relationship between each data to be transmitted and the corresponding device address; broadcasting a data transmission instruction to a plurality of data receiving devices, triggering the plurality of data receiving devices to determine a target device address assigned by a data sending device; The plurality of data receiving devices are triggered to filter out target data to be transmitted that is expected to be obtained from a plurality of data to be transmitted based on the address of the target device.
7. The data transmission method according to claim 6, wherein: Before the step of obtaining a plurality of data to be transmitted and a device address to which each data to be transmitted is expected to be sent, the method further includes: According to the sorting order of the plurality of data receiving devices, the corresponding device address information is sent to each data receiving device in turn; Each of the data receiving devices is triggered to modify the device address to the device address in the received device address information.
8. A data transmission device, applied to a data receiving device, wherein: include: A receiving module, used to receive a data transmission instruction and determine a target device address assigned by a data sending device; The screening module is used to screen out target data to be transmitted that is expected to be obtained from a plurality of data to be transmitted based on the target device address.
9. The data transmission device according to claim 8, wherein: Also includes: A second receiving module, used for receiving device address information sent by a data sending device; The modification module is used to modify the device address to the device address carried in the device address information.
10. The data transmission device according to claim 8, wherein: Each of the data to be transmitted corresponds to a device address, and the screening module includes: A first screening submodule, configured to screen out a designated device address that matches the target device address from the device addresses corresponding to each data to be transmitted; The determination submodule is used to determine the data to be transmitted corresponding to the designated device address as the target data to be transmitted.
11. The data transmission device according to claim 10, wherein: The plurality of data to be transmitted exist in the form of data groups, and two adjacent data to be transmitted are divided by a specified level signal, and the screening module further includes: A division submodule, used for dividing the data group into a plurality of data to be transmitted based on the specified level signal; The second screening submodule is used to execute the step of screening out the designated device address matching the target device address from the device address corresponding to each data to be transmitted.
12. The data transmission device according to claim 8, wherein: The screening module is also used for: Filtering out a target storage area matching the target device address; The data to be transmitted stored in the target storage area is determined as the target data to be transmitted.
13. A data transmission device, applied to a data sending device, wherein: include: An acquisition module, used for acquiring a plurality of data to be transmitted and a device address to which each data to be transmitted is expected to be sent; Establishing module, used to establish mapping relationship between each data to be transmitted and corresponding device address; A broadcast module, used for broadcasting a data transmission instruction to a plurality of data receiving devices, triggering the plurality of data receiving devices to determine a target device address assigned by a data sending device; The trigger module is used to trigger the plurality of data receiving devices to filter out target data to be transmitted from a plurality of data to be transmitted based on the address of the target device.
14. The data transmission device according to claim 13, wherein: Also includes: A sending module, used to send corresponding device address information to each data receiving device in sequence according to the sorting order of the plurality of data receiving devices; The second trigger module is used to trigger each of the data receiving devices to modify the device address to the device address in the received device address information.
15. A computer-readable storage medium, wherein: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the data transmission method according to any one of claims 1 to 7.
16. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps in the data transmission method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
An address allocation method and device for slave node equipment
CN109936640A
Data matching method and device, data processing method and device, electronic equipment and storage medium
CN116304234A
Communication system
CN116389535A
Data transmission method and device, storage medium and computer equipment
CN117411827A
Communication between integrated graphics processing units
US20170018050A1