[go: up one dir, main page]

WO2018169211A1 - Duplicate address determination method for terminal device, address update method, and duplicate address determination and address update system - Google Patents

Duplicate address determination method for terminal device, address update method, and duplicate address determination and address update system Download PDF

Info

Publication number
WO2018169211A1
WO2018169211A1 PCT/KR2018/001638 KR2018001638W WO2018169211A1 WO 2018169211 A1 WO2018169211 A1 WO 2018169211A1 KR 2018001638 W KR2018001638 W KR 2018001638W WO 2018169211 A1 WO2018169211 A1 WO 2018169211A1
Authority
WO
WIPO (PCT)
Prior art keywords
address
unique
electronic price
terminal device
signal including
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.)
Ceased
Application number
PCT/KR2018/001638
Other languages
French (fr)
Korean (ko)
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.)
LG Innotek Co Ltd
Original Assignee
LG Innotek Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by LG Innotek Co Ltd filed Critical LG Innotek Co Ltd
Publication of WO2018169211A1 publication Critical patent/WO2018169211A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5046Resolving address allocation conflicts; Testing of addresses
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming

Definitions

  • the present invention relates to a duplicate address determination method, an address update method, a duplicate address determination, and an address update system of a terminal device.
  • the present invention relates to a method and system for recognizing a case where an address of an indicator is the same as that of another electronic price indicator that is already combined, and assigning a new address to any one of the electronic price indicators.
  • an electronic price indicator that displays information and price of the goods may be used.
  • the power consumption of the electronic price indicator increases, and the communication state may become unstable due to radio interference while the electronic price indicator communicates.
  • the price of the electronic price indicator since all electronic price indicators must be equipped with a wireless communication module, the price of the electronic price indicator also increases.
  • only one terminal price which is one electronic price indicator in one unit or one section, wirelessly communicates with the gateway to receive product related information, and the plurality of electronic price indicators located in the unit or section connected to the terminal unit.
  • the electronic price indicator needs to receive product related information from a terminal device through wired communication.
  • dip switch to overcome this problem may cause mechanical limitations of the dip switch itself. That is, only the number of addresses that can be changed in the dip switch can be added to the electronic price indicator, and the cost of using the dip switch and the size of the hardware configuration for implementing the electronic price indicator system become large. In addition, since the dip switch is a human operation, it may cause an error due to a malfunction.
  • One problem to be solved by the present invention is a plurality of electronic price indicator which is connected to the terminal device, the terminal device which is only one electronic price indicator in charge of one section in the store wirelessly communicates with the gateway and receives the product related information.
  • the electronic price indicator allows the product related information to be received from the terminal through wired communication, thereby reducing the cost of building the electronic price indicator system.
  • Another problem to be solved by the present invention is to overcome the mechanical constraints of using a dip switch by the I2C communication between the terminal device and the electronic price indicator.
  • Another problem to be solved by the present invention is a case where the address of the newly combined electronic price indicator is the same as the address of the already combined electronic price indicator in the process of newly combining the electronic price indicator for the I2C communication with the terminal device to the I2C bus. It recognizes and assigns a new address to any one electronic price indicator having the same address.
  • the terminal device compares the cyclic redundancy check value according to the unique ID of the electronic price indicator and the cyclic redundancy check value received from the electronic price indicator and assigns two or more electronic price indicators to one address. It is to determine if it is.
  • Another problem to be solved by the present invention is that when a plurality of electronic price indicators having the same address transmits a signal including a unique ID and an address request command, when the data line of the plurality of electronic price indicators is 0, 1 is transmitted. Through the process of stopping transmission, the electronic price indicator only transmits a signal including a unique ID and an address request command to the terminal device. Will be assigned.
  • a method for determining a duplicate address of a terminal device in I2C communication with a plurality of electronic price indicators comprising: transmitting a signal including a first address and a unique ID request command; Receiving a signal comprising a unique ID and an error detection code; Determining an error of a received signal using the error detection code; And determining the first address as a duplicate address when the received signal is an error.
  • the method of determining a duplicate address of a terminal device may include: transmitting a signal including the first address and an address allocation start command, operating in a master mode; Changing from the master mode to a slave mode; Receiving a signal including the unique ID and an address request command; Changing from the slave mode to the master mode; The method may further include transmitting a signal including the unique ID and the second address, wherein the second address includes a value different from the first address.
  • An address updating method of an electronic price indicator in a slave mode including a first address and a unique ID comprising: receiving a signal including the first address and an address assignment start command; Changing from the slave mode to a master mode; Transmitting a signal including the unique ID and an address request command; Changing from the master mode to the slave mode; And receiving the signal including the unique ID and the second address and changing the first address to the second address.
  • the transmitting of the signal including the unique ID and the address request command may include detecting an SDA line; Transmitting a high signal while a low signal is detected from the serial data (SDA) line; and stopping transmission of a signal including the unique ID and an address request command.
  • SDA serial data
  • the duplicate address determination and address update system includes a terminal device; And an electronic price indicator in I2C communication with the terminal device, wherein the terminal device transmits a signal including a first address and a unique ID request command, and receives a signal including a unique ID and an error detection code, An error of the received signal is determined using the error detection code, and if the received signal is an error, the first address is determined as a duplicate address.
  • the terminal device operates in a master mode to transmit a signal including the first address and an address assignment start command, and changes from the master mode to a slave mode to receive a signal including the unique ID and an address request command. Change from the slave mode to the master mode to transmit a signal including the unique ID and the second address, and transmit a signal including the unique ID and the second address, wherein the second address is the It contains a value different from the first address.
  • the electronic price indicator includes the first address and a unique ID, operates in a slave mode, receives a signal including the first address and an address assignment start command, changes from the slave mode to a master mode, and then the unique ID. And a signal including an address request command and changing from the master mode to the slave mode, receiving a signal including the unique ID and the second address and changing the first address to the second address.
  • the electronic price indicator detects a serial data (SDA) line, and transmits a signal including the unique ID and an address request command when transmitting a high signal while a low signal is detected from the serial data (SDA) line. Stop.
  • SDA serial data
  • an electronic device which is an electronic price indicator in charge of one section in a store, receives wireless communication with the gateway to receive product related information, and the electronic price indicator, which is a plurality of electronic price indicators connected to the terminal device, is wired.
  • the electronic price indicator which is a plurality of electronic price indicators connected to the terminal device.
  • the present invention overcomes the mechanical constraints of the use of the dip switch by the I2C communication between the terminal and the electronic price indicator.
  • the present invention recognizes the case where the address of the newly combined electronic price indicator is the same as the address of the already combined electronic price indicator in the process of newly combining the electronic price indicator having I2C communication with the terminal device on the I2C bus, and has the same address. Assign a new address to either electronic price indicator.
  • the terminal device compares the cyclic redundancy check value according to the unique ID of the electronic price indicator with the cyclic redundancy check value received from the electronic price indicator, and determines whether two or more electronic price indicators are allocated to one address.
  • the electronic price indicator when a plurality of electronic price indicators having the same address transmit a signal including a unique ID and an address request command, the electronic price indicator transmitting one when the data line is zero among the plurality of electronic price indicators transmits the signal.
  • the interruption process only one electronic price indicator transmits a signal including a unique ID and an address request command to the terminal device. As a result, the single electronic price indicator is first assigned a new address.
  • FIG. 1 shows signal states on an SDA line and an SCL line in the case of a start condition and a stop condition in I2C communication.
  • FIG 3 illustrates signal states on SDA lines and SCL lines according to start conditions, data transmission and stop conditions in I2C communication.
  • FIG. 4 illustrates signal states on an SDA line and an SCL line for explaining data received by a slave when a plurality of masters simultaneously transmit data.
  • FIG. 5 illustrates data received by a slave when a plurality of masters transmit data at the same time.
  • FIG. 6 illustrates a process in which a master in I2C communication writes data to a slave having the same address.
  • FIG. 7 illustrates a process of reading data from a master having I2C communication to a slave having the same address.
  • FIG. 8 is a flowchart illustrating a method of determining a duplicate address of a terminal device.
  • FIG. 9 is a flowchart of an address update method.
  • FIG. 10 is a detailed flowchart of a step of transmitting a signal including a unique ID and an address request command in the address update method.
  • FIG. 11 shows an overall configuration of a duplicate address determination and address update system.
  • FIG. 13 illustrates an electronic price indicator system including a server, a gateway, a terminal device, and an electronic price indicator.
  • FIG. 14 is a block diagram showing the overall configuration of a terminal device.
  • 15 is a block diagram showing the overall configuration of an electronic price indicator.
  • FIG. 16 illustrates an address table generated by a terminal device.
  • a signal means an electric quantity such as a voltage or a current.
  • FIG. 1 shows signal states on an SDA line and an SCL line in the case of a start condition and a stop condition in I2C communication.
  • the start condition is defined to allow the current I2C bus 132 master to transmit data.
  • the start condition occurs when the SDA line transitions from high to low while the SCL line is high.
  • a stop condition occurs when the SDA line transitions low to high while the SCL line is high.
  • start condition and stop condition require that the transition of the SDA line occur when the SCL line is low.
  • exceptional situations may be treated as start conditions or stop conditions.
  • the signal state on the SDA line does not change. That is, when the SCL line is in the high state, the signal state on the SDA line remains high or low as shown in FIG.
  • the state on the SDA line can only change when the SCL line is in the low state.
  • FIG 3 illustrates signal states on SDA lines and SCL lines according to start conditions, data transmission and stop conditions in I2C communication.
  • the I2C protocol provides for the transmission of 8-bit data and 7-bit addresses.
  • the I2C master sends the 7-bit address of the I2C slave device to exchange (send or receive) data after the start condition.
  • the master transmits the seven bits of address followed by a single bit in which the master indicates a write or read operation.
  • the addressed I2C slave device responds with an ACK bit if it can respond to the operation of the master.
  • the addressed I2C slave device responds with a NACK bit if it cannot cope with the operation of the master.
  • 4 illustrates signal states on an SDA line and an SCL line for explaining data received by a slave when a plurality of masters simultaneously transmit data.
  • 5 illustrates data received by a slave when a plurality of masters transmit data at the same time.
  • I2C communication there may be a plurality of masters, in which case a plurality of data may be transmitted simultaneously.
  • an arbitration scheme is applied, and the slave receives only data transmitted by any one of the plurality of masters.
  • the one master if one master transmits a high signal and the SDA signal line is low, the one master gives up its function as a master and stops transmitting. If one master sent a high signal and the SDA signal line is low, it means that one or more masters sent a low signal.
  • the data transmission is abandoned in the order of master 1 and master 3, and 1001, which is data of master 2, is transmitted.
  • FIG. 6 illustrates a process in which a master in I2C communication writes data to a slave having the same address.
  • FIG. 7 illustrates a process of reading data from a master having I2C communication to a slave having the same address.
  • the terminal device 300 receives 1000. That is, the terminal device 300 receives 1000 in which 1101, 1001, and 1010 are And calculated.
  • FIG. 8 is a flowchart illustrating a method of determining a duplicate address of the terminal device 300.
  • Duplicate address determination method relates to a duplicate address determination and update method for all devices having a different address by repeating the process of allocating a new address to any one of a plurality of devices assigned the same address will be.
  • the device described above is an electronic price indicator 310, and one or more are present.
  • One or more electronic price indicators 310 communicate with the terminal device 300, specifically, via an I2C protocol.
  • I2C bus 132 An integrated circuit serial bus, which may be referred to as I2C bus 132, is a serial single-ended bus.
  • I2C bus 132 is a multi-master bus where each device can act as a master and slave for different messages sent on I2C bus 132.
  • the I2C bus 132 may transmit data using only two bidirectional open drain connectors, including an SDA line that is a serial data line and an SCL line that is a serial clock line. Connectors typically include lines terminated by pullup resistors. Another description of I2C communication has been provided above.
  • the method for determining a duplicate address according to FIG. 8 is a method in which the terminal device 300 is performed as a subject, transmitting a signal including a first address and a unique ID request command (S100); Receiving a signal including a unique ID and an error detection code (S105); Determining an error of a received signal by using the error detection code (S106); And determining the first address as a duplicate address when the received signal is an error.
  • step S100 of transmitting a signal including a first address and a unique ID request command the terminal device 300 transmits a signal including the first address and a unique ID request command to the electronic price indicator 310.
  • the terminal device 300 transmits a signal including the first address and the unique ID request command to all the electronic price indicators 310 by broadcasting. That is, the terminal device 300 writes a signal including the first address and the unique ID request command to all the electronic price indicators 310 by broadcasting. All electronic price indicators 310 are electronic price indicators 310 which perform I2C communication with the terminal device 300.
  • the transmitting of the signal including the first address and the unique ID request command (S100) is a first step of determining whether two or more electronic price indicators 310 are allocated to one address.
  • the terminal device 300 generates and transmits a signal including a specific address and a unique ID request command as many as the addresses included in the address table.
  • the electronic price indicator 310 receives a signal including a first address generated by the number of addresses and a unique ID request command.
  • the first address is an address of one of the plurality of electronic price indicators 310.
  • the terminal device 300 includes a signal including a unique ID and an error detection code from the electronic price indicator 310 assigned to the first address. Receiving.
  • the error detection code is a cyclic redundancy check (CRC) value.
  • the cyclic redundancy check is a method of determining a check value for checking whether there is an error in the transmitted data when transmitting the cyclic redundancy check.
  • Determining an error of the received signal using the error detection code is a step in which the terminal device 300 determines an error of the signal received from the electronic price display 310.
  • the cyclic redundancy check value calculated based on the same unique ID is the same. That is, the cyclic redundancy check value calculated by the electronic price indicator 310 based on the unique ID is the same as the cyclic redundancy check value calculated by the terminal device 300 based on the same unique ID.
  • the two or more electronic price indicators 310 receiving the unique ID request command including the one address may include a unique ID and an error detection code. The signal will be sent at the same time.
  • the error detection code Determining an error of the received signal by using the error detection code (S106), the error detection code for the unique ID calculated by the terminal device 300 and received from the electronic price display 310 having the unique ID In this step, the error detection codes are compared to determine whether they match. If it does not match, it is determined to be an error.
  • the determining of the first address as a duplicate address when the received signal is an error may include determining an error detection code for the unique ID calculated by the terminal device 300 and an electronic price indicator 310 having the unique ID. Since the received error detection code does not match and is an error, it is determined that two or more electronic price indicators 310 are allocated to the first address.
  • This determination is made for all addresses.
  • the terminal device 300 updates the state of the address to 2 in the address table.
  • An status of an address of 2 means that more than one electronic price indicator 310 has been assigned to the address.
  • the terminal apparatus transmits a signal including the first address and an address allocation start command to be described later (S120); Changing from the master mode to the slave mode (S130); Receiving a signal including the unique ID and an address request command (S140); And changing from the slave mode to the master mode (S150).
  • An AND operation is performed among bit operations.
  • the AND operation compares two digits of a signal including two or more unique IDs and an error detection code, and calculates 1 when all the digits have 1 and 0 otherwise.
  • the ANDed result is transmitted to the terminal device 300.
  • the terminal device 300 receives a signal including a bit-operated unique ID and an error detection code
  • the terminal device 300 determines that two or more electronic price indicators 310 are assigned to the address because the terminal device 300 is different from the error detection code calculated by the terminal device 300. do.
  • a process of the terminal device 300 receiving bit-operated data from the plurality of electronic price indicators 310 is described with reference to FIG. 7.
  • the terminal device 300 receives a signal including a bit-operated unique ID and an error detection code, and compares the bit-operated error detection code with an error detection code calculated based on the unique ID.
  • the terminal device 300 operates in the master mode, and transmitting a signal including the first address and the address allocation start command (S120); Changing from the master mode to the slave mode (S130); Receiving a signal including the unique ID and an address request command (S140); Changing from the slave mode to the master mode (S150); And transmitting a signal including the unique ID and the second address.
  • the second address may include a value different from the first address.
  • the terminal device 300 operates in a master mode, and in step S120 of transmitting a signal including the first address and an address allocation start command, a plurality of electronic price indicators 310 allocated to one address are provided. On the premise of the case, if the above-mentioned received signal is an error, it is performed after the step (S110) of determining the first address as a duplicate address.
  • the step S120 of transmitting the signal including the first address and the address allocation start command is based on the premise that two or more electronic price indicators 310 are allocated to one address. Based on this premise, the terminal device 300 outputs a signal including a first address and an address assignment start command to all electronic price indicators 310 so that only one electronic price indicator 310 can be assigned to one address. To the network.
  • the address included in the signal including the first address transmitted by the terminal device 300 and the address allocation start command is an address to which two or more electronic price indicators 310 are assigned.
  • the terminal device 300 manages an address table, which includes an address, a state of an address, and a unique ID of the electronic price display 310 having the address.
  • the status of an address shows how many electronic price indicators 310 are assigned to that address.
  • the terminal device 300 extracts an address to which two or more electronic price indicators 310 are allocated through the address table, and includes a signal including a first address to which two or more electronic price indicators 310 are allocated and an address allocation start command. Generate and transmit to all electronic price indicators 310.
  • the terminal device 300 transmits a signal including a first address and an address allocation start command to all the electronic price indicators 310, but only the electronic price indicator 310 having the first address has a unique ID and address which will be described later. Create a signal containing a request command.
  • the terminal device 300 changes from the master mode to the slave mode. It's a step.
  • the terminal device 300 changed to the slave mode receives a signal including the unique ID and the address request command from the electronic price display 310 Step.
  • the terminal device 300 receives a signal including a unique ID and an address request command from any one of the two or more electronic price indicators 310 assigned to the first address.
  • the electronic price indicators 310 having the first address and the first address included in the signal including the address allocation start command are switched to the master mode after receiving the signal including the first address and the address allocation start command.
  • the electronic price indicator 310 is switched to the master mode, it means that specific information may be requested to another device, such as the terminal device 300.
  • the electronic price indicator 310 switched to the master mode sends a request command, such as a signal including a unique ID and an address request command, to any device, for example, the terminal device 300 or another electronic price indicator 310. I can send it.
  • a request command such as a signal including a unique ID and an address request command
  • the two or more electronic price indicators 310 are electronic price indicators 310 having a first address and a first address included in a signal including an address allocation start command.
  • the two or more electronic price indicators 310 transmit a signal including a unique ID and an address request command generated by each of the two or more electronic price indicators 310 to the terminal device 300 through the same data line.
  • a signal including a unique ID and an address request command generated by each of the two or more electronic price indicators 310 is a bit operation and is transmitted to the terminal device 300.
  • An AND operation is performed among bit operations. The AND operation compares two digits of a signal including two or more unique IDs and an address request command, and calculates 1 when all the digits have 1 and 0 otherwise. The ANDed result is transmitted to the terminal device 300.
  • any one of the two or more electronic price indicators 310 transmits 1, when the data line is 0, the one electronic price indicator 310 stops transmitting.
  • the data line being zero when one electronic price indicator 310 transmits 1 means that another electronic price indicator 310 has transmitted 0 to the data line.
  • one of the two or more electronic price indicators 310 transmits a signal including a unique ID and an address request command, for example, n bits
  • the other one or more electronic price indicators 310 may also be used. Sends a signal containing a unique ID with n bits and an address request command.
  • any one electronic price indicator 310 is 1 If the data line is 0 when transmitting, the one electronic price indicator 310 stops transmitting without transmitting the first next bit.
  • the signal including the unique ID and the address request command includes an address of the terminal device 300, information indicating a reading or writing, information indicating a command, and a unique ID of the electronic price display 310.
  • the two or more electronic price indicators 310 request a new address while transmitting a signal including a unique ID and an address request command to the same terminal device 300.
  • the signal including the unique ID and the address request command generated by each of the two or more electronic price indicators 310 is the same as the address of the terminal device 300, information indicating writing, and information indicating command.
  • the unique ID information is different because each electronic price indicator includes its own unique ID.
  • the electronic price indicator 310 Since the signals including the unique ID and the address request command generated by the two or more electronic price indicators 310 differ only in the unique IDs, the electronic price indicator 310 outputting 1 later based on the unique IDs of the electronic price indicators 310 may be used. The transmission will not be interrupted. Since the electronic price indicator 310 sequentially transmits each bit of the unique ID from the first digit to the last digit, the electronic price indicator 310 including one more in the lower digit does not stop transmission.
  • the terminal device 300 receives a signal including a unique ID and an address request command from a single electronic price indicator 310.
  • the terminal device 300 changes from the slave mode to the master mode after receiving a signal including a unique ID and an address request command (S140). It's a step.
  • the transmitting of the signal including the unique ID and the second address is a step in which the terminal device 300 transmits a signal including the unique ID and the second address to the electronic price display 310.
  • the electronic price indicator 310 that receives the signal including the unique ID and the second address is all electronic price indicators 310 communicating with the terminal device 300.
  • the terminal device 300 transmits a signal including the unique ID and the second address through broadcasting, and all the electronic price indicators 310 receive the signal including the unique ID and the second address.
  • the unique ID is a unique ID of the electronic price indicator 310 that transmits a signal including a unique ID and an address request command without stopping transmission of the two or more electronic price indicators 310. That is, the electronic price indicator 310 in the signal including the unique ID and the address request command generated from the electronic price indicator 310 having the address included in the signal including the first address and the address allocation start command described above. It is an electronic price indicator 310 that includes one more in the rank of the subordinated order.
  • the signal including the unique ID and the second address generated by the terminal device 300 may be updated by the single electronic price indicator 310 as well as the address and unique ID of the single electronic price indicator 310. It also includes a second address, which is an address. The second address is one of the addresses included in the above-described address table, and is an address to which no electronic price indicator 310 is assigned.
  • the second address includes a value different from the first address.
  • the terminal device 300 may determine an address having the smallest bit value as a new address. Specifically, I2C communication, which communicates with the terminal device 300, is performed. All electronic price indicators 310 receive a 'signal containing a unique ID and a second address', but only one electronic price indicator 310 having the same unique ID as the received unique ID receives its address. The second address included in the 'signal including the unique ID and the second address' is updated.
  • Each electronic price indicator 310 ignores the signal when the unique ID included in the 'signal including the unique ID and the second address' is not its own unique ID.
  • One of the two or more electronic price indicators 310 assigned to one address through the step of transmitting the signal containing the signal (S120) to transmitting the signal including the unique ID and the second address, the own address of the new address; To solve the problem of address duplication.
  • FIG. 9 is a flowchart of an address update method.
  • the method of updating an address according to FIG. 9 mainly uses the electronic price indicator 310.
  • An address updating method of an electronic price indicator in a slave mode including a first address and a unique ID includes: receiving a signal including the first address and an address allocation start command (S200); Changing from the slave mode to the master mode (S205); Transmitting a signal including the unique ID and an address request command (S210); Changing from the master mode to the slave mode (S220); And receiving the signal including the unique ID and the second address and changing the first address to the second address.
  • Receiving a signal including the first address and the address allocation start command (S200) is based on the premise that two or more electronic price indicators 310 are allocated to one address. Based on this premise, the terminal device 300 outputs a signal including a first address and an address assignment start command to all electronic price indicators 310 so that only one electronic price indicator 310 can be assigned to one address. To the network.
  • the address included in the signal that each electronic price indicator 310 receives, including the first address and the address assignment start command, is an address to which two or more electronic price indicators 310 are assigned.
  • the terminal device 300 manages an address table, which includes an address, a state of an address, and a unique ID of the electronic price display 310 having the address.
  • the status of an address shows how many electronic price indicators 310 are assigned to that address.
  • the terminal device 300 extracts an address to which two or more electronic price indicators 310 are allocated through the address table, and includes a signal including a first address to which two or more electronic price indicators 310 are allocated and an address allocation start command. Generate and transmit to all electronic price indicators 310.
  • the terminal device 300 transmits a signal including a first address and an address allocation start command to all the electronic price indicators 310, but only the electronic price indicators 310 having the first address and the unique ID to be described later. Generates a signal containing an address request command.
  • the electronic price indicator 310 changes from the slave mode to the master mode after receiving a signal including a first address and an address assignment start command (S200). It's a step.
  • the electronic price indicator 310 changed to the master mode then transmits a signal including the unique ID and the address request command to the terminal device 300 in step S210 of transmitting a signal including the unique ID and the address request command.
  • the electronic price indicators 310 assigned to the first address transmit a signal including a unique ID and an address request command.
  • all the electronic price indicators 310 receive a signal from the terminal device 300 including the above-described first address and address assignment start command, only the electronic price indicators 310 having the first address request a unique ID and address. Generate and send a signal containing the command.
  • the electronic price indicators 310 having the first address and the first address included in the signal including the address allocation start command are switched to the master mode after receiving the signal including the first address and the address allocation start command.
  • the electronic price indicator 310 is switched to the master mode, it means that specific information may be requested to another device, such as the terminal device 300.
  • the electronic price indicator 310 switched to the master mode sends a request command, such as a signal including a unique ID and an address request command, to any device, for example, the terminal device 300 or another electronic price indicator 310. I can send it.
  • a request command such as a signal including a unique ID and an address request command
  • the two or more electronic price indicators 310 are electronic price indicators 310 having a first address and a first address included in a signal including an address allocation start command.
  • the two or more electronic price indicators 310 transmit a signal including a unique ID and an address request command generated by each of the two or more electronic price indicators 310 to the terminal device 300 through the same data line.
  • a signal including a unique ID and an address request command generated by each of the two or more electronic price indicators 310 is a bit operation and is transmitted to the terminal device 300.
  • An AND operation is performed among bit operations. The AND operation compares two digits of a signal including two or more unique IDs and an address request command, and calculates 1 when all the digits have 1 and 0 otherwise. The ANDed result is transmitted to the terminal device 300.
  • any one of the two or more electronic price indicators 310 transmits 1, when the data line is 0, the one electronic price indicator 310 stops transmitting.
  • the data line being zero when one electronic price indicator 310 transmits 1 means that the other electronic price indicator 310 has transmitted 0 to the data line.
  • one of the two or more electronic price indicators 310 transmits a signal including a unique ID and an address request command, for example, n bits
  • the other one or more electronic price indicators 310 may also be used. Sends a signal containing a unique ID with n bits and an address request command.
  • any one electronic price indicator 310 is 1 If the data line is 0 when transmitting, the one electronic price indicator 310 stops transmitting without transmitting the first next bit.
  • the signal including the unique ID and the address request command includes an address of the terminal device 300, information indicating a reading or writing, information indicating a command, and a unique ID of the electronic price display 310.
  • the two or more electronic price indicators 310 request a new address while transmitting a signal including a unique ID and an address request command to the same terminal device 300.
  • the signal including the unique ID and the address request command generated by each of the two or more electronic price indicators 310 is the same as the address of the terminal device 300, information indicating writing, and information indicating command.
  • the unique ID information is different because each electronic price indicator includes its own unique ID.
  • the electronic price indicator 310 Since the 'signal including the unique ID and the address request command' generated by the two or more electronic price indicators 310 differ only in the unique ID, the electronic price indicator 310 outputs 1 later based on its unique ID. ) Does not interrupt transmission. Since the electronic price indicator 310 sequentially transmits each bit of the unique ID from the first digit to the last digit, the electronic price indicator 310 including one more in the lower digit does not stop transmission.
  • the terminal device 300 receives a signal including a unique ID and an address request command from a single electronic price indicator 310.
  • the electronic price indicator 310 changes from the master mode to the slave mode after the step (S210) of transmitting a signal including a unique ID and an address request command. It's a step.
  • Step 2 Receiving a signal including a unique ID and a second address and changing the first address to the second address, the electronic price indicator 310 having the same unique ID as the received unique ID to the first address; Step 2 changes to the address.
  • All electronic price indicators 310 communicating with the terminal device 300 receive a signal including the unique ID and the second address.
  • the terminal device 300 transmits a 'signal including a unique ID and a second address' by broadcasting, and all the electronic price indicators 310 receive a 'signal including a unique ID and a second address'.
  • the unique ID is a unique ID of the electronic price indicator 310 that transmits a signal including a unique ID and an address request command to the end without interrupting transmission among the two or more electronic price indicators 310. That is, the electronic price indicator 310 is a 'unique ID and address request generated by them among the electronic price indicators 310 having an address included in the' signal including the first address and the address allocation start command '. There is only one electronic price indicator 310 that includes one more in the order of precedence in the signal containing the command.
  • the signal including the unique ID and the second address generated by the terminal device 300 is updated by the single electronic price indicator 310 as well as the address and the unique ID of the single electronic price indicator 310. It also includes the second address, which is the new address.
  • the second address is one of the addresses included in the above-described address table, and is an address to which no electronic price indicator 310 is assigned.
  • the second address includes a value different from the first address.
  • the terminal device 300 may determine an address having the smallest bit value as a new address when there are a plurality of addresses to which the electronic price indicator 310 is not assigned.
  • all the electronic price indicators 310 communicating with the terminal device 300 receive a 'signal with a unique ID and a second address', but have a unique ID equal to the received unique ID. Only one electronic price indicator 310 updates its address to a second address included in the 'signal including the unique ID and the second address'.
  • Each electronic price indicator 310 ignores the signal when the unique ID included in the 'signal including the unique ID and the second address' is not its own unique ID.
  • FIG. 10 is a detailed flowchart of a step (S210) of transmitting a 'signal including a unique ID and an address request command' in the address update method.
  • the transmitting of the signal including the unique ID and the address request command may include: detecting an SDA line (S211); Transmitting a high signal (S212) while a low signal is detected from the SDA line; And stopping transmission of a signal including the unique ID and an address request command.
  • step S211 of detecting the SDA line the electronic price indicator 310 detects whether a high signal or a low signal is applied to the SDA line.
  • the electronic price indicator 310 detects the low signal from the SDA line and outputs a high signal.
  • the electronic price indicator 310 stops transmitting the signal including the unique ID and the address request command.
  • the one electronic price indicator 310 stops transmitting.
  • the data line being zero when one electronic price indicator 310 transmits 1 means that the other electronic price indicator 310 has transmitted 0 to the data line.
  • the electronic price indicator 310 Since the 'signal including the unique ID and the address request command' generated by the two or more electronic price indicators 310 are different from each other only with the unique IDs, the electronic price indicator 310 outputs 1 later based on its unique ID. ) Does not interrupt transmission.
  • the electronic price indicator 310 Since the electronic price indicator 310 sequentially transmits each bit of the unique ID from the first digit to the last digit, the electronic price indicator 310 including one more in the lower digit does not stop transmission.
  • FIG. 11 shows an overall configuration of a duplicate address determination and address update system.
  • the terminal device 300 transmits a signal including the first address and a unique ID request command to the electronic price indicator 310. do.
  • the terminal device 300 receives a signal including a unique ID and an error detection code.
  • the terminal device 300 Determining an error of the received signal by using an error detection code, and determining the first address as a duplicate address when the received signal is an error, the terminal device 300 each electronic price indicator 310 Receive a unique ID and error detection code, and compares the error detection code calculated by the terminal device itself with the received error detection code with respect to the received unique ID does not match the two or more electronic price at the first address It is determined that the indicator 310 is allocated.
  • step of determining an error of the received signal using an error detection code and in the step of determining that the first address as a duplicate address when the received signal is an error, it is terminated.
  • the step S120 of transmitting a signal including a first address and an address assignment start command is based on the premise that two or more electronic price indicators 310 are assigned to one address. Based on this premise, the terminal device 300 outputs a signal including a first address and an address assignment start command to all electronic price indicators 310 so that only one electronic price indicator 310 can be assigned to one address. To the network.
  • step S140 of receiving a signal including a unique ID and an address request command the terminal device 300 changed to a slave mode receives a signal including a unique ID and an address request command from the electronic price display 310.
  • the electronic price indicator 310 having the corresponding unique ID changes the first address to the second address.
  • a step (S100) of transmitting a signal including a first address and a unique ID request command is performed again.
  • the terminal device 300 wirelessly communicates with the gateway 430, which will be described later, to receive product related information transmitted by the server 410.
  • the terminal device 300 and the plurality of electronic price indicators 310 communicate via the I2C bus 132.
  • I2C bus 132 includes a serial data line SDA and a serial clock line SCL as shown in FIG.
  • the plurality of electronic price indicators 310 are located at a stand in the store. There is a connector in each stand, and each electronic price indicator 310 may be connected to or separated from the connector. When the electronic price indicator 310 is connected to the connector, power is supplied to the electronic price indicator 310 and is also connected to the data line SDA and the serial clock line SCL.
  • Arrows 510 and 520 shown in FIG. 12 show that the electronic price indicator 310 can be separated or coupled to the connector.
  • a random random address is assigned. If the random random address is already assigned to another electronic price indicator 310, a problem arises in that the address is duplicated.
  • the terminal device 300 according to the present invention when the cyclic redundancy check value calculated based on the unique ID and the received cyclic redundancy check value are different from each other, two or more electronic price indicators 310 are assigned to the address. I judge it.
  • new addresses are sequentially assigned to one electronic price indicator 310 of the plurality of electronic price indicators 310 which are duplicately assigned to one address.
  • FIG. 13 illustrates an electronic price indicator 310 system including a server 410, a gateway and a terminal device 300.
  • the server 410 provides product related information to be displayed on the electronic price indicator 310, for example, a product name, a product price, an expiration date, and the like.
  • the gateway 430 may be installed on a ceiling in a store as a wired / wireless converter.
  • the electronic price indicator 310 is managed in at least one group and the product information is updated.
  • the terminal device 300 maintains a sleep state to save battery, and wakes up only when product information is updated. That is, the terminal device 300 receives the product information to be displayed by the electronic price display 310 from the server 410, and transmits the product information to the electronic price display 310 via I2C communication.
  • the server 410 and the gateway 430 communicate with each other via an internal wired network, and the gateway 430 communicates with the terminal device 300 in short-range wireless communication, for example, on a PHY / MAC layer according to the IEEE 802.15.4 standard. Communicate according to the defined protocol.
  • the server 410 transmits product information to the terminal device 300 through the gateway 430.
  • the terminal device 300 accesses the designated data channel from the gateway 430 that has registered itself, randomly wakes up, and then sequentially requests update information.
  • the terminal device 300 or 300 receives the goods related information from the server 410 through the gateway 430 and transmits the product related information to the electronic price display 310 in I2C communication with the terminal device 300 or 300.
  • the electronic price indicator 310 that receives the product related information, for example, the product information image from the terminal device 300 or 300, displays 240 the product information image.
  • the duplicate address determination and address update system includes a terminal device 300; And an electronic price indicator 310 in I2C communication with the terminal device 300, wherein the terminal device 300 transmits a signal including a first address and a unique ID request command, and detects a unique ID and an error. A signal including a code is received, an error of the received signal is determined using the error detection code, and if the received signal is an error, the first address is determined as a duplicate address.
  • the terminal device 300 operates in a master mode, transmits a signal including the first address and an address assignment start command, changes from the master mode to a slave mode, and includes the unique ID and the address request command. Receive a signal, change from the slave mode to the master mode, transmit a signal including the unique ID and the second address, and the second address includes a value different from the first address.
  • the electronic price indicator 310 includes a first address and a unique ID, is in slave mode, receives a signal including the first address and address assignment start command, changes from the slave mode to the master mode, and Transmits a signal including a unique ID and an address request command, changes from the master mode to the slave mode, receives a signal including the unique ID and the second address, and changes the first address to the second address; .
  • the electronic price indicator 310 further includes a command for detecting a serial data (SDA) line, transmits a high signal while a low signal is detected from the serial data (SDA) line, and transmits the unique ID and address request command. Stop transmission of a signal comprising a.
  • SDA serial data
  • the features of the tactic exchange electronic price display 310 and the terminal device 300 correspond to the duplicate address determination method and the address update method of the terminal device 300.
  • FIG. 14 is a block diagram illustrating the overall configuration of the terminal device 300.
  • the terminal device 300 includes a first I2C interface 130; A first processor 110; First memory 120; And at least one program stored in the first memory 120 and configured to be executed by the first processor 110, wherein the at least one program includes a signal including a first address and a unique ID request command. And transmit a signal including a unique ID and an error detection code, determine an error of the received signal using the error detection code, and if the received signal is an error, replace the first address with a duplicate address. Contains commands to determine.
  • the first I2C interface 130 is an interface for communicating with the electronic price indicator 310 in an I2C manner.
  • the first I2C interface 130 is a line interface configurable to communicate over an I2C bus 132 that includes a plurality of connectors or wires.
  • the first processor 110 collectively controls the terminal device 300. That is, the first processor 110 drives or executes various software programs and / or sets of instructions stored in the first memory 120 to perform various functions for the terminal device 300 and to process data. Let's do it.
  • the instructions may be coded and configured to implement the functionality described herein.
  • the first memory 120 consumes less power and is a flash memory that maintains data even when a battery is not supplied.
  • the present invention is not limited thereto, and other suitable semiconductor memories may be adopted.
  • the first memory 120 may store product related information, an address table, and the like.
  • the terminal device 300 may further include a wireless interface 140.
  • the air interface 140 communicates with the gateway 430 in a Zigbee manner.
  • Zigbee communication is one of the communication methods that define PHY / MAC based on the IEEE 802.15.4 standard.
  • the proposed invention is not limited thereto, and various short-range communication schemes may be applied, such as a communication scheme employing only some of Bluetooth or Zigbee communication standards.
  • the terminal device 300 may further include a timer 150.
  • the timer 150 is activated even when the first processor 110 is in the sleep mode, and wakes up the first processor 110 by generating an interrupt at a predetermined period set by the first processor 110.
  • the wake-up time slot may be determined by the server 410 so that the terminal device 300 does not collide with each other.
  • the terminal device 300 transmits a signal including a first address and a unique ID request command.
  • the terminal device 300 transmits a signal including the first address and the unique ID request command to all the electronic price indicators 310 by broadcasting. That is, the terminal device 300 writes a signal including the first address and the unique ID request command to all the electronic price indicators 310 by broadcasting.
  • All electronic price indicators 310 are electronic price indicators 310 which perform I2C communication with the terminal device 300.
  • the terminal device 300 determines whether two or more electronic price indicators 310 are assigned to one address by transmitting a signal including a first address and a unique ID request command.
  • the terminal device 300 generates and transmits a signal including a specific address and a unique ID request command as many as the addresses included in the address table.
  • the electronic price indicator 310 receives a signal including a first address generated by the number of addresses and a unique ID request command.
  • the first address is an address of any one of the plurality of electronic price indicators 310.
  • the terminal device 300 receives a signal including a unique ID and an error detection code.
  • the terminal device 300 receives a signal including a unique ID and an error detection code from the electronic price indicator 310 assigned to the first address.
  • the error detection code is a cyclic redundancy check (CRC) value.
  • the cyclic redundancy check is a method of determining a check value for checking whether there is an error in the transmitted data when transmitting the cyclic redundancy check.
  • the terminal device 300 determines an error of the received signal by using the error detection code.
  • the cyclic redundancy check value calculated based on the same unique ID is the same. That is, the cyclic redundancy check value calculated by the electronic price indicator 310 based on the unique ID is the same as the cyclic redundancy check value calculated by the terminal device 300 based on the same unique ID.
  • the two or more electronic price indicators 310 receiving the unique ID request command including the one address may include a unique ID and an error detection code. Each signal will be sent simultaneously.
  • the terminal device 300 compares the error detection code calculated by the user with respect to a unique ID and the error detection code received from the electronic price display 310 having the unique ID, and determines that the error is not an error.
  • the terminal device 300 determines the first address as a duplicate address. That is, it is determined that two or more electronic price indicators 310 are assigned to the first address.
  • This determination is made for all addresses.
  • the terminal device 300 updates the state of the address to 2 in the above-described address table. An status of 2 is that more than one electronic price indicator 310 has been assigned to the address.
  • a signal including the first address and an address allocation start command to be described later is transmitted, the signal is changed from the master mode to the slave mode, and the Receives a signal including a unique ID and an address request command, and changes from the slave mode to the master mode.
  • the terminal device 300 transmits a signal including the unique ID and the second address to all addresses, and performs the above-described process until only one electronic price indicator 310 is assigned to one address.
  • An AND operation is performed among bit operations.
  • the AND operation compares two digits of a signal including two or more unique IDs and an error detection code, and calculates 1 when all the digits have 1 and 0 otherwise.
  • the ANDed result is transmitted to the terminal device 300.
  • the terminal device 300 receives a signal including a bit-operated unique ID and an error detection code
  • the terminal device 300 determines that two or more electronic price indicators 310 are assigned to the address because the error detection code calculated by the terminal device 300 is different.
  • a process of the terminal device 300 receiving bit-operated data from the plurality of electronic price indicators 310 is described with reference to FIG. 7.
  • the terminal device 300 receives a signal including a bit-operated unique ID and an error detection code, and compares the signal with an error detection code calculated by the terminal device 300 based on the unique ID.
  • the terminal device 300 operates in a master mode, and the one or more programs transmit a signal including the first address and an address assignment start command, change from the master mode to a slave mode, and the unique ID. And receiving a signal including an address request command, changing from the slave mode to the master mode, and transmitting a signal including the unique ID and the second address, wherein the second address includes: It includes a value different from the first address.
  • the terminal device 300 when the received signal is an error, the terminal device 300 is in a master mode after determining that the first address is a duplicate address. And a signal including the first address and an address assignment start command.
  • the terminal device 300 transmits a signal including a first address and an address allocation start command on the assumption that two or more electronic price indicators 310 are assigned to one address. Based on this premise, the terminal device 300 outputs a signal including a first address and an address assignment start command to all electronic price indicators 310 so that only one electronic price indicator 310 can be assigned to one address. Send to
  • the address included in the signal including the first address transmitted by the terminal device 300 and the address allocation start command is an address to which two or more electronic price indicators 310 are assigned.
  • the terminal device 300 manages an address table, which includes an address, a state of an address, and a unique ID of the electronic price display 310 having the address.
  • the status of an address shows how many electronic price indicators 310 are assigned to that address.
  • the terminal device 300 extracts an address to which two or more electronic price indicators 310 are allocated through the address table, and includes a signal including a first address to which two or more electronic price indicators 310 are allocated and an address allocation start command. Generate and transmit to all electronic price indicators 310.
  • the terminal device 300 transmits a signal including a first address and an address allocation start command to all the electronic price indicators 310, but only the electronic price indicator 310 having the first address requests a unique ID and address to be described later. Generate a signal containing the command.
  • the terminal device 300 changes from the master mode to the slave mode after transmitting a signal including a first address and an address assignment start command.
  • the terminal device 300 When the terminal device 300 receives the signal including the unique ID and the address request command, the terminal device 300 changed to the slave mode receives the signal including the unique ID and the address request command from the electronic price display 310. It is.
  • the terminal device 300 receives a signal including a unique ID and an address request command from one of the two or more electronic price indicators 310 assigned to the first address.
  • Two or more electronic price indicators 310 assigned to the first address generate a signal comprising a unique ID and an address request command. Although all the electronic price indicators 310 receive a signal from the terminal device 300 including the above-described first address and address assignment start command, only the electronic price indicators 310 having the first address have a unique ID and an address request command. Generate a signal comprising a.
  • the electronic price indicators 310 having the first address and the first address included in the signal including the address allocation start command are switched to the master mode after receiving the signal including the first address and the address allocation start command.
  • the electronic price indicator 310 is switched to the master mode, it means that specific information may be requested to another device, such as the terminal device 300.
  • the electronic price indicator 310 switched to the master mode sends a request command, such as a signal including a unique ID and an address request command, to any device, for example, the terminal device 300 or another electronic price indicator 310. I can send it.
  • a request command such as a signal including a unique ID and an address request command
  • the at least two electronic price indicators 310 are electronic price indicators 310 having a first address and a first address included in a signal including an address allocation start command.
  • the two or more electronic price indicators 310 transmit a signal including a unique ID and an address request command generated by each of the two or more electronic price indicators 310 to the terminal device 300 through the same data line.
  • a signal including a unique ID and an address request command generated by each of the two or more electronic price indicators 310 is a bit operation and is transmitted to the terminal device 300.
  • An AND operation is performed among bit operations. The AND operation compares two digits of a signal including two or more unique IDs and an address request command, and calculates 1 when all the digits have 1 and 0 otherwise. The ANDed result is transmitted to the terminal device 300.
  • any one of the two or more electronic price indicators 310 transmits 1, when the data line is 0, the one electronic price indicator 310 stops transmitting.
  • the data line being zero when one electronic price indicator 310 transmits 1 means that the other electronic price indicator 310 has transmitted 0 to the data line.
  • one of the two or more electronic price indicators 310 transmits a signal including a unique ID and an address request command, for example, n bits
  • the other one or more electronic price indicators 310 may also be used. Sends a signal containing a unique ID with n bits and an address request command.
  • any one electronic price indicator 310 is 1 If the data line is 0 when transmitting, the one electronic price indicator 310 stops transmitting without transmitting the first next bit.
  • the signal including the unique ID and the address request command includes an address of the terminal device 300, information indicating a reading or writing, information indicating a command, and a unique ID of the electronic price display 310.
  • the two or more electronic price indicators 310 request a new address while transmitting a signal including a unique ID and an address request command to the same terminal device 300.
  • the signal including the unique ID and the address request command generated by each of the two or more electronic price indicators 310 is the same as the address of the terminal device 300, information indicating writing, and information indicating command.
  • the unique ID information is different because each electronic price indicator includes its own unique ID.
  • the electronic price indicator 310 Since the signals including the unique ID and the address request command generated by the two or more electronic price indicators 310 differ only in the unique IDs, the electronic price indicator 310 outputting 1 later based on the unique IDs of the electronic price indicators 310 may be used. The transmission will not be interrupted. Since the electronic price indicator 310 sequentially transmits each bit of the unique ID from the first digit to the last digit, the electronic price indicator 310 including one more in the lower digit does not stop transmission.
  • the terminal device 300 receives a signal including a unique ID and an address request command from a single electronic price indicator 310.
  • the terminal device 300 changes from the slave mode to the master mode after receiving a signal including a unique ID and an address request command.
  • the terminal device 300 transmits a signal including the unique ID and the second address
  • the terminal device 300 transmits a signal including the unique ID and the second address to the electronic price display 310.
  • the electronic price indicator 310 that receives the signal including the unique ID and the second address is all electronic price indicators 310 communicating with the terminal device 300.
  • the terminal device 300 transmits a signal including the unique ID and the second address by broadcasting, and all the electronic price indicators 310 receive the signal including the unique ID and the second address.
  • the unique ID is a unique ID of the electronic price indicator 310 that transmits a signal including a unique ID and an address request command without stopping transmission of the two or more electronic price indicators 310. That is, the electronic price indicator 310 in the signal including the unique ID and the address request command generated from the electronic price indicator 310 having the address included in the signal including the first address and the address allocation start command described above. It is an electronic price indicator 310 that includes one more in the rank of the subordinated order.
  • the signal including the unique ID and the second address generated by the terminal device 300 may be updated by the single electronic price indicator 310 as well as the address and unique ID of the single electronic price indicator 310. It also includes a second address, which is an address. The second address is one of the addresses included in the above-described address table, and is an address to which no electronic price indicator 310 is assigned.
  • the second address includes a value different from the first address.
  • the terminal device 300 may determine an address having the smallest bit value as a new address when there are a plurality of addresses to which the electronic price indicator 310 is not assigned.
  • all the electronic price indicators 310 communicating with the terminal device 300 receive a 'signal with a unique ID and a second address', but have a unique ID equal to the received unique ID. Only one electronic price indicator 310 updates its address to a second address included in the 'signal including the unique ID and the second address'.
  • Each electronic price indicator 310 ignores the signal when the unique ID included in the 'signal including the unique ID and the second address' is not its own unique ID.
  • the terminal device 300 transmits a signal including the first address and an address allocation start command, changes from the master mode to a slave mode, and receives a signal including the unique ID and the address request command.
  • the slave mode changes from the slave mode to the master mode and transmits a signal including the unique ID and the second address
  • one of the two or more electronic price indicators 310 assigned to the one address changes its own address. Updating to addresses solves the problem of address duplication.
  • 15 is a block diagram showing the overall configuration of the electronic price indicator 310.
  • An electronic price indicator 310 operating in slave mode comprising: a second I2C interface 230; A second processor 210; Second memory 220; And one or more programs stored in the second memory 220 and configured to be executed by the second processor 210, wherein the second memory stores a first address and a unique ID.
  • Receives a signal including the first address and an address assignment start command changes from the slave mode to the master mode, transmits a signal including the unique ID and the address request command, and transmits the signal from the master mode to the slave mode.
  • a command for receiving a signal including the unique ID and the second address and changing the first address to the second address is
  • the second I2C interface 230 is an interface for communicating with the electronic price indicator 310 in an I2C manner.
  • the second I2C interface 230 is a line interface configurable to communicate over an I2C bus 132 that includes a plurality of connectors or wires.
  • the second processor 210 collectively controls the terminal device 300. That is, the second processor 210 drives or executes various software programs and / or sets of instructions stored in the second memory 220 to perform various functions for the terminal device 300 and to process data. Let's do it.
  • the second memory 220 consumes less power and is a flash memory that maintains data even when a battery is not supplied.
  • the second memory 220 may store product related information, an address table, and the like.
  • the electronic price indicator 310 receives a signal including the first address and an address assignment start command on the assumption that two or more electronic price indicators 310 are assigned to one address. Based on this premise, the terminal device 300 outputs a signal including a first address and an address assignment start command to all electronic price indicators 310 so that only one electronic price indicator 310 can be assigned to one address. Send to
  • the address included in the signal including the first address received by the electronic price indicator 310 and the address assignment start command is an address to which two or more electronic price indicators 310 are assigned.
  • the terminal device 300 manages an address table, which includes an address, a state of an address, and a unique ID of the electronic price display 310 having the address.
  • the status of an address shows how many electronic price indicators 310 are assigned to that address.
  • the terminal device 300 extracts an address to which two or more electronic price indicators 310 are allocated through the address table, and includes a signal including a first address to which two or more electronic price indicators 310 are allocated and an address allocation start command. Generate and transmit to all electronic price indicators 310.
  • the terminal device 300 transmits a signal including a first address and an address allocation start command to all the electronic price indicators 310, but only the electronic price indicator 310 having the first address requests a unique ID and address to be described later. Generate a signal containing the command.
  • the electronic price indicator 310 changes from the slave mode to the master mode after receiving a signal including a first address and an address assignment start command (S200). It's a step.
  • the electronic price indicator 310 transmits a signal including the unique ID and an address request command so that the electronic price indicator 310 changed to a master mode sends a signal including a unique ID and an address request command to the terminal device 300. To transmit.
  • the electronic price indicator 310 assigned to the first address transmits a signal including a unique ID and an address request command.
  • all the electronic price indicators 310 receive a signal from the terminal device 300 including the above-described first address and address assignment start command, only the electronic price indicators 310 having the first address have a unique ID and an address request command. Generate and transmit a signal comprising a.
  • the electronic price indicators 310 having the first address and the first address included in the signal including the address allocation start command are switched to the master mode after receiving the signal including the first address and the address allocation start command.
  • the electronic price indicator 310 is switched to the master mode, it means that specific information may be requested to another device, such as the terminal device 300.
  • the electronic price indicator 310 switched to the master mode sends a request command, such as a signal including a unique ID and an address request command, to any device, for example, the terminal device 300 or another electronic price indicator 310. I can send it.
  • a request command such as a signal including a unique ID and an address request command
  • the at least two electronic price indicators 310 are electronic price indicators 310 having a first address and a first address included in a signal including an address allocation start command.
  • the two or more electronic price indicators 310 transmit a signal including a unique ID and an address request command generated by each of the two or more electronic price indicators 310 to the terminal device 300 through the same data line.
  • a signal including a unique ID and an address request command generated by each of the two or more electronic price indicators 310 is a bit operation and is transmitted to the terminal device 300.
  • An AND operation is performed among bit operations. The AND operation compares two digits of a signal including two or more unique IDs and an address request command, and calculates 1 when all the digits have 1 and 0 otherwise. The ANDed result is transmitted to the terminal device 300.
  • any one of the two or more electronic price indicators 310 transmits 1, when the data line is 0, the one electronic price indicator 310 stops transmitting.
  • the data line being zero when one electronic price indicator 310 transmits 1 means that the other electronic price indicator 310 has transmitted 0 to the data line.
  • one of the two or more electronic price indicators 310 transmits a signal including a unique ID and an address request command, for example, n bits
  • the other one or more electronic price indicators 310 may also be used. Sends a signal containing a unique ID with n bits and an address request command.
  • any one electronic price indicator 310 is 1 If the data line is 0 when transmitting, the one electronic price indicator 310 stops transmitting without transmitting the first next bit.
  • the signal including the unique ID and the address request command includes an address of the terminal device 300, information indicating a reading or writing, information indicating a command, and a unique ID of the electronic price display 310.
  • the two or more electronic price indicators 310 request a new address while transmitting a signal including a unique ID and an address request command to the same terminal device 300.
  • the signal including the unique ID and the address request command generated by each of the two or more electronic price indicators 310 is the same as the address of the terminal device 300, information indicating writing, and information indicating command.
  • the unique ID information is different because each electronic price indicator includes its own unique ID.
  • the electronic price indicator 310 Since the signals including the unique ID and the address request command generated by the two or more electronic price indicators 310 differ only in the unique IDs, the electronic price indicator 310 outputting 1 later based on the unique IDs of the electronic price indicators 310 may be used. The transmission will not be interrupted. Since the electronic price indicator 310 sequentially transmits each bit of the unique ID from the first digit to the last digit, the electronic price indicator 310 including one more in the lower digit does not stop transmission.
  • the terminal device 300 receives a signal including a unique ID and an address request command from a single electronic price indicator 310.
  • the electronic price indicator 310 changes from the master mode to the slave mode
  • the electronic price indicator 310 changes from the master mode to the slave mode after transmitting a signal including a unique ID and an address request command. .
  • the electronic price indicator 310 When the electronic price indicator 310 receives a signal including a unique ID and a second address and changes the first address to the second address, the electronic price indicator 310 having the unique ID may change the first address. To the second address.
  • the electronic price indicator 310 that receives the signal including the unique ID and the second address is all electronic price indicators 310 communicating with the terminal device 300.
  • the terminal device 300 transmits a signal including the unique ID and the second address by broadcasting, and all the electronic price indicators 310 receive the signal including the unique ID and the second address.
  • the unique ID is a unique ID of the electronic price indicator 310 that transmits a signal including a unique ID and an address request command without stopping transmission of the two or more electronic price indicators 310. That is, the electronic price indicator 310 in the signal including the unique ID and the address request command generated from the electronic price indicator 310 having the address included in the signal including the first address and the address allocation start command described above. It is an electronic price indicator 310 that includes one more in the rank of the subordinated order.
  • the signal including the unique ID and the second address generated by the terminal device 300 may be updated by the single electronic price indicator 310 as well as the address and unique ID of the single electronic price indicator 310. It also includes a second address, which is an address. The second address is one of the addresses included in the above-described address table, and is an address to which no electronic price indicator 310 is assigned.
  • the second address includes a value different from the first address.
  • the terminal device 300 may determine an address having the smallest bit value as a new address when there are a plurality of addresses to which the electronic price indicator 310 is not assigned.
  • all the electronic price indicators 310 communicating with the terminal device 300 receive a 'signal with a unique ID and a second address', but have a unique ID equal to the received unique ID. Only one electronic price indicator 310 updates its address to a second address included in the 'signal including the unique ID and the second address'.
  • Each electronic price indicator 310 ignores the signal when the unique ID included in the 'signal including the unique ID and the second address' is not its own unique ID.
  • One of two or more electronic price indicators 310 assigned to one address through a process of changing to a mode and receiving a signal including the unique ID and the second address and changing the first address to the second address. Resolves the problem of address duplication by updating its address with a new address.
  • the at least one program detects a serial data (SDA) line, transmits a high signal while a low signal is detected from the serial data (SDA) line, and transmits a signal including the unique ID and an address request command. Contains the command to abort.
  • SDA serial data
  • SDA serial data
  • Detecting the SDA line is the electronic price indicator 310 detects whether a high signal or a low signal is applied to the SDA line.
  • Transmitting a high signal while a low signal is detected from the SDA line is that the electronic price indicator 310 detects a low signal from the SDA line and simultaneously outputs a high signal.
  • Stopping transmission of the signal including the unique ID and the address request command means that the electronic price indicator 310 stops transmitting the signal including the unique ID and the address request command.
  • the one electronic price indicator 310 stops transmitting.
  • the data line being zero when one electronic price indicator 310 transmits 1 means that the other electronic price indicator 310 has transmitted 0 to the data line.
  • the electronic price indicator 310 Since the signal including the unique ID and the address request command generated by the two or more electronic price indicators 310 differ only in the unique ID, the electronic price indicator 310 outputting 1 later based on its unique ID is transmitted. Will not interrupt.
  • the electronic price indicator 310 Since the electronic price indicator 310 sequentially transmits each bit of the unique ID from the first digit to the last digit, the electronic price indicator 310 including one more in the lower digit does not stop transmission.
  • 16 illustrates an address table generated by the terminal device 300.
  • the address table generated by the terminal device 300 includes 20 addresses, for example. st is a state and is information indicating how many electronic price indicators 310 are allocated to each address. The information next to the status is the unique ID of the electronic price indicator 310. The unique ID when the state value is 2 is not a unique ID of any electronic price indicator 310 since the unique ID of the two electronic price indicators 310 is calculated by and.
  • the status value is 0, since there is no electronic price indicator 310 assigned, it is set to a default value.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Small-Scale Networks (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The present invention relates to: a method for allocating an address to an electronic shelf label performing I2C communication with a terminal device; an electronic shelf label; and a terminal device, and to: a method, which recognizes when an address of a newly coupled electronic shelf label is the same as the address of an already coupled electronic shelf label in the process of newly coupling, to an I2C bus, the electronic shelf label performing I2C communication with a terminal device, thereby allocating a new address to any one electronic shelf label having the same address; an electronic shelf label; and a terminal device. One purpose of the present invention is to allow only a terminal device, which is one electronic shelf label in charge of one section in a store, to wirelessly communicate with a gateway so as to receive information related to products, and allow electronic shelf labels, which are multiple electronic shelf labels connected to the terminal device, to receive information related to products from the terminal device through wired communication, thereby reducing costs for construction of an electronic shelf label system.

Description

단말장치의 중복주소 판단방법, 주소 갱신 방법, 중복주소 판단 및 주소 갱신 시스템Duplicate address determination method, address update method, duplicate address determination and address update system of terminal equipment

본 발명은 단말장치의 중복주소 판단방법, 주소 갱신 방법, 중복주소 판단 및 주소 갱신 시스템에 관한 것으로, 단말장치와 I2C 통신을 하는 전자 가격 표시기를 I2C 버스에 새롭게 결합하는 과정에서 새롭게 결합된 전자 가격 표시기의 주소가 이미 결합된 다른 전자 가격 표시기의 주소와 동일한 경우를 인지하여, 그 중 어느 하나의 전자 가격 표시기에 새로운 주소를 할당하는 방법과 시스템에 관한 것이다.The present invention relates to a duplicate address determination method, an address update method, a duplicate address determination, and an address update system of a terminal device. The present invention relates to a method and system for recognizing a case where an address of an indicator is the same as that of another electronic price indicator that is already combined, and assigning a new address to any one of the electronic price indicators.

일정한 공간 내에 상당 수의 물품을 전시하여 판매하는 유통매장과 같은 장소에서는, 상품의 정보와 가격을 표시해주는 전자 가격 표시기가 사용될 수 있다.In a place such as a retail store that displays and sells a large number of items in a certain space, an electronic price indicator that displays information and price of the goods may be used.

이 경우, 모든 전자 가격 표시기가 게이트웨이와 통신을 하면 전자 가격 표시기의 전력 소모가 많아지고, 전자 가격 표시기가 통신을 하는 과정에서 전파 간섭으로 인해 통신 상태가 불안정해 질 수 있다. 또한 모든 전자 가격 표시기가 무선 통신 모듈을 구비해야 하기 때문에 전자 가격 표시기의 단가도 올라가는 문제가 생긴다.In this case, when all the electronic price indicators communicate with the gateway, the power consumption of the electronic price indicator increases, and the communication state may become unstable due to radio interference while the electronic price indicator communicates. In addition, since all electronic price indicators must be equipped with a wireless communication module, the price of the electronic price indicator also increases.

이러한 문제점을 극복하기 위해 하나의 매대 또는 하나의 섹션에 하나의 전자 가격 표시기인 단말장치만이 게이트웨이와 무선 통신하여 상품 관련 정보를 수신하고 상기 단말장치와 연결된 매대 또는 섹션에 위치한 복수개의 전자 가격 표시기인 전자 가격 표시기는 유선 통신으로 단말장치로부터 상품 관련 정보를 수신할 필요가 있다.In order to overcome this problem, only one terminal price, which is one electronic price indicator in one unit or one section, wirelessly communicates with the gateway to receive product related information, and the plurality of electronic price indicators located in the unit or section connected to the terminal unit. The electronic price indicator needs to receive product related information from a terminal device through wired communication.

단말장치와 전자 가격 표시기가 유선 통신을 하는 경우, 상기 유선 통신을 하는 새로운 전자 가격 표시기가 추가되는 과정에서 새로운 전자 가격 표시기와 기존의 전자 가격 표시기의 주소가 같아지는 문제점이 생길 수 있다.When the terminal device and the electronic price indicator performs wired communication, there may be a problem in that the address of the new electronic price indicator and the existing electronic price indicator are the same while the new electronic price indicator for wired communication is added.

이러한 문제점을 극복하기 위해 딥(Dip) 스위치를 사용하면 딥 스위치 자체의 기구적인 제약이 발생할 수 있다. 즉, 딥 스위치에서 변경 가능한 주소의 개수 만큼만 전자 가격 표시기를 추가할 수 밖에 없고, 딥 스위치의 사용에 따른 비용 및 전자 가격 표시기 시스템을 구현하기 위한 하드웨어 구성의 크기가 커지는 문제가 생긴다. 또한 딥 스위치는 사람이 조작하는 것이기 때문에 오작동으로 인한 오류를 발생시킬 수 있다. Using a dip switch to overcome this problem may cause mechanical limitations of the dip switch itself. That is, only the number of addresses that can be changed in the dip switch can be added to the electronic price indicator, and the cost of using the dip switch and the size of the hardware configuration for implementing the electronic price indicator system become large. In addition, since the dip switch is a human operation, it may cause an error due to a malfunction.

본 발명이 해결하고자 하는 하나의 과제는 매장 내의 하나의 섹션을 담당하는 하나의 전자 가격 표시기인 단말장치만이 게이트웨이와 무선 통신하여 상품 관련 정보를 수신하고 상기 단말장치와 연결된 복수개의 전자 가격 표시기인 전자 가격 표시기는 유선 통신으로 단말장치로부터 상품 관련 정보를 수신하도록 하여, 전자 가격 표시기 시스템 구축에 따른 비용을 절감시키는 것이다.One problem to be solved by the present invention is a plurality of electronic price indicator which is connected to the terminal device, the terminal device which is only one electronic price indicator in charge of one section in the store wirelessly communicates with the gateway and receives the product related information. The electronic price indicator allows the product related information to be received from the terminal through wired communication, thereby reducing the cost of building the electronic price indicator system.

본 발명이 해결하고자 하는 다른 과제는 단말장치와 전자 가격 표시기가 I2C 통신을 하여 딥 스위치 사용에 따른 기구적인 제약을 극복하는 것이다.Another problem to be solved by the present invention is to overcome the mechanical constraints of using a dip switch by the I2C communication between the terminal device and the electronic price indicator.

본 발명이 해결하고자 하는 또 다른 과제는 단말장치와 I2C 통신을 하는 전자 가격 표시기를 I2C 버스에 새롭게 결합하는 과정에서 새롭게 결합된 전자 가격 표시기의 주소가 이미 결합된 전자 가격 표시기의 주소와 동일한 경우를 인지하고, 동일한 주소를 가지는 어느 하나의 전자 가격 표시기에 새로운 주소를 할당하는 것이다.Another problem to be solved by the present invention is a case where the address of the newly combined electronic price indicator is the same as the address of the already combined electronic price indicator in the process of newly combining the electronic price indicator for the I2C communication with the terminal device to the I2C bus. It recognizes and assigns a new address to any one electronic price indicator having the same address.

본 발명이 해결하고자 하는 또 다른 과제는 단말장치는 전자 가격 표시기의 유니크 아이디에 따른 순환 중복 검사값과 전자 가격 표시기로부터 수신한 순환 중복 검사 값을 비교하여 하나의 주소에 둘 이상의 전자 가격 표시기가 할당되어 있는지 판단하는 것이다.Another problem to be solved by the present invention is the terminal device compares the cyclic redundancy check value according to the unique ID of the electronic price indicator and the cyclic redundancy check value received from the electronic price indicator and assigns two or more electronic price indicators to one address. It is to determine if it is.

본 발명이 해결하고자 하는 또 다른 과제는 같은 주소를 가지는 복수의 전자 가격 표시기가 유니크 아이디와 주소 요청명령을 포함하는 신호 송신할 때, 상기 복수의 전자 가격 표시기 중 데이터 라인이 0인 경우 1을 송신하는 전자 가격 표시기는 전송을 중단하는 과정을 통해 단 하나의 전자 가격 표시기만이 유니크 아이디와 주소 요청명령을 포함하는 신호를 단말장치로 송신하게 되고, 결국 상기 단 하나의 전자 가격 표시기가 먼저 새주소를 할당받는 것이다.Another problem to be solved by the present invention is that when a plurality of electronic price indicators having the same address transmits a signal including a unique ID and an address request command, when the data line of the plurality of electronic price indicators is 0, 1 is transmitted. Through the process of stopping transmission, the electronic price indicator only transmits a signal including a unique ID and an address request command to the terminal device. Will be assigned.

한편, 본 발명이 해결하고자 하는 기술적 과제는 위에서 언급한 과제들로만 제한되지는 않으며, 이하에서 설명할 내용으로부터 통상의 기술자에게 자명한 범위 내에서 다양한 기술적 과제들이 더 포함될 수 있다.On the other hand, the technical problem to be solved by the present invention is not limited to the above-mentioned problems, various technical problems may be further included within the scope apparent to those skilled in the art from the following description.

복수의 전자가격 표시기와 I2C통신하는 단말장치의 중복주소 판단 방법에 있어서, 단말장치의 중복주소 판단방법은 제1 주소와 유니크 아이디 요청 명령을 포함하는 신호를 송신하는 단계; 유니크 아이디와 오류 검출 코드를 포함하는 신호를 수신하는 단계; 상기 오류 검출코드를 이용하여 수신된 신호의 오류를 판단하는 단계; 및 상기 수신된 신호가 오류인 경우 상기 제1 주소를 중복된 주소로 판단하는 단계를 포함한다.A method for determining a duplicate address of a terminal device in I2C communication with a plurality of electronic price indicators, the method comprising: transmitting a signal including a first address and a unique ID request command; Receiving a signal comprising a unique ID and an error detection code; Determining an error of a received signal using the error detection code; And determining the first address as a duplicate address when the received signal is an error.

단말장치의 중복주소 판단방법은 상기 단말장치는 마스터 모드로 동작하고, 상기 제1 주소와 주소할당 시작 명령을 포함하는 신호를 송신하는 단계; 상기 마스터 모드에서 슬래이브 모드로 변경하는 단계; 상기 유니크 아이디와 주소 요청명령을 포함하는 신호를 수신하는 단계; 및 상기 슬래이브 모드에서 상기 마스터 모드로 변경하는 단계; 상기 유니크 아이디 및 제2 주소가 포함된 신호를 송신하는 단계를 더 포함하고, 상기 제2 주소는 상기 제1 주소와 다른 값을 포함한다.The method of determining a duplicate address of a terminal device may include: transmitting a signal including the first address and an address allocation start command, operating in a master mode; Changing from the master mode to a slave mode; Receiving a signal including the unique ID and an address request command; Changing from the slave mode to the master mode; The method may further include transmitting a signal including the unique ID and the second address, wherein the second address includes a value different from the first address.

제1 주소와 유니크 아이디를 포함하는 슬레이브 모드인 전자가격 표시기의 주소 갱신 방법에 있어서, 주소 갱신 방법은 상기 제1 주소와 주소할당 시작 명령을 포함하는 신호를 수신하는 단계; 상기 슬레이브 모드에서 마스터 모드로 변경하는 단계; 상기 유니크 아이디와 주소 요청명령을 포함하는 신호를 송신하는 단계; 및 상기 마스터 모드에서 상기 슬레이브 모드로 변경하는 단계; 상기 유니크 아이디 및 제2 주소가 포함된 신호를 수신하여 상기 제1 주소를 상기 제2 주소로 변경하는 단계를 포함한다.An address updating method of an electronic price indicator in a slave mode including a first address and a unique ID, the address updating method comprising: receiving a signal including the first address and an address assignment start command; Changing from the slave mode to a master mode; Transmitting a signal including the unique ID and an address request command; Changing from the master mode to the slave mode; And receiving the signal including the unique ID and the second address and changing the first address to the second address.

상기 유니크 아이디와 주소 요청명령을 포함하는 신호를 송신하는 단계는 SDA 라인을 감지하는 단계; 상기 SDA(Serial data) 라인으로부터 low 신호가 감지되는 동안 High 신호를 전송하는 단계;및 상기 유니크 아이디와 주소 요청명령을 포함하는 신호의 송신을 중단하는 단계를 포함한다.The transmitting of the signal including the unique ID and the address request command may include detecting an SDA line; Transmitting a high signal while a low signal is detected from the serial data (SDA) line; and stopping transmission of a signal including the unique ID and an address request command.

중복주소 판단 및 주소 갱신 시스템은 단말 장치; 및 상기 단말 장치와 I2C 통신하는 전자 가격 표시기;를 포함하고, 상기 단말 장치는 제1 주소와 유니크 아이디 요청 명령을 포함하는 신호를 송신하고, 유니크 아이디와 오류 검출 코드를 포함하는 신호를 수신하며, 상기 오류 검출코드를 이용하여 수신된 신호의 오류를 판단하고, 상기 수신된 신호가 오류인 경우 상기 제1 주소를 중복된 주소로 판단한다.The duplicate address determination and address update system includes a terminal device; And an electronic price indicator in I2C communication with the terminal device, wherein the terminal device transmits a signal including a first address and a unique ID request command, and receives a signal including a unique ID and an error detection code, An error of the received signal is determined using the error detection code, and if the received signal is an error, the first address is determined as a duplicate address.

상기 단말 장치는, 마스터 모드로 동작하여 상기 제1 주소와 주소할당 시작 명령을 포함하는 신호를 송신하고, 상기 마스터 모드에서 슬래이브 모드로 변경하여 상기 유니크 아이디와 주소 요청명령을 포함하는 신호를 수신하고, 상기 슬래이브 모드에서 상기 마스터 모드로 변경하여 상기 유니크 아이디 및 제2 주소가 포함된 신호를 송신하며, 상기 유니크 아이디 및 제2 주소가 포함된 신호를 송신하며, 상기 제2 주소는, 상기 제1 주소와 다른 값을 포함한다.The terminal device operates in a master mode to transmit a signal including the first address and an address assignment start command, and changes from the master mode to a slave mode to receive a signal including the unique ID and an address request command. Change from the slave mode to the master mode to transmit a signal including the unique ID and the second address, and transmit a signal including the unique ID and the second address, wherein the second address is the It contains a value different from the first address.

상기 전자 가격 표시기는 상기 제1 주소와 유니크 아이디를 포함하고, 슬레이브 모드로 동작하여 상기 제1 주소와 주소할당 시작 명령을 포함하는 신호를 수신하고, 상기 슬레이브 모드에서 마스터 모드로 변경하여 상기 유니크 아이디와 주소 요청명령을 포함하는 신호를 송신하고 상기 마스터 모드에서 상기 슬레이브 모드로 변경하여, 상기 유니크 아이디 및 제2 주소가 포함된 신호를 수신하여 상기 제1 주소를 상기 제2 주소로 변경한다.The electronic price indicator includes the first address and a unique ID, operates in a slave mode, receives a signal including the first address and an address assignment start command, changes from the slave mode to a master mode, and then the unique ID. And a signal including an address request command and changing from the master mode to the slave mode, receiving a signal including the unique ID and the second address and changing the first address to the second address.

상기 전자 가격 표시기는 SDA(Serial data) 라인을 감지하고, 상기 SDA(Serial data) 라인으로부터 low 신호가 감지되는 동안 High 신호를 전송하는 경우, 상기 유니크 아이디와 주소 요청명령을 포함하는 신호의 송신을 중단한다.The electronic price indicator detects a serial data (SDA) line, and transmits a signal including the unique ID and an address request command when transmitting a high signal while a low signal is detected from the serial data (SDA) line. Stop.

본 발명은 매장 내의 하나의 섹션을 담당하는 하나의 전자 가격 표시기인 단말장치만이 게이트웨이와 무선 통신하여 상품 관련 정보를 수신하고 상기 단말장치와 연결된 복수개의 전자 가격 표시기인 전자 가격 표시기는 유선 통신으로 단말장치로부터 상품 관련 정보를 수신하도록 하여, 전자 가격 표시기 시스템 구축에 따른 비용을 절감시킨다.According to the present invention, only an electronic device, which is an electronic price indicator in charge of one section in a store, receives wireless communication with the gateway to receive product related information, and the electronic price indicator, which is a plurality of electronic price indicators connected to the terminal device, is wired. By receiving the goods-related information from the terminal device, the cost of building the electronic price indicator system is reduced.

본 발명은 단말장치와 전자 가격 표시기가 I2C 통신을 하여 딥 스위치 사용에 따른 기구적인 제약을 극복한다.The present invention overcomes the mechanical constraints of the use of the dip switch by the I2C communication between the terminal and the electronic price indicator.

본 발명은 단말장치와 I2C 통신을 하는 전자 가격 표시기를 I2C 버스에 새롭게 결합하는 과정에서 새롭게 결합된 전자 가격 표시기의 주소가 이미 결합된 전자 가격 표시기의 주소와 동일한 경우를 인지하고, 동일한 주소를 가지는 어느 하나의 전자 가격 표시기로 새로운 주소를 할당한다.The present invention recognizes the case where the address of the newly combined electronic price indicator is the same as the address of the already combined electronic price indicator in the process of newly combining the electronic price indicator having I2C communication with the terminal device on the I2C bus, and has the same address. Assign a new address to either electronic price indicator.

본 발명에서 단말장치는 전자 가격 표시기의 유니크 아이디에 따른 순환 중복 검사값과 전자 가격 표시기로부터 수신한 순환 중복 검사 값을 비교하여 하나의 주소에 둘 이상의 전자 가격 표시기가 할당되어 있는지 판단한다.In the present invention, the terminal device compares the cyclic redundancy check value according to the unique ID of the electronic price indicator with the cyclic redundancy check value received from the electronic price indicator, and determines whether two or more electronic price indicators are allocated to one address.

본 발명은 같은 주소를 가지는 복수의 전자 가격 표시기가 유니크 아이디와 주소 요청명령을 포함하는 신호 송신할 때, 상기 복수의 전자 가격 표시기 중 데이터 라인이 0인 경우 1을 송신하는 전자 가격 표시기는 전송을 중단하는 과정을 통해 단 하나의 전자 가격 표시기만이 유니크 아이디와 주소 요청명령을 포함하는 신호를 단말장치로 송신하게 되고, 결국 상기 단 하나의 전자 가격 표시기가 먼저 새주소를 할당받는다.According to the present invention, when a plurality of electronic price indicators having the same address transmit a signal including a unique ID and an address request command, the electronic price indicator transmitting one when the data line is zero among the plurality of electronic price indicators transmits the signal. Through the interruption process, only one electronic price indicator transmits a signal including a unique ID and an address request command to the terminal device. As a result, the single electronic price indicator is first assigned a new address.

본 발명의 효과는 이상에서 언급한 효과들로 제한되지 않으며, 이하에서 설명할 내용으로부터 통상의 기술자에게 자명한 범위 내에서 다양한 효과들이 더 포함될 수 있다.The effects of the present invention are not limited to the above-mentioned effects, and various effects may be further included within the scope apparent to those skilled in the art from the following description.

도 1은 I2C통신에서 시작 조건(Start condition) 및 정지 조건(Stop condition)인 경우의 SDA 라인 및 SCL 라인 상의 시그널 상태를 도시한다.1 shows signal states on an SDA line and an SCL line in the case of a start condition and a stop condition in I2C communication.

도 2는 I2C통신에서 데이터가 전송되는 경우의 SDA 라인 및 SCL 라인 상의 시그널 상태를 도시한다.2 shows signal states on the SDA line and the SCL line when data is transmitted in I2C communication.

도 3은 I2C통신에서 시작 조건, 데이터 전송 및 정지 조건에 따른 SDA 라인 및 SCL 라인 상의 시그널 상태를 도시한다.3 illustrates signal states on SDA lines and SCL lines according to start conditions, data transmission and stop conditions in I2C communication.

도 4는 복수의 마스터가 동시에 데이터를 전송한 경우, 슬레이브가 수신한 데이터를 설명하기 위한, SDA 라인 및 SCL 라인 상의 시그널 상태를 도시한다.4 illustrates signal states on an SDA line and an SCL line for explaining data received by a slave when a plurality of masters simultaneously transmit data.

도 5는 복수의 마스터가 동시에 데이터를 전송한 경우, 슬레이브가 수신한 데이터를 도시한다.5 illustrates data received by a slave when a plurality of masters transmit data at the same time.

도 6은 I2C 통신을 하는 마스터가 동일한 주소를 가지는 슬레이브로 데이터를 쓰기하는 과정을 도시한다.FIG. 6 illustrates a process in which a master in I2C communication writes data to a slave having the same address.

도 7은 I2C 통신을 하는 마스터가 동일한 주소를 가지는 슬레이브로 데이터를 읽기하는 과정을 도시한다.7 illustrates a process of reading data from a master having I2C communication to a slave having the same address.

도 8은 단말장치의 중복주소 판단방법의 흐름도이다.8 is a flowchart illustrating a method of determining a duplicate address of a terminal device.

도 9는 주소 갱신 방법의 흐름도이다.9 is a flowchart of an address update method.

도 10은 주소 갱신 방법에서 유니크 아이디와 주소 요청명령을 포함하는 신호를 송신하는 단계의 세부 흐름도이다.10 is a detailed flowchart of a step of transmitting a signal including a unique ID and an address request command in the address update method.

도 11은 중복주소 판단 및 주소 갱신 시스템의 전체 구성을 도시한다.11 shows an overall configuration of a duplicate address determination and address update system.

도 12는 중복주소 판단 및 주소 갱신 시스템의 전체 구성을 도시한다.12 shows the overall configuration of a duplicate address determination and address update system.

도 13은 서버, 게이트 웨이, 단말 장치 및 전자 가격 표시기를 포함하는 전자 가격 표시기 시스템을 도시한다.13 illustrates an electronic price indicator system including a server, a gateway, a terminal device, and an electronic price indicator.

도 14는 단말장치의 전체적인 구성을 도시한 블록도이다.14 is a block diagram showing the overall configuration of a terminal device.

도 15는 전자 가격 표시기의 전체적인 구성을 도시한 블록도이다.15 is a block diagram showing the overall configuration of an electronic price indicator.

도 16은 단말장치가 생성한 주소 테이블을 도시한다.16 illustrates an address table generated by a terminal device.

본 발명에 따른 단말장치의 중복주소 판단방법과 시스템은 첨부된 도면을 참조하여 설명하는 실시예들을 통해 구체화된다. 각 실시예들의 구성 요소들은 다른 언급이나 상호간에 모순이 없는 한 실시예 내에서 다양한 조합이 가능한 것으로 이해된다. 나아가 제안된 발명은 여러 가지 상이한 형태로 구현될 수 있으며 여기에서 설명하는 실시예에 한정되지 않는다.Duplicate address determination method and system of the terminal device according to the present invention is embodied through embodiments described with reference to the accompanying drawings. It is to be understood that the components of the embodiments may be variously combined within the embodiments as long as there are no other mentions or contradictions. Furthermore, the proposed invention may be embodied in many different forms and should not be construed as limited to the embodiments set forth herein.

그리고, 어떤 구성 요소를 "포함"한다고 할 때, 이는 다른 구성요소들과는 상관없이 이 구성요소를 반드시 포함한다는 의미이지 다른 구성 요소들의 포함 가능성을 배제하고자 하는 것이 아니다.In addition, when a component is "contained," it means that the component must be included regardless of other components, not to exclude the possibility of inclusion of other components.

또한, 명세서 전체에서, 어떤 부분이 다른 부분과 "연결"되어 있다고 할 때, 이는 "직접적으로 연결"되어 있는 경우뿐 아니라, 그 중간에 다른 소자를 사이에 두고 "전기적으로 연결"되어 있는 경우도 포함한다. 나아가, 명세서 전체에서 신호는 전압이나 전류 등의 전기량을 의미한다.In addition, throughout the specification, when a part is "connected" to another part, it is not only "directly connected", but also "electrically connected" between other elements in between. Include. Furthermore, in the specification, a signal means an electric quantity such as a voltage or a current.

도 1은 I2C통신에서 시작 조건(Start condition) 및 정지 조건(Stop condition)인 경우의 SDA 라인 및 SCL 라인 상의 시그널 상태를 도시한다.1 shows signal states on an SDA line and an SCL line in the case of a start condition and a stop condition in I2C communication.

시작 조건은 현재의 I2C 버스(132) 마스터가 데이터를 송신하는 것을 허용하도록 정의된다. 시작 조건은 SCL 라인이 하이인 동안 SDA 라인이 하이로부터 로우로 천이할 때 발생한다. The start condition is defined to allow the current I2C bus 132 master to transmit data. The start condition occurs when the SDA line transitions from high to low while the SCL line is high.

시작 조건이 충족된 이후에 데이터가 송신되고, 정지 조건이 충족되면 데이터 송신은 완료된다. 정지 조건은 SCL 라인이 하이인 동안 SDA 라인이 로우에서 하이로 천이할 때 발생한다. Data is transmitted after the start condition is met, and data transmission is completed when the stop condition is met. A stop condition occurs when the SDA line transitions low to high while the SCL line is high.

즉, 시작 조건 및 정지 조건은 SDA 라인의 천이가 SCL 라인이 로우일 때 발생하는 것을 요구한다. 다만, 예외적인 상황이 시작 조건 또는 정지 조건으로서 취급될 수도 있다.That is, the start condition and stop condition require that the transition of the SDA line occur when the SCL line is low. However, exceptional situations may be treated as start conditions or stop conditions.

도 2는 I2C통신에서 데이터가 전송되는 경우의 SDA 라인 및 SCL 라인 상의 시그널 상태를 도시한다.2 shows signal states on the SDA line and the SCL line when data is transmitted in I2C communication.

SCL 라인이 데이터 송신 동안 하이 상태에 있는 경우, SDA 라인상의 시그널 상태는 변하지 않는다. 즉, SCL 라인이 하이 상태에 있는 경우, 도 2에 도시된 것처럼 SDA 라인상의 시그널 상태는 하이 또는 로우를 유지한다.If the SCL line is high during data transmission, the signal state on the SDA line does not change. That is, when the SCL line is in the high state, the signal state on the SDA line remains high or low as shown in FIG.

SDA 라인상의 상태는 오로지 SCL 라인이 로우 상태에 있는 경우 변할 수 있다.The state on the SDA line can only change when the SCL line is in the low state.

도 3은 I2C통신에서 시작 조건, 데이터 전송 및 정지 조건에 따른 SDA 라인 및 SCL 라인 상의 시그널 상태를 도시한다.3 illustrates signal states on SDA lines and SCL lines according to start conditions, data transmission and stop conditions in I2C communication.

도 3에 도시된 것처럼, I2C 프로토콜은 8비트 데이터 및 7비트 어드레스들의 송신을 제공한다. As shown in Figure 3, the I2C protocol provides for the transmission of 8-bit data and 7-bit addresses.

I2C 마스터는 시작 조건 이후에 데이터를 교환(송신 또는 수신)하려는 I2C 슬레이브 디바이스의 7비트 어드레스를 송신한다. 마스터가 상기 7비트의 어드레스를 송신하고, 마스터가 쓰기 또는 읽기 동작을 나타내는 단일의 비트가 후속된다. The I2C master sends the 7-bit address of the I2C slave device to exchange (send or receive) data after the start condition. The master transmits the seven bits of address followed by a single bit in which the master indicates a write or read operation.

어드레싱된 I2C 슬레이브 디바이스는 상기 마스터의 동작에 대응할 수 있는 경우 ACK 비트로 응답한다. 어드레싱된 I2C 슬레이브 디바이스는 상기 마스터의 동작에 대응할 수 없는 경우 NACK 비트로 응답한다.The addressed I2C slave device responds with an ACK bit if it can respond to the operation of the master. The addressed I2C slave device responds with a NACK bit if it cannot cope with the operation of the master.

도 4는 복수의 마스터가 동시에 데이터를 전송한 경우, 슬레이브가 수신한 데이터를 설명하기 위한, SDA 라인 및 SCL 라인 상의 시그널 상태를 도시한다. 도 5는 복수의 마스터가 동시에 데이터를 전송한 경우, 슬레이브가 수신한 데이터를 도시한다.4 illustrates signal states on an SDA line and an SCL line for explaining data received by a slave when a plurality of masters simultaneously transmit data. 5 illustrates data received by a slave when a plurality of masters transmit data at the same time.

I2C 통신에서 마스터는 복수개 일 수 있고, 이 경우 복수의 데이터가 동시에 전송될 수 있다. 이 경우, 도 4 및 도 5에 도시된 것처럼 중재 스킴(Arbitration scheme)이 적용되어 복수의 마스터 중 어느 하나의 마스터가 전송한 데이터만 슬레이브가 수신한다.In I2C communication, there may be a plurality of masters, in which case a plurality of data may be transmitted simultaneously. In this case, as shown in FIGS. 4 and 5, an arbitration scheme is applied, and the slave receives only data transmitted by any one of the plurality of masters.

도 4에 따르면 시작조건을 충족시키는 두개의 마스터가 존재한다. 시작 조건이 충족된 이후에 데이터 1을 전송하는 마스터 1 및 데이터 2를 전송하는 마스터 2는 같은 신호를 출력한다.According to Figure 4 there are two masters that satisfy the starting condition. After the start condition is satisfied, master 1 transmitting data 1 and master 2 transmitting data 2 output the same signal.

하지만, 같은 신호를 출력한 이후에, 데이터 1을 전송하는 마스터 1이 하이 신호를 출력하는 동안 데이터 2를 전송하는 마스터 2가 로우 신호를 출력하는 구간이 존재한다.However, after the same signal is output, there is a period in which the master 2 transmitting the data 2 outputs the low signal while the master 1 transmitting the data 1 outputs the high signal.

도 4에서 "master 1 loses arbitration"이라고 표시된 부분 이후부터 마스터 1은 중재를 잃고 전송을 중단한다.After the portion indicated as "master 1 loses arbitration" in FIG. 4, the master 1 loses arbitration and stops transmission.

즉, 어느 하나의 마스터가 하이 신호를 전송하였는데, SDA 신호 라인이 로우이면 상기 어느 하나의 마스터는 마스터로서의 기능을 포기하고 전송을 중단한다. 어느 하나의 마스터가 하이 신호를 전송하였는데, SDA 신호 라인이 로우라는 것은 다른 하나 이상의 마스터가 로우 신호를 전송했음을 의미한다.That is, if one master transmits a high signal and the SDA signal line is low, the one master gives up its function as a master and stops transmitting. If one master sent a high signal and the SDA signal line is low, it means that one or more masters sent a low signal.

도 5에 따르면 마스터 1, 마스터 3의 순서로 데이터 전송을 포기하고, 마스터 2의 데이터인 1001이 전송된다.According to FIG. 5, the data transmission is abandoned in the order of master 1 and master 3, and 1001, which is data of master 2, is transmitted.

도 6은 I2C 통신을 하는 마스터가 동일한 주소를 가지는 슬레이브로 데이터를 쓰기하는 과정을 도시한다.FIG. 6 illustrates a process in which a master in I2C communication writes data to a slave having the same address.

도 6에 도시된 것처럼 마스터가 1010이라는 데이터를 쓰기하면 동일한 주소를 가지는 슬레이브는 모두 1010이라는 동일한 데이터를 수신한다.As shown in FIG. 6, when the master writes data 1010, all slaves having the same address receive the same data 1010.

도 7은 I2C 통신을 하는 마스터가 동일한 주소를 가지는 슬레이브로 데이터를 읽기하는 과정을 도시한다.7 illustrates a process of reading data from a master having I2C communication to a slave having the same address.

도 7에 도시된 것처럼, 3개의 전자 가격 표시기(310)가 각각 1101, 1001, 1010을 동시에 송신한 경우 단말 장치(300)는 1000을 수신한다. 즉, 단말 장치(300)는 1101, 1001, 1010가 And 연산된 1000을 수신한다.As illustrated in FIG. 7, when three electronic price indicators 310 simultaneously transmit 1101, 1001, and 1010, the terminal device 300 receives 1000. That is, the terminal device 300 receives 1000 in which 1101, 1001, and 1010 are And calculated.

도 8은 단말 장치(300)의 중복주소 판단방법의 흐름도이다.8 is a flowchart illustrating a method of determining a duplicate address of the terminal device 300.

본 발명에 따른 중복주소 판단방법은 동일한 주소가 할당된 복수의 디바이스 중 어느 하나의 디바이스에 새로운 주소를 할당하는 과정을 반복하여, 모든 디바이스가 서로 상이한 주소를 갖도록 하는 중복주소 판단 및 갱신 방법에 관한 것이다.Duplicate address determination method according to the invention relates to a duplicate address determination and update method for all devices having a different address by repeating the process of allocating a new address to any one of a plurality of devices assigned the same address will be.

전술한 디바이스는 전자 가격 표시기(310)이고, 하나 이상 존재한다. 하나 이상의 전자 가격 표시기(310)가 단말 장치(300)와 통신하는데, 구체적으로는 I2C 프로토콜을 통해 통신한다. The device described above is an electronic price indicator 310, and one or more are present. One or more electronic price indicators 310 communicate with the terminal device 300, specifically, via an I2C protocol.

I2C 버스(132)로 지칭될 수 있는 집적회로간 시리얼 버스는 직렬 단일-종단 버스이다. I2C 버스(132)는 각각의 디바이스가 I2C 버스(132)상에서 송신되는 상이한 메시지들에 대한 마스터 및 슬레이브로서 작용할 수 있는 멀티-마스터 버스이다. An integrated circuit serial bus, which may be referred to as I2C bus 132, is a serial single-ended bus. I2C bus 132 is a multi-master bus where each device can act as a master and slave for different messages sent on I2C bus 132.

I2C 버스(132)는 시리얼 데이터 라인인 SDA 라인 및 시리얼 클록 라인인 SCL 라인을 포함하는, 2 개의 양방향 오픈 드레인 커넥터들만을 사용하여 데이터를 송신할 수 있다. 커넥터들은 통상적으로 풀업 저항들에 의해 종단되는 라인들을 포함한다. I2C 통신에 대한 다른 설명은 전술하였다.The I2C bus 132 may transmit data using only two bidirectional open drain connectors, including an SDA line that is a serial data line and an SCL line that is a serial clock line. Connectors typically include lines terminated by pullup resistors. Another description of I2C communication has been provided above.

도 8에 따른 중복주소 판단방법은 단말 장치(300)가 주체가 되어 수행되는 방법으로, 제1 주소와 유니크 아이디 요청 명령을 포함하는 신호를 송신하는 단계(S100); 유니크 아이디와 오류 검출 코드를 포함하는 신호를 수신하는 단계(S105); 상기 오류 검출코드를 이용하여 수신된 신호의 오류를 판단하는 단계(S106); 및 상기 수신된 신호가 오류인 경우 상기 제1 주소를 중복된 주소로 판단하는 단계를 포함한다.The method for determining a duplicate address according to FIG. 8 is a method in which the terminal device 300 is performed as a subject, transmitting a signal including a first address and a unique ID request command (S100); Receiving a signal including a unique ID and an error detection code (S105); Determining an error of a received signal by using the error detection code (S106); And determining the first address as a duplicate address when the received signal is an error.

제1 주소와 유니크 아이디 요청 명령을 포함하는 신호를 송신하는 단계(S100)에서, 단말 장치(300)는 전자 가격 표시기(310)로 제1 주소와 유니크 아이디 요청 명령을 포함하는 신호를 송신한다.In step S100 of transmitting a signal including a first address and a unique ID request command, the terminal device 300 transmits a signal including the first address and a unique ID request command to the electronic price indicator 310.

단말 장치(300)는 브로드캐스팅으로 제1 주소와 유니크 아이디 요청 명령을 포함하는 신호를 모든 전자 가격 표시기(310)로 송신한다. 즉, 단말 장치(300)는 브로드캐스팅으로 제1 주소와 유니크 아이디 요청 명령을 포함하는 신호를 모든 전자 가격 표시기(310)로 쓰기 한다. 모든 전자 가격 표시기(310)는 단말 장치(300)와 I2C 통신을 하는 전자 가격 표시기(310)다.The terminal device 300 transmits a signal including the first address and the unique ID request command to all the electronic price indicators 310 by broadcasting. That is, the terminal device 300 writes a signal including the first address and the unique ID request command to all the electronic price indicators 310 by broadcasting. All electronic price indicators 310 are electronic price indicators 310 which perform I2C communication with the terminal device 300.

제1 주소와 유니크 아이디 요청 명령을 포함하는 신호를 송신하는 단계(S100)는 하나의 주소에 둘 이상의 전자 가격 표시기(310)가 할당되어 있는지 여부를 확인하는 첫 단계이다.The transmitting of the signal including the first address and the unique ID request command (S100) is a first step of determining whether two or more electronic price indicators 310 are allocated to one address.

단말 장치(300)는 주소 테이블에 포함된 주소의 개수만큼 특정 주소와 유니크 아이디 요청 명령을 포함하는 신호를 생성하여 송신한다. 전자 가격 표시기(310)는 주소의 개수만큼 생성된 제1 주소와 유니크 아이디 요청 명령을 포함하는 신호를 수신한다. 여기서 제1 주소는 다수의 전자 가격 표시기(310)들 중 어느 하나의 전자 가격 표시기(310)의 주소이다.The terminal device 300 generates and transmits a signal including a specific address and a unique ID request command as many as the addresses included in the address table. The electronic price indicator 310 receives a signal including a first address generated by the number of addresses and a unique ID request command. Here, the first address is an address of one of the plurality of electronic price indicators 310.

유니크 아이디와 오류 검출 코드를 포함하는 신호를 수신하는 단계(S105)는, 상기 단말 장치(300)가 상기 제1 주소에 할당된 전자 가격 표시기(310)로부터 유니크 아이디와 오류 검출 코드를 포함하는 신호를 수신하는 단계이다.Receiving a signal including a unique ID and an error detection code (S105), the terminal device 300 includes a signal including a unique ID and an error detection code from the electronic price indicator 310 assigned to the first address. Receiving.

여기서 오류 검출 코드는 순환 중복 검사(CRC: Cyclic Redundancy Checking)값이다. 순환 중복 검사는 순환 중복 검사값을 전송할 때 전송된 데이터에 오류가 있는지를 확인하기 위한 체크값을 결정하는 방식이다.The error detection code is a cyclic redundancy check (CRC) value. The cyclic redundancy check is a method of determining a check value for checking whether there is an error in the transmitted data when transmitting the cyclic redundancy check.

상기 오류 검출코드를 이용하여 수신된 신호의 오류를 판단하는 단계(S106)는, 단말 장치(300)가 전자 가격 표시기(310)로부터 수신된 신호의 오류를 판단하는 단계이다.Determining an error of the received signal using the error detection code (S106) is a step in which the terminal device 300 determines an error of the signal received from the electronic price display 310.

동일한 유니크 아이디를 기초로 계산된 순환 중복 검사 값은 동일하다. 즉, 전자 가격 표시기(310)가 유니크 아아디를 기초로 계산한 순환 중복 검사 값은 단말 장치(300)가 동일한 유니크 아이디를 기초로 계산한 순환 중복 검사 값과 동일하다.The cyclic redundancy check value calculated based on the same unique ID is the same. That is, the cyclic redundancy check value calculated by the electronic price indicator 310 based on the unique ID is the same as the cyclic redundancy check value calculated by the terminal device 300 based on the same unique ID.

만약 하나의 주소에 둘 이상의 전자 가격 표시기(310)가 할당되어 있다면, 상기 하나의 주소를 포함하는 유니크 아이디 요청 명령을 수신한 둘 이상의 전자 가격 표시기(310)들이 유니크 아이디와 오류 검출 코드를 포함하는 신호를 동시에 송신하게 된다.If two or more electronic price indicators 310 are assigned to one address, the two or more electronic price indicators 310 receiving the unique ID request command including the one address may include a unique ID and an error detection code. The signal will be sent at the same time.

상기 오류 검출코드를 이용하여 수신된 신호의 오류를 판단하는 단계(S106)는, 단말 장치(300)가 산출한 유니크 아이디에 대한 오류 검출코드 및 상기 유니크 아이디를 가지는 전자 가격 표시기(310)로부터 수신한 오류 검출코드를 비교하여 일치 여부를 판단하는 단계이다. 일치하지 않으면 오류라고 판단한다.Determining an error of the received signal by using the error detection code (S106), the error detection code for the unique ID calculated by the terminal device 300 and received from the electronic price display 310 having the unique ID In this step, the error detection codes are compared to determine whether they match. If it does not match, it is determined to be an error.

상기 수신된 신호가 오류인 경우 상기 제1 주소를 중복된 주소로 판단하는 단계는, 단말 장치(300)가 산출한 유니크 아이디에 대한 오류 검출코드 및 상기 유니크 아이디를 가지는 전자 가격 표시기(310)로부터 수신한 오류 검출코드가 일치하지 않아 오류이므로, 상기 제1 주소에 두개 이상의 전자 가격 표시기(310)가 할당되어 있다고 판단하는 단계이다.The determining of the first address as a duplicate address when the received signal is an error may include determining an error detection code for the unique ID calculated by the terminal device 300 and an electronic price indicator 310 having the unique ID. Since the received error detection code does not match and is an error, it is determined that two or more electronic price indicators 310 are allocated to the first address.

이러한 판단은 모든 주소들에 대해 이루어진다. 하나의 주소에 둘 이상의 전자 가격 표시기(310)가 할당된 것으로 판단되는 경우, 단말 장치(300)는 상기 주소 테이블에서 상기 주소의 상태를 2로 갱신한다. 주소의 상태가 2라는 것은 상기 주소에 둘 이상의 전자 가격 표시기(310)가 할당되었다는 의미이다.This determination is made for all addresses. When it is determined that two or more electronic price indicators 310 are assigned to one address, the terminal device 300 updates the state of the address to 2 in the address table. An status of an address of 2 means that more than one electronic price indicator 310 has been assigned to the address.

하나의 주소에 둘 이상의 전자 가격 표시기(310)가 할당 되어 있다고 판단되면, 단말장치는 후술할 상기 제1 주소와 주소할당 시작 명령을 포함하는 신호를 송신하는 단계(S120); 상기 마스터 모드에서 슬래이브 모드로 변경하는 단계(S130); 상기 유니크 아이디와 주소 요청명령을 포함하는 신호를 수신하는 단계(S140); 및 상기 슬래이브 모드에서 상기 마스터 모드로 변경하는 단계(S150);를 수행한다.If it is determined that two or more electronic price indicators 310 are assigned to one address, the terminal apparatus transmits a signal including the first address and an address allocation start command to be described later (S120); Changing from the master mode to the slave mode (S130); Receiving a signal including the unique ID and an address request command (S140); And changing from the slave mode to the master mode (S150).

모든 주소들에 대하여, 하나의 주소에 하나의 전자 가격 표시기(310)만이 할당되어 있는 경우 중복주소 판단방법은 종료된다.For all addresses, if only one electronic price indicator 310 is assigned to one address, the duplicate address determination method is terminated.

둘 이상의 전자 가격 표시기(310)가 동일한 SDA 라인을 통해 둘 이상의 전자 가격 표시기(310) 각각이 생성한 유니크 아이디와 오류 검출 코드를 포함하는 신호를 단말 장치(300)로 송신하는 경우, 둘 이상의 전자 가격 표시기(310) 각각이 생성한 유니크 아이디와 오류 검출 코드를 포함하는 신호가 비트 연산이 돼서 단말 장치(300)로 전송된다. When two or more electronic price indicators 310 transmit a signal to the terminal device 300 including a unique ID and an error detection code generated by each of the two or more electronic price indicators 310 through the same SDA line, the two or more electronics A signal including a unique ID and an error detection code generated by each of the price indicators 310 becomes a bit operation and is transmitted to the terminal device 300.

비트 연산 중 AND 연산이 수행되는데, AND 연산은 둘 이상의 유니크 아이디와 오류 검출 코드를 포함하는 신호의 각 자릿수를 비교해, 각 자리수 모두에 1이 있을 때에는 1, 나머지 경우에는 0으로 연산한다. An AND operation is performed among bit operations. The AND operation compares two digits of a signal including two or more unique IDs and an error detection code, and calculates 1 when all the digits have 1 and 0 otherwise.

AND 연산된 결과는 단말 장치(300)로 전송된다. 단말 장치(300)가 비트 연산된 유니크 아이디와 오류 검출 코드를 포함하는 신호를 수신한 경우, 자신이 계산한 오류 검출 코드와 다르기 때문에, 그 주소에 둘 이상의 전자 가격 표시기(310)가 할당되었다고 판단한다.The ANDed result is transmitted to the terminal device 300. When the terminal device 300 receives a signal including a bit-operated unique ID and an error detection code, the terminal device 300 determines that two or more electronic price indicators 310 are assigned to the address because the terminal device 300 is different from the error detection code calculated by the terminal device 300. do.

단말 장치(300)가 복수의 전자 가격 표시기(310)로부터 비트 연산된 데이터를 수신하는 과정은 도 7에서 설명하였다.A process of the terminal device 300 receiving bit-operated data from the plurality of electronic price indicators 310 is described with reference to FIG. 7.

단말 장치(300)는 비트 연산된 유니크 아이디와 오류 검출 코드를 포함하는 신호를 수신하고, 상기 비트 연산된 오류 검출 코드와 자신이 유니크 아이디에 기초하여 계산한 오류 검출 코드를 비교한다. The terminal device 300 receives a signal including a bit-operated unique ID and an error detection code, and compares the bit-operated error detection code with an error detection code calculated based on the unique ID.

비교 결과 2개의 오류 검출 코드가 서로 다른 경우, 상기 주소에는 둘 이상의 전자 가격 표시기(310)가 할당되어 있다고 판단한다.When the two error detection codes are different as a result of the comparison, it is determined that two or more electronic price indicators 310 are assigned to the address.

본 발명의 중복주소 판단방법은, 상기 단말 장치(300)는 마스터 모드로 동작하고, 상기 제1 주소와 주소할당 시작 명령을 포함하는 신호를 송신하는 단계(S120); 상기 마스터 모드에서 슬래이브 모드로 변경하는 단계(S130); 상기 유니크 아이디와 주소 요청명령을 포함하는 신호를 수신하는 단계(S140); 상기 슬래이브 모드에서 상기 마스터 모드로 변경하는 단계(S150); 및 상기 유니크 아이디 및 제2 주소가 포함된 신호를 송신하는 단계를 더 포함할 수 있다.Duplicate address determination method of the present invention, the terminal device 300 operates in the master mode, and transmitting a signal including the first address and the address allocation start command (S120); Changing from the master mode to the slave mode (S130); Receiving a signal including the unique ID and an address request command (S140); Changing from the slave mode to the master mode (S150); And transmitting a signal including the unique ID and the second address.

상기 제2 주소는 상기 제1 주소와 다른 값을 포함할 수 있다.The second address may include a value different from the first address.

상기 단말 장치(300)는 마스터 모드로 동작하고, 상기 제1 주소와 주소할당 시작 명령을 포함하는 신호를 송신하는 단계(S120)는, 하나의 주소에 할당된 전자 가격 표시기(310)가 복수개인 경우를 전제로, 전술한 상기 수신된 신호가 오류인 경우 상기 제1 주소를 중복된 주소로 판단하는 단계(S110) 이후에 수행된다.The terminal device 300 operates in a master mode, and in step S120 of transmitting a signal including the first address and an address allocation start command, a plurality of electronic price indicators 310 allocated to one address are provided. On the premise of the case, if the above-mentioned received signal is an error, it is performed after the step (S110) of determining the first address as a duplicate address.

상기 제1 주소와 주소할당 시작 명령을 포함하는 신호를 송신하는 단계(S120)는, 하나의 주소에 두개 이상의 전자 가격 표시기(310)가 할당되어 있는 경우를 전제로 한다. 이러한 전제를 기초로, 단말 장치(300)는 하나의 주소에 단 하나의 전자 가격 표시기(310)만 할당될 수 있도록 제1 주소와 주소할당 시작 명령을 포함하는 신호를 모든 전자 가격 표시기(310)들로 송신한다.The step S120 of transmitting the signal including the first address and the address allocation start command is based on the premise that two or more electronic price indicators 310 are allocated to one address. Based on this premise, the terminal device 300 outputs a signal including a first address and an address assignment start command to all electronic price indicators 310 so that only one electronic price indicator 310 can be assigned to one address. To the network.

단말 장치(300)가 송신하는 제1 주소와 주소할당 시작 명령을 포함하는 신호에 포함된 주소는 두개 이상의 전자 가격 표시기(310)가 할당되어 있는 주소이다. 단말 장치(300)는 주소 테이블을 관리하고, 이 주소 테이블은 주소, 주소의 상태, 해당 주소를 가지는 전자 가격 표시기(310)의 유니크 아이디(Unique ID)를 포함한다. 주소의 상태는 해당 주소에 몇 개의 전자 가격 표시기(310)가 할당되어 있는지를 보여준다. 단말 장치(300)는 상기 주소 테이블을 통해 두개 이상의 전자 가격 표시기(310)가 할당된 주소를 추출하여, 두개 이상의 전자 가격 표시기(310)가 할당된 제1 주소와 주소할당 시작 명령을 포함하는 신호를 생성하여 모든 전자 가격 표시기(310)들로 송신한다.The address included in the signal including the first address transmitted by the terminal device 300 and the address allocation start command is an address to which two or more electronic price indicators 310 are assigned. The terminal device 300 manages an address table, which includes an address, a state of an address, and a unique ID of the electronic price display 310 having the address. The status of an address shows how many electronic price indicators 310 are assigned to that address. The terminal device 300 extracts an address to which two or more electronic price indicators 310 are allocated through the address table, and includes a signal including a first address to which two or more electronic price indicators 310 are allocated and an address allocation start command. Generate and transmit to all electronic price indicators 310.

단말 장치(300)는 모든 전자 가격 표시기(310)들로 제1 주소와 주소할당 시작 명령을 포함하는 신호를 송신하지만, 상기 제1 주소를 가지는 전자 가격 표시기(310)만이 후술할 유니크 아이디와 주소 요청명령을 포함하는 신호를 생성한다.  The terminal device 300 transmits a signal including a first address and an address allocation start command to all the electronic price indicators 310, but only the electronic price indicator 310 having the first address has a unique ID and address which will be described later. Create a signal containing a request command.

상기 마스터 모드에서 슬래이브 모드로 변경하는 단계(S130)는, 제1 주소와 주소할당 시작 명령을 포함하는 신호를 송신하는 단계(S120) 이후에 단말 장치(300)가 마스터 모드에서 슬레이브 모드로 변경하는 단계이다.In the changing from the master mode to the slave mode (S130), after the step (S120) of transmitting a signal including a first address and an address assignment start command, the terminal device 300 changes from the master mode to the slave mode. It's a step.

상기 유니크 아이디와 주소 요청명령을 포함하는 신호를 수신하는 단계(S140)는, 슬레이브 모드로 변경된 단말 장치(300)가 전자 가격 표시기(310)로부터 유니크 아이디와 주소 요청명령을 포함하는 신호를 수신하는 단계이다.Receiving the signal including the unique ID and the address request command (S140), the terminal device 300 changed to the slave mode receives a signal including the unique ID and the address request command from the electronic price display 310 Step.

단말 장치(300)는 제 1 주소에 할당된 둘 이상의 전자 가격 표시기(310)들 중 어느 하나의 전자 가격 표시기(310)로부터 유니크 아이디와 주소 요청명령을 포함하는 신호를 수신한다.The terminal device 300 receives a signal including a unique ID and an address request command from any one of the two or more electronic price indicators 310 assigned to the first address.

모든 전자 가격 표시기(310)들이 전술한 제1 주소와 주소할당 시작 명령을 포함하는 신호를 단말 장치(300)로부터 수신하지만, 제1 주소를 가지는 전자 가격 표시기(310)들만 유니크 아이디와 주소 요청명령을 포함하는 신호를 생성한다.Although all the electronic price indicators 310 receive a signal from the terminal device 300 including the above-described first address and address allocation start command, only the electronic price indicators 310 having the first address are unique ID and address request commands. Generate a signal comprising a.

전술한 제1 주소와 주소할당 시작 명령을 포함하는 신호에 포함된 제1 주소를 가지는 전자 가격 표시기(310)들은 제1 주소와 주소할당 시작 명령을 포함하는 신호를 수신한 후에 마스터 모드로 전환된다. 전자 가격 표시기(310)가 마스터 모드로 전환된다는 것은 단말 장치(300)처럼 다른 장치로 특정 정보를 요청할 수 있음을 의미한다. The electronic price indicators 310 having the first address and the first address included in the signal including the address allocation start command are switched to the master mode after receiving the signal including the first address and the address allocation start command. . When the electronic price indicator 310 is switched to the master mode, it means that specific information may be requested to another device, such as the terminal device 300.

즉, 마스터 모드로 전환된 전자 가격 표시기(310)는 유니크 아이디와 주소 요청명령을 포함하는 신호와 같은 요청 명령을 임의의 장치, 예를 들어 단말 장치(300) 또는 다른 전자 가격 표시기(310)로 송신할 수 있다.That is, the electronic price indicator 310 switched to the master mode sends a request command, such as a signal including a unique ID and an address request command, to any device, for example, the terminal device 300 or another electronic price indicator 310. I can send it.

상기 둘 이상의 전자 가격 표시기(310)는 제1 주소와 주소할당 시작 명령을 포함하는 신호에 포함된 제1 주소를 가지는 전자 가격 표시기(310)들이다. The two or more electronic price indicators 310 are electronic price indicators 310 having a first address and a first address included in a signal including an address allocation start command.

둘 이상의 전자 가격 표시기(310)는 동일한 데이터 라인을 통해 둘 이상의 전자 가격 표시기(310) 각각이 생성한 유니크 아이디와 주소 요청명령을 포함하는 신호를 단말 장치(300)로 송신한다. 둘 이상의 전자 가격 표시기(310) 각각이 생성한 유니크 아이디와 주소 요청명령을 포함하는 신호는 비트 연산이 돼서 단말 장치(300)로 전송된다. 비트 연산 중 AND 연산이 수행되는데, AND 연산은 둘 이상의 유니크 아이디와 주소 요청명령을 포함하는 신호의 각 자릿수를 비교해, 각 자리수 모두에 1이 있을 때에는 1, 나머지 경우에는 0으로 연산한다. AND 연산된 결과는 단말 장치(300)로 전송된다.The two or more electronic price indicators 310 transmit a signal including a unique ID and an address request command generated by each of the two or more electronic price indicators 310 to the terminal device 300 through the same data line. A signal including a unique ID and an address request command generated by each of the two or more electronic price indicators 310 is a bit operation and is transmitted to the terminal device 300. An AND operation is performed among bit operations. The AND operation compares two digits of a signal including two or more unique IDs and an address request command, and calculates 1 when all the digits have 1 and 0 otherwise. The ANDed result is transmitted to the terminal device 300.

이때 상기 둘 이상의 전자 가격 표시기(310) 중 어느 하나의 전자 가격 표시기(310)가 1을 송신할 때 데이터 라인이 0인 경우 상기 어느 하나의 전자 가격 표시기(310)는 송신을 중단한다. 어느 하나의 전자 가격 표시기(310)가 1을 송신할 때 데이터 라인이 0이라는 것은 다른 또 하나의 전자 가격 표시기(310)가 상기 데이터 라인으로 0을 송신했음을 의미한다.In this case, when any one of the two or more electronic price indicators 310 transmits 1, when the data line is 0, the one electronic price indicator 310 stops transmitting. The data line being zero when one electronic price indicator 310 transmits 1 means that another electronic price indicator 310 has transmitted 0 to the data line.

상기 둘 이상의 전자 가격 표시기(310) 중 어느 하나의 전자 가격 표시기(310)가 예를 들어 n 비트인 유니크 아이디와 주소 요청명령을 포함하는 신호를 송신할 때 다른 하나 이상의 전자 가격 표시기(310)도 n 비트인 유니크 아이디와 주소 요청명령을 포함하는 신호를 송신한다. When one of the two or more electronic price indicators 310 transmits a signal including a unique ID and an address request command, for example, n bits, the other one or more electronic price indicators 310 may also be used. Sends a signal containing a unique ID with n bits and an address request command.

상기 둘 이상의 전자 가격 표시기(310)가 n 비트의 유니크 아이디와 주소 요청명령을 포함하는 신호를 각 비트별로 순차적으로 동일한 데이터 라인을 통해 송신하는 과정에서, 어느 하나의 전자 가격 표시기(310)가 1을 송신할 때 데이터 라인이 0인 경우 상기 어느 하나의 전자 가격 표시기(310)는 상기 1 다음 비트를 송신하지 않고 송신을 중단한다.In the process of the two or more electronic price indicator 310 transmits a signal including a unique ID of n bits and an address request command sequentially through the same data line for each bit, any one electronic price indicator 310 is 1 If the data line is 0 when transmitting, the one electronic price indicator 310 stops transmitting without transmitting the first next bit.

유니크 아이디와 주소 요청명령을 포함하는 신호는 단말 장치(300)의 주소, 읽기 또는 쓰기를 의미하는 정보, 명령을 의미하는 정보 및 전자 가격 표시기(310)의 유니크 아이디를 포함한다. 상기 둘 이상의 전자 가격 표시기(310)는 같은 단말 장치(300)로 자신의 유니크 아이디를 포함하는 유니크 아이디와 주소 요청명령을 포함하는 신호를 전달하면서 새로운 주소를 요청한다. The signal including the unique ID and the address request command includes an address of the terminal device 300, information indicating a reading or writing, information indicating a command, and a unique ID of the electronic price display 310. The two or more electronic price indicators 310 request a new address while transmitting a signal including a unique ID and an address request command to the same terminal device 300.

결국, 상기 둘 이상의 전자 가격 표시기(310)가 각각 생성한 '유니크 아이디와 주소 요청명령을 포함하는 신호'는 단말 장치(300)의 주소, 쓰기를 의미하는 정보, 명령을 의미하는 정보를 동일하게 포함하지만, 각 전자 가격 표시기 자신의 유니크 아이디를 포함하기 때문에 유니크 아이디 정보는 상이하다.As a result, the signal including the unique ID and the address request command generated by each of the two or more electronic price indicators 310 is the same as the address of the terminal device 300, information indicating writing, and information indicating command. The unique ID information is different because each electronic price indicator includes its own unique ID.

상기 둘 이상의 전자 가격 표시기(310)가 생성한 유니크 아이디와 주소 요청명령을 포함하는 신호는 유니크 아이디만 상이하기 때문에, 자신의 유니크 아이디에 기초하여 1을 더 늦게 출력하는 전자 가격 표시기(310)는 송신을 중단하지 않게 된다. 전자 가격 표시기(310)는 유니크 아이디의 각 비트를 첫번째 자리수부터 마지막 자리수까지 순차적으로 전송하기 때문에, 1을 더 후순위의 자리수에 포함하는 전자 가격 표시기(310)가 송신을 중단하지 않게 된다.Since the signals including the unique ID and the address request command generated by the two or more electronic price indicators 310 differ only in the unique IDs, the electronic price indicator 310 outputting 1 later based on the unique IDs of the electronic price indicators 310 may be used. The transmission will not be interrupted. Since the electronic price indicator 310 sequentially transmits each bit of the unique ID from the first digit to the last digit, the electronic price indicator 310 including one more in the lower digit does not stop transmission.

반대로 1을 더 선순위의 자리수에 포함하는 유니크 아이디를 가지는 전자 가격 표시기(310)는 1을 전송할 때, 다른 전자 가격 표시기(310)가 0을 전송함에 따라 데이터 라인이 0 이기 때문에, 전송을 중단한다.On the contrary, when the electronic price indicator 310 having a unique ID including 1 in the higher order digits transmits 1, since the data line is 0 as another electronic price indicator 310 transmits 0, the transmission stops. .

결국, 같은 주소를 가지는 복수의 전자 가격 표시기(310) 중 단 하나의 전자 가격 표시기(310)만이 단말 장치(300)로 유니크 아이디와 주소 요청명령을 포함하는 신호가 포함하는 각 비트를 처음부터 끝까지 송신하게 된다.As a result, only one electronic price indicator 310 of the plurality of electronic price indicators 310 having the same address is transmitted to the terminal device 300 from the beginning to the end of each bit included in a signal including a unique ID and an address request command. Will be sent.

단말 장치(300)를 기준으로 설명하면, 단말 장치(300)는 단 하나의 전자 가격 표시기(310)로부터 유니크 아이디와 주소 요청명령을 포함하는 신호를 수신한다.Referring to the terminal device 300, the terminal device 300 receives a signal including a unique ID and an address request command from a single electronic price indicator 310.

상기 슬래이브 모드에서 상기 마스터 모드로 변경하는 단계(S150)는, 단말 장치(300)가 유니크 아이디와 주소 요청명령을 포함하는 신호를 수신하는 단계(S140) 이후에 슬래이브 모드에서 마스터 모드로 변경하는 단계이다.In the step S150 of changing from the slave mode to the master mode, the terminal device 300 changes from the slave mode to the master mode after receiving a signal including a unique ID and an address request command (S140). It's a step.

상기 유니크 아이디 및 제2 주소가 포함된 신호를 송신하는 단계는, 단말 장치(300)가 유니크 아이디 및 제2 주소가 포함된 신호를 전자 가격 표시기(310)로 송신하는 단계이다.The transmitting of the signal including the unique ID and the second address is a step in which the terminal device 300 transmits a signal including the unique ID and the second address to the electronic price display 310.

상기 유니크 아이디 및 제2 주소가 포함된 신호를 수신하는 전자 가격 표시기(310)는 단말 장치(300)와 통신하는 모든 전자 가격 표시기(310)다. 단말 장치(300)는 브로드캐스팅으로 유니크 아이디 및 제2 주소가 포함된 신호를 송신하고, 모든 전자 가격 표시기(310)들은 유니크 아이디 및 제2 주소가 포함된 신호를 수신한다.The electronic price indicator 310 that receives the signal including the unique ID and the second address is all electronic price indicators 310 communicating with the terminal device 300. The terminal device 300 transmits a signal including the unique ID and the second address through broadcasting, and all the electronic price indicators 310 receive the signal including the unique ID and the second address.

상기 유니크 아이디는 상기 둘 이상의 전자 가격 표시기(310) 중 송신을 중단하지 않고 유니크 아이디와 주소 요청명령을 포함하는 신호를 송신한 전자 가격 표시기(310)의 유니크 아이디이다. 즉, 상기 전자 가격 표시기(310)는 전술한 제1 주소와 주소할당 시작 명령을 포함하는 신호에 포함된 주소를 가지는 전자 가격 표시기(310) 중 생성한 유니크 아이디와 주소 요청명령을 포함하는 신호에서 1을 더 후순위의 자리수에 포함하는 전자 가격 표시기(310)다.The unique ID is a unique ID of the electronic price indicator 310 that transmits a signal including a unique ID and an address request command without stopping transmission of the two or more electronic price indicators 310. That is, the electronic price indicator 310 in the signal including the unique ID and the address request command generated from the electronic price indicator 310 having the address included in the signal including the first address and the address allocation start command described above. It is an electronic price indicator 310 that includes one more in the rank of the subordinated order.

단말 장치(300)가 생성한 유니크 아이디 및 제2 주소가 포함된 신호는 상기 단 하나의 전자 가격 표시기(310)의 주소 및 유니크 아이디뿐만 아니라 상기 단 하나의 전자 가격 표시기(310)가 갱신할 새주소인 제 2 주소도 포함한다. 제 2 주소는 전술한 주소 테이블에 포함된 주소 중의 하나로 전자 가격 표시기(310)가 하나도 할당되지 않은 주소이다.The signal including the unique ID and the second address generated by the terminal device 300 may be updated by the single electronic price indicator 310 as well as the address and unique ID of the single electronic price indicator 310. It also includes a second address, which is an address. The second address is one of the addresses included in the above-described address table, and is an address to which no electronic price indicator 310 is assigned.

즉, 제2 주소는 상기 제1 주소와 다른 값을 포함한다.That is, the second address includes a value different from the first address.

단말 장치(300)는 상기 전자 가격 표시기(310)가 하나도 할당되지 않은 주소가 복수개인 경우 비트값이 가장 작은 주소를 새주소로 결정할 수 있다.단말 장치(300)와 통신하는, 구체적으로 I2C통신하는, 모든 전자 가격 표시기(310)들이 '유니크 아이디 및 제2 주소가 포함된 신호'를 수신하지만, 수신한 유니크 아이디와 동일한 유니크 아이디를 갖는 단 하나의 전자 가격 표시기(310)만이 자신의 주소를 상기 '유니크 아이디 및 제2 주소가 포함된 신호'에 포함되어 있는 제2 주소로 갱신한다. When there are a plurality of addresses to which the electronic price indicator 310 is not assigned, the terminal device 300 may determine an address having the smallest bit value as a new address. Specifically, I2C communication, which communicates with the terminal device 300, is performed. All electronic price indicators 310 receive a 'signal containing a unique ID and a second address', but only one electronic price indicator 310 having the same unique ID as the received unique ID receives its address. The second address included in the 'signal including the unique ID and the second address' is updated.

각 전자 가격 표시기(310)는 '유니크 아이디 및 제2 주소가 포함된 신호'에 포함된 유니크 아이디가 자신의 유니크 아이디가 아닌 경우 그 신호를 무시한다.전술한 제1 주소와 주소할당 시작 명령을 포함하는 신호를 송신하는 단계(S120) 내지 유니크 아이디 및 제2 주소가 포함된 신호를 송신하는 단계를 통해 하나의 주소에 할당된 둘 이상의 전자 가격 표시기(310) 중 하나는 자신의 주소를 새로운 주소로 갱신하여 주소 중복의 문제를 해결하게 된다.Each electronic price indicator 310 ignores the signal when the unique ID included in the 'signal including the unique ID and the second address' is not its own unique ID. One of the two or more electronic price indicators 310 assigned to one address through the step of transmitting the signal containing the signal (S120) to transmitting the signal including the unique ID and the second address, the own address of the new address; To solve the problem of address duplication.

도 9는 주소 갱신 방법의 흐름도이다. 도 9에 따른 주소 갱신 방법은 전자 가격 표시기(310)를 주체로 한 것이다.9 is a flowchart of an address update method. The method of updating an address according to FIG. 9 mainly uses the electronic price indicator 310.

제1 주소와 유니크 아이디를 포함하는 슬레이브 모드인 전자가격 표시기의 주소 갱신 방법은, 상기 제1 주소와 주소할당 시작 명령을 포함하는 신호를 수신하는 단계(S200); 상기 슬레이브 모드에서 마스터 모드로 변경하는 단계(S205); 상기 유니크 아이디와 주소 요청명령을 포함하는 신호를 송신하는 단계(S210); 상기 마스터 모드에서 상기 슬레이브 모드로 변경하는 단계(S220); 및 상기 유니크 아이디 및 제2 주소가 포함된 신호를 수신하여 상기 제1 주소를 상기 제2 주소로 변경하는 단계를 포함한다.An address updating method of an electronic price indicator in a slave mode including a first address and a unique ID includes: receiving a signal including the first address and an address allocation start command (S200); Changing from the slave mode to the master mode (S205); Transmitting a signal including the unique ID and an address request command (S210); Changing from the master mode to the slave mode (S220); And receiving the signal including the unique ID and the second address and changing the first address to the second address.

상기 제1 주소와 주소할당 시작 명령을 포함하는 신호를 수신하는 단계(S200)는 하나의 주소에 두개 이상의 전자 가격 표시기(310)가 할당되어 있는 경우를 전제로 한다. 이러한 전제를 기초로, 단말 장치(300)는 하나의 주소에 단 하나의 전자 가격 표시기(310)만 할당될 수 있도록 제1 주소와 주소할당 시작 명령을 포함하는 신호를 모든 전자 가격 표시기(310)들로 송신한다.Receiving a signal including the first address and the address allocation start command (S200) is based on the premise that two or more electronic price indicators 310 are allocated to one address. Based on this premise, the terminal device 300 outputs a signal including a first address and an address assignment start command to all electronic price indicators 310 so that only one electronic price indicator 310 can be assigned to one address. To the network.

각 전자 가격 표시기(310)가 수신하는, 제1 주소와 주소할당 시작 명령을 포함하는 신호에 포함된 주소는 두개 이상의 전자 가격 표시기(310)가 할당되어 있는 주소이다. 단말 장치(300)는 주소 테이블을 관리하고, 이 주소 테이블은 주소, 주소의 상태, 해당 주소를 가지는 전자 가격 표시기(310)의 유니크 아이디(Unique ID)를 포함한다. 주소의 상태는 해당 주소에 몇 개의 전자 가격 표시기(310)가 할당되어 있는지를 보여준다. 단말 장치(300)는 상기 주소 테이블을 통해 두개 이상의 전자 가격 표시기(310)가 할당된 주소를 추출하여, 두개 이상의 전자 가격 표시기(310)가 할당된 제1 주소와 주소할당 시작 명령을 포함하는 신호를 생성하여 모든 전자 가격 표시기(310)들로 송신한다.The address included in the signal that each electronic price indicator 310 receives, including the first address and the address assignment start command, is an address to which two or more electronic price indicators 310 are assigned. The terminal device 300 manages an address table, which includes an address, a state of an address, and a unique ID of the electronic price display 310 having the address. The status of an address shows how many electronic price indicators 310 are assigned to that address. The terminal device 300 extracts an address to which two or more electronic price indicators 310 are allocated through the address table, and includes a signal including a first address to which two or more electronic price indicators 310 are allocated and an address allocation start command. Generate and transmit to all electronic price indicators 310.

단말 장치(300)는 모든 전자 가격 표시기(310)들로 제1 주소와 주소할당 시작 명령을 포함하는 신호를 송신하지만, 상기 제1 주소를 가지는 전자 가격 표시기(310)들만이 후술할 유니크 아이디와 주소 요청명령을 포함하는 신호를 생성한다.  The terminal device 300 transmits a signal including a first address and an address allocation start command to all the electronic price indicators 310, but only the electronic price indicators 310 having the first address and the unique ID to be described later. Generates a signal containing an address request command.

상기 슬레이브 모드에서 마스터 모드로 변경하는 단계(S205)는, 제1 주소와 주소할당 시작 명령을 포함하는 신호를 수신하는 단계(S200) 이후에 전자 가격 표시기(310)가 슬레이브 모드에서 마스터 모드로 변경하는 단계이다.In the step S205 of changing from the slave mode to the master mode, the electronic price indicator 310 changes from the slave mode to the master mode after receiving a signal including a first address and an address assignment start command (S200). It's a step.

마스터 모드로 변경된 전자 가격 표시기(310)는 이후 상기 유니크 아이디와 주소 요청명령을 포함하는 신호를 송신하는 단계(S210)에서 단말 장치(300)로 유니크 아이디와 주소 요청명령을 포함하는 신호를 송신한다.The electronic price indicator 310 changed to the master mode then transmits a signal including the unique ID and the address request command to the terminal device 300 in step S210 of transmitting a signal including the unique ID and the address request command. .

제 1 주소에 할당된 전자 가격 표시기(310)들은 유니크 아이디와 주소 요청명령을 포함하는 신호를 송신한다.The electronic price indicators 310 assigned to the first address transmit a signal including a unique ID and an address request command.

모든 전자 가격 표시기(310)들이 단말 장치(300)로부터 전술한 제1 주소와 주소할당 시작 명령을 포함하는 신호를 수신하지만, 제1 주소를 가지는 전자 가격 표시기(310)들만이 유니크 아이디와 주소 요청명령을 포함하는 신호를 생성하여 송신한다.Although all the electronic price indicators 310 receive a signal from the terminal device 300 including the above-described first address and address assignment start command, only the electronic price indicators 310 having the first address request a unique ID and address. Generate and send a signal containing the command.

상기 제1 주소와 주소할당 시작 명령을 포함하는 신호에 포함된 제1 주소를 가지는 전자 가격 표시기(310)들은 제1 주소와 주소할당 시작 명령을 포함하는 신호를 수신한 후에 마스터 모드로 전환된다. 전자 가격 표시기(310)가 마스터 모드로 전환된다는 것은 단말 장치(300)처럼 다른 장치로 특정 정보를 요청할 수 있음을 의미한다. The electronic price indicators 310 having the first address and the first address included in the signal including the address allocation start command are switched to the master mode after receiving the signal including the first address and the address allocation start command. When the electronic price indicator 310 is switched to the master mode, it means that specific information may be requested to another device, such as the terminal device 300.

즉, 마스터 모드로 전환된 전자 가격 표시기(310)는 유니크 아이디와 주소 요청명령을 포함하는 신호와 같은 요청 명령을 임의의 장치, 예를 들어 단말 장치(300) 또는 다른 전자 가격 표시기(310)로 송신할 수 있다.That is, the electronic price indicator 310 switched to the master mode sends a request command, such as a signal including a unique ID and an address request command, to any device, for example, the terminal device 300 or another electronic price indicator 310. I can send it.

상기 둘 이상의 전자 가격 표시기(310)는 제1 주소와 주소할당 시작 명령을 포함하는 신호에 포함된 제1 주소를 가지는 전자 가격 표시기(310)들이다. The two or more electronic price indicators 310 are electronic price indicators 310 having a first address and a first address included in a signal including an address allocation start command.

둘 이상의 전자 가격 표시기(310)는 동일한 데이터 라인을 통해 둘 이상의 전자 가격 표시기(310) 각각이 생성한 유니크 아이디와 주소 요청명령을 포함하는 신호를 단말 장치(300)로 송신한다. 둘 이상의 전자 가격 표시기(310) 각각이 생성한 유니크 아이디와 주소 요청명령을 포함하는 신호는 비트 연산이 돼서 단말 장치(300)로 전송된다. 비트 연산 중 AND 연산이 수행되는데, AND 연산은 둘 이상의 유니크 아이디와 주소 요청명령을 포함하는 신호의 각 자릿수를 비교해, 각 자리수 모두에 1이 있을 때에는 1, 나머지 경우에는 0으로 연산한다. AND 연산된 결과는 단말 장치(300)로 전송된다.The two or more electronic price indicators 310 transmit a signal including a unique ID and an address request command generated by each of the two or more electronic price indicators 310 to the terminal device 300 through the same data line. A signal including a unique ID and an address request command generated by each of the two or more electronic price indicators 310 is a bit operation and is transmitted to the terminal device 300. An AND operation is performed among bit operations. The AND operation compares two digits of a signal including two or more unique IDs and an address request command, and calculates 1 when all the digits have 1 and 0 otherwise. The ANDed result is transmitted to the terminal device 300.

이때 상기 둘 이상의 전자 가격 표시기(310) 중 어느 하나의 전자 가격 표시기(310)가 1을 송신할 때 데이터 라인이 0인 경우 상기 어느 하나의 전자 가격 표시기(310)는 송신을 중단한다. 어느 하나의 전자 가격 표시기(310)가 1을 송신할 때 데이터 라인이 0이라는 것은 다른 하나의 전자 가격 표시기(310)가 상기 데이터 라인으로 0을 송신했음을 의미한다.In this case, when any one of the two or more electronic price indicators 310 transmits 1, when the data line is 0, the one electronic price indicator 310 stops transmitting. The data line being zero when one electronic price indicator 310 transmits 1 means that the other electronic price indicator 310 has transmitted 0 to the data line.

상기 둘 이상의 전자 가격 표시기(310) 중 어느 하나의 전자 가격 표시기(310)가 예를 들어 n 비트인 유니크 아이디와 주소 요청명령을 포함하는 신호를 송신할 때 다른 하나 이상의 전자 가격 표시기(310)도 n 비트인 유니크 아이디와 주소 요청명령을 포함하는 신호를 송신한다. When one of the two or more electronic price indicators 310 transmits a signal including a unique ID and an address request command, for example, n bits, the other one or more electronic price indicators 310 may also be used. Sends a signal containing a unique ID with n bits and an address request command.

상기 둘 이상의 전자 가격 표시기(310)가 n 비트의 유니크 아이디와 주소 요청명령을 포함하는 신호를 각 비트별로 순차적으로 동일한 데이터 라인을 통해 송신하는 과정에서, 어느 하나의 전자 가격 표시기(310)가 1을 송신할 때 데이터 라인이 0인 경우 상기 어느 하나의 전자 가격 표시기(310)는 상기 1 다음 비트를 송신하지 않고 송신을 중단한다.In the process of the two or more electronic price indicator 310 transmits a signal including a unique ID of n bits and an address request command sequentially through the same data line for each bit, any one electronic price indicator 310 is 1 If the data line is 0 when transmitting, the one electronic price indicator 310 stops transmitting without transmitting the first next bit.

유니크 아이디와 주소 요청명령을 포함하는 신호는 단말 장치(300)의 주소, 읽기 또는 쓰기를 의미하는 정보, 명령을 의미하는 정보 및 전자 가격 표시기(310)의 유니크 아이디를 포함한다. 상기 둘 이상의 전자 가격 표시기(310)는 같은 단말 장치(300)로 자신의 유니크 아이디를 포함하는 유니크 아이디와 주소 요청명령을 포함하는 신호를 전달하면서 새로운 주소를 요청한다. The signal including the unique ID and the address request command includes an address of the terminal device 300, information indicating a reading or writing, information indicating a command, and a unique ID of the electronic price display 310. The two or more electronic price indicators 310 request a new address while transmitting a signal including a unique ID and an address request command to the same terminal device 300.

결국, 상기 둘 이상의 전자 가격 표시기(310)가 각각 생성한 '유니크 아이디와 주소 요청명령을 포함하는 신호'는 단말 장치(300)의 주소, 쓰기를 의미하는 정보, 명령을 의미하는 정보를 동일하게 포함하지만, 각 전자 가격 표시기 자신의 유니크 아이디를 포함하기 때문에 유니크 아이디 정보는 상이하다.As a result, the signal including the unique ID and the address request command generated by each of the two or more electronic price indicators 310 is the same as the address of the terminal device 300, information indicating writing, and information indicating command. The unique ID information is different because each electronic price indicator includes its own unique ID.

상기 둘 이상의 전자 가격 표시기(310)가 생성한 '유니크 아이디와 주소 요청명령을 포함하는 신호'는 유니크 아이디만 상이하기 때문에, 자신의 유니크 아이디에 기초하여 1을 더 늦게 출력하는 전자 가격 표시기(310)는 송신을 중단하지 않게 된다. 전자 가격 표시기(310)는 유니크 아이디의 각 비트를 첫번째 자리수부터 마지막 자리수까지 순차적으로 전송하기 때문에, 1을 더 후순위의 자리수에 포함하는 전자 가격 표시기(310)가 송신을 중단하지 않게 된다.Since the 'signal including the unique ID and the address request command' generated by the two or more electronic price indicators 310 differ only in the unique ID, the electronic price indicator 310 outputs 1 later based on its unique ID. ) Does not interrupt transmission. Since the electronic price indicator 310 sequentially transmits each bit of the unique ID from the first digit to the last digit, the electronic price indicator 310 including one more in the lower digit does not stop transmission.

