CN113452727A - Equipment cloudization service processing method and device - Google Patents

Equipment cloudization service processing method and device Download PDF

Info

Publication number
CN113452727A
CN113452727A CN202010213304.1A CN202010213304A CN113452727A CN 113452727 A CN113452727 A CN 113452727A CN 202010213304 A CN202010213304 A CN 202010213304A CN 113452727 A CN113452727 A CN 113452727A
Authority
CN
China
Prior art keywords
service
file
equipment
information
container engine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010213304.1A
Other languages
Chinese (zh)
Other versions
CN113452727B (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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202010213304.1A priority Critical patent/CN113452727B/en
Priority claimed from CN202010213304.1A external-priority patent/CN113452727B/en
Publication of CN113452727A publication Critical patent/CN113452727A/en
Application granted granted Critical
Publication of CN113452727B publication Critical patent/CN113452727B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a service processing method and device for equipment clouding, and relates to the technical field of computers. One embodiment of the method comprises: receiving a service request of a user; generating a service file according to the service request, and carrying out cloud storage on the service file; the service file is generated in a container engine preset on a cloud server; and determining target equipment according to the service request, and sending the service file to the target equipment so that the target equipment can execute service by using the service file. The cloud configuration method and the cloud configuration system can cloud the equipment, configure the container engine according to the equipment model cloud, and are used for processing the service request of the equipment with the corresponding model, generating the file required by the equipment to execute the service, and after the target equipment is determined, the file can be sent to the target equipment, so that the target equipment can immediately execute the corresponding service, the complicated manual configuration of the use environment and frequent manual updating for each equipment are not needed, and the user experience is improved.

Description

Equipment cloudization service processing method and device
Technical Field
The invention relates to the technical field of computers, in particular to a service processing method and device for equipment clouding.
Background
In response to the wide demand for office equipment in everyday life and office environments, improvements in the manner of use of office equipment are needed.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
1) for each unused device, even if the device is of the same model, the use environment or the driver of the device needs to be configured and installed locally manually, and the user experience is poor;
2) the conditions of the use environment or the driver of all the devices cannot be managed uniformly, the use environment or the driver is often checked to be available when the devices are used, and if the devices are not available, the devices need to be updated, so that the time of a user is wasted, and the user experience is not good.
Disclosure of Invention
In view of this, embodiments of the present invention provide a service processing method and apparatus for device clouding, which are capable of clouding a device, configuring a container engine according to the device model, shunting a user request to the corresponding container engine to generate a file required by the device to execute a service, and storing the file in a cloud; after the target equipment is determined, the file can be sent to the target equipment from the cloud, so that the target equipment can immediately execute corresponding services; the use environment does not need to be configured for each device manually and frequently updated manually, and the user experience is improved.
In order to achieve the above object, according to an aspect of the embodiments of the present invention, there is provided a service processing method for device clouding, including:
receiving a service request of a user;
generating a service file according to the service request, and carrying out cloud storage on the service file; the service file is generated in a container engine preset on a cloud server;
and determining target equipment according to the service request, and sending the service file to the target equipment so that the target equipment can execute service by using the service file.
Optionally, the service processing method for device clouding further includes:
registering equipment in advance according to the equipment model;
and configuring a container engine corresponding to each type of equipment.
The service request at least comprises: service content information, device model information.
Optionally, generating a service file according to the service request includes:
shunting the service request to a corresponding container engine according to the equipment model information;
generating a service file in the container engine according to the service content information;
wherein the service content information includes at least one of: text information, image information, sound information, link information.
Optionally, generating, in the container engine, a service file according to the service content information includes:
generating a service file according to the service content information by using a drive file preset in the container engine; the service file at least comprises instruction information for the target equipment to identify; the driver file includes: the driver and/or the download address link of the driver; alternatively, the first and second electrodes may be,
generating a service file according to the service content information; wherein, the service file at least contains service content and equipment interface information for the target equipment to identify.
Optionally, when the service content information includes link information, generating, in the container engine, a service file according to the service content information further includes:
and downloading according to the link information.
Optionally, the driver file is updated at a preset frequency.
Optionally, when the number of service requests related to the same device model received within a preset time period reaches a preset threshold, performing mirror image copy on a container engine corresponding to the device model.
Optionally, before determining the target device according to the service request, the method further includes:
confirming that the service request contains the target equipment information;
if not, waiting for a secondary request of the user; wherein, the secondary request includes the target device information.
According to another aspect of the embodiments of the present invention, there is provided a service processing apparatus for device clouding, including:
the receiving module is used for receiving a service request of a user;
the file generation module is used for generating a service file according to the service request and carrying out cloud storage on the service file; the service file is generated in a container engine preset on a cloud server;
and the sending module is used for determining target equipment according to the service request and sending the service file to the target equipment so that the target equipment can execute service by using the service file.
Optionally, the service processing apparatus of the device cloud is further configured to:
registering equipment in advance according to the equipment model;
and configuring a container engine corresponding to each type of equipment.
The service request at least comprises: service content information, device model information.
Optionally, the generating a file module generates a service file according to the service request, including:
shunting the service request to a corresponding container engine according to the equipment model information;
generating a service file in the container engine according to the service content information;
wherein the service content information includes at least one of: text information, image information, sound information, link information.
Optionally, the generating a file module generates a service file in the container engine according to the service content information, including:
generating a service file according to the service content information by using a drive file preset in the container engine; the service file at least comprises instruction information for the target equipment to identify; the driver file includes: the driver and/or the download address link of the driver; alternatively, the first and second electrodes may be,
generating a service file according to the service content information; wherein, the service file at least contains service content and equipment interface information for the target equipment to identify.
Optionally, when the service content information includes link information, the file generation module is further configured to generate, in the container engine, a service file according to the service content information, where the service file is further configured to:
and downloading according to the link information.
Optionally, the file generation module is further configured to update the driver file according to a preset frequency.
Optionally, when the number of service requests related to the same device model received within a preset time period reaches a preset threshold, the file generation module is further configured to perform mirror image replication on the container engine corresponding to the device model.
Optionally, before determining the target device according to the service request, the sending module is further configured to:
confirming that the service request contains the target equipment information;
if not, waiting for a secondary request of the user; wherein, the secondary request includes the target device information.
According to another aspect of the embodiments of the present invention, there is provided a service processing electronic device for device clouding, including:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the service processing method for device cloud provided by the invention.
According to still another aspect of the embodiments of the present invention, there is provided a computer-readable medium, on which a computer program is stored, which, when executed by a processor, implements the service processing method of device clouding provided by the present invention.
One embodiment of the above invention has the following advantages or benefits: the technical means that the user request is shunted to the corresponding container engine, the service file is generated in the container engine and exists on the cloud, the service file on the cloud is sent to the target equipment for the target equipment to execute the service after the target equipment is determined, and the driving program in the container engine can be automatically updated at regular time is adopted, so the technical problems that the use environment needs to be configured manually in a complicated mode and the service is frequently updated manually in the prior art are solved, the user can select the equipment, and the technical effect that the user can avoid waiting for updating when using the equipment, so that the user experience is improved is achieved.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
fig. 1 is a schematic diagram of a main flow of a service processing method for device clouding according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a framework of device clouding in a service processing method of device clouding according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating main steps of a service processing method for device clouding according to an embodiment of the present invention;
fig. 4 is a schematic diagram of main steps of updating a driver in a service processing method for device clouding according to an embodiment of the present invention;
fig. 5 is a schematic diagram of main modules of a device-clouded service processing apparatus according to an embodiment of the present invention;
FIG. 6 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 7 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic diagram of a main flow of a service processing method for device clouding according to an embodiment of the present invention, as shown in fig. 1, including:
step S101, receiving a service request of a user;
step S102, generating a service file according to the service request, and carrying out cloud storage on the service file; the service file is generated in a container engine preset on a cloud server;
step S103, determining target equipment according to the service request, and sending the service file to the target equipment so that the target equipment can execute service by using the service file.
The service may be: printing service, projection service, scanning service, switching service of a regulation and control machine and the like;
the equipment can be machine equipment capable of completing corresponding business; such as: a printer capable of completing printing service, a projector capable of completing projection service, an air conditioner remote controller capable of regulating and controlling the on-off of an air conditioner, and the like;
the service request can be a request instruction sent by a user and wishing to execute a service by using corresponding equipment; such as: the user initiates a printing request, which can be a request instruction sent by the user that the user wants to print a document by using a specified printer or a specified model of printer; the user initiates a projection request, which may be a request instruction sent by the user wishing to use a specified projection device or a specified model of projection device to complete a projection requirement; the service request may include corresponding service content.
The container engine can be arranged on a cloud server, and container tools such as docker, lxd/lxc and the like can be used as the container engine; the use environment or the driver of the equipment can be configured in the container engine;
since the device cannot directly identify the request sent by the user, a service file which can be identified and used by the device needs to be generated in the container engine according to the request sent by the user; a container engine can be set for each type of equipment, after the equipment type information is identified according to the service request, the service request can be sent to the corresponding container engine according to the equipment type information, and the container engine processes the service request to generate a corresponding service file; and then, the service file is stored in a cloud storage server, so that the data storage is safer.
According to the cloud storage method and the cloud storage system, the equipment can be clouded, the container engine is configured according to the equipment model, the user request is distributed to the corresponding container engine to generate the file required by the equipment to execute the business, and the file is stored in a cloud mode; after the target device is determined, the file can be sent to the target device from the cloud, so that the target device can immediately execute corresponding services. Because the service request of one type of equipment can be processed by the same container engine, the equipment corresponding to the container engine can be used by configuring the container engine once, and the technical problems that the service environment needs to be configured manually and frequently updated manually in the prior art are solved.
In some embodiments, the service processing method for device clouding further includes:
registering equipment in advance according to the equipment model;
and configuring a container engine corresponding to each type of equipment.
The service request at least comprises: service content information, device model information.
The model of the equipment to be used can be determined in advance, the model of the equipment is registered on the cloud, and a container engine corresponding to the model of the equipment is configured for each model of the equipment;
similarly, when a new device is added, before the new device is put into use, the model of the new device may be registered on the cloud, and a container engine corresponding to the new device may be configured for the new device; one container engine can simultaneously process a plurality of service requests about the same type of equipment;
the service request may include information such as service content information and device model information; such as: the printing request can contain the model of the printer that the user wants to use, the content information of the document that the user wants to print, and the like; the projection request may include a model of the projection apparatus that the user wants to use, screen information that the user wants to present, and the like.
In some embodiments, generating a service file according to the service request includes:
shunting the service request to a corresponding container engine according to the equipment model information;
generating a service file in the container engine according to the service content information;
wherein the service content information includes at least one of: text information, image information, sound information, link information.
The agent machine can be used for shunting the service request, so that the information flow is more stable, all indexes of the system are stable, and the possibility of system collapse is reduced;
the service file may be information directly recognized and used by the device, and may contain at least instruction information capable of being recognized by the device; such as: for a printing service, the corresponding service file may be a prn file, which may contain content, the number of pages to be printed, a printing style, and the like that a user wants to print; for the projection service, the corresponding service file may contain projection picture information, device interface information, and the like.
Fig. 2 is a schematic diagram of a device clouding framework in a device clouding service processing method according to an embodiment of the present invention, and as shown in fig. 2, the method includes:
the proxy 201, the gateway layer 202, the container engine 203 and the device cloud framework 204; wherein the device clouding framework 204 can be composed of at least the gateway layer 202 and the container engine 203 together;
after receiving the service request of the user, the agent 201 shunts the service request at the gateway layer 202, sends the service request to the corresponding container engine 203 according to the device model information in the service request, and the container engine 203 performs the next processing on the service request.
In some embodiments, generating, in the container engine, a service file according to the service content information includes:
generating a service file according to the service content information by using a drive file preset in the container engine; the service file at least comprises instruction information for the target equipment to identify; the driver file includes: the driver and/or the download address link of the driver; alternatively, the first and second electrodes may be,
generating a service file according to the service content information; wherein, the service file at least contains service content and equipment interface information for the target equipment to identify.
In some embodiments, when the service content information includes link information, generating a service file in the container engine according to the service content information further includes:
and downloading according to the link information.
As described in the above flow, there are two ways for generating the service file: one requiring generation using a driver, such as a printing device; the other does not need to be generated by a driver, such as a projection device.
For the service content with link information, downloading can be performed according to the link information, such as downloading pictures, downloading documents, and the like, and then the service file is generated according to the downloaded information.
Fig. 3 is a schematic diagram of main steps of a service processing method for device clouding according to an embodiment of the present invention, as shown in fig. 3, including:
step S301, a user initiates a request;
step S302, the agent receives a request initiated by a user and acquires equipment information from the request;
step S303, the agent machine initiates a file generating task according to a request initiated by a user, wherein the file generating task is used for generating a service file in a container engine;
step S304, shunting the generated file task according to the equipment information acquired in the step S302, and sending the generated file task to a container engine corresponding to the equipment information;
step S305, generating a business file in a container engine according to the file generating task;
step S306, storing the service file generated in the step S305 on the cloud;
step S307, the agent machine acquires a service file from the cloud;
step S308, the agent machine sends the service file to the equipment, and the equipment receives the service file and executes the service.
In some embodiments, the driver file is updated at a preset frequency.
The preset frequency can be once a day or once a week and can be regulated and controlled as required;
the agent machine can initiate a request for updating or installing the driver to the container engine, the container engine can provide a preset updating address of the driver which is suitable for the equipment to the agent machine, and the agent machine can download the installation package according to the updating address to perform the installation updating of the driver.
Fig. 4 is a schematic diagram of main steps of updating a driver in a service processing method for device clouding according to an embodiment of the present invention, as shown in fig. 4, including:
step S401, the agent machine initiates a drive updating task; the drive updating task comprises equipment model information needing to be updated;
step S402, according to the equipment model information, shunting the drive updating task at a gateway layer to a corresponding container engine;
step S403, acquiring a preset download address in the container engine;
and step S404, after the agent machine acquires the download address, the agent machine carries out installation and update of the driver according to the update program provided in the download address.
In some embodiments, when the number of service requests received within a preset time period for the same device model reaches a preset threshold, a container engine corresponding to the device model is mirror-copied.
The preset time period and the preset threshold value can be regulated and controlled as required;
the following are exemplified: the preset time period is 10 seconds, and the preset threshold value is set to be 1000; existing type A printer, container engine B corresponding to type A printer0(ii) a If for a model a printer, 1200 print requests are sent to the container engine B at the same time within 10 seconds0Then can be based on container engine B0Mirror copy is carried out, and a plurality of same container engines can be copied for processing the 1200 requests; for example, container engine B may be replicated1And container engine B2Thus, 1200 requests can be processed by the three same container engines, and only 400 requests can be processed by one container engine, so that the processing pressure is reduced, and the stability of the system is improved;
when the number of service requests in a preset time period is less than a preset threshold value, the previously established mirror image container engine B can be automatically eliminated1And container engine B2
Capacity expansion and capacity reduction are carried out as required, so that the method disclosed by the invention is higher in adaptability.
In some embodiments, before determining the target device according to the service request, the method further includes:
confirming that the service request contains the target equipment information;
if not, waiting for a secondary request of the user; wherein, the secondary request includes the target device information.
The user can designate the target equipment in the service request initiated for the first time, or the user does not designate the target equipment and only designates the equipment model;
when the user does not specify the target equipment but only specifies the equipment model in the service request initiated for the first time, the user can specify the target equipment information in the sent secondary request, and then the service is executed by using the target equipment;
the following are exemplified:
for the case that the user specifies the target device in the service request initiated for the first time: the user has explicitly intended equipment to use when initiating a service request; when a service request is initiated for the first time, target equipment information can be represented by inputting identification (such as specific password information, two-dimensional code information and the like) on the equipment body;
for the case that the user does not specify the target device in the service request initiated for the first time: when a user initiates a service request, the user can only determine the model of the equipment which the user wants to use, and does not specify which equipment is specifically used; when a service request is initiated for the first time, the equipment model information can be determined in a mode of selecting the equipment model in a pull menu; when the user determines the target device, the target device information can be represented by inputting a mark (such as specific password information, two-dimensional code information and the like) on the device body; at this time, the target device may acquire the service file from the cloud storage server to execute the service.
Fig. 5 is a schematic diagram of main modules of a device-clouded service processing apparatus according to an embodiment of the present invention, and as shown in fig. 5, the device-clouded service processing apparatus 500 includes:
a receiving module 501, configured to receive a service request of a user;
a file generation module 502, configured to generate a service file according to the service request, and perform cloud storage on the service file; the service file is generated in a container engine preset on a cloud server;
a sending module 503, configured to determine a target device according to the service request, and send the service file to the target device, so that the target device executes a service by using the service file.
The service may be: printing service, projection service, scanning service, switching service of a regulation and control machine and the like;
the equipment can be machine equipment capable of completing corresponding business; such as: a printer capable of completing printing service, a projector capable of completing projection service, an air conditioner remote controller capable of regulating and controlling the on-off of an air conditioner, and the like;
the service request can be a request instruction sent by a user and wishing to execute a service by using corresponding equipment; such as: the user initiates a printing request, which can be a request instruction sent by the user that the user wants to print a document by using a specified printer or a specified model of printer; the user initiates a projection request, which may be a request instruction sent by the user that the user wants to use a specified projection device or a specified model of projection device to complete a projection requirement; the service request may include corresponding service content.
The container engine can be arranged on a cloud server, and container tools such as docker, lxd/lxc and the like can be used as the container engine; the use environment or the driver of the equipment can be configured in the container engine;
since the device cannot directly identify the request sent by the user, a service file which can be identified and used by the device needs to be generated in the container engine according to the request sent by the user; a container engine can be set for each type of equipment, after the equipment type information is identified according to the service request, the service request can be sent to the corresponding container engine according to the equipment type information, and the container engine processes the service request to generate a corresponding service file; and then, the service file is stored in a cloud storage server, so that the data storage is safer.
According to the cloud storage method and the cloud storage system, the equipment can be clouded, the container engine is configured according to the equipment model, the user request is distributed to the corresponding container engine to generate the file required by the equipment to execute the business, and the file is stored in a cloud mode; after the target device is determined, the file can be sent to the target device from the cloud, so that the target device can immediately execute corresponding services. Because the service request of one type of equipment can be processed by the same container engine, the equipment corresponding to the container engine can be used by configuring the container engine once, and the technical problems that the service environment needs to be configured manually and frequently updated manually in the prior art are solved.
In some embodiments, the device-clouded traffic processing apparatus is further configured to:
registering equipment in advance according to the equipment model;
configuring a container engine corresponding to each type of equipment;
the service request at least comprises: service content information, device model information.
In some embodiments, the receiving module 501, before receiving the service request of the user, further includes: and confirming that the equipment model in the service request is registered.
The model of the equipment to be used can be determined in advance, the model of the equipment is registered on the cloud, and a container engine corresponding to the model of the equipment is configured for each model of the equipment;
similarly, when a new device is added, before the new device is put into use, the model of the new device may be registered on the cloud, and a container engine corresponding to the new device may be configured for the new device;
the service request may include information such as service content information and device model information; such as: the printing request can contain the model of the printer that the user wants to use, the content information of the document that the user wants to print, and the like; the projection request may include a model of the projection apparatus that the user wants to use, screen information that the user wants to present, and the like.
In some embodiments, the file generation module 502 generates a service file according to the service request, including:
shunting the service request to a corresponding container engine according to the equipment model information;
generating a service file in the container engine according to the service content information;
wherein the service content information includes at least one of: text information, image information, sound information, link information.
The agent machine can be used for shunting the service request, so that the information flow is more stable, all indexes of the system are stable, and the possibility of system collapse is reduced;
the service file may be information directly recognized and used by the device, and may contain at least instruction information capable of being recognized by the device; such as: for a printing service, the corresponding service file may be a prn file, which may contain content, the number of pages to be printed, a printing style, and the like that a user wants to print; for the projection service, the corresponding service file may contain projection picture information, device interface information, and the like.
In some embodiments, the file generation module 502 generates a service file according to the service content information in the container engine, including:
generating a service file according to the service content information by using a drive file preset in the container engine; the service file at least comprises instruction information for the target equipment to identify; the driver file includes: the driver and/or the download address link of the driver; alternatively, the first and second electrodes may be,
generating a service file according to the service content information; wherein, the service file at least contains service content and equipment interface information for the target equipment to identify.
In some embodiments, when the service content information includes link information, the generate file module 502 is further configured to, in the container engine, generate a service file according to the service content information:
and downloading according to the link information.
As described in the above flow, there are two ways for generating the service file: one requiring generation using a driver, such as a printing device; the other does not need to be generated by a driver, such as a projection device.
For the service content with link information, downloading can be performed according to the link information, such as downloading pictures, downloading documents, and the like, and then the service file is generated according to the downloaded information.
In some embodiments, the generate file module 502 is further configured to update the driver file at a preset frequency.
The preset frequency can be once a day or once a week and can be regulated and controlled as required;
the agent machine can initiate a request for updating or installing the driver to the container engine, the container engine can provide a preset updating address of the driver which is suitable for the equipment to the agent machine, and the agent machine can download the installation package according to the updating address to perform the installation updating of the driver.
In some embodiments, when the number of service requests received within a preset time period for the same device model reaches a preset threshold, the file generation module 502 is further configured to perform mirror copy on a container engine corresponding to the device model.
The preset time period and the preset threshold value can be regulated and controlled as required;
the following are exemplified: the preset time period is 10 seconds, and the preset threshold value is set to be 1000; existing type A printer, container engine B corresponding to type A printer0(ii) a If for a model a printer, 1200 print requests are sent to the container engine B at the same time within 10 seconds0Then can be based on container engine B0Mirror copy is carried out, and a plurality of same container engines can be copied for processing the 1200 requests; for example, container engine B may be replicated1And container engine B2Thus, 1200 requests can be processed by the three same container engines, and only 400 requests can be processed by one container engine, so that the processing pressure is reduced, and the stability of the system is improved;
when the number of service requests in a preset time period is less than a preset threshold value, the previously established mirror image container engine B can be automatically eliminated1And container engine B2
Capacity expansion and capacity reduction are carried out as required, so that the method disclosed by the invention is higher in adaptability.
In some embodiments, the sending module 503, before determining the target device according to the service request, is further configured to:
confirming that the service request contains the target equipment information;
if not, waiting for a secondary request of the user; wherein, the secondary request includes the target device information.
The user can designate the target equipment in the service request initiated for the first time, or the user does not designate the target equipment and only designates the equipment model;
when the user does not specify the target equipment but only specifies the equipment model in the service request initiated for the first time, the user can specify the target equipment information in the sent secondary request, and then the service is executed by using the target equipment;
the following are exemplified:
for the case that the user specifies the target device in the service request initiated for the first time: the user has explicitly intended equipment to use when initiating a service request; when a service request is initiated for the first time, target equipment information can be represented by inputting identification (such as specific password information, two-dimensional code information and the like) on the equipment body;
for the case that the user does not specify the target device in the service request initiated for the first time: when a user initiates a service request, the user can only determine the model of the equipment which the user wants to use, and does not specify which equipment is specifically used; when a service request is initiated for the first time, the equipment model information can be determined in a mode of selecting the equipment model in a pull menu; when the user determines the target device, the target device information can be represented by inputting a mark (such as specific password information, two-dimensional code information and the like) on the device body; at this time, the target device may acquire the service file from the cloud storage server to execute the service.
Fig. 6 shows an exemplary system architecture 600 of a device-clouded service processing method or a device-clouded service processing apparatus to which an embodiment of the present invention may be applied.
As shown in fig. 6, the system architecture 600 may include terminal devices 601, 602, 603, a network 604, and a server 605. The network 604 serves to provide a medium for communication links between the terminal devices 601, 602, 603 and the server 605. Network 604 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few.
A user may use the terminal devices 601, 602, 603 to interact with the server 605 via the network 604 to receive or send messages or the like. Various communication client applications, such as shopping applications, web browser applications, search applications, instant messaging tools, mailbox clients, social platform software, and the like, may be installed on the terminal devices 601, 602, and 603.
The terminal devices 601, 602, 603 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 605 may be a server that provides various services, such as a background management server that supports shopping websites browsed by users using the terminal devices 601, 602, and 603. The background management server can analyze and process the received data such as the product information inquiry request and feed back the processing result to the terminal equipment.
It should be noted that the service processing method for device cloud provided by the embodiment of the present invention is generally executed by the server 605, and accordingly, the service processing apparatus for device cloud is generally disposed in the server 605.
It should be understood that the number of terminal devices, networks, and servers in fig. 6 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 7, shown is a block diagram of a computer system 700 suitable for use with a terminal device implementing an embodiment of the present invention. The terminal device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 7, the computer system 700 includes a Central Processing Unit (CPU)701, which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data necessary for the operation of the system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
The following components are connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, and the like; an output section 707 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 708 including a hard disk and the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. A drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read out therefrom is mounted into the storage section 708 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 709, and/or installed from the removable medium 711. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 701.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. 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. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor comprises a receiving module, a file generating module and a sending module. The names of these units do not in some cases form a limitation on the module itself, and for example, the receiving module may also be described as a "module that sends a picture acquisition request to a connected server".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: step S101, receiving a service request of a user; step S102, generating a service file according to the service request, and carrying out cloud storage on the service file; the service file is generated in a container engine preset on a cloud server; step S103, determining target equipment according to the service request, and sending the service file to the target equipment so that the target equipment can execute service by using the service file.
According to the technical scheme of the embodiment of the invention, the technical means that the user request is shunted to the corresponding container engine, the service file is generated in the container engine and exists on the cloud, the service file on the cloud is sent to the target equipment for the target equipment to execute the service after the target equipment is determined, and the driving program in the container engine can be automatically updated at regular time is adopted, so that the technical problems that the service environment needs to be configured manually and the service environment needs to be configured manually in a complicated manner and the service is frequently updated manually in the prior art are solved, and the technical effect that the user can select the equipment and can avoid waiting for updating when using the equipment so as to improve the user experience is further achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (12)

