Method for modifying IP address of printer in local area network, computer device and computer storage medium

By broadcasting and searching for printer information in the LAN and sending address modification instructions, it solves the inconvenience and limitations of printer IP address modification in the LAN, enabling fast and convenient IP address modification and subnet mask and gateway address settings, which is suitable for many applications. printer environment.

CN118732966AInactive Publication Date: 2024-10-01ZHONGSHAN POLONO ELECTRONIC TECHNOLOGY CO LTD

Patent Information

Application Number
CN202410886014.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-10-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

There are inconveniences and usage limitations in modifying the printer's IP address in a local area network. Especially when multiple printers exist, it is difficult for users to quickly determine and modify the printer's IP address, and existing methods rely on USB ports, COM ports, or DHCP services.

Method used

The computer device broadcasts and searches for printer information in the local area network, receives and displays the printer's identification information, obtains and sends address modification instructions, realizes the broadcast modification of the printer's IP address, and prompts the user to identify the target printer through response instructions and lights, and when necessary Modify the subnet mask and gateway address.

Benefits of technology

It realizes quick and convenient modification of printer IP address, avoids dependence on USB port and DHCP service, simplifies user operation, and is suitable for multiple printer environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure HDA0004926076920000011
    Figure HDA0004926076920000011
  • Figure HDA0004926076920000021
    Figure HDA0004926076920000021
Patent Text Reader

Abstract

The invention relates to a method for modifying an IP address of a printer in a local area network, a computer device and a computer storage medium. The modification method comprises the following steps that the computer device broadcasts information for searching a printer in a local area network; the computer device receives self identification information sent by the searched printer in the same local area network in a broadcast mode; after receiving the identification information sent by the printer, the computer device displays the received identification information; and the computer device obtains an address modification instruction for the target printer, modifies the IP address of the target printer according to the address modification instruction, and sends the identification information of the target printer and the modified IP address information to the local area network in a broadcast manner. According to the invention, a user can conveniently and rapidly modify the IP address of the printer in the local area network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network technology; in particular, to a method for modifying an IP address of a printer in a local area network, a computer device for implementing the method, and a computer storage medium. Background Art

[0002] Printers are common office equipment that need to receive data to be printed sent by computer devices through the network when working. For this reason, printers and computer devices usually need to be arranged in the same local area network. In an actual office environment, a local area network may be equipped with multiple computer devices and one or more printers. Since the IP address of the printer in the local area network needs to be updated and modified according to the actual use requirements of the local area network, however, when there are multiple electronic devices in the local area network, users are often unclear about the IP address currently used by the printer, which brings inconvenience to the modification of the IP address of the printer.

[0003] In the prior art, the method of modifying the IP address of a printer in a local area network is usually to set the IP address statically or via DHCP. If the static setting method is used, the IP address is generally set via a USB port or a COM port; if the DHCP method is used, after the IP address is assigned to the printer, the printer needs to perform a printing operation once before knowing the specific IP address assigned to the printer. Moreover, if there is no DHCP service mode, the IP address of the printer may not be obtained, which results in the inability to print using the network port connection method.

[0004] It can be seen that the existing printer IP address modification methods are either inconvenient to operate or have limitations in use and need to be improved. Summary of the invention

[0005] The main purpose of the present invention is to provide a method for quickly and conveniently modifying the IP address of a printer in a local area network.

[0006] In order to achieve the above main purpose, the first aspect of the present invention provides a method for modifying the IP address of a printer in a local area network, comprising the following steps:

[0007] The computer device broadcasts information searching for printers in the local area network;

[0008] The computer device receives the identification information of the searched printer in the same local area network and broadcasts it. After receiving the identification information sent by the printer, the computer device displays the received identification information of the printer.

[0009] The computer device obtains an address modification instruction for the target printer, and modifies the IP address of the target printer according to the address modification instruction;

[0010] The computer device sends the identification information of the target printer and the modified IP address information to the local area network in a broadcasting manner.

[0011] In the above technical solution, after receiving the modified IP address information corresponding to itself, the target printer in the local area network saves the modified IP address information and restarts the network module to complete the update of its own IP address.

[0012] Furthermore, if the computer device receives identification information sent by more than two printers in the local area network, after the computer device displays the identification information of the received printer, it also executes the following steps: sending response instructions to the selected printers one by one, so that the printers receiving the response instructions execute preset response operations, and the user determines whether the selected printer is the target printer through the printer's response operation.