반대로 1을 더 선순위의 자리수에 포함하는 유니크 아이디를 가지는 전자 가격 표시기(310)는 1을 전송할 때, 다른 전자 가격 표시기(310)가 0을 전송함에 따라 데이터 라인이 0 이기 때문에, 전송을 중단한다.On the contrary, when the electronic price indicator 310 having a unique ID including 1 in the higher order digits transmits 1, since the data line is 0 as another electronic price indicator 310 transmits 0, the transmission stops. .

결국, 같은 주소를 가지는 복수의 전자 가격 표시기(310) 중 단 하나의 전자 가격 표시기(310)만이 단말 장치(300)로 유니크 아이디와 주소 요청명령을 포함하는 신호가 포함하는 각 비트를 처음부터 끝까지 송신하게 된다.As a result, only one electronic price indicator 310 of the plurality of electronic price indicators 310 having the same address is transmitted to the terminal device 300 from the beginning to the end of each bit included in a signal including a unique ID and an address request command. Will be sent.

단말 장치(300)를 기준으로 설명하면, 단말 장치(300)는 단 하나의 전자 가격 표시기(310)로부터 유니크 아이디와 주소 요청명령을 포함하는 신호를 수신한다.Referring to the terminal device 300, the terminal device 300 receives a signal including a unique ID and an address request command from a single electronic price indicator 310.