1. A service processing method for equipment clouding is characterized by comprising the following steps:
receiving a service request of a user;
generating a service file according to the service request, and carrying out cloud storage on the service file; the service file is generated in a container engine preset on a cloud server;
and determining target equipment according to the service request, and sending the service file to the target equipment so that the target equipment can execute service by using the service file.
2. The method of claim 1, further comprising:
registering equipment in advance according to the equipment model;
configuring a container engine corresponding to each type of equipment;
the service request at least comprises: service content information, device model information.
3. The method of claim 2, wherein generating a service file according to the service request comprises:
shunting the service request to a corresponding container engine according to the equipment model information;
generating a service file in the container engine according to the service content information;
wherein the service content information includes at least one of: text information, image information, sound information, link information.
4. The method of claim 3, wherein generating a service file in the container engine according to the service content information comprises:
generating a service file according to the service content information by using a drive file preset in the container engine; the service file at least comprises instruction information for the target equipment to identify; the driver file includes: the driver and/or the download address link of the driver; alternatively, the first and second electrodes may be,
generating a service file according to the service content information; wherein, the service file at least contains service content and equipment interface information for the target equipment to identify.
5. The method of claim 4, wherein when the service content information includes link information, generating a service file in the container engine according to the service content information further comprises:
and downloading according to the link information.
6. The method of claim 4, further comprising:
and updating the drive file according to a preset frequency.
7. The method of claim 2, wherein when the number of service requests received within a preset time period for the same device model reaches a preset threshold, performing mirror copy on a container engine corresponding to the device model.
8. The method of claim 1, prior to determining a target device from the service request, further comprising:
confirming that the service request contains the target equipment information;
if not, waiting for a secondary request of the user; wherein, the secondary request includes the target device information.
9. A service processing apparatus for device clouding, comprising:
the receiving module is used for receiving a service request of a user;
the file generation module is used for generating a service file according to the service request and carrying out cloud storage on the service file; the service file is generated in a container engine preset on a cloud server;
and the sending module is used for determining target equipment according to the service request and sending the service file to the target equipment so that the target equipment can execute service by using the service file.
10. The apparatus of claim 9, further comprising a registration module;
the registration module is used for registering the equipment in advance according to the equipment model;
configuring a container engine corresponding to each type of equipment;
the service request at least comprises: service content information, device model information.
11. A device-clouded business processing electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
the one or more programs, when executed by the one or more processors, implement the method of any of claims 1-8.
12. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-8.
CN202010213304.1A 2020-03-24 Service processing method and device for equipment clouding and readable medium Active CN113452727B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010213304.1A CN113452727B (en) 2020-03-24 Service processing method and device for equipment clouding and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010213304.1A CN113452727B (en) 2020-03-24 Service processing method and device for equipment clouding and readable medium

