CN116320118A - Telephone with external module for changing pre-stored number and method for changing pre-stored number - Google Patents

Telephone with external module for changing pre-stored number and method for changing pre-stored number Download PDF

Info

Publication number
CN116320118A
CN116320118A CN202310551418.0A CN202310551418A CN116320118A CN 116320118 A CN116320118 A CN 116320118A CN 202310551418 A CN202310551418 A CN 202310551418A CN 116320118 A CN116320118 A CN 116320118A
Authority
CN
China
Prior art keywords
resistor
pin
chip
triode
programmer
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
CN202310551418.0A
Other languages
Chinese (zh)
Inventor
李彦田
马伟
张丽
丁亮
李欣颖
高屹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Rizhao Polytechnic
Original Assignee
Rizhao Polytechnic
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 Rizhao Polytechnic filed Critical Rizhao Polytechnic
Priority to CN202310551418.0A priority Critical patent/CN116320118A/en
Publication of CN116320118A publication Critical patent/CN116320118A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0297Telephone sets adapted to be mounted on a desk or on a wall
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M9/00Arrangements for interconnection not involving centralised switching
    • H04M9/002Arrangements for interconnection not involving centralised switching with subscriber controlled access to a line, i.e. key telephone systems
    • H04M9/008Multiplex systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2242/00Special services or facilities
    • H04M2242/10Secret communications
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Storage Device Security (AREA)

Abstract

The telephone with external module to change the prestored number and the method to change the prestored number belong to the technical field of multiplexing communication in the telephone, the problem of changing the number by the emergency key in the later stage of the wall telephone needs to be solved, the problems of changing the number by the emergency key in the later stage of the wall telephone can be well solved by combining the main control cpu, the ep rom circuit, the protection circuit, the programming cpu circuit, the new programming mode and the like of the wall telephone, and the problem of changing the number by only needing to leave a four-core socket interface is solved, thereby being convenient for production, being capable of changing in the later stage, also carrying out data encryption, leading people without knowing the password to be unable to change, adding the protection circuit at the same time, preventing the damage caused by the external voltage higher than the circuit voltage, and leading the product to increase protection.

Description

