CN108121596A - Data transmission method and device, storage medium, electronic equipment - Google Patents
Data transmission method and device, storage medium, electronic equipment Download PDFInfo
- Publication number
- CN108121596A CN108121596A CN201711381496.1A CN201711381496A CN108121596A CN 108121596 A CN108121596 A CN 108121596A CN 201711381496 A CN201711381496 A CN 201711381496A CN 108121596 A CN108121596 A CN 108121596A
- Authority
- CN
- China
- Prior art keywords
- data
- data transmission
- task
- task requests
- sequence
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
- G06F9/5038—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4812—Task transfer initiation or dispatching by interrupt, e.g. masked
- G06F9/4831—Task transfer initiation or dispatching by interrupt, e.g. masked with variable priority
- G06F9/4837—Task transfer initiation or dispatching by interrupt, e.g. masked with variable priority time dependent
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/50—Indexing scheme relating to G06F9/50
- G06F2209/5018—Thread allocation
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The disclosure is directed to a kind of data transmission method and device, storage medium, electronic equipments, are related to technical field of data processing, and this method includes:Task requests are received, the task requests include pending data;The pending data is stored to default memory sequence according to the type of the pending data;The task requests are handled by the default memory sequence in real time to carry out data transmission.The disclosure can improve the reliability and efficiency of data transmission.
Description
Technical field
This disclosure relates to technical field of data processing, fills in particular to a kind of data transmission method, data transmission
It puts, computer readable storage medium and electronic equipment.
Background technology
With the development of electronic technology and the complication of various functions of the equipments, RTOS is used mostly in development and application
(Real Time Operating System, real time operating system) is to meet the speed of service of CPU higher and larger storage
The demand in space.
In correlation technique, RTOS the function that system can be realized be divided into multiple independent tasks, then to division
All tasks carry out United Dispatching management.Wherein, RTOS is generally switched task and is preserved phase using system stack and task stack
The data that pass task generates, while part memory fragmentation can be generated, therefore to overflow when task amount is bigger since there are task stacks
Go out, system crash may be caused so that the stability of system is poor, so as to cause data transmission credibility poor, while can influence
The speed of processing task reduces data transmission efficiency.
It should be noted that information is only used for strengthening the reason to the background of the disclosure disclosed in above-mentioned background section
Solution, therefore can include not forming the information to the prior art known to persons of ordinary skill in the art.
The content of the invention
The disclosure is designed to provide a kind of data transmission method and device, storage medium, electronic equipment, and then at least
Data transmission credibility difference and data transmission caused by the limitation of correlation technique and defect are overcome to a certain extent
The problem of efficiency is low.
Other characteristics and advantage of the disclosure will be by the following detailed description apparent from or partially by the disclosure
Practice and acquistion.
According to one aspect of the disclosure, a kind of data transmission method is provided, available for the data transmission between multiple equipment,
It is characterised in that it includes:Task requests are received, the task requests include pending data;According to the pending data
Type the pending data is stored to default memory sequence;The task is handled by the default memory sequence in real time
It asks to carry out data transmission.
In a kind of exemplary embodiment of the disclosure, handling the task in real time by the default memory sequence please
It asks, including:By the default memory sequence, using each task requests of blocking mechanism Real-Time Scheduling.
In a kind of exemplary embodiment of the disclosure, handling each task in real time by the default memory sequence please
It asks, including:Apply for the default memory sequence before the task requests are handled;And/or it is released after the task requests are handled
Put the default memory sequence.
In a kind of exemplary embodiment of the disclosure, the method further includes:Using data block mechanism at each described
Data are transmitted between business request.
In a kind of exemplary embodiment of the disclosure, the default memory sequence is including in variable memory sequence, data
Deposit at least one of sequence and retransmission data memory sequence.
In a kind of exemplary embodiment of the disclosure, the task requests include data receiver task, receive at data
At least one of reason task, data sending processing task and data sending task.
In a kind of exemplary embodiment of the disclosure, the method further includes:Described in being established by real time operating system
Default memory sequence and the task requests.
According to one aspect of the disclosure, a kind of data transmission device is provided, available for the data transmission between multiple equipment,
Including:Task receiving module, for receiving task requests, the task requests include pending data;Data memory module,
The pending data is stored to default memory sequence for the type according to the pending data;Task processing module,
For handling the task requests in real time by the default memory sequence to carry out data transmission.
According to one aspect of the disclosure, a kind of computer readable storage medium is provided, is stored thereon with computer program,
The computer program realizes the data transmission method described in above-mentioned any one when being executed by processor.
According to one aspect of the disclosure, a kind of electronic equipment is provided, including:Processor;And memory, for storing
The executable instruction of the processor;Wherein, the processor is configured to above-mentioned to perform via the executable instruction is performed
Data transmission method described in any one.
A kind of data transmission method for being there is provided in disclosure exemplary embodiment, data transmission device computer-readable are deposited
In storage media and electronic equipment, by receiving task requests, the task requests include pending data;It is treated according to described
The type of processing data stores the pending data to default memory sequence;It is handled in real time by the default memory sequence
The task requests are to carry out data transmission.On the one hand, by storing pending data to default memory sequence, avoiding and be
Generate memory fragmentation during the data in preservation task of uniting, improve the stability of system, so improve data transmission can
By property;On the other hand, by the default memory series processing task requests and data transmission is completed, improves data transmission effect
Rate.
It should be appreciated that above general description and following detailed description are only exemplary and explanatory, not
The disclosure can be limited.
Description of the drawings
Attached drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the disclosure
Example, and for explaining the principle of the disclosure together with specification.It should be evident that the accompanying drawings in the following description is only the disclosure
Some embodiments, for those of ordinary skill in the art, without creative efforts, can also basis
These attached drawings obtain other attached drawings.
Fig. 1 schematically shows a kind of data transmission method schematic diagram in disclosure exemplary embodiment;
Fig. 2 schematically shows a kind of device systems structure chart in disclosure exemplary embodiment;
Fig. 3 schematically shows the Memory Allocation schematic diagram of data transmission between multiple equipment in disclosure exemplary embodiment;
Fig. 4 schematically shows a kind of particular flow sheet of data transmission method in disclosure exemplary embodiment;
Fig. 5 schematically shows a kind of block diagram of data transmission device in disclosure exemplary embodiment;
Fig. 6 schematically shows the block diagram of a kind of electronic equipment in disclosure exemplary embodiment;
Fig. 7 schematically shows a kind of program product in disclosure exemplary embodiment.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes
Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, these embodiments are provided so that the disclosure will more
Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.Described feature, knot
Structure or characteristic can be in any suitable manner incorporated in one or more embodiments.In the following description, provide perhaps
More details fully understand embodiment of the present disclosure so as to provide.It it will be appreciated, however, by one skilled in the art that can
One or more in the specific detail are omitted with technical solution of the disclosure or others side may be employed
Method, constituent element, device, step etc..In other cases, be not shown in detail or describe known solution to avoid a presumptuous guest usurps the role of the host and
So that all aspects of this disclosure thicken.
In addition, attached drawing is only the schematic illustrations of the disclosure, it is not necessarily drawn to scale.Identical attached drawing mark in figure
Note represents same or similar part, thus will omit repetition thereof.Attached some block diagrams shown in figure are work(
Can entity, not necessarily must be corresponding with physically or logically independent entity.Software form may be employed to realize these work(
Entity or these functional entitys can be realized in one or more hardware modules or integrated circuit or at heterogeneous networks and/or place
These functional entitys are realized in reason device device and/or microcontroller device.
A kind of data transmission method is provided firstly in this example embodiment, can be applied to based on RTOS multiple sets
Data transmission between standby.Refering to what is shown in Fig. 1, the data transmission method may comprise steps of:
In step s 110, task requests are received, the task requests include pending data;
In the step s 120, the pending data is stored to default memory sequence according to the type of the pending data
Row;
In step s 130, the task requests are handled by the default memory sequence in real time to carry out data transmission.
In the data transmission method provided in the present example embodiment, on the one hand, by by pending data store to
Default memory sequence, generates memory fragmentation when avoiding data of the system in preservation task, improves the stability of system, into
And improve the reliability of data transmission;On the other hand, by the default memory series processing task requests and data are completed
Transmission, improves data transmission efficiency.
Next explanation is further expalined to the data transmission method in the present exemplary embodiment with reference to attached drawing.
In step s 110, task requests are received, the task requests include pending data.
In this example, it is necessary first to explanation, multiple equipment can be a host equipment and multiple external equipments,
In, host equipment can be to be set using the various kinds of equipment of embedded system composition, such as industrial equipment, power equipment, new energy
Standby, home appliance either other kinds of equipment.This is illustrated exemplified by sentencing electric welding machine equipment.Peripheral hardware portion equipment can wrap
Input equipment and output equipment are included, such as can either perform other work(including human-computer interaction device, robot, monitoring device
The equipment of energy.
Task requests are properly termed as thread, can specifically be represented by a program.The quantity of task requests herein
Can be one or more, and each task requests include multiple pending datas.The system of host equipment can be same
When receive by external equipment send including pending data multiple tasks request.External equipment can be by interface either
Wireless mode or be Ethernet communication mode to host equipment send multiple tasks request so that host computer system pair
These task requests are scheduled processing.
With reference to electric welding machine device systems shown in Fig. 2, wherein electric welder control P plates 201 are host equipment, external equipment
202 can for example include human-computer interaction 2021, wire feed structure 2022, robot 2023, acquisition system 2024 and other equipment
2025, and each external equipment 202 can be attached by ethernet communication mode and host equipment 201, reduction is prolonged
When to ensure the real-time between external equipment and host equipment, action is performed between external equipment and host equipment so as to improve
Uniformity and accuracy.
Wherein, task requests include data receiver task, receive data processing task, data sending processing task and number
According at least one of transmission task.Specifically:
Data receiver task can be established by RTOS, receives data processing task, data sending processing task and number
According to the task of transmission, in addition to this it is possible to establish other inter-related tasks.RTOS can create task by mission function, and should
Mission function for example can be C language function.One mission function can be used for creating several tasks, and be created that each
Task is independent execution example, possesses one's own stack space and one's own stack variable, i.e. mission function
The variable of definition itself.
Data receiver task refers to that system needs to receive the pending data sent from external equipment by function;Receive number
It refers to that system needs to receive from what external equipment was sent by function according to processing task to what pending data was handled to appoint
Business, data sending processing task refer to that system needs to send to external equipment by function and appoint to what some data were handled
Business, data sending task refer to that system needs to send pending data or processed data to external equipment.Wherein, number
It can for example include data deciphering, Data Format Transform, data encoding conversion etc. according to processing;The system of host equipment can basis
Received task request instruction handles associated data accordingly.
In the step s 120, the pending data is stored to default memory sequence according to the type of the pending data
Row.
In this example, the type of pending data can for example include the data sent for the first time, wherein can include variable
Type data can also include the data of the types such as numeric type, text-type, byte type, and in addition, the type of pending data is also
It can include needing the above-mentioned various types of data resend.
Wherein, the default memory sequence can include in variable memory sequence, datarams sequence and retransmission data
Deposit at least one of sequence.Specifically:
Can be by real time operating system RTOS, it, will according to the type of the pending data included in all task requests
The memory of whole system is divided into default memory sequence corresponding with pending data type, and pending data is stored to right
Answer the default memory sequence of type.Default memory sequence can for example include variable memory sequence, datarams sequence and again
It is a kind of or a variety of in hair datarams sequence, it can specifically be divided according to the actual type of pending data.It needs
It should be noted that the number of default memory sequence and the quantity of pending data type correspond.
For example, the storing to variable memory sequence of the variable type sent for the first time pending data can will be needed, it will
The pending data of the types such as the numeric type sent for the first time, text-type, byte type is needed to store to datarams sequence, and need to
All types of pending datas such as variable type, numeric type, text-type, the byte type to be resend are cached to retransmission data
Deposit sequence.The pending data included in all task requests is cached in this example by using default memory sequence, can be kept away
The phenomenon that exempting to generate a large amount of memory fragmentations when switching between multiple tasks are asked, so as to reduce system to a certain extent
The risk of collapse improves the stability of system.
Next, in step s 130, the task requests are handled with into line number by the default memory sequence in real time
According to transmission.
After default memory sequence is determined, the either multiple memories of any one in default memory sequence can be passed through
Sequence handles the task requests received in real time, so as to complete host equipment with send one of task requests or
It is the data transmission either data exchange process between multiple external equipments.Since the stabilization of host computer system can be improved
Property, thus when stand-by period when can recover to avoid system and system crash may caused by loss of data situations such as, into
And improve the efficiency and accuracy of data transmission.
Specifically, handling the task requests in real time by the default memory sequence can include:By described pre-
If memory sequence, using each task requests of blocking mechanism Real-Time Scheduling.
The implementation procedure of each task requests can be seen as a process, and blocking mechanism refers to not getting
During task requests, the process that the process that can hang up is suspended simultaneously enters dormant state, until getting task requests, this
When can give the corresponding cpu resource of the process to other processes.By default memory sequence, RTOS is realized using blocking mechanism
To the Real-Time Scheduling of multiple tasks request, the operation that can be asked to avoid continuous query task reduces and disappears to cpu resource
Consumption, effectively increases CPU efficiency, while improves the utilization rate of hardware resource.
In addition, handling each task requests in real time by the default memory sequence can include:In processing institute
Apply for the default memory sequence before stating task requests;And/or discharge the default memory sequence after the task requests are handled
Row.
In this example, host equipment carries out data transmission can be understood as the communication function of host equipment with external equipment,
This communication function is one kind in electric welding machine repertoire, therefore in order to avoid the influence to other functions, communication function
The memory sequence space of predefined can only be used to carry out.At the same time, in order to avoid influencing each other between multiple functions, hold
The memory sequence space that communication function can not be used to use during other functions of row.
It,, can be in processing received task in order to avoid the deficiency of memory headroom when performing communication function based on this
Memory sequence is preset in the forward direction system application of request, such as can be according to pending data type application variable memory sequence, number
According to part or all of in memory sequence either retransmission data memory sequence.For example, need what is sent for the first time in processing
During data, it can only apply for variable memory sequence or datarams sequence, can also apply for variable memory sequence and data simultaneously
Memory sequence.
Further, the deficiency of memory headroom can also be avoided by way of discharging default memory sequence.It such as can be with
After the request of default memory series processing received task, the default memory sequence being not used by is discharged, so that this is default
Memory sequence may be reused, and showing for caused by low memory system crash is avoided while its utilization rate is improved
As.
It should be noted that it can only apply for default memory sequence before the task requests are handled;Can also only it locate
The default memory sequence being not used by is discharged after managing the task requests;It can also apply for default memory before task requests are handled
Sequence simultaneously discharges default memory sequence after task requests are handled, and specifically can specifically be set according to actual demand using which kind of mode
It puts.
You need to add is that the data transmission method described in this example can also include:Using data block mechanism each
Data are transmitted between the task requests.
Wherein, data block is the one group or several groups record of continuous arrangement together in certain sequence, be main storage with it is defeated
Enter the data unit being transmitted between equipment, output equipment or external memory.The size of data block can be fixed, and also may be used
It is configured and divides with factors such as input, the memory spaces according to data.Each data block can correspond to a logic note
Record, can also include multiple logic records;A logic record can also be represented by multiple data blocks.For example, if
Data line is common row, then this row data can be stored in a data block;If data line is chained line, this row
Data are stored in multiple data blocks.Carry out data transmission by using data block mechanism between multiple tasks request, it can be with
The data transmission confusion phenomena generated when performing communication function between host equipment and external equipment is avoided, so as to ensure that data pass
Defeated accuracy and reliability.
The Memory Allocation schematic diagram of data transmission between multiple equipment in disclosure exemplary embodiment is shown in Fig. 3.With reference to
Shown in Fig. 3, host equipment 301 is electric welder control P plates, and human-computer interaction, wire feed structure, robot and monitoring system are outer
Portion's equipment 302, it is corresponding with host equipment 201 shown in Fig. 2 and external equipment 202 respectively.Wherein, in host equipment 301
Including presetting memory sequence 310, default memory sequence is, for example, variable memory sequence 311, datarams sequence 312 and retransmits
Datarams sequence 313.It can also include task requests 320 in host equipment 301, such as can specifically appoint including data receiver
Business 321 receives data processing task 322, data sending processing task 323 and data sending task 324.
Task shown in Fig. 3, which flows through journey, to be included:It performs and is received at data after data receiver task 321 is completed
Then reason task 322 performs data sending processing task 323, further performs data sending task 324, complete data hair
Reception data processing task 322 is returned after sending task 324.It should be noted that can it pass through between each two task requests
Any one in default memory sequence carries out task processing, and the default memory sequence used between different task request can phase
It together, can not also be same.Such as variable memory sequence can be passed through between data receiver task 321 and reception data processing task 322
Row 311 handle task, in addition can also handle task by datarams sequence 312.
Fig. 4 schematically shows a kind of particular flow sheet of data transmission method in disclosure exemplary embodiment.With reference to figure 4
Shown, the detailed process of the data transmission method is as follows:
In step S401, when receiving data receiver task, apply for PD1 and PD2, the data storage of reception is arrived
In PD2 and give back PD1;Wherein, PD1 and PD2 can represent any one in variable memory sequence or datarams sequence respectively
Kind, by the data of reception to be illustrated exemplified by numeric type, then PD1 is variable memory sequence, and PD2 can be datarams sequence
Row.
In step S402, when receiving data processing task, application PD1 receives data processing, gives back PD1 and PD2.
In step S403, judge whether data are sent completely, such as whether can again be examined by detecting in preset time
It measures data block and judges whether data are sent completely or have sent the size of data and the size of data to be sent by comparison
Judge whether data are sent completely.
In step s 404, if it is determined that data sending does not complete, then can with request for data memory sequence PD2, and to will
The data of transmission carry out framing;Wherein, framing refers to the bit combination framing of relevant information material to be transmitted for unit, tool
Body can increase stem and afterbody to a string of bit streams, to ensure the transmitting of data.If it is determined that data sending is completed, then
It can terminate entire data transmission procedure, so that external equipment performs corresponding function.
In step S405, if receiving data sending processing task, may determine that first for the first time send or again
It is new to send, it specifically includes:
4051, if sending for the first time, then it can apply for variable memory sequence PD1 and datarams sequence PD2 ', by group
Frame sends data storage to PD2 ', and gives back untapped PD1 and PD2;
4052, if resending, then it can apply for variable memory sequence PD1 and datarams sequence PD2 ', by weight
Data in hair datarams sequence PR1 copy to PD2 ', and give back untapped PD1, PD2 and PR1;
4053, if it is determined that data sending processing task terminates, then it can give back PD1, PD2 and PR1.
In step S406, if receiving data sending task, it can apply for variable memory sequence PD1, by above-mentioned step
Suddenly storage is stored to the data in PD2 ' to transmission buffering area in.
In step S 407, it can be determined that store whether the data sent in buffering area need to resend, it is specific to wrap
It includes:
4071, if you do not need to resending, then can give back PD1 and PD2 ';
4072, it resends if necessary, then can apply for retransmission data memory sequence PR1, the data in PD2 ' are put
Enter PR1, give back PD1 and PD2 ';
In step S408, if it is determined that storage is resend to the data needs sent in buffering area, then it can trigger
Retransmission timer task applies for PD1 and PD2, into PD2 and gives back the data copy in PR1 to PD1;Complete the step it
Afterwards, return to step S405 is continued to execute.
It follows that it is scheduled by default memory sequence pair task requests, between being asked to avoid multiple tasks
The phenomenon that a large amount of memory fragmentations are generated when switching over so as to reduce the risk of system crash to a certain extent, improves
The stability of system, and then improve the efficiency and accuracy of data transmission.In addition, preset by task before processing application interior
Sequence is deposited, default memory sequence is discharged after task processing, the default memory sequence can may be reused, is improving its profit
It is avoided while with rate because of the system crash caused by low memory the phenomenon that.
The disclosure additionally provides a kind of data transmission device.Refering to what is shown in Fig. 5, the data transmission device 500 can include:
Task receiving module 501 can be used for receiving task requests, and the task requests include pending data;
Data memory module 502 can be used for being stored the pending data according to the type of the pending data
To default memory sequence;
Task processing module 503, can be used for by the default memory sequence handle in real time the task requests with into
Row data transmission.
It should be noted that the detail of each module is in corresponding transmission side data in above-mentioned data transmission device
It is described in detail in method, therefore details are not described herein again.
It should be noted that although several modules or list of the equipment for action executing are referred in above-detailed
Member, but this division is not enforceable.In fact, according to embodiment of the present disclosure, it is above-described two or more
Either the feature of unit and function can embody module in a module or unit.A conversely, above-described mould
Either the feature of unit and function can be further divided into being embodied by multiple modules or unit block.
In addition, although describing each step of method in the disclosure with particular order in the accompanying drawings, this does not really want
Asking or implying must could realize according to the particular order come the step for performing these steps or having to carry out shown in whole
Desired result.It is additional or alternative, it is convenient to omit some steps, by multiple steps merge into a step perform and/
Or a step is decomposed into execution of multiple steps etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented
Mode can be realized by software, can also be realized in a manner that software is with reference to necessary hardware.Therefore, according to the disclosure
The technical solution of embodiment can be embodied in the form of software product, the software product can be stored in one it is non-volatile
Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions so that a calculating
Equipment (can be personal computer, server, mobile terminal or network equipment etc.) is performed according to disclosure embodiment
Method.
In an exemplary embodiment of the disclosure, a kind of electronic equipment that can realize the above method is additionally provided.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or
Program product.Therefore, various aspects of the invention can be implemented as following form, i.e.,:It is complete hardware embodiment, complete
The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.) or hardware and software, can unite here
Referred to as " circuit ", " module " or " system ".
The electronic equipment 600 of this embodiment according to the present invention is described referring to Fig. 6.The electronics that Fig. 6 is shown
Equipment 600 is only an example, should not bring any restrictions to the function and use scope of the embodiment of the present invention.
As shown in fig. 6, electronic equipment 600 is showed in the form of universal computing device.The component of electronic equipment 600 can wrap
It includes but is not limited to:Above-mentioned at least one processing unit 610, above-mentioned at least one storage unit 620, connection different system component
The bus 630 of (including storage unit 620 and processing unit 610).
Wherein, the storage unit has program stored therein code, and said program code can be held by the processing unit 610
Row so that the processing unit 610 performs various according to the present invention described in above-mentioned " illustrative methods " part of this specification
The step of illustrative embodiments.For example, the step of processing unit 610 can perform as shown in fig. 1:In step S110
In, task requests are received, the task requests include pending data;In the step s 120, according to the pending data
Type the pending data is stored to default memory sequence;In step s 130, it is real by the default memory sequence
When handle the task requests to carry out data transmission.
Storage unit 620 can include the readable medium of volatile memory cell form, such as Random Access Storage Unit
(RAM) 6201 and/or cache memory unit 6202, it can further include read-only memory unit (ROM) 6203.
Storage unit 620 can also include program/utility with one group of (at least one) program module 6205
6204, such program module 6205 includes but not limited to:Operating system, one or more application program, other program moulds
Block and program data may include the realization of network environment in each or certain combination in these examples.
Bus 630 can be the one or more represented in a few class bus structures, including storage unit bus or storage
Cell controller, peripheral bus, graphics acceleration port, processing unit use the arbitrary bus structures in a variety of bus structures
Local bus.
Electronic equipment 600 can also be with one or more external equipments 700 (such as keyboard, sensing equipment, bluetooth equipment
Deng) communication, the equipment interacted with the electronic equipment 600 communication can be also enabled a user to one or more and/or with causing
Any equipment that the electronic equipment 600 can communicate with one or more of the other computing device (such as router, modulation /demodulation
Device etc.) communication.This communication can be carried out by input/output (I/O) interface 650.Also, electronic equipment 600 can be with
By network adapter 660 and one or more network (such as LAN (LAN), wide area network (WAN) and/or public network,
Such as internet) communication.As shown in the figure, network adapter 660 is communicated by bus 630 with other modules of electronic equipment 600.
It should be understood that although not shown in the drawings, can combine electronic equipment 600 use other hardware and/or software module, including but not
It is limited to:Microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and
Data backup storage system etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented
Mode can be realized by software, can also be realized in a manner that software is with reference to necessary hardware.Therefore, according to the disclosure
The technical solution of embodiment can be embodied in the form of software product, the software product can be stored in one it is non-volatile
Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions so that a calculating
Equipment (can be personal computer, server, terminal installation or network equipment etc.) is performed according to disclosure embodiment
Method.
In an exemplary embodiment of the disclosure, a kind of computer readable storage medium is additionally provided, is stored thereon with energy
Enough realize the program product of this specification above method.In some possible embodiments, various aspects of the invention may be used also
In the form of being embodied as a kind of program product, including program code, when described program product is run on the terminal device, institute
State program code for make the terminal device perform described in above-mentioned " illustrative methods " part of this specification according to this hair
The step of bright various illustrative embodiments.
Refering to what is shown in Fig. 7, describe the program product for being used to implement the above method according to the embodiment of the present invention
800, portable compact disc read only memory (CD-ROM) may be employed and including program code, and can in terminal device,
Such as it is run on PC.However, the program product of the present invention is without being limited thereto, in this document, readable storage medium storing program for executing can be with
Any tangible medium for including or storing program, the program can be commanded execution system, device either device use or
It is in connection.
Any combination of one or more readable mediums may be employed in described program product.Readable medium can be readable letter
Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or
System, device or the device of semiconductor or arbitrary above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive
List) include:It is electrical connection, portable disc, hard disk, random access memory (RAM) with one or more conducting wires, read-only
Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory
(CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media can include in a base band or as carrier wave a part propagation data-signal,
In carry readable program code.Diversified forms may be employed in the data-signal of this propagation, include but not limited to electromagnetic signal,
Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie beyond readable storage medium storing program for executing
Matter, which can send, propagate either transmit to be used by instruction execution system, device or device or and its
The program of combined use.
The program code included on readable medium can be transmitted with any appropriate medium, including but not limited to wirelessly, be had
Line, optical cable, RF etc. or above-mentioned any appropriate combination.
It can write to perform the program that operates of the present invention with any combination of one or more programming languages
Code, described program design language include object oriented program language-Java, C++ etc., further include conventional
Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user
It performs on computing device, partly perform on a user device, the software package independent as one performs, is partly calculated in user
Its upper side point is performed or performed completely in remote computing device or server on a remote computing.It is remote being related to
In the situation of journey computing device, remote computing device can be by the network of any kind, including LAN (LAN) or wide area network
(WAN), be connected to user calculating equipment or, it may be connected to external computing device (such as utilizes ISP
To pass through Internet connection).
In addition, above-mentioned attached drawing is only the schematic theory of the processing included by method according to an exemplary embodiment of the present invention
Bright rather than limitation purpose.It can be readily appreciated that the time that above-mentioned processing shown in the drawings was not intended that or limited these processing is suitable
Sequence.In addition, being also easy to understand, these processing for example can be performed either synchronously or asynchronously in multiple modules.
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice invention disclosed herein
His embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Adaptive change follow the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure or
Conventional techniques.Description and embodiments are considered only as illustratively, and the true scope and spirit of the disclosure are by claim
It points out.
Claims (10)
1. a kind of data transmission method, available for the data transmission between multiple equipment, which is characterized in that including:
Task requests are received, the task requests include pending data;
The pending data is stored to default memory sequence according to the type of the pending data;
The task requests are handled by the default memory sequence in real time to carry out data transmission.
2. data transmission method according to claim 1, which is characterized in that handled in real time by the default memory sequence
The task requests, including:
By the default memory sequence, using each task requests of blocking mechanism Real-Time Scheduling.
3. data transmission method according to claim 1, which is characterized in that handled in real time by the default memory sequence
Each task requests, including:
Apply for the default memory sequence before the task requests are handled;And/or
The default memory sequence is discharged after the task requests are handled.
4. data transmission method according to claim 1, which is characterized in that the method further includes:
Using data block mechanism data are transmitted between each task requests.
5. data transmission method according to claim 2, which is characterized in that the default memory sequence includes variable memory
At least one of sequence, datarams sequence and retransmission data memory sequence.
6. data transmission method according to claim 1, which is characterized in that the task requests are appointed including data receiver
Business receives at least one of data processing task, data sending processing task and data sending task.
7. data transmission method according to claim 1, which is characterized in that the method further includes:
The default memory sequence and the task requests are established by real time operating system.
8. a kind of data transmission device, available for the data transmission between multiple equipment, which is characterized in that including:
Task receiving module, for receiving task requests, the task requests include pending data;
Data memory module stores the pending data to default memory sequence for the type according to the pending data
Row;
Task processing module, for handling the task requests in real time by the default memory sequence to carry out data transmission.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt
Claim 1-7 any one of them data transmission methods are realized when processor performs.
10. a kind of electronic equipment, which is characterized in that including:
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to carry out perform claim requirement 1-7 any one of them via the execution executable instruction
Data transmission method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711381496.1A CN108121596A (en) | 2017-12-20 | 2017-12-20 | Data transmission method and device, storage medium, electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711381496.1A CN108121596A (en) | 2017-12-20 | 2017-12-20 | Data transmission method and device, storage medium, electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108121596A true CN108121596A (en) | 2018-06-05 |
Family
ID=62230368
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711381496.1A Pending CN108121596A (en) | 2017-12-20 | 2017-12-20 | Data transmission method and device, storage medium, electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108121596A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109960589A (en) * | 2019-03-25 | 2019-07-02 | 上海富士施乐有限公司 | Implementation method, device and the readable medium of the system software layer of embedded system |
WO2020187324A1 (en) * | 2019-03-20 | 2020-09-24 | 华为技术有限公司 | Communication method and apparatus |
CN112015746A (en) * | 2020-08-27 | 2020-12-01 | 北京字节跳动网络技术有限公司 | Data real-time processing method, device, medium and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103684963A (en) * | 2013-11-18 | 2014-03-26 | 重庆邮电大学 | Framework system and implementation method of middleware applied to car networking |
US20170177444A1 (en) * | 2015-12-21 | 2017-06-22 | Industrial Technology Research Institute | Database batch update method, data redo/undo log producing method and memory storage apparatus |
CN107241281A (en) * | 2017-05-27 | 2017-10-10 | 上海东土远景工业科技有限公司 | A kind of data processing method and its device |
-
2017
- 2017-12-20 CN CN201711381496.1A patent/CN108121596A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103684963A (en) * | 2013-11-18 | 2014-03-26 | 重庆邮电大学 | Framework system and implementation method of middleware applied to car networking |
US20170177444A1 (en) * | 2015-12-21 | 2017-06-22 | Industrial Technology Research Institute | Database batch update method, data redo/undo log producing method and memory storage apparatus |
CN107241281A (en) * | 2017-05-27 | 2017-10-10 | 上海东土远景工业科技有限公司 | A kind of data processing method and its device |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020187324A1 (en) * | 2019-03-20 | 2020-09-24 | 华为技术有限公司 | Communication method and apparatus |
CN111726379A (en) * | 2019-03-20 | 2020-09-29 | 华为技术有限公司 | Communication method and device |
CN111726379B (en) * | 2019-03-20 | 2021-11-19 | 华为技术有限公司 | Communication method and device |
EP3934207A4 (en) * | 2019-03-20 | 2022-04-27 | Huawei Technologies Co., Ltd. | Communication method and apparatus |
US11963034B2 (en) | 2019-03-20 | 2024-04-16 | Huawei Technologies Co., Ltd. | Communication method and apparatus |
CN109960589A (en) * | 2019-03-25 | 2019-07-02 | 上海富士施乐有限公司 | Implementation method, device and the readable medium of the system software layer of embedded system |
CN112015746A (en) * | 2020-08-27 | 2020-12-01 | 北京字节跳动网络技术有限公司 | Data real-time processing method, device, medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108287764A (en) | Distributed task dispatching method and its system, storage medium, electronic equipment | |
CN110383764B (en) | System and method for processing events using historical data in a serverless system | |
CN104516767B (en) | The method and system of the re-transmission time of applications client during setting virtual machine (vm) migration | |
CN108961033A (en) | Multiservice system exchange method and device, storage medium, electric terminal | |
CN107515795A (en) | Multi-task parallel data processing method, device, medium and equipment based on queue | |
KR102428091B1 (en) | Method of application aware io completion mode changer for key value device | |
KR20160087706A (en) | Apparatus and method for resource allocation of a distributed data processing system considering virtualization platform | |
KR20130142961A (en) | Automatic application updates | |
CN105450618A (en) | Operation method and operation system of big data process through API (Application Programming Interface) server | |
CN109783472A (en) | Moving method, device, computer equipment and the storage medium of table data | |
CN108121596A (en) | Data transmission method and device, storage medium, electronic equipment | |
CN109685295A (en) | Cargo, which is pulled, receives dispatching method and device, storage medium, electronic equipment | |
CN103942097A (en) | Data processing method and device and computer with corresponding device | |
CN108605017A (en) | Inquiry plan and operation perception communication buffer management | |
US10037225B2 (en) | Method and system for scheduling computing | |
CN107615711A (en) | System for event propagation | |
KR102017631B1 (en) | Terminal apparatus and method for transmitting and receiving data | |
CN107797870A (en) | A kind of cloud computing data resource dispatching method | |
CN106933646B (en) | Method and device for creating virtual machine | |
CN108282890B (en) | Resource scheduling processing method, network side equipment and mobile terminal | |
US20160197794A1 (en) | Quality of service setting | |
US9294150B2 (en) | Information relay mechanism using proximity communication | |
US20150089507A1 (en) | Information processing system, method of controlling information processing system, and recording medium | |
CN111212404A (en) | Robot communication method, system, device, robot and storage medium | |
US20140139533A1 (en) | Graphic processing unit virtual apparatus, graphic processing unit host apparatus, and graphic processing unit program processing methods thereof |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180605 |
|
RJ01 | Rejection of invention patent application after publication |