[0013] Optionally, the response instruction is at least one of a buzzer sound instruction and an indicator light instruction. After receiving the buzzer sound instruction, the printer with a buzzer makes its own buzzer sound; after receiving the indicator light instruction, the printer with an indicator makes its own indicator light, so that the user can quickly determine the location of the printer.

[0014] According to a specific embodiment of the present invention, before the computer device sends a response instruction to the selected printers one by one, a response instruction sending button is displayed on the interactive interface of the computer device for each printer that needs to send a response instruction. When the instruction that the response instruction sending button is clicked is obtained, the response instruction is sent to the corresponding printer.

[0015] In the above technical solution, the user only needs to click the response instruction sending button corresponding to each printer to let the computer device issue a response instruction, so that the selected printer performs a response operation, so that the user knows which printer the response instruction sending button currently clicked is, so that the user can more easily distinguish between each printer.

[0016] Preferably, before the computer device sends a response instruction to the selected printers one by one, the following step is further performed: confirming the receipt of identification information sent by all searched printers in the same local area network, the identification information may be the MAC address information or ID information of the printer. The computer device will send a response instruction only after confirming the receipt of identification information sent by all searched printers in the same local area network, which can ensure that the user can identify each printer one by one after knowing the information of all searched printers, thereby avoiding the user from missing or misidentifying each printer.

[0017] Preferably, when the computer device modifies the IP address of the target printer according to the address modification instruction, the subnet mask and / or gateway address of the target printer are also modified. When the IP address of the printer is modified, the subnet mask and gateway address of the printer are also set, so that the modification of the IP address is more comprehensive and complete.

[0018] Preferably, when the computer device sends the identification information of the target printer and the modified IP address information to the local area network in a broadcast manner, it also sends the subnet mask and / or gateway address of the target printer.

[0019] Furthermore, the printer search information broadcast by the computer device in the local area network is set to search for printers in a specific range or all printers in the local area network.

[0020] A second aspect of the present invention discloses a computer device, comprising a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, any one of the above-mentioned methods for modifying the printer IP address is implemented.

[0021] A third aspect of the present invention discloses a computer-readable storage medium, wherein the computer-readable medium stores a computer program, and when the computer program is executed, any one of the above-mentioned methods for modifying the printer IP address is implemented.

[0022] The technical solution of the present invention has the following beneficial effects:

[0023] In the present invention, after the computer device sends broadcast search information of the printer through the local area network, the searched printer in the local area network also sends its own identification information in a broadcast manner, and the computer device modifies the IP address of each printer according to the identification information of each printer, and sends the IP address information of each printer to the local area network in a broadcast manner, so that each printer can receive the modified IP address information. In this way, the modification of the IP address information of the printer does not need to be performed using a USB port or a COM port, nor does it rely on a DHCP service. The user only needs to perform simple operations on the computer device, so that the modification operation of the printer IP address is very convenient and fast.

[0024] Furthermore, in the case where there are multiple searched printers in the local area network, response instructions are sent to the selected printers one by one to make the selected printer perform a response operation (such as a buzzer sounding or a light prompt). When the selected printer performs the response operation, the user can establish a corresponding relationship between the currently responding printer and the selected printer, thereby distinguishing the printer corresponding to each identification information, so as to quickly determine the target printer.

[0025] In order to more clearly illustrate the purpose, technical solutions and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 is a flow chart of an embodiment of a method for modifying a printer IP address of the present invention;

[0027] Figure 2 It is a structural block diagram of multiple devices using an embodiment of the printer IP address modification method of the present invention. DETAILED DESCRIPTION

[0028] In the following description, many specific details are explained in conjunction with specific embodiments to facilitate a full understanding of the present invention. However, it should be understood that the following embodiments and detailed descriptions are only for illustrative purposes and do not limit the scope of protection of the present invention.

[0029] The printer IP address modification method of the present invention is applied in a local area network, in which at least one computer device and at least one printer are arranged, and the user modifies the IP address of the printer by operating the computer device. It should be noted that the computer device of the present invention can be a device with computing functions such as a desktop computer, a laptop computer, a smart phone, etc. Preferably, a program that can be used to modify the IP address of the printer is run on the computer device, and the program can be an APP or a small program running on a smart phone, or a client program running on a desktop computer or a laptop computer.