상기 마스터 모드에서 상기 슬레이브 모드로 변경하는 단계(S220)는, 전자 가격 표시기(310)가 유니크 아이디와 주소 요청명령을 포함하는 신호를 송신하는 단계(S210) 이후에 마스터 모드에서 상기 슬레이브 모드로 변경하는 단계이다.In the changing from the master mode to the slave mode (S220), the electronic price indicator 310 changes from the master mode to the slave mode after the step (S210) of transmitting a signal including a unique ID and an address request command. It's a step.

유니크 아이디 및 제2 주소가 포함된 신호를 수신하여 상기 제1 주소를 상기 제2 주소로 변경하는 단계는, 수신한 유니크 아이디와 동일한 유니크 아이디를 갖는 전자 가격 표시기(310)가 제 1 주소를 제 2 주소로 변경하는 단계이다.Receiving a signal including a unique ID and a second address and changing the first address to the second address, the electronic price indicator 310 having the same unique ID as the received unique ID to the first address; Step 2 changes to the address.

단말 장치(300)와 통신하는 모든 전자 가격 표시기(310)들이 상기 유니크 아이디 및 제2 주소가 포함된 신호를 수신한다. 단말 장치(300)는 브로드캐스팅으로 '유니크 아이디 및 제2 주소가 포함된 신호'를 송신하고, 모든 전자 가격 표시기(310)들이 '유니크 아이디 및 제2 주소가 포함된 신호'를 수신한다.All electronic price indicators 310 communicating with the terminal device 300 receive a signal including the unique ID and the second address. The terminal device 300 transmits a 'signal including a unique ID and a second address' by broadcasting, and all the electronic price indicators 310 receive a 'signal including a unique ID and a second address'.

