CN115858201A - System, method, device and medium for peripheral middleware based on Web - Google Patents

System, method, device and medium for peripheral middleware based on Web Download PDF

Info

Publication number
CN115858201A
CN115858201A CN202211583943.2A CN202211583943A CN115858201A CN 115858201 A CN115858201 A CN 115858201A CN 202211583943 A CN202211583943 A CN 202211583943A CN 115858201 A CN115858201 A CN 115858201A
Authority
CN
China
Prior art keywords
module
data content
unidentified
data
peripheral
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211583943.2A
Other languages
Chinese (zh)
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.)
Shenzhen Rongsheng Information Technology Co ltd
Original Assignee
Shenzhen Rongsheng Information 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 Rongsheng Information Technology Co ltd filed Critical Shenzhen Rongsheng Information Technology Co ltd
Priority to CN202211583943.2A priority Critical patent/CN115858201A/en
Publication of CN115858201A publication Critical patent/CN115858201A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to a system, a method, equipment and a medium of peripheral middleware based on Web, comprising the following steps: the system comprises a Web service module, a data control conversion module and a peripheral module, wherein the Web service module is connected with the data control conversion module; the Web service module is used for receiving the unidentified data content and sending the unidentified data content to the data control conversion module; the data control conversion module is used for receiving the unidentified data content, converting the unidentified data content into execution data content correspondingly identified by the peripheral module, and sending the execution data content to the peripheral module; and the peripheral module is used for controlling the external equipment to complete the corresponding function of the execution data content according to the execution data content. The problem that a user cannot use peripheral equipment when no plug-in or driver is available is solved.

Description