Telephone with external module for changing pre-stored number and method for changing pre-stored number
Technical Field
The invention relates to a telephone internal multiplexing communication technology, in particular to a telephone with a pre-stored number changed by an external module and a method for changing the pre-stored number.
Background
The multiplexing technology is a technology of combining a plurality of low-speed channels into one high-speed channel, the wall telephone in the market at present is more and more in demand, the conventional panel usually has no number keys, most of the panel has only a few function keys, the keys cannot be set or the stored numbers of emergency keys can not be adjusted in a multiplexing IIC bus mode and a programming mode of a dialogue machine, the stored numbers must be stored in the factory or written into the eporom through an external device according to a main control cpu format, if other mcu is directly connected to the eporom for read-write operation, the problems of damage or unsuccessful read-write of an mcu chip and the like can be caused, and the problems of damage caused by static electricity, high voltage and the like can be possibly caused, and if encryption is not performed, the problem of changing the emergency key numbers in the later stage of the wall telephone can be solved by the programming mode of multiplexing the IIC bus mode and the dialogue machine.
Disclosure of Invention
The invention aims to provide a telephone with a pre-stored number and a method for changing the pre-stored number by using an external module, which can well solve the problem of changing the number by an emergency key at the later stage of a wall telephone by multiplexing an IIC bus and programming a dialogue machine, and only needs to leave a four-core socket interface, thereby being convenient for production, and also being capable of changing at the later stage, encrypting data, leading people without knowing a password to be incapable of changing, adding a protection circuit, preventing damage caused by external voltage higher than circuit voltage, and leading products to be protected. Technically, the control of two main control cpus on one eeprom memory is realized in an IIC communication mode.
The invention aims to achieve the aim, and the aim is achieved by the following technical scheme: the method for changing the telephone of the pre-stored number and the pre-stored number by using the external module comprises the following steps:
step 1, the telephone releases the IIC bus to prepare for the programmer to multiplex the IIC bus; the wall phone main control cpu is connected with the epom chip, controls the SDA and SCL buses, the SCL port of the wall phone main control cpu is a clock output port and controls the level of the SCL line to be high and low, the SDA is a data transmission line, and the high and low level is determined according to the data requirement; when the CPU has data operation requirements, firstly judging whether SCL and SDA ports are at high level, if so, judging that a bus is at an idle state, performing read-write operation according to a standard IIC bus protocol, and setting the SCL port as an input state and the SDA port as an output state after the operation is completed; if the bus is not at the high level, judging that the bus is busy, waiting for a period of time according to the actual application requirement, and judging the bus again until the bus is idle; when data operation starts, setting a low SDA port at a high level of SCL, performing read-write operation and ending signal according to the regular operation time sequence of the epom, after the operation is finished, setting the SDA port and the SCL port to be in an input state by a main control CPU of the wall telephone, and connecting two lines of the SDA and the SCL with a pull-up resistor of 10k respectively for ensuring that the two ports are at the high level when the two ports are idle;
step 2, hardware connection; when the customer needs to change the number information stored by the emergency key, the customer is connected to the wall phone through the four-core socket;
step 3, performing password checking operation of a programmer to protect data for multiplexing; the programmer needs to carry out a password checking operation, and the specific implementation is as follows: pulling down the SCL_B port, pulling down the SCL through a protection circuit, waiting for the response of the wall phone main control CPU to pull down the SDA, setting the SDA port to be in an input state by the programmer after receiving the response, writing an 8-bit password by the programmer according to normal data writing time sequence operation, sending a stopping time sequence, and receiving the data by the phone main control CPU;
step 4, checking the password; if the password is correct, then the SDA and SCL ports are set to be in an input state, the IIC bus is in an idle state, and the programmer judges that the password verification is passed after detecting that the SDA_R is in a high level; if the password is incorrect, the SDA and SCL ports are pulled down, and the IIC bus is kept at a low level and cannot be operated;
and step 5, after the programmer detects that the password is correct in correction, the programmer writes the number to be stored according to the standard operation of the eeprom.
The wall telephone main control cpu performs emergency dialing to read the number stored in the eporom when the wall telephone main control cpu is started, multiplexing of the IIC bus is realized, and number programming is performed after the wall telephone main control cpu hangs up.
The four pins of the four-core socket are ground, sda_ R, SDA _w, and scl_b, respectively, connected to SDA and SCL through a protection circuit.
The telephone for changing the pre-stored number by using the external module comprises a wall telephone main control CPU, an epom circuit, a protection circuit and a programming CPU circuit, wherein the wall telephone main control CPU is connected with the epom circuit through an SDA line and an SCL line, the programming CPU circuit is connected with the protection circuit, and the protection circuit is connected with the SDA line and the SCL line.
The wall telephone master control cpu comprises a U2 chip, a crystal oscillator G1 is connected in series between a No. 21 pin and a No. 20 pin of the U2 chip, a No. 19 pin of the U2 chip is connected with one end of a resistor R13 and one end of a capacitor C3, the other end of the capacitor C3 is grounded, the other end of the resistor R13 is connected with one end of a capacitor C2, the other end of the capacitor C2 is grounded, a No. 13 pin of the U2 chip is grounded, the epom circuit comprises a U1 chip, a No. 1 pin, a No. 2 pin, a No. 3 pin and a No. 4 pin of the U1 chip are grounded and connected with one end of the capacitor C1 after being connected, the other end of the capacitor C1 is connected with a No. 8 pin and VCC of the U1 chip, a No. 7 pin of the U1 chip is grounded, a No. 6 pin of the U1 chip is connected with one end of a resistor R12, the other end of the resistor R12 is connected with VCC, the protection circuit comprises a four-core socket P1 of a programmer, a No. 1 pin is connected with one end of a resistor R11, the other end of the resistor R11 is provided with a photoelectric coupler, a pin 1 of the photoelectric coupler is matched with the resistor R11, a pin 2 and a pin 3 of the photoelectric coupler are grounded, a pin 4 of the photoelectric coupler is connected with a pin 6 of a U1 chip and then is connected with a pin 23 of a U2 chip, a pin 2 of a four-core socket P1 of a programmer is connected with one end of a resistor R3, the other end of the resistor R3 is connected with one end of a resistor R2 and a base electrode of a triode Q1, an emitter of the triode Q1 is connected with the other end of the resistor R2 and the negative electrode of a diode D1, a positive electrode of the diode D1 is connected with VCC, a collector of the triode Q1 is connected with one end of a resistor R7, the other end of the resistor R7 is connected with one end of the base electrode of the triode Q2, an emitter of the triode Q2 and the other end of the resistor R8 are connected with the ground, one end of the collector of the resistor Q2, the pin 5 of the U1 chip is connected with the other end of the resistor R1, the pin 3 of the four-core socket P1 of the programmer is connected with the cathode of the diode D3, the anode of the diode D3 is grounded and then connected with the emitter of the triode Q3, the collector of the triode Q3 is connected with the cathode of the diode D2, the anode of the resistor R4 is connected with one end of the resistor R5 and then connected with VCC, the base of the triode Q3 is connected with one end of the resistor R6, the other end of the resistor R6 is connected with the collector of the triode Q4 after being connected with the other end of the resistor R5, the emitter of the triode Q4 is connected with one end of the resistor R10 and then grounded, the other end of the resistor R10 is connected with one end of the base of the triode Q4 and then connected with the pin 5 of the U1 chip, the other end of the resistor R9 is connected with the pin 22 of the U2 chip, the programming CPU circuit comprises a 9N1 chip, a resistor 9R26, a resistor 9R30, a resistor 9R31, a resistor 9R38, a resistor 9R39, a resistor 9R40, a resistor 9R41 and a four-core programming socket HS, the crystal oscillator G2 is connected in series between the 14 th pin and the 13 th pin of the 9N1 chip, the 14 th pin of the 9N1 chip is connected with one end of a capacitor 9C10, the other end of the capacitor 9C10 is connected with one end of a capacitor 9C11 and then grounded, the other end of the capacitor 9C11 is connected with the 13 th pin of the 9N1 chip, the 12 th pin of the 9N1 chip is connected with one end of a capacitor 9C12, one end of a capacitor 9C13, the cathode of a voltage stabilizing diode 9Z1, the other end of the capacitor 9C12, the other end of the capacitor 9C13 and the anode of the voltage stabilizing diode 9Z1 are grounded, the 12 th pin of the N1 chip is connected with VDD, one end of a resistor 9R26, a resistor 9R30 and one end of a resistor 9R31 are all connected with VDD, the other end of a resistor 9R28, one end of a resistor 9R27 and the base of a triode 9V8, the other end of the resistor 9R27 is grounded, the other end of the resistor 9R28 is connected with one end of a resistor 9R29, the other end of the resistor 9R29 is connected with the other end of the resistor 9R31, the 11 pin of the 9N1 chip, one end of the capacitor 9C14 and the collector of the triode 9V9, the other end of the capacitor 9C14 is grounded, the emitter of the triode 9V9 is grounded, the other end of the resistor 9R30 is connected with the base of the triode 9V9 and the collector of the triode 9V8, the emitter of the triode 9V8 is grounded, the resistor 9R38, the resistor 9R39, the resistor 9R40 and one end of the resistor 9R41 are connected with VDD, the pin 5 of the 9N1 chip is connected with the other end of the resistor 9R38, the other end of the resistor 9R39, the other end of the resistor 9R40 and the other end of the resistor 9R41 are respectively connected with the other end of the key 1, the key 2, the key 3 and the key VOL, the pin 6 of the 9N1 chip is connected with the other end of the resistor 9R38, the other end of the resistor 9R39, the other end of the resistor 9R40 and the other end of the resistor 9R41 are respectively connected with the keys 4, the key 5, the key 6 and the key FLASH, the pin 7 of the 9N1 chip is respectively connected with the other end of the resistor 9R38, the other end of the resistor 9R39, the other end of the resistor 9R40 and the other end of the resistor 9R41 in series with the key 7, the key 8, the key 9 and the key REDIAL, the other end of the resistor 9R38, the other end of the resistor 9R39, the other end of the resistor 9R40 and the other end of the resistor 9R41 are respectively connected with keys, the key 0, the key#, the key ON/OFF in series, the pin 1, the pin 2, the pin 3, the pin 4 and the pin 7 of the chip 9N2 are all connected with the grounding end, the pin 8 of the chip 9N2 is connected with the end of the VDD and the one end of the resistor 9R44, the other end of the resistor 9R44 is connected with the one end of the resistor 9R43 and the pin 10 of the 9N1 chip, the other end of the resistor 9R43 is connected with the pin 5 of the chip 9N2, the pin 6 of the chip 9N2 is connected with the one end of the resistor 9R42, the other end of the resistor 9R42 is connected with the pin 9N1 chip, the No. 1 pin of the four-core socket HS of the programmer is connected with the positive electrode of the diode 9D7 and the No. 16 pin of the 9N1 chip, the negative electrode of the diode 9D7 is connected with the VDD, the No. 2 pin of the four-core socket HS of the programmer is connected with the positive electrode of the diode 9D6 and the No. 18 pin of the 9N1 chip, the negative electrode of the diode 9D6 is connected with the VDD, the No. 3 pin of the four-core socket HS of the programmer is grounded, the No. 4 pin of the four-core socket HS of the programmer is connected with the positive electrode of the diode 9D8 and the No. 17 pin of the 9N1 chip, and the negative electrode of the diode 9D8 is connected with the VDD.
The invention has the advantages that: the invention well solves the problem that the emergency key at the later stage of the wall telephone changes the number by multiplexing the IIC bus and programming the dialogue machine, only needs to leave a four-core socket interface, not only is convenient for production, but also can change at the later stage, and also carries out data encryption, so that people without knowing the password can not change, and meanwhile, a protection circuit is added to prevent the damage caused by the fact that the external voltage is higher than the circuit voltage, and the product is protected.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate the invention and together with the embodiments of the invention, serve to explain the invention. In the drawings:
FIG. 1 is a schematic diagram of the functional structure of the present invention;
fig. 2 is a schematic diagram of a phone portion connection according to the present invention;
FIG. 3 is a schematic diagram of a protection circuit according to the present invention;
FIG. 4 is a diagram illustrating a cipher transmission timing according to the present invention;
FIG. 5 is a schematic diagram of a circuit structure of a programmer CPU according to the present invention;
FIG. 6 is a schematic diagram of a programmer connection plug and overvoltage protection circuit according to the present invention;
FIG. 7 is a schematic diagram of a reset circuit of a programmer CPU according to the present invention;
FIG. 8 is a schematic diagram of a circuit structure of a programmer button according to the present invention.
Detailed Description
Preferred embodiments of the present invention will be described below with reference to the accompanying drawings.
The method for changing the telephone of the pre-stored number and the pre-stored number by using the external module is shown in fig. 1-8, and the programming implementation principle of the wall telephone comprises the following steps:
step 1, the telephone releases the IIC bus to prepare for the programmer to multiplex the IIC bus; the wall phone main control cpu is connected with the epom chip, controls the SDA and SCL buses, the SCL port of the wall phone main control cpu is a clock output port and controls the level of the SCL line to be high and low, the SDA is a data transmission line, and the high and low level is determined according to the data requirement; when the CPU has data operation requirements, firstly judging whether SCL and SDA ports are at high level, if so, judging that a bus is at an idle state, performing read-write operation according to a standard IIC bus protocol, and setting the SCL port as an input state and the SDA port as an output state after the operation is completed; if the bus is not at the high level, judging that the bus is busy, waiting for a period of time according to the actual application requirement, and judging the bus again until the bus is idle; when data operation starts, setting a low SDA port at a high level of SCL, performing read-write operation and ending signal according to the regular operation time sequence of the epom, after the operation is finished, setting the SDA port and the SCL port to be in an input state by a main control CPU of the wall telephone, and connecting two lines of the SDA and the SCL with a pull-up resistor of 10k respectively for ensuring that the two ports are at the high level when the two ports are idle;
step 2, hardware connection; when the customer needs to change the number information stored by the emergency key, the customer is connected to the wall phone through the four-core socket;
step 3, performing password checking operation of a programmer to protect data for multiplexing; the programmer needs to carry out a password checking operation, and the specific implementation is as follows: pulling down the SCL_B port, pulling down the SCL through a protection circuit, waiting for the response of the wall phone main control CPU to pull down the SDA, setting the SDA port to be in an input state by the programmer after receiving the response, writing an 8-bit password by the programmer according to normal data writing time sequence operation, sending a stopping time sequence, and receiving the data by the phone main control CPU;
step 4, checking the password; if the password is correct, then the SDA and SCL ports are set to be in an input state, the IIC bus is in an idle state, and the programmer judges that the password verification is passed after detecting that the SDA_R is in a high level; if the password is incorrect, the SDA and SCL ports are pulled down, and the IIC bus is kept at a low level and cannot be operated;
and step 5, after the programmer detects that the password is correct in correction, the programmer writes the number to be stored according to the standard operation of the eeprom.
The wall telephone main control cpu performs emergency dialing to read the number stored in the eporom when the wall telephone main control cpu is started, multiplexing of the IIC bus is realized, and number programming is performed after the wall telephone main control cpu hangs up.
The four pins of the four-core socket are ground, sda_ R, SDA _w, and scl_b, respectively, connected to SDA and SCL through a protection circuit.
The telephone for changing the pre-stored number by using the external module comprises a wall telephone main control CPU, an epom circuit, a protection circuit and a programming CPU circuit, wherein the wall telephone main control CPU is connected with the epom circuit through an SDA line and an SCL line, the programming CPU circuit is connected with the protection circuit, and the protection circuit is connected with the SDA line and the SCL line.
The wall telephone master control cpu comprises a U2 chip, a crystal oscillator G1 is connected in series between a No. 21 pin and a No. 20 pin of the U2 chip, a No. 19 pin of the U2 chip is connected with one end of a resistor R13 and one end of a capacitor C3, the other end of the capacitor C3 is grounded, the other end of the resistor R13 is connected with one end of a capacitor C2, the other end of the capacitor C2 is grounded, a No. 13 pin of the U2 chip is grounded, the epom circuit comprises a U1 chip, a No. 1 pin, a No. 2 pin, a No. 3 pin and a No. 4 pin of the U1 chip are grounded and connected with one end of the capacitor C1 after being connected, the other end of the capacitor C1 is connected with a No. 8 pin and VCC of the U1 chip, a No. 7 pin of the U1 chip is grounded, a No. 6 pin of the U1 chip is connected with one end of a resistor R12, the other end of the resistor R12 is connected with VCC, the protection circuit comprises a four-core socket P1 of a programmer, a No. 1 pin is connected with one end of a resistor R11, the other end of the resistor R11 is provided with a photoelectric coupler, a pin 1 of the photoelectric coupler is matched with the resistor R11, a pin 2 and a pin 3 of the photoelectric coupler are grounded, a pin 4 of the photoelectric coupler is connected with a pin 6 of a U1 chip and then is connected with a pin 23 of a U2 chip, a pin 2 of a four-core socket P1 of a programmer is connected with one end of a resistor R3, the other end of the resistor R3 is connected with one end of a resistor R2 and a base electrode of a triode Q1, an emitter of the triode Q1 is connected with the other end of the resistor R2 and the negative electrode of a diode D1, a positive electrode of the diode D1 is connected with VCC, a collector of the triode Q1 is connected with one end of a resistor R7, the other end of the resistor R7 is connected with one end of the base electrode of the triode Q2, an emitter of the triode Q2 and the other end of the resistor R8 are connected with the ground, one end of the collector of the resistor Q2, the pin 5 of the U1 chip is connected with the other end of the resistor R1, the pin 3 of the four-core socket P1 of the programmer is connected with the cathode of the diode D3, the anode of the diode D3 is grounded and then connected with the emitter of the triode Q3, the collector of the triode Q3 is connected with the cathode of the diode D2, the anode of the resistor R4 is connected with one end of the resistor R5 and then connected with VCC, the base of the triode Q3 is connected with one end of the resistor R6, the other end of the resistor R6 is connected with the collector of the triode Q4 after being connected with the other end of the resistor R5, the emitter of the triode Q4 is connected with one end of the resistor R10 and then grounded, the other end of the resistor R10 is connected with one end of the base of the triode Q4 and then connected with the pin 5 of the U1 chip, the other end of the resistor R9 is connected with the pin 22 of the U2 chip, the programming CPU circuit comprises a 9N1 chip, a resistor 9R26, a resistor 9R30, a resistor 9R31, a resistor 9R38, a resistor 9R39, a resistor 9R40, a resistor 9R41 and a four-core programming socket HS, the crystal oscillator G2 is connected in series between the 14 th pin and the 13 th pin of the 9N1 chip, the 14 th pin of the 9N1 chip is connected with one end of a capacitor 9C10, the other end of the capacitor 9C10 is connected with one end of a capacitor 9C11 and then grounded, the other end of the capacitor 9C11 is connected with the 13 th pin of the 9N1 chip, the 12 th pin of the 9N1 chip is connected with one end of a capacitor 9C12, one end of a capacitor 9C13, the cathode of a voltage stabilizing diode 9Z1, the other end of the capacitor 9C12, the other end of the capacitor 9C13 and the anode of the voltage stabilizing diode 9Z1 are grounded, the 12 th pin of the N1 chip is connected with VDD, one end of a resistor 9R26, a resistor 9R30 and one end of a resistor 9R31 are all connected with VDD, the other end of a resistor 9R28, one end of a resistor 9R27 and the base of a triode 9V8, the other end of the resistor 9R27 is grounded, the other end of the resistor 9R28 is connected with one end of a resistor 9R29, the other end of the resistor 9R29 is connected with the other end of the resistor 9R31, the 11 pin of the 9N1 chip, one end of the capacitor 9C14 and the collector of the triode 9V9, the other end of the capacitor 9C14 is grounded, the emitter of the triode 9V9 is grounded, the other end of the resistor 9R30 is connected with the base of the triode 9V9 and the collector of the triode 9V8, the emitter of the triode 9V8 is grounded, the resistor 9R38, the resistor 9R39, the resistor 9R40 and one end of the resistor 9R41 are connected with VDD, the pin 5 of the 9N1 chip is connected with the other end of the resistor 9R38, the other end of the resistor 9R39, the other end of the resistor 9R40 and the other end of the resistor 9R41 are respectively connected with the other end of the key 1, the key 2, the key 3 and the key VOL, the pin 6 of the 9N1 chip is connected with the other end of the resistor 9R38, the other end of the resistor 9R39, the other end of the resistor 9R40 and the other end of the resistor 9R41 are respectively connected with the keys 4, the key 5, the key 6 and the key FLASH, the pin 7 of the 9N1 chip is respectively connected with the other end of the resistor 9R38, the other end of the resistor 9R39, the other end of the resistor 9R40 and the other end of the resistor 9R41 in series with the key 7, the key 8, the key 9 and the key REDIAL, the other end of the resistor 9R38, the other end of the resistor 9R39, the other end of the resistor 9R40 and the other end of the resistor 9R41 are respectively connected with keys, the key 0, the key#, the key ON/OFF in series, the pin 1, the pin 2, the pin 3, the pin 4 and the pin 7 of the chip 9N2 are all connected with the grounding end, the pin 8 of the chip 9N2 is connected with the end of the VDD and the one end of the resistor 9R44, the other end of the resistor 9R44 is connected with the one end of the resistor 9R43 and the pin 10 of the 9N1 chip, the other end of the resistor 9R43 is connected with the pin 5 of the chip 9N2, the pin 6 of the chip 9N2 is connected with the one end of the resistor 9R42, the other end of the resistor 9R42 is connected with the pin 9N1 chip, the No. 1 pin of the four-core socket HS of the programmer is connected with the positive electrode of the diode 9D7 and the No. 16 pin of the 9N1 chip, the negative electrode of the diode 9D7 is connected with the VDD, the No. 2 pin of the four-core socket HS of the programmer is connected with the positive electrode of the diode 9D6 and the No. 18 pin of the 9N1 chip, the negative electrode of the diode 9D6 is connected with the VDD, the No. 3 pin of the four-core socket HS of the programmer is grounded, the No. 4 pin of the four-core socket HS of the programmer is connected with the positive electrode of the diode 9D8 and the No. 17 pin of the 9N1 chip, and the negative electrode of the diode 9D8 is connected with the VDD.
The invention well solves the problem that the emergency key at the later stage of the wall telephone changes the number by multiplexing the IIC bus and programming the dialogue machine, only needs to leave a four-core socket interface, not only is convenient for production, but also can change at the later stage, and also carries out data encryption, so that people without knowing the password can not change, and meanwhile, a protection circuit is added to prevent the damage caused by the fact that the external voltage is higher than the circuit voltage, and the product is protected. The communication mode of the IIC bus is a master-multiple-slave mode, namely, only one master controller (or master device) is arranged on one bus, the other is slave devices, the master controller initiates read-write operation, and the slave controllers answer write-in or read-out operation. The IIC bus of the design adopts a mode of two masters and one slave, and two master control cpus operate the same eporom. The direct connection mode is easy to damage the chip due to the power supply problem, and can be effectively solved through one isolation circuit connection. In the invention, the dialogue machine is programmed in a mode of multiplexing the IIC bus, and a password can be set for preventing external illegal operation, the password is consistent, and the external programming CPU is allowed to write data; and the passwords are inconsistent, the bus is forced to be pulled down, and the read-write operation is invalid. This step may be omitted when encryption is not required. Through the design of the software and hardware of the scheme, the number setting problem of the emergency key of the wall telephone and the setting problem of other functions are solved.
The working principle of the protection circuit is as follows:
when the output of SDA_W is high, the base electrode of the triode Q1 is also high, Q1 is cut off, the collector electrode of the triode Q1 outputs low level, the collector electrode is connected to the base electrode of the triode Q2 through a resistor R7, and the base electrode of the triode Q2 is also low, so that the triode Q2 is also cut off, and the SDA is pulled high by a pull-up resistor R1; when SDA_W is low, the base electrode of the triode Q1 is also low, the triode Q1 is conducted, the collector electrode of the triode Q1 outputs high level, the base electrode of the Q2 becomes high level, the Q2 is also saturated and conducted, and the SDA is pulled down to low level;
when SDA_R is read, SDA_W is at high level, and the triode Q1 and the triode Q2 are cut off according to the principle; when the output SDA of the eeacrom is at a high level, the base electrode of the triode Q4 is connected to the base electrode of the triode Q4 through R9, so that the base electrode of the triode Q4 is at a high level, the triode Q4 is conducted, the collector electrode of the triode Q4 outputs a low level, the base electrode of the triode Q3 is lower than the conducting voltage, the triode Q3 is cut off, the collector electrode of the triode Q3 is pulled up to be at a high level through a pull-up resistor R4 and a diode D2, and the collector electrode of the triode Q3 outputs a high level to SDA_R; when the output SDA of the eeacrom is at a low level, the base voltage of the triode Q4 is pulled down by R9, so that the triode Q4 is cut off, the collector of the triode Q4 outputs a high level, the base of the triode Q3 is far higher than the conducting voltage, the triode Q3 is saturated and conducted, the collector is pulled down to a low level, and the collector of the triode Q3 outputs a low level to SDA_R. Therefore, the protection circuit can normally output or input a high-low level. Since the IIC communication protocol operates the bus SDA, simultaneous writing and reading does not occur, and thus no collision occurs. The IIC is at high level in standby state, and at this time, the four triodes of the protection circuit are all at off state, and no large current is generated, so that the power consumption is low.
The foregoing description is only of the preferred embodiments of the invention and is not intended to limit the invention.