[0030] For example, see Figure 2 The computer device 10 and the printers 11, 12 and 13 are arranged in the same local area network. A client program or APP or applet is running on the computer device 10. The client program or APP or applet can send information to the printers 11, 12 and 13 through the local area network, and can also receive information returned by the printers 11, 12 and 13.

[0031] Each printer 11, 12, 13 has a network module and records its own physical address, namely, the MAC address. When each printer 11, 12, 13 is connected to a local area network, it is usually assigned an IP address within the local area network. During the use of the printer, the user may need to modify the IP address of the printer, that is, the IP address of the printer needs to be reset. This embodiment is a method for modifying the IP address of a printer within a local area network by means of a client program or an APP or a small program running on a computer device 10. The following is combined with Figure 1 This method will be described in detail.

[0032] See also Figure 1, when modifying the IP address of the printer, you first need to start the client program or APP, applet on the computing device 10. The present invention takes the client program running on a desktop computer as an example. When the client program is started, an interactive interface will be displayed on the desktop computer, and a button for searching printers in the local area network will be displayed on the interactive interface. After the user clicks the button, the computer device 10 executes step S11: broadcasting information for searching printers to the local area network, such as broadcasting a message in a preset format to the local area network. The message can be set to search all printers in the local area network, or it can be set to search only for printers in a specific range (for example, only searching for printers of a specific model or a specific brand). In actual application, the content and format of the message in step S11 can be freely defined according to actual conditions, as long as the search purpose can be achieved. Exemplarily, the content of the broadcast message is "AAA0001DISCO".

[0033] After the computer device 10 broadcasts the above message through the local area network, all printers in the same local area network receive the above message. At this time, the printers that meet the search requirements will send their own identification information to the local area network in a broadcast manner. Among them, if the information for searching printers sent by the computer device 10 is not for a specific printer, all printers will send their own identification information to the local area network; if the information for searching printers sent by the computer device 10 is only for printers of a specific model or brand, only the printers that meet the requirements will send their own identification information to the local area network.

[0034] When the printer sends its own identification information to the local area network, it needs to parse the received message first. After identifying that the message is to query the printer's IP address, the printer will send its own identification information to the local area network in a broadcast manner. Among them, the identification information sent by the printer can be the printer's own MAC address information, that is, physical address information.

[0035] For example, the content of the identification information message sent by the printer is "AAA0001ACK+MAC address". It should be noted that other identifiers can also be used to determine the identity of the printer, such as pre-setting an ID number with a defined format and meaning in the printer, and sending its own ID number to the local area network when broadcasting, so as to distinguish each printer. In other words, the identification information of the printer only needs to have a unique correspondence with the printer itself.

[0036] Next, the computer device 10 will execute step S12: receiving and displaying identification information returned by all printers (referring to the searched printers). Specifically, the computer device 10 displays the received identification information of each printer on the interactive interface of the client program or APP or mini program.

[0037] Preferably, the computer device 10 further performs the following steps: confirming receipt of identification information sent by all searched printers located in the same local area network. Only after confirming receipt of identification information sent by all printers that meet the requirements, the identification information of each received printer is displayed. For example, if there are five printers that meet the search requirements in the local area network, the computer device 10 will display the identification information of the five printers together on the interactive interface after receiving the identification information of the five printers.

[0038] If there are multiple printers that meet the search requirements in the local area network, the identification information of multiple printers is displayed on the interactive interface at the same time, and the user often does not know which printer the identification information corresponds to. For example, the first printer is placed at position A, the second printer is placed at position B, and so on, but the interactive interface of the computer device 10 only displays the identification information of multiple printers, and does not display the location of each printer, so that the user does not know which identification information displayed on the interactive interface corresponds to the printer placed at position A.

[0039] To this end, preferably, if the computer device 10 receives identification information sent by more than two printers in the local area network, the computer device 10 further executes the following step S13: sending response instructions to the selected printers one by one, and the printers receiving the response instructions execute a preset response operation, and the user determines whether the selected printer is the target printer through the response operation of the printer. It is easy to understand that if the computer device 10 only receives identification information sent by one printer in the local area network, the printer can be determined as the target printer, and step S13 can be omitted accordingly.

[0040] Preferably, when the computer device 10 displays the identification information of each printer on the interactive interface, a button is displayed corresponding to each piece of identification information, and the button is a response instruction sending button. When the user clicks the response instruction sending button corresponding to a piece of identification information, the computer device 10 will send a response instruction to the printer corresponding to the identification information, and the printer receiving the response instruction executes a preset response operation. In this way, the user can establish a corresponding relationship between the currently responding printer and the selected printer, and then determine which printer each piece of identification information corresponds to.

[0041] In the embodiment, the response instruction sent by the computer device 10 may be a BEEP instruction, wherein the function of the BEEP instruction is to make the printer buzzer sound when the printer receives the instruction. It can be understood that the BEEP instruction is a buzzer sound instruction. Therefore, in the embodiment, each printer needs to be provided with a buzzer, and when the printer receives the BEEP instruction, it will drive its own buzzer to sound, so that the user can quickly distinguish each printer.

[0042] As a variation of the embodiment, in addition to making the buzzer of the printer sound, the identification of each printer can also be achieved by driving the indicator light on the printer to light up. For example, a response instruction sending button is displayed corresponding to each piece of identification information. When the user clicks the response instruction sending button corresponding to a piece of identification information, the printer will send an indicator light lighting instruction to the printer corresponding to the identification information. The printer that receives the indicator light lighting instruction executes a preset response operation, such as starting its own indicator light and making it light up, or emitting light of a specific color. In this way, the user can know which printer each piece of identification information corresponds to, and can also allow the user to quickly distinguish each printer.

[0043] Next, the user can modify the IP address of the target printer queried and obtained by the computer device 10. Specifically, the computer device 10 executes step S14 of obtaining the target printer address modification instruction and step S15 of modifying the IP address of the target printer. If the judgment result of step S14 is yes, the computer device executes step S15, otherwise, it continues to wait for the user to input the new IP address information for the target printer, and the computer device 10 can automatically generate the address modification instruction according to the IP address information input by the user.

[0044] In the present invention, for each piece of identification information (i.e., for each printer), a window for inputting a new IP address can be displayed on the interactive interface. When the user selects a piece of identification information, the new IP address information for the selected printer can be input on the interactive interface. The selected printer is the target printer. After the user inputs the new IP address information, the computer device 10 can automatically generate and obtain the address modification instruction, and then modify the IP address of the target printer. For example, an input box is also displayed after the identification information of each printer, for inputting the new IP address information of the printer.

[0045] Preferably, when the user inputs the new IP address information of the target printer, the user also inputs the new subnet mask and / or gateway address of the target printer, thereby completing the setting of the IP address information of the target printer.

[0046] Next, the computer device 10 executes step S16: sending the identification information of the target printer and the modified IP address information to the local area network in a broadcasting manner. For example, a button for sending a new IP address is displayed on the interactive interface, and when the user clicks the button, the computer device 10 sends the identification information of the target printer and the modified IP address information to the local area network in a broadcasting manner.

[0047] Preferably, when the computer device 10 sends the new IP address of the target printer, it also sends the new subnet mask and / or gateway address of the target printer. Exemplarily, the IP address modification message broadcast by the computer device 10 to the local area network may be "AAA0001SET+MAC address+IP address+subnet mask+gateway address".

[0048] After receiving the modified IP address information corresponding to itself, the target printer in the local area network saves the modified IP address information and restarts the network module to complete the update of its own IP address.

[0049] Since the message broadcast by the computer device 10 contains the MAC address information of the target printer, the printer located in the local area network parses the message after receiving the message broadcast by the computer device 10, and identifies whether the identification information (such as MAC address) in the message matches itself. If so, it means that the message currently sent by the computer device 10 is a message sent to the current printer. The current printer will update its own IP address, subnet mask, and gateway address according to the IP address, subnet mask, and gateway address in the message, and restart the network module after the IP address, subnet mask, and gateway address are updated. After the network module is restarted, the IP address of the printer in the local area network will be updated to the new IP address.

[0050] If the printer parses the message broadcast by the computer device 10 and finds that the identification information of the message does not match its own, it means that the computer device 10 is not modifying the current IP address of the printer, and therefore will not respond to the message.

[0051] A second aspect of an embodiment of the present invention discloses a computer device, which includes a processor and a memory, wherein the memory stores a computer program executable by the processor, and when the computer program is executed by the processor, the aforementioned printer IP address modification method can be implemented.

