JP2011008318A - Control method for printer connection device and printer system - Google Patents

Control method for printer connection device and printer system Download PDF

Info

Publication number
JP2011008318A
JP2011008318A JP2009148378A JP2009148378A JP2011008318A JP 2011008318 A JP2011008318 A JP 2011008318A JP 2009148378 A JP2009148378 A JP 2009148378A JP 2009148378 A JP2009148378 A JP 2009148378A JP 2011008318 A JP2011008318 A JP 2011008318A
Authority
JP
Japan
Prior art keywords
printer
signal
information
connection
output
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.)
Withdrawn
Application number
JP2009148378A
Other languages
Japanese (ja)
Inventor
Hisakazu Koyama
Kenji Sezai
久和 小山
健治 瀬在
Original Assignee
Seiko Epson Corp
セイコーエプソン株式会社
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 Seiko Epson Corp, セイコーエプソン株式会社 filed Critical Seiko Epson Corp
Priority to JP2009148378A priority Critical patent/JP2011008318A/en
Publication of JP2011008318A publication Critical patent/JP2011008318A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide the control method of a printer connection device, in which the information of the printer connection device being connected to a printer through an actuator driving circuit can be obtained.SOLUTION: A roll paper printer 2 and a buzzer device 3 are connected through the second pin of a modular jack 28 as the output terminal of a first output signal line DKD1 of a drawer port 8, the third pin of a modular jack 28 as the output terminal of a second output signal line DKD2 and the third pin of the modular jack 28 as the input terminal of an input signal line DKS. The roll paper printer 2 controls the drawer port 8, generate the first output signal and second output signal for controlling the buzzer device 3, and supply those output signals through the second pin and a fifth pin to the buzzer device 3. The buzzer device 3 obtains the information requested by an information request signal, and supplies pulse-shaped information signal through the third pin of a modular jack 28 to the roll paper printer 2.

Description

  In the present invention, a buzzer device or the like is connected to a printer having a circuit for driving an actuator for driving a drawer or the like (hereinafter referred to as “printer connection device”), and the printer is connected via a drive circuit. The present invention relates to a method for controlling a printer connection apparatus that drives and controls the printer connection apparatus. More specifically, the present invention relates to a printer connection device control method and a printer system that allow a printer to acquire information about the printer connection device via a drive circuit.

  Some printers are equipped with a drawer drive circuit that controls driving to open a drawer device (a money box device) that stores change and sales. The drawer drive circuit is driven and controlled by the main drive control unit of the printer, and an output terminal for outputting a drawer drive signal for driving the drawer device and a status signal indicating the open / close state of the drawer of the drawer device are input. Input terminal.

  The drawer device is electrically connected to the printer via an input terminal and an output terminal of the drawer drive circuit. When opening a locked drawer device that is locked, a pulsed voltage signal is applied to the solenoid that constitutes the lock mechanism of the drawer device from the printer drawer drive circuit via the output terminal, and the lock is released. When the lock is released, the drawer of the drawer device is pushed open by an urging force such as a spring force. When the operator closes the drawer, the locked state is formed again by the lock mechanism, and this locked state is recognized on the printer side via the input terminal.

  Patent Document 1 describes a notification device that can be connected to a printer via an output terminal of a drawer drive circuit instead of a drawer device when such a printer is used in a restaurant kitchen. . The main drive control unit of the printer generates a ringing control signal for driving and controlling the notification device by driving the drawer drive circuit when a cooking instruction slip for instructing cooking is issued. The signal is supplied to the drawer device via the output terminal. When a sounding control signal is supplied from the printer, the notification device sounds a buzzer based on the sounding control signal.

JP 2002-99968 A

  Here, if the firmware version of the notification device is not the specified version, a problem such as the desired sound from the buzzer will not be obtained when the sound control signal from the printer is supplied to the notification device. There are things to do. However, in the above technique, there is no method for acquiring notification device information from the printer, so when a failure occurs, the firmware version information of the notification device cannot be acquired, and the cause of the failure is investigated. There is a problem that it takes time.

  In view of these points, an object of the present invention is to make it possible to control a printer connection device other than a drawer device by using a printer having a drive circuit that drives an actuator for driving a drawer and the like, and the printer It is an object to propose a drive control method for a printer connection device that enables the printer to acquire various types of information such as version information of the connection device, and a printer system using the drive control method.