Claims (10)

1. The method for changing the pre-stored number is characterized in that: the wall phone programming implementation principle comprises the following steps:
step 1, the telephone releases the IIC bus to prepare for the programmer to multiplex the IIC bus; the wall phone main control cpu is connected with the epom chip, controls the SDA and SCL buses, the SCL port of the wall phone main control cpu is a clock output port and controls the level of the SCL line to be high and low, the SDA is a data transmission line, and the high and low level is determined according to the data requirement; when the CPU has data operation requirements, firstly judging whether SCL and SDA ports are at high level, if so, judging that a bus is at an idle state, performing read-write operation according to a standard IIC bus protocol, and setting the SCL port as an input state and the SDA port as an output state after the operation is completed; if the bus is not at the high level, judging that the bus is busy, waiting for a period of time according to the actual application requirement, and judging the bus again until the bus is idle; when data operation starts, setting a low SDA port at a high level of SCL, performing read-write operation and ending signal according to the regular operation time sequence of the epom, after the operation is finished, setting the SDA port and the SCL port to be in an input state by a main control CPU of the wall telephone, and connecting two lines of the SDA and the SCL with a pull-up resistor of 10k respectively for ensuring that the two ports are at the high level when the two ports are idle;
step 2, hardware connection; when the customer needs to change the number information stored by the emergency key, the customer is connected to the wall phone through the four-core socket;
step 3, performing password checking operation of a programmer to protect data for multiplexing;
step 4, checking the password;
and step 5, after the programmer detects that the password is correct in correction, the programmer writes the number to be stored according to the standard operation of the eeprom.
2. The method for modifying a pre-stored number according to claim 1, wherein: the password checking operation mode of the step 3 programmer is as follows: the programmer needs to carry out a password checking operation, and the specific implementation is as follows: pulling down the SCL_B port, pulling down the SCL through a protection circuit, waiting for the response of the wall phone main control CPU to pull down the SDA, setting the SDA port to be in an input state by the programmer after receiving the response, writing an 8-bit password by the programmer according to normal data writing time sequence operation, sending a stop time sequence, and receiving the data by the phone main control CPU.
3. The method for modifying a pre-stored number according to claim 1, wherein: if the password is correct, then the SDA and SCL ports are set to be in an input state, the IIC bus is in an idle state, and the programmer judges that the password verification is passed after detecting that the SDA_R is in a high level; if the password is incorrect, the SDA and SCL ports are pulled low and the IIC bus remains low and inoperable.
4. The method for modifying a pre-stored number according to claim 1, wherein: the wall telephone main control cpu performs emergency dialing to read the number stored in the eporom when the wall telephone main control cpu is started, multiplexing of the IIC bus is realized, and number programming is performed after the wall telephone main control cpu hangs up.
5. The method for modifying a pre-stored number according to claim 1, wherein: the four pins of the four-core socket are ground, sda_ R, SDA _w, and scl_b, respectively, connected to SDA and SCL through a protection circuit.
6. The telephone with external module to change pre-stored number is characterized in that: the wall phone main control CPU is connected with the ep circuit through an SDA line and an SCL line, the programming CPU is connected with the protection circuit, and the protection circuit is connected with the SDA line and the SCL line.
7. The telephone for modifying a pre-stored number with an external module according to claim 6, wherein: the wall telephone master control cpu comprises a U2 chip, a crystal oscillator G1 is connected in series between a No. 21 pin and a No. 20 pin of the U2 chip, a No. 19 pin of the U2 chip is connected with one end of a resistor R13 and one end of a capacitor C3, the other end of the capacitor C3 is grounded, the other end of the resistor R13 is connected with one end of a capacitor C2, the other end of the capacitor C2 is grounded, a No. 13 pin of the U2 chip is grounded, the epom circuit comprises a U1 chip, a No. 1 pin, a No. 2 pin, a No. 3 pin and a No. 4 pin of the U1 chip are grounded and connected with one end of the capacitor C1 after being connected, the other end of the capacitor C1 is connected with a No. 8 pin and VCC of the U1 chip, a No. 7 pin of the U1 chip is grounded, a No. 6 pin of the U1 chip is connected with one end of a resistor R12, the other end of the resistor R12 is connected with VCC, the protection circuit comprises a four-core socket P1 of a programmer, the four-core socket P1 of programmer is connected with one end of a resistor R11, a photoelectric coupler is installed at the other end of the resistor R11, the No. 1 pin of the photoelectric coupler is matched with the resistor R11, the No. 2 pin and the No. 3 pin of the photoelectric coupler are grounded, the No. 4 pin of the photoelectric coupler is connected with the No. 6 pin of a U1 chip and then is connected with the No. 23 pin of the U2 chip, the No. 2 pin of the four-core socket P1 of programmer is connected with one end of a resistor R3, the other end of the resistor R3 is connected with one end of a resistor R2 and a base electrode of a triode Q1, an emitter of the triode Q1 is connected with the other end of the resistor R2 and a cathode of a diode D1, an anode of the diode D1 is connected with VCC, one end of a collector connecting resistor R7 of the triode Q1, and the other end of the resistor R7 is connected with one end of the resistor R8 and the base electrode of the triode Q2.
8. The telephone for modifying a pre-stored number with an external module according to claim 7, wherein: the emitter of the triode Q2, the other end of the resistor R8 is connected and then grounded, one end of the collector connecting resistor R1 of the triode Q2 and the No. 5 pin of the U1 chip are connected, the other end of the resistor R1 is connected with VCC, the No. 3 pin of the four-core socket P1 of the programmer is connected with the negative electrode of the diode D3, the positive electrode of the diode D3 is grounded and then connected with the emitter of the triode Q3, the collector of the triode Q3 is connected with the No. 4 pin of the four-core socket P1 of the programmer and then connected with one end of the resistor R4, the other end of the resistor R4 is connected with the negative electrode of the diode D2, the positive electrode of the diode D2 is connected with one end of the resistor R5 and then connected with VCC, the base connecting resistor R6 of the triode Q3 is connected with one end of the resistor R6, the emitter connecting resistor R10 is grounded after the other end of the resistor R10 is connected with the base of the triode Q4 and then connected with one end of the resistor R9, and the other end of the resistor R9 is connected with the No. 22 pin of the U2 chip and then connected with the No. 5 pin of the U1 chip.
9. The telephone for modifying a pre-stored number with an external module according to claim 6, wherein: the programming CPU circuit comprises a 9N1 chip, a resistor 9R26, a resistor 9R30, a resistor 9R31, a resistor 9R38, a resistor 9R39, a resistor 9R40, a resistor 9R41, a chip 9N2, a four-core socket HS of a programmer, a crystal oscillator G2 is connected in series between a pin 14 and a pin 13 of the 9N1 chip, the pin 14 of the 9N1 chip is connected with one end of a capacitor 9C10, the other end of the capacitor 9C10 is connected with one end of a capacitor 9C11 and then grounded, the other end of the capacitor 9C11 is connected with a pin 13 of the 9N1 chip, the pin 12 of the 9N1 chip is connected with one end of a capacitor 9C12, one end of a capacitor 9C13, the negative electrode of a voltage stabilizing diode 9Z1, the other end of the capacitor 9C12, the other end of the capacitor 9C13 and the positive electrode of the voltage stabilizing diode 9Z1 are all grounded, the pin 12 of the 9N1 chip is connected with VDD, one end of the resistor 9R26, one end of the resistor 9R30 and one end of the resistor 9R31 are all connected with VDD, the other end of the resistor 9R26 is connected with one end of the resistor 9R28, one end of the resistor 9R27 and the base electrode of the triode 9V8, the other end of the resistor 9R27 is grounded, the other end of the resistor 9R28 is connected with one end of the resistor 9R29, the other end of the resistor 9R29 is connected with the other end of the resistor 9R31, the 11 pin of the 9N1 chip, one end of the capacitor 9C14 and the collector electrode of the triode 9V9, the other end of the capacitor 9C14 is grounded, the other end of the resistor 9R30 is connected with the base electrode of the triode 9V9 and the collector electrode of the triode 9V8, the emitter electrode of the triode 9V8 is grounded, the resistor 9R38, the resistor 9R39, the resistor 9R40 and one end of the resistor 9R41 are all connected with the other end of the pin 5 of the resistor 9R38, the other end of the resistor 9R39, the other end of the resistor 9R40 and the other end of the resistor 9R41 are respectively connected with the key 1, the key 2, the key 3 and the key VOL in series.
10. The telephone for modifying a pre-stored number with an external module according to claim 9, wherein: the pin 6 of the 9N1 chip and the other end of the resistor 9R38, the other end of the resistor 9R39, the other end of the resistor 9R40 and the other end of the resistor 9R41 are respectively connected in series with a key 4, a key 5, a key 6 and a key FLASH, the pin 7 of the 9N1 chip and the other end of the resistor 9R38, the other end of the resistor 9R39, the other end of the resistor 9R40 are respectively connected in series with a key 7, a key 8, a key 9 and a key REDIAL, the other end of the resistor 9R38, the other end of the resistor 9R39, the other end of the resistor 9R40, the other end of the resistor 9R41 and the grounding end are respectively connected in series with keys 0, 0 # key, ON/OFF, the pin 1, pin 2, pin 3, pin 4 and pin 7 of the chip 9N2 are all connected with the grounding end, the pin 8 of the chip 9N2 is connected with the VDD and the one end of the resistor 9R44, the other end of the resistor 9R44 is connected with one end of the resistor 9R43 and the 10-numbered pin of the 9N1 chip, the other end of the resistor 9R43 is connected with the 5-numbered pin of the chip 9N2, the 6-numbered pin of the chip 9N2 is connected with one end of the resistor 9R42, the other end of the resistor 9R42 is connected with the 9-numbered pin of the chip 9N1 chip, the 1-numbered pin of the programmer four-core socket HS is connected with the positive pole of the diode 9D7 and the 16-numbered pin of the 9N1 chip, the negative pole of the diode 9D7 is connected with the positive pole of the diode 9D6, the 18-numbered pin of the 9N1 chip, the negative pole of the diode 9D6 is connected with the VDD, the 3-numbered pin of the programmer four-core socket HS is grounded, the 4-numbered pin of the programmer four-core socket HS is connected with the positive pole of the diode 9D8, the 17-numbered pin of the 9N1 chip, and the negative pole of the diode 9D8 is connected with the VDD.
CN202310551418.0A 2023-05-17 2023-05-17 Telephone with external module for changing pre-stored number and method for changing pre-stored number Withdrawn CN116320118A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310551418.0A CN116320118A (en) 2023-05-17 2023-05-17 Telephone with external module for changing pre-stored number and method for changing pre-stored number

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310551418.0A CN116320118A (en) 2023-05-17 2023-05-17 Telephone with external module for changing pre-stored number and method for changing pre-stored number