System, method, device and medium for peripheral middleware based on Web
Technical Field
The present invention relates to the field of computers, and in particular, to a system, method, device, and medium for Web-based peripheral middleware.
Background
Currently, when the peripheral device executes a corresponding function, the peripheral device needs to be supported by a browser or a plug-in of a client, and a local driver needs to be provided, so that once the plug-in, the driver and the like are plugged in, a user cannot use the peripheral device.
Disclosure of Invention
The invention provides a system, a method, equipment and a medium of peripheral middleware based on Web, aiming at solving the problem that a user cannot use peripheral equipment when no plug-in or driver is available.
In a first aspect, to solve the above technical problem, the present invention provides a system for a Web-based peripheral middleware, including:
the system comprises a Web service module, a data control conversion module and a peripheral module, wherein the Web service module is connected with the data control conversion module;
the Web service module is used for receiving the unidentified data content and sending the unidentified data content to the data control conversion module;
the data control conversion module is used for receiving the unidentified data content, converting the unidentified data content into execution data content which can be identified by the peripheral module, and sending the execution data content to the peripheral module;
and the peripheral module is used for controlling the external equipment to complete the corresponding function of the execution data content according to the execution data content.
The system of the peripheral middleware based on the Web has the advantages that: when a user needs to use the peripheral equipment, the Web service module receives unidentified data content and then transmits the unidentified data content to the data control conversion module, the data control conversion module converts the unidentified data content into identifiable execution data content, at the moment, the peripheral equipment can execute corresponding functions according to the execution data content, therefore, the user does not need to install a plug-in or a driver, the unidentified data content which cannot be identified by the peripheral equipment can be converted into the execution data content through the data control conversion module, and the problem that the user cannot use the peripheral equipment when the user does not have the plug-in or the driver is solved.
On the basis of the technical scheme, the system of the peripheral middleware based on the Web can be further improved as follows.
Further, when the unidentified data content comprises unidentified printing data and first control information, the peripheral module is a printer, the unidentified printing data comprises printing content, paper size, scaling, offset, printing direction, printing number and printer IP, and the first control information is content for controlling the printer to print the unidentified printing data;
when the unidentified data content includes unidentified print data and first control information, the data control conversion module is specifically configured to:
converting the printing content into a picture format according to the scaling, the paper size and the offset;
the number of prints, printer IP, first control information, and print content converted into a picture format are taken as execution data content.
The beneficial effect of adopting the further scheme is that: when the peripheral module is a printer, the data control conversion module converts the printing content into the picture format according to the scaling, the paper size and the offset, and the printer can directly print the picture, so that the printing content in the picture format can be printed out through the printer without additionally installing a driver or a plug-in.
The system further comprises a print job communication module, wherein the print job communication module is respectively connected with the data control conversion module and the peripheral module;
and the printing operation communication module is used for receiving the execution data content and sending the execution data content to the printer.
The beneficial effect of adopting the further scheme is that: and the data interaction between the data control conversion module and the peripheral module is realized through the print job communication module.
Further, when the unidentified data content comprises an unidentified communication protocol, the peripheral module is an external serial port device;
when the unidentified data content includes an unidentified communication protocol, the data control conversion module is specifically configured to:
converting the communication protocol into second control information, wherein the second control information is used for controlling external serial port equipment to execute a function corresponding to the unidentified communication protocol;
the second control information is taken as the execution data content.
The beneficial effect of adopting the further scheme is that: when the peripheral module is an external serial port device, the data control conversion module converts the communication protocol into second control information, so that the external serial port device can execute corresponding functions according to the second control information without additionally installing a driver or a plug-in.
The system further comprises a serial operation communication module which is respectively connected with the data control conversion module and the peripheral module;
and the serial operation communication module is used for receiving the execution data content and sending the execution data content to the external serial equipment.
The beneficial effect of adopting the further scheme is that: and the data interaction between the data control conversion module and the peripheral module is realized through the serial port operation communication module.
Further, the serial port operation communication module is further configured to return data of the external serial port device to the data control conversion module, where the return data is result data obtained by the external serial port device executing a function corresponding to the execution data content;
and the data control conversion module is also used for transmitting the return data to the Web service module.
The beneficial effect of adopting the further scheme is that: through the serial port operation communication module, data interaction between the data control conversion module and the peripheral module is realized, so that the Web service module can receive return data returned by the external serial port equipment.
In a second aspect, the present invention provides a method for Web-based peripheral middleware, comprising:
receiving unidentified data content;
converting the unidentified data content into execution data content which can be identified by the peripheral module;
and controlling the external equipment to complete the corresponding function of the execution data content according to the execution data content.
In a third aspect, the present invention also provides an electronic device, including a memory, a processor, and a program stored in the memory and running on the processor, where the processor executes the program to implement the steps of the above-mentioned system for Web-based peripheral middleware.
In a fourth aspect, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions that, when executed on a terminal device, cause the terminal device to execute the steps of the system for Web-based peripheral middleware as described above
Drawings
In order to more clearly describe the embodiments of the present invention or the technical solutions in the prior art, the present invention is further described below with reference to the drawings and the embodiments.
FIG. 1 is a schematic structural diagram of a system for Web-based peripheral middleware according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of another embodiment of a system for Web-based peripheral middleware according to an embodiment of the present invention
Fig. 3 is a flowchart illustrating a method for Web-based peripheral middleware according to an embodiment of the present invention.
Detailed Description
The following examples are further illustrative and supplementary to the present invention and do not limit the present invention in any way.
A system, method, device and medium for Web-based peripheral middleware according to embodiments of the present invention are described below with reference to the accompanying drawings.
As shown in fig. 1, a system for Web-based peripheral middleware according to an embodiment of the present invention includes:
the system comprises a Web service module, a data control conversion module and a peripheral module, wherein the Web service module is connected with the data control conversion module;
the Web service module is used for receiving the unidentified data content and sending the unidentified data content to the data control conversion module;
the data control conversion module is used for receiving the unidentified data content, converting the unidentified data content into execution data content which can be identified by the peripheral module, and sending the execution data content to the peripheral module; the data recognizable by the peripheral module specifically refers to data in a set format or a set type.
And the peripheral module is used for controlling the external equipment to complete the corresponding function of the execution data content according to the execution data content.
Optionally, the unidentified data content received by the Web service module may come from a client, where the client may be a PC, a PDA, or a mobile phone, and the client sends the unidentified data content through a local area network.
Optionally, the peripheral module is a peripheral device, including but not limited to printer and external serial devices, external serial devices includes but not limited to weighing machine, therefore, the Web service module is provided with four interfaces, be printer connection interface, print interface, serial connection interface and serial access interface respectively, wherein, printer connection interface is used for being connected with the printer, and acquire the IP address of every printer, serial connection interface is used for being connected with external serial devices, acquire the IP of every external serial devices, print interface and serial access interface are used for being connected with the client, be used for receiving unidentified data content.
Optionally, when the unidentified data content includes unidentified print data and first control information, the peripheral module is a printer, the unidentified print data includes print content, paper size, scaling, offset, print direction, number of prints and printer IP, and the first control information is content for controlling the printer to print the unidentified print data;
when the unidentified data content includes unidentified print data and first control information, the data control conversion module is specifically configured to:
converting the printing content into a picture format according to the scaling, the paper size and the offset;
the number of prints, printer IP, first control information, and print content converted into a picture format are taken as execution data content.
Optionally, the BASE64 code or URL address is data that cannot be directly identified by the printer, but the printer can directly identify the file in the picture format, so that the unidentified print data is print content, paper size, scaling, offset, print direction, number of copies, and the BASE64 code or URL address of the printer IP, the Web service module transmits the print content, the paper size, scaling, offset, print direction, number of copies, and the BASE64 code or URL address of the printer IP to the data control conversion module through the print interface, the data control conversion module has built-in analysis software, the content of the BASE64 code or URL address can be analyzed, an analysis result is obtained, the unidentified print data is converted into execution data content according to the analysis result, and the analysis software is the prior art, and therefore details are not repeated
Optionally, as shown in fig. 2, the system further includes:
the printing operation communication module is respectively connected with the data control conversion module and the peripheral module;
and the printing operation communication module is used for receiving the execution data content and sending the execution data content to the printer.
Optionally, the printer IP is not identified in the print data, and the execution data content is sent to the printer corresponding to the printer IP for printing through the print job communication module according to the printer IP.
Optionally, when the unidentified data content includes an unidentified communication protocol, the peripheral module is an external serial device;
when the unidentified data content includes an unidentified communication protocol, the data control conversion module is specifically configured to:
converting the communication protocol into second control information, wherein the second control information is used for controlling external serial port equipment to execute a function corresponding to the unidentified communication protocol;
the second control information is taken as the execution data content.
Optionally, in this embodiment, the external serial port device is described by taking a weighing machine as an example.
Optionally, because the external serial device cannot directly identify the communication protocol, and only can identify the control command, when the unidentified data content includes an unidentified communication protocol, the Web service module transmits the communication protocol to the data control conversion module through the serial access interface, and the data control conversion module is internally provided with protocol analysis software, for example, if the communication protocol is AB-W-202211101512252, it indicates that the weighing machine is controlled to obtain the weight of the weighed object, and then the AB-W-202211101512252 is analyzed to be the second control information "GetWeight" through the protocol analysis software, then the weighing machine is controlled to obtain the weight of the weighed object according to the second control information, and the protocol analysis software is the prior art, and is not described in detail.
Optionally, as shown in fig. 2, the system further includes:
the serial operation communication module is respectively connected with the data control conversion module and the peripheral module;
and the serial operation communication module is used for receiving the execution data content and sending the execution data content to the external serial equipment.
Optionally, the serial port operation communication module is further configured to return data of the external serial port device to the data control conversion module, where the return data is result data obtained by the external serial port device executing a function corresponding to the execution data content;
and the data control conversion module is also used for transmitting the return data to the Web service module.
Optionally, for example, when the external serial device is a weighing machine, when the weighing machine obtains that the weight of the weighing object is 10KG, the returned data 10KG is transmitted back to the data control conversion module through the serial operation communication module, and then transmitted to the Web service module by the data control conversion module, and finally transmitted to the client through the Web service module, and at this time, the user of the client can know the weight of the weighing object.
As shown in fig. 3, the method for Web-based peripheral middleware according to an embodiment of the present invention is applied to a terminal device, where the terminal device is connected to a client and a peripheral module, the terminal module includes a Web service module, a data control conversion module, a print job communication module, and a serial job communication module, and the terminal device is described as an execution main body of this embodiment, where the terminal device may be a computer, a mobile phone, or the like.
Optionally, a method for Web-based peripheral middleware according to an embodiment of the present invention includes the following steps:
s1, receiving unidentified data content;
s2, converting the unidentified data content into execution data content which can be identified by the peripheral module;
and S3, controlling the external equipment to complete the corresponding function of the execution data content according to the execution data content.
Optionally, when the unidentified data content includes unidentified print data and first control information, and the peripheral module is a printer, the unidentified print data includes print content, paper size, scaling, offset, print direction, print copy count and printer IP, and the first control information is a content for controlling the printer to print the unidentified print data, and then converts the unidentified data content into an execution data content recognizable by the peripheral module, including:
s12, converting the printing content into a picture format according to the scaling, the paper size and the offset;
s13, the number of prints, the printer IP, the first control information, and the print content converted into the picture format are taken as the execution data content.
Optionally, the controlling, according to the execution data content, the external device to complete the function corresponding to the execution data content further includes:
and receiving the execution data content, sending the execution data content to the printer, and controlling the external device to complete the function corresponding to the execution data content according to the execution data content.
Optionally, when the unidentified data content includes an unidentified communication protocol and the peripheral module is an external serial device, converting the unidentified data content into an execution data content that can be identified by the peripheral module, including:
s21, converting the communication protocol into second control information, wherein the second control information is used for controlling external serial port equipment to execute a function corresponding to the unidentified communication protocol;
and S22, taking the second control information as the execution data content.
Optionally, controlling the external device to complete the function corresponding to the execution data content according to the execution data content, further includes:
the device is used for receiving the execution data content, sending the execution data content to the external serial port device, and controlling the external device to complete the function corresponding to the execution data content according to the execution data content.
Optionally, controlling the external device to complete the function corresponding to the execution data content according to the execution data content, further includes:
and receiving the return data of the external serial port equipment, and transmitting the return data to the client.
The electronic equipment comprises a memory, a processor and a program which is stored on the memory and runs on the processor, wherein when the processor executes the program, part or all of the steps of the method for the Web-based peripheral middleware are realized.
In the above embodiments, the parameters and steps in the electronic device according to the present invention may refer to the parameters and steps in the above embodiment of the method for Web-based peripheral middleware, which is not described herein again
As will be appreciated by one skilled in the art, the present invention may be embodied as a system, method or computer program product. Accordingly, the present disclosure may be embodied in the form of: may be embodied entirely in hardware, entirely in software (including firmware, resident software, micro-code, etc.) or in a combination of hardware and software, and may be referred to herein generally as a "circuit," module "or" system. Furthermore, in some embodiments, the invention may also be embodied in the form of a computer program product in one or more computer-readable media having computer-readable program code embodied in the medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (9)

1. A Web-based system for peripheral middleware, the system comprising:
the system comprises a Web service module, a data control conversion module and a peripheral module, wherein the Web service module is connected with the data control conversion module, and the data control conversion module is connected with the peripheral module;
the Web service module is used for receiving unidentified data contents and sending the unidentified data contents to the data control conversion module;
the data control conversion module is used for receiving the unidentified data content, converting the unidentified data content into execution data content correspondingly identified by the peripheral module, and sending the execution data content to the peripheral module;
and the peripheral module is used for controlling an external device to complete the function corresponding to the execution data content according to the execution data content.
2. The system according to claim 1, wherein when the unidentified data content comprises unidentified print data and first control information, the peripheral module is a printer, the unidentified print data comprises print content, paper size, scaling, offset, printing direction, number of prints and printer IP, and the first control information is content for controlling the printer to print the unidentified print data;
when the unidentified data content includes unidentified print data and first control information, the data control conversion module is specifically configured to:
converting the print content into a picture format according to the scaling, the paper size and the offset;
the number of prints, the printer IP the first control information and the print content converted into the picture format are used as execution data content.
3. The system of claim 2, further comprising a print job communication module, said print job communication module being connected to said data control conversion module and peripheral module, respectively;
the print job communication module is used for receiving the execution data content and sending the execution data content to the printer.
4. The system of claim 1, wherein the peripheral module is an external serial device when the unidentified data content includes an unidentified communication protocol;
when the unidentified data content includes an unidentified communication protocol, the data control conversion module is specifically configured to:
converting the communication protocol into second control information, wherein the second control information is used for controlling the external serial port equipment to execute the function corresponding to the unidentified communication protocol;
the second control information is taken as the execution data content.
5. The system of claim 4, further comprising a serial operation communication module, wherein the serial operation communication module is respectively connected with the data control conversion module and the peripheral module;
the serial operation communication module is used for receiving the execution data content and sending the execution data content to the external serial device.
6. The system according to claim 5, wherein the serial job communication module is further configured to return data of the external serial device to the data control conversion module, where the return data is result data obtained by the external serial device executing a function corresponding to the execution data content;
and the data control conversion module is also used for transmitting the return data to the Web service module.
7. A method for Web-based peripheral middleware is characterized by comprising the following steps:
receiving unidentified data content;
converting the unidentified data content into execution data content correspondingly identified by the peripheral module;
and controlling an external device to complete the function corresponding to the execution data content according to the execution data content.
8. An electronic device comprising a memory, a processor and a program stored on the memory and running on the processor, wherein the steps of a method of Web-based peripheral middleware of claim 7 are implemented when the program is executed by the processor.
9. A computer-readable storage medium having stored therein instructions which, when run on a terminal device, cause the terminal device to perform the steps of a method of Web-based peripheral middleware as claimed in claim 7.
CN202211583943.2A 2022-12-09 2022-12-09 System, method, device and medium for peripheral middleware based on Web Pending CN115858201A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211583943.2A CN115858201A (en) 2022-12-09 2022-12-09 System, method, device and medium for peripheral middleware based on Web

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211583943.2A CN115858201A (en) 2022-12-09 2022-12-09 System, method, device and medium for peripheral middleware based on Web