Publications (2)

Publication Number Publication Date
CN113452727A true CN113452727A (en) 2021-09-28
CN113452727B CN113452727B (en) 2024-05-24

Family

ID=

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116362673A (en) * 2023-03-01 2023-06-30 中国船舶集团有限公司第七一九研究所 Ship equipment management method and system based on cloud computing

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104735134A (en) * 2015-02-15 2015-06-24 百度在线网络技术(北京)有限公司 Method and device for providing computing service
WO2018045541A1 (en) * 2016-09-08 2018-03-15 华为技术有限公司 Optimization method for container allocation and processing device
CN108039963A (en) * 2017-12-05 2018-05-15 腾讯科技(深圳)有限公司 A kind of container collocation method, device and storage medium
CN109040069A (en) * 2018-08-06 2018-12-18 江苏易安联网络技术有限公司 A kind of dissemination method, delivery system and the access method of cloud application program
US20190377656A1 (en) * 2018-06-11 2019-12-12 TmaxOS Co., Ltd. Integrated Management System for Container-Based Cloud Servers

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104735134A (en) * 2015-02-15 2015-06-24 百度在线网络技术(北京)有限公司 Method and device for providing computing service
WO2018045541A1 (en) * 2016-09-08 2018-03-15 华为技术有限公司 Optimization method for container allocation and processing device
CN108039963A (en) * 2017-12-05 2018-05-15 腾讯科技(深圳)有限公司 A kind of container collocation method, device and storage medium
US20190377656A1 (en) * 2018-06-11 2019-12-12 TmaxOS Co., Ltd. Integrated Management System for Container-Based Cloud Servers
CN109040069A (en) * 2018-08-06 2018-12-18 江苏易安联网络技术有限公司 A kind of dissemination method, delivery system and the access method of cloud application program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116362673A (en) * 2023-03-01 2023-06-30 中国船舶集团有限公司第七一九研究所 Ship equipment management method and system based on cloud computing

