CN106502599A - The collocation method of printer, device and printer - Google Patents
The collocation method of printer, device and printer Download PDFInfo
- Publication number
- CN106502599A CN106502599A CN201610819228.2A CN201610819228A CN106502599A CN 106502599 A CN106502599 A CN 106502599A CN 201610819228 A CN201610819228 A CN 201610819228A CN 106502599 A CN106502599 A CN 106502599A
- Authority
- CN
- China
- Prior art keywords
- printer
- information
- signal value
- changing pattern
- configuration
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1202—Dedicated interfaces to print systems specifically adapted to achieve a particular effect
- G06F3/1203—Improving or facilitating administration, e.g. print management
- G06F3/1205—Improving or facilitating administration, e.g. print management resulting in increased flexibility in print job configuration, e.g. job settings, print requirements, job tickets
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1229—Printer resources management or printer maintenance, e.g. device status, power levels
- G06F3/1231—Device related settings, e.g. IP address, Name, Identification
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1278—Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
- G06F3/1285—Remote printer device, e.g. being remote from client or server
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
The application is with regard to a kind of collocation method of printer, device and printer.Methods described includes:When printer is in configuration status, signal value queue corresponding with the ultrared Changing Pattern that configurating terminal sends is obtained;The Changing Pattern is that the configurating terminal is determined according to information to be configured and pre-arranged code rule;The Changing Pattern is detected by the scarce paper detector on printer;According to pre-arranged code rule, information to be configured corresponding with the signal value queue is determined;The value of the parameter to be configured of printer is defined as the information to be configured.It can be seen that, in above-mentioned configuration process, as configurating terminal is printer to be configured using ultrared Changing Pattern, such that it is able to avoid the operation that printer and other equipment are carried out network connection, lift the efficiency of configuration process.
Description
Technical field
The application is related to printer technology field, more particularly to a kind of collocation method of printer, device and printer.
Background technology
At present, it is often necessary to carry out parameter configuration to printer, the parameter of configuration is needed to include:IP address, needs
The wireless network name that is connected to, the domain name addresses of server for requiring connect to etc..In prior art, for possessing man-machine friendship
Mutually for the printer at interface, user can be input into by man-machine interface to be needed the value of the parameter that configured to realize to printing
The configuration of machine.And for some printers for not possessing human-computer interaction interface, generally require by means of other equipment (such as:
Computer) configuring to such printer.However, when configuring to printer by other equipment, generally requiring pre-
Printer is carried out network connection with the other equipment first, for example, network connection is carried out or by means of nothing by USB connecting lines
Gauze network carries out network connection.
It can be seen that, the at present process configured by the above-mentioned printer for not possessing man-machine interface is relatively complicated.
Content of the invention
For overcoming problem present in correlation technique, the embodiment of the present application to provide a kind of collocation method of printer, device
And printer.
According to the first aspect of the embodiment of the present application, there is provided a kind of collocation method of printer, including:
When printer is in configuration status, signal corresponding with the ultrared Changing Pattern that configurating terminal sends is gathered
Value queue;The Changing Pattern is that the configurating terminal is determined according to information to be configured and pre-arranged code rule, the change
Rule is detected by the scarce paper detector on printer;
According to pre-arranged code rule, by the type to be configured and parameter determination to be configured of printer it is and the signal value team
Arrange corresponding information to be configured.
According to the second aspect of the embodiment of the present application, there is provided a kind of collocation method of printer, including:
According to pre-arranged code rule, signal value queue corresponding with information to be configured is determined;
Determine the corresponding ultrared Changing Pattern of described information value queue;
According to the Changing Pattern, the infrared transmitter controlled on configurating terminal carries out ultrared transmitting;Described infrared
Line is used for being detected for the scarce paper sensor of printer.
According to the third aspect of the embodiment of the present application, there is provided a kind of configuration device of printer, including:
Collecting unit, for when printer is in configuration status, gathering the ultrared change sent with configurating terminal
The corresponding signal value queue of rule;The Changing Pattern is that the configurating terminal is true according to information to be configured and pre-arranged code rule
Fixed, the Changing Pattern is detected by the scarce paper detector on printer;
Determining unit, for according to pre-arranged code rule, by the type to be configured and parameter determination to be configured of printer being
Information to be configured corresponding with the signal value queue.
According to the fourth aspect of the embodiment of the present application, there is provided a kind of configuration device of printer, including:
Queue determining unit, for according to pre-arranged code rule, determining signal value queue corresponding with information to be configured;
Rule determining unit, for determining the corresponding ultrared Changing Pattern of described information value queue;
Control unit, for according to the Changing Pattern, the infrared transmitter on control configurating terminal carries out ultrared
Transmitting;The infrared ray is used for being detected for the scarce paper sensor of printer.
In terms of the 5th of the embodiment of the present application, there is provided a kind of printer, including:
The scarce paper detector is used for:
When printer is in configuration status, the ultrared Changing Pattern that configurating terminal sends is detected;The change rule
Rule is that the configurating terminal is determined according to information to be configured and pre-arranged code rule;
The processing unit is used for:
According to the Changing Pattern for detecting, signal value queue corresponding with the Changing Pattern is determined;
According to pre-arranged code rule, by the type to be configured and parameter determination to be configured of printer it is and the signal value team
Arrange corresponding information to be configured.
The technical scheme that embodiments herein is provided can include following beneficial effect:
The application is configured to printer by a configurating terminal, during configuring to printer, configuration
Terminal determines ultrared Changing Pattern corresponding with the information to be configured according to information to be configured and pre-arranged code rule,
And ultrared transmitting is carried out according to the Changing Pattern.Subsequently, printer is by lacking paper detector (for detecting that printer is
No scarce paper) the ultrared Changing Pattern that configurating terminal sends is detected, and obtain signal value team corresponding with the Changing Pattern
Row, finally, according to pre-arranged code rule, by the type to be configured and parameter determination to be configured of printer be and the signal value team
Arrange corresponding information to be configured.It can be seen that, in above-mentioned configuration process, as configurating terminal is using ultrared Changing Pattern pair
Printer is configured, and such that it is able to avoid the operation that printer and other equipment are carried out network connection, lifts configuration process
Efficiency.
Also, the scarce paper detector carried using printer is detecting ultrared Changing Pattern, pass without the need for additional
Sensor, cost-effective.
It should be appreciated that above general description and detailed description hereinafter are only exemplary and explanatory, not
The application can be limited.
Description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the enforcement for meeting the present invention
Example, and the principle for being used for explaining the present invention together with specification.
Fig. 1 is the flow process of the collocation method (based on printer) of the printer exemplified according to one enforcement of the application
Figure;
Fig. 2 is a kind of scene graph of the collocation method of the printer exemplified according to one enforcement of the application;
Fig. 3 is the particular flow sheet with regard to the step 102 in method exemplified according to one enforcement of the application;
Fig. 4 is the flow process of the collocation method (based on configurating terminal) of the printer exemplified according to one enforcement of the application
Figure;
Fig. 5 is the configuration device (being applied on printer) of the printer according to one exemplary embodiment of the application
Block diagram;
Fig. 6 is that the configuration device of the printer exemplified according to the enforcement of the application another exemplary (is applied to printer
On) block diagram;
Fig. 7 is the configuration device (being applied on configurating terminal) of the printer according to one exemplary embodiment of the application
Block diagram;
Fig. 8 is the module map of the printer according to one exemplary embodiment of the application.
Specific embodiment
Here in detail exemplary embodiment will be illustrated, its example is illustrated in the accompanying drawings.Explained below is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent and the consistent all embodiments of the present invention.Conversely, they be only with as appended by
The example of consistent apparatus and method in terms of some being described in detail in claims, of the invention.
It is the purpose only merely for description specific embodiment in term used in this application, and is not intended to be limiting the application.
" one kind ", " described " and " being somebody's turn to do " of singulative used in the application and appended claims is also intended to include majority
Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein is referred to and is wrapped
Containing one or more associated any or all possible combination for listing project.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used for same type of information is distinguished from each other out.For example, without departing from
In the case of the application scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depend on linguistic context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determining ".
Fig. 1 is the flow chart of the collocation method of the printer exemplified according to one enforcement of the application, and Fig. 2 is according to the application
A kind of scene graph of one collocation method for implementing the printer for exemplifying.The executive agent of methods described can be printer, or
One or more parts in printer.In order to configure to the parameter of printer, the printer can be wrapped methods described
One or more parameters to be configured for needing configuration are included, and configuration process can be the mistake that assignment is carried out to the parameter to be configured
Journey.In the present embodiment, the printer can be thermal printer, and the thermal printer can be with POS terminal or cashier's machine
Etc. being attached, or it is integrated on the equipment such as above-mentioned POS terminal or cashier's machine.The operation principle of thermal printer is to beat
Semiconductor heating element heater is installed on print head, printhead is heated and contacts thermal print media (typically paper) and can just print afterwards
The pattern of needs.The thermal print media includes paper substrate and coats one layer of chromonic layer on the paper substrate surface, chromonic layer
Can be made up of adhesive, developer, leuco dye (or claiming leuco dye).Thermal printer does not generally have because of small volume
Standby human-computer interaction interface, that is to say, that user cannot be configured to thermal printer by human-computer interaction interface.Such as Fig. 1 institutes
Show, the present embodiment, the collocation method of the printer may include following steps 101~102:
In a step 101, when printer is in configuration status, the ultrared change rule that collection is sent with configurating terminal
Restrain corresponding signal value queue;Wherein, the Changing Pattern is that the configurating terminal is advised according to information to be configured and pre-arranged code
Then determine, the Changing Pattern is detected by the scarce paper detector on printer.
In the present embodiment, the configurating terminal can include:Mobile phone, panel computer, personal digital assistant (PDA) etc..Can
Realized in order to the application APP configured by above-mentioned printer by installing on configurating terminal.
As described in Figure 2, in a kind of exemplary scene, to be carried out to printer 10 using the APP installed on mobile phone 20
As a example by the process of configuration, when being configured, above-mentioned APP can be passed through and enter the configuration page 21, can be with the configuration page 21
Select the type to be configured of printer of needs configuration (such as:IP address), and treat with described in the 23 interior input of corresponding input frame
The corresponding parameter to be configured of Configuration Type is (such as:192.168.1.4), after input is completed, can be pressed by clicking on " configuration "
Key 24 is triggering the beginning of configuration process.It is noted that user is in a configuration process, one or at least can be directed to
Two types to be configured are configured.Such as, the type to be configured of configuration is needed to include:" IP address " and " clothes for requiring connect to
The domain name addresses of business device ", the parameter to be configured corresponding with " IP address " of input can be:" 192.168.1.4 ", input with
" domain name addresses of the server being connected to " corresponding parameter to be configured can be:“http://su.meituan.com ", with
Afterwards, user clicks on " configuration " button 24 to configure above-mentioned two type to be configured and parameter to be configured.
It should be noted that herein, it is comprising " type to be configured " and " to be configured that can define " information to be configured "
The information of parameter ".At least one of above-mentioned " type to be configured ", " parameter to be configured " can be enterprising in configurating terminal by user
Row input.
In the scene of above-mentioned example, after " configuration " button 24 is clicked on, mobile phone 20 needs according to default volume user
Code rule, determines corresponding with the information to be configured of user input signal value queue, and according to the signal value queue, determine and
Corresponding ultrared Changing Pattern, and according to the Changing Pattern control mobile phone on infrared transmitter (can be mobile phone
On carry, or arrange independently of mobile phone) lighted.The pre-arranged code rule can be used for character with binary number
It is indicated, for example, (American Standard Code for Information Interchange, the U.S. believe ASCII
Breath exchange standard code).Wherein, according to pre-arranged code rule, it may be determined that with input information to be configured in include every
The corresponding binary number of one character.For example, for parameter to be configured:The character " 1 " included in " 192.168.1.4 " can be corresponded to
In binary number:" 00110001 ", comprising character " 6 " can correspond to binary number:" 00110110 ", etc..Above-mentioned pre-
If coding rule can be written in the memory space of mobile phone in advance, so as to the processing unit of mobile phone can pass through reading, this is pre-
If coding rule, determine binary number corresponding with each character for including in the information to be configured, and obtain by each
The signal value queue of binary number composition.By taking ASCII as an example, for parameter to be configured:" 192.168.1.4 ", corresponding
Signal value queue can be:
“00110001 00111001 00110010 0010 1110 00110001 00110110 001110000010
1110 0011 000 0010 1110 00110100”.
For mobile phone, it may be predetermined that each signal value and infra-red intensity that above-mentioned signal value queue includes
Corresponding relation.For example, when there is infrared ray to send, the signal value of representative is:" 1 ", when will send without infrared ray, generation
The signal value of table is:“0”.It is of course also possible to infrared ray divided multiple intensity brightness degree from low to high, each grade with
A kind of corresponding signal value carries out corresponding.For example, infrared ray is set to 4 kinds of brightness degrees:Not luminous (i.e. intensity is 0), most
The 1/3 of high intensity, the 1/2 of maximum intensity, and maximum intensity.Wherein, with " intensity is 0 " corresponding signal value can be
" 00 ", can be " 01 " with " the 1/3 of maximum intensity " corresponding signal value, and corresponding signal value can with " the 1/2 of maximum intensity "
To be " 10 ", signal value corresponding with " maximum intensity " can be " 11 ".In a word, right with signal value with regard to ultrared intensity
Should be related to, however it is not limited to above-mentioned situation about enumerating.
Determining signal value queue corresponding with information to be configured, and according to the signal value queue, determine and letter
After number value corresponding ultrared Changing Pattern of queue, mobile phone just can control infrared transmitter to be carried out according to the Changing Pattern
Transmitting infrared ray.For example, it is assumed that a segment signal value queue is:" 1010 ", then can correspondingly control infrared transmitter and exist
The action of " light-dark-light-dark " is carried out in a period of time.Wherein it is possible to control luminescence component carry out according to certain frequency infrared
The transmitting (such as every change in 0.1 second once) of line.
It should be noted that what above-mentioned information to be configured not can also be input on mobile phone by user, in other enforcements
In example, the information for coming from other equipment can be received by mobile phone by network, and using the information for receiving as letter to be configured
Breath is configured.
Usually, thermal printer can include scarce paper detector (being not shown) for detecting whether to lack paper.
The scarce paper detector is photoelectric coupled device, can be installed in paper input slot, can be generally located at the lower section of printer roll,
In order to detect whether printer has paper.The scarce paper detector can include an infrared transmitter and a receiver, when there is paper,
The infrared ray of infrared transmitter transmitting can be reflected by paper and is received by the receiver, receiver receive infrared ray it
Afterwards, high level can be sent (such as to MCU:+ 5V) signal., whereas if user is not used up to paper on printer or paper, above-mentioned
The infrared ray of infrared transmitter transmitting can not reach receiver due to being hacked coloring agent rolling and absorb, and now receiver just can be to
MCU sends low level (such as:0V) signal, it is possible to reported to the police with scarce paper lantern by buzzer.It should be noted that at other
In feasible embodiment, the set location and operation principle of the scarce paper detector on printer can be not limited to above procedure,
Need to only guarantee that lacking paper detector can sense infrared ray.
In the present embodiment, it is possible to use the scarce paper detector on thermal printer, the infrared ray of the transmitting of mobile phone 20 is detected
Changing Pattern, to complete the configuration process of printer.After user clicks on " configuration " button 24 on mobile phone, can be by hand
Machine 20 is positioned over the position that can be sensed by scarce paper detector on thermal printer and (generally can open paper input slot, incite somebody to action
Scarce paper detector is exposed to the external world), infrared with what the infrared transmitter of mobile phone 20 sent to lack the collection of paper detector by the light
The corresponding signal value sequence of the Changing Pattern of line.Wherein, above-mentioned thermal printer 10 may also include a MCU
(Microcontroller Unit, micro-control unit), in order to the low and high level signal sent according to above-mentioned scarce paper detector, really
Make signal value sequence corresponding with the low and high level signal.
As the scarce paper detector on printer has two kinds of functions:One is for detecting that whether printer lacks paper and report
Alert, two is for gathering information to be configured to printer when configuring.In one embodiment, due to needing to detect scarce paper
Device is switched between above two function, is gathering signal corresponding with the ultrared Changing Pattern that configurating terminal sends
Before value queue, methods described can also include:
When configuration order is received, printer is built in configuration status in a preset duration.User can be by beating
Triggering configuration order, after configuration order sends, printer can be in a period of time for certain function button on print machine
(such as:2 minutes) interior in configuration status.After printer is in configuration status, above-mentioned scarce paper detector just can not have inspection
Survey and whether lack paper and in the function of lacking paper alarm.
In another embodiment, signal value queue corresponding with the ultrared Changing Pattern that configurating terminal sends is being gathered
Before, methods described can also include:
When power-on command is received, printer is built in configuration status in a preset duration.That is, will print
A period of time after machine unlatching is (such as:2 minutes) it is defaulted as configuration status.User can be by restarting printer by printer
It is switched to configuration status and is configured.
In a step 102, according to pre-arranged code rule, by the type to be configured and parameter determination to be configured of printer be with
The corresponding information to be configured of the signal value queue.
In one embodiment, the signal value queue can include:First signal value subqueue and the sub- team of secondary signal value
Row;Wherein, the first signal value subqueue in order to characterize type to be configured, treat in order to characterize by the secondary signal value subqueue
Configuration parameter.
In above-mentioned scene, pre-arranged code rule in the memory cell on thermal printer 10, is previously stored with, this is preset
Coding rule is consistent with the pre-arranged code rule prestored on mobile phone 20.The MCU of thermal printer 10 can pass through to read in advance
The pre-arranged code rule for first storing, and using pre-arranged code rule, determines and corresponding with the signal value queue for collecting waits to match somebody with somebody
Confidence ceases.For example, if the type to be configured that the information to be configured that user is input on mobile phone includes is " IP address ", wait to match somebody with somebody
Putting parameter is:" 192.168.1.4 ", then mobile phone 20 can determine first signal corresponding with type " IP address " to be configured
Value subqueue, e.g.:
" 0100100101010000 " (artificially can formulate).
Mobile phone 20 can determine secondary signal value subqueue corresponding with parameter " 192.168.1.4 " to be configured, example
In this way:
“00110001 00111001 00110010 0010 1110 00110001 00110110 001110000010
1110 0011 000 0010 1110 00110100”.
Finally, mobile phone 20 can determine the signal value queue comprising above-mentioned first, second signal value subqueue.Certainly, root
According to being actually needed or communication protocol, signal values that other needs are added in signal value queue, can also be included.
In the present embodiment, printer 10 can identify the first letter included in signal value queue with default recognition rule
Number value subqueue and secondary signal value subqueue.The recognition rule may, for example, be:Above-mentioned first signal value subqueue (or
Secondary signal value subqueue) in first signal value before increase corresponding distinguishing mark, and last signal value it
After increase corresponding distinguishing mark.
By according to pre-arranged code rule, printer 10 can be determined and the signal value queue according to signal value queue
Corresponding information to be configured, and be the information to be configured by the type to be configured and parameter determination to be configured of printer 10, with
Complete the configuration process of one or more to printer type to be configured.
To sum up, during being configured to an equipment to be configured using a configurating terminal, the configurating terminal according to
Information to be configured and pre-arranged code rule determine ultrared Changing Pattern corresponding with the information to be configured, and according to the change
Law carries out ultrared transmitting.Subsequently, the ultrared change rule that equipment to be configured is sent by collection and configurating terminal
Corresponding signal value queue is restrained, and according to pre-arranged code rule, by the type to be configured and parameter determination to be configured of printer is
Information to be configured corresponding with the signal value queue, so that complete the process configured by equipment to be configured.It can be seen that, upper
State in configuration process, as configurating terminal is equipment to be configured to be configured using ultrared Changing Pattern, such that it is able to
The operation that equipment to be configured and other equipment are carried out network connection is avoided, the efficiency of configuration process is lifted.
Also, the scarce paper detector carried using printer is detecting ultrared Changing Pattern, without the need for enter to printer
The change (as increased sensor) of row hardware aspect, cost-effective.
Fig. 3 is the particular flow sheet with regard to the step 102 in equipment configuration method exemplified according to one enforcement of the application,
In the present embodiment, the executive agent of the step 102 can be printer or the one or more parts on printer, above-mentioned step
Rapid 102 can comprise the steps 1021~1023:
In step 1021, according to pre-arranged code rule, information to be configured corresponding with the signal value queue is determined.
As mentioned above, it is assumed that the first signal value queue included in the signal value queue for collecting is as follows:
“0100100101010000”;
Assume that the secondary signal value queue included in the signal value queue for collecting is as follows:
“00110001 00111001 00110010 0010 1110 00110001 00110110 001110000010
1110 0011 000 0010 1110 00110100”.
Then printer can determine " treat corresponding with above-mentioned first signal value queue according to the pre-arranged code rule for prestoring
Identification types " are " IP address ", and corresponding with above-mentioned secondary signal value queue " parameter to be identified " is " 192.168.1.4 ".
In step 1022, according to the feature corresponding with the type to be configured included in the information to be configured for prestoring,
Judge whether the parameter to be configured included in the information to be configured meets the feature;If including in the information to be configured
Parameter to be configured meets the feature, enters step 1023.If the parameter to be configured included in the information to be configured does not meet
The feature, then may return to step 1022.
For each type to be configured, there can be corresponding feature.For example, for " IP address "
Speech, its feature can include:By 4 digital character groups into there is character ". ", each number between numerical character and numerical character
Word character in specific number range (such as:Class C IP address scope is:192.0.0.0-223.255.255.255) etc..Logical
Cross and feature corresponding with each type to be configured is stored in advance in the memory cell of thermal printer, then in thermal printing
After the type to be configured and parameter to be configured included in information to be configured determined by machine, can read corresponding with type to be configured
Feature, and judge whether the parameter to be configured included in the information to be configured that currently determines meets the feature.In reality
In scene, there are several abnormal conditions as follows:The display screen of mobile phone is luminous abnormal, or user be not input into correctly to be configured
Information, or the light sensor of printer correctly do not identify the display screen luminescence law of mobile phone, etc..In view of above-mentioned different
Reason condition, the step of whether information to be configured meets corresponding feature is judged by above-mentioned, determines whether configuration process completes,
Or the configuration for determining the need for carrying out next type to be configured, etc..
In step 1023, it is the information to be configured by the type to be configured and parameter determination to be configured of printer.
So far, the configuration process of the type one or more to be configured to printer can be completed.
In one embodiment, after above-mentioned steps 1023, methods described can also include:
Step 103:Send in order to indicating that the information to be configured is configured successful configured information to the configurating terminal.
Wherein, the configured information can be:Audio signal or optical signal.By taking audio signal as an example, in thermal printer
After 10 judge that the parameter to be configured included in information to be configured meets corresponding feature, it may be determined that for a certain class to be configured
The configuration process success of type.At the same time, thermal printer 10 can send predetermined in order to indicating the information quilt to be configured
The audio signal of configuration successful, mobile phone 20 can pass through voice input device (such as:Microphone) obtain by thermal printer 10
The above-mentioned audio signal for going out, and identify that the audio signal is to indicate that the information to be configured is configured successful signal,
Hereafter, can show on mobile phone for pointing out user configuring successful suggestion content.If conversely, mobile phone do not get above-mentioned
Configured information, then can point out user to re-enter correctly information to be configured, or, by mobile phone again according to ultrared change
Law control luminescence component is lighted, until configuration successful.Specific audio signal is sent by thermal printer 10, will
Configuration result (success or failure) feeds back to the mobile phone 20, it is achieved thereby that the knowability of configuration result.Mobile phone 20 can be right
The configuration result of feedback is recorded, it is also possible to determine the need for configuring next type to be configured according to configuration result.?
In exemplary scene, user can disposably be input into multiple parameters to be configured corresponding with each type to be configured, and start to match somebody with somebody
Put process.In configuration process, mobile phone 20 can seriatim be directed to each information to be configured, correspondingly control luminescence component according to
Certain Changing Pattern is operated, and the audio signal for judging whether to receive the feedback of printer 10, if receiving institute
Audio signal is stated, then proceeds the configuration of next type to be configured;If being not received by the audio signal, can be with
Disconnected configuration process, and the reason for point out user error.
It is noted that in other feasible embodiments, methods described can also include:
In response to user in printer (such as:Printer) on operation behavior and the configuration order that triggers, determine with described
The corresponding type to be configured of configuration order.In the present embodiment, following flow process can be included to the scene of the configuration of printer:With
Family open printing machine, selects to need the type to be configured for being configured (such as IP by the configuration feature key arranged on printer
Location), subsequently, user opens the APP in order to be configured to printer on mobile phone, and is input into corresponding with above-mentioned type to be configured
Parameter to be configured (such as:192.168.1.4), finally, click on " configuration " button and mobile phone is positioned over printer and be provided with light
The position of dependent sensor.That is, in above process, the type to be configured that user is configured needed for selecting is on a printer
It is determined, without being determined in mobile phone A PP.The signal value queue that printer is collected can not include with upper
State the corresponding content of type to be configured, and including content corresponding with above-mentioned parameter to be configured.
Fig. 4 is the flow chart of the equipment configuration method exemplified according to one enforcement of the application, the equipment configuration method
Executive agent can be configurating terminal or the one or more parts on configurating terminal, and the method may include steps of 201
~203:
In step 201, according to pre-arranged code rule, determine signal value queue corresponding with information to be configured.
In step 202., determine the corresponding ultrared Changing Pattern of described information value queue.
In step 203, according to the Changing Pattern, control luminescence component sends infrared with gathered for printer
Line.
Wherein, configurating terminal (such as mobile phone) can send infrared ray according to predeterminated frequency control luminescence component, for example, according to
Changing Pattern, changed an infra-red intensity every 0.1 second.
In one embodiment, methods described can also comprise the steps:
When the parameter to be configured included in the information to be configured meets the feature of type to be configured, receive and be configured to set
Preparation go out in order to indicating that the information to be configured is configured successful configured information.
The process of above-mentioned steps 201~203 is referred to the content of the embodiment shown in above-mentioned Fig. 1, no longer gives herein
Repeat.
Fig. 5 is the frame of the device configuration device being applied on printer according to one exemplary embodiment of the application
Figure.In the present embodiment, described device can include:
Collecting unit 301, for when printer is in configuration status, gathering the ultrared change sent with configurating terminal
The corresponding signal value queue of law;Wherein, the Changing Pattern is the configurating terminal according to information to be configured and presets volume
Code rule determines that the Changing Pattern is detected by the scarce paper detector on printer.
Determining unit 302, for determining unit, for according to pre-arranged code rule, by the type to be configured of printer and
Parameter determination to be configured is information to be configured corresponding with the signal value queue.
In one embodiment, the signal value queue includes:First signal value subqueue and secondary signal value subqueue;Institute
The first signal value subqueue is stated in order to characterize type to be configured, the secondary signal value subqueue is in order to characterizing parameter to be configured.
In one embodiment, described device can also include:
Status toggle unit, is used for:
When configuration order is received, printer is built in configuration status in a preset duration;Or,
When power-on command is received, printer is built in configuration status in a preset duration.
By the said equipment configuration device, the behaviour that equipment to be configured and other equipment are carried out network connection can be avoided
Make, lift the efficiency of configuration process.
Fig. 6 is the frame of the device configuration device being applied on printer that implements to exemplify according to the application another exemplary
Figure, based on the embodiment shown in above-mentioned Fig. 5, the determining unit 302 can include:
First determination subelement 3021, for according to pre-arranged code rule, determining treat corresponding with the signal value queue
Configuration information;
Judging unit 3022, for according to the spy corresponding with the type to be configured included in the information to be configured for prestoring
Levy, judge whether the parameter to be configured included in the information to be configured meets the feature;
Second determination subelement 3023, the parameter to be configured for including in the information to be configured meet the feature
When, it is the information to be configured by the type to be configured and parameter determination to be configured of printer.
In one embodiment, described device can also include:
Transmitting element 303, when the parameter to be configured for including in the information to be configured meets the feature, to institute
State configurating terminal to send in order to indicating that the information to be configured is configured successful configured information.
Fig. 7 is the frame of the device configuration device being applied on configurating terminal according to one exemplary embodiment of the application
Figure.In the present embodiment, described device can include:
Queue determining unit 401, for according to pre-arranged code rule, determining signal value team corresponding with information to be configured
Row;
Rule determining unit 402, for determining the corresponding ultrared Changing Pattern of described information value queue;
Control unit 403, for according to the Changing Pattern, control luminescence component sends red with gathered for printer
Outside line.
In one embodiment, described device can also include:
Receiving unit, the parameter to be configured for including in the information to be configured meet the feature of type to be configured
When, receive be configured that equipment sends in order to indicating that the information to be configured is configured successful configured information.
Device in regard to above-described embodiment, wherein modules execute the concrete mode of operation in relevant the method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
For device embodiment, as which corresponds essentially to embodiment of the method, so related part is referring to method reality
Apply the part explanation of example.Device embodiment described above is only schematically, wherein illustrates as separating component
Unit can be or may not be physically separate, as the part that unit shows can be or may not be
Physical location, you can be located at a place, or can also be distributed on multiple NEs.Can be according to the actual needs
Select some or all of module therein to realize the purpose of application scheme.Those of ordinary skill in the art are not paying wound
In the case that the property made is worked, you can to understand and implement.
Fig. 8 is the module diagram of the printer according to one exemplary embodiment of the application.The printer can be with
It is thermal printer, the printer includes:Printhead, MCU (Microcontroller Unit, micro-control unit), storage
Unit and scarce paper detector.The scarce paper detector can be arranged at the position that be arbitrarily externally exposed on the printer,
The memory cell is at least used for storing following content:Some basic executable instructions or program, with each type to be configured
Corresponding parameter to be configured, the corresponding feature of each type to be configured and pre-arranged code rule etc..Wherein, the scarce paper detection
Device can be used for the ultrared Changing Pattern that detection configurating terminal sends, and by the optical signal for detecting is changed into telecommunications
Number to MCU send.The scarce paper detector is used for:When printer is in configuration status, detect that configurating terminal sends infrared
The Changing Pattern of line;The Changing Pattern is that the configurating terminal is determined according to information to be configured and pre-arranged code rule.Institute
State MCU can be used for:According to the Changing Pattern for detecting, signal value queue corresponding with the Changing Pattern is determined;Root
According to pre-arranged code rule, it is treat corresponding with the signal value queue by the type to be configured and parameter determination to be configured of printer
Configuration information.It is noted that above-mentioned scarce paper detector can be integrated with a part on printhead, or solely
Stand on a part of printhead setting.
Those skilled in the art will readily occur to its of the application after considering specification and putting into practice disclosure disclosed herein
Its embodiment.The application is intended to any modification, purposes or the adaptations of the application, these modifications, purposes or
Person's adaptations follow the general principle of the application and including the undocumented common knowledge in the art of the application
Or conventional techniques.Description and embodiments be considered only as exemplary, the true scope of the application and spirit by following
Claim is pointed out.
It should be appreciated that the application is not limited to the precision architecture for being described above and being shown in the drawings, and
And various modifications and changes can carried out without departing from the scope.Scope of the present application is only limited by appended claim.
Claims (13)
1. a kind of collocation method of printer, it is characterised in that include:
When printer is in configuration status, signal value team corresponding with the ultrared Changing Pattern that configurating terminal sends is gathered
Row;The Changing Pattern is that the configurating terminal is determined according to information to be configured and pre-arranged code rule, the Changing Pattern
It is to be detected by the scarce paper detector on printer;
According to pre-arranged code rule, by the type to be configured and parameter determination to be configured of printer it is and the signal value queue pair
The information to be configured that answers.
2. method according to claim 1, it is characterised in that the ultrared change that the collection is sent with configurating terminal
Before the corresponding signal value queue of rule, methods described also includes:
When configuration order is received, printer is built in configuration status in a preset duration;Or,
When power-on command is received, printer is built in configuration status in a preset duration.
3. method according to claim 1, it is characterised in that described according to pre-arranged code rule, by printer wait match somebody with somebody
It is information to be configured corresponding with the signal value queue to put type and parameter determination to be configured, including:
According to pre-arranged code rule, information to be configured corresponding with the signal value queue is determined;
According to the feature corresponding with the type to be configured included in the information to be configured for prestoring, the information to be configured is judged
In the parameter to be configured that includes whether meet the feature;
If so, by the type to be configured and parameter determination to be configured of printer be the information to be configured.
4. method according to claim 3, it is characterised in that methods described also includes:
If the parameter to be configured included in the information to be configured meets the feature, send in order to indicating to the configurating terminal
The information to be configured is configured successful configured information.
5. a kind of collocation method of printer, it is characterised in that include:
According to pre-arranged code rule, signal value queue corresponding with information to be configured is determined;
Determine the corresponding ultrared Changing Pattern of described information value queue;
According to the Changing Pattern, the infrared transmitter controlled on configurating terminal carries out ultrared transmitting;The infrared ray is used
Detected in the scarce paper sensor for printer.
6. method according to claim 5, it is characterised in that methods described also includes:
When the parameter to be configured included in the information to be configured meets the feature of type to be configured, receive what printer sent
In order to indicate that the information to be configured is configured successful configured information.
7. a kind of configuration device of printer, it is characterised in that include:
Collecting unit, for when printer is in configuration status, gathering the ultrared Changing Pattern sent with configurating terminal
Corresponding signal value queue;The Changing Pattern is that the configurating terminal is determined according to information to be configured and pre-arranged code rule
, the Changing Pattern is detected by the scarce paper detector on printer;
Determining unit, for according to pre-arranged code rule, by the type to be configured and parameter determination to be configured of printer being and institute
State the corresponding information to be configured of signal value queue.
8. device according to claim 7, it is characterised in that described device also includes:
Status toggle unit, is used for:
When configuration order is received, printer is built in configuration status in a preset duration;Or,
When power-on command is received, printer is built in configuration status in a preset duration.
9. device according to claim 7, it is characterised in that the determining unit includes:
First determination subelement, for according to pre-arranged code rule, determining information to be configured corresponding with the signal value queue;
Judging unit, for according to the feature corresponding with the type to be configured included in the information to be configured for prestoring, judging
Whether the parameter to be configured included in the information to be configured meets the feature;
Second determination subelement, when the parameter to be configured for including in the information to be configured meets the feature, will beat
The type to be configured and parameter determination to be configured of print machine is the information to be configured.
10. device according to claim 9, it is characterised in that described device also includes:
Transmitting element, when the parameter to be configured for including in the information to be configured meets the feature, to the configuration
Terminal is sent in order to indicating that the information to be configured is configured successful configured information.
11. a kind of configuration devices of printer, it is characterised in that include:
Queue determining unit, for according to pre-arranged code rule, determining signal value queue corresponding with information to be configured;
Rule determining unit, for determining the corresponding ultrared Changing Pattern of described information value queue;
Control unit, for according to the Changing Pattern, the infrared transmitter controlled on configurating terminal carries out ultrared transmitting;
The infrared ray is used for being detected for the scarce paper sensor of printer.
12. devices according to claim 11, it is characterised in that described device also includes:
Receiving unit, when the parameter to be configured for including in the information to be configured meets the feature of type to be configured, connects
Receive that printer sends in order to indicating that the information to be configured is configured successful configured information.
13. a kind of printers, it is characterised in that include:Scarce paper detector and the processing unit being connected with the scarce paper detector,
The scarce paper detector is used for:
When printer is in configuration status, the ultrared Changing Pattern that configurating terminal sends is detected;The Changing Pattern is
The configurating terminal is determined according to information to be configured and pre-arranged code rule;
The processing unit is used for:
According to the Changing Pattern for detecting, signal value queue corresponding with the Changing Pattern is determined;
According to pre-arranged code rule, by the type to be configured and parameter determination to be configured of printer it is and the signal value queue pair
The information to be configured that answers.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610819228.2A CN106502599A (en) | 2016-09-12 | 2016-09-12 | The collocation method of printer, device and printer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610819228.2A CN106502599A (en) | 2016-09-12 | 2016-09-12 | The collocation method of printer, device and printer |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106502599A true CN106502599A (en) | 2017-03-15 |
Family
ID=58290061
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610819228.2A Pending CN106502599A (en) | 2016-09-12 | 2016-09-12 | The collocation method of printer, device and printer |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106502599A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111401858A (en) * | 2020-04-01 | 2020-07-10 | 国网宁夏电力有限公司宁东供电公司 | Security tool and instrument certificate management printing system and method based on WEB and cloud application |
CN114356251A (en) * | 2021-12-21 | 2022-04-15 | 厦门汉印电子技术有限公司 | Printer parameter configuration method, device, equipment, printer and medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101800916A (en) * | 2010-03-01 | 2010-08-11 | 华为技术有限公司 | Configuration method of optical port and device |
CN103136929A (en) * | 2013-02-02 | 2013-06-05 | 深圳市格劳瑞电子有限公司 | Method enabling network terminal with photosensitive components to initialize |
CN103926863A (en) * | 2014-04-05 | 2014-07-16 | 孙海涛 | Non-contact appliance configuration device independent of network environment and non-contact appliance configuration method |
CN204168311U (en) * | 2014-08-28 | 2015-02-18 | 四川九洲电器集团有限责任公司 | A kind of intelligent terminal, the network terminal and network parameter configuration-system |
CN105190722A (en) * | 2013-03-21 | 2015-12-23 | 微软技术许可有限责任公司 | Code sequence control of infrared blaster |
-
2016
- 2016-09-12 CN CN201610819228.2A patent/CN106502599A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101800916A (en) * | 2010-03-01 | 2010-08-11 | 华为技术有限公司 | Configuration method of optical port and device |
CN103136929A (en) * | 2013-02-02 | 2013-06-05 | 深圳市格劳瑞电子有限公司 | Method enabling network terminal with photosensitive components to initialize |
CN105190722A (en) * | 2013-03-21 | 2015-12-23 | 微软技术许可有限责任公司 | Code sequence control of infrared blaster |
CN103926863A (en) * | 2014-04-05 | 2014-07-16 | 孙海涛 | Non-contact appliance configuration device independent of network environment and non-contact appliance configuration method |
CN204168311U (en) * | 2014-08-28 | 2015-02-18 | 四川九洲电器集团有限责任公司 | A kind of intelligent terminal, the network terminal and network parameter configuration-system |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111401858A (en) * | 2020-04-01 | 2020-07-10 | 国网宁夏电力有限公司宁东供电公司 | Security tool and instrument certificate management printing system and method based on WEB and cloud application |
CN111401858B (en) * | 2020-04-01 | 2022-11-18 | 国网宁夏电力有限公司宁东供电公司 | Security tool and instrument certificate management printing system and method based on WEB and cloud application |
CN114356251A (en) * | 2021-12-21 | 2022-04-15 | 厦门汉印电子技术有限公司 | Printer parameter configuration method, device, equipment, printer and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104951208B (en) | A kind of control method and mobile terminal of application program | |
EP1783589A1 (en) | A method and system for conducting a transaction using recognized text | |
CN103686788B (en) | Terminal and network parameter configuration method and device thereof | |
CN109413515A (en) | Apparatus control method, device, mobile terminal and server | |
CN109583356A (en) | Fingerprint identification method and Related product | |
CN109388532A (en) | Test method, device, electronic equipment and computer-readable storage medium | |
CN107968883A (en) | Distance state detection method, device, storage medium and electronic equipment | |
CN104954131B (en) | The verification method and system of identifying code | |
CN106415508A (en) | Information processing program product, information processing apparatus, and information processing system | |
CN103064535A (en) | Touch control pen, touch control input system and method for changing touch control operating characteristics | |
CN105159475B (en) | A kind of characters input method and device | |
CN106296542A (en) | A kind of government affairs information querying method and device | |
CN108108249A (en) | Data inputting method and device | |
CN106502599A (en) | The collocation method of printer, device and printer | |
CN107274590A (en) | A kind of monitoring system, method, device, financial machine and tool and storage medium | |
CN106406279B (en) | Apparatus testing method and device, electronic equipment | |
CN108572836A (en) | Embedded updating method and device | |
CN206058190U (en) | A kind of government affairs information inquires about terminal | |
CN106484341A (en) | Equipment configuration method and device | |
CN105094640B (en) | A kind of terminal operation method and user terminal | |
CN102371785B (en) | Printing device, control method and printing system thereof | |
JP5045317B2 (en) | User authentication system | |
CN107026818A (en) | A kind of method of cipher authentication, equipment and application server | |
CN109345100A (en) | A kind of product inspection method and system | |
CN109344335A (en) | Content recommendation method and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170315 |