0% found this document useful (0 votes)
96 views

LPv16 Protocol (Data)

1. The document describes the PLU and message download and upload protocols between a PC and scale. 2. For PLU download, the PC sends a download command, receives confirmation, then sends PLU data in 85 byte structures. It receives confirmation after each transfer is complete. 3. For message download, the PC checks for existing messages, can edit the status, then sends message data in 200 byte blocks, receiving confirmation after each block. Addresses are calculated based on the message number. 4. PLU and message upload follow a similar process to download, with the scale sending the data to the PC. Status and addresses are checked, then data is transferred in blocks with confirmations.

Uploaded by

nevena_guga
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
96 views

LPv16 Protocol (Data)

1. The document describes the PLU and message download and upload protocols between a PC and scale. 2. For PLU download, the PC sends a download command, receives confirmation, then sends PLU data in 85 byte structures. It receives confirmation after each transfer is complete. 3. For message download, the PC checks for existing messages, can edit the status, then sends message data in 200 byte blocks, receiving confirmation after each block. Addresses are calculated based on the message number. 4. PLU and message upload follow a similar process to download, with the scale sending the data to the PC. Status and addresses are checked, then data is transferred in blocks with confirmations.

Uploaded by

nevena_guga
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 7

LP v1.

6 data Protocol

1.1. PLU Download


Step 1: PLU download

PC Scale
1. Send download command 2. confirmed download command
and resend confirmation
3. Send data 4. finish up data transfer and send
confirmation

Step 2: PLU download EX:


1. Send download command (PC)
Send : HEX : 70 30 30 30 31 2C 35 35 0D
CHAR : “p0001,55<0x0d>”
p : PLU download command
55 : PLU download and report data Clear, 0001 is PLU NO..
49 : PLU Just downloading, report data Not clear,
0x0d : finish command
2. Confirm download command (PC)
Receive : HEX : 6E 30 30 30 31 0D
CHAR : “n0001<0x0d>”
0001 - PLU NO.
Step 3: Send PLU DATA
3. Send data (PC)
Send : PLU Data Structure send (85 Byte or 73 Byte, last 12Byte is report
data, Report data send as Clear)
PLU Data Structure :
Item code(4), NAME1(28), NAME2(28), MSG NO.(2), UNIT PRICE(4),
LIFE(2), TARE(2), Group CODE(3), TOTAL COUNT(4), TOTAL
PRICE(4), TOTAL WEIGHT(4)
HEX: 0F 00 00 00 41 50 50 4C 45 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 41 50 50 4C 45 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 17 00 59 01 00 00
04 00 32 00 43 00 00 00 00 00 00 00 00 00 00 00 00 00 00
CHAR: 16, APPLE, APPLE, 23, 345, 4, 50, 67, 0, 0, 0
4. Confirm data transition (PC)
Receive : HEX : 6F 30 30 30 31 0D
CHAR : “o0001<0x0d>

Following : repeat ~ STEP 2, STEP 3 and sends data before the process.
1.2. PLU Upload
Step 1: Upload

PC Scale
1. PLU confirm existent data and 2. PLU send confirmation on PLU
send existent
3. PLU send upload command 4. PLU send PLU data

Step 2: PLU Prepare upload


1. PLU Send confirm existent data (PC)
Send : HEX : 72 30 30 30 45 37 31 2C 33 32 0D
CHAR : “r000E71,32<0x0d>”
000E71은 PLU, MSG first address of table
32 is HEX = means 50 byte .
Each 50 BYTE 4000BYTE SIZE of PLU,MSG table exist
2. PLU existent confirm (PC)
Receive : HEX : 23 33 32 3A 01 02 (00*48) 0D
CHAR : “#32: <0x01><0x02>00*(48Byte)<0x0d>”
50 BYTE of data source~
0x00 : no data, 0x01 : PLU exist, 0x02 : MSG exist,
0x03 : both exist.

Step 3: PLU DATA transmit


3. PLU send upload command (PC)
Send : HEX : 71 30 30 30 31 2C 0D
CHAR : “q0001,<0x0d>
4. PLU confirm data (PC)
Receive : HEX : 51 30 30 30 31 2C 35 35 3A
CHAR : “Q0001,55:
CHAR : PLU STRUCTURE (85 Byte, during uploading send 85 BYTE
all the time)
Following STEP 1 has 50tables (total 4000), after reading the table PLUs and
Messages will search whether data is exist or not. And reads exist the real data into
step2 phase . After that every 50 and search 80times to complete sending data.

1.2. PLU Delete