In order to solve the above problems, the present invention connects a printer connection device to a printer having a drive circuit having an output terminal for outputting an actuator drive signal and an input terminal for inputting the signal, and the printer A printer connection device control method for controlling the printer connection device by:
The printer controls the drive circuit to generate an information request signal for requesting supply of predetermined information to the printer connection device, and the information connection signal is transmitted to the printer connection device via the output terminal. To supply
When the information request signal is supplied, the printer connection apparatus supplies the information requested by the information request signal to the printer via the input terminal of the drive circuit.

  According to the present invention, the printer and the printer connection device communicate with each other via the output terminal and the input terminal of the actuator drive circuit. The output terminal is a terminal for outputting the actuator drive signal for opening the drawer device etc. from the printer to the drawer device etc., and the input terminal is a status signal indicating the open / close state of the drawer device etc. from the drawer device etc. These are terminals to be received by the printer, both of which are provided in the drive circuit. When the printer communicates by controlling the printer connection device, it uses a circuit and terminal to drive and control actuators such as drawer devices, and generates a signal to control the drive circuit and communicate with the printer connection device. Then, it is supplied to the printer connection device via the output terminal. One printer connection device also supplies information to the printer via an input terminal when an information request signal is supplied, as in the case of connecting a drawer device or the like. Therefore, according to the present invention, it is possible to perform bidirectional communication between the printer and the printer connection device without changing the hardware of the printer. Furthermore, according to the present invention, since the printer connection apparatus supplies the information requested by the information request signal from the printer to the printer, the printer can acquire arbitrary information of the printer connection apparatus.

  In the present invention, in order to control the printer connection device from the printer, the printer controls the drive circuit to generate a control signal for controlling the printer connection device, and the control signal is sent to the output terminal. It is preferable that the printer connection device performs a predetermined operation based on the control signal when the control signal is supplied. As will be described later, when the printer connection device is a buzzer device, the buzzer is sounded based on a control signal for sounding the buzzer.

  In this case, the drive circuit includes a first circuit and a second circuit, the first output terminal that outputs the first output signal generated by the first circuit as the output terminal, and the second circuit Preferably, a second output terminal for outputting the second output signal is provided, and the information request signal and the control signal are defined by a combination of the first output signal and the second output signal, respectively. Since the drive circuit includes a circuit for driving the two actuators, the information request signal and the control signal are supplied via the signal line via the first output terminal of the first circuit and the second output terminal of the second circuit. If the two signal lines are used, it is easy to improve communication reliability.

  In this case, in order to perform communication from the printer to the printer connection device in a synchronous manner, the first output signal is a series of pulse signals including the information request signal or the control signal, and the second output signal Is a timing signal in which the signal level repeatedly changes at a constant cycle, and the printer connection device outputs the second output for a predetermined time shorter than the cycle from the falling or rising point of the signal level of the second output signal. It is desirable to recognize the information request signal and the drive control signal by sequentially acquiring the signal level of the first output signal after detecting that there is no change in the signal level of the signal. If the signal level of the first output signal is acquired after detecting that there is no change in the signal level of the second output signal, the communication from the printer to the printer connection apparatus can be excluded from the case where noise is included. Can be ensured.

  In addition, in order to acquire information from the printer connection device by the printer, the printer connection device outputs an information signal that is a series of pulse signals including the information requested by the information request signal, and the printer Recognizes the information signal by sequentially acquiring the signal level of the information signal at the rising or falling time of the second output signal immediately after the information request signal is supplied to the printer connection device. Is desirable.

  In this case, in order to reliably acquire information on the printer side, the cycle in which the signal level of the second output signal changes is determined as the information signal after the printer connection apparatus receives the supply of the information request signal. It may be longer than the time required for supply.

  In the present invention, the actuator may be a solenoid that releases a lock mechanism of the drawer device, and the printer connection device may be a buzzer device. In this case, a drive circuit provided in the POS printer can be used to communicate by connecting a buzzer device to make a predetermined ringing. Also, firmware version information of the buzzer device can be acquired via the drive circuit. Furthermore, when the firmware version of the buzzer device is old, information for updating the firmware can be sent to the buzzer device using the drive circuit, and the firmware can be updated.

Next, the present invention relates to a printer having a drive circuit having an output terminal for outputting a drive signal of the actuator and an input terminal for inputting the signal, and a control unit for controlling the drive circuit, and connected to the printer In a printer system having a printer connection device,
The printer connection device is connected to the printer via the input terminal and the output terminal,
The control unit of the printer controls the drive circuit to generate an information request signal for requesting the printer connection apparatus to supply predetermined information, and the information request signal is transmitted to the printer via the output terminal. To the printer connection device,
The printer connection device stores the information requested by the information request signal when it is recognized that the information request signal is supplied and a storage unit that stores and holds at least one state information. And a connection device-side control unit that is supplied from the printer to the input terminal of the printer.

  According to the present invention, the printer and the printer connection device are connected via the output terminal and the input terminal of the drive circuit. The output terminal is a terminal for outputting a drive signal for driving an actuator for opening the drawer device or the like from the printer to the drawer device or the like, and the input terminal is a state signal indicating an open / close state of the drawer device or the like. Are terminals for receiving from the printer, etc., all of which are terminals provided in the drive circuit. In addition, when the control unit of the printer controls and communicates with the printer connection device, a circuit and a terminal for driving and controlling an actuator such as a drawer device are used to control the drive circuit and communicate with the printer connection device. A signal is generated and supplied to the printer connection device via the output terminal. When the information request signal is supplied, the connection device side control unit of one printer connection device also supplies the information to the printer via the input terminal in the same manner as when the drawer device is connected. Therefore, according to the present invention, it is possible to perform bidirectional communication between the printer and the printer connection device without changing the hardware of the printer. Further, according to the present invention, the connection device side control unit of the printer connection device takes out the information requested by the information request signal from the printer from the storage unit and supplies the information to the printer. Information can be acquired.

  In addition, according to the present invention, when a printer is used for a customer accounting purpose in a restaurant or the like, for example, a drawer device can be connected to the printer drive circuit to open the drawer device. On the other hand, when using a printer for kitchen applications that do not require the connection of a drawer device, connect a buzzer device or the like to the printer's drive circuit to notify the operator of the printing issuance of a cooking instruction slip that instructs cooking. Can do. Therefore, the same printer can be used for a plurality of applications.

  In the present invention, in order to control the printer connection device from the printer, the control unit of the printer generates a control signal for controlling the printer connection device by controlling the drive circuit, Supplying to the printer connection device via the output terminal, the printer connection device is provided with a drive mechanism controlled by the connection device side control unit, the control signal supplied to the connection device side control unit When it is recognized that the driving mechanism is recognized, the driving mechanism is controlled based on the control signal.

  In the present invention, the drive circuit of the printer includes a first circuit and a second circuit, the first output terminal that outputs the first output signal generated by the first circuit as the output terminal, and the second A second output terminal for outputting a second output signal generated by the circuit; and the control unit receives the information request signal and the control signal for the first output signal and the second output signal, respectively. It is desirable to specify by combination. Since the drive circuit includes a circuit for driving the two actuators, the information request signal and the ringing control signal are supplied to the signal line via the first output terminal of the first circuit and the second output terminal of the second circuit. If the two signal lines are used, it is easy to improve the reliability of communication.

  In the present invention, the actuator may be a solenoid that releases a lock mechanism of the drawer device, and the printer connection device may be a buzzer device. In this case, a drive circuit provided in the POS printer can be used to communicate by connecting a buzzer device to make a predetermined ringing. Also, firmware version information of the buzzer device can be acquired via the drive circuit. Furthermore, when the firmware version of the buzzer device is old, information for updating the firmware can be sent to the buzzer device using the drive circuit, and the firmware can be updated.

  According to the present invention, the printer and the printer connection device communicate with each other via the output terminal and the input terminal of the actuator drive circuit. The output terminal is a terminal for outputting the actuator drive signal for opening the drawer device etc. from the printer to the drawer device etc., and the input terminal is a status signal indicating the open / close state of the drawer device etc. from the drawer device etc. These are terminals to be received by the printer, both of which are provided in the drive circuit. When the printer communicates by controlling the printer connection device, it uses a circuit and terminal to drive and control actuators such as drawer devices, and generates a signal to control the drive circuit and communicate with the printer connection device. Then, it is supplied to the printer connection device via the output terminal. One printer connection device also supplies information to the printer via an input terminal when an information request signal is supplied, as in the case of connecting a drawer device or the like. Therefore, according to the present invention, it is possible to perform bidirectional communication between the printer and the printer connection device without changing the hardware of the printer. Furthermore, according to the present invention, since the printer connection apparatus supplies the information requested by the information request signal from the printer to the printer, the printer can acquire arbitrary information of the printer connection apparatus.

  In addition, according to the present invention, when a printer is used for a customer accounting purpose in a restaurant or the like, for example, a drawer device can be connected to the printer drive circuit to open the drawer device. On the other hand, when using a printer for kitchen applications that do not require the connection of a drawer device, connect a buzzer device or the like to the printer's drive circuit to notify the operator of the printing issuance of a cooking instruction slip that instructs cooking. Can do. Therefore, the same printer can be used for a plurality of applications.