Publications (1)

Publication Number Publication Date
CN116320118A true CN116320118A (en) 2023-06-23

Family

ID=86803497

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310551418.0A Withdrawn CN116320118A (en) 2023-05-17 2023-05-17 Telephone with external module for changing pre-stored number and method for changing pre-stored number

Country Status (1)

Country Link
CN (1) CN116320118A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003526844A (en) * 1999-10-15 2003-09-09 トムソン ライセンシング ソシエテ アノニム User interface for two-way communication system
CN1453986A (en) * 2002-04-27 2003-11-05 清华大学 Remote control method and device for intelligent telephone
CN103035106A (en) * 2012-09-25 2013-04-10 邯郸供电公司 Wireless remote control power-stealing detector
CN110493460A (en) * 2019-07-31 2019-11-22 维沃移动通信有限公司 A kind of icon replacing options and electronic equipment
CN112936219A (en) * 2019-12-11 2021-06-11 精工爱普生株式会社 Identification number setting system, identification number setting method, and robot system
CN115862725A (en) * 2022-12-20 2023-03-28 宁波迦南智能电气股份有限公司 Method for detecting reliability and service life of ammeter memory

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003526844A (en) * 1999-10-15 2003-09-09 トムソン ライセンシング ソシエテ アノニム User interface for two-way communication system
CN1453986A (en) * 2002-04-27 2003-11-05 清华大学 Remote control method and device for intelligent telephone
CN103035106A (en) * 2012-09-25 2013-04-10 邯郸供电公司 Wireless remote control power-stealing detector
CN110493460A (en) * 2019-07-31 2019-11-22 维沃移动通信有限公司 A kind of icon replacing options and electronic equipment
CN112936219A (en) * 2019-12-11 2021-06-11 精工爱普生株式会社 Identification number setting system, identification number setting method, and robot system
CN115862725A (en) * 2022-12-20 2023-03-28 宁波迦南智能电气股份有限公司 Method for detecting reliability and service life of ammeter memory

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
付勇智;张洪昌;: "基于CAN总线和DTMF技术的远程遥控设计", 武汉理工大学学报(信息与管理工程版), no. 06, pages 37 - 40 *