이 때 상기 유니크 아이디는 상기 둘 이상의 전자 가격 표시기(310) 중 송신을 중단하지 않고 '유니크 아이디와 주소 요청명령을 포함하는 신호'를 끝까지 송신한 전자 가격 표시기(310)의 유니크 아이디이다. 즉, 상기 전자 가격 표시기(310)는 전술한 '제1 주소와 주소할당 시작 명령을 포함하는 신호'에 포함된 주소를 가지는 전자 가격 표시기(310)들 중 자신들이 생성한 '유니크 아이디와 주소 요청명령을 포함하는 신호'에서 1을 더 후순위의 자리수에 포함하는 단 하나의 전자 가격 표시기(310)이다.At this time, the unique ID is a unique ID of the electronic price indicator 310 that transmits a signal including a unique ID and an address request command to the end without interrupting transmission among the two or more electronic price indicators 310. That is, the electronic price indicator 310 is a 'unique ID and address request generated by them among the electronic price indicators 310 having an address included in the' signal including the first address and the address allocation start command '. There is only one electronic price indicator 310 that includes one more in the order of precedence in the signal containing the command.

단말 장치(300)가 생성한 '유니크 아이디 및 제2 주소가 포함된 신호'는 상기 단 하나의 전자 가격 표시기(310)의 주소 및 유니크 아이디뿐만 아니라 상기 단 하나의 전자 가격 표시기(310)가 갱신할 새주소인 제 2 주소도 포함한다. 제 2 주소는 전술한 주소 테이블에 포함된 주소 중 하나로 전자 가격 표시기(310)가 하나도 할당되지 않은 주소이다.The signal including the unique ID and the second address generated by the terminal device 300 is updated by the single electronic price indicator 310 as well as the address and the unique ID of the single electronic price indicator 310. It also includes the second address, which is the new address. The second address is one of the addresses included in the above-described address table, and is an address to which no electronic price indicator 310 is assigned.