PC Scale
1. PLU sending delete command 2. PLU re-sending delete complete
data

1. PLU sending delete command (PC)


Send : HEX : 50 30 30 30 31 2C 30 31 0D
CHAR : “P0001,01<0x0d>” -> P : PLU delete command, 0001 : PLU
number

2. PLU sending delete complete data (PC)


Receive :HEX : 4F 30 30 30 31 0D
CHAR : “O0001<0x0d>” -> 0001 : PLU number

2.1. Message Download

PC Scale
1. MSG exist confirm command send 2. MSG exist confirm re-sending
3. MSG sending exist edit data 4. MSG Re-sending exist edit data
5. MSG send data1 and command1 6. MSG Re-sending confirm data1
7. MSG Send data2 and command2 7. MSG re-sending data2
confirmation

1. MSG sending exist confirm command (PC)


Send : HEX : 72 30 30 30 45 37 31 2C 30 31 0D
CHAR : “r000E71,01<0x0d>”
000E71 : PLU, MSG status table
01 : means 1BYTE
Reading status table stage, Message downloading takes 1 each
2. MSG confirm exist data (PC)
Receive: HEX : 23 30 31 3A 03 0D
CHAR : “#01:<0x03><0x0d>”
Same as PLU 0x00, 0x01, 0x02, 0x03 status will appear, 0x00
becomes 0x02 status, 0x01 becomes 0x03 status.
3. MSG sending exist edit (PC)
Send : HEX : 77 30 30 30 45 37 31 2C 30 31 03
CHAR : “w000E71,01<0x03>
Stage of status table value changing.
4. MSG confirm exist edit data (PC)
Receive: HEX : 77 30 31 3A 0D
CHAR : “w01:<0x0d>”
5. MSG Sending data1 command and data1 (PC)
Send: HEX : 77 30 30 33 32 41 31 2C 43 38
CHAR : “w0032A1,C8”
0032A1 : First address of scale’s message field, following address
calculation will explain following.
C8 : means 200BYTE, total message 400BYTE divided each 200BYTE
for sending.
Send: CHAR : 200Byte message data
6. MSG data1 compete confirmation (PC)
Receive: HEX : 77 43 38 3A 0D
CHAR : “wC8: <0x0d>”
7. MSG data2 sending command data 2 (PC)
Send: HEX : 77 30 30 33 33 36 39 2C 43 38
CHAR : “w003369,C8”
003369 : is added next address 200BYTE
Send: CHAR : 200Byte message data
8. MSG data2 complete confirmation (PC)
Receive: HEX : 77 43 38 3A 0D
CHAR : “wC8: <0x0d>”

<6digit address >calculation: 3153(EEP_ALL_SIZE)+9808(FLASH_MSG_POSITION)


+400*(MSGno-1)
Calculation value convert into HEX. Therefore first address 3153+9808 +0 = 12961
-> 32A1
2.2. Message Upload

PC Scale
1. MSG sending exist confirm 2. MSG sending exist confirmation
command
3. MSG sending data1 upload 4. PLU sending data1
command
5. MSG sending data2 upload 6. PLU sending data2
command

1. MSG sending exist confirm command (PC)


Send : HEX : 72 30 30 30 45 37 31 2C 33 32 0D
CHAR : “r000E71,32<0x0d>”
000E71 : status table address
32 : means 50 BYTE
2. MSG exist confirm (PC)
Receive: HEX : 23 33 32 3A 01 02 (00*48) 0D
CHAR : “#32: <0x01><0x02>00*(48Byte)<0x0d>”
Reading only exist message number just like PLU uploading situation
0x00(PLU, MSG none exist), 0x01(only PLU), 0x02(only MSG), 0x03(both
exist)

3. MSG sending data 1 upload command (PC)


Send : HEX : 72 30 30 33 32 41 31 2C 43 38 0D
CHAR : “r0032A1,C8<0x0d>”
0032A1 : first address of scale message
C8 : means 200BYTE, Total message is 400BYTE (sending each
200BYTE).
4. PLU confirm data 1 transition (PC)
Receive: HEX : 23 43 38 3A 0D
CHAR : “#C8:<0x0d>”
Receive : CHAR : 200 Byte Message data
5. MSG Sending data 2 upload command (PC)
Send: HEX : 72 30 30 33 33 36 39 2C 43 38 0D
CHAR : “r003369,C8<0x0d>”
6. PLU data 2 receiving confirmation (PC)
Receive: HEX : 23 43 38 3A 0D
CHAR : “#C8:<0x0d>”
Receive:200 Byte Message data

You might also like