Similar Documents

Publication Publication Date Title
CN109844727B (en) Techniques for managing application configuration and associated credentials
US9513847B2 (en) Tools for facilitating printer installation
CN108681777B (en) Method and device for running machine learning program based on distributed system
CN101866292B (en) Information processing apparatus and control method
CN111752561A (en) Block development method, block sharing method, page building method and system
TWI534635B (en) Cloud service system and method thereof
JP2008176784A (en) Document processing system and method
CN110647327B (en) Method and device for dynamic control of user interface based on card
CN113452727B (en) Service processing method and device for equipment clouding and readable medium
CN113452727A (en) Equipment cloudization service processing method and device
JP2007323653A (en) Data delivery system, data delivery method and data delivery program
JP2014002619A (en) Information processing device, and control method and program thereof
CN113157354B (en) Method, apparatus, device and computer readable medium for processing data
US20150242176A1 (en) Determining optimal rendering systems
US5727148A (en) Message control method and system
JP2015153117A (en) document generation system
CN112836201A (en) Method, device, equipment and computer readable medium for multi-platform information intercommunication
WO2016202047A1 (en) Application recommendation method, apparatus, server, and terminal
CN113742617A (en) Cache updating method and device
JP4823674B2 (en) Remote installation system, remote installation method, server cloning system, and server cloning method
CN111163156A (en) Data processing method, device and storage medium based on block chain
CN114253520B (en) Interface code generation method and device
US20150356310A1 (en) Application software service system for controlling ui access according to user level and method thereof
CN117131302A (en) Service page generation method and device
CN113449228A (en) Page rendering method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant