Movatterモバイル変換


[0]ホーム

URL:


CN107483655B - A kind of printer IP fixing means and device, computer installation, storage medium - Google Patents

A kind of printer IP fixing means and device, computer installation, storage medium
Download PDF

Info

Publication number
CN107483655B
CN107483655BCN201710905154.9ACN201710905154ACN107483655BCN 107483655 BCN107483655 BCN 107483655BCN 201710905154 ACN201710905154 ACN 201710905154ACN 107483655 BCN107483655 BCN 107483655B
Authority
CN
China
Prior art keywords
address
printer
old
new
final
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710905154.9A
Other languages
Chinese (zh)
Other versions
CN107483655A (en
Inventor
王春华
李益洪
梁嘉豪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jiabo Zhilian Software Co ltd
Original Assignee
Zhuhai Shengyuan Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Shengyuan Information Technology Co ltdfiledCriticalZhuhai Shengyuan Information Technology Co ltd
Priority to CN201710905154.9ApriorityCriticalpatent/CN107483655B/en
Publication of CN107483655ApublicationCriticalpatent/CN107483655A/en
Application grantedgrantedCritical
Publication of CN107483655BpublicationCriticalpatent/CN107483655B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

A kind of printer IP fixing means and device of present invention offer, computer installation and storage media, this method include:After booting printing self test page, IP obtaining modes are determined;If IP obtaining modes are dynamic access IP patterns, open DHCP service and obtain new IP address;Judge whether the new IP address got has different network address from the old IP address of storage, if so, generating final IP address using the network address of IP address and the host address of old IP address;It locks and stores final IP address.Printer IP fixing devices provide execution module for this method.There is the computer installation of the present invention processor, processor above-mentioned printer IP fixing means may be implemented when executing program.Storage medium is stored with computer program, to realize above-mentioned printer IP fixing means.Setting can be fixed in order to the IP address for print machine of fighting each other in the present invention.

Description

A kind of printer IP fixing means and device, computer installation, storage medium
Technical field
The present invention relates to printer technology fields, specifically, being related to a kind of printer IP fixing means, and apply the partyThe device of method.A kind of computer installation for realizing the above method is further related to, the storage that can realize the above method is further related toMedium.
Background technology
Printer is when in use usually using fixed IP(Internet Protocol, the agreement interconnected between network)Address, existing printer can be configured when IP address is arranged the mode obtained by way of manual setting or automatically.Manual setting mode is:It is configured using the computer for being in the same network segment with printer, printer is entered by computerIP address be arranged interface, by being manually entered IP address and locking, to complete printer fixed ip address setting.FromMoving the mode obtained is:Printer can obtain an idle IP address automatically after the upper cable of connection by DHCP service, willThe IP address locks the fixed ip address as printer.
Printer when in use, if the router or the network segment in LAN are replaced, needs to carry out printerIP address is retightened, if LAN inprinter quantity is excessive, for every printer retighten IP need spend compared withIt is more times, relatively complicated.
Invention content
The first object of the present invention is to provide a kind of printer IP fixing means for being convenient for IP address being fixed setting.
The second object of the present invention is to provide a kind of printer IP fixing devices for being convenient for IP address being fixed setting.
The third object of the present invention is to provide a kind of computer installation for being convenient for IP address being fixed setting.
The fourth object of the present invention is to provide a kind of storage medium for being convenient for IP address being fixed setting.
In order to realize that above-mentioned main purpose, printer IP fixing means provided by the invention include:Booting printing self test pageAfterwards, IP obtaining modes are determined;If IP obtaining modes are dynamic access IP patterns, open DHCP service and obtain new IP address;Judge whether the new IP address got has different network address from the old IP address of storage, if so, utilizing IP addressThe host address of network address and old IP address generates final IP address;It locks and stores final IP address.
It is new by what is got by said program as it can be seen that printer IP fixing means of the present invention is under dynamic access IP patternsIP address is compared with the old IP address of storage, if the network address of new IP address and the network address of old IP address exist notTogether, then it utilizes the host address of network address and the old IP address of IP address to generate final IP address, can save and renumberTrouble, provides facility to the user.
In further embodiment, after obtaining new IP address, printer IP fixing means further includes:Whether judge old IP addressFor original factory IP address, if so, locking and storing using new IP address as final IP address.
It can be seen that printer is when first used, storage be factory default address, therefore, it is necessary to reacquireNew IP address is fixed and uses.
In further embodiment, after final IP address is locked and stored, printer IP fixing means further includes:It closesDHCP service simultaneously prints self test page.
It can be seen that in order to avoid repeating automatic acquisition IP address printer is switched on next time when, with obtaining final IPBehind location, DHCP service is closed, meanwhile, self test page is printed, the IP address service condition of current printer is known convenient for user.
In further embodiment, new IP address is obtained, including:If being got in preset time different from old IP addressIP address then gets new IP address.
It can be seen that when obtaining IP address, if not getting the address different from old IP address in preset time,The new IP address that then possible network breaks down or gets retains as the old IP address of storage and stores old IP address.
In order to realize that above-mentioned second purpose, printer IP fixing devices provided by the invention include:IP obtaining modes determineModule determines IP obtaining modes after the printing self test page that is switched on;IP address module is obtained, if being for IP obtaining modesState obtains IP patterns, then opens DHCP service and obtain new IP address;IP address module is generated, for judging the new IP gotWhether address has different network address from the old IP address of storage, if so, using the network address of IP address and old IPThe host address of location generates final IP address;Locking module is stored, for locking and storing final IP address.
It is new by what is got by said program as it can be seen that printer IP fixing devices of the present invention are under dynamic access IP patternsIP address is compared with the old IP address of storage, if the network address of new IP address and the network address of old IP address exist notTogether, then the host address of the network address for utilizing IP address and old IP address generates final IP address, can save to printer weightThe trouble newly numbered, provides facility to the user.
In order to realize that above-mentioned third purpose, computer installation provided by the invention include processor, which is used forEach step of above-mentioned printer IP fixing means is realized when executing the computer program stored in memory.
In order to realize that above-mentioned 4th purpose, storage medium provided by the invention are stored thereon with computer program, and calculateMachine program realizes each step of above-mentioned printer IP fixing means when being executed by processor.
Description of the drawings
Fig. 1 is the flow chart of printer IP fixing means embodiments of the present invention.
Fig. 2 is the structure diagram of printer IP fixing device embodiments of the present invention.
The invention will be further described with reference to the accompanying drawings and embodiments.
Specific implementation mode
On the printer IP fixing means application printers of the present invention, to need to fix in router or network segment replacement etc.Automatic fixed ip address is realized in the case of IP address.The printer IP fixing devices of the present invention are run on a printer, andFor realizing above-mentioned printer IP fixing means.Also, the present invention also provides a kind of computer installation, the computer installation packetsProcessor is included, processor can be with the instruction of executing application, to realize each step of above-mentioned printer IP fixing meansSuddenly.It is stored with computer program on the computer readable storage medium of the offer of the present invention, and computer program is held by processorEach step of above-mentioned printer IP fixing means is realized when row.
Printer IP fixing means embodiments:
As shown in Figure 1, step S1 is first carried out when carrying out IP address fixation in the printer IP fixing means of the present invention,After booting printing self test page, IP obtaining modes are determined.Printer prints self test page after getting starting-up signal, after printing self test pageTriggering determines the step of IP obtaining modes.In the present embodiment, IP obtaining modes include static acquisition IP patterns and dynamic access IPPattern, wherein it refers to that fixed ip address has been stored in printer that static state, which obtains IP patterns, is fixed by this after printer bootingIP address carries out network communication;Dynamic access IP patterns refer to printer booting after can obtain automatically an idle IP address intoRow network communication.The determination of printer IP obtaining modes can be configured by the function button of printer, can also by withThe IP address setting page that the computer of printing interconnection plane enters printer is configured.For example, in the function using printerWhen button progress IP obtaining modes determine, the selection page of IP obtaining modes, printer are entered by the setting button of printerDisplay screen display need the IP obtaining mode options of selection, IP obtaining modes to be used are needed simultaneously by selection key selectionConfirmed.
After determining IP obtaining modes, step S2 is executed, if IP obtaining modes are dynamic access IP patterns, opens DHCP(Dynamic Host Configuration Protocol, dynamic host configuration protocol)It services and obtains new IP address.In IPObtaining mode be dynamic access IP patterns after, first turn on DHCP service, make printer that can obtain IP address automatically.Obtaining IPWhen address, printer superior routing server sends automatic acquisition IP signals, and routing server is that printer distributes a skyNot busy IP address, and printer is fed back to, to which printer gets IP address.
Wherein, the step of acquisition new IP address includes:If with getting the IP different from old IP address in preset timeLocation then gets new IP address.Preset time can be the time threshold that printer system developer is configured, for example,The time threshold of setting is 30 seconds, i.e., the IP address different from old IP address is got in 30 seconds, then it is assumed that gets new IPAddress.After printer obtains IP address, if judging, the IP address obtained is different from the old IP address that printer stores, and recognizesTo get new IP address, if the IP address obtained is identical as old IP address or does not get IP address, then it is assumed that do not haveGet new IP address.
After getting new IP address, step S3 is executed, judges whether old IP address is original factory IP address.Printer goes outThe original factory IP address of acquiescence is provided with when factory, the old IP address and original factory IP address stored by comparing printer,It can determine whether printer is first use or factory reset.
When judging the old IP address of storage for original factory IP address, step S4 is executed, it will be using new IP address as mostWhole IP address, that is, need fixed final IP address using the IP address got automatically as printer.
When it is not original factory IP address to judge the old IP address of storage, step S5 is executed, judges the new IP gotWhether address has different network address from the old IP address of storage.IP address is divided into two portions of network address and host addressPoint, for example, IP address " 192.168.2.28 ", first three byte " 192.168.2 " is network address, and the 4th byte " 28 " isHost address.When whether the new IP address for judging to get has different network address from the old IP address of storage, only needJudge whether first three byte identical, when first three byte of two IP address is identical if think network having the sameAddress, when first three byte of two IP address is not exactly the same if think do not have identical network address.If for example, newIP address is " 192.168.2.38 ", and old IP address is " 192.168.2.58 ", then new IP address has identical with old IP addressNetwork address;If new IP address be " 192.168.2.38 ", old IP address be " 192.168.1.58 ", then new IP address with it is oldIP address has different network address.
When executing step S5, when being judged as NO, that is, the old IP address of the new IP address and storage that get is having the sameWhen network address, S6 is thened follow the steps, using old IP address as final IP address.
When executing step S5, judge that the new IP address got has different network address from the old IP address of storageWhen, step S7 is executed, final IP address is generated using the network address of IP address and the host address of old IP address.In printerDuring use, be generally set with fixed IP address, needed when the network segment changes in order to prevent again to printer intoRow number makes printer that can retain original number, is obtained convenient for user therefore, it is necessary to retain the host address in old IP addressKnow the corresponding IP address of printer.For example, the new IP address got is " 156.52.52.54 ", the old IP address of storageFor " 192.168.1.58 ", then the final IP address that the host address of the network address for utilizing IP address and old IP address generates is“156.52.52.58”。
After obtaining final IP address, step S8 is executed, locks and stores final IP address.After obtaining final IP address,Fixed IP address is needed to be stored in printer using final IP address as printer, while level-1 router is sent most upwardsWhole IP address is confirmed and is stored, to make network-in-dialing.
After locking and storing final IP address, step S9 is executed, close DHCP service and prints self test page.It locks and storesIt after final IP address, then need not carry out obtaining IP address automatically again, IP obtaining modes can be switched to static acquisition IP patterns, becauseThis, DHCP service is closed.In order to which user can be allowed to will be seen that the IP address service condition of current printer, is locking and depositingAfter storing up final IP address, self test page is printed, so that user checks.Wherein, to include printer current printer in self test page makeIP address information.
It should be noted that locking and can not also close DHCP service after storing final IP address, beaten restarting every timeWhen print machine, IP address can be voluntarily obtained, but since host address uses the host address of old IP address, Bu HuiyinThis causes the confusion in IP address management.
Printer IP fixing device embodiments:
As shown in Fig. 2, the printer IP fixing devices of the present invention include IP obtaining modes determining module 1, obtain IP addressModule 2, for the first time setting module 3 generate IP address module 4, storage locking module 5 and close service module 6.
After IP obtaining modes determining module 1 is for the printing self test page that is switched on, IP obtaining modes are determined.Printer is got outSelf test page is printed after machine signal, IP obtaining modes determining module 1 is determined IP obtaining modes after booting prints self test pageStep.In the present embodiment, IP obtaining modes include static acquisition IP patterns and dynamic access IP patterns, wherein static state obtains IPPattern refers to that fixed ip address has been stored in printer, and network communication is carried out by the fixed ip address after printer booting;Dynamic access IP patterns refer to that can obtain an idle IP address after printer is switched on automatically to carry out network communication.Printer IPThe determination of obtaining mode can be configured by the function button of printer, can also pass through the computer with printing interconnection planeThe IP address setting page into printer is configured.
If it is dynamic access IP patterns to obtain IP address module 2 for IP obtaining modes, opens DHCP service and obtainNew IP address.If IP obtaining modes are dynamic access IP patterns, open DHCP service and obtain new IP address.Mould is obtained in IPFormula be dynamic access IP patterns after, first turn on DHCP service, make printer that can obtain IP address automatically.Obtaining IP addressWhen, printer superior routing server sends automatic acquisition IP signals, and routing server is that printer distribution one is idleIP address, and printer is fed back to, to which printer gets IP address.
Obtaining 2 acquisition new IP address of IP address module includes:If being got in preset time different from old IP addressIP address then gets new IP address.Preset time can be the time threshold that printer system developer is configured.It obtainsAfter taking IP address module 2 to obtain IP address, if judging, the IP address obtained is different from the old IP address that printer stores,Think to get new IP address, if the IP address obtained is identical as old IP address or does not get IP address, then it is assumed that do not haveGet new IP address.
Setting module 3 is for judging whether the old IP address is original factory IP address for the first time, if so, by the new IPAddress locks and stores as the final IP address.Printer is provided with the original factory IP address of acquiescence when dispatching from the factory, for the first timeSetting module 3 can determine whether printer is first by comparing the old IP address and original factory IP address of printer storageUsing or factory reset.When judging the old IP address of storage for original factory IP address, new IP address will be madeFor final IP address, that is, need fixed final IP address using the IP address got automatically as printer.
IP address module 4 is generated for judging it is different whether the old IP address of the new IP address and storage got hasNetwork address, if so, generating final IP address using the network address of IP address and the host address of old IP address.IP address pointFor two parts of network address and host address, for example, IP address " 192.168.2.28 ", first three byte " 192.168.2 "For network address, the 4th byte " 28 " is host address.It is in the old IP address of new IP address and storage that judgement is gotIt is no have different network address when, only need to judge whether first three byte identical, if first three byte of two IP address is completeNetwork address having the same is then thought when exactly the same, when first three byte of two IP address is not exactly the same if think notNetwork address having the same.
When the old IP address network having the same for generating new IP address and storage that the judgement of IP address module 4 is gotWhen location, using old IP address as final IP address.
Judge the new IP address that gets and the old IP address of storage with different networks when generating IP address module 4When location, final IP address is generated using the network address of IP address and the host address of old IP address.In the mistake that printer usesCheng Zhong is generally set with fixed IP address, needs that printer is numbered again when the network segment changes in order to prevent, becauseThis, needs to retain the host address in old IP address, makes printer that can retain original number, convenient for user know printer withIts corresponding IP address.
Storage locking module 5 is for locking and storing final IP address.By final IP address after obtaining final IP addressFixed IP address is needed to be stored in printer as printer, while level-1 router sends final IP address progress upwardsConfirm and store, to make network-in-dialing.
Service module 6 is closed for closing the DHCP service and printing self test page.It locks and stores final IP addressAfterwards, then it need not carry out obtaining IP address automatically again, IP obtaining modes can be switched to static acquisition IP patterns and therefore close clothesBusiness module 6 closes DHCP service.In order to which user can be allowed to will be seen that the IP address service condition of current printer, lockingAfter determining and storing final IP address, closes service module 6 and print self test page, so that user checks.Wherein, self test page includesThere is the IP address information that printer current printer uses.
Certainly, it locks and can not also close DHCP service after storing final IP address, it, can when restarting printer every timeIP address is voluntarily obtained, but since host address uses the host address of old IP address, it will not with therefore causing IPThe managerial confusion in location.
Computer installation embodiment:
The computer installation of the present invention can be include the devices such as processor and memory, such as include central processingThe microcontroller etc. of device.Also, the processor of computer installation can execute the computer program stored in memory, work as processingWhen device executes computer program, each step in above-mentioned printer IP fixing means may be implemented, including IP obtaining modes are trueFixed step obtains the step of IP address, generates the step of the step of IP address module, storage locking IP address, DHCP serviceThe step of open and close and for the first time set respective operations the step of etc..
Storage medium embodiment:
The computer readable storage medium of the present invention can be by the read any form of the processor of computer installationStorage medium, including but not limited to nonvolatile memory, volatile memory, ferroelectric memory etc. are computer-readable to depositComputer program is stored on storage media, when the processor of computer installation is read and executes the computer stored in memoryWhen program, each step in above-mentioned printer IP fixing means, including the step of IP obtaining modes determination, acquisition may be implementedThe step of IP address, generates the step of the step of IP address module, storage locking IP address, the step that DHCP service opens and closesIt is rapid and for the first time set respective operations the step of etc..
It can be seen from the above, printer IP fixing means of the present invention is under dynamic access IP patterns, by the new IP gotLocation is compared with the old IP address of storage, if the network address of new IP address and the network address of old IP address there are different,The host address of the network address for then utilizing IP address and old IP address generates final IP address, can save the fiber crops renumberdIt is tired, provide facility to the user.
It should be noted that these are only the preferred embodiment of the present invention, but the design concept invented is not limited thereto,All insubstantial modifications made to the present invention using this design, are also each fallen within protection scope of the present invention.

Claims (10)

CN201710905154.9A2017-09-292017-09-29A kind of printer IP fixing means and device, computer installation, storage mediumActiveCN107483655B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201710905154.9ACN107483655B (en)2017-09-292017-09-29A kind of printer IP fixing means and device, computer installation, storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201710905154.9ACN107483655B (en)2017-09-292017-09-29A kind of printer IP fixing means and device, computer installation, storage medium

Publications (2)

Publication NumberPublication Date
CN107483655A CN107483655A (en)2017-12-15
CN107483655Btrue CN107483655B (en)2018-10-02

Family

ID=60604838

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201710905154.9AActiveCN107483655B (en)2017-09-292017-09-29A kind of printer IP fixing means and device, computer installation, storage medium

Country Status (1)

CountryLink
CN (1)CN107483655B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110187852A (en)*2019-06-032019-08-30宜春宜联科技有限公司The Dynamic Configuration and printer of printer interface address, server
CN114980273A (en)*2022-06-062022-08-30普联技术有限公司Wireless network configuration method and device, readable storage medium and terminal equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2005100270A (en)*2003-09-262005-04-14Minolta Co LtdPrinting control program and printer
JP2005252578A (en)*2004-03-032005-09-15Fuji Xerox Co LtdNetwork device and method and program for setting network information
JP2006295532A (en)*2005-04-112006-10-26Kyocera Mita CorpInformation processor, network connection program and network connecting method
JP4816572B2 (en)*2007-05-302011-11-16富士ゼロックス株式会社 Virtual network connection system and apparatus
JP2011124695A (en)*2009-12-092011-06-23Seiko Epson CorpNetwork-connected apparatus and network connection method
US9756148B2 (en)*2014-09-112017-09-05Aruba Networks, Inc.Dynamic host configuration protocol release on behalf of a user

Also Published As

Publication numberPublication date
CN107483655A (en)2017-12-15

Similar Documents

PublicationPublication DateTitle
US11153171B2 (en)Extending center cluster membership to additional compute resources
US20250233799A1 (en)Model driven process for automated deployment of domain 2.0 virtualized services and applications on cloud infrastructure
US20210297328A1 (en)Method and Entities for Service Availability Management
US10999312B2 (en)Systems and methods for protecting a service mesh from external attacks on exposed software vulnerabilities
US10397352B2 (en)Network infrastructure management
US7710900B2 (en)Method and system for providing network management based on defining and applying network administrative intents
US9264291B2 (en)Printer searching device
CN108370368B (en) Security policy deployment method and device
CN108322467B (en) OVS-based virtual firewall configuration method, electronic device and storage medium
US20180004563A1 (en)Orchestrator apparatus, system, virtual machine creation method, and computer-readable recording medium
JP6555676B2 (en) Resource management method and apparatus
CN109240796A (en)Virtual machine information acquisition methods and device
JP2009514283A (en) Network configuration
WO2017204699A1 (en)Automatic network management system, method and computer program product
CN114205280A (en)Application publishing method and flow routing method based on container cloud and service grid
JP6378442B2 (en) Method and apparatus for deploying services in a virtualized network
CN107483655B (en)A kind of printer IP fixing means and device, computer installation, storage medium
WO2017204700A1 (en)Automatic network management system, methods and computer program product
Freitas et al.Slicing and allocation of transformable resources for the deployment of multiple virtualized infrastructure managers (vims)
CN110505187B (en)Security rule management method, system, server and storage medium in hybrid cloud
CN112769829A (en)Deployment method of cloud physical machine, related equipment and readable storage medium
US20100146120A1 (en)Caller-specific visibility masks for networking objects
EP3729730B1 (en)Methods and apparatus for life cycle management in virtual networks
CN114221827B (en) Method, device and system for obtaining traceability information
CN108901082A (en)A kind of cut-in method and device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
CB02Change of applicant information
CB02Change of applicant information

Address after:519055 Guangdong province Zhuhai Yuele Pingsha Town Road No. 20 main building 2 floor

Applicant after:Zhuhai Shengyuan Mdt InfoTech Ltd

Address before:Zhuhai City, Guangdong province Pingsha town 519000 Ping Road No. 328 East No. 11 building 201

Applicant before:Zhuhai Shengyuan Mdt InfoTech Ltd

GR01Patent grant
GR01Patent grant
TR01Transfer of patent right
TR01Transfer of patent right

Effective date of registration:20190425

Address after:519000 No. 168 Yile Road, Pingsha Town, Zhuhai City, Guangdong Province

Patentee after:Zhuhai Zhihui network equipment Co., Ltd.

Address before:519055 2nd Floor, Main Workshop, No. 20 Yile Road, Pingsha Town, Jinwan District, Zhuhai City, Guangdong Province

Patentee before:Zhuhai Shengyuan Mdt InfoTech Ltd

TR01Transfer of patent right
TR01Transfer of patent right

Effective date of registration:20210708

Address after:518000 37 / F, joint headquarters building, high tech Zone, 63 Gaoxin South 10th Road, Binhai community, Yuehai street, Nanshan District, Shenzhen City, Guangdong Province

Patentee after:Shenzhen Jiabo Zhilian Software Co.,Ltd.

Address before:519000 No. 168 Yile Road, Pingsha Town, Zhuhai City, Guangdong Province

Patentee before:ZHUHAI SMARNET EQUIPMENT Co.,Ltd.


[8]ページ先頭

©2009-2025 Movatter.jp