Publications (1)

Publication Number Publication Date
CN115858201A true CN115858201A (en) 2023-03-28

Family

ID=85671826

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211583943.2A Pending CN115858201A (en) 2022-12-09 2022-12-09 System, method, device and medium for peripheral middleware based on Web

Country Status (1)

Country Link
CN (1) CN115858201A (en)

Similar Documents

Publication Publication Date Title
US6636891B1 (en) Methods and apparatus for controlling an input or output device over the internet
US8947701B2 (en) Server apparatus, terminal apparatus, and printing system and data conversion method thereof
EP2498177B1 (en) Printer
US20030137693A1 (en) Service providing system
US20030090694A1 (en) Just-in-time printer discovery and driver installation system and method
US8797592B2 (en) System, method, and computer-readable recording medium for executing printing with image forming apparatus
WO2011100148A1 (en) Framework that supports driverless printing
CN108762694B (en) Print drive processing method and device in Linux operating system
JP2003150466A (en) Management information sending device, apparatus management device and apparatus management system
JP2008186160A (en) Document display apparatus and program
US20030055866A1 (en) Methods and apparatus for remote execution of an application over the internet
US8346852B2 (en) Apparatus and method for updating displayed web page
US8380888B2 (en) System and method for determining printer health
JP4261203B2 (en) Information providing apparatus, information providing method, information providing system, and information providing program
US7876464B2 (en) Combined interface for specifying separate characteristics for multiple copies of an electronic document
JP4045800B2 (en) Printing system and method
CN115858201A (en) System, method, device and medium for peripheral middleware based on Web
US8271621B2 (en) Metadata communication system
EP1821193B1 (en) Adaptive configuration of imaging devices
EP2122479B1 (en) Enabling routing of data on a network based on a portion of data accessed from a non-network enabled device
JP2013156807A (en) Network-based event notification system
JP4035330B2 (en) Service providing system, service providing method, service providing apparatus, control method thereof, control program, and computer-readable memory
US11853630B1 (en) Printing device connectivity manager for a digital front end
CN114579065A (en) Printer redirection method and system of cloud desktop
JP2004206456A (en) Information providing device, information providing method, information providing system, and information providing program

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