CN107391404A - A kind of data transmission method and device based on hardware port - Google Patents

A kind of data transmission method and device based on hardware port Download PDF

Info

Publication number
CN107391404A
CN107391404A CN201610323532.8A CN201610323532A CN107391404A CN 107391404 A CN107391404 A CN 107391404A CN 201610323532 A CN201610323532 A CN 201610323532A CN 107391404 A CN107391404 A CN 107391404A
Authority
CN
China
Prior art keywords
terminal
data transfer
transfer thread
thread
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610323532.8A
Other languages
Chinese (zh)
Other versions
CN107391404B (en
Inventor
兰凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sanechips Technology Co Ltd
Shenzhen ZTE Microelectronics Technology Co Ltd
Original Assignee
Shenzhen ZTE Microelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen ZTE Microelectronics Technology Co Ltd filed Critical Shenzhen ZTE Microelectronics Technology Co Ltd
Priority to CN201610323532.8A priority Critical patent/CN107391404B/en
Priority to PCT/CN2017/081996 priority patent/WO2017198051A1/en
Publication of CN107391404A publication Critical patent/CN107391404A/en
Application granted granted Critical
Publication of CN107391404B publication Critical patent/CN107391404B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus

Abstract

The invention discloses a kind of data transmission method and device based on hardware port, monitors the hardware configuration information of first terminal, obtains the connection end slogan that second terminal is connected with the first terminal;The connection end slogan is configured to the data transfer thread of free time;The data transfer thread is run, data are transmitted between the first terminal and second terminal.

Description

A kind of data transmission method and device based on hardware port
Technical field
The present invention relates to data transmission technology, and in particular to a kind of data transmission method based on hardware port and Device.
Background technology
Needed in the production process of electronic equipment and its parts by repeatedly examining and testing, function therein Test be it is critically important, as mobile phone functional test, it is necessary to the operation for testing each application of function it is whether normal, Operation whether smoothness etc., the functional test of storage card is, it is necessary to which whether test data storage intact etc..
In functional test, due to measured piece, if desired for the electronic equipment or parts or bare machine of test, Test main frame transmission related data, such as test data or application data are typically necessary into measured piece, is surveyed The examination path that passes through of transmission by test main frame to measured piece hardware port, such as RS-232 (asynchronous transmission standards Interface), RS-485 (intelligence instrument), USB (USB, Universal Serial Bus) etc..
But at present, it is connected in the hardware port of measured piece after the hardware port of test main frame, it is necessary to operation people Member manually selects corresponding hardware port in the test application of test main frame, such as first from the equipment of test main frame The port of measured piece is checked in manager, then port corresponding to reselection;And functional test typically exists Production line full inspection, a test main frame can also set many ports, while test many measured pieces, So, port is manually selected every time, and testing efficiency easily selects wrong port just than relatively low.
The content of the invention
To solve existing technical problem, the embodiment of the present invention it is expected to provide a kind of based on hardware port Data transmission method and device, testing efficiency can be improved, avoid selecting wrong port.
To reach above-mentioned purpose, what the technical scheme of the embodiment of the present invention was realized in:
The embodiments of the invention provide a kind of data transmission method based on hardware port, methods described includes:
The hardware configuration information of first terminal is monitored, obtains the connection that second terminal is connected with the first terminal Port numbers;
The connection end slogan is configured to the data transfer thread of free time;
The data transfer thread is run, data are transmitted between the first terminal and second terminal.
Preferably, the hardware configuration information of the monitoring first terminal, obtains second terminal and described first eventually The connection end slogan of connection is held, including:
When the second terminal is connected to the first terminal, the connection end slogan recorded described In the hardware configuration information of one terminal;
By monitoring the hardware configuration information, the connection end slogan is obtained.
Preferably, the data transfer thread that the connection end slogan is configured to the free time, including:
According to data transfer thread list, it is determined that idle data transfer thread, the data transfer thread row Table includes the state of data transfer thread;
The connection end slogan of acquisition is configured to the data transfer thread of free time;
The result of configuration is recorded in the data transfer thread list.
Preferably, the operation data transfer thread, is passed between the first terminal and second terminal After transmission of data, in addition to:
When transformation task completion, the data transfer thread is discharged, updates the data data in transmission thread list The state for transmitting thread is the free time.
Preferably, methods described also includes:
Read the state of data transfer thread in data transfer thread list;
For each data transfer thread allocation of transmission bandwidth.
The embodiment of the present invention additionally provides a kind of data transmission device based on hardware port, and described device includes Monitoring module, configuration module and transport module;Wherein,
The monitoring module, for monitoring the hardware configuration information of first terminal, obtain second terminal with it is described The connection end slogan of first terminal connection;
The configuration module, for the connection end slogan to be configured to the data transfer thread of free time;
The transport module, for running the data transfer thread, in the first terminal and second terminal Between transmit data.
Preferably, the monitoring module is specifically used for:
The monitor component for the hardware configuration information for monitoring the first terminal is set;
When the second terminal is connected to the first terminal, the connection end slogan recorded described In the hardware configuration information of one terminal;
By monitoring the hardware configuration information, the connection end slogan is obtained.
Preferably, the configuration module is specifically used for:
According to data transfer thread list, it is determined that idle data transfer thread, the data transfer thread row Table includes the state of data transfer thread;
The connection end slogan of acquisition is configured to the data transfer thread of free time;
The result of configuration is recorded in the data transfer thread list.
Preferably, the transport module is additionally operable to:
When transformation task completion, the data transfer thread is discharged, updates the data data in transmission thread list The state for transmitting thread is the free time.
Preferably, the configuration module is additionally operable to:
Read the state of data transfer thread in data transfer thread list;
For each data transfer thread allocation of transmission bandwidth.
The embodiment of the present invention provides a kind of data transmission method and device based on hardware port, and monitoring first is eventually The hardware configuration information at end, obtain the connection end slogan that second terminal is connected with the first terminal;By described in Connection end slogan is configured to the data transfer thread of free time;The data transfer thread is run, described first Data are transmitted between terminal and second terminal;It can be seen that the embodiment of the present invention is by monitoring the hardware of first terminal Configuration information, the connection end slogan that second terminal is connected with the first terminal is obtained, automatically by the company of acquisition Connect the data transfer thread that port numbers are configured to the free time, log-on data transmission thread, without choosing manually every time Connectivity port is selected, avoids manual operation, improves testing efficiency, and port will not select mistake.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of data transmission method of the embodiment of the present invention based on hardware port;
Fig. 2 is the schematic diagram of data transmission device of the embodiment of the present invention based on hardware port.
Embodiment
The present invention is described further again below in conjunction with the accompanying drawings and the specific embodiments.
Fig. 1 be data transmission method of the embodiment of the present invention based on hardware port schematic flow sheet, the side The executive agent of method can be first terminal, as shown in figure 1, methods described includes:
Step 101:The hardware configuration information of first terminal is monitored, obtains second terminal and the first terminal The connection end slogan of connection;
The first terminal can be a test main frame, more specifically, it is (individual can include but is not limited to PC People's computer, Personal Computer) main frame, industrial computer (IPC, Industrial Personal Computer) The intelligent terminals such as main frame, minicomputer (minicomputer) main frame, and there is provided special data biography Defeated component;
In the functional test of electronic equipment or parts, the data transfer components can be first terminal Test a component of application.
The second terminal is measured piece, is included but is not limited to, mobile phone, tablet personal computer, MP3 (dynamic shadows As expert's compression standard audio aspect 3, Moving Picture Experts Group Audio Layer III) broadcast Put device, storage card etc..
The hardware configuration information can typically record the hardware case of first terminal, if first terminal with the addition of New hardware, first terminal can recorded in its hardware configuration information in the very first time;The hardware configuration letter The general operating system for depending on first terminal of breath, such as operates system in the form (Windows) of Microsoft In system, the hardware configuration information of first terminal is recorded by registration table (Registry), if first terminal adds New hardware, will recorded in registration table in the very first time;
When the second terminal accesses the first terminal, can be considered as the second terminal be added to it is described (certainly from the point of view of the second terminal, and the first terminal is added to the new hardware of first terminal In second terminal, but because in testing, the first terminal occupy leading position, it is believed that being described Second terminal is added in the first terminal), so in the hardware configuration information of the first terminal, meeting Record the information of the second terminal, such as second terminal whether normal work, if the first terminal is The information of Windwos operating systems, then second terminal, it can be recorded in the registration table of first terminal.
Specifically, the process that the second terminal is connected to the first terminal is, when the second terminal with When first terminal connects, the second terminal can be identified for the operating system of the first terminal;
After the completion of identification, the driver of the second terminal is installed if desired, then driver is installed, Subsequently into next step;If the second terminal or the second terminal of plug and play that connected before, directly Tap into next step;
First terminal can by the hardware configuration information of the information record of second terminal to first terminal, such as second Terminal whether normal work, the mode of operation of second terminal, the connection end slogan etc. of second terminal;If The operating system of the first terminal is Windows operating system, then the information of second terminal can specifically record Into registration table;
Therefore, first terminal can just obtain the second terminal and first eventually by monitoring hardware configuration information The connection end slogan of connection is held, in Windows operating system, monitoring hardware configuration information can be monitoring Registration table.
Here, connection end slogan can specifically refer to physical port number, more specifically be exactly the hard of first terminal Part port numbers, a physical port number uniquely identify the hardware port of a first terminal;
Here, hardware port can be RS-232, RS-485, USB etc..
Monitoring of the first terminal to hardware configuration information, can be by setting an energy monitoring hardware configuration information The monitor component of change is realized;The method of setting can be the associated component for the operating system for calling first terminal, An application component can also be reset;
If the operating system of the first terminal is Windwos operating systems, the calling first terminal Operating system associated component, exactly call the associated components of Windwos systems;
It is whole described first based on the first terminal using Windwos operating systems in the embodiment of the present invention End pre-sets an application component to monitor the hardware configuration information of first terminal, is more specifically exactly to set A UI thread (interface thread) has been put, has been added by UI threads to catch the registration table of first terminal The message sent after second terminal.
Step 102:The connection end slogan is configured to the data transfer thread of free time;
First terminal obtains connection end slogan, it is necessary to which connection end slogan is configured to the data transfer of free time Thread, related data are transmitted into second terminal by data transfer thread;
Specifically include:
Setting includes the data transfer thread list of all data transfer thread states;
According to the data transfer thread list, it is determined that idle data transfer thread;
The connection end slogan of acquisition is configured to the data transfer thread of free time;
The result of configuration is recorded in the data transfer thread list.
Compared to processes such as the assemblings on production line, the time of functional test is long, therefore is surveyed in function In examination, test application can set multiple test threads, corresponding, and first terminal can be provided with multiple data and pass Defeated thread.
Data transfer thread is used in order to reasonable, orderly, first terminal, which needs to set, includes all data transfers The data transfer thread list of the state of thread, such as table 1:
Data transfer thread number Data transfer thread state
1 COM1
2 COM2
3 It is idle
4 It is idle
5 It is idle
…… ……
Table 1
In table 1, first is classified as " data transfer thread number ", and such as 1 is exactly the data transfer thread of serial number 1; Second is classified as " data transfer thread state ", in the present embodiment, is provided with two states, and one kind is in work, The connection end slogan of work, such as COM1 can be shown in table, another kind is idle;
According to above-mentioned data transfer thread list, first terminal determines idle data transfer thread, works as presence During the data transfer thread of free time, the connection end slogan of acquisition is configured in the data transfer thread of free time, And the data transfer thread state in the data transfer thread list is updated, the mode of configuration can be by suitable Sequence configures;
After the completion of transformation task, first terminal discharges the data transfer thread, and updates the data and pass Data transfer thread state in defeated thread list is the free time;
If without idle data transfer thread, (quantity of general second terminal is more than data transfer thread Quantity), then just having accessed the second terminal of the first terminal can wait, for described in ordered arrangement The connection and transmission of two terminals and first terminal, first terminal, which is additionally provided with, includes the second of all second terminals Terminal operating status table, such as table 2:
Table 2
In table 2, second is classified as " second terminal title ", is exactly specific second terminal title, such as measured piece 1st, measured piece 2, in practice, title here is exactly such as mobile phone A AA, tablet personal computer BBB more specific Title;
3rd is classified as " connection end slogan ", if COM1 is exactly the connection that second terminal is connected to first terminal Port is COM1;
4th row are working conditions, in the present embodiment, are provided with three kinds of states, the first working condition is work In work, the data transfer thread number of configuration can be shown in table, such as the thread 1 in table, exactly represents second eventually The COM1 of end connection is configured to thread 1, and transmits work and do not terminate also;Second of working condition be Complete, represent that transmission work just terminates, but second terminal does not remove also from the connectivity port of first terminal, one As such case, the data transfer components of first terminal can send prompting, allow staff to remove in time, such as Jump out dialog box, flashing icon etc.;The third working condition is to wait for, and expression is that second terminal has been led to Cross connectivity port and be added to first terminal, but because data transfer thread without the free time, temporarily etc. In treating.
In order to ensure the orderly progress of data transfer, first terminal typically sets a second terminal only to correspond to one Individual data line journey, accelerate the test speed of one of second terminal if desired, it is possible to reduce simultaneously The second terminal of transmission;This and, that situation different by the client of network access server, Client terminal quantity is uncontrollable.
After occurring the data transfer thread of " free time " in data transfer thread list, first terminal can be actively Access second terminal working condition table, whether inquiry has the second terminal of wait, if so, just by this second The connection end slogan of terminal is configured to the data transfer thread of " free time ".
Further, this step also comprises the following steps:
Read the state of all data transfer threads in the data transfer thread list;
For each data transfer thread allocation of transmission bandwidth.
For a specific first terminal, it is transmitted total in test process by hardware port Bandwidth is certain, and so, the bandwidth of data transfer thread depends on the data transfer thread of work simultaneously, First terminal, specific data transfer components can be according to data transfer threads in the data transfer thread list State, it is determined that the data transfer Thread Count amount to work simultaneously, according to the data transfer Thread Count of work simultaneously Measure as data transfer thread allocation of transmission bandwidth, distribution principle here is usually mean allocation.
Step 103:The data transfer thread is run, is transmitted between the first terminal and second terminal Data.
After connection end slogan to be configured to the data transfer thread of free time, the data transfer components of first terminal Operation, begin to transmit data between first terminal and second terminal, in electronic equipment or the work(of parts In testing, specific is exactly the transmission data related to functional test, is specifically included:
The running configuration data transfer thread of connection end slogan, pass through connection corresponding to the connection end slogan Port, data are transmitted between the first terminal and second terminal;
When transformation task completion, the data transfer thread is discharged, is updated in the data transfer thread list Data transfer thread state for free time.
Per the Status Change of secondary data transmission line journey, the data transfer thread list that upgrades in time is required for, so It is easy to second terminal of the distribution data transfer thread to wait in time.
Fig. 2 is the schematic diagram of data transmission device of the embodiment of the present invention based on hardware port, as shown in Fig. 2 Described device includes:Monitoring module 21, configuration module 22 and transport module 23;Wherein,
The monitoring module, for monitoring the hardware configuration information of first terminal, obtain second terminal with it is described The connection end slogan of first terminal connection;
The configuration module, for the connection end slogan to be configured to the data transfer thread of free time;
The transport module, for running the data transfer thread, in the first terminal and second terminal Between transmit data.
For becoming apparent from for explanation, modules will be elaborated respectively below:
The monitoring module, for monitoring the hardware configuration information of first terminal, obtain second terminal with it is described The connection end slogan of first terminal connection;
The first terminal can be a test main frame, more specifically, it is (individual can include but is not limited to PC People's computer, Personal Computer) main frame, industrial computer (IPC, Industrial Personal Computer) The intelligent terminals such as main frame, minicomputer (minicomputer) main frame, and there is provided special data biography Defeated component;
In the functional test of electronic equipment or parts, the data transfer components can be first terminal Test a component of application.
The second terminal is measured piece, is included but is not limited to, mobile phone, tablet personal computer, MP3 (dynamic shadows As expert's compression standard audio aspect 3, Moving Picture Experts Group Audio Layer III) broadcast Put device, storage card etc..
The hardware configuration information can typically record the hardware case of first terminal, if first terminal with the addition of New hardware, it can be recorded in the very first time by first terminal in its hardware configuration information;The hardware configuration Information typically depends on the operating system of first terminal, is such as operated in the form (Windows) of Microsoft In system, the hardware configuration information of first terminal is recorded by registration table (Registry), if first terminal adds New hardware is added, will recorded in the very first time in registration table;
When the second terminal accesses the first terminal, can be considered as the second terminal be added to it is described (certainly from the point of view of the second terminal, and the first terminal is added to the new hardware of first terminal In second terminal, but because in testing, the first terminal occupy leading position, it is believed that being described Second terminal is added in the first terminal), so in the hardware configuration information of the first terminal, meeting The information of the second terminal is recorded, if the first terminal is Windwos operating systems, second eventually The information at end, it can be recorded in the registration table of first terminal.
Specifically, the process that the second terminal is connected to the first terminal is, when the second terminal with When first terminal connects, the second terminal can be identified for the operating system of the first terminal;
After the completion of identification, the driver of the second terminal is installed if desired, then driver is installed, Subsequently into next step;If the second terminal or the second terminal of plug and play that connected before, directly Tap into next step;
First terminal can by the hardware configuration information of the information record of second terminal to first terminal, such as second Terminal whether normal work, the mode of operation of second terminal, the connection end slogan etc. of second terminal;If The operating system of the first terminal is Windows operating system, then the information of second terminal can specifically record Into registration table;
Therefore, monitoring module can just obtain the second terminal and first eventually by monitoring hardware configuration information The connection end slogan of connection is held, in Windows operating system, monitoring hardware configuration information can be monitoring Registration table.
Here, connection end slogan can specifically refer to physical port number, more specifically be exactly the hard of first terminal Part port numbers, a physical port number uniquely identify the hardware port of a first terminal;
Here, hardware port can be RS-232, RS-485, USB etc..
Monitoring of the monitoring module to hardware configuration information, can be by setting an energy monitoring hardware configuration information The monitor component of change is realized;The method of setting can be the associated component for the operating system for calling first terminal, An application component can also be reset;
If the operating system of the first terminal is Windwos operating systems, the calling first terminal Operating system associated component, exactly call the associated components of Windwos systems;
It is whole described first based on the first terminal using Windwos operating systems in the embodiment of the present invention End pre-sets an application component to monitor the hardware configuration information of first terminal, is more specifically exactly to set A UI thread (interface thread) has been put, has been added by UI threads to catch the registration table of first terminal The message sent after second terminal.
The configuration module, for the connection end slogan to be configured to the data transfer thread of free time;
Monitoring module obtains connection end slogan, it is necessary to connection end slogan is configured into sky by configuration module Not busy data transfer thread;
Specifically include:
Setting includes the data transfer thread list of all data transfer thread states;
According to the data transfer thread list, it is determined that idle data transfer thread;
The connection end slogan of acquisition is configured to the data transfer thread of free time;
The result of configuration is recorded in the data transfer thread list.
Compared to processes such as the assemblings on production line, the time of functional test is long, therefore is surveyed in function In examination, test application can set multiple test threads, corresponding, and configuration module can be provided with multiple data and pass Defeated thread.
Data transfer thread is used in order to reasonable, orderly, configuration module, which needs to set, includes all data transfers The data transfer thread list of the state of thread, such as table 1:
In table 1, first is classified as " data transfer thread number ", and such as 1 is exactly the data transfer thread of sequence number first; Second is classified as " data transfer thread state ", in the present embodiment, is provided with two states, and one kind is in work, The connection end slogan of work, such as COM1 can be shown in table, another kind is idle;
According to above-mentioned data transfer thread list, configuration module determines idle data transfer thread, works as presence During the data transfer thread of free time, the connection end slogan of acquisition is configured in the data transfer thread of free time, And the data transfer thread state in the data transfer thread list is updated, the mode of configuration can be by suitable Sequence configures;
After the completion of transformation task, configuration module discharges the data transfer thread, and updates the data and pass Data transfer thread state in defeated thread list is the free time;
If without idle data transfer thread, (quantity of general second terminal is more than data transfer thread Quantity), then just having accessed the second terminal of the first terminal can wait, for described in ordered arrangement The connection and transmission of two terminals and first terminal, configuration module, which is additionally provided with, includes the second of all second terminals Terminal operating status table, such as table 2:
In table 2, second is classified as " second terminal title ", is exactly specific second terminal title, such as measured piece 1st, measured piece 2, in practice, title here is exactly such as mobile phone A AA, tablet personal computer BBB more specific Title;
3rd is classified as " connection end slogan ", if COM1 is exactly the connection that second terminal is connected to first terminal Port is COM1;
4th row are working conditions, in the present embodiment, are provided with three kinds of states, the first working condition is work In work, the data transfer thread number of configuration can be shown in table, such as the thread 1 in table, exactly represents second eventually The COM1 of end connection is configured to thread 1, and transmits work and do not terminate also;Second of working condition be Complete, represent that transmission work just terminates, but second terminal does not remove also from the connectivity port of first terminal, one As such case, the data transfer components of first terminal can send prompting, allow staff to remove in time, such as Jump out dialog box, flashing icon etc.;The third working condition is to wait for, and expression is that second terminal has been led to Cross connectivity port and be added to first terminal, but because data transfer thread without the free time, temporarily etc. In treating.
In order to ensure the orderly progress of data transfer, configuration module typically sets a second terminal only to correspond to one Individual data line journey, accelerate the test speed of one of second terminal if desired, it is possible to reduce simultaneously The second terminal of transmission;This and, that situation different by the client of network access server, Client terminal quantity is uncontrollable.
After occurring the data transfer thread of " free time " in data transfer thread list, data transfer components meeting Second terminal working condition table is actively accessed, whether inquiry has the second terminal of wait, if so, just should The connection end slogan of second terminal is configured to the data transfer thread of " free time ".
Further, this step also comprises the following steps:
Read the state of all data transfer threads in the data transfer thread list;
For each data transfer thread allocation of transmission bandwidth.
For a specific first terminal, it is transmitted total in test process by hardware port Bandwidth is certain, and so, the bandwidth of data transfer thread depends on the data transfer thread of work simultaneously, First terminal, specific data transfer components can be according to data transfer threads in the data transfer thread list State, it is determined that the data transfer Thread Count amount to work simultaneously, according to the data transfer Thread Count of work simultaneously Amount distribution bandwidth, distribution principle here is usually mean allocation.
The transport module, for running the data transfer thread, in the first terminal and second terminal Between transmit data.
After connection end slogan to be configured to the data transfer thread of free time, transport module brings into operation, and first Begin to transmit data between terminal and second terminal, in the functional test of electronic equipment or parts, Specific is exactly the transmission data related to functional test, is specifically included:
The running configuration data transfer thread of connection end slogan, pass through connection corresponding to the connection end slogan Port, data are transmitted between the first terminal and second terminal;
When transformation task completion, the data transfer thread is discharged, is updated in the data transfer thread list Data transfer thread state for free time.
Per the Status Change of secondary data transmission line journey, the data transfer thread list that upgrades in time is required for, so It is easy to second terminal of the distribution data transfer thread to wait in time.
In actual applications, the monitoring module 21, configuration module 22 and transport module 23 can by positioned at The central processing unit (CPU) of first terminal, microprocessor (MPU), digital signal processor (DSP), Or field programmable gate array (FPGA) etc. is realized.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or meter Calculation machine program product.Therefore, the present invention can use hardware embodiment, software implementation or combine software and The form of the embodiment of hardware aspect.Moreover, the present invention can use wherein includes calculating in one or more The computer-usable storage medium of machine usable program code (includes but is not limited to magnetic disk storage and optical storage Device etc.) on the form of computer program product implemented.
The present invention is with reference to method according to embodiments of the present invention, equipment (system) and computer program product Flow chart and/or block diagram describe.It should be understood that can be by computer program instructions implementation process figure and/or side Each flow and/or square frame in block diagram and flow and/or the knot of square frame in flow chart and/or block diagram Close.Can provide these computer program instructions to all-purpose computer, special-purpose computer, Embedded Processor or The processor of other programmable data processing devices is to produce a machine so that by computer or other can The instruction of the computing device of programming data processing equipment is produced for realizing in one flow or multiple of flow chart The device for the function of being specified in one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices In the computer-readable memory to work in a specific way so that be stored in the computer-readable memory Instruction produces the manufacture for including command device, and the command device is realized in one flow of flow chart or multiple streams The function of being specified in one square frame of journey and/or block diagram or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices, made Obtain and series of operation steps is performed on computer or other programmable devices to produce computer implemented place Reason, so as to which the instruction that is performed on computer or other programmable devices is provided for realizing in flow chart one The step of function of being specified in flow or multiple flows and/or one square frame of block diagram or multiple square frames.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the protection model of the present invention Enclose, all any modification, equivalent and improvement made within the spirit and principles of the invention etc. all should Within protection scope of the present invention.

Claims (10)

1. a kind of data transmission method based on hardware port, it is characterised in that methods described includes:
The hardware configuration information of first terminal is monitored, obtains the connection that second terminal is connected with the first terminal Port numbers;
The connection end slogan is configured to the data transfer thread of free time;
The data transfer thread is run, data are transmitted between the first terminal and second terminal.
2. according to the method for claim 1, it is characterised in that the hardware of the monitoring first terminal is matched somebody with somebody Confidence ceases, and obtains the connection end slogan that second terminal is connected with the first terminal, including:
When the second terminal is connected to the first terminal, the connection end slogan recorded described In the hardware configuration information of one terminal;
By monitoring the hardware configuration information, the connection end slogan is obtained.
3. method according to claim 1 or 2, it is characterised in that described by the connection end slogan The data transfer thread of free time is configured to, including:
According to data transfer thread list, it is determined that idle data transfer thread, the data transfer thread row Table includes the state of data transfer thread;
The connection end slogan of acquisition is configured to the data transfer thread of free time;
The result of configuration is recorded in the data transfer thread list.
4. method according to claim 1 or 2, it is characterised in that the operation data transfer Thread, after transmitting data between the first terminal and second terminal, in addition to:
When transformation task completion, the data transfer thread is discharged, updates the data data in transmission thread list The state for transmitting thread is the free time.
5. method according to claim 1 or 2, it is characterised in that methods described also includes:
Read the state of data transfer thread in data transfer thread list;
For each data transfer thread allocation of transmission bandwidth.
6. a kind of data transmission device based on hardware port, it is characterised in that described device includes monitoring mould Block, configuration module and transport module;Wherein,
The monitoring module, for monitoring the hardware configuration information of first terminal, obtain second terminal with it is described The connection end slogan of first terminal connection;
The configuration module, for the connection end slogan to be configured to the data transfer thread of free time;
The transport module, for running the data transfer thread, in the first terminal and second terminal Between transmit data.
7. device according to claim 6, it is characterised in that the monitoring module is specifically used for:
The monitor component for the hardware configuration information for monitoring the first terminal is set;
When the second terminal is connected to the first terminal, the connection end slogan recorded described In the hardware configuration information of one terminal;
By monitoring the hardware configuration information, the connection end slogan is obtained.
8. the device according to claim 6 or 7, it is characterised in that the configuration module is specifically used for:
According to data transfer thread list, it is determined that idle data transfer thread, the data transfer thread row Table includes the state of data transfer thread;
The connection end slogan of acquisition is configured to the data transfer thread of free time;
The result of configuration is recorded in the data transfer thread list.
9. the device according to claim 6 or 7, it is characterised in that the transport module is additionally operable to:
When transformation task completion, the data transfer thread is discharged, updates the data data in transmission thread list The state for transmitting thread is the free time.
10. the device according to claim 6 or 7, it is characterised in that the configuration module is additionally operable to:
Read the state of data transfer thread in data transfer thread list;
For each data transfer thread allocation of transmission bandwidth.
CN201610323532.8A 2016-05-16 2016-05-16 Data transmission method and device based on hardware port Active CN107391404B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610323532.8A CN107391404B (en) 2016-05-16 2016-05-16 Data transmission method and device based on hardware port
PCT/CN2017/081996 WO2017198051A1 (en) 2016-05-16 2017-04-26 Method and apparatus for data transmission, and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610323532.8A CN107391404B (en) 2016-05-16 2016-05-16 Data transmission method and device based on hardware port

Publications (2)

Publication Number Publication Date
CN107391404A true CN107391404A (en) 2017-11-24
CN107391404B CN107391404B (en) 2021-12-28

Family

ID=60324812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610323532.8A Active CN107391404B (en) 2016-05-16 2016-05-16 Data transmission method and device based on hardware port

Country Status (2)

Country Link
CN (1) CN107391404B (en)
WO (1) WO2017198051A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113253640A (en) * 2021-04-25 2021-08-13 湖南航天机电设备与特种材料研究所 Flight control computer and general hardware abstraction layer thereof

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101848043A (en) * 2010-04-30 2010-09-29 青岛海信移动通信技术股份有限公司 Radio frequency test system and method
US20120198117A1 (en) * 2011-01-31 2012-08-02 Srinjoy Das System and Method for Improving Throughput of Data Transfers Using a Shared Non-Deterministic Bus
CN103324569A (en) * 2013-06-08 2013-09-25 四川长虹电器股份有限公司 Test method for embedded system application program codes
CN103617063A (en) * 2013-12-10 2014-03-05 Tcl通讯(宁波)有限公司 Software updating method and device for mobile terminals
CN104809214A (en) * 2015-04-23 2015-07-29 中国电子科技集团公司第四十一研究所 Test-data breakpoint continuous transmission method applied to microwave automatic test system
CN104881388A (en) * 2015-06-12 2015-09-02 哈尔滨工业大学 FPGA (field programmable gate array) based USB3.0 interface module
CN105007195A (en) * 2015-07-15 2015-10-28 广东欧珀移动通信有限公司 Port binding method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102202132B (en) * 2010-03-24 2013-06-05 中兴通讯股份有限公司 Method, system and equipment for initializing networking equipment
CN102300118B (en) * 2011-09-06 2015-03-25 博威科技(深圳)有限公司 Testing system and testing method for monitoring system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101848043A (en) * 2010-04-30 2010-09-29 青岛海信移动通信技术股份有限公司 Radio frequency test system and method
US20120198117A1 (en) * 2011-01-31 2012-08-02 Srinjoy Das System and Method for Improving Throughput of Data Transfers Using a Shared Non-Deterministic Bus
CN103324569A (en) * 2013-06-08 2013-09-25 四川长虹电器股份有限公司 Test method for embedded system application program codes
CN103617063A (en) * 2013-12-10 2014-03-05 Tcl通讯(宁波)有限公司 Software updating method and device for mobile terminals
CN104809214A (en) * 2015-04-23 2015-07-29 中国电子科技集团公司第四十一研究所 Test-data breakpoint continuous transmission method applied to microwave automatic test system
CN104881388A (en) * 2015-06-12 2015-09-02 哈尔滨工业大学 FPGA (field programmable gate array) based USB3.0 interface module
CN105007195A (en) * 2015-07-15 2015-10-28 广东欧珀移动通信有限公司 Port binding method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ANDREAS APOSTOLAKIS等: ""Exploiting Thread-Level Parallelism in Functional Self-Testing of CMT Processors"", 《2009 14TH IEEE EUROPEAN TEST SYMPOSIUM》 *
王暹昊: ""用I/O完成端口设计多线程的服务应用程序"", 《计算机与现代化》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113253640A (en) * 2021-04-25 2021-08-13 湖南航天机电设备与特种材料研究所 Flight control computer and general hardware abstraction layer thereof
CN113253640B (en) * 2021-04-25 2022-07-15 湖南航天机电设备与特种材料研究所 Flight control computer and general hardware abstraction layer thereof

Also Published As

Publication number Publication date
CN107391404B (en) 2021-12-28
WO2017198051A1 (en) 2017-11-23

Similar Documents

Publication Publication Date Title
CN106383764B (en) A kind of collecting method and equipment
CN102967815B (en) Chip testing method, automated testing equipment and system
US7971110B2 (en) System and method for testing a serial attached small computer system interface
CN108180599A (en) Adjustment method and debugging apparatus and computer readable storage medium
CN111563014A (en) Interface service performance test method, device, equipment and storage medium
CN104182683B (en) A kind of monitoring method of online transaction, apparatus and system
CN106610896A (en) Adaptive pressure testing method and device
US20060150023A1 (en) Debugging apparatus
CN106020777A (en) Data processing method, device and system
CN108683528A (en) A kind of data transmission method, central server, server and data transmission system
CN108111367A (en) Performance test methods and device
CN105528261A (en) Method and system for intelligently outputting debugging information for embedded device
CN102291274A (en) System and method for realizing automatic adaptation of network testing instrument
CN107066413B (en) Method for processing data of multiple bus devices and bus system thereof
CN108376110A (en) A kind of automatic testing method, system and terminal device
CN107864187A (en) The online task executing method of terminal device and server
CN106612215A (en) Integrated remote detection device and method based on Ethernet
CN104038388B (en) Based on distributed Internet of Things Auto-Test System and method of testing
CN110245759A (en) A kind of method for inspecting, system, server and equipment
CN109388589A (en) A kind of method, equipment and storage medium adjusting cache partitions ratio
CN107391404A (en) A kind of data transmission method and device based on hardware port
CN111913861A (en) Performance test method, device, equipment and medium of Internet of things system
CN104678292B (en) A kind of complex programmable logic device (CPLD) test method and device
CN115934365A (en) Task scheduling coupling system applied to CPU
CN114034972B (en) Intelligent cable fault determining method and device based on image data

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