즉, 제2 주소는 상기 제1 주소와 다른 값을 포함한다.That is, the second address includes a value different from the first address.

단말 장치(300)는 상기 전자 가격 표시기(310)가 하나도 할당되지 않은 주소가 복수개인 경우 비트값이 가장 작은 주소를 새주소로 결정할 수 있다.The terminal device 300 may determine an address having the smallest bit value as a new address when there are a plurality of addresses to which the electronic price indicator 310 is not assigned.

단말 장치(300)와 통신하는, 구체적으로 I2C통신하는, 모든 전자 가격 표시기(310)들이 '유니크 아이디 및 제2 주소가 포함된 신호'를 수신하지만, 수신한 유니크 아이디와 동일한 유니크 아이디를 갖는 단 하나의 전자 가격 표시기(310)만이 자신의 주소를 상기 '유니크 아이디 및 제2 주소가 포함된 신호'에 포함되어 있는 제2 주소로 갱신한다. Although all the electronic price indicators 310 communicating with the terminal device 300, specifically in I2C communication, receive a 'signal with a unique ID and a second address', but have a unique ID equal to the received unique ID. Only one electronic price indicator 310 updates its address to a second address included in the 'signal including the unique ID and the second address'.

각 전자 가격 표시기(310)는 '유니크 아이디 및 제2 주소가 포함된 신호'에 포함된 유니크 아이디가 자신의 유니크 아이디가 아닌 경우 그 신호를 무시한다.Each electronic price indicator 310 ignores the signal when the unique ID included in the 'signal including the unique ID and the second address' is not its own unique ID.

전술한 상기 제1 주소와 주소할당 시작 명령을 포함하는 신호를 수신하는 단계(S200) 내지 유니크 아이디 및 제2 주소가 포함된 신호를 수신하여 상기 제1 주소를 상기 제2 주소로 변경하는 단계를 통해 하나의 주소에 할당된 둘 이상의 전자 가격 표시기(310) 중 하나는 자신의 주소를 새로운 주소로 갱신하여 주소 중복의 문제를 해결하게 된다.Receiving a signal including the first address and an address allocation start command (S200) to receiving a signal including a unique ID and a second address and changing the first address to the second address; One of the two or more electronic price indicators 310 assigned to one address through to update their address to a new address to solve the problem of address duplication.

도 10은 주소 갱신 방법에서 '유니크 아이디와 주소 요청명령을 포함하는 신호'를 송신하는 단계(S210)의 세부 흐름도이다.10 is a detailed flowchart of a step (S210) of transmitting a 'signal including a unique ID and an address request command' in the address update method.

상기 '유니크 아이디와 주소 요청명령을 포함하는 신호'를 송신하는 단계(S210)는, SDA 라인을 감지하는 단계(S211); 상기 SDA 라인으로부터 low 신호가 감지되는 동안 High 신호를 전송하는 단계(S212); 및 상기 유니크 아이디와 주소 요청명령을 포함하는 신호의 송신을 중단하는 단계를 포함한다.The transmitting of the signal including the unique ID and the address request command (S210) may include: detecting an SDA line (S211); Transmitting a high signal (S212) while a low signal is detected from the SDA line; And stopping transmission of a signal including the unique ID and an address request command.

SDA 라인을 감지하는 단계(S211)에서, 전자 가격 표시기(310)는 SDA 라인에 하이 신호 또는 로우 신호가 인가되었는지를 감지한다.In step S211 of detecting the SDA line, the electronic price indicator 310 detects whether a high signal or a low signal is applied to the SDA line.

상기 SDA 라인으로부터 low 신호가 감지되는 동안 High 신호를 전송하는 단계(S212)에서는, 전자 가격 표시기(310)가 SDA 라인으로부터 로우 신호를 감지하는 동시에 하이 신호를 출력한다.In the step S212 of transmitting the high signal while the low signal is detected from the SDA line, the electronic price indicator 310 detects the low signal from the SDA line and outputs a high signal.

상기 유니크 아이디와 주소 요청명령을 포함하는 신호의 송신을 중단하는 단계에서, 전자 가격 표시기(310)는 유니크 아이디와 주소 요청명령을 포함하는 신호의 송신을 중단한다.In the step of stopping transmission of the signal including the unique ID and the address request command, the electronic price indicator 310 stops transmitting the signal including the unique ID and the address request command.

즉, 둘 이상의 전자 가격 표시기(310) 중 어느 하나의 전자 가격 표시기(310)가 1을 송신할 때 데이터 라인이 0인 경우 상기 어느 하나의 전자 가격 표시기(310)는 송신을 중단한다. 어느 하나의 전자 가격 표시기(310)가 1을 송신할 때 데이터 라인이 0이라는 것은 다른 하나의 전자 가격 표시기(310)가 상기 데이터 라인으로 0을 송신했음을 의미한다.That is, when one of the two or more electronic price indicators 310 transmits 1, when the data line is 0, the one electronic price indicator 310 stops transmitting. The data line being zero when one electronic price indicator 310 transmits 1 means that the other electronic price indicator 310 has transmitted 0 to the data line.

둘 이상의 전자 가격 표시기(310)가 생성한 '유니크 아이디와 주소 요청명령을 포함하는 신호'는 서로 유니크 아이디만 상이하기 때문에, 자신의 유니크 아이디에 기초하여 1을 더 늦게 출력하는 전자 가격 표시기(310)는 송신을 중단하지 않게 된다.Since the 'signal including the unique ID and the address request command' generated by the two or more electronic price indicators 310 are different from each other only with the unique IDs, the electronic price indicator 310 outputs 1 later based on its unique ID. ) Does not interrupt transmission.

전자 가격 표시기(310)는 유니크 아이디의 각 비트를 첫번째 자리수부터 마지막 자리수까지 순차적으로 전송하기 때문에, 1을 더 후순위의 자리수에 포함하는 전자 가격 표시기(310)가 송신을 중단하지 않게 된다.Since the electronic price indicator 310 sequentially transmits each bit of the unique ID from the first digit to the last digit, the electronic price indicator 310 including one more in the lower digit does not stop transmission.

반대로 1을 더 선순위의 자리수에 포함하는 유니크 아이디를 가지는 전자 가격 표시기(310)는 1을 전송할 때, 다른 전자 가격 표시기(310)가 0을 전송함에 따라 데이터 라인이 0 이기 때문에, 전송을 중단한다.On the contrary, when the electronic price indicator 310 having a unique ID including 1 in the higher order digits transmits 1, since the data line is 0 as another electronic price indicator 310 transmits 0, the transmission stops. .

결국, 같은 주소를 가지는 복수의 전자 가격 표시기(310)들 중 단 하나의 전자 가격 표시기(310)만이 단말 장치(300)로 유니크 아이디와 주소 요청명령을 포함하는 신호가 포함하는 각 비트를 처음부터 끝까지 송신하게 된다.As a result, only one electronic price indicator 310 of the plurality of electronic price indicators 310 having the same address is assigned to each of the bits included in the signal including the unique ID and the address request command from the beginning to the terminal device 300. Will be sent to the end.

도 11은 중복주소 판단 및 주소 갱신 시스템의 전체 구성을 도시한다.11 shows an overall configuration of a duplicate address determination and address update system.

제1 주소와 유니크 아이디 요청 명령을 포함하는 신호를 송신하는 단계(S100)는, 단말 장치(300)가 전자 가격 표시기(310)로 '제1 주소와 유니크 아이디 요청 명령을 포함하는 신호'를 송신한다. 유니크 아이디와 오류 검출 코드를 포함하는 신호를 수신하는 단계(S105)는, 단말 장치(300)가 '유니크 아이디와 오류 검출 코드를 포함하는 신호'를 수신한다.In the step S100 of transmitting a signal including a first address and a unique ID request command, the terminal device 300 transmits a signal including the first address and a unique ID request command to the electronic price indicator 310. do. In the step S105 of receiving a signal including a unique ID and an error detection code, the terminal device 300 receives a signal including a unique ID and an error detection code.

