CN109918031B - Data transmission method and system, and computer storage medium - Google Patents

Data transmission method and system, and computer storage medium Download PDF

Info

Publication number
CN109918031B
CN109918031B CN201910147546.2A CN201910147546A CN109918031B CN 109918031 B CN109918031 B CN 109918031B CN 201910147546 A CN201910147546 A CN 201910147546A CN 109918031 B CN109918031 B CN 109918031B
Authority
CN
China
Prior art keywords
data
terminal
transmission
printer
transmitted
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.)
Active
Application number
CN201910147546.2A
Other languages
Chinese (zh)
Other versions
CN109918031A (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201910147546.2A priority Critical patent/CN109918031B/en
Publication of CN109918031A publication Critical patent/CN109918031A/en
Application granted granted Critical
Publication of CN109918031B publication Critical patent/CN109918031B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The embodiment of the application discloses a data transmission method and a system and a computer storage medium, wherein the data transmission method is applied to a data transmission system, the data transmission system is composed of a terminal and a printer, and the data transmission method comprises the following steps: the terminal acquires data to be transmitted in Web software; the Web software is loaded with a transmission plug-in; the terminal generates a transmission instruction; wherein the transmission instruction carries data to be transmitted; and transmitting the transmission instruction to the printer through the transmission plug-in.

Description

Data transmission method and system, and computer storage medium
Technical Field
The embodiment of the application relates to the field of network communication, in particular to a data transmission method and system and a computer storage medium.
Background
With the continuous progress of science and technology, people can realize the transmission functions of various hypertext, hypermedia and hypertext on World Wide Web (Web) pages. At present, for software developed at a Web end, when data information is transmitted to a printer, an instruction needs to be generated locally through a terminal, then the instruction carrying the data is transmitted to a server, and then the server sends the instruction to the printer through a network, so that data transmission can be realized.
However, data transmission based on the browser and server structure is to forward data through the server, and there are many data transmission links, so that the data transmission rate is slowed down, and the stability of data transmission is reduced.
Disclosure of Invention
The embodiment of the application provides a data transmission method and system and a computer storage medium, which can reduce data transmission links, accelerate the data transmission rate and effectively improve the stability of data transmission when data transmission is performed.
The technical scheme of the embodiment of the application is realized as follows:
the embodiment of the application provides a data transmission method, which is applied to a data transmission system, wherein the data transmission system consists of a terminal and a printer; the method comprises the following steps:
the terminal acquires data to be transmitted in Web software; wherein the Web software is loaded with a transmission plug-in;
the terminal generates a transmission instruction; wherein the transmission instruction carries the data to be transmitted;
transmitting a transmission instruction to the printer through the transmission plug-in.
In the above solution, before the terminal generates the transmission instruction, the method further includes:
setting first address information corresponding to the terminal and second address information corresponding to the printer;
associating the first address information and the second address information.
In the above solution, before the terminal generates the transmission instruction, the method further includes:
setting a first port parameter corresponding to the terminal and a second port parameter corresponding to the printer;
associating the first port parameter and the second port parameter.
In the above scheme, the generating, by the terminal, the transmission instruction includes:
and the terminal generates the transmission instruction according to the first address information, the first port parameter and the data to be transmitted.
In the above scheme, transmitting a transmission instruction to the printer via the transmission plug-in includes:
calling the transmission plug-in to analyze the transmission instruction, obtain the second address information associated with the first address information, and obtain the second port parameter associated with the first port parameter;
and transmitting the data to be transmitted to the printer according to the second address information and the second port parameter.
In the above scheme, before the terminal obtains the data to be transmitted in the Web software, the method further includes:
and the terminal operates the transmission plug-in.
In the above solution, after the transmission plug-in transmits the transmission instruction to the printer, the method further includes:
and the printer responds to the transmission instruction and performs printing processing on the data to be transmitted.
The embodiment of the application provides a data transmission system, which consists of a terminal and a printer; the data transmission system includes: an acquisition unit, a generation unit and a transmission unit,
the acquisition unit is used for acquiring the data to be transmitted in the Web software by the terminal; the Web software is loaded with a transmission plug-in;
the generating unit is used for generating a transmission instruction by the terminal; wherein the transmission instruction carries the data to be transmitted;
the transmission unit is used for transmitting a transmission instruction to the printer through the transmission plug-in.
In the foregoing solution, the data transmission system further includes: a setting unit and an association unit, wherein,
the setting unit is used for setting first address information corresponding to the terminal and second address information corresponding to the printer before the terminal generates a transmission instruction; setting a first port parameter corresponding to the terminal and a second port parameter corresponding to the printer;
the association unit is used for associating the first address information with the second address information; and associating the first port parameter and the second port parameter.
In the foregoing scheme, the generating unit is specifically configured to generate the transmission instruction by the terminal according to the first address information, the first port parameter, and the data to be transmitted.
In the foregoing solution, the transmission unit is specifically configured to invoke the transmission plug-in to analyze the transmission instruction, obtain the second address information associated with the first address information, and obtain the second port parameter associated with the first port parameter; and transmitting the data to be transmitted to the printer according to the second address information and the second port parameter.
In the above scheme, the data transmission system further includes: the unit is operated in such a way that,
and the running unit is used for running the transmission plug-in by the terminal before the terminal acquires the data to be transmitted in the Web software.
In the above scheme, the data transmission system further includes: a processing unit for processing the received data,
and the processing unit is used for responding the transmission instruction by the printer after the transmission plug-in component transmits the transmission instruction to the printer and printing the data to be transmitted.
An embodiment of the present application provides a data transmission system, which includes a processor, a memory storing executable instructions of the processor, a terminal, and a printer, and when the instructions are executed by the processor, the data transmission method as described above is implemented.
The embodiment of the application provides a computer readable storage medium, on which a program is stored, and the program is applied to a data transmission system, and when the program is executed by a processor, the data transmission method is realized.
The embodiment of the application provides a data transmission method and system and a computer storage medium, wherein the data transmission method is applied to a data transmission system, the data transmission system is composed of a terminal and a printer, and the terminal acquires data to be transmitted in Web software; the Web software is loaded with a transmission plug-in; the terminal generates a transmission instruction; wherein the transmission instruction carries data to be transmitted; the transmission instruction is transmitted to the printer through the transmission plug-in. Therefore, in the embodiment of the application, a transmission plug-in is loaded based on Web software, and a terminal and a printer in a data transmission system can be directly connected, so that the terminal can generate a corresponding transmission instruction according to-be-transmitted data acquired from the Web software, and the data transmission system can transmit the to-be-transmitted data in the transmission instruction to the printer by calling the transmission plug-in, so that the direct transmission of the terminal and the printer on the Web software data is realized, and further, when data transmission is performed, data transmission links can be reduced, the data transmission rate is accelerated, and meanwhile, the stability of data transmission can be effectively improved.
Drawings
Fig. 1 is a schematic flowchart illustrating an implementation process of a data transmission method according to an embodiment of the present application;
fig. 2 is a block diagram of a data transmission system according to an embodiment of the present application;
fig. 3 is a block diagram of a data transmission system in the prior art;
fig. 4 is a first schematic structural diagram of a data transmission system according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a data transmission system according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant application and are not limiting of the application. It should be noted that, for the convenience of description, only the parts related to the related applications are shown in the drawings.
The world Wide Web (WWAN), also called world Wide Web, is a hypertext and HTTP based, global, dynamic interactive, cross-platform distributed graphical information system, is a network service established on the Internet, and provides a graphical, easily accessible and intuitive interface for a browser to search and browse information on the Internet, wherein documents and hyperlinks organize information nodes on the Internet into a mutually-associated mesh structure.
At present, software developed on the basis of a Web end, that is, software based on a Browser/Server mode (B/S), needs to generate a transmission instruction locally through a terminal, transmit the transmission instruction to a Server, and transmit the transmission instruction to a printer through a network by the Server to realize data transmission if information needs to be transmitted to the printer. It should be noted that, when data transmission is implemented in the prior art, both the local terminal and the printer need to be networked and in the same local area network.
Therefore, in the existing technical scheme for carrying out data transmission through the data transmission system consisting of the terminal, the server and the printer, more transmission links for data transmission are needed, and the data transmission links must be transmitted from the terminal to the server and then from the server to the printer, so that the transmission rate of the data transmission is reduced, and meanwhile, the stability of the data transmission is also reduced. Further, in the existing data transmission system, the terminal and the printer must be networked simultaneously and must be in the same local area network, so the intelligence is poor. On the other hand, in the existing data transmission system, the printer needs to allocate different Internet Protocol addresses (IP addresses) for different terminals to access respectively, which is prone to abnormal situations, for example, a user terminal a is connected to a printer IP used by a user B due to a wrong setting, which causes a dual-user to access simultaneously, data may conflict or be abnormal, and the security and intelligence of the system are reduced.
The data transmission method provided by the embodiment of the application is applied to a data transmission system, wherein the data transmission system is composed of a terminal and a printer, in the application, the terminal loads a middle plug-in gadget in Web software, and the plug-in is called to realize that the terminal directly transmits data to be transmitted in the Web software to the printer, so that data transmission links can be reduced, the data transmission rate is accelerated, and meanwhile, the stability of data transmission can be effectively improved.
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
An embodiment of the present application provides a data transmission method, and fig. 1 is a schematic implementation flow diagram of the data transmission method provided in the embodiment of the present application, as shown in fig. 1, in the embodiment of the present application, a method for performing data transmission by a data transmission system may include the following steps:
step 101, the terminal obtains data to be transmitted in Web software.
In the embodiment of the application, a terminal in the data transmission system may first acquire data to be transmitted, that is, data to be transmitted, on a Web interface.
Further, in the embodiment of the present application, the data transmission system may include a terminal and a printer, and particularly, the terminal and the printer in the data transmission system may be connected by a network cable. Specifically, because terminal and printer among the data transmission system can be connected through the net twine, consequently, compare with prior art, the printer can not be networked, and the printer more need not be in same LAN with the terminal, has improved intelligent greatly.
Fig. 2 is a structural diagram of a data transmission system according to an embodiment of the present application, and as shown in fig. 2, the data transmission system 10 may be composed of a printer 12 and a terminal 11, where the terminal 11 and the printer 12 are connected through a network cable 13, and the terminal 11 and the printer 12 may directly perform data transmission. Fig. 3 is a block diagram of a data transmission system in the prior art, and as shown in fig. 3, the data transmission system 20 may be composed of a terminal 21, a server 22 and a printer 23, wherein the terminal 21 and the printer 23 need to be connected in the same local area network, and the terminal 21 and the printer 23 perform data transmission through the server 22.
Further, in the embodiment of the present application, a terminal of the data transmission system may develop and load a plug-in tool for data transmission on the Web software, that is, a transmission plug-in, so that the terminal may transmit data through a call of the transmission plug-in.
It should be noted that, in the embodiment of the present application, the plug-in is a program written by an application program interface conforming to a certain specification. Many software has plug-ins, which are diverse. For example, in an IE, after installing the associated plug-in, the Web software can directly call the plug-in for processing a particular type of file. The plug-in positioning is to develop a program for realizing functions which are not provided by the original pure system platform and the application software platform, and the plug-in can only run under the system platform (possibly supporting a plurality of platforms simultaneously) specified by the program and cannot run independently from the specified platform because the plug-in needs to call a function library or data provided by the original pure system.
It should be noted that, in the embodiment of the present application, the terminal may be any terminal having communication and storage functions, for example: a tablet Computer, a mobile phone, an electronic reader, a remote controller, a Personal Computer (PC), a notebook Computer, a vehicle-mounted device, a network tv, a wearable device, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, and other terminals. Specifically, the terminal may be an intelligent terminal installed with a plurality of different application software and having a display interface.
Further, in the embodiment of the application, when the terminal acquires the data to be transmitted in the Web software, the data to be transmitted may be determined in the Web page through a print instruction of the user, or may be determined in the Web page according to default settings of the system. The data to be transmitted may be data that is acquired by the terminal and needs to be processed.
In the embodiments of the present application, the printer in the data transmission system may be other devices capable of performing data processing, such as a display, a memory, and the like, and the present application is not particularly limited. Specifically, when the data transmission system is composed of a terminal and a printer, the data to be transmitted may be data to be printed; when the data transmission system is composed of a terminal and a display, the data to be transmitted may be data to be displayed.
It should be noted that, in the embodiment of the present application, the data to be transmitted is generated for the terminal based on the Web end software.
Further, in the embodiment of the application, when the terminal acquires the data to be transmitted in the Web software, the Web software may generate the data to be transmitted first, and then transmit the data to be transmitted to the transmission plug-in, so that the terminal can obtain the data to be transmitted.
102, generating a transmission instruction by a terminal; wherein, the transmission instruction carries the data to be transmitted.
In the embodiment of the application, after the terminal in the data transmission system obtains the data to be transmitted in the Web software, a transmission instruction can be generated according to the data to be transmitted. That is, the transmission instruction generated by the terminal carries the data to be transmitted.
It should be noted that, in the embodiment of the present application, after acquiring the data to be transmitted, the terminal needs to generate a corresponding transmission instruction before transmitting the data to be transmitted, so that the data can be transmitted to the printer according to the transmission instruction. Specifically, the terminal needs to generate a transmission instruction according to the data to be transmitted, that is, the transmission instruction and the data to be transmitted correspond to each other.
Further, in the embodiment of the present application, the transmission instruction further needs to carry an IP address and a port parameter of the terminal, and meanwhile, the transmission instruction further needs to carry an IP address and a port parameter of the printer.
Step 103, transmitting the transmission instruction to the printer through the transmission plug-in.
In the embodiment of the application, after the terminal in the data transmission system generates the transmission instruction according to the data to be transmitted, the terminal can send the transmission instruction to the printer through the transmission plug-in, so that the transmission of the data to be transmitted is realized.
Further, in the embodiment of the application, the terminal loads and develops the transmission plug-in the Web software, so that the terminal can directly transmit the transmission instruction to the printer after acquiring the data to be transmitted on the Web software and generating the transmission instruction according to the data to be transmitted.
The data transmission method is applied to a data transmission system, the data transmission system is composed of a terminal and a printer, and the terminal acquires data to be transmitted in Web software; the Web software is loaded with a transmission plug-in; the terminal generates a transmission instruction; wherein the transmission instruction carries data to be transmitted; and transmitting the transmission instruction to the printer through the transmission plug-in. Therefore, in the embodiment of the application, a transmission plug-in is loaded based on Web software, and a terminal and a printer in a data transmission system can be directly connected, so that the terminal can generate a corresponding transmission instruction according to-be-transmitted data acquired from the Web software, and the data transmission system can transmit the to-be-transmitted data in the transmission instruction to the printer by calling the transmission plug-in, so that the direct transmission of the terminal and the printer on the Web software data is realized, and further, when data transmission is performed, data transmission links can be reduced, the data transmission rate is accelerated, and meanwhile, the stability of data transmission can be effectively improved.
In another embodiment of the present application, based on the above embodiment, before the terminal in the data transmission system obtains the data to be transmitted in the Web software, that is, before the step 101, the method for data transmission by the data transmission system may further include the following steps:
and step 104, running the transmission plug-in.
In the embodiment of the application, before the terminal in the data transmission system obtains the data to be transmitted from the Web software, the data transmission system needs to operate the transmission plug-in loaded in the Web software, so that the transmission plug-in can be called.
In the embodiment of the present application, since many pieces of software including Web software in a terminal are loaded with plug-ins and the types of plug-ins are various, the terminal needs to run a transport plug-in before calling the transport plug-in the Web software.
In the embodiment of the present application, further, after the terminal in the data transmission system transmits the transmission instruction to the printer through the transmission plug-in, that is, after step 103, the method for data transmission by the data transmission system may further include the following steps:
and step 105, the printer responds to the transmission instruction and performs printing processing on the data to be transmitted.
In the embodiment of the application, after the terminal in the data transmission system sends the transmission instruction to the printer in the data transmission system through the transmission plug-in, the printer can print the transmission data in the transmission instruction.
It should be noted that, in the embodiment of the present application, after acquiring the transmission instruction sent by the terminal, the printer may extract data to be transmitted in the transmission instruction, and then print the data to be transmitted.
Further, in the embodiment of the present application, after the printer acquires the transmission instruction sent by the terminal, the printer may also query and check the IP address and the port information, which are carried in the transmission instruction and correspond to the terminal, so as to determine the identity of the terminal.
It should be noted that, in the embodiment of the present application, since the printer in the data transmission system may also be other devices capable of performing data processing, such as a display, a memory, and the like, there may be a plurality of types of processing on the data to be transmitted, for example, when the data transmission system is composed of a terminal and a display, the display may perform display processing on the data to be transmitted after receiving the data to be transmitted; when the data transmission system is composed of a terminal and a text conversion device, the text conversion device can convert the data to be transmitted after receiving the data to be transmitted.
The application provides a data transmission method, which is applied to a data transmission system, wherein the data transmission system consists of a terminal and a printer, and the terminal acquires data to be transmitted in Web software; the Web software is loaded with a transmission plug-in; the terminal generates a transmission instruction; wherein the transmission instruction carries data to be transmitted; and transmitting the transmission instruction to the printer through the transmission plug-in. Therefore, in the embodiment of the application, a transmission plug-in is loaded based on Web software, and a terminal and a printer in a data transmission system can be directly connected, so that the terminal can generate a corresponding transmission instruction according to-be-transmitted data acquired from the Web software, and the data transmission system can transmit the to-be-transmitted data in the transmission instruction to the printer by calling the transmission plug-in, so that the direct transmission of the terminal and the printer on the Web software data is realized, and further, when data transmission is performed, data transmission links can be reduced, the data transmission rate is accelerated, and meanwhile, the stability of data transmission can be effectively improved.
Based on the foregoing embodiment, in another embodiment of the present application, before the terminal in the data transmission system generates the transmission instruction, that is, before the foregoing step 102, the method for data transmission by the data transmission system may further include the following steps:
and 106, setting first address information corresponding to the terminal and second address information corresponding to the printer.
In the embodiment of the present application, the data transmission system may set the IP addresses of the terminal and the printer first, and specifically, before generating the transmission instruction, the data transmission system may set first address information corresponding to the terminal and second address information corresponding to the printer first.
It should be noted that, in the embodiment of the present application, the first address information is an IP address corresponding to the terminal, and the second address information is an IP address corresponding to the printer. Wherein the IP address is a digital label assigned to an internet protocol device used by the user to access the internet. Common IP addresses fall into two broad categories, IPv4 and IPv6, but there are other small categories that are not common.
Further, in the embodiment of the present application, the second address information set by the printer in the data transmission system is a fixed IP address, and compared with the prior art, the printer in the data transmission system does not allocate different IP addresses for different host users to access respectively, but sets the fixed IP address to connect with the terminal, so that the occurrence of an abnormal situation can be avoided, and further, data collision caused by simultaneous access of multiple users under the abnormal situation is avoided.
And step 107, associating the first address information with the second address information.
In the embodiment of the application, after setting the first address information corresponding to the terminal and the second address information corresponding to the printer, the data transmission system may associate the first address information and the second address information.
It should be noted that, in the embodiment of the present application, after the data transmission system sets the IP addresses of the terminal and the printer, the data transmission system may determine the corresponding relationship between the IP addresses corresponding to the terminal and the printer, that is, establish the corresponding relationship between the first address information and the second address information. That is, a terminal and a printer in the data transmission system can be fixedly connected by an associated IP address.
In the embodiment of the present application, further, before the terminal in the data transmission system generates the transmission instruction, that is, before the step 102, the method for the data transmission system to perform data transmission may further include the following steps:
and step 108, setting a first port parameter corresponding to the terminal and a second port parameter corresponding to the printer.
In the embodiment of the present application, the data transmission system may set the ports of the terminal and the printer first, and specifically, before generating the transmission instruction, the data transmission system may set the first port parameter corresponding to the terminal and the second port parameter corresponding to the printer first.
It should be noted that, in the embodiment of the present application, the first port parameter is a port corresponding to a terminal, and the second port parameter is a port corresponding to a printer. Wherein, the port can be regarded as an outlet for communication and communication between the device and the outside. Ports can be divided into virtual ports and physical ports, and in particular, virtual ports refer to ports inside a computer or inside a switch router and are not visible. Such as 80 ports, 21 ports, 23 ports, etc. in a computer. The physical port, also called an interface, is a visible port. For example, RJ45 ports on the back plane of a computer, RJ45 ports such as switch router hubs.
Further, in the embodiment of the present application, the second port parameter set by the printer in the data transmission system is a fixed port.
And step 109, associating the first port parameter and the second port parameter.
In the embodiment of the present application, after setting the first port parameter corresponding to the terminal and the second port parameter corresponding to the printer, the data transmission system may associate the first port parameter and the second port parameter.
It should be noted that, in the embodiment of the present application, after the data transmission system sets the ports of the terminal and the printer, the corresponding relationship between the respective corresponding ports of the terminal and the printer may be determined, that is, the corresponding relationship between the first port parameter and the second port parameter is established. That is, the terminal and the printer in the data transmission system may be fixedly connected through the associated ports.
In an embodiment of the present application, further, for the method in step 102, when the terminal in the data transmission system generates the transmission instruction, the terminal may generate the transmission instruction according to the first address information, the first port parameter, and the data to be transmitted. That is to say, when the terminal generates the transmission instruction, the IP address and the port corresponding to the terminal may be added to the transmission instruction, so that the terminal may be used to confirm the identity, and may also be used to transmit a plug-in to determine the identity of the printer.
In an embodiment of the present application, further, for the method of step 103 above, the method for the data transmission system to transmit the transmission instruction to the printer through the transmission plug-in may include the following steps:
step 103a, calling the transmission plug-in to analyze the transmission instruction, obtain the second address information associated with the first address information, and obtain the second port parameter associated with the first port parameter.
In the embodiment of the application, after a terminal in the data transmission system generates a transmission instruction according to data to be transmitted, the data transmission system may call a transmission plug-in to analyze the transmission instruction, obtain second address information corresponding to first address information in the transmission instruction, and simultaneously obtain second port parameters corresponding to first port parameters in the transmission instruction.
It should be noted that, in the implementation of the present application, the data transmission system may analyze a transmission instruction generated by the terminal, and specifically, the data transmission system may invoke a transmission plug-in to analyze the transmission instruction, so as to obtain first address information and first port parameters carried in the transmission instruction, and then may further determine, according to the first address information, second address information of the printer corresponding to the terminal, and meanwhile, may further determine, according to the first port parameters, second port parameters of the printer corresponding to the terminal.
And 103b, transmitting the data to be transmitted to the printer according to the second address information and the second port parameter.
In the embodiment of the application, the data transmission system calls the transmission plug-in to analyze the transmission instruction, and after the second address information and the second port parameter of the printer are obtained, the data to be transmitted in the transmission instruction can be transmitted to the printer according to the second address information and the second port parameter.
Further, in the embodiment of the present application, the printer is connected to the terminal through the fixed port and the IP address, so that data collision caused by multiple users accessing the printer at the same time under an abnormal condition in the prior art can be avoided. Meanwhile, the terminal and the printer in the data transmission system are directly connected through a network cable, so that the printer does not need to be networked and is not connected with the terminal in the same local area network.
The application provides a data transmission method, which is applied to a data transmission system, wherein the data transmission system consists of a terminal and a printer, and the terminal acquires data to be transmitted in Web software; the Web software is loaded with a transmission plug-in; the terminal generates a transmission instruction; wherein the transmission instruction carries data to be transmitted; and transmitting the transmission instruction to the printer through the transmission plug-in. Therefore, in the embodiment of the application, a transmission plug-in is loaded based on Web software, and a terminal and a printer in a data transmission system can be directly connected, so that the terminal can generate a corresponding transmission instruction according to-be-transmitted data acquired from the Web software, and the data transmission system can transmit the to-be-transmitted data in the transmission instruction to the printer by calling the transmission plug-in, so that the direct transmission of the terminal and the printer on the Web software data is realized, and further, when data transmission is performed, data transmission links can be reduced, the data transmission rate is accelerated, and meanwhile, the stability of data transmission can be effectively improved.
Based on the foregoing embodiment, in another embodiment of the present application, fig. 4 is a schematic structural diagram of a composition of a data transmission system provided in the embodiment of the present application, and as shown in fig. 4, the data transmission system 10 provided in the embodiment of the present application may include: the device comprises an acquisition unit 14, a generation unit 15, a transmission unit 16, a setting unit 17, an association unit 18, an operation unit 19 and a processing unit 110.
The acquiring unit 14 is configured to acquire data to be transmitted in Web software by the terminal; wherein the Web software is loaded with a transport plug-in.
The generating unit 15 is configured to generate a transmission instruction by the terminal; and the transmission instruction carries the data to be transmitted.
The transmission unit 16 is configured to transmit a transmission instruction to the printer through the transmission plug-in.
In the embodiment of the present application, further, the setting unit 17 is configured to set first address information corresponding to the terminal and second address information corresponding to the printer before the terminal generates the transmission instruction; and setting a first port parameter corresponding to the terminal and a second port parameter corresponding to the printer.
The associating unit 18 is configured to associate the first address information and the second address information; and associating the first port parameter and the second port parameter.
In an embodiment of the present application, further, the generating unit 15 is specifically configured to generate the transmission instruction by the terminal according to the first address information, the first port parameter, and the data to be transmitted.
In an embodiment of the present application, the transmission unit 16 is specifically configured to invoke the transmission plug-in to analyze the transmission instruction, obtain the second address information associated with the first address information, and obtain the second port parameter associated with the first port parameter; and transmitting the data to be transmitted to the printer according to the second address information and the second port parameter.
In the embodiment of the present application, further, the running unit 19 is configured to run the transmission plug-in by the terminal before the terminal acquires the data to be transmitted in the Web software.
In the embodiment of the present application, further, the processing unit 110 is configured to, after the transmission plug-in transmits the transmission instruction to the printer, respond to the transmission instruction by the printer, and perform printing processing on the data to be transmitted.
Fig. 5 is a schematic diagram of a composition structure of the data transmission system according to the embodiment of the present application, as shown in fig. 5, the data transmission system 10 according to the embodiment of the present application may further include a processor 111, a memory 112 storing executable instructions of the processor 111, a terminal 11, and a printer 12, and further, the data transmission system 10 may further include a communication interface 113, and a bus 114 for connecting the processor 111, the memory 112, the terminal 11, the printer 12, and the communication interface 113.
In an embodiment of the present Application, the Processor 111 may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a ProgRAMmable Logic Device (PLD), a Field ProgRAMmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor. It is understood that the electronic devices for implementing the above processor functions may be other devices, and the embodiments of the present application are not limited in particular. The data transmission system 10 may further comprise a memory 112, which memory 112 may be connected to the processor 111, wherein the memory 112 is configured to store executable program code comprising computer operating instructions, and the memory 112 may comprise a high speed RAM memory and may further comprise a non-volatile memory, such as at least two disk memories.
In the embodiment of the present application, the bus 114 is used to connect the communication interface 113, the processor 111, and the memory 112 and the intercommunication among these devices.
In an embodiment of the present application, the memory 112 is used for storing instructions and data.
Further, in an embodiment of the present application, the processor 111 is configured to obtain, by the terminal, data to be transmitted in Web software; the Web software is loaded with a transmission plug-in; the terminal generates a transmission instruction; wherein the transmission instruction carries the data to be transmitted; transmitting a transmission instruction to the printer through the transmission plug-in.
In practical applications, the Memory 112 may be a volatile Memory (volatile Memory), such as a Random-Access Memory (RAM); or a non-volatile Memory (non-volatile Memory), such as a Read-Only first Memory (ROM), a flash Memory (flash Memory), a Hard Disk (Hard Disk Drive, HDD) or a Solid-State Drive (SSD); or a combination of the above types of memories and provides instructions and data to the processor 111.
In addition, each functional module in this embodiment may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware or a form of a software functional module.
Based on the understanding that the technical solution of the present embodiment essentially or a part contributing to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium, and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the method of the present embodiment. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The data transmission system provided by the embodiment of the application comprises a terminal and a printer, wherein the terminal acquires data to be transmitted in Web software; the Web software is loaded with a transmission plug-in; the terminal generates a transmission instruction; wherein the transmission instruction carries data to be transmitted; and transmitting the transmission instruction to the printer through the transmission plug-in. Therefore, in the embodiment of the application, a transmission plug-in is loaded based on Web software, and a terminal and a printer in a data transmission system can be directly connected, so that the terminal can generate a corresponding transmission instruction according to-be-transmitted data acquired from the Web software, and the data transmission system can transmit the to-be-transmitted data in the transmission instruction to the printer by calling the transmission plug-in, so that the direct transmission of the terminal and the printer on the Web software data is realized, and further, when data transmission is performed, data transmission links can be reduced, the data transmission rate is accelerated, and meanwhile, the stability of data transmission can be effectively improved.
An embodiment of the present application provides a computer-readable storage medium, on which a program is stored, which when executed by a processor implements the data transmission method as described above.
Specifically, the program instructions corresponding to a data transmission method in the present embodiment may be stored on a storage medium such as an optical disc, a hard disc, a usb disk, or the like, and when the program instructions corresponding to a data transmission method in the storage medium are read or executed by an electronic device, the method includes the following steps:
the terminal acquires data to be transmitted in Web software; the Web software is loaded with a transmission plug-in;
the terminal generates a transmission instruction; wherein the transmission instruction carries the data to be transmitted;
transmitting a transmission instruction to the printer through the transmission plug-in.
As will be appreciated by one of skill in the art, embodiments of the present application may be provided as a method, terminal, or computer program product. Accordingly, the present application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of implementations of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks in the flowchart and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application.

Claims (15)

1. A data transmission method is characterized in that the data transmission method is applied to a data transmission system, and the data transmission system consists of a terminal and a printer; the method comprises the following steps:
the terminal acquires data to be transmitted in Web software; the Web software is loaded with a transmission plug-in;
the terminal generates a transmission instruction; wherein the transmission instruction carries the data to be transmitted;
transmitting a transmission instruction to the printer through the transmission plug-in;
the terminal and the printer are connected through a network cable, so that the terminal and the printer directly transmit data.
2. The method of claim 1, wherein before the terminal generates the transmission instruction, the method further comprises:
setting first address information corresponding to the terminal and second address information corresponding to the printer;
associating the first address information and the second address information.
3. The method of claim 2, wherein before the terminal generates the transmission instruction, the method further comprises:
setting a first port parameter corresponding to the terminal and a second port parameter corresponding to the printer;
associating the first port parameter and the second port parameter.
4. The method of claim 3, wherein the terminal generates a transmission instruction comprising:
and the terminal generates the transmission instruction according to the first address information, the first port parameter and the data to be transmitted.
5. The method of claim 4, wherein transmitting, by the transport plugin, a transport instruction to the printer comprises:
calling the transmission plug-in to analyze the transmission instruction, obtain the second address information associated with the first address information, and obtain the second port parameter associated with the first port parameter;
and transmitting the data to be transmitted to the printer according to the second address information and the second port parameter.
6. The method according to claim 1, wherein before the terminal obtains the data to be transmitted in the Web software, the method further comprises:
and the terminal operates the transmission plug-in.
7. The method of claim 1, wherein after transmitting a transmission instruction to the printer via the transmission plugin, the method further comprises:
and the printer responds to the transmission instruction and performs printing processing on the data to be transmitted.
8. A data transmission system is characterized in that the data transmission system is composed of a terminal and a printer; the data transmission system includes: an acquisition unit, a generation unit and a transmission unit,
the acquisition unit is used for acquiring the data to be transmitted in the Web software by the terminal; the Web software is loaded with a transmission plug-in;
the generating unit is used for generating a transmission instruction by the terminal; wherein the transmission instruction carries the data to be transmitted;
the transmission unit is used for transmitting a transmission instruction to the printer through the transmission plug-in;
the terminal and the printer are connected through a network cable, so that the terminal and the printer directly transmit data.
9. The data transmission system of claim 8, further comprising: a setting unit and an association unit, wherein,
the setting unit is used for setting first address information corresponding to the terminal and second address information corresponding to the printer before the terminal generates a transmission instruction; setting a first port parameter corresponding to the terminal and a second port parameter corresponding to the printer;
the association unit is configured to associate the first address information with the second address information; and associating the first port parameter and the second port parameter.
10. The data transmission system of claim 9,
the generating unit is specifically configured to generate the transmission instruction by the terminal according to the first address information, the first port parameter, and the data to be transmitted.
11. The data transmission system of claim 10,
the transmission unit is specifically configured to invoke the transmission plug-in to parse the transmission instruction, obtain the second address information associated with the first address information, and obtain the second port parameter associated with the first port parameter; and transmitting the data to be transmitted to the printer according to the second address information and the second port parameter.
12. The data transmission system of claim 8, further comprising: the unit is operated in such a way that,
and the running unit is used for running the transmission plug-in by the terminal before the terminal acquires the data to be transmitted in the Web software.
13. The data transmission system of claim 8, further comprising: a processing unit for processing the received data,
and the processing unit is used for responding to the transmission instruction by the printer and printing the data to be transmitted after the transmission instruction is transmitted to the printer by the transmission plug-in.
14. A data transmission system comprising a processor, a memory storing instructions executable by the processor, a terminal and a printer, the instructions when executed by the processor implementing a method according to any one of claims 1 to 7.
15. A computer-readable storage medium, on which a program is stored, for use in a data transmission system, characterized in that the program, when being executed by a processor, is adapted to carry out the method of any one of claims 1 to 7.
CN201910147546.2A 2019-02-27 2019-02-27 Data transmission method and system, and computer storage medium Active CN109918031B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910147546.2A CN109918031B (en) 2019-02-27 2019-02-27 Data transmission method and system, and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910147546.2A CN109918031B (en) 2019-02-27 2019-02-27 Data transmission method and system, and computer storage medium

Publications (2)

Publication Number Publication Date
CN109918031A CN109918031A (en) 2019-06-21
CN109918031B true CN109918031B (en) 2022-07-08

Family

ID=66962643

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910147546.2A Active CN109918031B (en) 2019-02-27 2019-02-27 Data transmission method and system, and computer storage medium

Country Status (1)

Country Link
CN (1) CN109918031B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1497496A (en) * 2002-10-18 2004-05-19 ������������ʽ���� Printing system and its control method, program, storage medium
CN1845103A (en) * 2006-04-30 2006-10-11 中国工商银行股份有限公司 File transmission method and system
CN2831657Y (en) * 2005-07-15 2006-10-25 康佳集团股份有限公司 Cell phone with USB directly printing interface
CN101335805A (en) * 2008-05-30 2008-12-31 北京天语君锐科技有限公司 Text file printing method in mobile terminal
CN203455829U (en) * 2013-09-17 2014-02-26 广州宽度信息技术有限公司 Printing system using analog audio signal to transmit data
AU2013245494A1 (en) * 2012-10-16 2014-05-01 Vekta Automation Pty Ltd Provision of assembly information for truss fabrication
CN105656760A (en) * 2016-01-08 2016-06-08 华自科技股份有限公司 Communication method and system between software plug-ins
CN106294510A (en) * 2015-06-11 2017-01-04 工业和信息化部电信研究院 A kind of correlating method and system
CN206039389U (en) * 2016-06-17 2017-03-22 上海御谦信息技术有限公司 A cooling type cloud service system for document
CN106657291A (en) * 2016-12-05 2017-05-10 乐视控股(北京)有限公司 Data transmission method, system and electronic equipment
CN207198833U (en) * 2017-08-17 2018-04-06 绵阳兴顺通信工程有限公司 Intelligence printer based on radio communication

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1497496A (en) * 2002-10-18 2004-05-19 ������������ʽ���� Printing system and its control method, program, storage medium
CN2831657Y (en) * 2005-07-15 2006-10-25 康佳集团股份有限公司 Cell phone with USB directly printing interface
CN1845103A (en) * 2006-04-30 2006-10-11 中国工商银行股份有限公司 File transmission method and system
CN101335805A (en) * 2008-05-30 2008-12-31 北京天语君锐科技有限公司 Text file printing method in mobile terminal
AU2013245494A1 (en) * 2012-10-16 2014-05-01 Vekta Automation Pty Ltd Provision of assembly information for truss fabrication
CN203455829U (en) * 2013-09-17 2014-02-26 广州宽度信息技术有限公司 Printing system using analog audio signal to transmit data
CN106294510A (en) * 2015-06-11 2017-01-04 工业和信息化部电信研究院 A kind of correlating method and system
CN105656760A (en) * 2016-01-08 2016-06-08 华自科技股份有限公司 Communication method and system between software plug-ins
CN206039389U (en) * 2016-06-17 2017-03-22 上海御谦信息技术有限公司 A cooling type cloud service system for document
CN106657291A (en) * 2016-12-05 2017-05-10 乐视控股(北京)有限公司 Data transmission method, system and electronic equipment
CN207198833U (en) * 2017-08-17 2018-04-06 绵阳兴顺通信工程有限公司 Intelligence printer based on radio communication

Also Published As

Publication number Publication date
CN109918031A (en) 2019-06-21

Similar Documents

Publication Publication Date Title
US11240159B2 (en) Service link selection control method and device
CN103534984A (en) Port setting method, apparatus and computer program product for routing
CN107566453A (en) Service discovery method, device, computer readable storage medium and computer equipment
CN104253741A (en) Information sending method and device and system thereof
CN108712320B (en) Message pushing method and device
CN105897888A (en) Client connection method and system
CN105207975A (en) Data transmission method and data transmission system for USB image equipment under VDI architecture
CN112817602A (en) JSON format data sending and receiving method, device and medium
CN104202432B (en) Remote web management system and management method
CN102891851A (en) Access control method, equipment and system of virtual desktop
CN112073215B (en) Method for realizing application and service controller
CN115913597A (en) Method and device for determining lost host
CN109918031B (en) Data transmission method and system, and computer storage medium
CN111143017B (en) Cloud operation system interaction processing method, client and cloud operation system
CN111225038B (en) Server access method and device
CN111629020A (en) Remote input method, device, PC (personal computer) terminal, android device and system
CN103795856A (en) Information processing method and electronic device
CN105025042B (en) A kind of method and system of determining data information, proxy server
CN101355483A (en) Method and equipment for transmitting data packet by multiple network ports
CN105144073A (en) Removable storage device identity and configuration information
CN102891888B (en) Data access method and related equipment and system
CN111163123A (en) Service request processing method and device
CN108418698B (en) Router management method and device
CN102156646B (en) Feature library upgrading method and device thereof
CN111625372A (en) Text pasting method, device, PC (personal computer) terminal, mobile terminal and system

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