1 is a perspective view of a printer system to which the present invention is applied. 1 is a schematic block diagram illustrating a control system of a printer system to which the present invention is applied. It is a circuit diagram of a drawer port. It is explanatory drawing of the control command transmitted to a buzzer apparatus from a printer. It is the flowchart and timing chart which show the communication operation from the printer to the buzzer device. It is the flowchart and timing chart which show the communication operation from the buzzer device to the printer. It is a circuit diagram of a configuration example in which a drawer device is connected to a drawer port.

  Embodiments of a printer system to which the present invention is applied will be described below with reference to the drawings.

(overall structure)
FIG. 1A is an external perspective view of a printer system to which the present invention is applied, and FIG. 1B is a perspective view of a bottom portion of the printer system as viewed from the rear.

  The printer system 1 is connected to a host computer that processes food order information from a customer and constitutes a part of the order entry system, and is installed in a kitchen such as a restaurant. As shown in FIG. 1A, the printer system 1 includes a roll paper printer 2 and a buzzer device (printer connection device) 3 connected to the roll paper printer 2.

  The roll paper printer 2 includes a rectangular parallelepiped printer main body 21 and an opening / closing lid 22 attached to the upper surface of the printer main body 21. A recording paper discharge port 23 having a predetermined width is formed in a front portion of the opening / closing lid 22. A lid opening / closing lever 24 is disposed on the side of the recording paper discharge port 23. When the lid opening / closing lever 24 is operated, the locking of the opening / closing lid 22 is released, and the opening / closing lid 22 opens around the rear end. When the opening / closing lid 22 is opened, a roll paper storage unit (not shown) formed inside the printer main body 21 is opened, and the roll paper can be replaced. A power switch 25 is provided on the front end surface 21 a of the rectangular parallelepiped printer main body 21.

  As shown in FIG. 1B, a cutout portion 26 is formed in the bottom portion of the printer main body 21, which is cut out from the rear end surface 21 b toward the front side. The notch 26 includes a front end face 26a parallel to the front end face 21a of the printer main body 21, and an RS-232C connector 27 and a 6-pin modular jack 28 are provided on the front end face 26a. The RS-232C connector 27 is a connector provided for connecting the roll paper printer 2 to a host computer or the like, and the modular jack 28 is a connector provided for connecting the roll paper printer 2 and the drawer device. is there.

  The buzzer device 3 is connected to the roll paper printer 2 via the modular jack 28 and operates based on a control command from the roll paper printer 2.

  The buzzer device 3 is equipped with a buzzer 31, and the control command includes a ringing control command for ringing the buzzer 31 with a predetermined ringing pattern. The control command includes an information request command for requesting information from the buzzer device 3. The buzzer device 3 is configured on a single substrate 32, and the substrate 32 is fixed to the roll paper printer 2 while being stored in the notch 26.

(Control system)
FIG. 2 is a schematic block diagram illustrating a control system of the printer system according to the present embodiment.

  As shown in FIG. 2, the printer system 1 is connected to a host computer 5 to construct an order entry system. The roll paper printer 2 and the host computer 5 are connected via an RS-232C connector 27.

  The roll paper printer 2 is mainly configured of a main drive control unit (control unit) 6 including a CPU, a ROM, and a RAM. The main drive control unit 6 is supplied with cooking instruction data from the host computer 5 via the communication interface 7. The main drive control unit 6 is connected to a drawer port (drive circuit) 8, a data creation unit 9, and a reception buffer 10. The buzzer device 3 is connected to the modular jack 28 of the drawer port 8.

  The main drive control unit 6 inputs a control command for driving and controlling the buzzer device 3 to the drawer port 8 for each bit as a first control signal and a second control signal. Further, the input of the first control signal and the second control signal to the drawer port 8 is repeated for the data length of the control command.

  As shown in FIG. 3, the drawer port 8 generates a first output signal based on the first control signal from the main drive control unit 6 input from the terminal A, and the first output signal is output to the modular jack 28. A first output signal line (first circuit) DKD1 that outputs to the buzzer device 3 via a second pin (first output terminal) is provided. Further, a second output signal is generated based on the second control signal from the main drive control unit 6 inputted from the terminal B, and this second output signal is sent to the fifth pin (second output terminal) of the modular jack 28. And a second output signal line (second circuit) DKD2 that outputs to the buzzer device 3 via the buzzer device 3. Further, the drawer port 8 has an input signal line DKS that receives an information signal supplied from the buzzer device 3 via the third pin (input terminal) of the modular jack 28 and 24 V via the fourth pin of the modular jack 28. Power line PL for connecting the drive power source and the buzzer device 3 to each other. The input signal line DKS extends from the third pin of the modular jack 28 to a terminal C serving as an input terminal to the main drive control unit 6. The first pin and the sixth pin of the modular jack 28 are grounded.

  The first output signal line DKD1 includes a first transistor 81 and a first diode 82. The first transistor 81 is an NPN type, the collector is connected to the second pin, and the emitter is grounded. The first control signal from the main drive control unit 6 is input to the base via the terminal A. A first diode 82 is connected between the collector and the base to prevent an excessive current from flowing from the second pin side toward the main drive control unit 6. The second output signal line DKD2 includes a second transistor 83 and a second diode 84. The second transistor 83 is an NPN type, the collector is connected to the fifth pin, and the emitter is grounded. The first control signal from the main drive control unit 6 is input to the base via the terminal B. A first diode 82 is connected between the collector and the base to prevent an excessive current from flowing from the fifth pin side toward the main drive control unit 6.

  When the main drive control unit 6 supplies a control command to the buzzer device 3, the main drive control unit 6 inputs a first control signal to the terminal A. The first control signal is an H (High) level or L (Low) level pulse-shaped voltage signal corresponding to the control command. When the first control signal is at the H level, the first transistor 81 in the circuit from the fourth pin to which power is supplied to the terminal A via the second pin and the circuit configured on the buzzer device 3 side. Turns on and collector current flows. As a result, a pulse signal composed of an H level voltage signal corresponding to the control command is output to the buzzer device 3 via the second pin as the first output signal. When the first control signal is at the L level, in the circuit from the fourth pin to which power is supplied to the terminal A via the second pin and the circuit configured on the buzzer device 3 side, the first transistor 81 Is turned off. As a result, an L level pulse signal corresponding to the control command is output to the buzzer device 3 via the third pin as the first output signal. By repeating these steps, a series of pulse signals is output as the first output signal.

  The main drive control unit 6 inputs a second control signal to the terminal B. The second control signal is a timing signal composed of a pulse-shaped voltage signal that changes the signal level at a constant cycle. Accordingly, in the circuit from the fourth pin to which power is supplied to the terminal B via the circuit configured on the buzzer device 3 side, the second transistor 83 is repeatedly turned on and off at a predetermined cycle. As a result, a pulse-shaped timing signal whose signal level repeatedly changes at a constant period is output as the second output signal. The second output signal serves as a clock signal for synchronizing communication.

  Here, the main drive control unit 6 defines information for one bit of the control command by a combination of the first output signal and the second output signal output from the drawer port 8. More specifically, the main drive control unit 6 enables the buzzer device 3 to recognize information for one bit of the control command based on the first output signal when a predetermined time has elapsed from the falling edge of the second output signal. ing.

  The data creation unit 9 restores information supplied from the buzzer device 3 based on information signals sequentially input to the main drive control unit 6 via the third pin of the modular jack 28 and the input signal line DKS. . In addition, when the data restoration is completed, the data creation unit 9 stores the restored information in the communication buffer 10. Therefore, the main drive control unit 6 can acquire the information supplied from the buzzer device 3 by referring to the communication buffer 10.

  Next, the buzzer device 3 includes a communication interface 33, a buzzer drive control unit (connection device side control unit) 34 and a data analysis unit 35 connected to the communication interface 33. The communication interface 33 drops the voltage levels of the first output signal and the second output signal output from the second pin and the fifth pin of the modular jack 28 and supplies them to the buzzer drive control unit 34 and the data analysis unit 35. . In this example, the voltage is converted from 24V to 3.3V or 5V for a logic circuit.

  The buzzer drive control unit 34 includes a CPU, a ROM (storage unit) 34a, a RAM, and the like. The ROM 34a is a rewritable nonvolatile memory and is built in the CPU in this example. Alternatively, it may be connected to the CPU via a bus. The ROM 34a stores and holds firmware for driving and controlling the buzzer device 3, version information (status information) of the firmware, manufacturer information indicating the manufacturer of the firmware, and the like. Further, the roll paper printer 2 can upgrade the version of the ROM 34a by rewriting the firmware by communicating with and controlling the buzzer device 3 based on such information. The buzzer drive control unit 34 is connected to a buzzer 31 that is driven and controlled by the buzzer drive control unit 34 and a reception buffer 36 that includes a RAM as a work area.

  An analyzed data holding area 37 such as a RAM is connected to the data analyzing unit 35 such as a CPU, and a reception buffer 36 is connected to the analyzed data holding area 37. The data analysis unit 35 analyzes the first output signal and the second output signal that are sequentially supplied from the main drive control unit 6 via the second pin and the fifth pin of the modular jack 28, and generates a control command (control). Signal) is sequentially acquired and held in the analyzed data holding area 37. The data analysis unit 35 repeats the operation of storing in the reception buffer 36 every time 1 byte of control command information is accumulated in the analyzed data holding area 37, and restores the control command in the reception buffer 36.

  When the control command is restored in the reception buffer 36, the buzzer drive control unit 34 such as a CPU identifies whether the control command is an information request command (information request signal). If the control command is not an information request command, this control command is a ringing control command, and therefore the buzzer drive control unit 34 rings the buzzer 31 based on the ringing control command. The buzzer 31 may be self-excited or separately excited, and includes a drive circuit. The ringing control command allows the buzzer 31 to specify the ringing frequency, strength, tone color, ringing time, and the like using predetermined arguments.

  Further, when the control command is an information request command, the buzzer drive control unit 34 obtains information requested by the information request command bit by bit, and an H level or L level pulse corresponding to this information. A voltage signal having a shape is supplied as an information signal from the third pin of the modular jack 28 to the main drive control unit 6 via the input signal line DKS. Further, such supply of the information signal is repeated for the data length of the information requested by the information request command. Thus, the information requested by the information request command is supplied to the main drive control unit 6 as a series of pulse signals from the buzzer drive control unit 34.

(Drive control operation of buzzer device by roll paper printer)
Next, a drive control operation of the buzzer device 3 by the roll paper printer 2 will be described with reference to FIGS. FIG. 4A is an explanatory diagram showing a ringing control command supplied from the roll paper printer 2 to the buzzer device 3, and FIG. 4B is an information request command supplied from the roll paper printer 2 to the buzzer device 3. It is explanatory drawing which shows. FIG. 5A is a flowchart showing the operation on the roll paper printer 2 side when a control command is supplied from the roll paper printer 2 to the buzzer device 3, and FIG. FIG. 5C is a flowchart illustrating an operation on the buzzer device 3 side when a control command is supplied toward the device 3, and FIG. 5C is a timing of a communication operation in which the control command is transmitted from the roll paper printer 2 to the buzzer device 3. It is a chart. FIG. 6A is a flowchart showing an operation on the buzzer device side when information is supplied from the buzzer device 3 to the roll paper printer 2, and FIG. 6B is a flowchart from the buzzer device 3 to the roll paper printer 2. 6 is a flowchart showing an operation on the side of the roll paper printer 2 when information is supplied to the printer, and FIG. 6C is a timing chart of a communication operation in which information is transmitted from the buzzer device 3 to the roll paper printer 2.

  As shown in FIG. 4, the control command transmitted from the main drive control unit 6 of the roll paper printer 2 to the buzzer device 3 is 4-byte information. As shown in FIG. 4A, the ringing control command is command information for controlling whether or not the first byte causes the buzzer 31 to ring, and the second and third bytes are the ringing frequency of the buzzer 31. The fourth byte is time information for controlling the ringing time of the buzzer 31. In the information request command, as shown in FIG. 4B, the first byte is command information indicating information requested by the main drive control unit 6, the second byte and the third byte are dummy information, The fourth byte is acquisition bit information that specifies what bit value of the information specified by the first byte is to be acquired. Information requested by the command information includes, for example, firmware version information of the buzzer device 3. The version information is 8-bit information stored in the ROM 34a of the buzzer drive control unit 34. Therefore, a value from 1 to 8 is designated as the acquired bit information.

  When transmitting a control command from the roll paper printer 2 to the buzzer device 3, as shown in FIG. 5A, the main drive control unit 6 inputs a second control signal of H level to the terminal B, An H-level second output signal is output from the second output signal line DKD2 for 500 μsec (step ST1, t0 in FIG. 5C).

  Next, the main drive control unit 6 sets the signal level corresponding to the first bit of the command information of the control command to the first output signal from the first output signal line DKD1. Specifically, when the first bit is 1, the main drive control unit 6 inputs the H level first control signal to the terminal A, and outputs the H level first output from the first output signal line DKD1. Output a signal. When the first bit is 0, the main drive control unit 6 inputs the L level first control signal to the terminal A, and outputs the L level first output signal from the first output signal line DKD1. In this example, the first bit is 1, and the first output signal of H level is output from the first output signal line DKD1. (Step ST2, t1 in FIG. 5C).

  Thereafter, the main drive control unit 6 inputs an L level second control signal to the terminal B, and outputs an L level second output signal from the second output signal line DKD2 for 500 μsec (step ST3, FIG. 5 (c) t2).

  On the other hand, on the buzzer device 3 side, as shown in FIG. 5B, when the buzzer drive control unit 34 detects a falling edge at which the second output signal of the second output signal line DKD2 changes from H level to L level. An interrupt process is generated in the buzzer drive controller 34 (step ST11, t2 in FIG. 5C).

  In the interrupt process, the data analysis unit 35 confirms that there is no change in the second output signal of the second output signal line DKD2 for 50 μsec in order to remove noise (step ST12). The first output signal of the output signal line DKD1 is detected (step ST13, t3 in FIG. 5C), and whether the first bit of the control command is 1 or 0 is acquired. Then, the information of the first bit of the acquired control command is stored in the analyzed data holding area 37 (step ST14).

  By these operations, transmission of the first bit of the control command from the roll paper printer 2 to the buzzer device 3 is completed, so that the main drive control unit 6 continues with steps ST1 to ST3 for the next bit of the control command. Perform transmission operation. Along with this, on the buzzer device 3 side, the reception operation of step ST11 to step ST14 is performed.

  Here, every time the reception operation of steps ST11 to ST14 is performed on the buzzer device 3, it is confirmed whether or not 1 byte of information is accumulated in the analyzed data holding area 37 (step ST15). When it is confirmed that the information is accumulated, these pieces of information are stored in the reception buffer 36 (step ST16). These operations are repeated until 4-byte information corresponding to the data length of the control command is stored in the reception buffer 36.

  When the information for the last byte of the control command is stored and held in the reception buffer 36, the control command is restored in the reception buffer 36.

  When the control command is restored to the reception buffer 36, as shown in FIG. 6A, an interrupt process is generated in the buzzer drive control unit 34 (step ST21, t10 in FIG. 6C), and the buzzer drive control unit. 34 identifies whether this control command is an information request command (step ST22).

  In step ST22, when the control command is a ringing control command, the buzzer drive control unit 34 rings the buzzer 31 at a predetermined frequency for a predetermined time based on the ringing control command.

  In step ST22, when the control command is an information request command, the buzzer drive control unit 34 acquires information specified by the information request command. Here, it is specified that the version information of the firmware stored in the ROM 34a of the buzzer drive control unit 34 is acquired by the command information of the information request command, and the first bit of the version information is specified by the acquired bit information. It shall be.

  When the buzzer drive control unit 34 acquires the first bit of the version information from the ROM 34a, the buzzer drive control unit 34 generates a pulse-shaped information signal having a signal level corresponding to the first bit, via the third pin of the modular jack 28. To the input signal line DKS. Specifically, when the first bit of the version information is 1, an H level voltage signal is generated as an information signal, and when the version information is 0, an L level voltage signal is generated as an information signal, and the input signal line DKS. To enter. In this example, the first bit of the version information is 1, and an H level information signal is input (step ST23, t11 in FIG. 6C).

  On the other hand, in the main drive control unit 6 that has completed transmission of the information request command, the main drive control unit 6 receives the input signal line DKS at the time t12 when the second output signal rises immediately after t10 when the information request signal has been supplied. The signal level of the information signal input to is detected. More specifically, after the last 1-bit information of the information request command is transmitted (step ST31, t10 in FIG. 6 (c)), it waits for 500 μsec to elapse (step ST32, FIG. 6 (c)). T12), the signal level of the information signal input to the input signal line DKS is detected, and whether the first bit of the version information is 1 or 0 is acquired based on the signal level. Further, the acquired information is held in the data creation unit 9 (step ST33).

  Here, the buzzer drive control unit 34 detects the signal level of the information signal input to the input signal line DKS at the time t12 when 500 μsec has elapsed from the time t10 when the last 1-bit information of the information request command is transmitted. Receives the information request command, interprets the information request command, obtains the first bit of the version information of the requested firmware, and sends the information signal of the signal level corresponding to the version information to the input signal line DKS. This takes into account the processing time (t10 to t11) required until the input. In this example, since this processing time is about 360 μsec, the first bit of the version information transmitted from the buzzer device 3 is detected by detecting the signal level of the input signal line DKS at time t12 when 500 μsec has elapsed from time t10. Can be acquired reliably.

  When the first bit of the version information is held in the data creation unit 9, the main drive control unit 6 continues to transmit an information request command for requesting acquisition of the next bit of the version information. That is, the roll paper printer 2 performs the transmission operation from step ST1 to step ST3 while incrementing the acquired bit information. Along with this, on the buzzer device 3 side, the reception operation in steps ST11 to ST16 and the transmission operation in steps ST21 to ST23 are performed. The data creation unit 9 restores the version information by reflecting the information acquired bit by bit in the already acquired information.

  When these operations are repeated eight times corresponding to the data length of the version information, the restoration of the version information by the data creation unit 9 is completed. Therefore, the data creation unit 9 stores the restored version information in the reception buffer 36. The main drive control unit 6 refers to the reception buffer 36 to obtain firmware version information of the buzzer device 3. Based on this information, the roll paper printer 2 can update the firmware by rewriting the firmware in the ROM 34a by communicating with and controlling the buzzer device 3.

(Drawer device drive control operation by roll paper printer)
Next, a drive control operation of the drawer device by the roll paper printer 2 will be described as a reference example. FIG. 7 is a circuit diagram showing an example in which a drawer device is connected to the drawer port.

  The drawer port 8 of the roll paper printer can drive a drawer device equipped with two drawers via the modular jack 28. Accordingly, the drawer port 8 includes a first solenoid (actuator) 91 for changing the first drawer from the closed state to the open state, and a second solenoid (actuator) for changing the second drawer from the closed state to the open state. 92, an open / close state detection switch 93 for detecting the open / close state of the first drawer and the second drawer with a mechanical or optical mechanism, and one side of the drawer is grounded so that each drawer does not open due to noise or the like. A shield 94 is connected.

  When the two drawers and the roll paper printer 2 are connected, one side of the coil of the first solenoid 91 is connected to the first output signal line DKD1 of the drawer port 8 via the second pin of the modular jack 28, and the other The side is connected to the drive power source of 24V from the power line PL via the fourth pin. One side of the coil of the second solenoid 92 is connected to the second output signal line DKD2 via the fifth pin, and the other side is connected to the 24V drive power source from the power line PL via the fourth pin. The open / closed state detection switch 93 is connected to the input signal line DKS via the third pin and pulled up by a pull-up resistor (not shown), and the other side is grounded on the roll paper printer 2 side via the sixth pin. Yes. The other side of the shield 94 is grounded on the roll paper printer 2 side via the first pin.

  When the roll paper printer 2 opens the first drawer and the second drawer, the main drive control unit 6 first checks the state signal input to the input signal line DKS. When the first drawer and the second drawer are in the open state, the open / close state detection switch 93 is on, and an H level voltage signal of 2V to 5V is input as a state signal to the input signal line DKS. Is done. When the first drawer and the second drawer are in the closed state, the open / close state detection switch 93 is off, and an L level voltage signal of 0V to 0.8V is input to the input signal line DKS as a state signal. The The state signal input to the input signal line DKS is input to the main drive control unit 6 via the terminal C.

  When the main drive control unit 6 confirms that the state signal is at the L level and the first drawer and the second drawer are in the closed state, the main drive control unit 6 sends the drawer drive signal to the terminal A. input. The drawer driving signal is an H-level pulse-shaped voltage signal. When the drawer drive signal is input, the first transistor 81 is turned on in the circuit from the fourth pin to which power is supplied to the terminal A via the first solenoid 91 and the second pin, and the collector current flows. As a result, a voltage signal of 24V is applied from the first output signal line DKD1 to the first solenoid 91 for a predetermined time, so that the first drawer is opened.

  Further, the main drive control unit 6 inputs a drawer drive signal to the terminal B. The drawer driving signal is an H-level pulse-shaped voltage signal. When the drawer drive signal is input, the second transistor 83 is turned on in the circuit from the fourth pin to which power is supplied to the terminal B via the second solenoid 92 and the fifth pin, and the collector current flows. As a result, a voltage signal of 24V is applied from the second output signal line DKD2 to the second solenoid 92 for a predetermined time, so that the second drawer is opened. When the first drawer and the second drawer are in the open state, the open / close state detection switch 93 is turned on, so that an H level state signal is input to the input signal line DKS.

(Function and effect)
According to the present embodiment, the roll paper printer 2 and the buzzer device 3 are connected to the second pin of the modular jack 28 that is the output terminal of the first output signal line DKD1 of the drawer port 8 and the output of the second output signal line DKD2. The connection is made through the third pin of the modular jack 28 which is a terminal and the third pin of the modular jack 28 which is an input terminal of the input signal line DKS. The first output signal line DKD1 and the second output signal line DKD2 having these output terminals are signal lines for outputting a drawer drive signal for driving the drawer device from the roll paper printer 2 to the drawer device. An input signal line DKS having a terminal is a signal line for receiving a status signal indicating an open / closed state of the drawer device from the drawer device to the roll paper printer 2, and each of them is a signal line generally provided in the drawer drive circuit. Terminal.

  When the main drive control unit 6 of the roll paper printer 2 controls the buzzer device 3, the drawer port 8 is driven to control the buzzer device 3 as in the case of controlling the drawer device. The first output signal and the second output signal are generated and supplied to the buzzer device 3 through the second pin and the fifth pin of the modular jack 28. When the information request signal is supplied to the buzzer drive control unit 34 of one of the buzzer devices 3, as in the drawer device, the pulse-shaped information signal is sent to the roll paper printer 2 via the third pin of the modular jack 28. To supply. Therefore, according to the present embodiment, bidirectional communication can be performed between the roll paper printer 2 and the buzzer device 3 without changing the roll paper printer 2.

  Further, the buzzer device 3 acquires information requested by the information request signal from the roll paper printer 2 from the ROM 34a and the like and supplies it to the roll paper printer 2. Information can be acquired.

  Furthermore, according to the present embodiment, when the roll paper printer 2 drives and controls the buzzer device 3, the two output communication lines, the first output signal line DKD 1 and the second output signal line DKD 2, are used in a synchronous manner. Are communicating. Therefore, communication reliability can be improved.

  Further, the data analysis unit 35 detects the first output signal of the first output signal line DKD1 and acquires the second output signal line for 50 μsec before acquiring whether the first bit of the control command is 1 or 0. It has been confirmed that there is no change in the second output signal of DKD2. Accordingly, it is possible to eliminate the case where noise is included in the communication from the roll paper printer 2 to the buzzer device 3.

(Other embodiments)
In the above embodiment, when the buzzer drive control unit 34 detects a falling edge at which the second output signal of the second output signal line DKD2 changes from the H level to the L level, an interrupt process is generated in the buzzer drive control unit 34. However, interrupt processing may be generated when a rising edge at which the second output signal changes from L level to H level is detected. In this case, the main drive control unit 6 should detect the signal level of the information signal input to the input signal line DKS at the time of the fall of the second output signal immediately after the supply of the information request signal. The information supplied from the buzzer device 3 can be acquired.

  In the above-described embodiment, the information specified for acquisition by the information request command is the firmware version information of the buzzer device 3, but the information specified for acquisition by the information request command is limited to this. It is not a thing. For example, in order to confirm whether or not the buzzer device 3 is a genuine product, acquisition of manufacturer information indicating the manufacturer stored in the ROM 34a of the buzzer drive control unit 34 may be designated.

  Furthermore, in the above embodiment, the buzzer device 3 is connected to the roll paper printer 2, but the printer connection device connected to the roll paper printer 2 via the drawer port 8 is not limited to the buzzer device 3. . As the printer connection device, for example, when there is an indicator light and the indicator light is connected, the main drive control unit 6 emits light for driving and controlling the light emission pattern and the light emission time of the indicator light instead of the ring control command. A control command is supplied to the indicator lamp via the drawer port 8. Further, the main drive control unit 6 acquires the firmware version information of the indicator lamp and the like in response to the information request command.

1. Printer system, 2. Roll paper printer, 3. Buzzer device, 5. Host computer, 6. Main drive control unit, 7. Communication interface, 8. Drawer port, 9. Data creation unit, 10. Receive buffer, 21. -Printer body, 22-Opening / closing lid, 23-Recording paper outlet, 24-Cover opening / closing lever, 25-Power switch, 26-Notch, 27-RS-232C connector, 28-Modular jack, 31-Buzzer, 32 -Board, 33-Communication interface, 34-Buzzer drive control unit, 34a-ROM, 35-Data analysis unit, 36-Receive buffer, 37-Data holding area, 81-83-Transistor, 82-84-Diode, 91- 92, solenoid, 93, open / close state detection switch, 94, shield, DKD1, output signal line, KD2 · Output signal lines, DKS · input signal line, PL · power line

Claims (11)

  1. A printer connection device for connecting a printer connection device to a printer having a drive circuit having an output terminal for outputting an actuator drive signal and an input terminal for inputting a signal, and controlling the printer connection device by the printer. A control method,
    The printer controls the drive circuit to generate an information request signal for requesting supply of predetermined information to the printer connection device, and the information connection signal is transmitted to the printer connection device via the output terminal. To supply
    When the information request signal is supplied, the printer connection device supplies the information requested by the information request signal to the printer via the input terminal of the drive circuit. Control method of the device.
  2. The printer controls the drive circuit to generate a control signal for controlling the printer connection device, and supplies the control signal to the printer connection device via the output terminal,
    2. The method of controlling a printer connection apparatus according to claim 1, wherein the printer connection apparatus performs a predetermined operation based on the control signal when the control signal is supplied.
  3. The drive circuit includes a first circuit and a second circuit, and a first output terminal that outputs the first output signal generated by the first circuit as the output terminal, and a second output generated by the second circuit. A second output terminal for outputting an output signal;
    The method according to claim 2, wherein the information request signal and the control signal are defined by a combination of the first output signal and the second output signal, respectively.
  4. The first output signal is a series of pulse signals including the information request signal or the control signal,
    The second output signal is a timing signal whose signal level repeatedly changes at a constant period,
    The printer connection apparatus detects the first output after detecting that there is no change in the signal level of the second output signal for a predetermined time shorter than the period from the falling time or rising time of the signal level of the second output signal. The method according to claim 3, wherein the information request signal and the drive control signal are recognized by sequentially acquiring signal levels of the signals.
  5. The printer connection device outputs a series of pulse signals including the information requested by the information request signal as an information signal,
    The printer recognizes the information signal by sequentially acquiring the signal level of the information signal at the rise time or the fall time of the second output signal immediately after supplying the information request signal to the printer connection device. The method of controlling a printer connection device according to claim 4, wherein:
  6.   6. The cycle of changing the signal level of the second output signal is longer than the time required for the printer connection apparatus to supply the information request signal after receiving the supply of the information request signal. A method for controlling the printer connection device according to claim 1.
  7.   The control of the printer connection device according to any one of claims 1 to 6, wherein the actuator is a solenoid that releases a lock mechanism of the drawer device, and the printer connection device is a buzzer device. Method.
  8. A printer having an output terminal for outputting an actuator drive signal and a drive circuit having an input terminal for inputting the signal, a control unit for controlling the drive circuit, and a printer connection device connected to the printer; In the printer system that has
    The printer connection device is connected to the printer via the input terminal and the output terminal,
    The control unit of the printer controls the drive circuit to generate an information request signal for requesting the printer connection apparatus to supply predetermined information, and the information request signal is transmitted to the printer via the output terminal. To the printer connection device,
    The printer connection device stores the information requested by the information request signal when it is recognized that the information request signal is supplied and a storage unit that stores and holds at least one state information. And a connection device side control unit that is supplied from the printer to the input terminal of the printer.
  9. The control unit of the printer controls the drive circuit to generate a control signal for controlling the printer connection device, and supplies the control signal to the printer connection device via the output terminal,
    The printer connection device includes a drive mechanism that is controlled by the connection device side control unit, and when the connection device side control unit recognizes that the control signal has been supplied, The printer system according to claim 8, wherein the drive mechanism is controlled based on the printer mechanism.
  10. The drive circuit of the printer includes a first circuit and a second circuit, and the first output terminal that outputs the first output signal generated by the first circuit as the output terminal is generated by the second circuit. A second output terminal for outputting a second output signal,
    The printer system according to claim 9, wherein the control unit defines the information request signal and the control signal by a combination of the first output signal and the second output signal, respectively.
  11.   11. The printer system according to claim 8, wherein the actuator is a solenoid that releases a lock mechanism of the drawer device, and the printer connection device is a buzzer device.
JP2009148378A 2009-06-23 2009-06-23 Control method for printer connection device and printer system Withdrawn JP2011008318A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009148378A JP2011008318A (en) 2009-06-23 2009-06-23 Control method for printer connection device and printer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009148378A JP2011008318A (en) 2009-06-23 2009-06-23 Control method for printer connection device and printer system

Publications (1)

Publication Number Publication Date
JP2011008318A true JP2011008318A (en) 2011-01-13

Family

ID=43564950

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009148378A Withdrawn JP2011008318A (en) 2009-06-23 2009-06-23 Control method for printer connection device and printer system

Country Status (1)

Country Link
JP (1) JP2011008318A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9195474B2 (en) 2013-01-30 2015-11-24 Seiko Epson Corporation System and method print control device configured to control screen display unit of receipt printer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9195474B2 (en) 2013-01-30 2015-11-24 Seiko Epson Corporation System and method print control device configured to control screen display unit of receipt printer

Similar Documents

Publication Publication Date Title
CN100388626C (en) Photoelectric sensor and its adjusting method
JP4090334B2 (en) Test equipment for semiconductor integrated circuits
EP1326147B1 (en) Control and supervisory signal transmission system
US5809013A (en) Message packet management in a wireless security system
US7456826B2 (en) Touchscreen-sensitive and transponder reading stylus
US4024501A (en) Line driver system
US6133844A (en) System and method for programming an operator panel LED for printer
JP3616386B2 (en) Signal transmitter
US8495401B2 (en) Image forming apparatus and control method thereof
US9471815B2 (en) Diagnosing a magnetic reader
KR101904520B1 (en) Electro-optical communications link
US7461277B2 (en) Image forming device, power supply control device
TWI506956B (en) Master-slave flip-flop circuit
JP5992565B2 (en) Edge-based communication
US4930017A (en) Communication terminal device
CN105914900B (en) Wireless load modulation
JP4276981B2 (en) Serial communication apparatus, communication method thereof, and system apparatus using the serial communication apparatus
US8228526B2 (en) Image processing apparatus
US7296234B2 (en) Electronic device
US4912522A (en) Light driven remote system and power supply therefor
US20030204403A1 (en) Memory module with voice recognition system
US6671643B2 (en) Method for testing a hearing aid, and hearing aid operable according to the method
CN106104508B (en) Method and device for the address using clock setting module
EP1920308B1 (en) Method and apparatus for supplying power, and display device
US20120293783A1 (en) Light source drive device, optical scanning device and image forming apparatus

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20120904