Data transmission method, device and system and storage medium
By introducing a request status mechanism into the image forming device, determining whether the transmission conditions are met and requesting the information processing device to forward data, the problem of low data transmission efficiency in the network is solved, and more efficient data transmission is achieved and equipment manufacturing costs are reduced.
Patent Information
- Application Number
- CN202510089000.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-20
- Publication Date
- 2025-05-09
AI Technical Summary
In the prior art, the image forming device cannot send data normally when the network is not smooth, resulting in low data transmission efficiency and requires the function of sending data through the network, which increases the manufacturing cost of the device.
The image forming device determines whether the first transmission condition is met by obtaining the target address of the data to be sent. If it is not met, it enters the request state and requests the information processing device to forward the data.
The efficiency of data transmission is improved, so that image forming equipment that does not have the function of sending data through the network can also realize data transmission, reducing the manufacturing cost of the equipment.
Smart Images

Figure CN119967099A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and specifically to a data transmission method, device, system and storage medium. Background Art
[0002] With the development of information technology, image forming devices can realize more and more functions. In some image forming devices, the data in the device can be sent to an external device through a network. For example, the image forming device can send the data in the device to an external device by sending an email, so that the user can perform corresponding data analysis in the external device according to the acquired data.
[0003] In the process of realizing the above functions, the image forming device needs to be in a good network state before the data in it can be sent to the external device. If the network is not smooth, the image forming device cannot normally send data to the external device, which reduces the data transmission efficiency of the image forming device. In addition, the above process requires the image forming device to have the function of sending data to the external device through the network, which increases the manufacturing cost of the image forming device. Summary of the invention
[0004] In view of this, the present application provides a data transmission method, device, system and storage medium to help solve the problems of low data transmission efficiency and high manufacturing cost of image forming equipment in the prior art.
[0005] In a first aspect, an embodiment of the present application provides a data transmission method, which is applied to an image forming device, and the method includes: obtaining a target address of data to be sent; Based on the target address, determining whether a first transmission condition exists for transmitting the to-be-sent data to the target address; If the first transmission condition is not met, a request state is entered to enable the information processing device to obtain and forward the data to be sent; the request state is used to indicate that the image forming device requests the information processing device to forward data.
[0006] In a possible implementation manner of the first aspect, if the first transmission condition is not met, entering the request state includes: If the first transmission condition is not met, the target state information is set to the request state.
[0007] In a possible implementation manner of the first aspect, the target state information includes state information that can be acquired by the information processing device through a preset transmission protocol.
[0008] In a possible implementation manner of the first aspect, if the first transmission condition is not met, entering the request state includes: If the first transmission condition is not met, a forwarding data request message is sent to the information processing device.
[0009] In a possible implementation manner of the first aspect, the first transmission condition includes a first communication transmission condition and / or a first security transmission condition; the first communication transmission condition at least includes: having the ability to perform network communication with the target address and / or satisfying the condition that the amount of data to be sent is not greater than a preset data amount threshold; The first secure transmission condition includes at least: having the ability to transmit data to the first device and / or satisfying the condition that the target address is the address information of the second device; the first device refers to a device other than the information processing device; the second device is a device that meets the first preset security condition.
[0010] In a possible implementation manner of the first aspect, the method further includes: If the first transmission condition is not met, the data to be sent is stored in a target storage area; the target storage area is a storage area in the image forming device that can be read by the information processing device.
[0011] In a possible implementation manner of the first aspect, the method further includes: In response to the first confirmation information, the data to be sent is encrypted according to the preset encryption information, and the encrypted data to be sent is sent to the information processing device; the first confirmation information is used to indicate that the information processing device can transmit the data to be sent to the target address.
[0012] In a possible implementation manner of the first aspect, the method further includes: When receiving feedback information sent by the information processing device, the request state is switched to the non-request state; the feedback information is used to indicate that the information processing device has sent the data to be sent to the target address.
[0013] In a possible implementation manner of the first aspect, the method further includes: In the non-request state, if the first confirmation information is received, the first confirmation information is not responded to; the first confirmation information is used to indicate that the information processing device can transmit the data to be sent to the target address.
[0014] In a second aspect, an embodiment of the present application provides a data transmission method, which is applied to an information processing device, and the method includes: periodically acquiring target state information of an image forming device; When the target state information of the image forming device is a request state, acquiring a target address of the image forming device; the target address is address information of data to be sent in the image forming device; the request state is used to indicate that the image forming device requests the information processing device to forward data; Based on the target address, determining whether a second transmission condition exists for transmitting the to-be-sent data to the target address; If the second transmission condition is met, the data to be sent is acquired, and the data to be sent is sent based on the target address.
[0015] In a possible implementation manner of the second aspect, the method further includes: acquiring target state information of the image forming device; When the image forming device is in a requesting state, obtaining the target address of the image forming device comprises: When the target state information of the image forming device is a request state, a target address of the image forming device is acquired.
[0016] In a possible implementation manner of the second aspect, the method further includes: receiving a forwarding data request message sent by an image forming device; When the image forming device is in a requesting state, obtaining the target address of the image forming device comprises: When receiving the forwarding data request message sent by the image forming device, the target address of the image forming device is acquired.
[0017] In a possible implementation manner of the second aspect, the second transmission condition includes a second communication transmission condition and / or a second security transmission condition; the second communication transmission condition at least includes: having the ability to perform network communication with the target address; The second secure transmission condition at least includes: the information processing device satisfies a second preset security condition and / or the target address satisfies a third preset security condition.
[0018] In a possible implementation manner of the second aspect, obtaining the data to be sent includes: The data to be sent by the image forming device is acquired from a target storage area of the image forming device; wherein the target storage area is a storage area in the image forming device that can be read by the information processing device.
[0019] In a possible implementation manner of the second aspect, the method further includes: If the second transmission condition is met, sending first confirmation information to the image forming device; the first confirmation information is used to indicate that the information processing device is able to send the data to the target address; The obtaining of data to be sent comprises: receiving encrypted data information sent by the image forming device; The encrypted data information is decrypted to obtain the data to be sent.
[0020] In a possible implementation manner of the second aspect, the method further includes: The acquired data to be sent is deleted, and feedback information is sent to the image forming device; the feedback information is used to indicate that the information processing device has sent the data to be sent to the target address.
[0021] In a third aspect, an embodiment of the present application provides an image forming device, comprising: an acquisition unit, configured to acquire a target address of data to be sent; a processing unit, configured to determine, based on the target address, whether a first transmission condition exists for transmitting the data to be sent to the target address; The processing unit is further configured to enter a request state if the first transmission condition is not met, so that the information processing device can obtain and forward the data to be sent; the request state is used to indicate that the image forming device requests the information processing device to forward data.
[0022] In a third aspect, an embodiment of the present application provides an information processing device, including: an acquisition unit, configured to acquire a target address of the image forming device when the image forming device is in a request state; the target address is address information of data to be sent in the image forming device; the request state is used to indicate that the image forming device requests the information processing device to forward data; a processing unit, configured to determine, based on the target address, whether a second transmission condition exists for transmitting the to-be-sent data to the target address; an acquiring unit, further configured to acquire the data to be sent if the second transmission condition is met; The sending unit is further configured to send the data to be sent based on the target address.
[0023] In a fourth aspect, an embodiment of the present application provides an image forming device, comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the image forming device executes any one of the methods described in the first aspect.
[0024] In a fifth aspect, an embodiment of the present application provides an information processing device, comprising a memory for storing computer program instructions and a processor for executing program instructions, wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute any one of the methods described in the second aspect above.
[0025] In a sixth aspect, an embodiment of the present application provides a data transmission system, comprising an image forming device and an information processing device; wherein the image forming device comprises the image forming device described in the third aspect above; and the information processing device comprises the information processing device described in the fourth aspect above.
[0026] In the seventh aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute any method described in the first aspect, or any method described in the second aspect.
[0027] By adopting the scheme provided in the embodiment of the present application, when the image forming device needs to send the data to be sent to the target address but does not have the first transmission condition for sending the data to be sent to the target address, it can enter the request state to request the information processing device to forward the data to be sent, thereby improving the efficiency of data transmission. In addition, in the embodiment of the present application, the image forming device that does not have the function of sending data to an external device through a network can also send the data to be sent to the target address, thereby reducing the manufacturing cost of the image forming device. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0029] Figure 1 A flowchart of a data transmission method provided in an embodiment of the present application; Figure 2 A schematic diagram of a scenario of a data transmission method provided in an embodiment of the present application; Figure 3 A flowchart of another data transmission method provided in an embodiment of the present application; Figure 4 A flowchart of another data transmission method provided in an embodiment of the present application; Figure 5 A flowchart of another data transmission method provided in an embodiment of the present application; Figure 6 A flowchart of another data transmission method provided in an embodiment of the present application; Figure 7a A flowchart of another data transmission method provided in an embodiment of the present application; Figure 7b A flowchart of another data transmission method provided in an embodiment of the present application; Figure 8 A flowchart of another data transmission method provided in an embodiment of the present application; Fig. 9 A flowchart of another data transmission method provided in an embodiment of the present application; Fig.10 A schematic diagram of the structure of an image forming device provided in an embodiment of the present application; Fig.11 A schematic diagram of the structure of an information processing device provided in an embodiment of the present application; Fig.12 A schematic diagram of the structure of another information processing device provided in an embodiment of the present application; Fig.13 A schematic diagram of the structure of another information processing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0031] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0032] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0033] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0034] The image forming device needs to send the data in it to the external device so that the external device can analyze the data accordingly. In the related art, the image forming device needs to have the function of sending data to the external device through the network, and the image forming device needs to be in a good network state before the data in it can be sent to the external device. If the network is not smooth, the image forming device cannot send data to the external device normally, which reduces the data transmission efficiency of the image forming device. The above process requires the image forming device to have the function of sending data to the external device through the network, which increases the manufacturing cost of the image forming device.
[0035] In view of the above problems, the embodiment of the present application provides a data transmission method, device, system and storage medium, the method specifically comprises: obtaining the target address of the data to be sent; based on the target address, determining whether there is a first transmission condition for transmitting the data to be sent to the target address; if not, entering the request state so that the information processing device can obtain and forward the data to be sent; the request state is used to represent that the image forming device requests the information processing device to forward the data. In this way, in the embodiment of the present application, when the image forming device needs to send the data to be sent to the target address but does not have the first transmission condition for sending the data to be sent to the target address, it can enter the request state so as to request the information processing device to forward the data to be sent, thereby improving the efficiency of data transmission. In addition, in the embodiment of the present application, an image forming device that does not have the function of sending data to an external device through a network can also send the data to be sent to the target address, thereby reducing the manufacturing cost of the image forming device. The following is a detailed description.
[0036] See also Figure 1 , is a flow chart of a data transmission method provided in an embodiment of the present application. The data transmission method is applied to an image forming device. The image forming device is a device that forms an image on a recording medium through an imaging principle, and can be a printer, a copier, a fax machine, a multi-function image making and copying device, an electrostatic printing device, etc. Figure 1 As shown, the above method includes: Step S101: Obtain the target address of the data to be sent.
[0037] In the embodiment of the present application, when the image forming device needs to send the data to be sent to the external device, it can first obtain the address information of the external device, that is, obtain the target address. The image forming device can obtain the target address in the storage module, or it can obtain the target address from other devices. For example, the user can send the target address through an information processing device or other device that establishes a communication connection with the image forming device. The target address can also be set by the user in the image forming device, that is, the user can set the target address in the operation interface of the image forming device, such as Figure 2 shown.
[0038] In some embodiments, the data to be sent may be log information of an image forming device, so that a device corresponding to the target address may perform corresponding analysis and processing based on the log information of the image forming device, thereby better monitoring the image forming device.
[0039] Step S102: Based on the target address, determine whether a first transmission condition for transmitting the to-be-sent data to the target address exists.
[0040] In the embodiment of the present application, after the image forming device obtains the target address, it can detect whether it has the first transmission condition according to the target address to determine whether it can send the data to be sent to the target address. The first transmission condition is a pre-set condition for sending data to an external device.
[0041] In some embodiments, the first transmission condition includes a first communication transmission condition and / or a first secure transmission condition. The first communication transmission condition includes: having the ability to communicate with the target address over the network and / or satisfying the condition that the amount of data to be sent is not greater than a preset data amount threshold. The first secure transmission condition includes: having the ability to transmit data to the first device and / or satisfying the condition that the target address is the address information of the second device.
[0042] The first device refers to a device other than an information processing device; the second device is a device that satisfies the first preset security condition. The first preset security condition may be a pre-set security rule. In some embodiments, the first preset security condition may be a device that has undergone security authentication of an image forming device. Alternatively, the first preset security condition may also be a device pre-set by a user. Of course, the first preset security condition may also be other conditions, which may be pre-set according to actual needs, and the embodiments of the present application do not limit this.
[0043] It should be understood that the first device may be a device other than an information processing device, and the first device has the ability to communicate with the image forming device, such as a user terminal, a cloud server, etc. The embodiment of the present application does not limit the specific type of the first device.
[0044] Similarly, the second device is a device other than an information processing device whose address satisfies the first preset security condition. The second device has the ability to communicate with the image forming device. For example, a user terminal device, a cloud server, and other devices. The embodiment of the present application does not limit the specific type of the second device.
[0045] The first transmission condition includes a first communication transmission condition and / or a first security transmission condition, that is, when the image forming device needs to send the data to be sent to the external device, it can be judged from the communication capability and / or security capability of the image forming device whether the image forming device can send the data to be sent to the target address. In the embodiment of the present application, the first communication transmission condition includes the ability to communicate with the target address through the network and / or the condition that the amount of the data to be sent is not greater than the preset data amount threshold. Among them, the ability to communicate with the target address through the network can be that the image forming device itself has a network communication function, and the current network status of the image forming device is good and can establish a communication connection with the target address. Based on this, when the first transmission condition includes the first communication transmission condition, the image forming device needs to judge whether it has the communication capability to send the data to be sent to the target address. That is to say, after obtaining the target address, the image forming device can determine that the address needs to communicate through the network according to the target address. The image forming device can first detect its own relevant configuration to determine whether it has the function of network communication. When it is determined that it does not have the network communication function, it can be determined that the image forming device does not have the first transmission condition. When it is determined that it has a network communication function, the image forming device can further detect whether its network status is good to determine whether it can communicate with the target address through the network. For example, it can detect whether its current network is congested. If it is congested, it can be determined that its network status is not good, and if it is not congested, it can be determined that its network status is good. Alternatively, it can also detect the delay information of its current network and determine whether the network status is good according to the delay information. Of course, it is also possible to determine whether the network status of the image forming device is good in other ways, and the embodiments of the present application are not limited to this. When the image forming device determines that it does not have a network communication function or determines that it has a network communication function but the current network status is not good, it can be determined that the image forming device does not have the first communication transmission condition, that is, it does not have the first transmission condition for transmitting the data to be sent to the target address. And / or, in order to prevent the amount of data to be sent from being too large and causing slow transmission, in some embodiments, the amount of data to be sent can be limited. In this way, when the amount of data to be sent is too large, an information processing device with better data transmission capability can be requested to forward. That is, the image forming device can detect whether the amount of data to be sent is greater than a preset data amount threshold. When the amount of data to be sent is greater than the preset data volume threshold, it means that the amount of data that needs to be sent out is too large. In order to improve data transmission efficiency, the image forming device needs to request the information processing device to forward it. At this time, it can be determined that the image forming device does not have the first transmission condition to transmit the data to be sent to the target address.
[0046] The image forming device may determine that the image forming device has the first communication transmission condition when determining that it has a network communication function and the current network status is good, and / or when determining that the amount of data to be sent is not greater than a preset data amount threshold.
[0047] And / or, when the first transmission condition includes the first secure transmission condition, the image forming device can determine whether the image forming device has the security capability to send the data to be sent to the target address according to the target address. Since the image forming device may be in an environment with high security requirements, the image forming device can be pre-set to not have the capability to send data to devices other than the information processing device. That is, the image forming device does not have the capability to transmit data to the first device. And / or, the image forming device can also be pre-set to have the capability to send data to a device that meets the first preset security condition. For example, the image forming device can be pre-set to have the capability to send data to a device that has undergone security authentication. That is, the image forming device has the capability to send the data to be sent to the second device, but does not have the capability to send data to a device that does not meet the first preset security condition. For example, it does not have the capability to transmit data to a device that has not undergone security authentication. Therefore, the first secure transmission condition includes the capability to transmit data to the first device and / or the target address is the address information of the second device. When the first secure transmission condition includes the capability to transmit data to the first device, after obtaining the target address, the image forming device can detect whether it has the first secure transmission capability. That is, the image forming device can determine whether the target address is the address of the information processing device according to the target address. If it is determined that the target address is not the address of the information processing device, that is, it means that the target address is the address of the first device (a device other than the information processing device), then the image forming device can detect its own configuration to determine whether it has the ability to transmit data to the first device. When it is detected that it does not have the ability to transmit data to the first device, it can be determined that the image forming device does not meet the first security transmission condition.
[0048] When the first security transmission condition includes the target address being the address information of the second device, after the image forming device obtains the target address, it can detect whether the target address is the address of the second device that meets the first preset security condition. In some embodiments, the image forming device can store the address of the second device, so that the image forming device can directly compare the target address with the address of the second device stored therein, thereby determining whether the target address is the address of the second device. If it is determined that the target address is not the address of the second device, the image forming device can determine that the first security transmission condition is not met. Of course, after obtaining the target address, the image forming device can also perform security authentication with the device corresponding to the target address. When the device corresponding to the target address fails the security authentication, it can be determined that the target address is not the address of the second device. At this time, the image forming device can determine that the first security transmission condition is not met.
[0049] When the image forming device determines that it has the ability to transmit data to the first device and / or the target address is the address of the second device, it can be determined that the image forming device has the first security transmission condition.
[0050] It should be understood that when the first transmission condition includes the first communication transmission condition and the first security transmission condition, if the image forming device does not have any one of the first communication transmission condition and the first security transmission condition, it can be determined that the image forming device does not have the first transmission condition. When the image forming device has the first communication transmission condition and the first security transmission condition, it can be determined that the image forming device has the first transmission condition.
[0051] When the image forming device determines that the first transmission condition exists, it indicates that the image forming device can send the data to be sent to the target address. At this time, the data to be sent can be directly sent to the target address according to the target address.
[0052] When the image forming device determines that the first transmission condition is not met, it indicates that the image forming device itself cannot send the data to be sent to the target address, and needs to forward the data to be sent through the information processing device. The image forming device may execute the following step S103.
[0053] Step S103: If the first transmission condition is not met, enter the request state so that the information processing device can obtain and forward the data to be sent.
[0054] The request status is used to indicate that the image forming device requests the information processing device to forward data.
[0055] In the embodiment of the present application, the image forming device determines that it does not have the first transmission condition, indicating that the image forming device cannot send the data to be sent to the target address and needs to be forwarded by the information processing device. At this time, the image forming device can enter the request state, so that the request state can be used to represent that the image forming device needs the information processing device to forward the data. When the information processing device detects that the image forming device is in the request state, the request state can be used to know that the image forming device needs to forward the data.
[0056] The image forming device may enter the request state in different ways. As a possible implementation, if the first transmission condition is not met, entering the request state includes: if the first transmission condition is not met, setting the target state information to the request state.
[0057] That is, when the first transmission condition is not met, the image forming device can set the target state information to the request state. The target state information can be information read by the information processing device from the image forming device. In this way, after the image forming device sets the target state information to the request state when it determines that it does not have the first transmission condition, the information processing device can obtain the target state information and, when detecting that the target state information is in the request state, can learn that the image forming device needs to forward data.
[0058] In some embodiments, the target state information includes state information that can be obtained by the information processing device through a preset transmission protocol. That is, the information processing device can obtain the target state information of the image forming device through the preset transmission protocol. The preset transmission protocol is different if the connection mode between the image forming device and the information processing device is different. In some embodiments, the image forming device and the information processing device can be connected through USB (Universal Serial Bus), and the preset transmission protocol can be the USB protocol. The image forming device and the information processing device can transmit data through a pre-configured data channel, and the USB protocol allows the configuration of EP0, EP1, EP2...EPn and other data channels for data transmission. In one embodiment, the image forming device and the information processing device transmit control data through the EP0 data channel, transmit job data through the EP1 data channel, and transmit security authentication information through the EP2 data channel. In an embodiment of the present application, the EPn data channel can be configured to transmit the data to be sent through the EPn data channel. In some embodiments, the information on whether the EPn data channel is in a valid state can be used as the target state information. The EPn data channel is a pre-set channel dedicated to transmitting data to be sent. In this way, when the image forming device needs to set the target status information to a request state, the EPn data channel can be set to a valid state. The valid state of the EPn data channel indicates that the image forming device needs the information processing device to forward data. In this way, when the information processing device detects that there is valid data in the EPn data channel, it can determine that the image forming device has data that needs to be forwarded, thereby determining that the target status information is a request state. In other embodiments, the image forming device can also transmit the target status information to the information processing device through the EPn data channel. In this way, when the information processing device receives the target status information and detects that the target status information is a request state, it can know that the image forming device needs to forward data.
[0059] In some embodiments, the target state information is set to the request state by setting a sub-segment in the target state information to a character used to represent the request state. For example, setting the a sub-segment in the target state information to 1 means setting the target state information to the request state. Of course, setting the target state information to the request state can also be achieved in other ways, for example, adding a sub-segment representing the request state to the target state information, etc., and the embodiments of the present application are not limited to this.
[0060] It should be understood that the value of n can be set according to actual needs and is an integer greater than 0. Usually, a data channel for data transmission to be sent is determined from unused data channels, and the value of n is the channel number corresponding to the data channel.
[0061] In other embodiments, the image forming device and the information processing device can be connected through the network. In this case, the preset transmission protocol can be SNMP (Simple Network Management Protocol). The SNMP protocol is mainly composed of two parts: SNMP management station and SNMP agent. The SNMP management station is a central node responsible for collecting and maintaining the information of each SNMP element, processing this information, and finally feeding back to the network administrator; while the SNMP agent runs on each managed network node, is responsible for statistics of various information of the node, and is responsible for interacting with the SNMP management station, receiving and executing the commands of the management station, and uploading various local network information. The SNMP management station and the SNMP agent are loosely coupled. The communication between them is completed through the User Datagram Protocol (UDP). In general, the SNMP management station sends various commands to the SNMP agent through the UDP protocol, and when the SNMP agent receives the command, it returns the parameters required by the SNMP management station. However, when the SNMP agent detects an abnormality in a network element, it can also actively send a message to the SNMP management station to notify the current abnormal condition. The SNMP management station is set in the information processing device, and the SNMP agent is set in the image forming device to realize the SNMP communication between the image forming device and the information processing device. The management station and the agent are interfaced through the Management Information Base (MIB), and the MIB defines the managed objects in the device. Both the SNMP management station and the SNMP agent implement the corresponding MIB objects, so that both parties can identify each other's data and realize communication. The management station applies to the agent for the data defined in the MIB. After the agent identifies it, it converts the relevant information or parameters provided by the management device into the format defined by the MIB, and responds to the management station to complete a management operation. Based on this, in order to realize that the information processing device can forward the data in the image forming device, a MIB node can be set in the information processing device and the image forming device, for example, a new MIB node is added, and the target state information is represented by the specified field of the MIB node. In this way, when the image forming device needs to set the target state information to the request state, the specified field of the MIB node can be set to the first value, and the specified field of the MIB node is the first value to represent that the image forming device needs the information processing device to forward data.
[0062] The information processing device may also establish other connections with the image forming device, and the preset transmission protocol may also be other protocols, which is not limited in the embodiments of the present application.
[0063] It should be understood that since the information processing device can be connected to the image forming device in various forms, when acquiring the target status information of the image forming device, it can detect the validity of the EPn data channel of the USB and the specified field of the MIB node.
[0064] As a possible implementation manner, if the first transmission condition is not met, entering the request state includes: if the first transmission condition is not met, sending a forwarding data request message to the information processing device.
[0065] That is, if the image forming device determines that the first transmission condition is not met, it needs to request the information processing device to forward the data to be sent. At this time, in order to improve the efficiency of data transmission, the image forming device can generate a forwarding data request message and send the forwarding data request message to the information processing device, so that the information processing device can know that the image forming device needs to forward data when receiving the forwarding data request message. That is, in the embodiment of the present application, the image forming device can be represented to enter the request state by sending a forwarding data request message to the information processing device.
[0066] The image forming device can send a forwarding request message to each information processing device connected to it. For example, the forwarding request message can be sent to an information processing device connected to the image forming device via USB via a USB data channel. The forwarding request message can be sent to an information processing device connected to the image forming device via a wired network via a wired network data channel. The forwarding request message can also be sent to an information processing device connected to the image forming device via a wireless network via a wireless network data channel. Of course, the request message can also be forwarded via other data channels, and the embodiments of the present application do not limit this. The information processing device can receive the forwarding request message sent by the image forming device.
[0067] It should be noted that the image forming device may enter the request state in other ways, and the embodiments of the present application do not limit this.
[0068] In the embodiment of the present application, when the image forming device needs to send the data to be sent to the target address but does not have the first transmission condition for sending the data to be sent to the target address, it can enter the request state to request the information processing device to forward the data to be sent, thereby improving the efficiency of data transmission. In addition, in the embodiment of the present application, the image forming device that does not have the function of sending data to an external device through a network can also send the data to be sent to the target address, thereby reducing the manufacturing cost of the image forming device.
[0069] When the image forming device determines that the first transmission condition is not met and the data to be sent needs to be forwarded through the information processing device, the data to be sent needs to be transmitted to the information processing device. As a possible implementation method, Figure 3 As shown, the above method also includes: Step S104: If the first transmission condition is not met, the data to be sent is stored in the target storage area.
[0070] The target storage area is a storage area in the image forming device that can be read by the information processing device.
[0071] In the implementation of the present application, in order to reduce the workload of the image forming device, when the image forming device determines that the first transmission condition is not met, it may not directly send the data to be sent to the information processing device, but may store the data to be sent in a target storage area. The target storage area is a storage area that can be read by the information processing device. In this way, the information processing device can directly obtain the data to be sent in the target storage area, and the image processing device does not need to send the data to be sent to the information processing device, which can reduce the workload of the image forming device.
[0072] In order to improve the efficiency of data transmission, the image forming device can also directly send the data to be sent to the information processing device. At this time, as another possible implementation method, such as Figure 4 As shown, the above method also includes: Step S105: In response to the first confirmation information, encrypt the data to be sent according to the preset encryption information, and send the encrypted data to be sent to the information processing device.
[0073] The first confirmation information is used to indicate that the information processing device is able to transmit the data to be sent to the target address.
[0074] In the embodiment of the present application, after the image forming device enters the request state, the information processing device can determine that the image forming device needs to forward data when detecting that the image forming device is in the request state. At this time, the information processing device can determine whether the data to be sent can be transmitted to the target address. If it is determined that the data to be sent can be transmitted to the target address, the first confirmation information can be sent to the image forming device. The image forming device receives the first confirmation information, and after receiving the first confirmation information, it can be determined that the information processing device can send the data to be sent to the target address, and the image forming device can transmit the data to be sent to the information processing device.
[0075] In order to improve the efficiency of data transmission, after receiving the first confirmation information, the image forming device can encrypt the data to be sent according to the preset encryption information in response to the first confirmation information, and directly send the encrypted data to be sent to the information processing device. In this way, the security of the data to be sent can be improved, and the speed at which the information processing device obtains the data to be sent can be increased, thereby improving the efficiency of data transmission.
[0076] It should be noted that the preset encryption information may be encryption information of a preset encryption algorithm, and corresponding decoding information is preset in the information processing device. In some embodiments, a symmetric encryption algorithm may be used between the image forming device and the information processing device, so that an encryption key may be pre-stored in the image forming device, and a corresponding decryption key may be pre-stored in the information processing device. Of course, the image forming device and the information processing device may also use other encryption and decryption algorithms, which are not limited in the embodiments of the present application.
[0077] It should be understood that the above-mentioned steps S104 and S105 are two different ways of transmitting the data to be sent to the information processing device. When the image forming device is implemented, it can only use the other way to transmit the data to be sent to the information processing device, that is, only one of the steps S104 and S105 needs to be performed. For the convenience of description, the following embodiments are described by taking the way in which the image forming device transmits the data to be sent to the information processing device through step S105 as an example.
[0078] As a possible implementation, Figure 5 After step S105, the method further includes: Step S106: When receiving feedback information sent by the information processing device, the request state is switched to the non-request state.
[0079] The feedback information is used to indicate that the information processing device has sent the data to be sent to the target address.
[0080] In an embodiment of the present application, the information processing device can send feedback information to the image forming device after sending the data to be sent to the target address. The image forming device receives the feedback information and can learn through the feedback information that the information processing device has sent the data to be sent to the target address. In this way, the image forming device can switch from a request state to a non-request state and no longer request the information processing device to forward the data to be sent. In this way, when the information processing device detects that the image forming device is in a non-request state, it can determine that the image forming device does not need to forward data.
[0081] As a possible implementation method, when the image forming device indicates that it has entered a request state by setting the target state information to a request state, the image forming device may set the target state information to a non-request state when receiving feedback information sent by the information processing device. In this way, the information processing device can obtain the target state information of the image forming device, and when it detects that the target state information is a non-request state, it can be known that the image forming device does not need to forward data.
[0082] As another possible implementation, when the image forming device indicates that it has entered the request state by sending a forwarding data request message to the information processing device, the image forming device may stop sending the forwarding data request message and delete the forwarding data request message when receiving feedback information sent by the information processing device. In this way, the information processing device will no longer receive the forwarding data request message and does not need to forward the data of the image forming device.
[0083] In some embodiments, reference Figure 5 As shown, the above method also includes: Step S107: In the non-request state, if the first confirmation information is received, then the first confirmation information is not responded to.
[0084] That is, when the image forming device is in a non-request state, it means that the image forming device has no data that needs to be forwarded by the information processing device. At this time, if the first confirmation information is received, there is no need to respond to the first confirmation information, and the first confirmation information can be directly discarded.
[0085] In some embodiments, the image forming device may correspond to multiple information processing devices, and the multiple information processing devices may obtain the request status of the image forming device to forward the data to be sent by the image forming device, thereby further improving the data transmission efficiency of the image forming device.
[0086] In an embodiment of the present application, the image forming device can enter a request state when it is determined that the first transmission condition for sending the data to be sent to the target address is not met, so that the information processing device can determine that the image forming device needs to forward data through the request state of the image forming device. When the information processing device can send data to the target address, the data to be sent can be forwarded. In this way, when the image forming device is unable to send the data to be sent, the data to be sent can be forwarded to the device corresponding to the target address through the information processing device, thereby realizing the transmission of the data to be sent. In other words, an image forming device that does not have the function of sending data to the target address can also realize the function of sending the data to be sent to the target address, and there is no need to increase the manufacturing cost of the image forming device. Moreover, in the forwarding process of the above-mentioned data to be sent, it can be managed and controlled by the information processing device, thereby improving the security of data transmission.
[0087] refer to Figure 6 , is a flowchart of a data transmission method provided in an embodiment of the present application. The data transmission method is applied to information processing equipment. The information processing equipment may be a mobile phone, a tablet computer, a personal computer (PC), a personal digital assistant (PDA), a smart watch, a netbook, a wearable electronic device, etc. It should be pointed out that in some possible implementations, the information processing equipment may also be referred to as a terminal device, an electronic device, a user device, etc., which is not limited in the embodiments of the present application. Figure 6 As shown, the above method includes: Step S601: when the image forming device is in a requesting state, obtain a target address of the image forming device.
[0088] The target address is the address information of the data to be sent in the image forming device; the request state is used to represent that the image forming device requests the information processing device to forward the data.
[0089] In the embodiment of the present application, the information processing device can obtain the state of the image forming device. When it is detected that the image forming device is in the request state, it means that the image forming device requests the information processing device to forward data. The information processing device needs to first determine whether it can forward the data of the image forming device. At this time, the information processing device can obtain the target address of the image forming device to determine whether the information processing device can send data to the target address.
[0090] In some embodiments, the information processing device may send a request to the image forming device to obtain the target address. After receiving the request, the image forming device may send the target address to the information processing device.
[0091] In other embodiments, the image forming device may store the target address in a storage area that can be read by the information processing device. In this case, when the information processing device needs to obtain the target address, it may read the target address from the storage area.
[0092] Of course, the information processing device may also obtain the target address in other ways, for example, the target address may be set by other devices or by the user, and this embodiment of the present application does not limit this.
[0093] Step S602: Based on the target address, determine whether a second transmission condition exists for transmitting the data to be sent to the target address.
[0094] In the embodiment of the present application, after obtaining the target address, the information processing device needs to detect whether it can forward the data in the image forming device to the target address. That is, it needs to detect whether it has the second transmission condition for transmitting the data to be sent to the target address. The second transmission condition can be a pre-set condition for forwarding the data of the image forming device to other devices.
[0095] In some embodiments, the second transmission condition includes a second communication transmission condition and / or a second security transmission condition.
[0096] Among them, the second communication transmission condition at least includes: having the ability to communicate with the target address over the network. The second security transmission condition includes: the information processing device meets the second preset security condition and / or the target address meets the third preset security condition. Among them, the second preset security condition and the third preset security condition are pre-set security rules. In some embodiments, the second preset security condition can be completing security authentication with the image forming device. Or, the information processing device is a security device set by the user, etc. The third preset security condition can be that the target address is preset security address information in the information processing device. Or, the target address information is security address information set by the user, etc.
[0097] It should be understood that the second preset security condition and the third preset security condition can be other security conditions, and the embodiments of the present application do not limit this. For the convenience of explanation, the following embodiments are described by taking the second preset security condition including completing security authentication with the image forming device and the third preset security condition including the target address being the preset security address information in the information processing device as an example.
[0098] The second transmission condition includes a second communication transmission condition and / or a second security transmission condition, that is, when the information processing device forwards the data of the image forming device to the target address, it can be judged from the communication capability and / or security capability of the information processing device whether the information processing device can forward the data of the image forming device to the target address. In an embodiment of the present application, the second communication transmission condition includes the ability to conduct network communication with the target address, which can be a network communication function and the ability to access the target address. Based on this, when the second transmission condition includes the second communication transmission condition, the information processing device can detect whether it has a network communication function. If it has a network communication function, it is necessary to further detect whether it can access the target address. In some embodiments, the information processing device can determine whether it can access the target address by sending an inquiry message to the target address and whether it can receive a response message within a preset time. Of course, the information processing device can also determine whether it can access the target address in other ways, and the embodiment of the present application does not limit this.
[0099] When the information processing device determines that it does not have a network communication function or that it has a network communication function but cannot access the target address, it can be determined that the information processing device does not have the second communication transmission condition.
[0100] When the information processing device determines that it has a network communication function and can access the target address, it can be determined that the information processing device has the second communication transmission condition.
[0101] And / or, when the second transmission condition includes a second secure transmission condition, the information processing device may determine, based on the target address, whether the information processing device has the security capability to send the data to be sent by the image forming device to the target address. Since the information processing device may be in an environment with high security requirements, the information processing device may be configured to forward only the data of the image forming device that has undergone security authentication. And / or, the information processing device may also be configured to only send data to a secure address preset therein. Therefore, the second secure transmission condition includes completing security authentication with the image forming device and / or the target address is a preset secure address information in the information processing device.
[0102] When the second security transmission condition includes that the information processing device satisfies the second preset security condition, that is, the second security transmission condition includes the condition that the information processing device and the image forming device complete security authentication, after obtaining the target address, the information processing device can detect whether it satisfies the second preset security condition, that is, detect whether it has completed security authentication with the image forming device. If not, the information processing device can perform security authentication processing with the image forming device. When the information processing device completes the security authentication processing with the image forming device, it can be determined that the information processing device and the image forming device have completed security authentication.
[0103] When the second secure transmission condition includes that the target address satisfies the third preset security condition, if the second secure transmission condition includes the condition that the target address is the preset secure address information in the information processing device, after obtaining the target address, the information processing device needs to compare the target address with the preset secure address information therein to determine whether the target address is the secure address information. If it is detected that the target address matches the preset secure address information, it can be determined that the target address is the preset secure address information in the information processing device.
[0104] Among them, the preset security address information in the information processing device can be preset according to actual needs.
[0105] When the second secure transmission condition only includes completing security authentication with the image forming device, if the information processing device completes security authentication with the image forming device, it can be determined that the information processing device has the second secure transmission condition. Alternatively, when the second secure transmission condition only includes the target address being the preset secure address information in the information processing device, if the information processing device determines that the target address is the preset secure address information in the information processing device, it can be determined that the information processing device has the second secure transmission condition. Alternatively, when the second secure transmission condition includes completing security authentication with the image forming device and the target address being the preset secure address information in the information processing device, if the information processing device determines that the target address is the preset secure address information in the information processing device, and the information processing device completes security authentication with the image forming device, it can be determined that the information processing device has the second secure transmission condition. Among them, the information processing device and the image forming device can perform mutual security authentication through a preset authentication protocol. For example, the information processing device and the image forming device can predetermine a device authentication key. The information processing device can use the device authentication key to encrypt the first information of the image forming device to generate a first authentication ciphertext. The information processing device can send the first authentication ciphertext to the image forming device. The image forming device can use the device authentication key to decrypt the first authentication ciphertext to obtain a decryption result. The decryption result is compared with the first information of the image forming device to determine whether the decryption result is correct. If it is correct, the image forming device can determine that the information processing device is safe. Similarly, the information processing device can use the above method to complete the security authentication of the image forming device, which will not be repeated here.
[0106] Of course, other methods may also be used to complete security authentication between the information processing device and the image forming device, and the embodiments of the present application do not limit this.
[0107] It should be understood that when the second transmission condition includes the second communication transmission condition and the second secure transmission condition, and the information processing device has the second communication transmission condition and the second secure transmission condition, it can be determined that the information processing device has the second transmission condition. When the information processing device does not have any of the second communication transmission condition and the second secure transmission condition, it can be determined that the information processing device does not have the second transmission condition.
[0108] When the information processing device does not have the second transmission condition, the to-be-sent data of the image forming device is not forwarded.
[0109] When the information processing device meets the second transmission condition, the data to be sent by the image forming device can be forwarded, and the following step S603 can be executed at this time.
[0110] Step S603: If the second transmission condition is met, the data to be sent is obtained, and the data to be sent is sent based on the target address.
[0111] In an embodiment of the present application, when the information processing device determines that the data in the image forming device can be forwarded, it can obtain the data to be sent by the image forming device from the image forming device, and send the data to be sent to the target address according to the target address.
[0112] In some embodiments, acquiring the data to be sent includes: acquiring the data to be sent of the image forming device from a target storage area of the image forming device, wherein the target storage area is a storage area in the image forming device that can be read by the information processing device.
[0113] That is, in order to reduce the workload of the image forming device, the image forming device may not directly send the data to be sent to the information processing device, but may store the data to be sent in a storage area in the image forming device that can be read by the information processing device. In other words, the image forming device may store the data to be sent in a target storage area. In this way, when the information processing device needs to obtain the data to be sent, it can access the target storage area in the image forming device and read the data to be sent from the target storage area, which can improve the convenience of the information processing device in obtaining the data to be sent.
[0114] In other embodiments, obtaining the data to be sent includes: receiving encrypted data information sent by the image forming device; and decrypting the encrypted data information to obtain the data to be sent.
[0115] That is, after receiving the first confirmation information, the image forming device can also encrypt the data to be sent and send it to the information processing device. The information processing device can receive the encrypted data information sent by the image forming device. The information processing device decrypts the encrypted data information using a preset decryption algorithm to obtain the data to be sent.
[0116] Thus, in the embodiment of the present application, after the information processing device obtains the data to be sent, it can directly send the data to be sent to the target address according to the target address. During the transmission of the data to be sent, the information processing device does not process or modify the data to be sent, and transparently transmits the data to be sent to the target address, so that the data to be sent in the image forming device can be quickly and accurately transmitted to improve the accuracy of other devices obtaining the data to be sent. In addition, the above transmission method can also improve the integrity and authenticity of the data to be sent.
[0117] The request state of the image forming device may be obtained by acquiring the target state information of the image forming device, or may be determined when receiving a forwarding data request message sent by the image forming device. Based on this, as a possible implementation, Figure 7a As shown, the above method also includes: Step S604: Acquire target status information of the image forming device.
[0118] In the embodiment of the present application, the image forming device may need the information processing device to forward data, and the image forming device may set its target state information to a request state, and does not send a request message to the information processing device. At this time, in order to obtain whether the image forming device has a request to forward data, the information processing device may read the target state information of the image forming device.
[0119] The information processing device can read the target state information of the image forming device through a preset transmission protocol. In some embodiments, the information processing device and the image forming device are connected via a USB, and the preset transmission protocol can be a USB protocol. In some embodiments, the information processing device can obtain the target state information by obtaining information on whether the data channel EPn is in a valid state. When the data channel EPn is in a valid state, it indicates that the target state information is in a request state, and it can be determined that the image forming device needs to forward data. In other embodiments, the information processing device can obtain the target state information through the data channel EPn, and determine whether the image forming device is in a request state by detecting the target state information.
[0120] In other embodiments, the information processing device and the image forming device are connected via a network, and the preset transmission protocol may be the SNMP protocol. The information processing device may obtain the target state information by obtaining information of a specified field of a preset MIB node. When the specified field of the preset MIB node is a first value, it indicates that the target state information is a request state, and it may be determined that the image forming device needs to forward data.
[0121] In some embodiments, the information processing device may periodically obtain the target state information of the image forming device. At this time, the period for obtaining the target state information of the image forming device may be preset according to actual needs, for example, 5 seconds, 10 seconds, or other time, which is not limited in the embodiments of the present application.
[0122] It should be noted that the relationship between the information processing device and the image forming device may be one-to-one, one-to-many, many-to-one or many-to-many. The information processing device can send query information of the target status information to the device in the local area network within the local area network, and the device receiving the query information of the target status information can return response information to the information processing device. The target status information of the image forming device may also be obtained by multiple information processing devices, and the embodiments of the present application are not limited to this.
[0123] At this time, the above step S601 of acquiring the target address of the image forming device when the image forming device is in the request state includes: acquiring the target address of the image forming device when the target state information of the image forming device is in the request state.
[0124] That is, if the target state information is set to the request state, it means that the image forming device needs the information processing device to forward data, and at this time the target address of the image forming device can be obtained.
[0125] As another possible implementation, the above Figure 7b As shown, the above method also includes: Step S605: Receive a data forwarding request message sent by the image forming device.
[0126] In the embodiment of the present application, if the image forming device needs the information processing device to forward data, the image forming device can also directly send a forwarding data request message to the information processing device. The information processing device can receive the forwarding data request message sent by the image forming device.
[0127] At this time, the above step S601 of acquiring the target address of the image forming device when the image forming device is in the requesting state includes: acquiring the target address of the image forming device when receiving a forwarding data request message sent by the image forming device.
[0128] That is, when the information processing device receives the forwarding data request message sent by the image forming device, it means that the image forming device needs the information processing device to forward data, and at this time, the target address of the image forming device can be obtained.
[0129] The above steps S604 and S605 are two ways for the information processing device to determine whether the image forming device is in the request state. In the actual implementation process, only one way can be used. For the sake of convenience, in the following embodiments, the information processing device determines whether the image forming device is in the request state through step S604 as an example.
[0130] As a possible implementation, Figure 8 As shown, the above method also includes: Step S606: If the second transmission condition is met, send first confirmation information to the image forming device.
[0131] The first confirmation information is used to indicate that the information processing device is able to transmit the data to be sent to the target address.
[0132] In the embodiment of the present application, when the information processing device determines that the second transmission condition exists, it indicates that the information processing device can forward the data of the image forming device to the target address. At this time, the information processing device can send the first confirmation information to the image forming device to inform the image forming device that the information processing device can forward the data to be sent to the target address.
[0133] As a possible implementation, Figure 8 As shown, the above method also includes: Step S607: Delete the acquired data to be sent, and send feedback information to the image forming device.
[0134] The feedback information is used to indicate that the information processing device has sent the data to be sent to the target address.
[0135] In an embodiment of the present application, after the information processing device completes forwarding the data to be sent of the image forming device, it can delete the data to be sent obtained therein and send feedback information to the image forming device to inform the image forming device that the data to be sent has been sent to the target address, so that the image forming device stops requesting to forward the data to be sent.
[0136] refer to Fig. 9 , is a flow chart of a data transmission method provided in an embodiment of the present application. Fig. 9 As shown, the method includes: Step S901: The image forming device obtains a target address of data to be sent.
[0137] Please refer to step S101 for details, which will not be described again here.
[0138] Step S902: The image forming device determines whether a first transmission condition for transmitting the to-be-sent data to the target address exists based on the target address.
[0139] For details, please refer to step S102, which will not be described again here.
[0140] It should be noted that when the image forming device determines that the first transmission condition is not met, it needs to request the information processing device to forward the data to be sent. In some embodiments, the image forming device can actively send a forwarding request message to the information processing device. At this time, the following steps S903a-step S904a, step S906-step S911 can be executed. In other embodiments, the image forming device can change the state of the target state information therein, and the information processing device can obtain the target state information. At this time, the following steps S903b, step S904b, step S905b, and steps S906-S911 can be executed.
[0141] Step S903a: If the first transmission condition is not met, the image forming device sends a forwarding request message to the information processing device. The information processing device receives the forwarding request message.
[0142] For details, please refer to step S103 and step S605, which will not be described in detail here.
[0143] Step S903b: If the first transmission condition is not met, the image forming device sets the target status information to the request status.
[0144] The request status is used to indicate that the image forming device requests the information processing device to forward data.
[0145] For details, please refer to step S103, which will not be described again here.
[0146] Step S904a: The information processing device obtains the target address.
[0147] For details, please refer to the process of the information processing device obtaining the target address in step S601, which will not be repeated here.
[0148] Step S904b: The information processing device obtains target status information of the image forming device.
[0149] For details, please refer to step S604, which will not be described again here.
[0150] Step S905b: When the target status information of the image forming device is in the request status, the information processing device obtains the target address of the image forming device.
[0151] The target address is the address information of the data to be sent in the image forming device. The request state is used to indicate that the image forming device requests the information processing device to forward data.
[0152] For details, please refer to step S601, which will not be described again here.
[0153] Step S906: Based on the target address, the information processing device determines whether a second transmission condition exists for transmitting the data to be sent to the target address.
[0154] Please refer to step S602 for details, which will not be described again here.
[0155] Step S907: If the second transmission condition is met, the information processing device sends first confirmation information to the image forming device, and the image forming device receives the first confirmation information.
[0156] The first confirmation information is used to indicate that the information processing device is able to transmit the data to be sent to the target address.
[0157] Please refer to step S606 for details, which will not be described again here.
[0158] Step S908: In response to the first confirmation information, the image forming device transmits the data to be sent to the information processing device.
[0159] The first confirmation information is used to indicate that the information processing device is capable of transmitting the data to be sent to the target address.
[0160] Please refer to step S105 for details, which will not be described again here.
[0161] Step S909: The information processing device obtains the data to be sent, and sends the data to be sent based on the target address.
[0162] For details, please refer to step S603, which will not be described again here.
[0163] Step S910: The information processing device deletes the acquired data to be sent, and sends feedback information to the image forming device. The image forming device receives the feedback information sent by the information processing device.
[0164] The feedback information is used to indicate that the information processing device has sent the data to be sent to the target address.
[0165] For details, please refer to step S607, which will not be described again here.
[0166] Step S911: When receiving feedback information sent by the information processing device, the image forming device switches from the request state to the non-request state.
[0167] For details, please refer to step S106.
[0168] See also Fig.10 , is a schematic diagram of the structure of an image forming device provided in an embodiment of the present application. Fig.10 As shown, the image forming device includes: The acquisition unit 1001 is used to acquire the target address of the data to be sent.
[0169] The processing unit 1002 is used to determine, based on the target address, whether a first transmission condition for transmitting the to-be-sent data to the target address exists.
[0170] The processing unit 1002 is further configured to enter a request state if the first transmission condition is not met, so that the information processing device can obtain and forward the data to be sent.
[0171] The request status is used to indicate that the image forming device requests the information processing device to forward data.
[0172] As a possible implementation manner, the processing unit 1002 is specifically configured to set the target state information to a request state if the first transmission condition is not met.
[0173] As a possible implementation manner, the target state information includes state information that can be acquired by the information processing device through a preset transmission protocol.
[0174] As a possible implementation manner, the processing unit 1002 is specifically configured to send a forwarding data request message to the information processing device if the first transmission condition is not met.
[0175] As a possible implementation, the first transmission condition includes a first communication transmission condition and / or a first security transmission condition. The first communication transmission condition at least includes: having the ability to communicate with the target address over the network and / or satisfying the condition that the amount of data to be sent is not greater than a preset data amount threshold.
[0176] The first security transmission condition at least includes: having the ability to transmit data to the first device and / or satisfying the condition that the target address is the address information of the second device. The first device refers to a device other than the information processing device; the second device is a device that meets the first preset security condition.
[0177] As a possible implementation manner, the processing unit 1002 is further configured to store the data to be sent in a target storage area if the first transmission condition is not met.
[0178] The target storage area is a storage area in the image forming device that can be read by the information processing device.
[0179] As a possible implementation manner, the sending unit 1003 is further configured to, in response to the first confirmation information, encrypt the data to be sent according to preset encryption information, and send the encrypted data to be sent to the information processing device.
[0180] The first confirmation information is used to indicate that the information processing device is able to transmit the data to be sent to the target address.
[0181] As a possible implementation manner, the processing unit 1002 is further configured to switch from a request state to a non-request state when receiving feedback information sent by the information processing device.
[0182] The feedback information is used to indicate that the information processing device has sent the data to be sent to the target address.
[0183] As a possible implementation manner, the processing unit 1002 is further configured to, in a non-requested state, if the first confirmation information is received, not respond to the first confirmation information.
[0184] The first confirmation information is used to indicate that the information processing device is able to transmit the data to be sent to the target address.
[0185] See also Fig.11, is a schematic diagram of the structure of an information processing device provided in an embodiment of the present application. Fig.11 As shown, the information processing device includes: The acquisition unit 1101 is used to acquire the target address of the image forming device when the image forming device is in a requesting state.
[0186] The target address is the address information of the data to be sent in the image forming device. The request state is used to indicate that the image forming device requests the information processing device to forward data.
[0187] The processing unit 1102 is configured to determine, based on the target address, whether a second transmission condition exists for transmitting the to-be-sent data to the target address.
[0188] The acquisition unit 1101 is further configured to acquire the data to be sent if the second transmission condition is met.
[0189] The sending unit 1103 is further configured to send the data to be sent based on the target address.
[0190] As a possible implementation manner, the acquisition unit 1101 is further configured to acquire target state information of the image forming device.
[0191] The acquisition unit 1101 is specifically configured to acquire a target address of the image forming device when the target state information of the image forming device is in a request state.
[0192] As a possible implementation method, the above information processing device, refer to Fig.12 As shown, it also includes: The receiving unit 1104 is configured to receive a data forwarding request message sent by the image forming device.
[0193] The acquiring unit 1101 is specifically configured to acquire a target address of the image forming device when receiving a forwarding data request message sent by the image forming device.
[0194] As a possible implementation, the second transmission condition includes a second communication transmission condition and / or a second security transmission condition; the second communication transmission condition at least includes: having the ability to communicate with the target address over the network. The second security transmission condition includes: the information processing device meets the second preset security condition and / or the target address meets the third preset security condition.
[0195] As a possible implementation manner, the acquiring unit 1101 is specifically configured to acquire the to-be-sent data of the image forming device from a target storage area of the image forming device.
[0196] The target storage area is a storage area in the image forming device that can be read by the information processing device.
[0197] As a possible implementation manner, the sending unit 1103 is further configured to send the first confirmation information to the image forming device.
[0198] The first confirmation information is used to indicate that the information processing device is able to transmit the data to be sent to the target address.
[0199] The acquisition unit 1101 is specifically configured to receive encrypted data information sent by the image forming device and decrypt the encrypted data information to obtain data to be sent.
[0200] As a possible implementation manner, the processing unit 1102 is further configured to delete the acquired data to be sent.
[0201] The sending unit 1103 is further configured to send feedback information to the image forming device.
[0202] The feedback information is used to indicate that the information processing device has sent the data to be sent to the target address.
[0203] Corresponding to the above-mentioned embodiments, the present application also provides an image forming device, comprising a memory for storing computer program instructions and a processor for executing program instructions, wherein when the computer program instructions are executed by the processor, the image forming device executes the data transmission method described in the above-mentioned embodiments.
[0204] Corresponding to the above embodiments, the present application also provides an information processing device. Fig.13 The schematic diagram of the structure of an information processing device provided in an embodiment of the present invention is as follows: the information processing device 1200 may include: a processor 1201, a memory 1202, and a communication unit 1203. These components communicate via one or more buses. It can be understood by those skilled in the art that the structure of the information processing device shown in the figure does not constitute a limitation on the embodiment of the present invention. It may be a bus structure or a star structure, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0205] The communication unit 1203 is used to establish a communication channel so that the information processing device can communicate with other devices, receive user data sent by other devices or send user data to other devices.
[0206] The processor 1201 is the control center of the information processing device. It uses various interfaces and lines to connect various parts of the entire information processing device. It runs or executes software programs, instructions, and / or modules stored in the memory 1202, and calls data stored in the memory to perform various functions of the information processing device and / or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of multiple packaged ICs with the same or different functions. For example, the processor 1201 can include only a central processing unit (CPU). In an embodiment of the present invention, the CPU can be a single computing core or multiple computing cores.
[0207] The memory 1202 is used to store the execution instructions of the processor 1201. The memory 1202 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0208] When the execution instructions in the memory 1202 are executed by the processor 1201 , the information processing device 1200 is enabled to execute part or all of the steps in the above embodiments.
[0209] In a specific implementation, the present invention further provides a data transmission system, including the image forming device described in the above embodiment and the information processing device described in the above embodiment.
[0210] In a specific implementation, the present invention further provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment of the data transmission method provided by the present invention. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0211] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention or certain parts of the embodiments.
[0212] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the device embodiment and the terminal embodiment, since they are basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.
Claims
1. A data transmission method, characterized in that: Applied to an image forming device, the method comprises: Get the target address of the data to be sent; Based on the target address, determining whether a first transmission condition exists for transmitting the to-be-sent data to the target address; If the first transmission condition is not met, a request state is entered to enable the information processing device to obtain and forward the data to be sent; the request state is used to indicate that the image forming device requests the information processing device to forward data.
2. The method according to claim 1, characterized in that If the first transmission condition is not met, entering the request state includes: If the first transmission condition is not met, the target state information is set to the request state.
3. The method according to claim 2, characterized in that The target status information includes status information that can be acquired by the information processing device through a preset transmission protocol.
4. The method according to claim 1, characterized in that: If the first transmission condition is not met, entering the request state includes: If the first transmission condition is not met, a forwarding data request message is sent to the information processing device.
5. The method according to claim 1, characterized in that The first transmission condition includes a first communication transmission condition and / or a first security transmission condition; the first communication transmission condition includes: having the ability to communicate with the target address over the network and / or satisfying the condition that the amount of data to be sent is not greater than a preset data amount threshold; The first secure transmission condition includes at least: having the ability to transmit data to the first device and / or satisfying the condition that the target address is the address information of the second device; the first device refers to a device other than the information processing device; the second device is a device that meets the first preset security condition.
6. The method according to claim 1, characterized in that Also includes: If the first transmission condition is not met, storing the data to be sent in a target storage area; The target storage area is a storage area in the image forming apparatus that can be read by the information processing apparatus.
7. The method according to claim 1, characterized in that Also includes: In response to the first confirmation information, encrypting the data to be sent according to preset encryption information, and sending the encrypted data to be sent to the information processing device; The first confirmation information is used to indicate that the information processing device is capable of transmitting the data to be sent to the target address.
8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: When receiving feedback information sent by the information processing device, the request state is switched to the non-request state; the feedback information is used to indicate that the information processing device has sent the data to be sent to the target address.
9. The method according to claim 8, characterized in that Also includes: In the non-request state, if a first confirmation message is received, the first confirmation message is not responded to; The first confirmation information is used to indicate that the information processing device is capable of transmitting the data to be sent to the target address.
10. A data transmission method, characterized in that: Applied to an information processing device, the method comprises: When the image forming device is in a request state, acquiring a target address of the image forming device; the target address is address information of data to be sent in the image forming device; the request state is used to indicate that the image forming device requests the information processing device to forward data; Based on the target address, determining whether a second transmission condition exists for transmitting the to-be-sent data to the target address; If the second transmission condition is met, the data to be sent is acquired, and the data to be sent is sent based on the target address.
11. The method according to claim 10, characterized in that Also includes: acquiring target state information of the image forming device; When the image forming device is in a requesting state, obtaining the target address of the image forming device comprises: When the target state information of the image forming device is a request state, a target address of the image forming device is acquired.
12. The method according to claim 10, characterized in that Also includes: receiving a forwarding data request message sent by an image forming device; When the image forming device is in a requesting state, obtaining the target address of the image forming device comprises: When receiving the forwarding data request message sent by the image forming device, the target address of the image forming device is acquired.
13. The method according to claim 10, characterized in that The second transmission condition includes a second communication transmission condition and / or a second security transmission condition; The second communication transmission condition at least includes: having the ability to conduct network communication with the target address; The second security transmission condition includes: the information processing device meets a second preset security condition and / or the target address meets a third preset security condition.
14. The method according to claim 10, characterized in that The obtaining of data to be sent comprises: The data to be sent by the image forming device is acquired from a target storage area of the image forming device; wherein the target storage area is a storage area in the image forming device that can be read by the information processing device.
15. The method according to claim 10, characterized in that The method further comprises: If the second transmission condition is met, sending first confirmation information to the image forming device; the first confirmation information is used to indicate that the information processing device is able to send the data to the target address; The obtaining of data to be sent comprises: receiving encrypted data information sent by the image forming device; The encrypted data information is decrypted to obtain the data to be sent.
16. The method according to claim 10, characterized in that Also includes: deleting the acquired data to be sent, and sending feedback information to the image forming device; The feedback information is used to indicate that the information processing device has sent the data to be sent to the target address.
17. An image forming device, characterized in that: include: An acquisition unit, used for acquiring a target address of data to be sent; a processing unit, configured to determine, based on the target address, whether a first transmission condition exists for transmitting the data to be sent to the target address; The processing unit is further configured to enter a request state if the first transmission condition is not met, so that the information processing device can obtain and forward the data to be sent; the request state is used to indicate that the image forming device requests the information processing device to forward data.
18. An information processing device, characterized in that: include: an acquisition unit, configured to acquire a target address of the image forming device when the image forming device is in a requesting state; The target address is the address information of the data to be sent in the image forming device; the request status is used to represent that the image forming device requests the information processing device to forward data; a processing unit, configured to determine, based on the target address, whether a second transmission condition exists for transmitting the to-be-sent data to the target address; The acquisition unit is further configured to acquire the data to be sent if the second transmission condition is met; A sending unit is used to send the data to be sent based on the target address.
19. An image forming device, characterized in that: The invention comprises a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the image forming device is caused to execute the method according to any one of claims 1 to 9.
20. An information processing device, characterized in that: The information processing device comprises a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the information processing device executes the method according to any one of claims 10 to 16.
21. A data transmission system, characterized in that: The invention comprises the image forming apparatus according to claim 19 and the information processing apparatus according to claim 20.
22. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method described in any one of claims 1 to 9; or execute the method described in any one of claims 10 to 16.
Citation Information
Patent Citations
Data transmission method, related devices and storage medium
CN107707449A
Data transmission method and device for cloud printing, equipment and storage medium
CN109819527A
Data transmission method and device, electronic equipment and storage medium
CN111556112A
Unmanned driving data transmission system, method, device and equipment and storage medium
CN114007201A
Data transmission method, system and device in network and readable storage medium
CN114867060A