Similar Documents

Publication Publication Date Title
CN101213535B (en) Dynamic i2c slave device address decoder
TW202001902A (en) Method for performing power saving control in a memory device, associated memory device and memory controller thereof, and associated electronic device
TW200923784A (en) Electronic device and method for resuming from suspend-to-ram state thereof
CN116320118A (en) Telephone with external module for changing pre-stored number and method for changing pre-stored number
CN214507065U (en) Isolated communication circuit and system
CN101339458B (en) Configuration method of one machine multi-workstation computer system and configuration module therefor
CN101369948A (en) Communication system implementing low-power consumption
CN205092865U (en) ONU terminal with local managerial ability
CN211653795U (en) Tamper pin extension circuit and POS machine
CN111886585B (en) Terminal device, debugging card and debugging method
JP6178060B2 (en) Information processing apparatus and data communication method
CN103309827B (en) The device parameter reading/writing method of terminal and device
CN112486756B (en) Method for debugging chip by using extended I2C protocol, storage medium and electronic equipment
CN101378339B (en) Control method and apparatus, business board for heat insertion and pull
CN114661646A (en) Serial port switching control circuit
CN201897784U (en) Upgrading controller of electronic device
CN110879904A (en) OPS module theftproof heat protection plug protection device and electronic equipment
US7689729B2 (en) Method for implementing resets in two computers
CN209591533U (en) A kind of NOR Flash test macro based on FPGA
CN101193241A (en) A TV set scheduled task control method, device and TV set
CN108599843B (en) Function detection control method for supporting output of 1PPS and TOD signals in SFP ONT optical module and host
TWI789265B (en) Over-voltage protection device, memory storage device and over-voltage protection method
CN210721468U (en) OPS module theftproof heat protection plug protection device and electronic equipment
CN102880274A (en) Standby state power management chip of electronic product
CN103997319A (en) Positive edge preset trigger having double-port slave latch

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20230623