A printing method and system across network segments
A cross-network segment and printer technology, applied in the cross-network segment printing method and system field, can solve problems such as inconvenient operation, shielding of illegal external data packets, and inability to communicate directly, so as to improve convenience and realize printing sharing Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0060] Please refer to figure 1 , Embodiment 1 of the present invention is:
[0061] A cross-segment printing method provided by the present invention comprises the following steps:
[0062] S1: The PC in the subnet and the mobile terminal in the parent network establish a UDP communication connection through network address translation technology;
[0063] The S1 is specifically:
[0064] The PC end that is in the subnet sends the first UDP packet, the source address of the first UDP packet is the IP address of the PC end, and the destination address of the first UDP packet is the IP address of the mobile terminal, so that the NAT device Change the source address in the first UDP data packet to a preset first address to obtain the second UDP data packet, and send it in groups to the second UDP data packet; the mobile terminal in the parent network receives the second UDP data packet data packet, and send the 3rd UDP data packet to NAT equipment, the destination address of ...
Embodiment 2
[0078] Please refer to figure 2 , the second embodiment of the present invention is:
[0079] First, the PC end opens the TCP (Transmission Control Protocol) service. If the PC end is in the subnet, the PC end sends UDP (User Datagram Protocol) packets to the network segment where the POS machine is located. Since the PC is in the subnet, the NAT A communication address mapping relationship will be generated, that is, when a PC accesses a terminal with a certain IP in the parent network (upper layer) network segment, NAT will convert the source communication address of the UDP packet into a legal communication address of the upper layer network segment, and the destination communication address will remain unchanged. The data packet can reach the terminal of the upper network segment, so that the POS machine located in the parent network can receive the UDP packet of the PC, and at the same time, the POS can use the source communication address of the UDP packet to access the...
Embodiment 3
[0085] Please refer to image 3, Embodiment three of the present invention is:
[0086] A cross-segment printing system provided by the present invention includes a PC end in a subnet and a mobile terminal in a parent network, the PC end includes a memory, a processor, and a computer stored in the memory and operable on the processor. A computer program, the processor implements the following steps when executing the program:
[0087] S1: The PC in the subnet and the mobile terminal in the parent network establish a UDP communication connection through network address translation technology;
[0088] The S1 is specifically:
[0089] The PC end that is in the subnet sends the first UDP packet, the source address of the first UDP packet is the IP address of the PC end, and the destination address of the first UDP packet is the IP address of the mobile terminal, so that the NAT device Change the source address in the first UDP data packet to a preset first address to obtain th...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