[0052] In this embodiment, the processor may include a central processing unit (CPU), a digital signal processor (DSP), a network processor (NP), an application specific integrated circuit (ASIC), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components and other chips, or a combination of the above chips. The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs, non-transient computer executable programs and modules. In an embodiment, the memory may include a random access memory (RAM) and may also include a non-volatile memory (NVM), such as at least one disk storage. Furthermore, the memory and the processor can be independently set and communicatively connected, and the memory and the processor can also be integrated together.

[0053] A third aspect of an embodiment of the present invention discloses a computer-readable storage medium storing a computer program, which can implement the aforementioned printer IP address modification method when executed on a computer device.

[0054] In this embodiment, the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk drive (HDD) or a solid state drive (SSD), etc.; the storage medium may also include a combination of the above types of memory.

[0055] In summary, the method of the present invention can quickly set and modify the IP address of the printer in the local area network, and does not require the use of a USB port or a COM port, nor does it modify the IP address in a DHCP setting manner. Therefore, the limitation of use is small, making the operation of modifying the IP address of the printer very convenient.

[0056] Although the present invention has been described above through embodiments, it should be understood that the above embodiments are only used to exemplarily describe the feasible implementation schemes of the present invention and should not be interpreted as limiting the scope of protection of the present invention. That is, any substitution or change made by those skilled in the art in accordance with the present invention should also be covered by the scope of protection of the claims of the present invention.

Claims

1. A method for modifying the IP address of a printer in a local area network, characterized in that: The steps include: The computer device broadcasts information searching for printers in the local area network; The computer device receives the self-identification information sent by the searched printer in the same local area network in a broadcast manner; After receiving the identification information sent by the printer, the computer device displays the received identification information of the printer; The computer device obtains an address modification instruction for a target printer, and modifies the IP address of the target printer according to the address modification instruction; The computer device sends the identification information of the target printer and the modified IP address information to the local area network in a broadcasting manner.

2. The method for modifying the IP address of a printer in a local area network according to claim 1, characterized in that: If the computer device receives identification information sent by more than two printers in the local area network, the computer device further performs the following steps after displaying the received identification information of the printer: A response instruction is sent to each of the selected printers, so that the printer receiving the response instruction executes a preset response operation, and the user determines whether the selected printer is the target printer through the response operation of the printer.

3. The method for modifying the IP address of a printer in a local area network according to claim 2, characterized in that: The response instruction is at least one of a buzzer sound instruction and an indicator light instruction.

4. The method for modifying the IP address of a printer in a local area network according to claim 2, characterized in that: Before the computer device sends a response instruction to the selected printers one by one, a response instruction sending button is displayed on the interactive interface of the computer device for each printer to which the response instruction needs to be sent. When the instruction that the response instruction sending button is clicked is obtained, the response instruction is sent to the corresponding printer.

5. The method for modifying the IP address of a printer in a local area network according to any one of claims 2 to 4, characterized in that: Before the computer device sends a response instruction to the selected printer, the following steps are also performed: confirming receipt of identification information sent by all searched printers located in the same local area network; the identification information is the MAC address information or ID information of the printer.

6. The method for modifying the IP address of a printer in a local area network according to any one of claims 1 to 4, characterized in that: When the computer device modifies the IP address of the target printer according to the address modification instruction, the subnet mask and / or gateway address of the target printer is also modified.

7. According to the method for modifying the IP address of a printer in a local area network according to any one of claims 1 to 4, when the computer device sends the identification information of the target printer and the modified IP address information to the local area network in a broadcast manner, it also sends the subnet mask and / or gateway address of the target printer.

8. The method for modifying the IP address of a printer in a local area network according to any one of claims 1 to 4, characterized in that: The printer search information broadcast by the computer device in the local area network is set to search for printers in a specific range or all printers in the local area network.

9. A computer device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the method according to any one of claims 1 to 8 is implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed, the method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Image processing device

    CN101039251A

  • Network device location and configuration

    CN101558602A

  • Method of discovery and communication with industrial equipment

    CN102204220A

  • Visual modification method, system and device for IP address of camera and medium

    CN117221281A

  • Network device management method, network device management program, and network control apparatus

    CN1640059A

Cited By

  • Printer management method, computer device, storage medium and program product

    WO2026092098A1