오류 검출코드를 이용하여 수신된 신호의 오류를 판단하는 단계 및 상기 수신된 신호가 오류인 경우 상기 제1 주소를 중복된 주소로 판단하는 단계는, 단말 장치(300)가 각 전자 가격 표시기(310)로부터 유니크 아이디 및 오류 검출코드를 수신하고, 수신한 유니크 아이디에 대해 단말장치 자신이 산출한 오류 검출코드 및 상기 수신한 오류 검출코드를 비교하여 일치하지 않는 경우 상기 제1 주소에 두개 이상의 전자 가격 표시기(310)가 할당되어 있다고 판단하는 단계이다.Determining an error of the received signal by using an error detection code, and determining the first address as a duplicate address when the received signal is an error, the terminal device 300 each electronic price indicator 310 Receive a unique ID and error detection code, and compares the error detection code calculated by the terminal device itself with the received error detection code with respect to the received unique ID does not match the two or more electronic price at the first address It is determined that the indicator 310 is allocated.

오류 검출코드를 이용하여 수신된 신호의 오류를 판단하는 단계 및 상기 수신된 신호가 오류인 경우 상기 제1 주소를 중복된 주소로 판단하는 단계에서 신호의 오류가 없다고 판단하는 경우 종료 된다.In the step of determining an error of the received signal using an error detection code, and in the step of determining that the first address as a duplicate address when the received signal is an error, it is terminated.

제1 주소와 주소할당 시작 명령을 포함하는 신호를 송신하는 단계(S120)는 하나의 주소에 두개 이상의 전자 가격 표시기(310)가 할당되어 있는 경우를 전제로 한다. 이러한 전제를 기초로, 단말 장치(300)는 하나의 주소에 단 하나의 전자 가격 표시기(310)만 할당될 수 있도록 제1 주소와 주소할당 시작 명령을 포함하는 신호를 모든 전자 가격 표시기(310)들로 송신한다.The step S120 of transmitting a signal including a first address and an address assignment start command is based on the premise that two or more electronic price indicators 310 are assigned to one address. Based on this premise, the terminal device 300 outputs a signal including a first address and an address assignment start command to all electronic price indicators 310 so that only one electronic price indicator 310 can be assigned to one address. To the network.

유니크 아이디와 주소 요청명령을 포함하는 신호를 수신하는 단계(S140)에서, 슬레이브 모드로 변경된 단말 장치(300)는 전자 가격 표시기(310)로부터 유니크 아이디와 주소 요청명령을 포함하는 신호를 수신한다.In step S140 of receiving a signal including a unique ID and an address request command, the terminal device 300 changed to a slave mode receives a signal including a unique ID and an address request command from the electronic price display 310.

상기 제1 주소를 상기 제2 주소로 변경하는 단계에서, 해당 유니크 아이디를 가지는 전자 가격 표시기(310)는 제 1 주소를 제 2 주소로 변경한다.In the step of changing the first address to the second address, the electronic price indicator 310 having the corresponding unique ID changes the first address to the second address.

상기 제1 주소를 상기 제2 주소로 변경하는 단계 이후에 제1 주소와 유니크 아이디 요청 명령을 포함하는 신호를 송신하는 단계(S100)가 다시 수행된다.After changing the first address to the second address, a step (S100) of transmitting a signal including a first address and a unique ID request command is performed again.

도 12는 중복주소 판단 및 주소 갱신 시스템의 전체 구성을 도시한다.12 shows the overall configuration of a duplicate address determination and address update system.

단말 장치(300)는 후술할 게이트 웨이(430)와 무선통신하여 서버(410)가 송신한 상품 관련 정보를 수신한다. 단말 장치(300)와 복수의 전자 가격 표시기(310)들은 I2C 버스(132)를 통해 통신한다. I2C 버스(132)는 도 12에 도시된 것처럼 시리얼 데이터 라인(SDA) 및 시리얼 클록 라인(SCL)을 포함한다. 복수의 전자 가격 표시기(310)들은 매장내의 매대에 위치한다. 매대에는 커넥터가 존재하며, 각 전자 가격 표시기(310)는 상기 커넥터와 연결되거나 분리될 수 있다. 전자 가격 표시기(310)가 상기 커넥터와 연결되면, 전자 가격 표시기(310)로 전원이 공급되고, 데이터 라인(SDA) 및 시리얼 클록 라인(SCL)과도 연결된다. The terminal device 300 wirelessly communicates with the gateway 430, which will be described later, to receive product related information transmitted by the server 410. The terminal device 300 and the plurality of electronic price indicators 310 communicate via the I2C bus 132. I2C bus 132 includes a serial data line SDA and a serial clock line SCL as shown in FIG. The plurality of electronic price indicators 310 are located at a stand in the store. There is a connector in each stand, and each electronic price indicator 310 may be connected to or separated from the connector. When the electronic price indicator 310 is connected to the connector, power is supplied to the electronic price indicator 310 and is also connected to the data line SDA and the serial clock line SCL.

도 12에 도시된 화살표(510, 520)는 전자 가격 표시기(310)가 커넥터에 분리 또는 결합될 수 있음을 도시한다. 전자 가격 표시기(310)가 커넥터에 새롭게 결합되면, 랜덤한 임의의 주소가 할당된다. 상기 랜덤한 임의의 주소가 이미 다른 전자 가격 표시기(310)에 할당된 주소라면, 주소가 중복되는 문제가 발생된다. 본 발명에 따른 단말 장치(300)는, 전술한 것처럼, 유니크 아이디에 기초하여 계산한 순환 중복 검사값과 수신한 순환 중복 검사값이 다를 경우 상기 주소에는 둘 이상의 전자 가격 표시기(310)가 할당되어 있다고 판단한다. Arrows 510 and 520 shown in FIG. 12 show that the electronic price indicator 310 can be separated or coupled to the connector. When the electronic price indicator 310 is newly coupled to the connector, a random random address is assigned. If the random random address is already assigned to another electronic price indicator 310, a problem arises in that the address is duplicated. As described above, the terminal device 300 according to the present invention, when the cyclic redundancy check value calculated based on the unique ID and the received cyclic redundancy check value are different from each other, two or more electronic price indicators 310 are assigned to the address. I judge it.

중복되어 있다고 판단한 때에는 하나의 주소에 중복 할당된 복수개의 전자 가격 표시기(310) 중 하나의 전자 가격 표시기(310)에 순차적으로 새로운 주소를 할당한다.When it is determined that there is a duplicate, new addresses are sequentially assigned to one electronic price indicator 310 of the plurality of electronic price indicators 310 which are duplicately assigned to one address.

도 13은 서버(410), 게이트 웨이 및 단말 장치(300)를 포함하는 전자 가격 표시기(310) 시스템을 도시한다.FIG. 13 illustrates an electronic price indicator 310 system including a server 410, a gateway and a terminal device 300.

서버(410)는 전자 가격 표시기(310)에서 표시될 상품관련 정보, 예를 들면 상품명, 상품 가격, 유통 기한 등을 제공한다. 게이트 웨이(430)는 유무선 변환 장치로서 매장 내 천장에 설치될 수 있다. The server 410 provides product related information to be displayed on the electronic price indicator 310, for example, a product name, a product price, an expiration date, and the like. The gateway 430 may be installed on a ceiling in a store as a wired / wireless converter.

일 예에 있어서, 전자 가격 표시기(310)는 적어도 하나 이상의 그룹으로 관리되고 상품 정보가 업데이트 된다. 단말 장치(300)는 배터리 절약을 위해 슬립(Sleep)상태를 유지하다가, 상품 정보 갱신시에만 웨이크업(wakeup) 상태가 된다. 즉, 단말 장치(300)는 전자 가격 표시기(310)가 표시할 상품 정보를 서버(410)로부터 수신하고, I2C통신을 통해 전자 가격 표시기(310)로 상품 정보를 송신한다. In one example, the electronic price indicator 310 is managed in at least one group and the product information is updated. The terminal device 300 maintains a sleep state to save battery, and wakes up only when product information is updated. That is, the terminal device 300 receives the product information to be displayed by the electronic price display 310 from the server 410, and transmits the product information to the electronic price display 310 via I2C communication.

서버(410)와 게이트 웨이(430)는 내부 유선 네트워크를 통해 통신하고, 게이트 웨이(430)는 단말 장치(300)와 근거리 무선 통신, 예를 들면 IEEE 802.15.4 표준에 따른 PHY/MAC 계층 위에서 정의된 프로토콜에 따라 통신한다. 서버(410)는 게이트 웨이(430)를 통해 단말 장치(300)로 상품 정보를 송신한다. The server 410 and the gateway 430 communicate with each other via an internal wired network, and the gateway 430 communicates with the terminal device 300 in short-range wireless communication, for example, on a PHY / MAC layer according to the IEEE 802.15.4 standard. Communicate according to the defined protocol. The server 410 transmits product information to the terminal device 300 through the gateway 430.

단말 장치(300)는 자신을 등록한 게이트 웨이(430)로부터 지정 받은 데이터 채널에 접속하여 랜덤하게 웨이크업한 후 순차적으로 갱신정보를 요청한다.The terminal device 300 accesses the designated data channel from the gateway 430 that has registered itself, randomly wakes up, and then sequentially requests update information.

단말 장치(300)(300)는 게이트 웨이(430)를 통해 서버(410)로부터 상품 관련 정보를 수신하여 단말 장치(300)(300)와 I2C 통신하는 전자 가격 표시기(310)로 송신한다. 단말 장치(300)(300)로부터 상품 관련 정보, 예를 들어 상품 정보 이미지를 수신한 전자 가격 표시기(310)는 상기 상품 정보 이미지를 디스플레이(240) 한다.The terminal device 300 or 300 receives the goods related information from the server 410 through the gateway 430 and transmits the product related information to the electronic price display 310 in I2C communication with the terminal device 300 or 300. The electronic price indicator 310 that receives the product related information, for example, the product information image from the terminal device 300 or 300, displays 240 the product information image.

중복주소 판단 및 주소 갱신 시스템은 단말 장치(300); 및 상기 단말 장치(300)와 I2C 통신하는 전자 가격 표시기(310);를 포함하고, 상기 단말 장치(300)는 제1 주소와 유니크 아이디 요청 명령을 포함하는 신호를 송신하고, 유니크 아이디와 오류 검출 코드를 포함하는 신호를 수신하며, 상기 오류 검출코드를 이용하여 수신된 신호의 오류를 판단하고, 상기 수신된 신호가 오류인 경우 상기 제1 주소를 중복된 주소로 판단한다.The duplicate address determination and address update system includes a terminal device 300; And an electronic price indicator 310 in I2C communication with the terminal device 300, wherein the terminal device 300 transmits a signal including a first address and a unique ID request command, and detects a unique ID and an error. A signal including a code is received, an error of the received signal is determined using the error detection code, and if the received signal is an error, the first address is determined as a duplicate address.

상기 단말 장치(300)는, 마스터 모드로 동작하고, 상기 제1 주소와 주소할당 시작 명령을 포함하는 신호를 송신하며, 상기 마스터 모드에서 슬레이브 모드로 변경하고, 상기 유니크 아이디와 주소 요청명령을 포함하는 신호를 수신하며, 상기 슬래이브 모드에서 상기 마스터 모드로 변경하고, 상기 유니크 아이디 및 제2 주소가 포함된 신호를 송신하며, 상기 제2 주소는, 상기 제1 주소와 다른 값을 포함한다.The terminal device 300 operates in a master mode, transmits a signal including the first address and an address assignment start command, changes from the master mode to a slave mode, and includes the unique ID and the address request command. Receive a signal, change from the slave mode to the master mode, transmit a signal including the unique ID and the second address, and the second address includes a value different from the first address.

상기 전자 가격 표시기(310)는 제1 주소와 유니크 아이디를 포함하고, 슬레이브 모드이며, 상기 제1 주소와 주소할당 시작 명령을 포함하는 신호를 수신하고, 상기 슬레이브 모드에서 마스터 모드로 변경하며, 상기 유니크 아이디와 주소 요청명령을 포함하는 신호를 송신하고 상기 마스터 모드에서 상기 슬레이브 모드로 변경하며, 상기 유니크 아이디 및 제2 주소가 포함된 신호를 수신하여 상기 제1 주소를 상기 제2 주소로 변경한다.The electronic price indicator 310 includes a first address and a unique ID, is in slave mode, receives a signal including the first address and address assignment start command, changes from the slave mode to the master mode, and Transmits a signal including a unique ID and an address request command, changes from the master mode to the slave mode, receives a signal including the unique ID and the second address, and changes the first address to the second address; .

상기 전자 가격 표시기(310)는 SDA(Serial data) 라인을 감지하는 명령어를 더 포함하고, 상기 SDA(Serial data) 라인으로부터 low 신호가 감지되는 동안 High 신호를 전송하며, 상기 유니크 아이디와 주소 요청명령을 포함하는 신호의 송신을 중단한다.The electronic price indicator 310 further includes a command for detecting a serial data (SDA) line, transmits a high signal while a low signal is detected from the serial data (SDA) line, and transmits the unique ID and address request command. Stop transmission of a signal comprising a.

전술환 전자 가격 표시기(310) 및 단말 장치(300)의 특징은 단말 장치(300)의 중복주소 판단방법 및 주소 갱신 방법에 대응되는 것으로, 상세한 설명은 전술하였다.The features of the tactic exchange electronic price display 310 and the terminal device 300 correspond to the duplicate address determination method and the address update method of the terminal device 300.

도 14는 단말 장치(300)의 전체적인 구성을 도시한 블록도이다.14 is a block diagram illustrating the overall configuration of the terminal device 300.

단말 장치(300)는 제 1 I2C 인터페이스(130); 제 1 프로세서(110); 제 1 메모리(120); 및 상기 제 1 메모리(120)에 저장되고 상기 제 1 프로세서(110)에 의해 실행되도록 구성된 하나 이상의 프로그램;을 포함하며, 상기 하나 이상의 프로그램은, 제1 주소와 유니크 아이디 요청 명령을 포함하는 신호를 송신하고, 유니크 아이디와 오류 검출 코드를 포함하는 신호를 수신하며, 상기 오류 검출코드를 이용하여 수신된 신호의 오류를 판단하고, 상기 수신된 신호가 오류인 경우 상기 제1 주소를 중복된 주소로 판단하는 명령어들을 포함한다.The terminal device 300 includes a first I2C interface 130; A first processor 110; First memory 120; And at least one program stored in the first memory 120 and configured to be executed by the first processor 110, wherein the at least one program includes a signal including a first address and a unique ID request command. And transmit a signal including a unique ID and an error detection code, determine an error of the received signal using the error detection code, and if the received signal is an error, replace the first address with a duplicate address. Contains commands to determine.

제 1 I2C 인터페이스(130)는 I2C 방식으로 전자 가격 표시기(310)와 통신을 수행하기 위한 인터페이스다. 제 1 I2C 인터페이스(130)는 복수의 커넥터들 또는 와이어들을 포함하는 I2C 버스(132)를 통해 통신하도록 구성 가능한 라인 인터페이스이다.The first I2C interface 130 is an interface for communicating with the electronic price indicator 310 in an I2C manner. The first I2C interface 130 is a line interface configurable to communicate over an I2C bus 132 that includes a plurality of connectors or wires.

제 1 프로세서(110)는 단말 장치(300)를 총괄 제어한다. 즉, 제 1 프로세서(110)는 단말 장치(300)에 대한 다양한 기능들을 수행하기 위해 그리고 데이터를 프로세싱하기 위해 제 1 메모리(120)에 저장된 다양한 소프트웨어 프로그램들 및/또는 명령어들의 세트들을 구동 또는 실행시킨다.The first processor 110 collectively controls the terminal device 300. That is, the first processor 110 drives or executes various software programs and / or sets of instructions stored in the first memory 120 to perform various functions for the terminal device 300 and to process data. Let's do it.

명령어는 코드로서, 본 명세서에서 기술되는 기능을 구현하도록 구성될 수 있다.The instructions may be coded and configured to implement the functionality described herein.

제 1 메모리(120)는 전력 소모가 적으며, 배터리가 공급되지 않아도 데이터가 유지되는 플래쉬 메모리이다. 그러나 이에 한정되지 않으며, 공지된 반도체 메모리 중 적절한 다른 것들이 채택될 수 있다. 제 1 메모리(120)는 상품 관련 정보, 주소 테이블등을 저장할 수 있다.The first memory 120 consumes less power and is a flash memory that maintains data even when a battery is not supplied. However, the present invention is not limited thereto, and other suitable semiconductor memories may be adopted. The first memory 120 may store product related information, an address table, and the like.

단말 장치(300)는 무선 인터페이스(140)를 더 포함할 수 있다. 무선 인터페이스(140)는 지그비(Zigbee) 방식으로 게이트 웨이(430)와 통신한다. 지그비 통신은 IEEE 802.15.4 표준에 기초하여 PHY/MAC을 정의하고 있는 통신 방식 중 하나로, 전력 소모가 적고 보안성이 우수한 근거리 저속 통신 규격이다. 그러나 제안된 발명은 이에 한정되는 것은 아니며, 블루투스(Bluetooth)나 혹은 지그비의 통신 규격 중 일부만을 채택한 통신 방식과 같이 다양한 근거리 통신 방식이 적용될 수 있다.The terminal device 300 may further include a wireless interface 140. The air interface 140 communicates with the gateway 430 in a Zigbee manner. Zigbee communication is one of the communication methods that define PHY / MAC based on the IEEE 802.15.4 standard. However, the proposed invention is not limited thereto, and various short-range communication schemes may be applied, such as a communication scheme employing only some of Bluetooth or Zigbee communication standards.

단말 장치(300)는 타이머(150)를 더 포함할 수 있다. 타이머(150)는 제 1 프로세서(110)가 슬립 모드인 경우에도 활성화되어 작동하며, 제 1 프로세서(110)에 의해 설정된 일정한 주기로 인터럽트를 발생하여 제 1 프로세서(110)를 웨이크업 시킨다. 이 웨이크업 타임 슬롯(Time Slot)은 서버(410)에 의하여 단말 장치(300)간에 충돌되지 않도록 결정될 수 있다.The terminal device 300 may further include a timer 150. The timer 150 is activated even when the first processor 110 is in the sleep mode, and wakes up the first processor 110 by generating an interrupt at a predetermined period set by the first processor 110. The wake-up time slot may be determined by the server 410 so that the terminal device 300 does not collide with each other.

단말 장치(300)는 제1 주소와 유니크 아이디 요청 명령을 포함하는 신호를 송신한다. 단말 장치(300)는 브로드캐스팅으로 제1 주소와 유니크 아이디 요청 명령을 포함하는 신호를 모든 전자 가격 표시기(310)로 송신한다. 즉, 단말 장치(300)는 브로드캐스팅으로 제1 주소와 유니크 아이디 요청 명령을 포함하는 신호를 모든 전자 가격 표시기(310)로 쓰기 한다. 모든 전자 가격 표시기(310)는 단말 장치(300)와 I2C 통신을 하는 전자 가격 표시기(310)다.The terminal device 300 transmits a signal including a first address and a unique ID request command. The terminal device 300 transmits a signal including the first address and the unique ID request command to all the electronic price indicators 310 by broadcasting. That is, the terminal device 300 writes a signal including the first address and the unique ID request command to all the electronic price indicators 310 by broadcasting. All electronic price indicators 310 are electronic price indicators 310 which perform I2C communication with the terminal device 300.

단말 장치(300)는 제1 주소와 유니크 아이디 요청 명령을 포함하는 신호를 송신하여 하나의 주소에 둘 이상의 전자 가격 표시기(310)가 할당되어 있는지 여부를 확인한다.The terminal device 300 determines whether two or more electronic price indicators 310 are assigned to one address by transmitting a signal including a first address and a unique ID request command.

단말 장치(300)는 주소 테이블에 포함된 주소의 개수만큼 특정 주소와 유니크 아이디 요청 명령을 포함하는 신호를 생성하여 송신한다. 전자 가격 표시기(310)는 주소의 개수만큼 생성된 제1 주소와 유니크 아이디 요청 명령을 포함하는 신호를 수신한다. 여기서 제1 주소는 다수의 전자 가격 표시기(310) 중 어느 하나의 전자 가격 표시기(310)의 주소이다.The terminal device 300 generates and transmits a signal including a specific address and a unique ID request command as many as the addresses included in the address table. The electronic price indicator 310 receives a signal including a first address generated by the number of addresses and a unique ID request command. Herein, the first address is an address of any one of the plurality of electronic price indicators 310.

단말 장치(300)는 유니크 아이디와 오류 검출 코드를 포함하는 신호를 수신한다. 단말 장치(300)가 상기 제1 주소에 할당된 전자 가격 표시기(310)로부터 유니크 아이디와 오류 검출 코드를 포함하는 신호를 수신한다.The terminal device 300 receives a signal including a unique ID and an error detection code. The terminal device 300 receives a signal including a unique ID and an error detection code from the electronic price indicator 310 assigned to the first address.

여기서 오류 검출 코드는 순환 중복 검사(CRC: Cyclic Redundancy Checking)값이다. 순환 중복 검사는 순환 중복 검사값을 전송할 때 전송된 데이터에 오류가 있는지를 확인하기 위한 체크값을 결정하는 방식이다.The error detection code is a cyclic redundancy check (CRC) value. The cyclic redundancy check is a method of determining a check value for checking whether there is an error in the transmitted data when transmitting the cyclic redundancy check.

단말 장치(300)는 상기 오류 검출코드를 이용하여 수신된 신호의 오류를 판단한다.The terminal device 300 determines an error of the received signal by using the error detection code.

동일한 유니크 아이디를 기초로 계산된 순환 중복 검사 값은 동일하다. 즉, 전자 가격 표시기(310)가 유니크 아이디를 기초로 계산한 순환 중복 검사 값은 단말 장치(300)가 동일한 유니크 아이디를 기초로 계산한 순환 중복 검사 값과 동일하다.The cyclic redundancy check value calculated based on the same unique ID is the same. That is, the cyclic redundancy check value calculated by the electronic price indicator 310 based on the unique ID is the same as the cyclic redundancy check value calculated by the terminal device 300 based on the same unique ID.

만약 하나의 주소에 둘 이상의 전자 가격 표시기(310)가 할당되어 있다면, 상기 하나의 주소를 포함하는 유니크 아이디 요청 명령을 수신한 둘 이상의 전자 가격 표시기(310)들이 유니크 아이디와 오류 검출 코드를 포함하는 신호를 각각 동시에 송신하게 된다.If two or more electronic price indicators 310 are assigned to one address, the two or more electronic price indicators 310 receiving the unique ID request command including the one address may include a unique ID and an error detection code. Each signal will be sent simultaneously.

단말 장치(300)는 어떤 유니크 아이디에 대해 자신이 산출한 오류 검출코드 및 상기 유니크 아이디를 가지는 전자 가격 표시기(310)로부터 수신한 오류 검출코드를 비교하여 일치하지 않으면 오류라고 판단한다.The terminal device 300 compares the error detection code calculated by the user with respect to a unique ID and the error detection code received from the electronic price display 310 having the unique ID, and determines that the error is not an error.

단말 장치(300)는 상기 수신된 신호가 오류인 경우 상기 제1 주소를 중복된 주소로 판단한다. 즉, 상기 제1 주소에 두개 이상의 전자 가격 표시기(310)가 할당되어 있다고 판단하는 것이다.If the received signal is an error, the terminal device 300 determines the first address as a duplicate address. That is, it is determined that two or more electronic price indicators 310 are assigned to the first address.

이러한 판단은 모든 주소에 대해 이루어진다. 하나의 주소에 둘 이상의 전자 가격 표시기(310)가 존재한다고 판단하는 경우, 단말 장치(300)는 전술한 주소 테이블에서 상기 주소의 상태를 2로 갱신한다. 주소의 상태가 2라는 것은 상기 주소에 둘 이상의 전자 가격 표시기(310)가 할당되었다는 것이다.This determination is made for all addresses. When determining that two or more electronic price indicators 310 exist in one address, the terminal device 300 updates the state of the address to 2 in the above-described address table. An status of 2 is that more than one electronic price indicator 310 has been assigned to the address.

하나의 주소에 둘이상의 전자 가격 표시기(310)가 할당 되어 있다고 판단하면, 후술할 상기 제1 주소와 주소할당 시작 명령을 포함하는 신호를 송신하며, 상기 마스터 모드에서 슬래이브 모드로 변경하고, 상기 유니크 아이디와 주소 요청명령을 포함하는 신호를 수신하며, 상기 슬래이브 모드에서 상기 마스터 모드로 변경한다.If it is determined that two or more electronic price indicators 310 are allocated to one address, a signal including the first address and an address allocation start command to be described later is transmitted, the signal is changed from the master mode to the slave mode, and the Receives a signal including a unique ID and an address request command, and changes from the slave mode to the master mode.

단말 장치(300)는 상기 유니크 아이디 및 제2 주소가 포함된 신호를 모든 주소에 대하여 송신하고, 하나의 주소에 하나의 전자 가격 표시기(310)만이 할당될 때까지 전술한 과정을 수행한다.The terminal device 300 transmits a signal including the unique ID and the second address to all addresses, and performs the above-described process until only one electronic price indicator 310 is assigned to one address.

둘 이상의 전자 가격 표시기(310)가 동일한 SDA 라인을 통해 둘 이상의 전자 가격 표시기(310) 각각이 생성한 유니크 아이디와 오류 검출 코드를 포함하는 신호를 단말 장치(300)로 송신하는 경우, 둘 이상의 전자 가격 표시기(310) 각각이 생성한 유니크 아이디와 오류 검출 코드를 포함하는 신호가 비트 연산이 돼서 단말 장치(300)로 전송된다. When two or more electronic price indicators 310 transmit a signal to the terminal device 300 including a unique ID and an error detection code generated by each of the two or more electronic price indicators 310 through the same SDA line, the two or more electronics A signal including a unique ID and an error detection code generated by each of the price indicators 310 becomes a bit operation and is transmitted to the terminal device 300.

비트 연산 중 AND 연산이 수행되는데, AND 연산은 둘 이상의 유니크 아이디와 오류 검출 코드를 포함하는 신호의 각 자릿수를 비교해, 각 자리수 모두에 1이 있을 때에는 1, 나머지 경우에는 0으로 연산한다. An AND operation is performed among bit operations. The AND operation compares two digits of a signal including two or more unique IDs and an error detection code, and calculates 1 when all the digits have 1 and 0 otherwise.

AND 연산된 결과는 단말 장치(300)로 전송된다. 단말 장치(300)가 비트 연산된 유니크 아이디와 오류 검출 코드를 포함하는 신호를 수신하면 자신이 계산한 오류 검출 코드가 다르기 때문에, 주소에 둘 이상의 전자 가격 표시기(310)가 할당되었다고 판단한다.The ANDed result is transmitted to the terminal device 300. When the terminal device 300 receives a signal including a bit-operated unique ID and an error detection code, the terminal device 300 determines that two or more electronic price indicators 310 are assigned to the address because the error detection code calculated by the terminal device 300 is different.

단말 장치(300)가 복수의 전자 가격 표시기(310)로부터 비트 연산된 데이터를 수신하는 과정은 도 7에서 설명하였다.A process of the terminal device 300 receiving bit-operated data from the plurality of electronic price indicators 310 is described with reference to FIG. 7.

단말 장치(300)는 비트 연산된 유니크 아이디와 오류 검출 코드를 포함하는 신호를 수신하고, 이를 해당 유니크 아이디에 기초하여 자신이 산출한 오류 검출 코드와 비교한다. The terminal device 300 receives a signal including a bit-operated unique ID and an error detection code, and compares the signal with an error detection code calculated by the terminal device 300 based on the unique ID.

비교 결과, 2개의 오류 검출 코드가 서로 다르면 상기 주소에는 둘 이상의 전자 가격 표시기(310)가 할당되어 있다고 판단한다.As a result of the comparison, if two error detection codes are different from each other, it is determined that two or more electronic price indicators 310 are assigned to the address.

상기 단말 장치(300)는 마스터 모드로 동작하고, 상기 하나 이상의 프로그램은, 상기 제1 주소와 주소할당 시작 명령을 포함하는 신호를 송신하며, 상기 마스터 모드에서 슬래이브 모드로 변경하고, 상기 유니크 아이디와 주소 요청명령을 포함하는 신호를 수신하며, 상기 슬래이브 모드에서 상기 마스터 모드로 변경하고, 상기 유니크 아이디 및 제2 주소가 포함된 신호를 송신하는 명령어들을 더 포함하고, 상기 제2 주소는, 상기 제1 주소와 다른 값을 포함한다.The terminal device 300 operates in a master mode, and the one or more programs transmit a signal including the first address and an address assignment start command, change from the master mode to a slave mode, and the unique ID. And receiving a signal including an address request command, changing from the slave mode to the master mode, and transmitting a signal including the unique ID and the second address, wherein the second address includes: It includes a value different from the first address.

하나의 주소에 할당된 전자 가격 표시기(310)가 복수개인 경우를 전제로 전술한 수신된 신호가 오류인 경우 상기 제1 주소를 중복된 주소로 판단한 이후에, 상기 단말 장치(300)가 마스터 모드로 동작하고, 상기 제1 주소와 주소할당 시작 명령을 포함하는 신호를 송신한다.On the premise that there are a plurality of electronic price indicators 310 assigned to one address, when the received signal is an error, the terminal device 300 is in a master mode after determining that the first address is a duplicate address. And a signal including the first address and an address assignment start command.

상기 단말 장치(300)가 제1 주소와 주소할당 시작 명령을 포함하는 신호를 송신하는 것은 하나의 주소에 두개 이상의 전자 가격 표시기(310)가 할당되어 있는 경우를 전제로 한다. 이러한 전제를 기초로, 단말 장치(300)는 하나의 주소에 단 하나의 전자 가격 표시기(310)만 할당될 수 있도록 제1 주소와 주소할당 시작 명령을 포함하는 신호를 모든 전자 가격 표시기(310)로 송신한다.The terminal device 300 transmits a signal including a first address and an address allocation start command on the assumption that two or more electronic price indicators 310 are assigned to one address. Based on this premise, the terminal device 300 outputs a signal including a first address and an address assignment start command to all electronic price indicators 310 so that only one electronic price indicator 310 can be assigned to one address. Send to

단말 장치(300)가 송신하는 제1 주소와 주소할당 시작 명령을 포함하는 신호에 포함된 주소는 두개 이상의 전자 가격 표시기(310)가 할당되어 있는 주소이다. 단말 장치(300)는 주소 테이블을 관리하고, 이 주소 테이블은 주소, 주소의 상태, 해당 주소를 가지는 전자 가격 표시기(310)의 유니크 아이디(Unique ID)를 포함한다. 주소의 상태는 해당 주소에 몇 개의 전자 가격 표시기(310)가 할당되어 있는지를 보여준다. 단말 장치(300)는 상기 주소 테이블을 통해 두개 이상의 전자 가격 표시기(310)가 할당된 주소를 추출하여, 두개 이상의 전자 가격 표시기(310)가 할당된 제1 주소와 주소할당 시작 명령을 포함하는 신호를 생성하여 모든 전자 가격 표시기(310)들로 송신한다.The address included in the signal including the first address transmitted by the terminal device 300 and the address allocation start command is an address to which two or more electronic price indicators 310 are assigned. The terminal device 300 manages an address table, which includes an address, a state of an address, and a unique ID of the electronic price display 310 having the address. The status of an address shows how many electronic price indicators 310 are assigned to that address. The terminal device 300 extracts an address to which two or more electronic price indicators 310 are allocated through the address table, and includes a signal including a first address to which two or more electronic price indicators 310 are allocated and an address allocation start command. Generate and transmit to all electronic price indicators 310.

단말 장치(300)는 모든 전자 가격 표시기(310)로 제1 주소와 주소할당 시작 명령을 포함하는 신호를 송신하지만, 상기 제1 주소를 가지는 전자 가격 표시기(310)만이 후술할 유니크 아이디와 주소 요청명령을 포함하는 신호를 생성한다.  The terminal device 300 transmits a signal including a first address and an address allocation start command to all the electronic price indicators 310, but only the electronic price indicator 310 having the first address requests a unique ID and address to be described later. Generate a signal containing the command.

단말 장치(300)가 마스터 모드에서 슬래이브 모드로 변경하는 것은 제1 주소와 주소할당 시작 명령을 포함하는 신호를 송신한 이후이다.The terminal device 300 changes from the master mode to the slave mode after transmitting a signal including a first address and an address assignment start command.

단말 장치(300)가 상기 유니크 아이디와 주소 요청명령을 포함하는 신호를 수신하는 것은 슬레이브 모드로 변경된 단말 장치(300)는 전자 가격 표시기(310)로부터 유니크 아이디와 주소 요청명령을 포함하는 신호를 수신하는 것이다.When the terminal device 300 receives the signal including the unique ID and the address request command, the terminal device 300 changed to the slave mode receives the signal including the unique ID and the address request command from the electronic price display 310. It is.

단말 장치(300)는 제 1 주소에 할당된 둘 이상의 전자 가격 표시기(310) 중 어느 하나의 전자 가격 표시기(310)로부터 유니크 아이디와 주소 요청명령을 포함하는 신호를 수신한다.The terminal device 300 receives a signal including a unique ID and an address request command from one of the two or more electronic price indicators 310 assigned to the first address.

상기 제 1 주소에 할당된 둘 이상의 전자 가격 표시기(310)가 유니크 아이디와 주소 요청명령을 포함하는 신호를 생성한다. 단말 장치(300)로부터 모든 전자 가격 표시기(310)가 전술한 제1 주소와 주소할당 시작 명령을 포함하는 신호를 수신하지만, 제1 주소를 가지는 전자 가격 표시기(310)들만 유니크 아이디와 주소 요청명령을 포함하는 신호를 생성한다.Two or more electronic price indicators 310 assigned to the first address generate a signal comprising a unique ID and an address request command. Although all the electronic price indicators 310 receive a signal from the terminal device 300 including the above-described first address and address assignment start command, only the electronic price indicators 310 having the first address have a unique ID and an address request command. Generate a signal comprising a.

전술한 제1 주소와 주소할당 시작 명령을 포함하는 신호에 포함된 제1 주소를 가지는 전자 가격 표시기(310)들은 제1 주소와 주소할당 시작 명령을 포함하는 신호를 수신한 후에 마스터 모드로 전환된다. 전자 가격 표시기(310)가 마스터 모드로 전환된다는 것은 단말 장치(300)처럼 다른 장치로 특정 정보를 요청할 수 있음을 의미한다. The electronic price indicators 310 having the first address and the first address included in the signal including the address allocation start command are switched to the master mode after receiving the signal including the first address and the address allocation start command. . When the electronic price indicator 310 is switched to the master mode, it means that specific information may be requested to another device, such as the terminal device 300.

즉, 마스터 모드로 전환된 전자 가격 표시기(310)는 유니크 아이디와 주소 요청명령을 포함하는 신호와 같은 요청 명령을 임의의 장치, 예를 들어 단말 장치(300) 또는 다른 전자 가격 표시기(310)로 송신할 수 있다.That is, the electronic price indicator 310 switched to the master mode sends a request command, such as a signal including a unique ID and an address request command, to any device, for example, the terminal device 300 or another electronic price indicator 310. I can send it.

상기 둘 이상의 전자 가격 표시기(310)는 제1 주소와 주소할당 시작 명령을 포함하는 신호에 포함된 제1 주소를 가지는 전자 가격 표시기(310)다. The at least two electronic price indicators 310 are electronic price indicators 310 having a first address and a first address included in a signal including an address allocation start command.

둘 이상의 전자 가격 표시기(310)는 동일한 데이터 라인을 통해 둘 이상의 전자 가격 표시기(310) 각각이 생성한 유니크 아이디와 주소 요청명령을 포함하는 신호를 단말 장치(300)로 송신한다. 둘 이상의 전자 가격 표시기(310) 각각이 생성한 유니크 아이디와 주소 요청명령을 포함하는 신호는 비트 연산이 돼서 단말 장치(300)로 전송된다. 비트 연산 중 AND 연산이 수행되는데, AND 연산은 둘 이상의 유니크 아이디와 주소 요청명령을 포함하는 신호의 각 자릿수를 비교해, 각 자리수 모두에 1이 있을 때에는 1, 나머지 경우에는 0으로 연산한다. AND 연산된 결과는 단말 장치(300)로 전송된다.The two or more electronic price indicators 310 transmit a signal including a unique ID and an address request command generated by each of the two or more electronic price indicators 310 to the terminal device 300 through the same data line. A signal including a unique ID and an address request command generated by each of the two or more electronic price indicators 310 is a bit operation and is transmitted to the terminal device 300. An AND operation is performed among bit operations. The AND operation compares two digits of a signal including two or more unique IDs and an address request command, and calculates 1 when all the digits have 1 and 0 otherwise. The ANDed result is transmitted to the terminal device 300.

이때 상기 둘 이상의 전자 가격 표시기(310) 중 어느 하나의 전자 가격 표시기(310)가 1을 송신할 때 데이터 라인이 0인 경우 상기 어느 하나의 전자 가격 표시기(310)는 송신을 중단한다. 어느 하나의 전자 가격 표시기(310)가 1을 송신할 때 데이터 라인이 0이라는 것은 다른 하나의 전자 가격 표시기(310)가 상기 데이터 라인으로 0을 송신했음을 의미한다.In this case, when any one of the two or more electronic price indicators 310 transmits 1, when the data line is 0, the one electronic price indicator 310 stops transmitting. The data line being zero when one electronic price indicator 310 transmits 1 means that the other electronic price indicator 310 has transmitted 0 to the data line.

상기 둘 이상의 전자 가격 표시기(310) 중 어느 하나의 전자 가격 표시기(310)가 예를 들어 n 비트인 유니크 아이디와 주소 요청명령을 포함하는 신호를 송신할 때 다른 하나 이상의 전자 가격 표시기(310)도 n 비트인 유니크 아이디와 주소 요청명령을 포함하는 신호를 송신한다. When one of the two or more electronic price indicators 310 transmits a signal including a unique ID and an address request command, for example, n bits, the other one or more electronic price indicators 310 may also be used. Sends a signal containing a unique ID with n bits and an address request command.

상기 둘 이상의 전자 가격 표시기(310)가 n 비트의 유니크 아이디와 주소 요청명령을 포함하는 신호를 각 비트별로 순차적으로 동일한 데이터 라인을 통해 송신하는 과정에서, 어느 하나의 전자 가격 표시기(310)가 1을 송신할 때 데이터 라인이 0인 경우 상기 어느 하나의 전자 가격 표시기(310)는 상기 1 다음 비트를 송신하지 않고 송신을 중단한다.In the process of the two or more electronic price indicator 310 transmits a signal including a unique ID of n bits and an address request command sequentially through the same data line for each bit, any one electronic price indicator 310 is 1 If the data line is 0 when transmitting, the one electronic price indicator 310 stops transmitting without transmitting the first next bit.

유니크 아이디와 주소 요청명령을 포함하는 신호는 단말 장치(300)의 주소, 읽기 또는 쓰기를 의미하는 정보, 명령을 의미하는 정보 및 전자 가격 표시기(310)의 유니크 아이디를 포함한다. 상기 둘 이상의 전자 가격 표시기(310)는 같은 단말 장치(300)로 자신의 유니크 아이디를 포함하는 유니크 아이디와 주소 요청명령을 포함하는 신호를 전달하면서 새로운 주소를 요청한다. The signal including the unique ID and the address request command includes an address of the terminal device 300, information indicating a reading or writing, information indicating a command, and a unique ID of the electronic price display 310. The two or more electronic price indicators 310 request a new address while transmitting a signal including a unique ID and an address request command to the same terminal device 300.

결국, 상기 둘 이상의 전자 가격 표시기(310)가 각각 생성한 '유니크 아이디와 주소 요청명령을 포함하는 신호'는 단말 장치(300)의 주소, 쓰기를 의미하는 정보, 명령을 의미하는 정보를 동일하게 포함하지만, 각 전자 가격 표시기 자신의 유니크 아이디를 포함하기 때문에 유니크 아이디 정보는 상이하다.As a result, the signal including the unique ID and the address request command generated by each of the two or more electronic price indicators 310 is the same as the address of the terminal device 300, information indicating writing, and information indicating command. The unique ID information is different because each electronic price indicator includes its own unique ID.

상기 둘 이상의 전자 가격 표시기(310)가 생성한 유니크 아이디와 주소 요청명령을 포함하는 신호는 유니크 아이디만 상이하기 때문에, 자신의 유니크 아이디에 기초하여 1을 더 늦게 출력하는 전자 가격 표시기(310)는 송신을 중단하지 않게 된다. 전자 가격 표시기(310)는 유니크 아이디의 각 비트를 첫번째 자리수부터 마지막 자리수까지 순차적으로 전송하기 때문에, 1을 더 후순위의 자리수에 포함하는 전자 가격 표시기(310)가 송신을 중단하지 않게 된다.Since the signals including the unique ID and the address request command generated by the two or more electronic price indicators 310 differ only in the unique IDs, the electronic price indicator 310 outputting 1 later based on the unique IDs of the electronic price indicators 310 may be used. The transmission will not be interrupted. Since the electronic price indicator 310 sequentially transmits each bit of the unique ID from the first digit to the last digit, the electronic price indicator 310 including one more in the lower digit does not stop transmission.

반대로 1을 더 선순위의 자리수에 포함하는 유니크 아이디를 가지는 전자 가격 표시기(310)는 1을 전송할 때, 다른 전자 가격 표시기(310)가 0을 전송함에 따라 데이터 라인이 0 이기 때문에, 전송을 중단한다.On the contrary, when the electronic price indicator 310 having a unique ID including 1 in the higher order digits transmits 1, since the data line is 0 as another electronic price indicator 310 transmits 0, the transmission stops. .

결국, 같은 주소를 가지는 복수의 전자 가격 표시기(310) 중 단 하나의 전자 가격 표시기(310)만이 단말 장치(300)로 유니크 아이디와 주소 요청명령을 포함하는 신호가 포함하는 각 비트를 처음부터 끝까지 송신하게 된다.As a result, only one electronic price indicator 310 of the plurality of electronic price indicators 310 having the same address is transmitted to the terminal device 300 from the beginning to the end of each bit included in a signal including a unique ID and an address request command. Will be sent.

단말 장치(300)를 기준으로 설명하면, 단말 장치(300)는 단 하나의 전자 가격 표시기(310)로부터 유니크 아이디와 주소 요청명령을 포함하는 신호를 수신한다.Referring to the terminal device 300, the terminal device 300 receives a signal including a unique ID and an address request command from a single electronic price indicator 310.

단말 장치(300)는 유니크 아이디와 주소 요청명령을 포함하는 신호를 수신한 이후에 슬래이브 모드에서 마스터 모드로 변경한다.The terminal device 300 changes from the slave mode to the master mode after receiving a signal including a unique ID and an address request command.

단말 장치(300)가 유니크 아이디 및 제2 주소가 포함된 신호를 송신하는 것은 단말 장치(300)가 유니크 아이디 및 제2 주소가 포함된 신호를 전자 가격 표시기(310)로 송신하는 것이다.When the terminal device 300 transmits a signal including the unique ID and the second address, the terminal device 300 transmits a signal including the unique ID and the second address to the electronic price display 310.

상기 유니크 아이디 및 제2 주소가 포함된 신호를 수신하는 전자 가격 표시기(310)는 단말 장치(300)와 통신하는 모든 전자 가격 표시기(310)다. 단말 장치(300)는 브로드 캐스팅으로 유니크 아이디 및 제2 주소가 포함된 신호를 송신하여, 모든 전자 가격 표시기(310)는 유니크 아이디 및 제2 주소가 포함된 신호를 수신한다.The electronic price indicator 310 that receives the signal including the unique ID and the second address is all electronic price indicators 310 communicating with the terminal device 300. The terminal device 300 transmits a signal including the unique ID and the second address by broadcasting, and all the electronic price indicators 310 receive the signal including the unique ID and the second address.

상기 유니크 아이디는 상기 둘 이상의 전자 가격 표시기(310) 중 송신을 중단하지 않고 유니크 아이디와 주소 요청명령을 포함하는 신호를 송신한 전자 가격 표시기(310)의 유니크 아이디이다. 즉, 상기 전자 가격 표시기(310)는 전술한 제1 주소와 주소할당 시작 명령을 포함하는 신호에 포함된 주소를 가지는 전자 가격 표시기(310) 중 생성한 유니크 아이디와 주소 요청명령을 포함하는 신호에서 1을 더 후순위의 자리수에 포함하는 전자 가격 표시기(310)다.The unique ID is a unique ID of the electronic price indicator 310 that transmits a signal including a unique ID and an address request command without stopping transmission of the two or more electronic price indicators 310. That is, the electronic price indicator 310 in the signal including the unique ID and the address request command generated from the electronic price indicator 310 having the address included in the signal including the first address and the address allocation start command described above. It is an electronic price indicator 310 that includes one more in the rank of the subordinated order.

단말 장치(300)가 생성한 유니크 아이디 및 제2 주소가 포함된 신호는 상기 단 하나의 전자 가격 표시기(310)의 주소 및 유니크 아이디뿐만 아니라 상기 단 하나의 전자 가격 표시기(310)가 갱신할 새주소인 제 2 주소도 포함한다. 제 2 주소는 전술한 주소 테이블에 포함된 주소 중 하나로 전자 가격 표시기(310)가 하나도 할당되지 않은 주소이다.The signal including the unique ID and the second address generated by the terminal device 300 may be updated by the single electronic price indicator 310 as well as the address and unique ID of the single electronic price indicator 310. It also includes a second address, which is an address. The second address is one of the addresses included in the above-described address table, and is an address to which no electronic price indicator 310 is assigned.

즉, 제2 주소는 상기 제1 주소와 다른 값을 포함한다.That is, the second address includes a value different from the first address.

단말 장치(300)는 상기 전자 가격 표시기(310)가 하나도 할당되지 않은 주소가 복수개인 경우 비트값이 가장 작은 주소를 새주소로 결정할 수 있다.The terminal device 300 may determine an address having the smallest bit value as a new address when there are a plurality of addresses to which the electronic price indicator 310 is not assigned.

단말 장치(300)와 통신하는, 구체적으로 I2C통신하는, 모든 전자 가격 표시기(310)들이 '유니크 아이디 및 제2 주소가 포함된 신호'를 수신하지만, 수신한 유니크 아이디와 동일한 유니크 아이디를 갖는 단 하나의 전자 가격 표시기(310)만이 자신의 주소를 상기 '유니크 아이디 및 제2 주소가 포함된 신호'에 포함되어 있는 제2 주소로 갱신한다. Although all the electronic price indicators 310 communicating with the terminal device 300, specifically in I2C communication, receive a 'signal with a unique ID and a second address', but have a unique ID equal to the received unique ID. Only one electronic price indicator 310 updates its address to a second address included in the 'signal including the unique ID and the second address'.

각 전자 가격 표시기(310)는 '유니크 아이디 및 제2 주소가 포함된 신호'에 포함된 유니크 아이디가 자신의 유니크 아이디가 아닌 경우 그 신호를 무시한다.Each electronic price indicator 310 ignores the signal when the unique ID included in the 'signal including the unique ID and the second address' is not its own unique ID.

전술한 단말 장치(300)가 상기 제1 주소와 주소할당 시작 명령을 포함하는 신호를 송신하며, 상기 마스터 모드에서 슬래이브 모드로 변경하고, 상기 유니크 아이디와 주소 요청명령을 포함하는 신호를 수신하며, 상기 슬래이브 모드에서 상기 마스터 모드로 변경하고, 상기 유니크 아이디 및 제2 주소가 포함된 신호를 송신함에 따라 하나의 주소에 할당된 둘 이상의 전자 가격 표시기(310) 중 하나는 자신의 주소를 새로운 주소로 갱신하여 주소 중복의 문제를 해결하게 된다.The terminal device 300 transmits a signal including the first address and an address allocation start command, changes from the master mode to a slave mode, and receives a signal including the unique ID and the address request command. As the slave mode changes from the slave mode to the master mode and transmits a signal including the unique ID and the second address, one of the two or more electronic price indicators 310 assigned to the one address changes its own address. Updating to addresses solves the problem of address duplication.

도 15는 전자 가격 표시기(310)의 전체적인 구성을 도시한 블록도이다.15 is a block diagram showing the overall configuration of the electronic price indicator 310.

슬레이브 모드로 동작하는 전자 가격 표시기(310)에 있어서, 전자 가격 표시기(310)는, 제 2 I2C 인터페이스(230); 제 2 프로세서(210); 제 2 메모리(220); 및 상기 제 2 메모리(220)에 저장되고 상기 제 2 프로세서(210)에 의해 실행되도록 구성된 하나 이상의 프로그램;을 포함하며, 상기 제 2메모리는 제 1 주소 및 유니크 아이디를 저장하고, 상기 하나 이상의 프로그램은, 상기 제1 주소와 주소할당 시작 명령을 포함하는 신호를 수신하고, 상기 슬레이브 모드에서 마스터 모드로 변경하며, 상기 유니크 아이디와 주소 요청명령을 포함하는 신호를 송신하고 상기 마스터 모드에서 상기 슬레이브 모드로 변경하며, 상기 유니크 아이디 및 제2 주소가 포함된 신호를 수신하여 상기 제1 주소를 상기 제2 주소로 변경하는 명령어를 포함한다.An electronic price indicator 310 operating in slave mode, the electronic price indicator 310 comprising: a second I2C interface 230; A second processor 210; Second memory 220; And one or more programs stored in the second memory 220 and configured to be executed by the second processor 210, wherein the second memory stores a first address and a unique ID. Receives a signal including the first address and an address assignment start command, changes from the slave mode to the master mode, transmits a signal including the unique ID and the address request command, and transmits the signal from the master mode to the slave mode. And a command for receiving a signal including the unique ID and the second address and changing the first address to the second address.

제 2 I2C 인터페이스(230)는 I2C 방식으로 전자 가격 표시기(310)와 통신을 수행하기 위한 인터페이스다. 제 2 I2C 인터페이스(230)는 복수의 커넥터들 또는 와이어들을 포함하는 I2C 버스(132)를 통해 통신하도록 구성 가능한 라인 인터페이스이다.The second I2C interface 230 is an interface for communicating with the electronic price indicator 310 in an I2C manner. The second I2C interface 230 is a line interface configurable to communicate over an I2C bus 132 that includes a plurality of connectors or wires.

제 2 프로세서(210)는 단말 장치(300)를 총괄 제어한다. 즉, 제 2 프로세서(210)는 단말 장치(300)에 대한 다양한 기능들을 수행하기 위해 그리고 데이터를 프로세싱하기 위해 제 2 메모리(220)에 저장된 다양한 소프트웨어 프로그램들 및/또는 명령어들의 세트들을 구동 또는 실행시킨다.The second processor 210 collectively controls the terminal device 300. That is, the second processor 210 drives or executes various software programs and / or sets of instructions stored in the second memory 220 to perform various functions for the terminal device 300 and to process data. Let's do it.

제 2 메모리(220)는 전력 소모가 적으며, 배터리가 공급되지 않아도 데이터가 유지되는 플래쉬 메모리이다. 그러나 이에 한정되지 않으며, 공지된 반도체 메모리 중 적절한 다른 것들이 채택될 수 있다. 제 2 메모리(220)는 상품 관련 정보, 주소 테이블 등을 저장할 수 있다.The second memory 220 consumes less power and is a flash memory that maintains data even when a battery is not supplied. However, the present invention is not limited thereto, and other suitable semiconductor memories may be adopted. The second memory 220 may store product related information, an address table, and the like.

상의 전압으로 구동되며, 표시 상태를 유지할 때에는 최소한의 전력을 소모한다.It is driven by the voltage of the phase and consumes minimal power to maintain the display state.

전자 가격 표시기(310)가 상기 제1 주소와 주소할당 시작 명령을 포함하는 신호를 수신하는 것은 하나의 주소에 두개 이상의 전자 가격 표시기(310)가 할당되어 있는 경우를 전제로 한다. 이러한 전제를 기초로, 단말 장치(300)는 하나의 주소에 단 하나의 전자 가격 표시기(310)만 할당될 수 있도록 제1 주소와 주소할당 시작 명령을 포함하는 신호를 모든 전자 가격 표시기(310)로 송신한다.The electronic price indicator 310 receives a signal including the first address and an address assignment start command on the assumption that two or more electronic price indicators 310 are assigned to one address. Based on this premise, the terminal device 300 outputs a signal including a first address and an address assignment start command to all electronic price indicators 310 so that only one electronic price indicator 310 can be assigned to one address. Send to

전자 가격 표시기(310)가 수신하는 제1 주소와 주소할당 시작 명령을 포함하는 신호에 포함된 주소는 두개 이상의 전자 가격 표시기(310)가 할당되어 있는 주소이다. 단말 장치(300)는 주소 테이블을 관리하고, 이 주소 테이블은 주소, 주소의 상태, 해당 주소를 가지는 전자 가격 표시기(310)의 유니크 아이디(Unique ID)를 포함한다. 주소의 상태는 해당 주소에 몇 개의 전자 가격 표시기(310)가 할당되어 있는지를 보여준다. 단말 장치(300)는 상기 주소 테이블을 통해 두개 이상의 전자 가격 표시기(310)가 할당된 주소를 추출하여, 두개 이상의 전자 가격 표시기(310)가 할당된 제1 주소와 주소할당 시작 명령을 포함하는 신호를 생성하여 모든 전자 가격 표시기(310)들로 송신한다.The address included in the signal including the first address received by the electronic price indicator 310 and the address assignment start command is an address to which two or more electronic price indicators 310 are assigned. The terminal device 300 manages an address table, which includes an address, a state of an address, and a unique ID of the electronic price display 310 having the address. The status of an address shows how many electronic price indicators 310 are assigned to that address. The terminal device 300 extracts an address to which two or more electronic price indicators 310 are allocated through the address table, and includes a signal including a first address to which two or more electronic price indicators 310 are allocated and an address allocation start command. Generate and transmit to all electronic price indicators 310.

단말 장치(300)는 모든 전자 가격 표시기(310)로 제1 주소와 주소할당 시작 명령을 포함하는 신호를 송신하지만, 상기 제1 주소를 가지는 전자 가격 표시기(310)만이 후술할 유니크 아이디와 주소 요청명령을 포함하는 신호를 생성한다.  The terminal device 300 transmits a signal including a first address and an address allocation start command to all the electronic price indicators 310, but only the electronic price indicator 310 having the first address requests a unique ID and address to be described later. Generate a signal containing the command.

상기 슬레이브 모드에서 마스터 모드로 변경하는 단계(S205)는, 제1 주소와 주소할당 시작 명령을 포함하는 신호를 수신하는 단계(S200) 이후에 전자 가격 표시기(310)가 슬레이브 모드에서 마스터 모드로 변경하는 단계이다.In the step S205 of changing from the slave mode to the master mode, the electronic price indicator 310 changes from the slave mode to the master mode after receiving a signal including a first address and an address assignment start command (S200). It's a step.

전자 가격 표시기(310)가 상기 유니크 아이디와 주소 요청명령을 포함하는 신호를 송신하는 것은 마스터 모드로 변경된 전자 가격 표시기(310)는 단말 장치(300)로 유니크 아이디와 주소 요청명령을 포함하는 신호를 송신하는 것이다.The electronic price indicator 310 transmits a signal including the unique ID and an address request command so that the electronic price indicator 310 changed to a master mode sends a signal including a unique ID and an address request command to the terminal device 300. To transmit.

제 1 주소에 할당된 전자 가격 표시기(310)는 유니크 아이디와 주소 요청명령을 포함하는 신호를 송신한다.The electronic price indicator 310 assigned to the first address transmits a signal including a unique ID and an address request command.

모든 전자 가격 표시기(310)들이 단말 장치(300)로부터 전술한 제1 주소와 주소할당 시작 명령을 포함하는 신호를 수신하지만, 제1 주소를 가지는 전자 가격 표시기(310)들만 유니크 아이디와 주소 요청명령을 포함하는 신호를 생성하여 송신한다.Although all the electronic price indicators 310 receive a signal from the terminal device 300 including the above-described first address and address assignment start command, only the electronic price indicators 310 having the first address have a unique ID and an address request command. Generate and transmit a signal comprising a.

전술한 제1 주소와 주소할당 시작 명령을 포함하는 신호에 포함된 제1 주소를 가지는 전자 가격 표시기(310)들은 제1 주소와 주소할당 시작 명령을 포함하는 신호를 수신한 후에 마스터 모드로 전환된다. 전자 가격 표시기(310)가 마스터 모드로 전환된다는 것은 단말 장치(300)처럼 다른 장치로 특정 정보를 요청할 수 있음을 의미한다. The electronic price indicators 310 having the first address and the first address included in the signal including the address allocation start command are switched to the master mode after receiving the signal including the first address and the address allocation start command. . When the electronic price indicator 310 is switched to the master mode, it means that specific information may be requested to another device, such as the terminal device 300.

즉, 마스터 모드로 전환된 전자 가격 표시기(310)는 유니크 아이디와 주소 요청명령을 포함하는 신호와 같은 요청 명령을 임의의 장치, 예를 들어 단말 장치(300) 또는 다른 전자 가격 표시기(310)로 송신할 수 있다.That is, the electronic price indicator 310 switched to the master mode sends a request command, such as a signal including a unique ID and an address request command, to any device, for example, the terminal device 300 or another electronic price indicator 310. I can send it.

상기 둘 이상의 전자 가격 표시기(310)는 제1 주소와 주소할당 시작 명령을 포함하는 신호에 포함된 제1 주소를 가지는 전자 가격 표시기(310)다. The at least two electronic price indicators 310 are electronic price indicators 310 having a first address and a first address included in a signal including an address allocation start command.

둘 이상의 전자 가격 표시기(310)는 동일한 데이터 라인을 통해 둘 이상의 전자 가격 표시기(310) 각각이 생성한 유니크 아이디와 주소 요청명령을 포함하는 신호를 단말 장치(300)로 송신한다. 둘 이상의 전자 가격 표시기(310) 각각이 생성한 유니크 아이디와 주소 요청명령을 포함하는 신호는 비트 연산이 돼서 단말 장치(300)로 전송된다. 비트 연산 중 AND 연산이 수행되는데, AND 연산은 둘 이상의 유니크 아이디와 주소 요청명령을 포함하는 신호의 각 자릿수를 비교해, 각 자리수 모두에 1이 있을 때에는 1, 나머지 경우에는 0으로 연산한다. AND 연산된 결과는 단말 장치(300)로 전송된다.The two or more electronic price indicators 310 transmit a signal including a unique ID and an address request command generated by each of the two or more electronic price indicators 310 to the terminal device 300 through the same data line. A signal including a unique ID and an address request command generated by each of the two or more electronic price indicators 310 is a bit operation and is transmitted to the terminal device 300. An AND operation is performed among bit operations. The AND operation compares two digits of a signal including two or more unique IDs and an address request command, and calculates 1 when all the digits have 1 and 0 otherwise. The ANDed result is transmitted to the terminal device 300.

이때 상기 둘 이상의 전자 가격 표시기(310) 중 어느 하나의 전자 가격 표시기(310)가 1을 송신할 때 데이터 라인이 0인 경우 상기 어느 하나의 전자 가격 표시기(310)는 송신을 중단한다. 어느 하나의 전자 가격 표시기(310)가 1을 송신할 때 데이터 라인이 0이라는 것은 다른 하나의 전자 가격 표시기(310)가 상기 데이터 라인으로 0을 송신했음을 의미한다.In this case, when any one of the two or more electronic price indicators 310 transmits 1, when the data line is 0, the one electronic price indicator 310 stops transmitting. The data line being zero when one electronic price indicator 310 transmits 1 means that the other electronic price indicator 310 has transmitted 0 to the data line.

상기 둘 이상의 전자 가격 표시기(310) 중 어느 하나의 전자 가격 표시기(310)가 예를 들어 n 비트인 유니크 아이디와 주소 요청명령을 포함하는 신호를 송신할 때 다른 하나 이상의 전자 가격 표시기(310)도 n 비트인 유니크 아이디와 주소 요청명령을 포함하는 신호를 송신한다. When one of the two or more electronic price indicators 310 transmits a signal including a unique ID and an address request command, for example, n bits, the other one or more electronic price indicators 310 may also be used. Sends a signal containing a unique ID with n bits and an address request command.

상기 둘 이상의 전자 가격 표시기(310)가 n 비트의 유니크 아이디와 주소 요청명령을 포함하는 신호를 각 비트별로 순차적으로 동일한 데이터 라인을 통해 송신하는 과정에서, 어느 하나의 전자 가격 표시기(310)가 1을 송신할 때 데이터 라인이 0인 경우 상기 어느 하나의 전자 가격 표시기(310)는 상기 1 다음 비트를 송신하지 않고 송신을 중단한다.In the process of the two or more electronic price indicator 310 transmits a signal including a unique ID of n bits and an address request command sequentially through the same data line for each bit, any one electronic price indicator 310 is 1 If the data line is 0 when transmitting, the one electronic price indicator 310 stops transmitting without transmitting the first next bit.

유니크 아이디와 주소 요청명령을 포함하는 신호는 단말 장치(300)의 주소, 읽기 또는 쓰기를 의미하는 정보, 명령을 의미하는 정보 및 전자 가격 표시기(310)의 유니크 아이디를 포함한다. 상기 둘 이상의 전자 가격 표시기(310)는 같은 단말 장치(300)로 자신의 유니크 아이디를 포함하는 유니크 아이디와 주소 요청명령을 포함하는 신호를 전달하면서 새로운 주소를 요청한다. The signal including the unique ID and the address request command includes an address of the terminal device 300, information indicating a reading or writing, information indicating a command, and a unique ID of the electronic price display 310. The two or more electronic price indicators 310 request a new address while transmitting a signal including a unique ID and an address request command to the same terminal device 300.

결국, 상기 둘 이상의 전자 가격 표시기(310)가 각각 생성한 '유니크 아이디와 주소 요청명령을 포함하는 신호'는 단말 장치(300)의 주소, 쓰기를 의미하는 정보, 명령을 의미하는 정보를 동일하게 포함하지만, 각 전자 가격 표시기 자신의 유니크 아이디를 포함하기 때문에 유니크 아이디 정보는 상이하다.As a result, the signal including the unique ID and the address request command generated by each of the two or more electronic price indicators 310 is the same as the address of the terminal device 300, information indicating writing, and information indicating command. The unique ID information is different because each electronic price indicator includes its own unique ID.

상기 둘 이상의 전자 가격 표시기(310)가 생성한 유니크 아이디와 주소 요청명령을 포함하는 신호는 유니크 아이디만 상이하기 때문에, 자신의 유니크 아이디에 기초하여 1을 더 늦게 출력하는 전자 가격 표시기(310)는 송신을 중단하지 않게 된다. 전자 가격 표시기(310)는 유니크 아이디의 각 비트를 첫번째 자리수부터 마지막 자리수까지 순차적으로 전송하기 때문에, 1을 더 후순위의 자리수에 포함하는 전자 가격 표시기(310)가 송신을 중단하지 않게 된다.Since the signals including the unique ID and the address request command generated by the two or more electronic price indicators 310 differ only in the unique IDs, the electronic price indicator 310 outputting 1 later based on the unique IDs of the electronic price indicators 310 may be used. The transmission will not be interrupted. Since the electronic price indicator 310 sequentially transmits each bit of the unique ID from the first digit to the last digit, the electronic price indicator 310 including one more in the lower digit does not stop transmission.

반대로 1을 더 선순위의 자리수에 포함하는 유니크 아이디를 가지는 전자 가격 표시기(310)는 1을 전송할 때, 다른 전자 가격 표시기(310)가 0을 전송함에 따라 데이터 라인이 0 이기 때문에, 전송을 중단한다.On the contrary, when the electronic price indicator 310 having a unique ID including 1 in the higher order digits transmits 1, since the data line is 0 as another electronic price indicator 310 transmits 0, the transmission stops. .

결국, 같은 주소를 가지는 복수의 전자 가격 표시기(310) 중 단 하나의 전자 가격 표시기(310)만이 단말 장치(300)로 유니크 아이디와 주소 요청명령을 포함하는 신호가 포함하는 각 비트를 처음부터 끝까지 송신하게 된다.As a result, only one electronic price indicator 310 of the plurality of electronic price indicators 310 having the same address is transmitted to the terminal device 300 from the beginning to the end of each bit included in a signal including a unique ID and an address request command. Will be sent.

단말 장치(300)를 기준으로 설명하면, 단말 장치(300)는 단 하나의 전자 가격 표시기(310)로부터 유니크 아이디와 주소 요청명령을 포함하는 신호를 수신한다.Referring to the terminal device 300, the terminal device 300 receives a signal including a unique ID and an address request command from a single electronic price indicator 310.

전자 가격 표시기(310)가 상기 마스터 모드에서 상기 슬레이브 모드로 변경하는 것은 전자 가격 표시기(310)는 유니크 아이디와 주소 요청명령을 포함하는 신호를 송신한 이후에 마스터 모드에서 상기 슬레이브 모드로 변경하는 것이다.When the electronic price indicator 310 changes from the master mode to the slave mode, the electronic price indicator 310 changes from the master mode to the slave mode after transmitting a signal including a unique ID and an address request command. .

전자 가격 표시기(310)가 유니크 아이디 및 제2 주소가 포함된 신호를 수신하여 상기 제1 주소를 상기 제2 주소로 변경하는 것은, 상기 유니크 아이디를 가지는 전자 가격 표시기(310)가 제 1 주소를 제 2 주소로 변경하는 것이다.When the electronic price indicator 310 receives a signal including a unique ID and a second address and changes the first address to the second address, the electronic price indicator 310 having the unique ID may change the first address. To the second address.

상기 유니크 아이디 및 제2 주소가 포함된 신호를 수신하는 전자 가격 표시기(310)는 단말 장치(300)와 통신하는 모든 전자 가격 표시기(310)다. 단말 장치(300)는 브로드 캐스팅으로 유니크 아이디 및 제2 주소가 포함된 신호를 송신하여, 모든 전자 가격 표시기(310)는 유니크 아이디 및 제2 주소가 포함된 신호를 수신한다.The electronic price indicator 310 that receives the signal including the unique ID and the second address is all electronic price indicators 310 communicating with the terminal device 300. The terminal device 300 transmits a signal including the unique ID and the second address by broadcasting, and all the electronic price indicators 310 receive the signal including the unique ID and the second address.

상기 유니크 아이디는 상기 둘 이상의 전자 가격 표시기(310) 중 송신을 중단하지 않고 유니크 아이디와 주소 요청명령을 포함하는 신호를 송신한 전자 가격 표시기(310)의 유니크 아이디이다. 즉, 상기 전자 가격 표시기(310)는 전술한 제1 주소와 주소할당 시작 명령을 포함하는 신호에 포함된 주소를 가지는 전자 가격 표시기(310) 중 생성한 유니크 아이디와 주소 요청명령을 포함하는 신호에서 1을 더 후순위의 자리수에 포함하는 전자 가격 표시기(310)다.The unique ID is a unique ID of the electronic price indicator 310 that transmits a signal including a unique ID and an address request command without stopping transmission of the two or more electronic price indicators 310. That is, the electronic price indicator 310 in the signal including the unique ID and the address request command generated from the electronic price indicator 310 having the address included in the signal including the first address and the address allocation start command described above. It is an electronic price indicator 310 that includes one more in the rank of the subordinated order.

단말 장치(300)가 생성한 유니크 아이디 및 제2 주소가 포함된 신호는 상기 단 하나의 전자 가격 표시기(310)의 주소 및 유니크 아이디뿐만 아니라 상기 단 하나의 전자 가격 표시기(310)가 갱신할 새주소인 제 2 주소도 포함한다. 제 2 주소는 전술한 주소 테이블에 포함된 주소 중 하나로 전자 가격 표시기(310)가 하나도 할당되지 않은 주소이다.The signal including the unique ID and the second address generated by the terminal device 300 may be updated by the single electronic price indicator 310 as well as the address and unique ID of the single electronic price indicator 310. It also includes a second address, which is an address. The second address is one of the addresses included in the above-described address table, and is an address to which no electronic price indicator 310 is assigned.

즉, 제2 주소는 상기 제1 주소와 다른 값을 포함한다.That is, the second address includes a value different from the first address.

단말 장치(300)는 상기 전자 가격 표시기(310)가 하나도 할당되지 않은 주소가 복수개인 경우 비트값이 가장 작은 주소를 새주소로 결정할 수 있다.The terminal device 300 may determine an address having the smallest bit value as a new address when there are a plurality of addresses to which the electronic price indicator 310 is not assigned.

단말 장치(300)와 통신하는, 구체적으로 I2C통신하는, 모든 전자 가격 표시기(310)들이 '유니크 아이디 및 제2 주소가 포함된 신호'를 수신하지만, 수신한 유니크 아이디와 동일한 유니크 아이디를 갖는 단 하나의 전자 가격 표시기(310)만이 자신의 주소를 상기 '유니크 아이디 및 제2 주소가 포함된 신호'에 포함되어 있는 제2 주소로 갱신한다. Although all the electronic price indicators 310 communicating with the terminal device 300, specifically in I2C communication, receive a 'signal with a unique ID and a second address', but have a unique ID equal to the received unique ID. Only one electronic price indicator 310 updates its address to a second address included in the 'signal including the unique ID and the second address'.

각 전자 가격 표시기(310)는 '유니크 아이디 및 제2 주소가 포함된 신호'에 포함된 유니크 아이디가 자신의 유니크 아이디가 아닌 경우 그 신호를 무시한다.Each electronic price indicator 310 ignores the signal when the unique ID included in the 'signal including the unique ID and the second address' is not its own unique ID.

전술한 상기 상기 제1 주소와 주소할당 시작 명령을 포함하는 신호를 수신하고, 상기 슬레이브 모드에서 마스터 모드로 변경하며, 상기 유니크 아이디와 주소 요청명령을 포함하는 신호를 송신하고 상기 마스터 모드에서 상기 슬레이브 모드로 변경하며, 상기 유니크 아이디 및 제2 주소가 포함된 신호를 수신하여 상기 제1 주소를 상기 제2 주소로 변경하는 과정을 통해 하나의 주소에 할당된 둘 이상의 전자 가격 표시기(310) 중 하나는 자신의 주소를 새로운 주소로 갱신하여 주소 중복의 문제를 해결하게 된다.Receives the signal including the first address and the address assignment start command described above, changes from the slave mode to the master mode, transmits a signal including the unique ID and the address request command, and transmits the signal in the master mode. One of two or more electronic price indicators 310 assigned to one address through a process of changing to a mode and receiving a signal including the unique ID and the second address and changing the first address to the second address. Resolves the problem of address duplication by updating its address with a new address.

상기 하나 이상의 프로그램은, SDA(Serial data) 라인을 감지하고, 상기 SDA(Serial data) 라인으로부터 low 신호가 감지되는 동안 High 신호를 전송하며, 상기 유니크 아이디와 주소 요청명령을 포함하는 신호의 송신을 중단하는 명령어를 포함한다.The at least one program detects a serial data (SDA) line, transmits a high signal while a low signal is detected from the serial data (SDA) line, and transmits a signal including the unique ID and an address request command. Contains the command to abort.

SDA 라인을 감지하는 것은 전자 가격 표시기(310)가 SDA 라인에 하이 신호 또는 로우 신호가 인가되었는지를 감지하는 것이다.Detecting the SDA line is the electronic price indicator 310 detects whether a high signal or a low signal is applied to the SDA line.

상기 SDA 라인으로부터 low 신호가 감지되는 동안 High 신호를 전송하는 것은 전자 가격 표시기(310)가 SDA 라인으로부터 로우 신호를 감지하는 동시에 하이 신호를 출력하는 것이다.Transmitting a high signal while a low signal is detected from the SDA line is that the electronic price indicator 310 detects a low signal from the SDA line and simultaneously outputs a high signal.

상기 유니크 아이디와 주소 요청명령을 포함하는 신호의 송신을 중단하는 것은 전자 가격 표시기(310)가 유니크 아이디와 주소 요청명령을 포함하는 신호의 송신을 중단하는 것이다.Stopping transmission of the signal including the unique ID and the address request command means that the electronic price indicator 310 stops transmitting the signal including the unique ID and the address request command.

즉, 둘 이상의 전자 가격 표시기(310) 중 어느 하나의 전자 가격 표시기(310)가 1을 송신할 때 데이터 라인이 0인 경우 상기 어느 하나의 전자 가격 표시기(310)는 송신을 중단한다. 어느 하나의 전자 가격 표시기(310)가 1을 송신할 때 데이터 라인이 0이라는 것은 다른 하나의 전자 가격 표시기(310)가 상기 데이터 라인으로 0을 송신했음을 의미한다.That is, when one of the two or more electronic price indicators 310 transmits 1, when the data line is 0, the one electronic price indicator 310 stops transmitting. The data line being zero when one electronic price indicator 310 transmits 1 means that the other electronic price indicator 310 has transmitted 0 to the data line.

둘 이상의 전자 가격 표시기(310)가 생성한 유니크 아이디와 주소 요청명령을 포함하는 신호는 유니크 아이디만 상이하기 때문에, 자신의 유니크 아이디에 기초하여 1을 더 늦게 출력하는 전자 가격 표시기(310)는 송신을 중단하지 않게 된다.Since the signal including the unique ID and the address request command generated by the two or more electronic price indicators 310 differ only in the unique ID, the electronic price indicator 310 outputting 1 later based on its unique ID is transmitted. Will not interrupt.

전자 가격 표시기(310)는 유니크 아이디의 각 비트를 첫번째 자리수부터 마지막 자리수까지 순차적으로 전송하기 때문에, 1을 더 후순위의 자리수에 포함하는 전자 가격 표시기(310)가 송신을 중단하지 않게 된다.Since the electronic price indicator 310 sequentially transmits each bit of the unique ID from the first digit to the last digit, the electronic price indicator 310 including one more in the lower digit does not stop transmission.

반대로 1을 더 선순위의 자리수에 포함하는 유니크 아이디를 가지는 전자 가격 표시기(310)는 1을 전송할 때, 다른 전자 가격 표시기(310)가 0을 전송함에 따라 데이터 라인이 0 이기 때문에, 전송을 중단한다.On the contrary, when the electronic price indicator 310 having a unique ID including 1 in the higher order digits transmits 1, since the data line is 0 as another electronic price indicator 310 transmits 0, the transmission stops. .

결국, 같은 주소를 가지는 복수의 전자 가격 표시기(310) 중 단 하나의 전자 가격 표시기(310)만이 단말 장치(300)로 유니크 아이디와 주소 요청명령을 포함하는 신호가 포함하는 각 비트를 처음부터 끝까지 송신하게 된다.As a result, only one electronic price indicator 310 of the plurality of electronic price indicators 310 having the same address is transmitted to the terminal device 300 from the beginning to the end of each bit included in a signal including a unique ID and an address request command. Will be sent.

도 16은 단말 장치(300)가 생성한 주소 테이블을 도시한다.16 illustrates an address table generated by the terminal device 300.

단말 장치(300)가 생성한 주소 테이블은 예를 들어 20개의 주소를 포함한다. st는 상태(state)로 각 주소 별로 몇 개의 전자 가격 표시기(310)가 할당되어 있는지를 보여주는 정보이다. 상태 옆에 있는 정보는 전자 가격 표시기(310)의 유니크 아이디이다. 상태 값이 2인 경우의 유니크 아이디는 2개의 전자 가격 표시기(310)의 유니크 아이디가 and 연산된 값이므로, 그 어떤 전자 가격 표시기(310)의 유니크 아이디도 아니게 된다.The address table generated by the terminal device 300 includes 20 addresses, for example. st is a state and is information indicating how many electronic price indicators 310 are allocated to each address. The information next to the status is the unique ID of the electronic price indicator 310. The unique ID when the state value is 2 is not a unique ID of any electronic price indicator 310 since the unique ID of the two electronic price indicators 310 is calculated by and.

상태 값이 0인 경우 할당된 전자 가격 표시기(310)가 없기 때문에 디폴트 값으로 설정된다.If the status value is 0, since there is no electronic price indicator 310 assigned, it is set to a default value.

이상과 같이 본 발명을 설명하였지만, 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자는, 본 발명의 기술적 사상과 필수적 특징을 유지한 채로 다른 형태로도 실시될 수 있음을 인지할 수 있을 것이다. 따라서 이상에서 기술한 실시 예들은 단지 예시적인 것일 뿐이며, 본 발명의 범위를 앞의 실시예들로만 제한하고자 하는 것이 아니다. 또한, 도면에 도시된 순서도들은 본 발명을 실시함에 있어서 가장 바람직한 결과를 얻기 위해 예시적으로 도시한 순서에 불과하며, 다른 단계들이 더 추가되거나 일부 단계들이 삭제될 수 있음은 물론이다.Although the present invention has been described as described above, it will be appreciated by those skilled in the art that the present invention may be implemented in other forms while maintaining the technical idea and essential features of the present invention. Therefore, the above-described embodiments are merely exemplary and are not intended to limit the scope of the present invention only to the above embodiments. In addition, the flowcharts shown in the drawings are merely exemplary in order to obtain the most desirable results in practicing the present invention, and other steps may be added or some steps may be deleted.

본 발명의 범위는 청구범위에 의하여 규정될 것이지만, 청구범위 기재사항으로부터 직접적으로 도출되는 구성은 물론 그와 등가인 구성으로부터 도출되는 모든 변경 또는 변형된 형태 또한 본 발명의 권리범위에 포함되는 것으로 해석되어야 한다.While the scope of the invention will be defined by the claims, any modifications or variations derived from a configuration directly derived from the claims description as well as equivalents thereof are also to be included within the scope of the invention. Should be.

[부호의 설명][Description of the code]

110: 제 1 프로세서110: first processor

120: 제 1 메모리120: first memory

130: 제 1 I2C 인터페이스130: first I2C interface

132: I2C 버스132: I2C bus

140: 무선 인터페이스140: wireless interface

150: 타이머150: timer

210: 제 2 프로세서210: second processor

220: 제 2 메모리220: second memory

230: 제 2 I2C 인터페이스230: second I2C interface

240: 디스플레이240: display

300: 단말장치300: terminal device

310: 전자 가격 표시기310: electronic price indicator

410: 서버410: server

430: 게이트웨이430: gateway

510: 화살표510: arrow

520: 화살표520: arrow

Claims (8)

복수의 전자가격 표시기들과 I2C통신하는 단말장치의 중복주소 판단 방법에 있어서,In the duplicate address determination method of the terminal device I2C communication with a plurality of electronic price indicators, 제1 주소와 유니크 아이디 요청 명령을 포함하는 신호를 송신하는 단계;Transmitting a signal comprising a first address and a unique ID request command; 유니크 아이디와 오류 검출 코드를 포함하는 신호를 수신하는 단계;Receiving a signal comprising a unique ID and an error detection code; 상기 오류 검출코드를 이용하여 수신된 신호의 오류를 판단하는 단계; 및Determining an error of a received signal using the error detection code; And 상기 수신된 신호가 오류인 경우 상기 제1 주소를 중복된 주소로 판단하는 단계를 포함하는 단말장치의 중복주소 판단방법.And determining the first address as a duplicate address when the received signal is an error. 제 1 항에 있어서,The method of claim 1, 상기 단말장치는 마스터 모드로 동작하고, 상기 제1 주소와 주소할당 시작 명령을 포함하는 신호를 송신하는 단계;The terminal device operating in a master mode and transmitting a signal including the first address and an address assignment start command; 상기 마스터 모드에서 슬래이브 모드로 변경하는 단계;Changing from the master mode to a slave mode; 상기 유니크 아이디와 주소 요청명령을 포함하는 신호를 수신하는 단계; 및Receiving a signal including the unique ID and an address request command; And 상기 슬래이브 모드에서 상기 마스터 모드로 변경하는 단계;Changing from the slave mode to the master mode; 상기 유니크 아이디 및 제2 주소가 포함된 신호를 송신하는 단계를 더 포함하고, Transmitting a signal including the unique ID and the second address; 상기 제2 주소는 상기 제1 주소와 다른 값을 포함하는 단말장치의 중복주소 판단방법.And the second address comprises a different value from the first address. 제1 주소와 유니크 아이디를 포함하는 슬레이브 모드인 전자가격 표시기의 주소 갱신 방법에 있어서,In the address updating method of the electronic price indicator in slave mode including a first address and a unique ID, 상기 제1 주소와 주소할당 시작 명령을 포함하는 신호를 수신하는 단계;Receiving a signal comprising the first address and an address assignment start command; 상기 슬레이브 모드에서 마스터 모드로 변경하는 단계;Changing from the slave mode to a master mode; 상기 유니크 아이디와 주소 요청명령을 포함하는 신호를 송신하는 단계; 및Transmitting a signal including the unique ID and an address request command; And 상기 마스터 모드에서 상기 슬레이브 모드로 변경하는 단계;Changing from the master mode to the slave mode; 상기 유니크 아이디 및 제2 주소가 포함된 신호를 수신하여 상기 제1 주소를 상기 제2 주소로 변경하는 단계를 포함하는 주소 갱신 방법.And receiving the signal including the unique ID and the second address, and changing the first address to the second address. 제 3 항에 있어서, 상기 유니크 아이디와 주소 요청명령을 포함하는 신호를 송신하는 단계는The method of claim 3, wherein the transmitting of the signal including the unique ID and the address request command is performed. SDA(Serial data) 라인을 감지하는 단계를 더 포함하고,Detecting a serial data (SDA) line; 상기 SDA 라인으로부터 low 신호가 감지되는 동안 High 신호를 전송하는 경우,If a high signal is transmitted while a low signal is detected from the SDA line, 상기 유니크 아이디와 주소 요청명령을 포함하는 신호의 송신을 중단하는 주소 갱신 방법.The address update method of stopping the transmission of the signal including the unique ID and the address request command. 단말 장치; 및 Terminal device; And 상기 단말 장치와 I2C 통신하는 전자 가격 표시기;를 포함하고,An electronic price indicator in I2C communication with the terminal device; 상기 단말 장치는 The terminal device 제1 주소와 유니크 아이디 요청 명령을 포함하는 신호를 송신하고,Transmit a signal including a first address and a unique ID request command, 유니크 아이디와 오류 검출 코드를 포함하는 신호를 수신하며, Receives a signal containing a unique ID and an error detection code, 상기 오류 검출코드를 이용하여 수신된 신호의 오류를 판단하고,Determining an error of the received signal using the error detection code, 상기 수신된 신호가 오류인 경우 상기 제1 주소를 중복된 주소로 판단하는 중복주소 판단 및 주소 갱신 시스템.And determining the first address as a duplicate address if the received signal is an error. 제 5 항에 있어서,The method of claim 5, wherein 상기 단말 장치는,The terminal device, 마스터 모드로 동작하여In master mode 상기 제1 주소와 주소할당 시작 명령을 포함하는 신호를 송신하고,Transmit a signal including the first address and an address assignment start command, 상기 마스터 모드에서 슬래이브 모드로 변경하여Change from slave mode to master mode 상기 유니크 아이디와 주소 요청명령을 포함하는 신호를 수신하고,Receiving a signal including the unique ID and an address request command, 상기 슬래이브 모드에서 상기 마스터 모드로 변경하여From the slave mode to the master mode 상기 유니크 아이디 및 제2 주소가 포함된 신호를 송신하며,Transmit a signal including the unique ID and the second address, 상기 제2 주소는,The second address is, 상기 제1 주소와 다른 값을 포함하는 중복주소 판단 및 주소 갱신 시스템. And a duplicate address determination and address update system comprising a value different from the first address. 제 5 항에 있어서,The method of claim 5, wherein 상기 전자 가격 표시기는The electronic price indicator 상기 제1 주소와 유니크 아이디를 포함하고,Including the first address and a unique ID, 슬레이브 모드로 동작하여In slave mode 상기 제1 주소와 주소할당 시작 명령을 포함하는 신호를 수신하고,Receiving a signal including the first address and an address assignment start command, 상기 슬레이브 모드에서 마스터 모드로 변경하여By changing from the slave mode to the master mode 상기 유니크 아이디와 주소 요청명령을 포함하는 신호를 송신하고Transmit a signal including the unique ID and an address request command 상기 마스터 모드에서 상기 슬레이브 모드로 변경하여From the master mode to the slave mode 상기 유니크 아이디 및 제2 주소가 포함된 신호를 수신하여 상기 제1 주소를 상기 제2 주소로 변경하는 중복주소 판단 및 주소 갱신 시스템.And a duplicate address determination and address update system for receiving a signal including the unique ID and the second address and changing the first address to the second address. 제 7 항에 있어서,The method of claim 7, wherein 상기 전자 가격 표시기는The electronic price indicator SDA(Serial data) 라인을 감지하고,Detects SDA (Serial data) lines, 상기 SDA(Serial data) 라인으로부터 low 신호가 감지되는 동안 High 신호를 전송하는 경우,When a high signal is transmitted while a low signal is detected from the serial data (SDA) line, 상기 유니크 아이디와 주소 요청명령을 포함하는 신호의 송신을 중단하는 중복주소 판단 및 주소 갱신 시스템.Duplicate address determination and address updating system for stopping transmission of a signal including the unique ID and an address request command.
PCT/KR2018/001638 2017-03-15 2018-02-07 Duplicate address determination method for terminal device, address update method, and duplicate address determination and address update system Ceased WO2018169211A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020170032534A KR20180105452A (en) 2017-03-15 2017-03-15 A method of determining a duplicate address of a terminal device, a method of updating address and duplicate address determination and address update system
KR10-2017-0032534 2017-03-15

Publications (1)

Publication Number Publication Date
WO2018169211A1 true WO2018169211A1 (en) 2018-09-20

Family

ID=63523604

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2018/001638 Ceased WO2018169211A1 (en) 2017-03-15 2018-02-07 Duplicate address determination method for terminal device, address update method, and duplicate address determination and address update system

Country Status (2)

Country Link
KR (1) KR20180105452A (en)
WO (1) WO2018169211A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050097255A1 (en) * 2003-10-30 2005-05-05 International Business Machines Corporation I2C device including bus switches and programmable address
US20050165989A1 (en) * 2004-01-26 2005-07-28 Yong-Jae Kim I2C communication system and method enabling bi-directional communications
US20140337553A1 (en) * 2013-05-08 2014-11-13 Nxp B.V. Method and system for interrupt signaling in an inter-integrated circuit (i2c) bus system
US20150256384A1 (en) * 2012-09-21 2015-09-10 Koninklijke Philips N.V. Method and apparatus for dynamic address assignment
US20160110535A1 (en) * 2014-10-17 2016-04-21 Lexmark International, Inc. Methods and Apparatus for Setting the Address of a Module Using a Voltage

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050097255A1 (en) * 2003-10-30 2005-05-05 International Business Machines Corporation I2C device including bus switches and programmable address
US20050165989A1 (en) * 2004-01-26 2005-07-28 Yong-Jae Kim I2C communication system and method enabling bi-directional communications
US20150256384A1 (en) * 2012-09-21 2015-09-10 Koninklijke Philips N.V. Method and apparatus for dynamic address assignment
US20140337553A1 (en) * 2013-05-08 2014-11-13 Nxp B.V. Method and system for interrupt signaling in an inter-integrated circuit (i2c) bus system
US20160110535A1 (en) * 2014-10-17 2016-04-21 Lexmark International, Inc. Methods and Apparatus for Setting the Address of a Module Using a Voltage

Also Published As

Publication number Publication date
KR20180105452A (en) 2018-09-28

Similar Documents

Publication Publication Date Title
WO2014112800A1 (en) Smart home system using portable device
WO2019132344A1 (en) Method for controlling earpiece and electronic device for supporting the same
WO2019124981A1 (en) Method for providing communication service using secure element and electronic device thereof
WO2011076035A1 (en) Method and apparatus for implementing multiple card slots accessing
WO2013015571A2 (en) Electronic device and operating method thereof
WO2014021636A1 (en) Wireless power transmission network and wireless power transmission method
WO2020032604A1 (en) Access management system and access management method using same
WO2013048008A1 (en) Methods and apparatus for registering a device to server
WO2018062715A1 (en) Apparatus and control method for displaying content of peripheral device
WO2020022578A1 (en) Electronic device using wireless charging to control communication channel, and method for operation of electronic device
WO2018028135A1 (en) Downlink data information feedback method and relevant device
WO2012005483A2 (en) Method and device for sensing capacitance change and recording medium in which program for executing method is recorded thereon, and method and device for sensing touch using method and recording medium in which program for executing method is recorded thereon
WO2013058423A1 (en) Electronic device and method for operating the electronic device
WO2015182896A1 (en) Bluetooth connection method and apparatus
WO2015190877A1 (en) Method and device for transmitting/receiving data using hdmi
WO2020027559A1 (en) Electronic apparatus and control method thereof
WO2022055291A1 (en) Electronic device and method for updating electronic device
WO2015190880A1 (en) Method and apparatus for transmitting and receiving data using hdmi
WO2019088646A1 (en) Display device and control method therefor
WO2021045579A1 (en) Electronic device and method for detecting connection state of connection interface
WO2018169211A1 (en) Duplicate address determination method for terminal device, address update method, and duplicate address determination and address update system
WO2020204429A1 (en) Electronic apparatus and control method thereof
WO2024136155A1 (en) Integrated control device for various electronic devices
WO2023128229A1 (en) Electronic apparatus and control method therefor
WO2015093790A1 (en) Method and apparatus for controlling virtual switching

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18767799

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18767799

Country of ref document: EP

Kind code of ref document: A1