CN111770009A - Data transmission method and related equipment - Google Patents
Data transmission method and related equipment Download PDFInfo
- Publication number
- CN111770009A CN111770009A CN202010603614.4A CN202010603614A CN111770009A CN 111770009 A CN111770009 A CN 111770009A CN 202010603614 A CN202010603614 A CN 202010603614A CN 111770009 A CN111770009 A CN 111770009A
- Authority
- CN
- China
- Prior art keywords
- components
- target
- data transmission
- bus
- component
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40169—Flexible bus arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application provides a data transmission method and related equipment, and when developers develop and maintain, only corresponding data transmission buses need to be developed and maintained, so that the workload of the developers is reduced. The method comprises the following steps: determining target interaction data, wherein the target interaction data correspond to M first components, and M is a positive integer greater than or equal to 1; determining attribute information of the M first components, wherein the attribute information of the M first components comprises role information of the M first components and bus identifications corresponding to the M first components; determining a target data transmission bus based on the attribute information of the M first components, wherein the target data transmission bus corresponds to the first components, and N second components corresponding to the M first components are bound in the target data transmission bus, and N is a positive integer greater than or equal to 1; and sending the target interaction data to the N second components through the target data transmission bus.
Description
Technical Field
The present application relates to the field of communications, and in particular, to a data transmission method and related device.
Background
In the component editor, each component independently maintains the data, the state and the method of the component, and if the components are not interfered, the components and the components have no way to transmit data, but the components which cannot transmit data cannot realize the linkage effect among the components. In order to achieve the effect of linkage between components, a logical data path needs to be established between the components, and the data path carries the data transmission work between the associated components.
The current data path is often set according to a specific component type, for example, the component a and the component B respectively have own dedicated service semantics, and when a data transmission relationship between the component a and the component B is established, a developer needs to develop the data path between the component a and the component B according to a specific implementation logic of the component a and the component B. Accordingly, if there are M datapaths between N components, a developer needs to develop and maintain M datapath code modules in the development phase.
However, the data path constructed in this way is often specific and difficult to multiplex once it leaves the scenario of a particular component a and component B. When the number of the components is more and more, and the data transmission relationship between the components is more and more complex, the corresponding specific data paths are more and more, which undoubtedly brings great development and maintenance burden to developers.
Disclosure of Invention
When a developer develops and maintains the data transmission bus, the developer only needs to develop and maintain the corresponding data transmission bus instead of developing and maintaining the transmission link between the two components as required in the prior art, and the workload of the developer is reduced.
A first aspect of the present application provides a data transmission method, including:
determining target interaction data, wherein the target interaction data correspond to M first components, and M is a positive integer greater than or equal to 1;
determining attribute information of the M first components, wherein the attribute information of the M first components comprises role information of the M first components and bus identifications corresponding to the M first components;
determining a target data transmission bus based on the attribute information of the M first components, wherein the target data transmission bus corresponds to the first components, and N second components corresponding to the M first components are bound in the target data transmission bus, and N is a positive integer greater than or equal to 1;
and sending the target interaction data to the N second components through the target data transmission bus.
Optionally, the determining a target data transfer bus based on the attribute information of the M first components includes:
extracting bus identifications corresponding to the M first components;
and searching a bus list based on the bus identifications corresponding to the M first components to obtain the target data transmission bus, wherein the bus list stores a plurality of data transmission buses except the target data transmission bus.
Optionally, the determining the target interaction data includes:
monitoring first operation instructions of a user on the M first components;
and determining the target interaction data according to the first operation instruction.
Optionally, the method further comprises:
receiving a second operation instruction;
and creating the target data transmission bus according to the second operation instruction, and binding the M first components and the N second components to the target data transmission bus.
Optionally, when M is a positive integer greater than 1, the attribute information of the first target component further includes a subscriber component identifier, where the first target component is any one of the M first components, the subscriber component identifier is an identifier of a second target component corresponding to the first target component in the N second components, and the sending the target interaction data to the N second components through the target data transmission bus includes:
searching the second target component from the target data transmission bus according to the subscriber component identification;
and sending the target interaction data to the second target component.
A second aspect of the present application provides a data transmission apparatus, including:
the device comprises a first determining unit, a second determining unit and a third determining unit, wherein the first determining unit is used for determining target interaction data, the target interaction data correspond to M first components, and M is a positive integer greater than or equal to 1;
a second determining unit, configured to determine attribute information of the M first components, where the attribute information of the M first components includes role information of the M first components and bus identifiers corresponding to the M first components;
a third determining unit, configured to determine a target data transfer bus based on the attribute information of the M first components, where the target data transfer bus corresponds to the first components, and N second components corresponding to the M first components are bound in the target data transfer bus, where N is a positive integer greater than or equal to 1;
and the sending unit is used for sending the target interaction data to the N second assemblies through the target data transmission bus.
Optionally, the third determining unit is specifically configured to:
extracting bus identifications corresponding to the M first components;
and searching a bus list based on the bus identifications corresponding to the M first components to obtain the target data transmission bus, wherein the bus list stores a plurality of data transmission buses except the target data transmission bus.
Optionally, the first determining unit is specifically configured to:
monitoring first operation instructions of a user on the M first components;
and determining the target interaction data according to the first operation instruction.
Optionally, the third determining unit is further configured to:
receiving a second operation instruction;
and creating the target data transmission bus according to the second operation instruction, and binding the M first components and the N second components to the target data transmission bus.
Optionally, when M is a positive integer greater than 1, the attribute information of the first target component further includes a subscriber component identifier, where the first target component is any one of the M first components, the subscriber component identifier is an identifier of a second target component corresponding to the first target component in the N second components, and the sending unit is specifically configured to:
searching the second target component from the target data transmission bus according to the subscriber component identification;
and sending the target interaction data to the second target component.
A third aspect of the present application provides a computer device comprising at least one processor and a memory coupled to each other, wherein the memory is configured to store program code, which is loaded and executed by the processor to implement the steps of the data transmission method as described above.
A fourth aspect of the present application provides a computer-readable storage medium comprising instructions which, when run on a computer, cause the computer to perform the steps of the data transmission method described above.
In summary, it can be seen that, in the embodiment provided by the present application, when a data path is constructed, it is only necessary to create a corresponding data transmission bus and bind corresponding data components to a publishing terminal and a receiving terminal of the data transmission bus without considering internal specificity of specific data components, and thus, when data transmission is performed, even when the number of components is increasing and the data transmission relationship between the components is becoming more and more complex, only the components need to be added to the sending terminal and the receiving terminal of the corresponding data transmission bus, and thus, when developers develop and maintain, only the corresponding data transmission bus needs to be developed and maintained, instead of developing and maintaining a transmission link between two components as in the prior art, which reduces workload of the developers.
Drawings
Fig. 1 is a schematic flowchart of a data transmission method according to an embodiment of the present application;
fig. 2 is a schematic view of a virtual structure of a data transmission apparatus according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present application;
fig. 4 is a schematic hardware structure diagram of a server according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments.
The terms "first," "second," and the like in the description and in the claims of the present application and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprise," "include," and "have," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or modules is not necessarily limited to those steps or modules expressly listed, but may include other steps or modules not expressly listed or inherent to such process, method, article, or apparatus, the division of modules presented herein is merely a logical division that may be implemented in a practical application in a further manner, such that a plurality of modules may be combined or integrated into another system, or some feature vectors may be omitted, or not implemented, and such that couplings or direct couplings or communicative coupling between each other as shown or discussed may be through some interfaces, indirect couplings or communicative coupling between modules may be electrical or other similar, this application is not intended to be limiting. The modules or sub-modules described as separate components may or may not be physically separated, may or may not be physical modules, or may be distributed in a plurality of circuit modules, and some or all of the modules may be selected according to actual needs to achieve the purpose of the present disclosure.
Some of the nouns to which this application relates are explained:
the component, the "component" mentioned in the present application refers to a modular User Interface (UI) component with a certain independence (possessing own proprietary data, state and method, etc.), and typical components include a data diagram component, a table component, a text component, etc.;
data transmission, where "data transmission" is referred to herein to specifically refer to the data interaction behavior between components;
data path, the term "data path" as referred to in this application refers specifically to the carrier of data interaction between components;
a bus, where "bus" is referred to herein as a means for the standardized exchange of data between components, i.e., providing data transfer and control logic for each component in a common manner;
the subscription mode of publication, referred to herein as publisher subscription mode, is coordinated by a broker as a dispatch center, with related subscriptions and publications being coordinated by the dispatch center. That is, in the embodiment of the present application, the data of the publisher is obtained through one scheduling center, and the data of the publisher is transmitted to the subscriber corresponding to the publisher, so that the data transmission between the two components is completed.
The data processing method provided by the present application is described below from the perspective of a data transmission device, which may be a terminal device, a server, or a service unit in a server, and is not particularly limited.
Referring to fig. 1, fig. 1 is a schematic flow chart of a data transmission method according to an embodiment of the present application, including:
101. and determining target interaction data.
In this embodiment, the data transmission device may determine target interaction data, where the target interaction data corresponds to M first components, where M is a positive integer greater than or equal to 1. The data transmission device may monitor a first operation instruction of a user on the M first components, and determine target interaction data according to the first operation instruction, where the M first components may be data graph components (of course, other components may also be, such as form components or text components, and the data graph components are herein described as an example, and are not specifically limited to the above), and the data transmission device is a data graph editor platform, and the M first components are described as data icon components, and the data graph editor platform is used as a main entry of the M first components (that is, the M data graph components) and is responsible for monitoring target interaction data generated by interaction of the user through an interface provided by the M first components.
In one embodiment, the operation of generating the first operation instruction includes at least one of a gesture operation, a sliding operation, a clicking operation and a voice control operation, for example, when a user performs a clicking operation on an interface provided by the M first components, the data transmission device may receive the clicking operation, and at this time, the clicking operation generates the first operation instruction, that is, an operation instruction may be defined in advance, for example, an operation of the sliding operation as the user performs on the interface provided by the M first components (e.g., a left sliding operation, a right sliding operation, a slide-up operation, a slide-down operation, and the like), or an operation of the clicking operation as the user performs on the interface provided by the M first components (e.g., a single-clicking operation or a double-clicking operation, and the like), or an operation of the gesture operation as the user performs on the interface provided by the M first components (e.g., swings a wrist or an, for example, the above is only an example and does not represent a limitation on the operation for generating the first operation instruction, and the above is only an example.
102. Attribute information of the M first components is determined.
In this embodiment, the data transmission apparatus may determine attribute information of the M first components, where the attribute information of the M first components includes role information of the M first components and bus identifiers corresponding to the M first components. The role information of the M first components may be, for example, a publisher, and the bus identifiers corresponding to the first components are used to indicate the buses to which the M first components are bound. That is, the attribute information of the M first components indicates which data transmission bus the M first components are bound to and whether the M first components are publishers or subscribers, that is, it can be known through the attribute information of the M first components which bus the M first components are bound to, and at the same time, it can also be known whether the M first components are senders of data or receivers of data.
It should be noted that the target interaction data may be determined through step 101, and the attribute information of the M first components may be determined through step 102, however, there is no limitation on the execution order between the two steps, and step 101 may be executed first, step 102 may be executed first, or step 102 may be executed simultaneously, which is not limited specifically.
In one embodiment, the data transmission apparatus may receive a second operation instruction, create a target data transmission bus according to the second operation instruction, and bind the M first components and the N second components to the target data transmission bus.
In this embodiment, the data transmission device may receive a second operation instruction of the user, create a target data transmission bus according to the second operation instruction, and bind the M first components and the N second components to the target data transmission bus. That is to say, the data transmission device may present the graph binding interface, receive a second operation instruction of the user, register the target data transmission bus, that is, insert a new bus record (i.e., the target data transmission bus) into the bus list, bind the M first components to the publishing end of the target data transmission bus (add the M first components to the publisher list of the target data transmission bus), and simultaneously bind the N second components corresponding to the M first components to the subscribing end of the target data transmission bus (add the N second components to the subscriber list of the target data transmission bus), that is, take the M first components as publishers of data and the N second components as subscribers of data. When M first components are bound to the issuing end and N second components are bound to the receiving end, the role information corresponding to each component and the bus identification of the target data transmission bus can be recorded, so that the components of the issuing end can conveniently find the target data transmission bus, and the target data transmission bus can conveniently find the receiving end corresponding to the issuing end.
It should be noted that the operation of generating the second operation instruction is similar to the operation of generating the first operation instruction, and the above-mentioned operation of generating the first operation instruction is described in detail, and details of the operation of generating the second operation instruction are not repeated here.
103. A target data transfer bus is determined based on the attribute information of the M first components.
In this embodiment, the data transmission apparatus may determine, based on the attribute information of the M first components, a target data transmission bus, where the target data transmission bus corresponds to the M first components, that is, the M first components exist in an issuer list of the target data transmission bus, and in addition, N second components corresponding to the M first components are bound to the target data transmission bus, where N is a positive integer greater than or equal to 2. Specifically, the data transmission device may extract bus identifiers in the attribute information of the M first components, and search a bus list according to the bus identifiers to obtain a target data transmission bus, where the bus list stores a plurality of data transmission buses including the target data transmission bus.
104. And sending the target interaction data to the N second components through the target data transmission bus.
In this embodiment, after determining the target data transmission bus, the data transmission device may send the target interactive data to the N second components through the target data transmission bus. That is, the data transmission device can sense the target interaction data generated by the publisher (M first components) through the target data transmission bus, find the subscribers (N second components) corresponding to the target interaction data, and then send the processed target interaction data to the N second components, so that the N second components will receive the target interaction data directly from the target data transmission bus and indirectly from the M first components, and perform corresponding operations according to the target interaction data.
In one embodiment, when M is a positive integer greater than 1, the attribute information of the first target component further includes a subscriber component identifier, the first target component is any one of the M first components, the subscriber component identifier is an identifier of a second target component corresponding to the first target component among the N second components, and sending the target interaction data to the N second components through the target data transmission bus includes:
searching the identifier of the second target component from the target data transmission bus according to the identifier of the subscriber component;
sending the target interaction data to a second target component based on an identification of the second target component.
In this embodiment, when M is a positive integer greater than 1, the number of publishers and subscribers is greater than 1, and at this time, different pairing results may be generated through the target data transmission bus, for example, M is 2, N is 2, M first components are a component a and a component B, and N second components are a component C and a component D, at this time, a subscriber component identifier needs to be added to determine which component the data is subscribed to, that is, a specific data transmission path between the M first components and the N second components needs to be defined. For example, the data is interactive data generated by a user operating the component a, and is to be sent to the component C, at this time, a subscriber component identifier corresponding to the component C may be added to attribute information of the component a, for example, a second component corresponding to the component a is the component C, and at this time, a subscriber component identifier corresponding to the component C may be added, so that, when target interactive data is sent to N second components through the target data transmission bus, because the component a already includes the subscriber component identifier, the data transmission apparatus may search for the corresponding component C from a subscriber list of the target data transmission bus according to the subscriber identifier, and send the interactive data corresponding to the component a to the component C through the target data transmission bus, thereby completing data transmission between the component a and the component C.
In summary, it can be seen that, in the embodiment provided by the present application, when a data path is constructed, it is only necessary to create a corresponding data transmission bus and bind corresponding data components to a publishing terminal and a receiving terminal of the data transmission bus without considering internal specificity of specific data components, and thus, when data transmission is performed, even when the number of components is increasing and the data transmission relationship between the components is becoming more and more complex, only the components need to be added to the sending terminal and the receiving terminal of the corresponding data transmission bus, and thus, when developers develop and maintain, only the corresponding data transmission bus needs to be developed and maintained instead of the existing transmission link between two components, which reduces workload of the developers.
The present application is described above from the viewpoint of a data transmission method, and the present application is described below from the viewpoint of a data transmission device.
Referring to fig. 2, fig. 2 is a schematic view of a virtual structure of a data transmission device according to an embodiment of the present application, including:
a first determining unit 201, configured to determine target interaction data, where the target interaction data corresponds to M first components, where M is a positive integer greater than or equal to 1;
a second determining unit 202, configured to determine attribute information of the M first components, where the attribute information of the M first components includes role information of the M first components and bus identifiers corresponding to the M first components;
a third determining unit 203, configured to determine a target data transmission bus based on the attribute information of the M first components, where the target data transmission bus corresponds to the first components, and N second components corresponding to the M first components are bound in the target data transmission bus, where N is a positive integer greater than or equal to 1;
a sending unit 204, configured to send the target interaction data to the N second components through the target data transmission bus.
Optionally, the third determining unit 203 is specifically configured to:
extracting bus identifications corresponding to the M first components;
and searching a bus list based on the bus identifications corresponding to the M first components to obtain the target data transmission bus, wherein the bus list stores a plurality of data transmission buses except the target data transmission bus.
Optionally, the first determining unit 201 is specifically configured to:
monitoring first operation instructions of a user on the M first components;
and determining the target interaction data according to the first operation instruction.
Optionally, the third determining unit 203 is further configured to:
receiving a second operation instruction;
and creating the target data transmission bus according to the second operation instruction, and binding the M first components and the N second components to the target data transmission bus.
Optionally, when M is a positive integer greater than 1, the attribute information of the first target component further includes a subscriber component identifier, where the first target component is any one of the M first components, the subscriber component identifier is an identifier of a second target component corresponding to the first target component in the N second components, and the sending unit 204 is specifically configured to:
searching the second target component from the target data transmission bus according to the subscriber component identification;
and sending the target interaction data to the second target component.
In summary, it can be seen that, in the embodiment provided by the present application, when a data path is constructed, it is only necessary to create a corresponding data transmission bus and bind corresponding data components to a publishing terminal and a receiving terminal of the data transmission bus without considering internal specificity of specific data components, and thus, when data transmission is performed, even when the number of components is increasing and the data transmission relationship between the components is becoming more and more complex, only the components need to be added to the sending terminal and the receiving terminal of the corresponding data transmission bus, and thus, when developers develop and maintain, only the corresponding data transmission bus needs to be developed and maintained instead of the existing transmission link between two components, which reduces workload of the developers.
As shown in fig. 3, for convenience of description, only the portions related to the embodiments of the present application are shown, and details of the specific technology are not disclosed, please refer to the method portion of the embodiments of the present application. The data transmission device may be a terminal, and the terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal digital assistant), a POS (Point of Sales), a vehicle-mounted computer, and the terminal is taken as a mobile phone as an example:
fig. 3 is a block diagram illustrating a partial structure of a mobile phone related to a terminal provided in an embodiment of the present application. Referring to fig. 3, the cellular phone includes: radio Frequency (RF) circuit 310, memory 320, input unit 330, display unit 340, sensor 350, audio circuit 360, wireless fidelity (WiFi) module 370, processor 380, and power supply 390. Those skilled in the art will appreciate that the handset configuration shown in fig. 3 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 3:
the RF circuit 310 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information of a base station and then processes the received downlink information to the processor 380; in addition, the data for designing uplink is transmitted to the base station. In general, the RF circuit 310 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuit 310 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to global system for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 320 may be used to store software programs and modules, and the processor 380 executes various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 320. The memory 320 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 320 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 330 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 330 may include a touch panel 331 and other input devices 332. The touch panel 331, also referred to as a touch screen, can collect touch operations of a user (e.g., operations of the user on the touch panel 331 or near the touch panel 331 using any suitable object or accessory such as a finger, a stylus, etc.) on or near the touch panel 331, and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 331 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 380, and can receive and execute commands sent by the processor 380. In addition, the touch panel 331 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 330 may include other input devices 332 in addition to the touch panel 331. In particular, other input devices 332 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 340 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 340 may include a display panel 341, and optionally, the display panel 341 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 331 can cover the display panel 341, and when the touch panel 331 detects a touch operation on or near the touch panel 331, the touch panel is transmitted to the processor 380 to determine the type of the touch event, and then the processor 380 provides a corresponding visual output on the display panel 341 according to the type of the touch event. Although in fig. 3, the touch panel 331 and the display panel 341 are two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 331 and the display panel 341 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 350, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 341 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 341 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 370, and provides wireless broadband internet access for the user. Although fig. 3 shows the WiFi module 370, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 380 is a control center of the mobile phone, connects various parts of the whole mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory 320, thereby performing overall monitoring of the mobile phone. Optionally, processor 380 may include one or more processing units; preferably, the processor 380 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 380.
The handset also includes a power supply 390 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 380 via a power management system to manage charging, discharging, and power consumption via the power management system.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In the embodiment of the present application, the steps performed by the data transmission apparatus may be performed by the processor 380 included in the terminal.
Fig. 4 is a schematic diagram of a server structure provided by an embodiment of the present application, where the server 400 may have a relatively large difference due to different configurations or performances, and may include one or more Central Processing Units (CPUs) 422 (e.g., one or more processors) and a memory 432, and one or more storage media 430 (e.g., one or more mass storage devices) for storing applications 442 or data 444. Wherein the memory 432 and storage medium 430 may be transient or persistent storage. The program stored on the storage medium 430 may include one or more modules (not shown), each of which may include a series of instruction operations for the server. Still further, the central processor 422 may be arranged to communicate with the storage medium 430, and execute a series of instruction operations in the storage medium 430 on the server 400.
The server 400 may also include one or more power supplies 426, one or more wired or wireless network interfaces 450, one or more input-output interfaces 458, and/or one or more operating systems 441, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, and so forth.
The steps performed by the data transmission apparatus in the above-described embodiment may be based on the server structure shown in fig. 4.
An embodiment of the present application further provides a computer-readable storage medium, on which a program is stored, and the program, when executed by a processor, implements the steps of the data transmission method described above.
The embodiment of the present application further provides a processor, where the processor is configured to execute a program, where the program executes the steps of the data transmission method when running.
The embodiment of the present application further provides a terminal device, where the device includes a processor, a memory, and a program stored in the memory and capable of running on the processor, and the program code is loaded and executed by the processor to implement the steps of the data transmission method.
The present application also provides a computer program product adapted to perform the steps of the data transmission method described above when executed on a data processing device.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the apparatus and the module described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
It should also be noted that 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 an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (10)
1. A method of data transmission, comprising:
determining target interaction data, wherein the target interaction data correspond to M first components, and M is a positive integer greater than or equal to 1;
determining attribute information of the M first components, wherein the attribute information of the M first components comprises role information of the M first components and bus identifications corresponding to the M first components;
determining a target data transmission bus based on the attribute information of the M first components, wherein the target data transmission bus corresponds to the first components, and N second components corresponding to the M first components are bound in the target data transmission bus, and N is a positive integer greater than or equal to 1;
and sending the target interaction data to the N second components through the target data transmission bus.
2. The method of claim 1, wherein determining a target data transfer bus based on the attribute information of the M first components comprises:
extracting bus identifications corresponding to the M first components;
and searching a bus list based on the bus identifications corresponding to the M first components to obtain the target data transmission bus, wherein the bus list stores a plurality of data transmission buses except the target data transmission bus.
3. The method of claim 1, wherein the determining target interaction data comprises:
monitoring first operation instructions of a user on the M first components;
and determining the target interaction data according to the first operation instruction.
4. The method of claim 1, further comprising:
receiving a second operation instruction;
and creating the target data transmission bus according to the second operation instruction, and binding the M first components and the N second components to the target data transmission bus.
5. The method according to any one of claims 1 to 4, wherein when M is a positive integer greater than 1, the attribute information of the first target component further includes an identifier of a subscriber component, the first target component is any one of the M first components, the identifier of the subscriber component is an identifier of a second target component corresponding to the first target component, and the sending the target interaction data to the N second components through the target data transmission bus includes:
searching the second target component from the target data transmission bus according to the subscriber component identification;
and sending the target interaction data to the second target component.
6. A data transmission apparatus, comprising:
the device comprises a first determining unit, a second determining unit and a third determining unit, wherein the first determining unit is used for determining target interaction data, the target interaction data correspond to M first components, and M is a positive integer greater than or equal to 1;
a second determining unit, configured to determine attribute information of the M first components, where the attribute information of the M first components includes role information of the M first components and bus identifiers corresponding to the M first components;
a third determining unit, configured to determine a target data transfer bus based on the attribute information of the M first components, where the target data transfer bus corresponds to the first components, and N second components corresponding to the M first components are bound in the target data transfer bus, where N is a positive integer greater than or equal to 1;
and the sending unit is used for sending the target interaction data to the N second assemblies through the target data transmission bus.
7. The data transmission apparatus according to claim 6, wherein the third determining unit is specifically configured to:
extracting bus identifications corresponding to the M first components;
and searching a bus list based on the bus identifications corresponding to the M first components to obtain the target data transmission bus, wherein the bus list stores a plurality of data transmission buses except the target data transmission bus.
8. The apparatus according to claim 6 or 7, wherein when M is a positive integer greater than 1, the attribute information of the first target component further includes a subscriber component identifier, where the first target component is any one of the M first components, and the subscriber component identifier is an identifier of a second target component corresponding to the first target component among the N second components, and the sending unit is specifically configured to:
searching the second target component from the target data transmission bus according to the subscriber component identification;
and sending the target interaction data to the second target component.
9. A computer device, comprising:
at least one processor and a memory coupled to store program code, wherein the program code is loaded and executed by the processor to implement the steps of the data transmission method of any of the preceding claims 1 to 5.
10. A computer-readable storage medium comprising instructions which, when executed on a computer, cause the computer to perform the steps of the data transmission method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010603614.4A CN111770009B (en) | 2020-06-29 | 2020-06-29 | Data transmission method and related equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010603614.4A CN111770009B (en) | 2020-06-29 | 2020-06-29 | Data transmission method and related equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111770009A true CN111770009A (en) | 2020-10-13 |
CN111770009B CN111770009B (en) | 2022-05-20 |
Family
ID=72722864
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010603614.4A Active CN111770009B (en) | 2020-06-29 | 2020-06-29 | Data transmission method and related equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111770009B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113312179A (en) * | 2021-06-01 | 2021-08-27 | 中国民航信息网络股份有限公司 | Data component management method, device and system, electronic equipment and storage medium |
CN113590356A (en) * | 2021-07-29 | 2021-11-02 | 网易(杭州)网络有限公司 | Data communication method and device and electronic equipment |
CN117873938A (en) * | 2024-03-13 | 2024-04-12 | 苏州元脑智能科技有限公司 | Heterogeneous computation-oriented data transmission path determination method and device |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1509000A (en) * | 2002-12-15 | 2004-06-30 | 华为技术有限公司 | Network element inside real-time data synchronizing method |
US20040181471A1 (en) * | 2003-03-12 | 2004-09-16 | Microsoft Corporation | Automated business software application integration |
CN101305581A (en) * | 2005-11-26 | 2008-11-12 | 国际商业机器公司 | Method, apparatus and computer program for access control |
CN104601581A (en) * | 2015-01-20 | 2015-05-06 | 北京仿真中心 | Reliable protocol interest agent based distributed publishing/subscription system and method |
CN105939335A (en) * | 2015-03-05 | 2016-09-14 | 国际商业机器公司 | Method and system for managing channel ownership in a publish-subscribe data processing environment |
CN108351221A (en) * | 2015-09-24 | 2018-07-31 | 苹果公司 | System and method for generating an interactive user interface |
CN109936500A (en) * | 2019-02-28 | 2019-06-25 | 深圳市元征科技股份有限公司 | A kind of data interactive method, data interaction device and electronic equipment |
CN110674068A (en) * | 2019-09-24 | 2020-01-10 | 国网上海市电力公司 | Information interaction method among board cards, distributed board card and storage medium |
-
2020
- 2020-06-29 CN CN202010603614.4A patent/CN111770009B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1509000A (en) * | 2002-12-15 | 2004-06-30 | 华为技术有限公司 | Network element inside real-time data synchronizing method |
US20040181471A1 (en) * | 2003-03-12 | 2004-09-16 | Microsoft Corporation | Automated business software application integration |
CN101305581A (en) * | 2005-11-26 | 2008-11-12 | 国际商业机器公司 | Method, apparatus and computer program for access control |
CN104601581A (en) * | 2015-01-20 | 2015-05-06 | 北京仿真中心 | Reliable protocol interest agent based distributed publishing/subscription system and method |
CN105939335A (en) * | 2015-03-05 | 2016-09-14 | 国际商业机器公司 | Method and system for managing channel ownership in a publish-subscribe data processing environment |
CN108351221A (en) * | 2015-09-24 | 2018-07-31 | 苹果公司 | System and method for generating an interactive user interface |
CN109936500A (en) * | 2019-02-28 | 2019-06-25 | 深圳市元征科技股份有限公司 | A kind of data interactive method, data interaction device and electronic equipment |
CN110674068A (en) * | 2019-09-24 | 2020-01-10 | 国网上海市电力公司 | Information interaction method among board cards, distributed board card and storage medium |
Non-Patent Citations (3)
Title |
---|
J.KAISER,C.BRUDNA: "A Publisher/Subscriber Architecture Supporting Interoperability of the CAN-Bus and the Internet", 《4TH IEEE INTERNATIONAL WORKSHOP ON FACTORY COMMUNICATION SYSTEMS》 * |
李经松等: "软件总线体系结构的研究与应用", 《空间控制技术与应用》 * |
秦玉函: "嵌入式实时多处理系统的通信中间件技术研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113312179A (en) * | 2021-06-01 | 2021-08-27 | 中国民航信息网络股份有限公司 | Data component management method, device and system, electronic equipment and storage medium |
CN113590356A (en) * | 2021-07-29 | 2021-11-02 | 网易(杭州)网络有限公司 | Data communication method and device and electronic equipment |
CN113590356B (en) * | 2021-07-29 | 2023-08-11 | 网易(杭州)网络有限公司 | Data communication method and device and electronic equipment |
CN117873938A (en) * | 2024-03-13 | 2024-04-12 | 苏州元脑智能科技有限公司 | Heterogeneous computation-oriented data transmission path determination method and device |
CN117873938B (en) * | 2024-03-13 | 2024-05-24 | 苏州元脑智能科技有限公司 | Heterogeneous computation-oriented data transmission path determination method and device |
Also Published As
Publication number | Publication date |
---|---|
CN111770009B (en) | 2022-05-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111741513B (en) | Network distribution method of Internet of things equipment and related equipment | |
CN110582017B (en) | Video playing method, device, terminal and storage medium | |
CN109062467B (en) | Split screen application switching method and device, storage medium and electronic equipment | |
CN111770009B (en) | Data transmission method and related equipment | |
CN108156508B (en) | Barrage information processing method and device, mobile terminal, server and system | |
WO2018120905A1 (en) | Message reminding method for terminal, and terminal | |
CN111580815B (en) | Page element editing method and related equipment | |
CN104252341A (en) | Method and device for resurfacing application program and client side device of application program | |
CN104239332A (en) | Webpage content processing method, webpage content processing device and browser client side | |
CN104660769B (en) | A kind of methods, devices and systems for adding associated person information | |
CN111371676A (en) | Customer service function access method and related device | |
US11882468B2 (en) | Traffic/rate counting method and related device | |
CN104090743B (en) | Music localization method, device and mobile terminal for mobile terminal | |
CN112328349B (en) | Parameter setting method and related equipment | |
CN106708501A (en) | Activity monitoring method and device | |
CN105528220B (en) | Method and device for loading dynamic shared object | |
CN106339402B (en) | Method, device and system for pushing recommended content | |
CN111562910A (en) | Packaging method and related equipment | |
CN116468382A (en) | RPA robot flow management method, device, equipment and storage medium | |
CN116303646A (en) | Cross-database data comparison method, device, equipment and storage medium | |
CN106484230B (en) | A kind of method for handover control and equipment | |
CN115065609A (en) | B-end SaaS system hybrid deployment method and system | |
CN114130016A (en) | Control resource management method and related device | |
CN112328304A (en) | Script adaptation method, system, equipment and computer storage medium | |
CN107346347B (en) | Webpage table display method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |