[03:13:18]OFD Sender: No OFD packet to send [03:13:23]OFD Sender: No OFD packet to send [03:13:28]OFD Sender: No OFD packet to send [03:13:33]OFD Sender: No OFD packet to send [03:13:38]OFD Sender: No OFD packet to send [03:13:43]OFD Sender: No OFD packet to send [03:13:48]OFD Sender: No OFD packet to send [03:13:53]OFD Sender: No OFD packet to send [03:13:58]OFD Sender: No OFD packet to send [03:14:03]OFD Sender: No OFD packet to send [03:14:08]OFD Sender: No OFD packet to send [03:14:13]OFD Sender: No OFD packet to send [03:14:18]OFD Sender: No OFD packet to send [03:14:23]OFD Sender: No OFD packet to send [03:14:28]OFD Sender: No OFD packet to send [03:14:33]OFD Sender: No OFD packet to send [03:14:38]OFD Sender: No OFD packet to send [03:14:43]OFD Sender: No OFD packet to send [03:14:48]OFD Sender: No OFD packet to send [03:14:53]OFD Sender: No OFD packet to send [03:14:58]OFD Sender: No OFD packet to send [03:15:03]OFD Sender: No OFD packet to send [03:15:08]OFD Sender: No OFD packet to send [03:15:13]OFD Sender: No OFD packet to send [03:15:18]OFD Sender: No OFD packet to send [03:15:23]OFD Sender: No OFD packet to send [03:15:28]OFD Sender: No OFD packet to send [03:15:33]OFD Sender: No OFD packet to send [03:15:38]OFD Sender: No OFD packet to send [03:15:43]OFD Sender: No OFD packet to send [03:15:48]OFD Sender: No OFD packet to send [03:15:53]OFD Sender: No OFD packet to send [03:15:58]OFD Sender: No OFD packet to send [03:16:03]OFD Sender: No OFD packet to send [03:16:08]OFD Sender: No OFD packet to send [03:16:13]OFD Sender: No OFD packet to send [03:16:18]OFD Sender: No OFD packet to send [03:16:23]OFD Sender: No OFD packet to send [03:16:28]OFD Sender: No OFD packet to send [03:16:33]OFD Sender: No OFD packet to send [03:16:38]OFD Sender: No OFD packet to send [03:16:43]OFD Sender: No OFD packet to send [03:16:48]OFD Sender: No OFD packet to send [03:16:53]OFD Sender: No OFD packet to send [03:16:58]OFD Sender: No OFD packet to send [03:17:03]OFD Sender: No OFD packet to send [03:17:08]OFD Sender: No OFD packet to send [03:17:13]OFD Sender: No OFD packet to send [03:17:18]OFD Sender: No OFD packet to send [03:17:23]OFD Sender: No OFD packet to send [03:17:28]OFD Sender: No OFD packet to send [03:17:33]OFD Sender: No OFD packet to send [03:17:38]OFD Sender: No OFD packet to send [03:17:43]OFD Sender: No OFD packet to send [03:17:48]OFD Sender: No OFD packet to send [03:17:53]OFD Sender: No OFD packet to send [03:17:58]OFD Sender: No OFD packet to send [03:18:03]OFD Sender: No OFD packet to send [03:18:08]OFD Sender: No OFD packet to send [03:18:13]OFD Sender: No OFD packet to send [03:18:18]OFD Sender: No OFD packet to send [03:18:23]OFD Sender: No OFD packet to send [03:18:28]OFD Sender: No OFD packet to send [03:18:33]OFD Sender: No OFD packet to send [03:18:38]OFD Sender: No OFD packet to send [03:18:43]OFD Sender: No OFD packet to send [03:18:48]OFD Sender: No OFD packet to send [03:18:53]OFD Sender: No OFD packet to send [03:18:58]OFD Sender: No OFD packet to send [03:19:03]OFD Sender: No OFD packet to send [03:19:08]OFD Sender: No OFD packet to send [03:19:13]OFD Sender: No OFD packet to send [03:19:18]OFD Sender: No OFD packet to send [03:19:23]OFD Sender: No OFD packet to send [03:19:28]OFD Sender: No OFD packet to send [03:19:33]OFD Sender: No OFD packet to send [03:19:38]OFD Sender: No OFD packet to send [03:19:43]OFD Sender: No OFD packet to send [03:19:48]OFD Sender: No OFD packet to send [03:19:53]OFD Sender: No OFD packet to send [03:19:58]OFD Sender: No OFD packet to send [03:20:03]OFD Sender: No OFD packet to send [03:20:08]OFD Sender: No OFD packet to send [03:20:13]OFD Sender: No OFD packet to send [03:20:18]OFD Sender: No OFD packet to send [03:20:23]OFD Sender: No OFD packet to send [03:20:28]OFD Sender: No OFD packet to send [03:20:33]OFD Sender: No OFD packet to send [03:20:37]accept exits with 9 [03:20:37]New connection [03:20:37]New thread 3066801508 created [03:20:37]Thread 3066658148 joined [03:20:37]Waiting for new connection... [03:20:37] Sock 9.Parse request [03:20:37]Sock 9.Check first char [03:20:37]Sock 9.First char is OK [03:20:37]request: POST /json_proto HTTP/1.0 [03:20:37]Method: POST [03:20:37]URL: /json_proto [03:20:37]Method is POST - this is cgi request [03:20:37]url: /json_proto [03:20:37]query_string will be loaded in cgi processing [03:20:37]execute_cgi json_proto POST (null) [03:20:37]execute_cgi path=json_proto method=POST [03:20:37]POST find Content-Length [03:20:37]Host: 172.17.57.71:8080 [03:20:37]Content-Length: 745 [03:20:37]Content-Type: application/json [03:20:37] [03:20:37]POST finish read [03:20:37]Found Content-Length = 745 [03:20:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127454", "tax_sys" : 0, "items" : [ { "code": "4870202521186", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:20:37]execute_script... [03:20:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127454", "tax_sys" : 0, "items" : [ { "code": "4870202521186", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:20:37]POST & json_proto [03:20:37]process_json_proto [03:20:37]json parsed OK: [03:20:37]protocol is kg_v1.0 [03:20:37]action value=close_receipt [03:20:37]process_action close_receipt [03:20:37]cmd_close_receipt [03:20:37]MH_GetDate [03:20:37]Write to MH i2c: F0 00 00 16 41 46 [03:20:37]Write i2c OK [03:20:37]MH_I2C_Read... [03:20:37]Read from MH i2c: F0 [03:20:37]MH_I2C_Read... [03:20:37]Read from MH i2c: F0 09 00 [03:20:37]MH_I2C_Read... [03:20:37]Read from MH i2c: F0 09 00 16 41 00 8C 52 E6 66 33 3A A4 66 F0 [03:20:37]GetLastDocTimeStamp 1726369656 [03:20:37]current date 1726370444 [03:20:37]FM_GetShiftState [03:20:37]SAM_PROTO_GetShiftState [03:20:37]wFMCommunicate request_size=4 [03:20:37]MH_SAM_APDU [03:20:37]CAPDU: 80 13 01 00 [03:20:37]Write to MH i2c: E2 08 00 17 41 80 13 01 00 00 00 00 00 D5 [03:20:37]Write i2c OK [03:20:37]MH_I2C_Read... [03:20:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:20:37]Read from MH i2c: E2 [03:20:37]MH_I2C_Read... [03:20:37]Read from MH i2c: E2 0E 00 [03:20:37]MH_I2C_Read... [03:20:37]Read from MH i2c: E2 0E 00 17 41 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 57 [03:20:37]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [03:20:37]wFMCommunicate OK [03:20:37]SAM_PROTO_GetShiftState done [03:20:37]FM_GetShiftState done [03:20:37]opened in 1726359809 [03:20:37]opened+sec_in_day 1726446209 [03:20:37]quantity*price = 7000 [03:20:37]sum+1 = 7001 [03:20:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 11 15.09.2024 03:20 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92563 ФПД: 34009406125888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T032044&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92563&fm=34009406125888&tin=02508201610067®Number=0000000000091423&sum=7000 0 [03:20:39]StoreToDocumentArchive [03:20:39]shift 507 fd 92563 [03:20:39]save to /storage/0507/doc_00092563 [03:20:39]save last doc name /storage/0507/doc_00092563 to /storage/kkm_last_doc_name [03:20:39]save OK [03:20:39]Clear old archive folders... [03:20:39]ProcessDocumentItem done err = 0, tmpTLVsize=312 [03:20:39]tlvbuf is B6F336D0 [03:20:39]SAM_PROTO_ClearQueue [03:20:39]wFMCommunicate request_size=4 [03:20:39]MH_SAM_APDU [03:20:39]CAPDU: 80 09 00 00 [03:20:39]Write to MH i2c: E2 08 00 24 41 80 09 00 00 00 00 00 00 D7 [03:20:39]Write i2c OK [03:20:39]MH_I2C_Read... [03:20:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:20:39]Read from MH i2c: E2 [03:20:39]MH_I2C_Read... [03:20:39]Read from MH i2c: E2 03 00 [03:20:39]MH_I2C_Read... [03:20:39]Read from MH i2c: E2 03 00 24 41 00 90 00 D9 [03:20:39]RAPDU: 90 00 [03:20:39]wFMCommunicate OK [03:20:39]SAM_PROTO_ClearQueue done [03:20:39]KKMCreateOFDPacket [03:20:39]OFDProtocolAddRootSTLVToBuf [03:20:39]FM_MakeSignedData [03:20:39]FM_MakeSignedData [03:20:39]SAM_PROTO_SignData [03:20:39]wFMCommunicate request_size=4 [03:20:39]MH_SAM_APDU [03:20:39]CAPDU: 80 0D 01 02 [03:20:39]Write to MH i2c: E2 08 00 25 41 80 0D 01 02 00 00 00 00 DF [03:20:39]Write i2c OK [03:20:39]MH_I2C_Read... [03:20:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:20:39]Read from MH i2c: E2 [03:20:39]MH_I2C_Read... [03:20:39]Read from MH i2c: E2 03 00 [03:20:39]MH_I2C_Read... [03:20:39]Read from MH i2c: E2 03 00 25 41 00 90 00 DA [03:20:39]RAPDU: 90 00 [03:20:39]wFMCommunicate OK [03:20:39]wFMCommunicate request_size=255 [03:20:39]MH_SAM_APDU [03:20:39]CAPDU: 80 0D 02 02 FA 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 8C 52 E6 66 0E 04 04 00 FB [03:20:39]Write to MH i2c: E2 02 01 26 41 80 0D 02 02 FA 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 8C 52 E6 66 0E 04 04 00 FB 00 00 6F [03:20:39]Write i2c OK [03:20:39]MH_I2C_Read... [03:20:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:20:39]Read from MH i2c: E2 [03:20:39]MH_I2C_Read... [03:20:39]Read from MH i2c: E2 03 00 [03:20:39]MH_I2C_Read... [03:20:39]Read from MH i2c: E2 03 00 26 41 00 90 00 DB [03:20:39]RAPDU: 90 00 [03:20:39]wFMCommunicate OK [03:20:39]wFMCommunicate request_size=71 [03:20:39]MH_SAM_APDU [03:20:39]CAPDU: 80 0D 02 02 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 93 69 01 00 35 04 06 00 1E EE 6E 92 37 40 [03:20:39]Write to MH i2c: E2 4A 00 27 41 80 0D 02 02 42 00 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 93 69 01 00 35 04 06 00 1E EE 6E 92 37 40 00 00 7A [03:20:39]Write i2c OK [03:20:39]MH_I2C_Read... [03:20:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:20:39]Read from MH i2c: E2 [03:20:39]MH_I2C_Read... [03:20:39]Read from MH i2c: E2 03 00 [03:20:39]MH_I2C_Read... [03:20:39]Read from MH i2c: E2 03 00 27 41 00 90 00 DC [03:20:39]RAPDU: 90 00 [03:20:39]wFMCommunicate OK [03:20:39]wFMCommunicate request_size=4 [03:20:39]MH_SAM_APDU [03:20:39]CAPDU: 80 0D 03 02 [03:20:39]Write to MH i2c: E2 08 00 28 41 80 0D 03 02 00 00 00 00 E4 [03:20:39]Write i2c OK [03:20:39]MH_I2C_Read... [03:20:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:20:39]Read from MH i2c: E2 [03:20:39]MH_I2C_Read... [03:20:39]Read from MH i2c: E2 0B 00 [03:20:39]MH_I2C_Read... [03:20:39]Read from MH i2c: E2 0B 00 28 41 00 7C FC 90 A3 C4 0E E3 85 90 00 CA [03:20:39]RAPDU: 7C FC 90 A3 C4 0E E3 85 90 00 [03:20:39]wFMCommunicate OK [03:20:39]SAM_PROTO_SignData done [03:20:39]FM_MakeSignedData done [03:20:39]CreateOFDProtocolMessage [03:20:39]wFMCommunicate request_size=4 [03:20:39]MH_SAM_APDU [03:20:39]CAPDU: 80 11 00 00 [03:20:39]Write to MH i2c: E2 08 00 29 41 80 11 00 00 00 00 00 00 E4 [03:20:39]Write i2c OK [03:20:39]MH_I2C_Read... [03:20:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:20:39]Read from MH i2c: E2 [03:20:39]MH_I2C_Read... [03:20:39]Read from MH i2c: E2 17 00 [03:20:39]MH_I2C_Read... [03:20:39]Read from MH i2c: E2 17 00 29 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 3B [03:20:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [03:20:39]wFMCommunicate OK [03:20:39]CreateOFDProtocolMessage done [03:20:39]OFDSenderStorePacket 92563 [03:20:39]StoreOFDPacket docnum=92563 [03:20:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4C 01 00 00 65 7C 44 01 DB 44 5A 03 01 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 8C 52 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 93 69 01 00 35 04 06 00 1E EE 6E 92 37 40 7C FC 90 A3 C4 0E E3 85 [03:20:39]CheckFolder [03:20:39]dirname=/storage/ofd_packets [03:20:39]CheckFolder done [03:20:39]ProducePacketName [03:20:39]name=ofd_packets/00092563 [03:20:39]NVStorageSaveData ofd_packets/00092563 [03:20:39]File name is /storage/ofd_packets/00092563 [03:20:39]Write 362 bytes [03:20:39]NVStorageSaveData done [03:20:39]OFDSenderStorePacket done [03:20:39]KKMCreateOFDPacket done [03:20:39]NVStorageSaveData kkm_last_timestamp [03:20:39]File name is /storage/kkm_last_timestamp [03:20:39]Write 4 bytes [03:20:39]NVStorageSaveData done [03:20:39]ExternCall_PrintAddStr [03:20:39]wPrintStart [03:20:39]Write to MH i2c: 01 00 00 2A 41 6B [03:20:39]Write i2c OK [03:20:39]MH_I2C_Read... [03:20:39]Read from MH i2c: 01 [03:20:39]MH_I2C_Read... [03:20:39]Read from MH i2c: 01 07 00 [03:20:39]MH_I2C_Read... [03:20:39]Read from MH i2c: 01 07 00 2A 41 00 00 00 00 00 FF 0F 80 [03:20:39]RasterBufferAndPrint [03:20:39]line Счет N : (3)127454 [03:20:39]line ИНН: 02508201610067 [03:20:39]line Контрольно-Кассовый Чек [03:20:39]line ПРОДАЖА [03:20:39]line Товар: 4870202521186 [03:20:39]line Чай холодный MAXI черный со вкусом клубн [03:20:39]line 1.000 * 70.00 [03:20:39]line = 70.00 [03:20:39]line НДС 12% НСП 1% [03:20:39]line > о реализуемом товаре [03:20:39]line ИТОГО: 70.00 [03:20:39]line НСП 1% : 0.62 [03:20:39]line НДС 12% : 7.43 [03:20:39]line Наличными: 70.00 [03:20:39]line Безнал.: 0.00 [03:20:39]line Место: АЗС № 5 "Партнер Нефть" [03:20:39]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [03:20:39]line СНО: Общий режим [03:20:39]line Чек 11 15.09.2024 03:20 [03:20:39]line Смена: 507 ФФД: 1.0 [03:20:39]line ЗНМ: 03000000022 [03:20:39]line РНМ: 0000000000091423 [03:20:39]line Версия ККМ: 001 [03:20:39]line ФМ: 0000000000874692 [03:20:39]line ФД: 92563 [03:20:39]line ФПД: 34009406125888 [03:20:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T032044&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92563&fm=34009406125888&tin=02508201610067®Number=0000000000091423&sum=7000 [03:20:39]line 0 [03:20:39]OFD Sender: Processing packet 92563 [packets to send 63, broken 62] [03:20:39]ProducePacketName [03:20:39]name=ofd_packets/00092563 [03:20:39]OFD Sender: To server: pG, [03:20:39]CommunicateWithHost lk.salyk.kg:30040 [03:20:39]ConnectInit lk.salyk.kg [03:20:39]written 0, free lines is 4095 [03:20:40]Connected sock=10 [03:20:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4C 01 00 00 65 7C 44 01 DB 44 5A 03 01 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 8C 52 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 93 69 01 00 35 04 06 00 1E EE 6E 92 37 40 7C FC 90 A3 C4 0E E3 85 [03:20:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 8F 92 47 00 23 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 93 69 01 00 F4 03 04 00 05 FB E5 66 B6 04 01 00 00 D8 C0 78 BD 85 06 2B F1 [03:20:40]CommunicateWithHost err = 0 [03:20:40]CheckOFDResponse [03:20:40]1017 (14) - 77093643461234 [03:20:40]1041 (16) - 0000000000874692 [03:20:40]1040 (4) - 92563 [03:20:40]1012 (4) - 14.09.2024 21:07 [03:20:40]1206 (1) - 0 [03:20:40]OFD Sender: Remove packet 92563 [03:20:40]ProducePacketName [03:20:40]name=ofd_packets/00092563 [03:20:40]NVStorageDeleteData [03:20:40]Write to MH i2c: 01 00 00 53 41 94 [03:20:40]Write i2c OK [03:20:40]MH_I2C_Read... [03:20:40]Read from MH i2c: 01 [03:20:40]MH_I2C_Read... [03:20:40]Read from MH i2c: 01 07 00 [03:20:40]MH_I2C_Read... [03:20:40]Read from MH i2c: 01 07 00 53 41 00 00 00 00 00 15 0D BD [03:20:40]RasterBufferAndPrint [03:20:40]line [03:20:40]line [03:20:40]line [03:20:40]line [03:20:40]line [03:20:40]written 0, free lines is 3357 [03:20:40]MH_Cut [03:20:40]Write to MH i2c: D1 01 00 5A 41 01 6D [03:20:40]Write i2c OK [03:20:40]MH_I2C_Read... [03:20:40]Read from MH i2c: D1 [03:20:40]MH_I2C_Read... [03:20:40]Read from MH i2c: D1 01 00 [03:20:40]MH_I2C_Read... [03:20:40]Read from MH i2c: D1 01 00 5A 41 00 6C [03:20:40]Write to MH i2c: 01 00 00 5B 41 9C [03:20:40]Write i2c OK [03:20:40]MH_I2C_Read... [03:20:40]OFD Sender: No OFD packet to send [03:20:41]*** Cut start [03:20:41]*** Purtial cut [03:20:41]*** Stage 1: CUTSNS_PIN = 1 [03:20:43]Read from MH i2c: 01 [03:20:43]MH_I2C_Read... [03:20:43]*** Stop cut motor [03:20:43]*** Cut end [03:20:43]Read from MH i2c: 01 07 00 [03:20:43]MH_I2C_Read... [03:20:43]Read from MH i2c: 01 07 00 5B 41 00 00 00 00 00 FF 0F B1 [03:20:43]process_action close_receipt done [03:20:43]requested_data is exist [03:20:43]produce_requested_data [03:20:43]requested_item fm.sn is exist - process it [03:20:43]wFMCommunicate request_size=4 [03:20:43]MH_SAM_APDU [03:20:43]CAPDU: 80 11 00 00 [03:20:43]Write to MH i2c: E2 08 00 5C 41 80 11 00 00 00 00 00 00 17 [03:20:43]Write i2c OK [03:20:43]MH_I2C_Read... [03:20:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:20:43]Read from MH i2c: E2 [03:20:43]MH_I2C_Read... [03:20:43]Read from MH i2c: E2 17 00 [03:20:43]MH_I2C_Read... [03:20:43]Read from MH i2c: E2 17 00 5C 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 6E [03:20:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [03:20:43]wFMCommunicate OK [03:20:43]requested_item fd.num is exist - process it [03:20:43]SAM_PROTO_GetFieldsCounters [03:20:43]wFMCommunicate request_size=4 [03:20:43]MH_SAM_APDU [03:20:43]CAPDU: 80 13 00 00 [03:20:43]Write to MH i2c: E2 08 00 5D 41 80 13 00 00 00 00 00 00 1A [03:20:43]Write i2c OK [03:20:43]MH_I2C_Read... [03:20:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:20:43]Read from MH i2c: E2 [03:20:43]MH_I2C_Read... [03:20:43]Read from MH i2c: E2 62 00 [03:20:43]MH_I2C_Read... [03:20:43]Read from MH i2c: E2 62 00 5D 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 93 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [03:20:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 93 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:20:43]wFMCommunicate OK [03:20:43]SAM_PROTO_GetFieldsCounters done [03:20:43]requested_item shift.num is exist - process it [03:20:43]requested_item shift.opened is exist - process it [03:20:43]req_shift_opened [03:20:43]FM_GetShiftState [03:20:43]SAM_PROTO_GetShiftState [03:20:43]wFMCommunicate request_size=4 [03:20:43]MH_SAM_APDU [03:20:43]CAPDU: 80 13 01 00 [03:20:43]Write to MH i2c: E2 08 00 5E 41 80 13 01 00 00 00 00 00 1C [03:20:43]Write i2c OK [03:20:43]MH_I2C_Read... [03:20:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:20:43]Read from MH i2c: E2 [03:20:43]MH_I2C_Read... [03:20:43]Read from MH i2c: E2 0E 00 [03:20:43]MH_I2C_Read... [03:20:43]Read from MH i2c: E2 0E 00 5E 41 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 9E [03:20:43]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [03:20:43]wFMCommunicate OK [03:20:43]SAM_PROTO_GetShiftState done [03:20:43]FM_GetShiftState done [03:20:43]req_shift_opened done [03:20:43]requested_item shift.open_date is exist - process it [03:20:43]req_shift_open_date [03:20:43]req_shift_open_date done [03:20:43]produce_requested_data done [03:20:43]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92563,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [03:20:43]process_action_free close_receipt [03:20:43]json_value_free [03:20:43]json_value_free done [03:20:43]process_json_proto returns [03:20:43]Send response to host [03:20:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92563,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [03:20:43]free response buf [03:20:43]execute_script done [03:20:43]execute_script returns [03:20:43]free content buf [03:20:43]Sock 9.Close socket [03:20:43]Sock 9.Thread stoped [03:20:45]OFD Sender: No OFD packet to send [03:20:50]OFD Sender: No OFD packet to send [03:20:55]OFD Sender: No OFD packet to send [03:21:00]OFD Sender: No OFD packet to send [03:21:05]OFD Sender: No OFD packet to send [03:21:10]OFD Sender: No OFD packet to send [03:21:15]OFD Sender: No OFD packet to send [03:21:20]OFD Sender: No OFD packet to send [03:21:25]OFD Sender: No OFD packet to send [03:21:30]OFD Sender: No OFD packet to send [03:21:35]OFD Sender: No OFD packet to send [03:21:40]OFD Sender: No OFD packet to send [03:21:45]OFD Sender: No OFD packet to send [03:21:50]OFD Sender: No OFD packet to send [03:21:55]OFD Sender: No OFD packet to send [03:22:00]OFD Sender: No OFD packet to send [03:22:05]OFD Sender: No OFD packet to send [03:22:10]OFD Sender: No OFD packet to send [03:22:15]OFD Sender: No OFD packet to send [03:22:20]OFD Sender: No OFD packet to send [03:22:25]OFD Sender: No OFD packet to send [03:22:30]OFD Sender: No OFD packet to send [03:22:35]OFD Sender: No OFD packet to send [03:22:40]OFD Sender: No OFD packet to send [03:22:45]OFD Sender: No OFD packet to send [03:22:50]OFD Sender: No OFD packet to send [03:22:55]OFD Sender: No OFD packet to send [03:23:00]OFD Sender: No OFD packet to send [03:23:05]OFD Sender: No OFD packet to send [03:23:10]OFD Sender: No OFD packet to send [03:23:15]OFD Sender: No OFD packet to send [03:23:20]OFD Sender: No OFD packet to send [03:23:25]OFD Sender: No OFD packet to send [03:23:30]OFD Sender: No OFD packet to send [03:23:35]OFD Sender: No OFD packet to send [03:23:40]OFD Sender: No OFD packet to send [03:23:45]OFD Sender: No OFD packet to send [03:23:50]OFD Sender: No OFD packet to send [03:23:55]OFD Sender: No OFD packet to send [03:24:00]OFD Sender: No OFD packet to send [03:24:05]OFD Sender: No OFD packet to send [03:24:10]OFD Sender: No OFD packet to send [03:24:15]OFD Sender: No OFD packet to send [03:24:20]OFD Sender: No OFD packet to send [03:24:25]OFD Sender: No OFD packet to send [03:24:30]OFD Sender: No OFD packet to send [03:24:35]OFD Sender: No OFD packet to send [03:24:40]OFD Sender: No OFD packet to send [03:24:45]OFD Sender: No OFD packet to send [03:24:50]OFD Sender: No OFD packet to send [03:24:56]OFD Sender: No OFD packet to send [03:25:01]OFD Sender: No OFD packet to send [03:25:06]OFD Sender: No OFD packet to send [03:25:11]OFD Sender: No OFD packet to send [03:25:16]OFD Sender: No OFD packet to send [03:25:21]OFD Sender: No OFD packet to send [03:25:26]OFD Sender: No OFD packet to send [03:25:31]OFD Sender: No OFD packet to send [03:25:36]OFD Sender: No OFD packet to send [03:25:41]OFD Sender: No OFD packet to send [03:25:46]OFD Sender: No OFD packet to send [03:25:51]OFD Sender: No OFD packet to send [03:25:56]OFD Sender: No OFD packet to send [03:26:01]OFD Sender: No OFD packet to send [03:26:06]OFD Sender: No OFD packet to send [03:26:11]OFD Sender: No OFD packet to send [03:26:16]OFD Sender: No OFD packet to send [03:26:21]OFD Sender: No OFD packet to send [03:26:26]OFD Sender: No OFD packet to send [03:26:31]OFD Sender: No OFD packet to send [03:26:36]OFD Sender: No OFD packet to send [03:26:41]OFD Sender: No OFD packet to send [03:26:46]OFD Sender: No OFD packet to send [03:26:51]OFD Sender: No OFD packet to send [03:26:56]OFD Sender: No OFD packet to send [03:27:01]OFD Sender: No OFD packet to send [03:27:06]OFD Sender: No OFD packet to send [03:27:11]OFD Sender: No OFD packet to send [03:27:16]OFD Sender: No OFD packet to send [03:27:21]OFD Sender: No OFD packet to send [03:27:26]OFD Sender: No OFD packet to send [03:27:31]OFD Sender: No OFD packet to send [03:27:36]OFD Sender: No OFD packet to send [03:27:41]OFD Sender: No OFD packet to send [03:27:46]OFD Sender: No OFD packet to send [03:27:51]OFD Sender: No OFD packet to send [03:27:56]OFD Sender: No OFD packet to send [03:28:01]OFD Sender: No OFD packet to send [03:28:06]OFD Sender: No OFD packet to send [03:28:11]OFD Sender: No OFD packet to send [03:28:16]OFD Sender: No OFD packet to send [03:28:21]OFD Sender: No OFD packet to send [03:28:26]OFD Sender: No OFD packet to send [03:28:31]OFD Sender: No OFD packet to send [03:28:36]OFD Sender: No OFD packet to send [03:28:41]OFD Sender: No OFD packet to send [03:28:46]OFD Sender: No OFD packet to send [03:28:51]OFD Sender: No OFD packet to send [03:28:56]OFD Sender: No OFD packet to send [03:29:01]OFD Sender: No OFD packet to send [03:29:06]OFD Sender: No OFD packet to send [03:29:11]OFD Sender: No OFD packet to send [03:29:16]OFD Sender: No OFD packet to send [03:29:21]OFD Sender: No OFD packet to send [03:29:26]OFD Sender: No OFD packet to send [03:29:31]OFD Sender: No OFD packet to send [03:29:36]OFD Sender: No OFD packet to send [03:29:41]OFD Sender: No OFD packet to send [03:29:46]OFD Sender: No OFD packet to send [03:29:51]OFD Sender: No OFD packet to send [03:29:56]OFD Sender: No OFD packet to send [03:30:01]OFD Sender: No OFD packet to send [03:30:06]OFD Sender: No OFD packet to send [03:30:11]OFD Sender: No OFD packet to send [03:30:16]OFD Sender: No OFD packet to send [03:30:21]OFD Sender: No OFD packet to send [03:30:26]OFD Sender: No OFD packet to send [03:30:31]OFD Sender: No OFD packet to send [03:30:36]OFD Sender: No OFD packet to send [03:30:41]OFD Sender: No OFD packet to send [03:30:42]accept exits with 8 [03:30:42]New connection [03:30:42]New thread 3066658148 created [03:30:42]Thread 3066801508 joined [03:30:42]Waiting for new connection... [03:30:42] Sock 8.Parse request [03:30:42]Sock 8.Check first char [03:30:42]Sock 8.First char is OK [03:30:42]request: POST /json_proto HTTP/1.0 [03:30:42]Method: POST [03:30:42]URL: /json_proto [03:30:42]Method is POST - this is cgi request [03:30:42]url: /json_proto [03:30:42]query_string will be loaded in cgi processing [03:30:42]execute_cgi json_proto POST (null) [03:30:42]execute_cgi path=json_proto method=POST [03:30:42]POST find Content-Length [03:30:42]Host: 172.17.57.71:8080 [03:30:42]Content-Length: 618 [03:30:42]Content-Type: application/json [03:30:42] [03:30:42]POST finish read [03:30:42]Found Content-Length = 618 [03:30:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127455", "tax_sys" : 0, "items" : [ { "code": "4630002599255", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super T-3 1\u043B", "price" : 500.00, "quantity" : 1.000, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:30:42]execute_script... [03:30:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127455", "tax_sys" : 0, "items" : [ { "code": "4630002599255", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super T-3 1\u043B", "price" : 500.00, "quantity" : 1.000, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:30:42]POST & json_proto [03:30:42]process_json_proto [03:30:42]json parsed OK: [03:30:42]protocol is kg_v1.0 [03:30:42]action value=close_receipt [03:30:42]process_action close_receipt [03:30:42]cmd_close_receipt [03:30:42]MH_GetDate [03:30:42]Write to MH i2c: F0 00 00 5F 41 8F [03:30:42]Write i2c OK [03:30:42]MH_I2C_Read... [03:30:42]Read from MH i2c: F0 [03:30:42]MH_I2C_Read... [03:30:42]Read from MH i2c: F0 09 00 [03:30:42]MH_I2C_Read... [03:30:42]Read from MH i2c: F0 09 00 5F 41 00 E9 54 E6 66 33 3A A4 66 98 [03:30:42]GetLastDocTimeStamp 1726370444 [03:30:42]current date 1726371049 [03:30:42]FM_GetShiftState [03:30:42]SAM_PROTO_GetShiftState [03:30:42]wFMCommunicate request_size=4 [03:30:42]MH_SAM_APDU [03:30:42]CAPDU: 80 13 01 00 [03:30:42]Write to MH i2c: E2 08 00 60 41 80 13 01 00 00 00 00 00 1E [03:30:42]Write i2c OK [03:30:42]MH_I2C_Read... [03:30:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:30:42]Read from MH i2c: E2 [03:30:42]MH_I2C_Read... [03:30:42]Read from MH i2c: E2 0E 00 [03:30:42]MH_I2C_Read... [03:30:42]Read from MH i2c: E2 0E 00 60 41 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 A0 [03:30:42]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [03:30:42]wFMCommunicate OK [03:30:42]SAM_PROTO_GetShiftState done [03:30:42]FM_GetShiftState done [03:30:42]opened in 1726359809 [03:30:42]opened+sec_in_day 1726446209 [03:30:42]quantity*price = 50000 [03:30:42]sum+1 = 50001 [03:30:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 12 15.09.2024 03:30 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92564 ФПД: 222613463074642 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T033049&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92564&fm=222613463074642&tin=02508201610067®Number=0000000000091423&sum=50000 0 [03:30:43]StoreToDocumentArchive [03:30:43]shift 507 fd 92564 [03:30:43]save to /storage/0507/doc_00092564 [03:30:43]save last doc name /storage/0507/doc_00092564 to /storage/kkm_last_doc_name [03:30:43]save OK [03:30:43]Clear old archive folders... [03:30:43]ProcessDocumentItem done err = 0, tmpTLVsize=278 [03:30:43]tlvbuf is B6F30680 [03:30:43]SAM_PROTO_ClearQueue [03:30:43]wFMCommunicate request_size=4 [03:30:43]MH_SAM_APDU [03:30:43]CAPDU: 80 09 00 00 [03:30:43]Write to MH i2c: E2 08 00 6D 41 80 09 00 00 00 00 00 00 20 [03:30:43]Write i2c OK [03:30:43]MH_I2C_Read... [03:30:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:30:43]Read from MH i2c: E2 [03:30:43]MH_I2C_Read... [03:30:43]Read from MH i2c: E2 03 00 [03:30:43]MH_I2C_Read... [03:30:44]Read from MH i2c: E2 03 00 6D 41 00 90 00 22 [03:30:44]RAPDU: 90 00 [03:30:44]wFMCommunicate OK [03:30:44]SAM_PROTO_ClearQueue done [03:30:44]KKMCreateOFDPacket [03:30:44]OFDProtocolAddRootSTLVToBuf [03:30:44]FM_MakeSignedData [03:30:44]FM_MakeSignedData [03:30:44]SAM_PROTO_SignData [03:30:44]wFMCommunicate request_size=4 [03:30:44]MH_SAM_APDU [03:30:44]CAPDU: 80 0D 01 02 [03:30:44]Write to MH i2c: E2 08 00 6E 41 80 0D 01 02 00 00 00 00 28 [03:30:44]Write i2c OK [03:30:44]MH_I2C_Read... [03:30:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:30:44]Read from MH i2c: E2 [03:30:44]MH_I2C_Read... [03:30:44]Read from MH i2c: E2 03 00 [03:30:44]MH_I2C_Read... [03:30:44]Read from MH i2c: E2 03 00 6E 41 00 90 00 23 [03:30:44]RAPDU: 90 00 [03:30:44]wFMCommunicate OK [03:30:44]wFMCommunicate request_size=255 [03:30:44]MH_SAM_APDU [03:30:44]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 32 35 35 06 04 24 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 54 2D 33 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 C3 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 E9 54 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 [03:30:44]Write to MH i2c: E2 02 01 6F 41 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 32 35 35 06 04 24 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 54 2D 33 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 C3 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 E9 54 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 00 00 D3 [03:30:44]Write i2c OK [03:30:44]MH_I2C_Read... [03:30:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:30:44]Read from MH i2c: E2 [03:30:44]MH_I2C_Read... [03:30:44]Read from MH i2c: E2 03 00 [03:30:44]MH_I2C_Read... [03:30:44]Read from MH i2c: E2 03 00 6F 41 00 90 00 24 [03:30:44]RAPDU: 90 00 [03:30:44]wFMCommunicate OK [03:30:44]wFMCommunicate request_size=37 [03:30:44]MH_SAM_APDU [03:30:44]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 94 69 01 00 35 04 06 00 CA 77 3C 63 87 52 [03:30:44]Write to MH i2c: E2 28 00 70 41 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 94 69 01 00 35 04 06 00 CA 77 3C 63 87 52 00 00 3D [03:30:44]Write i2c OK [03:30:44]MH_I2C_Read... [03:30:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:30:44]Read from MH i2c: E2 [03:30:44]MH_I2C_Read... [03:30:44]Read from MH i2c: E2 03 00 [03:30:44]MH_I2C_Read... [03:30:44]Read from MH i2c: E2 03 00 70 41 00 90 00 25 [03:30:44]RAPDU: 90 00 [03:30:44]wFMCommunicate OK [03:30:44]wFMCommunicate request_size=4 [03:30:44]MH_SAM_APDU [03:30:44]CAPDU: 80 0D 03 02 [03:30:44]Write to MH i2c: E2 08 00 71 41 80 0D 03 02 00 00 00 00 2D [03:30:44]Write i2c OK [03:30:44]MH_I2C_Read... [03:30:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:30:44]Read from MH i2c: E2 [03:30:44]MH_I2C_Read... [03:30:44]Read from MH i2c: E2 0B 00 [03:30:44]MH_I2C_Read... [03:30:44]Read from MH i2c: E2 0B 00 71 41 00 7A 1F B1 D5 F9 34 88 3D 90 00 3F [03:30:44]RAPDU: 7A 1F B1 D5 F9 34 88 3D 90 00 [03:30:44]wFMCommunicate OK [03:30:44]SAM_PROTO_SignData done [03:30:44]FM_MakeSignedData done [03:30:44]CreateOFDProtocolMessage [03:30:44]wFMCommunicate request_size=4 [03:30:44]MH_SAM_APDU [03:30:44]CAPDU: 80 11 00 00 [03:30:44]Write to MH i2c: E2 08 00 72 41 80 11 00 00 00 00 00 00 2D [03:30:44]Write i2c OK [03:30:44]MH_I2C_Read... [03:30:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:30:44]Read from MH i2c: E2 [03:30:44]MH_I2C_Read... [03:30:44]Read from MH i2c: E2 17 00 [03:30:44]MH_I2C_Read... [03:30:44]Read from MH i2c: E2 17 00 72 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 84 [03:30:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [03:30:44]wFMCommunicate OK [03:30:44]CreateOFDProtocolMessage done [03:30:44]OFDSenderStorePacket 92564 [03:30:44]StoreOFDPacket docnum=92564 [03:30:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2A 01 00 00 49 0A 22 01 31 6F 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 32 35 35 06 04 24 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 54 2D 33 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 C3 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 E9 54 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 94 69 01 00 35 04 06 00 CA 77 3C 63 87 52 7A 1F B1 D5 F9 34 88 3D [03:30:44]CheckFolder [03:30:44]dirname=/storage/ofd_packets [03:30:44]CheckFolder done [03:30:44]ProducePacketName [03:30:44]name=ofd_packets/00092564 [03:30:44]NVStorageSaveData ofd_packets/00092564 [03:30:44]File name is /storage/ofd_packets/00092564 [03:30:44]Write 328 bytes [03:30:44]NVStorageSaveData done [03:30:44]OFDSenderStorePacket done [03:30:44]KKMCreateOFDPacket done [03:30:44]NVStorageSaveData kkm_last_timestamp [03:30:44]File name is /storage/kkm_last_timestamp [03:30:44]Write 4 bytes [03:30:44]NVStorageSaveData done [03:30:44]ExternCall_PrintAddStr [03:30:44]wPrintStart [03:30:44]Write to MH i2c: 01 00 00 73 41 B4 [03:30:44]Write i2c OK [03:30:44]MH_I2C_Read... [03:30:44]Read from MH i2c: 01 [03:30:44]MH_I2C_Read... [03:30:44]Read from MH i2c: 01 07 00 [03:30:44]MH_I2C_Read... [03:30:44]Read from MH i2c: 01 07 00 73 41 00 00 00 00 00 FF 0F C9 [03:30:44]RasterBufferAndPrint [03:30:44]line Счет N : (3)127455 [03:30:44]line ИНН: 02508201610067 [03:30:44]line Контрольно-Кассовый Чек [03:30:44]line ПРОДАЖА [03:30:44]line Товар: 4630002599255 [03:30:44]line Масло Gazpromneft Super T-3 1л [03:30:44]line 1.000 * 500.00 [03:30:44]line = 500.00 [03:30:44]line НДС 12% НСП 1% [03:30:44]line > о реализуемом товаре [03:30:44]line ИТОГО: 500.00 [03:30:44]line НСП 1% : 4.42 [03:30:44]line НДС 12% : 53.10 [03:30:44]line Наличными: 500.00 [03:30:44]line Безнал.: 0.00 [03:30:44]line Место: АЗС № 5 "Партнер Нефть" [03:30:44]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [03:30:44]line СНО: Общий режим [03:30:44]line Чек 12 15.09.2024 03:30 [03:30:44]line Смена: 507 ФФД: 1.0 [03:30:44]line ЗНМ: 03000000022 [03:30:44]line РНМ: 0000000000091423 [03:30:44]line Версия ККМ: 001 [03:30:44]line ФМ: 0000000000874692 [03:30:44]line ФД: 92564 [03:30:44]line ФПД: 222613463074642 [03:30:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T033049&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92564&fm=222613463074642&tin=02508201610067®Number=0000000000091423&sum=50000 [03:30:44]OFD Sender: Processing packet 92564 [packets to send 63, broken 62] [03:30:44]ProducePacketName [03:30:44]name=ofd_packets/00092564 [03:30:44]OFD Sender: To server: pG, [03:30:44]CommunicateWithHost lk.salyk.kg:30040 [03:30:44]ConnectInit lk.salyk.kg [03:30:44]line 0 [03:30:44]written 0, free lines is 4095 [03:30:44]Connected sock=10 [03:30:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2A 01 00 00 49 0A 22 01 31 6F 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 32 35 35 06 04 24 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 54 2D 33 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 C3 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 E9 54 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 94 69 01 00 35 04 06 00 CA 77 3C 63 87 52 7A 1F B1 D5 F9 34 88 3D [03:30:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 D4 B8 47 00 A4 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 94 69 01 00 F4 03 04 00 62 FD E5 66 B6 04 01 00 00 86 59 D9 1B 26 34 CA 18 [03:30:45]CommunicateWithHost err = 0 [03:30:45]CheckOFDResponse [03:30:45]1017 (14) - 77093643461234 [03:30:45]1041 (16) - 0000000000874692 [03:30:45]1040 (4) - 92564 [03:30:45]1012 (4) - 14.09.2024 21:17 [03:30:45]1206 (1) - 0 [03:30:45]OFD Sender: Remove packet 92564 [03:30:45]ProducePacketName [03:30:45]name=ofd_packets/00092564 [03:30:45]NVStorageDeleteData [03:30:45]Write to MH i2c: 01 00 00 9C 41 DD [03:30:45]Write i2c OK [03:30:45]MH_I2C_Read... [03:30:45]Read from MH i2c: 01 [03:30:45]MH_I2C_Read... [03:30:45]Read from MH i2c: 01 07 00 [03:30:45]MH_I2C_Read... [03:30:45]Read from MH i2c: 01 07 00 9C 41 00 00 00 00 00 0F 0D 00 [03:30:45]RasterBufferAndPrint [03:30:45]line [03:30:45]line [03:30:45]line [03:30:45]line [03:30:45]line [03:30:45]written 0, free lines is 3351 [03:30:45]MH_Cut [03:30:45]Write to MH i2c: D1 01 00 A3 41 01 B6 [03:30:45]Write i2c OK [03:30:45]MH_I2C_Read... [03:30:45]Read from MH i2c: D1 [03:30:45]MH_I2C_Read... [03:30:45]Read from MH i2c: D1 01 00 [03:30:45]MH_I2C_Read... [03:30:45]Read from MH i2c: D1 01 00 A3 41 00 B5 [03:30:45]Write to MH i2c: 01 00 00 A4 41 E5 [03:30:45]Write i2c OK [03:30:45]MH_I2C_Read... [03:30:45]OFD Sender: No OFD packet to send [03:30:45]*** Cut start [03:30:45]*** Purtial cut [03:30:45]*** Stage 1: CUTSNS_PIN = 1 [03:30:47]Read from MH i2c: 01 [03:30:47]MH_I2C_Read... [03:30:47]*** Stop cut motor [03:30:47]*** Cut end [03:30:47]Read from MH i2c: 01 07 00 [03:30:47]MH_I2C_Read... [03:30:47]Read from MH i2c: 01 07 00 A4 41 00 00 00 00 00 FF 0F FA [03:30:47]process_action close_receipt done [03:30:47]requested_data is exist [03:30:47]produce_requested_data [03:30:47]requested_item fm.sn is exist - process it [03:30:47]wFMCommunicate request_size=4 [03:30:47]MH_SAM_APDU [03:30:47]CAPDU: 80 11 00 00 [03:30:47]Write to MH i2c: E2 08 00 A5 41 80 11 00 00 00 00 00 00 60 [03:30:47]Write i2c OK [03:30:47]MH_I2C_Read... [03:30:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:30:47]Read from MH i2c: E2 [03:30:47]MH_I2C_Read... [03:30:47]Read from MH i2c: E2 17 00 [03:30:47]MH_I2C_Read... [03:30:47]Read from MH i2c: E2 17 00 A5 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B7 [03:30:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [03:30:48]wFMCommunicate OK [03:30:48]requested_item fd.num is exist - process it [03:30:48]SAM_PROTO_GetFieldsCounters [03:30:48]wFMCommunicate request_size=4 [03:30:48]MH_SAM_APDU [03:30:48]CAPDU: 80 13 00 00 [03:30:48]Write to MH i2c: E2 08 00 A6 41 80 13 00 00 00 00 00 00 63 [03:30:48]Write i2c OK [03:30:48]MH_I2C_Read... [03:30:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:30:48]Read from MH i2c: E2 [03:30:48]MH_I2C_Read... [03:30:48]Read from MH i2c: E2 62 00 [03:30:48]MH_I2C_Read... [03:30:48]Read from MH i2c: E2 62 00 A6 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 94 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [03:30:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 94 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:30:48]wFMCommunicate OK [03:30:48]SAM_PROTO_GetFieldsCounters done [03:30:48]requested_item shift.num is exist - process it [03:30:48]requested_item shift.opened is exist - process it [03:30:48]req_shift_opened [03:30:48]FM_GetShiftState [03:30:48]SAM_PROTO_GetShiftState [03:30:48]wFMCommunicate request_size=4 [03:30:48]MH_SAM_APDU [03:30:48]CAPDU: 80 13 01 00 [03:30:48]Write to MH i2c: E2 08 00 A7 41 80 13 01 00 00 00 00 00 65 [03:30:48]Write i2c OK [03:30:48]MH_I2C_Read... [03:30:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:30:48]Read from MH i2c: E2 [03:30:48]MH_I2C_Read... [03:30:48]Read from MH i2c: E2 0E 00 [03:30:48]MH_I2C_Read... [03:30:48]Read from MH i2c: E2 0E 00 A7 41 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 E7 [03:30:48]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [03:30:48]wFMCommunicate OK [03:30:48]SAM_PROTO_GetShiftState done [03:30:48]FM_GetShiftState done [03:30:48]req_shift_opened done [03:30:48]requested_item shift.open_date is exist - process it [03:30:48]req_shift_open_date [03:30:48]req_shift_open_date done [03:30:48]produce_requested_data done [03:30:48]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92564,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [03:30:48]process_action_free close_receipt [03:30:48]json_value_free [03:30:48]json_value_free done [03:30:48]process_json_proto returns [03:30:48]Send response to host [03:30:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92564,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [03:30:48]free response buf [03:30:48]execute_script done [03:30:48]execute_script returns [03:30:48]free content buf [03:30:48]Sock 8.Close socket [03:30:48]Sock 8.Thread stoped [03:30:50]OFD Sender: No OFD packet to send [03:30:55]OFD Sender: No OFD packet to send [03:31:00]OFD Sender: No OFD packet to send [03:31:05]OFD Sender: No OFD packet to send [03:31:10]OFD Sender: No OFD packet to send [03:31:15]OFD Sender: No OFD packet to send [03:31:16]accept exits with 9 [03:31:16]New connection [03:31:16]New thread 3066801508 created [03:31:16]Thread 3066658148 joined [03:31:16]Waiting for new connection... [03:31:16] Sock 9.Parse request [03:31:16]Sock 9.Check first char [03:31:16]Sock 9.First char is OK [03:31:16]request: POST /json_proto HTTP/1.0 [03:31:16]Method: POST [03:31:16]URL: /json_proto [03:31:16]Method is POST - this is cgi request [03:31:16]url: /json_proto [03:31:16]query_string will be loaded in cgi processing [03:31:16]execute_cgi json_proto POST (null) [03:31:16]execute_cgi path=json_proto method=POST [03:31:16]POST find Content-Length [03:31:16]Host: 172.17.57.71:8080 [03:31:16]Content-Length: 1175 [03:31:16]Content-Type: application/json [03:31:16] [03:31:16]POST finish read [03:31:16]Found Content-Length = 1175 [03:31:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127456", "tax_sys" : 0, "items" : [ { "code": "2000032760017", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043C\u044F\u0441\u043E110\u0433", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:31:16]execute_script... [03:31:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127456", "tax_sys" : 0, "items" : [ { "code": "2000032760017", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043C\u044F\u0441\u043E110\u0433", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:31:16]POST & json_proto [03:31:16]process_json_proto [03:31:16]json parsed OK: [03:31:16]protocol is kg_v1.0 [03:31:16]action value=close_receipt [03:31:16]process_action close_receipt [03:31:16]cmd_close_receipt [03:31:16]MH_GetDate [03:31:16]Write to MH i2c: F0 00 00 A8 41 D8 [03:31:16]Write i2c OK [03:31:16]MH_I2C_Read... [03:31:16]Read from MH i2c: F0 [03:31:16]MH_I2C_Read... [03:31:16]Read from MH i2c: F0 09 00 [03:31:16]MH_I2C_Read... [03:31:16]Read from MH i2c: F0 09 00 A8 41 00 0A 55 E6 66 33 3A A4 66 03 [03:31:16]GetLastDocTimeStamp 1726371049 [03:31:16]current date 1726371082 [03:31:16]FM_GetShiftState [03:31:16]SAM_PROTO_GetShiftState [03:31:16]wFMCommunicate request_size=4 [03:31:16]MH_SAM_APDU [03:31:16]CAPDU: 80 13 01 00 [03:31:16]Write to MH i2c: E2 08 00 A9 41 80 13 01 00 00 00 00 00 67 [03:31:16]Write i2c OK [03:31:16]MH_I2C_Read... [03:31:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:31:16]Read from MH i2c: E2 [03:31:16]MH_I2C_Read... [03:31:16]Read from MH i2c: E2 0E 00 [03:31:16]MH_I2C_Read... [03:31:16]Read from MH i2c: E2 0E 00 A9 41 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 E9 [03:31:16]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [03:31:16]wFMCommunicate OK [03:31:16]SAM_PROTO_GetShiftState done [03:31:16]FM_GetShiftState done [03:31:16]opened in 1726359809 [03:31:16]opened+sec_in_day 1726446209 [03:31:16]quantity*price = 13000 [03:31:16]sum+1 = 13001 [03:31:16]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000027450 Напиток FuzeTea чай манго,ром 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.81 НДС 12% : 21.76 Наличными: 0.00 Безнал.: 205.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 13 15.09.2024 03:31 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92565 ФПД: 156583302376803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T033122&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92565&fm=156583302376803&tin=02508201610067®Number=0000000000091423&sum=20500 0 [03:31:17]StoreToDocumentArchive [03:31:17]shift 507 fd 92565 [03:31:17]save to /storage/0507/doc_00092565 [03:31:17]save last doc name /storage/0507/doc_00092565 to /storage/kkm_last_doc_name [03:31:17]save OK [03:31:17]Clear old archive folders... [03:31:17]ProcessDocumentItem done err = 0, tmpTLVsize=419 [03:31:17]tlvbuf is 0101E920 [03:31:17]SAM_PROTO_ClearQueue [03:31:17]wFMCommunicate request_size=4 [03:31:17]MH_SAM_APDU [03:31:17]CAPDU: 80 09 00 00 [03:31:17]Write to MH i2c: E2 08 00 B6 41 80 09 00 00 00 00 00 00 69 [03:31:17]Write i2c OK [03:31:17]MH_I2C_Read... [03:31:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:31:17]Read from MH i2c: E2 [03:31:17]MH_I2C_Read... [03:31:17]Read from MH i2c: E2 03 00 [03:31:17]MH_I2C_Read... [03:31:17]Read from MH i2c: E2 03 00 B6 41 00 90 00 6B [03:31:17]RAPDU: 90 00 [03:31:17]wFMCommunicate OK [03:31:17]SAM_PROTO_ClearQueue done [03:31:17]KKMCreateOFDPacket [03:31:17]OFDProtocolAddRootSTLVToBuf [03:31:17]FM_MakeSignedData [03:31:17]FM_MakeSignedData [03:31:17]SAM_PROTO_SignData [03:31:17]wFMCommunicate request_size=4 [03:31:17]MH_SAM_APDU [03:31:17]CAPDU: 80 0D 01 02 [03:31:17]Write to MH i2c: E2 08 00 B7 41 80 0D 01 02 00 00 00 00 71 [03:31:17]Write i2c OK [03:31:17]MH_I2C_Read... [03:31:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:31:17]Read from MH i2c: E2 [03:31:17]MH_I2C_Read... [03:31:17]Read from MH i2c: E2 03 00 [03:31:17]MH_I2C_Read... [03:31:17]Read from MH i2c: E2 03 00 B7 41 00 90 00 6C [03:31:17]RAPDU: 90 00 [03:31:17]wFMCommunicate OK [03:31:17]wFMCommunicate request_size=255 [03:31:17]MH_SAM_APDU [03:31:17]CAPDU: 80 0D 02 02 FA 03 00 A3 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 [03:31:17]Write to MH i2c: E2 02 01 B8 41 80 0D 02 02 FA 00 03 00 A3 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 00 00 F7 [03:31:17]Write i2c OK [03:31:17]MH_I2C_Read... [03:31:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:31:17]Read from MH i2c: E2 [03:31:17]MH_I2C_Read... [03:31:17]Read from MH i2c: E2 03 00 [03:31:17]MH_I2C_Read... [03:31:17]Read from MH i2c: E2 03 00 B8 41 00 90 00 6D [03:31:17]RAPDU: 90 00 [03:31:17]wFMCommunicate OK [03:31:17]wFMCommunicate request_size=178 [03:31:17]MH_SAM_APDU [03:31:17]CAPDU: 80 0D 02 02 AD 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 0A 55 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 95 69 01 00 35 04 06 00 8E 69 64 1D AD 63 [03:31:17]Write to MH i2c: E2 B5 00 B9 41 80 0D 02 02 AD 00 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 0A 55 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 95 69 01 00 35 04 06 00 8E 69 64 1D AD 63 00 00 12 [03:31:17]Write i2c OK [03:31:17]MH_I2C_Read... [03:31:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:31:17]Read from MH i2c: E2 [03:31:17]MH_I2C_Read... [03:31:17]Read from MH i2c: E2 03 00 [03:31:17]MH_I2C_Read... [03:31:17]Read from MH i2c: E2 03 00 B9 41 00 90 00 6E [03:31:17]RAPDU: 90 00 [03:31:17]wFMCommunicate OK [03:31:17]wFMCommunicate request_size=4 [03:31:17]MH_SAM_APDU [03:31:17]CAPDU: 80 0D 03 02 [03:31:17]Write to MH i2c: E2 08 00 BA 41 80 0D 03 02 00 00 00 00 76 [03:31:17]Write i2c OK [03:31:17]MH_I2C_Read... [03:31:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:31:17]Read from MH i2c: E2 [03:31:17]MH_I2C_Read... [03:31:17]Read from MH i2c: E2 0B 00 [03:31:17]MH_I2C_Read... [03:31:17]Read from MH i2c: E2 0B 00 BA 41 00 17 19 E0 DD 66 06 45 0E 90 00 23 [03:31:17]RAPDU: 17 19 E0 DD 66 06 45 0E 90 00 [03:31:17]wFMCommunicate OK [03:31:17]SAM_PROTO_SignData done [03:31:17]FM_MakeSignedData done [03:31:17]CreateOFDProtocolMessage [03:31:17]wFMCommunicate request_size=4 [03:31:17]MH_SAM_APDU [03:31:17]CAPDU: 80 11 00 00 [03:31:17]Write to MH i2c: E2 08 00 BB 41 80 11 00 00 00 00 00 00 76 [03:31:17]Write i2c OK [03:31:17]MH_I2C_Read... [03:31:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:31:17]Read from MH i2c: E2 [03:31:17]MH_I2C_Read... [03:31:17]Read from MH i2c: E2 17 00 [03:31:17]MH_I2C_Read... [03:31:17]Read from MH i2c: E2 17 00 BB 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 CD [03:31:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [03:31:17]wFMCommunicate OK [03:31:17]CreateOFDProtocolMessage done [03:31:17]OFDSenderStorePacket 92565 [03:31:17]StoreOFDPacket docnum=92565 [03:31:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 B7 01 00 00 80 0D AF 01 53 02 5A 03 01 00 03 00 A3 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 0A 55 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 95 69 01 00 35 04 06 00 8E 69 64 1D AD 63 17 19 E0 DD 66 06 45 0E [03:31:17]CheckFolder [03:31:17]dirname=/storage/ofd_packets [03:31:17]CheckFolder done [03:31:17]ProducePacketName [03:31:18]name=ofd_packets/00092565 [03:31:18]NVStorageSaveData ofd_packets/00092565 [03:31:18]File name is /storage/ofd_packets/00092565 [03:31:18]Write 469 bytes [03:31:18]NVStorageSaveData done [03:31:18]OFDSenderStorePacket done [03:31:18]KKMCreateOFDPacket done [03:31:18]NVStorageSaveData kkm_last_timestamp [03:31:18]File name is /storage/kkm_last_timestamp [03:31:18]Write 4 bytes [03:31:18]NVStorageSaveData done [03:31:18]ExternCall_PrintAddStr [03:31:18]wPrintStart [03:31:18]Write to MH i2c: 01 00 00 BC 41 FD [03:31:18]Write i2c OK [03:31:18]MH_I2C_Read... [03:31:18]Read from MH i2c: 01 [03:31:18]MH_I2C_Read... [03:31:18]Read from MH i2c: 01 07 00 [03:31:18]MH_I2C_Read... [03:31:18]Read from MH i2c: 01 07 00 BC 41 00 00 00 00 00 FF 0F 12 [03:31:18]RasterBufferAndPrint [03:31:18]line Счет N : (3)127456 [03:31:18]line ИНН: 02508201610067 [03:31:18]line Контрольно-Кассовый Чек [03:31:18]line ПРОДАЖА [03:31:18]line Товар: 2000032760017 [03:31:18]line Слойка DC треугольная мясо110г [03:31:18]line 2.000 * 65.00 [03:31:18]line = 130.00 [03:31:18]line НДС 12% НСП 1% [03:31:18]line > о реализуемом товаре [03:31:18]line Товар: 5449000027450 [03:31:18]line Напиток FuzeTea чай манго,ром 0,5л [03:31:18]line 1.000 * 75.00 [03:31:18]line = 75.00 [03:31:18]line НДС 12% НСП 1% [03:31:18]line > о реализуемом товаре [03:31:18]line ИТОГО: 205.00 [03:31:18]line НСП 1% : 1.81 [03:31:18]line НДС 12% : 21.76 [03:31:18]line Наличными: 0.00 [03:31:18]line Безнал.: 205.00 [03:31:18]line Место: АЗС № 5 "Партнер Нефть" [03:31:18]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [03:31:18]line СНО: Общий режим [03:31:18]line Чек 13 15.09.2024 03:31 [03:31:18]line Смена: 507 ФФД: 1.0 [03:31:18]line ЗНМ: 03000000022 [03:31:18]line РНМ: 0000000000091423 [03:31:18]line Версия ККМ: 001 [03:31:18]line Платежная система: Бакай Банк [03:31:18]line ФМ: 0000000000874692 [03:31:18]line ФД: 92565 [03:31:18]line ФПД: 156583302376803 [03:31:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T033122&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92565&fm=156583302376803&tin=02508201610067®Number=0000000000091423&sum=20500 [03:31:18]line 0 [03:31:18]OFD Sender: Processing packet 92565 [packets to send 63, broken 62] [03:31:18]ProducePacketName [03:31:18]name=ofd_packets/00092565 [03:31:18]OFD Sender: To server: pG, [03:31:18]CommunicateWithHost lk.salyk.kg:30040 [03:31:18]ConnectInit lk.salyk.kg [03:31:18]written 0, free lines is 4095 [03:31:18]Connected sock=10 [03:31:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 B7 01 00 00 80 0D AF 01 53 02 5A 03 01 00 03 00 A3 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 0A 55 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 95 69 01 00 35 04 06 00 8E 69 64 1D AD 63 17 19 E0 DD 66 06 45 0E [03:31:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 28 F3 47 00 45 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 95 69 01 00 F4 03 04 00 83 FD E5 66 B6 04 01 00 00 83 39 1C C9 8D D9 F2 67 [03:31:18]CommunicateWithHost err = 0 [03:31:18]CheckOFDResponse [03:31:18]1017 (14) - 77093643461234 [03:31:18]1041 (16) - 0000000000874692 [03:31:18]1040 (4) - 92565 [03:31:18]1012 (4) - 14.09.2024 21:17 [03:31:18]1206 (1) - 0 [03:31:18]OFD Sender: Remove packet 92565 [03:31:18]ProducePacketName [03:31:18]name=ofd_packets/00092565 [03:31:18]NVStorageDeleteData [03:31:18]Write to MH i2c: 01 00 00 EE 41 2F [03:31:18]Write i2c OK [03:31:18]MH_I2C_Read... [03:31:18]Read from MH i2c: 01 [03:31:18]MH_I2C_Read... [03:31:18]Read from MH i2c: 01 07 00 [03:31:18]MH_I2C_Read... [03:31:18]Read from MH i2c: 01 07 00 EE 41 00 00 00 00 00 9A 0C DC [03:31:18]RasterBufferAndPrint [03:31:18]line [03:31:18]line [03:31:18]line [03:31:18]line [03:31:18]line [03:31:18]written 0, free lines is 3236 [03:31:18]MH_Cut [03:31:18]Write to MH i2c: D1 01 00 F5 41 01 08 [03:31:18]Write i2c OK [03:31:18]MH_I2C_Read... [03:31:18]Read from MH i2c: D1 [03:31:18]MH_I2C_Read... [03:31:18]Read from MH i2c: D1 01 00 [03:31:18]MH_I2C_Read... [03:31:18]Read from MH i2c: D1 01 00 F5 41 00 07 [03:31:18]Write to MH i2c: 01 00 00 F6 41 37 [03:31:18]Write i2c OK [03:31:18]MH_I2C_Read... [03:31:18]OFD Sender: No OFD packet to send [03:31:19]*** Cut start [03:31:19]*** Purtial cut [03:31:19]*** Stage 1: CUTSNS_PIN = 1 [03:31:21]Read from MH i2c: 01 [03:31:21]MH_I2C_Read... [03:31:21]*** Stop cut motor [03:31:21]*** Cut end [03:31:21]Read from MH i2c: 01 07 00 [03:31:21]MH_I2C_Read... [03:31:21]Read from MH i2c: 01 07 00 F6 41 00 00 00 00 00 FF 0F 4C [03:31:21]process_action close_receipt done [03:31:21]requested_data is exist [03:31:21]produce_requested_data [03:31:21]requested_item fm.sn is exist - process it [03:31:21]wFMCommunicate request_size=4 [03:31:21]MH_SAM_APDU [03:31:21]CAPDU: 80 11 00 00 [03:31:21]Write to MH i2c: E2 08 00 F7 41 80 11 00 00 00 00 00 00 B2 [03:31:21]Write i2c OK [03:31:21]MH_I2C_Read... [03:31:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:31:21]Read from MH i2c: E2 [03:31:21]MH_I2C_Read... [03:31:21]Read from MH i2c: E2 17 00 [03:31:21]MH_I2C_Read... [03:31:21]Read from MH i2c: E2 17 00 F7 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 09 [03:31:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [03:31:21]wFMCommunicate OK [03:31:21]requested_item fd.num is exist - process it [03:31:21]SAM_PROTO_GetFieldsCounters [03:31:21]wFMCommunicate request_size=4 [03:31:21]MH_SAM_APDU [03:31:21]CAPDU: 80 13 00 00 [03:31:21]Write to MH i2c: E2 08 00 F8 41 80 13 00 00 00 00 00 00 B5 [03:31:21]Write i2c OK [03:31:21]MH_I2C_Read... [03:31:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:31:21]Read from MH i2c: E2 [03:31:21]MH_I2C_Read... [03:31:21]Read from MH i2c: E2 62 00 [03:31:21]MH_I2C_Read... [03:31:21]Read from MH i2c: E2 62 00 F8 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 95 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [03:31:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 95 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:31:21]wFMCommunicate OK [03:31:21]SAM_PROTO_GetFieldsCounters done [03:31:21]requested_item shift.num is exist - process it [03:31:21]requested_item shift.opened is exist - process it [03:31:21]req_shift_opened [03:31:21]FM_GetShiftState [03:31:21]SAM_PROTO_GetShiftState [03:31:21]wFMCommunicate request_size=4 [03:31:21]MH_SAM_APDU [03:31:21]CAPDU: 80 13 01 00 [03:31:21]Write to MH i2c: E2 08 00 F9 41 80 13 01 00 00 00 00 00 B7 [03:31:21]Write i2c OK [03:31:21]MH_I2C_Read... [03:31:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:31:21]Read from MH i2c: E2 [03:31:21]MH_I2C_Read... [03:31:21]Read from MH i2c: E2 0E 00 [03:31:21]MH_I2C_Read... [03:31:21]Read from MH i2c: E2 0E 00 F9 41 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 39 [03:31:21]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [03:31:21]wFMCommunicate OK [03:31:21]SAM_PROTO_GetShiftState done [03:31:21]FM_GetShiftState done [03:31:21]req_shift_opened done [03:31:21]requested_item shift.open_date is exist - process it [03:31:21]req_shift_open_date [03:31:21]req_shift_open_date done [03:31:21]produce_requested_data done [03:31:21]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92565,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [03:31:21]process_action_free close_receipt [03:31:21]json_value_free [03:31:21]json_value_free done [03:31:21]process_json_proto returns [03:31:21]Send response to host [03:31:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92565,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [03:31:21]free response buf [03:31:21]execute_script done [03:31:21]execute_script returns [03:31:21]free content buf [03:31:21]Sock 9.Close socket [03:31:21]Sock 9.Thread stoped [03:31:24]OFD Sender: No OFD packet to send [03:31:29]OFD Sender: No OFD packet to send [03:31:34]OFD Sender: No OFD packet to send [03:31:39]OFD Sender: No OFD packet to send [03:31:44]OFD Sender: No OFD packet to send [03:31:49]OFD Sender: No OFD packet to send [03:31:54]OFD Sender: No OFD packet to send [03:31:59]OFD Sender: No OFD packet to send [03:32:04]OFD Sender: No OFD packet to send [03:32:09]OFD Sender: No OFD packet to send [03:32:14]OFD Sender: No OFD packet to send [03:32:19]OFD Sender: No OFD packet to send [03:32:24]OFD Sender: No OFD packet to send [03:32:29]OFD Sender: No OFD packet to send [03:32:34]OFD Sender: No OFD packet to send [03:32:39]OFD Sender: No OFD packet to send [03:32:44]OFD Sender: No OFD packet to send [03:32:49]OFD Sender: No OFD packet to send [03:32:54]OFD Sender: No OFD packet to send [03:32:59]OFD Sender: No OFD packet to send [03:33:04]OFD Sender: No OFD packet to send [03:33:09]OFD Sender: No OFD packet to send [03:33:14]OFD Sender: No OFD packet to send [03:33:19]OFD Sender: No OFD packet to send [03:33:24]OFD Sender: No OFD packet to send [03:33:29]OFD Sender: No OFD packet to send [03:33:34]OFD Sender: No OFD packet to send [03:33:39]OFD Sender: No OFD packet to send [03:33:44]OFD Sender: No OFD packet to send [03:33:49]OFD Sender: No OFD packet to send [03:33:54]OFD Sender: No OFD packet to send [03:33:59]OFD Sender: No OFD packet to send [03:34:04]OFD Sender: No OFD packet to send [03:34:09]OFD Sender: No OFD packet to send [03:34:14]OFD Sender: No OFD packet to send [03:34:19]OFD Sender: No OFD packet to send [03:34:24]OFD Sender: No OFD packet to send [03:34:29]OFD Sender: No OFD packet to send [03:34:34]OFD Sender: No OFD packet to send [03:34:39]OFD Sender: No OFD packet to send [03:34:44]OFD Sender: No OFD packet to send [03:34:49]OFD Sender: No OFD packet to send [03:34:54]OFD Sender: No OFD packet to send [03:34:59]OFD Sender: No OFD packet to send [03:35:04]OFD Sender: No OFD packet to send [03:35:09]OFD Sender: No OFD packet to send [03:35:14]OFD Sender: No OFD packet to send [03:35:19]OFD Sender: No OFD packet to send [03:35:24]OFD Sender: No OFD packet to send [03:35:29]OFD Sender: No OFD packet to send [03:35:34]OFD Sender: No OFD packet to send [03:35:39]OFD Sender: No OFD packet to send [03:35:44]OFD Sender: No OFD packet to send [03:35:49]OFD Sender: No OFD packet to send [03:35:54]OFD Sender: No OFD packet to send [03:35:59]OFD Sender: No OFD packet to send [03:36:04]OFD Sender: No OFD packet to send [03:36:09]OFD Sender: No OFD packet to send [03:36:14]OFD Sender: No OFD packet to send [03:36:19]OFD Sender: No OFD packet to send [03:36:24]OFD Sender: No OFD packet to send [03:36:29]OFD Sender: No OFD packet to send [03:36:34]OFD Sender: No OFD packet to send [03:36:39]OFD Sender: No OFD packet to send [03:36:44]OFD Sender: No OFD packet to send [03:36:49]OFD Sender: No OFD packet to send [03:36:54]OFD Sender: No OFD packet to send [03:36:59]OFD Sender: No OFD packet to send [03:37:04]OFD Sender: No OFD packet to send [03:37:09]OFD Sender: No OFD packet to send [03:37:14]OFD Sender: No OFD packet to send [03:37:19]OFD Sender: No OFD packet to send [03:37:24]OFD Sender: No OFD packet to send [03:37:25]accept exits with 8 [03:37:25]New connection [03:37:25]New thread 3066658148 created [03:37:25]Thread 3066801508 joined [03:37:25]Waiting for new connection... [03:37:25] Sock 8.Parse request [03:37:25]Sock 8.Check first char [03:37:25]Sock 8.First char is OK [03:37:25]request: POST /json_proto HTTP/1.0 [03:37:25]Method: POST [03:37:25]URL: /json_proto [03:37:25]Method is POST - this is cgi request [03:37:25]url: /json_proto [03:37:25]query_string will be loaded in cgi processing [03:37:25]execute_cgi json_proto POST (null) [03:37:25]execute_cgi path=json_proto method=POST [03:37:25]POST find Content-Length [03:37:25]Host: 172.17.57.71:8080 [03:37:25]Content-Length: 706 [03:37:25]Content-Type: application/json [03:37:25] [03:37:25]POST finish read [03:37:25]Found Content-Length = 706 [03:37:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127457", "tax_sys" : 0, "items" : [ { "code": "8904103304060", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432 ITEX \u0436\u0435\u0432 \u0440\u0435\u0437\u0438\u043D\u043A\u0430 3 \u0448\u0442", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:37:25]execute_script... [03:37:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127457", "tax_sys" : 0, "items" : [ { "code": "8904103304060", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432 ITEX \u0436\u0435\u0432 \u0440\u0435\u0437\u0438\u043D\u043A\u0430 3 \u0448\u0442", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:37:25]POST & json_proto [03:37:25]process_json_proto [03:37:25]json parsed OK: [03:37:25]protocol is kg_v1.0 [03:37:25]action value=close_receipt [03:37:25]process_action close_receipt [03:37:25]cmd_close_receipt [03:37:25]MH_GetDate [03:37:25]Write to MH i2c: F0 00 00 FA 41 2A [03:37:25]Write i2c OK [03:37:25]MH_I2C_Read... [03:37:25]Read from MH i2c: F0 [03:37:25]MH_I2C_Read... [03:37:25]Read from MH i2c: F0 09 00 [03:37:25]MH_I2C_Read... [03:37:25]Read from MH i2c: F0 09 00 FA 41 00 7C 56 E6 66 33 3A A4 66 C8 [03:37:25]GetLastDocTimeStamp 1726371082 [03:37:25]current date 1726371452 [03:37:25]FM_GetShiftState [03:37:25]SAM_PROTO_GetShiftState [03:37:25]wFMCommunicate request_size=4 [03:37:25]MH_SAM_APDU [03:37:25]CAPDU: 80 13 01 00 [03:37:25]Write to MH i2c: E2 08 00 FB 41 80 13 01 00 00 00 00 00 B9 [03:37:25]Write i2c OK [03:37:25]MH_I2C_Read... [03:37:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:37:25]Read from MH i2c: E2 [03:37:25]MH_I2C_Read... [03:37:25]Read from MH i2c: E2 0E 00 [03:37:25]MH_I2C_Read... [03:37:25]Read from MH i2c: E2 0E 00 FB 41 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 3B [03:37:25]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [03:37:25]wFMCommunicate OK [03:37:25]SAM_PROTO_GetShiftState done [03:37:25]FM_GetShiftState done [03:37:25]opened in 1726359809 [03:37:25]opened+sec_in_day 1726446209 [03:37:25]quantity*price = 28000 [03:37:25]sum+1 = 28001 [03:37:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.73 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 14 15.09.2024 03:37 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92566 ФПД: 179832073158500 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T033732&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92566&fm=179832073158500&tin=02508201610067®Number=0000000000091423&sum=28000 0 [03:37:26]StoreToDocumentArchive [03:37:26]shift 507 fd 92566 [03:37:26]save to /storage/0507/doc_00092566 [03:37:26]save last doc name /storage/0507/doc_00092566 to /storage/kkm_last_doc_name [03:37:26]save OK [03:37:26]Clear old archive folders... [03:37:26]ProcessDocumentItem done err = 0, tmpTLVsize=298 [03:37:26]tlvbuf is B6F30010 [03:37:26]SAM_PROTO_ClearQueue [03:37:26]wFMCommunicate request_size=4 [03:37:26]MH_SAM_APDU [03:37:26]CAPDU: 80 09 00 00 [03:37:26]Write to MH i2c: E2 08 00 08 42 80 09 00 00 00 00 00 00 BC [03:37:26]Write i2c OK [03:37:26]MH_I2C_Read... [03:37:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:37:27]Read from MH i2c: E2 [03:37:27]MH_I2C_Read... [03:37:27]Read from MH i2c: E2 03 00 [03:37:27]MH_I2C_Read... [03:37:27]Read from MH i2c: E2 03 00 08 42 00 90 00 BE [03:37:27]RAPDU: 90 00 [03:37:27]wFMCommunicate OK [03:37:27]SAM_PROTO_ClearQueue done [03:37:27]KKMCreateOFDPacket [03:37:27]OFDProtocolAddRootSTLVToBuf [03:37:27]FM_MakeSignedData [03:37:27]FM_MakeSignedData [03:37:27]SAM_PROTO_SignData [03:37:27]wFMCommunicate request_size=4 [03:37:27]MH_SAM_APDU [03:37:27]CAPDU: 80 0D 01 02 [03:37:27]Write to MH i2c: E2 08 00 09 42 80 0D 01 02 00 00 00 00 C4 [03:37:27]Write i2c OK [03:37:27]MH_I2C_Read... [03:37:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:37:27]Read from MH i2c: E2 [03:37:27]MH_I2C_Read... [03:37:27]Read from MH i2c: E2 03 00 [03:37:27]MH_I2C_Read... [03:37:27]Read from MH i2c: E2 03 00 09 42 00 90 00 BF [03:37:27]RAPDU: 90 00 [03:37:27]wFMCommunicate OK [03:37:27]wFMCommunicate request_size=255 [03:37:27]MH_SAM_APDU [03:37:27]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 38 39 30 34 31 30 33 33 30 34 30 36 30 06 04 38 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 49 54 45 58 20 D0 B6 D0 B5 D0 B2 20 D1 80 D0 B5 D0 B7 D0 B8 D0 BD D0 BA D0 B0 20 33 20 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 7C 56 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [03:37:27]Write to MH i2c: E2 02 01 0A 42 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 38 39 30 34 31 30 33 33 30 34 30 36 30 06 04 38 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 49 54 45 58 20 D0 B6 D0 B5 D0 B2 20 D1 80 D0 B5 D0 B7 D0 B8 D0 BD D0 BA D0 B0 20 33 20 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 7C 56 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 DE [03:37:27]Write i2c OK [03:37:27]MH_I2C_Read... [03:37:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:37:27]Read from MH i2c: E2 [03:37:27]MH_I2C_Read... [03:37:27]Read from MH i2c: E2 03 00 [03:37:27]MH_I2C_Read... [03:37:27]Read from MH i2c: E2 03 00 0A 42 00 90 00 C0 [03:37:27]RAPDU: 90 00 [03:37:27]wFMCommunicate OK [03:37:27]wFMCommunicate request_size=57 [03:37:27]MH_SAM_APDU [03:37:27]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 96 69 01 00 35 04 06 00 A3 8E 6A D6 FF 64 [03:37:27]Write to MH i2c: E2 3C 00 0B 42 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 96 69 01 00 35 04 06 00 A3 8E 6A D6 FF 64 00 00 56 [03:37:27]Write i2c OK [03:37:27]MH_I2C_Read... [03:37:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:37:27]Read from MH i2c: E2 [03:37:27]MH_I2C_Read... [03:37:27]Read from MH i2c: E2 03 00 [03:37:27]MH_I2C_Read... [03:37:27]Read from MH i2c: E2 03 00 0B 42 00 90 00 C1 [03:37:27]RAPDU: 90 00 [03:37:27]wFMCommunicate OK [03:37:27]wFMCommunicate request_size=4 [03:37:27]MH_SAM_APDU [03:37:27]CAPDU: 80 0D 03 02 [03:37:27]Write to MH i2c: E2 08 00 0C 42 80 0D 03 02 00 00 00 00 C9 [03:37:27]Write i2c OK [03:37:27]MH_I2C_Read... [03:37:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:37:27]Read from MH i2c: E2 [03:37:27]MH_I2C_Read... [03:37:27]Read from MH i2c: E2 0B 00 [03:37:27]MH_I2C_Read... [03:37:27]Read from MH i2c: E2 0B 00 0C 42 00 BD 73 7F F3 CD 4E 66 90 90 00 7D [03:37:27]RAPDU: BD 73 7F F3 CD 4E 66 90 90 00 [03:37:27]wFMCommunicate OK [03:37:27]SAM_PROTO_SignData done [03:37:27]FM_MakeSignedData done [03:37:27]CreateOFDProtocolMessage [03:37:27]wFMCommunicate request_size=4 [03:37:27]MH_SAM_APDU [03:37:27]CAPDU: 80 11 00 00 [03:37:27]Write to MH i2c: E2 08 00 0D 42 80 11 00 00 00 00 00 00 C9 [03:37:27]Write i2c OK [03:37:27]MH_I2C_Read... [03:37:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:37:27]Read from MH i2c: E2 [03:37:27]MH_I2C_Read... [03:37:27]Read from MH i2c: E2 17 00 [03:37:27]MH_I2C_Read... [03:37:27]Read from MH i2c: E2 17 00 0D 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 20 [03:37:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [03:37:27]wFMCommunicate OK [03:37:27]CreateOFDProtocolMessage done [03:37:27]OFDSenderStorePacket 92566 [03:37:27]StoreOFDPacket docnum=92566 [03:37:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3E 01 00 00 C8 7B 36 01 F3 E4 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 38 39 30 34 31 30 33 33 30 34 30 36 30 06 04 38 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 49 54 45 58 20 D0 B6 D0 B5 D0 B2 20 D1 80 D0 B5 D0 B7 D0 B8 D0 BD D0 BA D0 B0 20 33 20 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 7C 56 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 96 69 01 00 35 04 06 00 A3 8E 6A D6 FF 64 BD 73 7F F3 CD 4E 66 90 [03:37:27]CheckFolder [03:37:27]dirname=/storage/ofd_packets [03:37:27]CheckFolder done [03:37:27]ProducePacketName [03:37:27]name=ofd_packets/00092566 [03:37:27]NVStorageSaveData ofd_packets/00092566 [03:37:27]File name is /storage/ofd_packets/00092566 [03:37:27]Write 348 bytes [03:37:27]NVStorageSaveData done [03:37:27]OFDSenderStorePacket done [03:37:27]KKMCreateOFDPacket done [03:37:27]NVStorageSaveData kkm_last_timestamp [03:37:27]File name is /storage/kkm_last_timestamp [03:37:27]Write 4 bytes [03:37:27]NVStorageSaveData done [03:37:27]ExternCall_PrintAddStr [03:37:27]wPrintStart [03:37:27]Write to MH i2c: 01 00 00 0E 42 50 [03:37:27]Write i2c OK [03:37:27]MH_I2C_Read... [03:37:27]Read from MH i2c: 01 [03:37:27]MH_I2C_Read... [03:37:27]Read from MH i2c: 01 07 00 [03:37:27]MH_I2C_Read... [03:37:27]Read from MH i2c: 01 07 00 0E 42 00 00 00 00 00 FF 0F 65 [03:37:27]RasterBufferAndPrint [03:37:27]line Счет N : (3)127457 [03:37:27]line ИНН: 02508201610067 [03:37:27]line Контрольно-Кассовый Чек [03:37:27]line ПРОДАЖА [03:37:27]line Товар: 8904103304060 [03:37:27]line Презерватив ITEX жев резинка 3 шт [03:37:27]line 2.000 * 140.00 [03:37:27]line = 280.00 [03:37:27]line НДС 12% НСП 1% [03:37:27]line > о реализуемом товаре [03:37:27]line ИТОГО: 280.00 [03:37:27]line НСП 1% : 2.48 [03:37:27]line НДС 12% : 29.73 [03:37:27]line Наличными: 280.00 [03:37:27]line Безнал.: 0.00 [03:37:27]line Место: АЗС № 5 "Партнер Нефть" [03:37:27]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [03:37:27]line СНО: Общий режим [03:37:27]line Чек 14 15.09.2024 03:37 [03:37:27]line Смена: 507 ФФД: 1.0 [03:37:27]line ЗНМ: 03000000022 [03:37:27]line РНМ: 0000000000091423 [03:37:27]line Версия ККМ: 001 [03:37:27]line ФМ: 0000000000874692 [03:37:27]line ФД: 92566 [03:37:27]line ФПД: 179832073158500 [03:37:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T033732&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92566&fm=179832073158500&tin=02508201610067®Number=0000000000091423&sum=28000 [03:37:27]line 0 [03:37:27]OFD Sender: Processing packet 92566 [packets to send 63, broken 62] [03:37:27]ProducePacketName [03:37:27]name=ofd_packets/00092566 [03:37:27]OFD Sender: To server: pG, [03:37:27]CommunicateWithHost lk.salyk.kg:30040 [03:37:27]ConnectInit lk.salyk.kg [03:37:27]written 0, free lines is 4095 [03:37:27]Connected sock=11 [03:37:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3E 01 00 00 C8 7B 36 01 F3 E4 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 38 39 30 34 31 30 33 33 30 34 30 36 30 06 04 38 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 49 54 45 58 20 D0 B6 D0 B5 D0 B2 20 D1 80 D0 B5 D0 B7 D0 B8 D0 BD D0 BA D0 B0 20 33 20 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 7C 56 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 96 69 01 00 35 04 06 00 A3 8E 6A D6 FF 64 BD 73 7F F3 CD 4E 66 90 [03:37:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 3E BC 47 00 E0 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 96 69 01 00 F4 03 04 00 F5 FE E5 66 B6 04 01 00 00 24 43 D8 8A 4D 1C 37 E7 [03:37:28]CommunicateWithHost err = 0 [03:37:28]CheckOFDResponse [03:37:28]1017 (14) - 77093643461234 [03:37:28]1041 (16) - 0000000000874692 [03:37:28]1040 (4) - 92566 [03:37:28]1012 (4) - 14.09.2024 21:24 [03:37:28]1206 (1) - 0 [03:37:28]OFD Sender: Remove packet 92566 [03:37:28]ProducePacketName [03:37:28]name=ofd_packets/00092566 [03:37:28]NVStorageDeleteData [03:37:28]Write to MH i2c: 01 00 00 37 42 79 [03:37:28]Write i2c OK [03:37:28]MH_I2C_Read... [03:37:28]Read from MH i2c: 01 [03:37:28]MH_I2C_Read... [03:37:28]Read from MH i2c: 01 07 00 [03:37:28]MH_I2C_Read... [03:37:28]Read from MH i2c: 01 07 00 37 42 00 00 00 00 00 1D 0D AA [03:37:28]RasterBufferAndPrint [03:37:28]line [03:37:28]line [03:37:28]line [03:37:28]line [03:37:28]line [03:37:28]written 0, free lines is 3364 [03:37:28]MH_Cut [03:37:28]Write to MH i2c: D1 01 00 3E 42 01 52 [03:37:28]Write i2c OK [03:37:28]MH_I2C_Read... [03:37:28]Read from MH i2c: D1 [03:37:28]MH_I2C_Read... [03:37:28]Read from MH i2c: D1 01 00 [03:37:28]MH_I2C_Read... [03:37:28]Read from MH i2c: D1 01 00 3E 42 00 51 [03:37:28]Write to MH i2c: 01 00 00 3F 42 81 [03:37:28]Write i2c OK [03:37:28]MH_I2C_Read... [03:37:28]OFD Sender: No OFD packet to send [03:37:28]*** Cut start [03:37:28]*** Purtial cut [03:37:28]*** Stage 1: CUTSNS_PIN = 1 [03:37:30]Read from MH i2c: 01 [03:37:30]MH_I2C_Read... [03:37:30]*** Stop cut motor [03:37:30]*** Cut end [03:37:30]Read from MH i2c: 01 07 00 [03:37:30]MH_I2C_Read... [03:37:30]Read from MH i2c: 01 07 00 3F 42 00 00 00 00 00 FF 0F 96 [03:37:30]process_action close_receipt done [03:37:30]requested_data is exist [03:37:30]produce_requested_data [03:37:30]requested_item fm.sn is exist - process it [03:37:30]wFMCommunicate request_size=4 [03:37:30]MH_SAM_APDU [03:37:30]CAPDU: 80 11 00 00 [03:37:30]Write to MH i2c: E2 08 00 40 42 80 11 00 00 00 00 00 00 FC [03:37:30]Write i2c OK [03:37:30]MH_I2C_Read... [03:37:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:37:31]Read from MH i2c: E2 [03:37:31]MH_I2C_Read... [03:37:31]Read from MH i2c: E2 17 00 [03:37:31]MH_I2C_Read... [03:37:31]Read from MH i2c: E2 17 00 40 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 53 [03:37:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [03:37:31]wFMCommunicate OK [03:37:31]requested_item fd.num is exist - process it [03:37:31]SAM_PROTO_GetFieldsCounters [03:37:31]wFMCommunicate request_size=4 [03:37:31]MH_SAM_APDU [03:37:31]CAPDU: 80 13 00 00 [03:37:31]Write to MH i2c: E2 08 00 41 42 80 13 00 00 00 00 00 00 FF [03:37:31]Write i2c OK [03:37:31]MH_I2C_Read... [03:37:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:37:31]Read from MH i2c: E2 [03:37:31]MH_I2C_Read... [03:37:31]Read from MH i2c: E2 62 00 [03:37:31]MH_I2C_Read... [03:37:31]Read from MH i2c: E2 62 00 41 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 96 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [03:37:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 96 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:37:31]wFMCommunicate OK [03:37:31]SAM_PROTO_GetFieldsCounters done [03:37:31]requested_item shift.num is exist - process it [03:37:31]requested_item shift.opened is exist - process it [03:37:31]req_shift_opened [03:37:31]FM_GetShiftState [03:37:31]SAM_PROTO_GetShiftState [03:37:31]wFMCommunicate request_size=4 [03:37:31]MH_SAM_APDU [03:37:31]CAPDU: 80 13 01 00 [03:37:31]Write to MH i2c: E2 08 00 42 42 80 13 01 00 00 00 00 00 01 [03:37:31]Write i2c OK [03:37:31]MH_I2C_Read... [03:37:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:37:31]Read from MH i2c: E2 [03:37:31]MH_I2C_Read... [03:37:31]Read from MH i2c: E2 0E 00 [03:37:31]MH_I2C_Read... [03:37:31]Read from MH i2c: E2 0E 00 42 42 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 83 [03:37:31]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [03:37:31]wFMCommunicate OK [03:37:31]SAM_PROTO_GetShiftState done [03:37:31]FM_GetShiftState done [03:37:31]req_shift_opened done [03:37:31]requested_item shift.open_date is exist - process it [03:37:31]req_shift_open_date [03:37:31]req_shift_open_date done [03:37:31]produce_requested_data done [03:37:31]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92566,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [03:37:31]process_action_free close_receipt [03:37:31]json_value_free [03:37:31]json_value_free done [03:37:31]process_json_proto returns [03:37:31]Send response to host [03:37:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92566,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [03:37:31]free response buf [03:37:31]execute_script done [03:37:31]execute_script returns [03:37:31]free content buf [03:37:31]Sock 8.Close socket [03:37:31]Sock 8.Thread stoped [03:37:33]OFD Sender: No OFD packet to send [03:37:38]OFD Sender: No OFD packet to send [03:37:43]OFD Sender: No OFD packet to send [03:37:48]OFD Sender: No OFD packet to send [03:37:53]OFD Sender: No OFD packet to send [03:37:58]OFD Sender: No OFD packet to send [03:38:03]OFD Sender: No OFD packet to send [03:38:08]OFD Sender: No OFD packet to send [03:38:13]OFD Sender: No OFD packet to send [03:38:18]OFD Sender: No OFD packet to send [03:38:23]OFD Sender: No OFD packet to send [03:38:28]OFD Sender: No OFD packet to send [03:38:33]OFD Sender: No OFD packet to send [03:38:38]OFD Sender: No OFD packet to send [03:38:43]OFD Sender: No OFD packet to send [03:38:48]OFD Sender: No OFD packet to send [03:38:53]OFD Sender: No OFD packet to send [03:38:58]OFD Sender: No OFD packet to send [03:39:03]OFD Sender: No OFD packet to send [03:39:08]OFD Sender: No OFD packet to send [03:39:13]OFD Sender: No OFD packet to send [03:39:18]OFD Sender: No OFD packet to send [03:39:23]OFD Sender: No OFD packet to send [03:39:28]OFD Sender: No OFD packet to send [03:39:33]OFD Sender: No OFD packet to send [03:39:38]OFD Sender: No OFD packet to send [03:39:43]OFD Sender: No OFD packet to send [03:39:48]OFD Sender: No OFD packet to send [03:39:53]OFD Sender: No OFD packet to send [03:39:58]OFD Sender: No OFD packet to send [03:40:03]OFD Sender: No OFD packet to send [03:40:08]OFD Sender: No OFD packet to send [03:40:13]OFD Sender: No OFD packet to send [03:40:18]OFD Sender: No OFD packet to send [03:40:23]OFD Sender: No OFD packet to send [03:40:28]OFD Sender: No OFD packet to send [03:40:33]OFD Sender: No OFD packet to send [03:40:38]OFD Sender: No OFD packet to send [03:40:43]OFD Sender: No OFD packet to send [03:40:48]OFD Sender: No OFD packet to send [03:40:53]OFD Sender: No OFD packet to send [03:40:58]OFD Sender: No OFD packet to send [03:41:03]OFD Sender: No OFD packet to send [03:41:08]OFD Sender: No OFD packet to send [03:41:13]OFD Sender: No OFD packet to send [03:41:18]OFD Sender: No OFD packet to send [03:41:23]OFD Sender: No OFD packet to send [03:41:28]OFD Sender: No OFD packet to send [03:41:33]OFD Sender: No OFD packet to send [03:41:38]OFD Sender: No OFD packet to send [03:41:43]OFD Sender: No OFD packet to send [03:41:48]OFD Sender: No OFD packet to send [03:41:53]OFD Sender: No OFD packet to send [03:41:58]OFD Sender: No OFD packet to send [03:42:03]OFD Sender: No OFD packet to send [03:42:08]OFD Sender: No OFD packet to send [03:42:13]OFD Sender: No OFD packet to send [03:42:18]OFD Sender: No OFD packet to send [03:42:23]OFD Sender: No OFD packet to send [03:42:28]OFD Sender: No OFD packet to send [03:42:33]OFD Sender: No OFD packet to send [03:42:38]OFD Sender: No OFD packet to send [03:42:43]OFD Sender: No OFD packet to send [03:42:48]OFD Sender: No OFD packet to send [03:42:53]OFD Sender: No OFD packet to send [03:42:58]OFD Sender: No OFD packet to send [03:43:03]OFD Sender: No OFD packet to send [03:43:08]OFD Sender: No OFD packet to send [03:43:13]OFD Sender: No OFD packet to send [03:43:18]OFD Sender: No OFD packet to send [03:43:23]OFD Sender: No OFD packet to send [03:43:28]OFD Sender: No OFD packet to send [03:43:33]OFD Sender: No OFD packet to send [03:43:38]OFD Sender: No OFD packet to send [03:43:43]OFD Sender: No OFD packet to send [03:43:48]OFD Sender: No OFD packet to send [03:43:53]OFD Sender: No OFD packet to send [03:43:58]OFD Sender: No OFD packet to send [03:44:04]OFD Sender: No OFD packet to send [03:44:09]OFD Sender: No OFD packet to send [03:44:14]OFD Sender: No OFD packet to send [03:44:19]OFD Sender: No OFD packet to send [03:44:24]OFD Sender: No OFD packet to send [03:44:29]OFD Sender: No OFD packet to send [03:44:34]OFD Sender: No OFD packet to send [03:44:39]OFD Sender: No OFD packet to send [03:44:44]OFD Sender: No OFD packet to send [03:44:49]OFD Sender: No OFD packet to send [03:44:54]OFD Sender: No OFD packet to send [03:44:59]OFD Sender: No OFD packet to send [03:45:04]OFD Sender: No OFD packet to send [03:45:09]OFD Sender: No OFD packet to send [03:45:14]OFD Sender: No OFD packet to send [03:45:19]OFD Sender: No OFD packet to send [03:45:24]OFD Sender: No OFD packet to send [03:45:29]OFD Sender: No OFD packet to send [03:45:34]OFD Sender: No OFD packet to send [03:45:39]OFD Sender: No OFD packet to send [03:45:44]OFD Sender: No OFD packet to send [03:45:49]OFD Sender: No OFD packet to send [03:45:54]OFD Sender: No OFD packet to send [03:45:59]OFD Sender: No OFD packet to send [03:46:04]OFD Sender: No OFD packet to send [03:46:09]OFD Sender: No OFD packet to send [03:46:14]OFD Sender: No OFD packet to send [03:46:19]OFD Sender: No OFD packet to send [03:46:24]OFD Sender: No OFD packet to send [03:46:29]OFD Sender: No OFD packet to send [03:46:34]OFD Sender: No OFD packet to send [03:46:39]OFD Sender: No OFD packet to send [03:46:44]OFD Sender: No OFD packet to send [03:46:49]OFD Sender: No OFD packet to send [03:46:54]OFD Sender: No OFD packet to send [03:46:59]OFD Sender: No OFD packet to send [03:47:04]OFD Sender: No OFD packet to send [03:47:09]OFD Sender: No OFD packet to send [03:47:14]OFD Sender: No OFD packet to send [03:47:19]OFD Sender: No OFD packet to send [03:47:24]OFD Sender: No OFD packet to send [03:47:29]OFD Sender: No OFD packet to send [03:47:34]OFD Sender: No OFD packet to send [03:47:39]OFD Sender: No OFD packet to send [03:47:44]OFD Sender: No OFD packet to send [03:47:49]OFD Sender: No OFD packet to send [03:47:54]OFD Sender: No OFD packet to send [03:47:59]OFD Sender: No OFD packet to send [03:48:04]OFD Sender: No OFD packet to send [03:48:09]OFD Sender: No OFD packet to send [03:48:14]OFD Sender: No OFD packet to send [03:48:19]OFD Sender: No OFD packet to send [03:48:24]OFD Sender: No OFD packet to send [03:48:29]OFD Sender: No OFD packet to send [03:48:34]OFD Sender: No OFD packet to send [03:48:39]OFD Sender: No OFD packet to send [03:48:44]OFD Sender: No OFD packet to send [03:48:49]OFD Sender: No OFD packet to send [03:48:54]OFD Sender: No OFD packet to send [03:48:59]OFD Sender: No OFD packet to send [03:49:04]OFD Sender: No OFD packet to send [03:49:09]OFD Sender: No OFD packet to send [03:49:14]OFD Sender: No OFD packet to send [03:49:19]OFD Sender: No OFD packet to send [03:49:24]OFD Sender: No OFD packet to send [03:49:29]OFD Sender: No OFD packet to send [03:49:34]OFD Sender: No OFD packet to send [03:49:39]OFD Sender: No OFD packet to send [03:49:44]OFD Sender: No OFD packet to send [03:49:49]OFD Sender: No OFD packet to send [03:49:54]OFD Sender: No OFD packet to send [03:49:59]OFD Sender: No OFD packet to send [03:50:04]OFD Sender: No OFD packet to send [03:50:09]OFD Sender: No OFD packet to send [03:50:14]OFD Sender: No OFD packet to send [03:50:19]OFD Sender: No OFD packet to send [03:50:24]OFD Sender: No OFD packet to send [03:50:29]OFD Sender: No OFD packet to send [03:50:34]OFD Sender: No OFD packet to send [03:50:39]OFD Sender: No OFD packet to send [03:50:44]OFD Sender: No OFD packet to send [03:50:49]OFD Sender: No OFD packet to send [03:50:54]OFD Sender: No OFD packet to send [03:50:59]OFD Sender: No OFD packet to send [03:51:04]OFD Sender: No OFD packet to send [03:51:09]OFD Sender: No OFD packet to send [03:51:14]OFD Sender: No OFD packet to send [03:51:19]OFD Sender: No OFD packet to send [03:51:24]OFD Sender: No OFD packet to send [03:51:29]OFD Sender: No OFD packet to send [03:51:34]OFD Sender: No OFD packet to send [03:51:39]OFD Sender: No OFD packet to send [03:51:44]OFD Sender: No OFD packet to send [03:51:49]OFD Sender: No OFD packet to send [03:51:54]OFD Sender: No OFD packet to send [03:51:59]OFD Sender: No OFD packet to send [03:52:04]OFD Sender: No OFD packet to send [03:52:09]OFD Sender: No OFD packet to send [03:52:14]OFD Sender: No OFD packet to send [03:52:19]OFD Sender: No OFD packet to send [03:52:24]OFD Sender: No OFD packet to send [03:52:29]OFD Sender: No OFD packet to send [03:52:34]OFD Sender: No OFD packet to send [03:52:39]OFD Sender: No OFD packet to send [03:52:44]OFD Sender: No OFD packet to send [03:52:49]OFD Sender: No OFD packet to send [03:52:54]OFD Sender: No OFD packet to send [03:52:59]OFD Sender: No OFD packet to send [03:53:04]OFD Sender: No OFD packet to send [03:53:09]OFD Sender: No OFD packet to send [03:53:14]OFD Sender: No OFD packet to send [03:53:19]OFD Sender: No OFD packet to send [03:53:24]OFD Sender: No OFD packet to send [03:53:29]OFD Sender: No OFD packet to send [03:53:34]OFD Sender: No OFD packet to send [03:53:39]OFD Sender: No OFD packet to send [03:53:44]OFD Sender: No OFD packet to send [03:53:49]OFD Sender: No OFD packet to send [03:53:54]OFD Sender: No OFD packet to send [03:53:59]OFD Sender: No OFD packet to send [03:54:04]OFD Sender: No OFD packet to send [03:54:09]OFD Sender: No OFD packet to send [03:54:14]OFD Sender: No OFD packet to send [03:54:19]OFD Sender: No OFD packet to send [03:54:24]OFD Sender: No OFD packet to send [03:54:29]OFD Sender: No OFD packet to send [03:54:34]OFD Sender: No OFD packet to send [03:54:39]OFD Sender: No OFD packet to send [03:54:44]OFD Sender: No OFD packet to send [03:54:49]OFD Sender: No OFD packet to send [03:54:54]OFD Sender: No OFD packet to send [03:54:59]OFD Sender: No OFD packet to send [03:55:04]OFD Sender: No OFD packet to send [03:55:09]OFD Sender: No OFD packet to send [03:55:14]OFD Sender: No OFD packet to send [03:55:19]OFD Sender: No OFD packet to send [03:55:24]OFD Sender: No OFD packet to send [03:55:29]OFD Sender: No OFD packet to send [03:55:34]OFD Sender: No OFD packet to send [03:55:39]OFD Sender: No OFD packet to send [03:55:44]OFD Sender: No OFD packet to send [03:55:49]OFD Sender: No OFD packet to send [03:55:54]OFD Sender: No OFD packet to send [03:55:59]OFD Sender: No OFD packet to send [03:56:04]OFD Sender: No OFD packet to send [03:56:09]OFD Sender: No OFD packet to send [03:56:14]OFD Sender: No OFD packet to send [03:56:19]OFD Sender: No OFD packet to send [03:56:24]OFD Sender: No OFD packet to send [03:56:29]OFD Sender: No OFD packet to send [03:56:34]OFD Sender: No OFD packet to send [03:56:39]OFD Sender: No OFD packet to send [03:56:44]OFD Sender: No OFD packet to send [03:56:49]OFD Sender: No OFD packet to send [03:56:54]OFD Sender: No OFD packet to send [03:56:59]OFD Sender: No OFD packet to send [03:57:04]OFD Sender: No OFD packet to send [03:57:09]OFD Sender: No OFD packet to send [03:57:14]OFD Sender: No OFD packet to send [03:57:19]OFD Sender: No OFD packet to send [03:57:24]OFD Sender: No OFD packet to send [03:57:29]OFD Sender: No OFD packet to send [03:57:34]OFD Sender: No OFD packet to send [03:57:39]OFD Sender: No OFD packet to send [03:57:44]OFD Sender: No OFD packet to send [03:57:49]OFD Sender: No OFD packet to send [03:57:54]OFD Sender: No OFD packet to send [03:57:59]OFD Sender: No OFD packet to send [03:58:04]OFD Sender: No OFD packet to send [03:58:09]OFD Sender: No OFD packet to send [03:58:14]OFD Sender: No OFD packet to send [03:58:19]OFD Sender: No OFD packet to send [03:58:24]OFD Sender: No OFD packet to send [03:58:29]OFD Sender: No OFD packet to send [03:58:34]OFD Sender: No OFD packet to send [03:58:39]OFD Sender: No OFD packet to send [03:58:44]OFD Sender: No OFD packet to send [03:58:49]OFD Sender: No OFD packet to send [03:58:54]OFD Sender: No OFD packet to send [03:58:59]OFD Sender: No OFD packet to send [03:59:04]OFD Sender: No OFD packet to send [03:59:09]OFD Sender: No OFD packet to send [03:59:14]OFD Sender: No OFD packet to send [03:59:19]OFD Sender: No OFD packet to send [03:59:24]OFD Sender: No OFD packet to send [03:59:29]OFD Sender: No OFD packet to send [03:59:34]OFD Sender: No OFD packet to send [03:59:39]OFD Sender: No OFD packet to send [03:59:44]OFD Sender: No OFD packet to send [03:59:49]OFD Sender: No OFD packet to send [03:59:54]OFD Sender: No OFD packet to send [03:59:59]OFD Sender: No OFD packet to send [04:00:04]OFD Sender: No OFD packet to send [04:00:09]OFD Sender: No OFD packet to send [04:00:14]OFD Sender: No OFD packet to send [04:00:19]OFD Sender: No OFD packet to send [04:00:24]OFD Sender: No OFD packet to send [04:00:29]OFD Sender: No OFD packet to send [04:00:34]OFD Sender: No OFD packet to send [04:00:39]OFD Sender: No OFD packet to send [04:00:44]OFD Sender: No OFD packet to send [04:00:49]OFD Sender: No OFD packet to send [04:00:54]OFD Sender: No OFD packet to send [04:00:59]OFD Sender: No OFD packet to send [04:01:04]OFD Sender: No OFD packet to send [04:01:09]OFD Sender: No OFD packet to send [04:01:14]OFD Sender: No OFD packet to send [04:01:20]OFD Sender: No OFD packet to send [04:01:25]OFD Sender: No OFD packet to send [04:01:30]OFD Sender: No OFD packet to send [04:01:35]OFD Sender: No OFD packet to send [04:01:40]OFD Sender: No OFD packet to send [04:01:45]OFD Sender: No OFD packet to send [04:01:50]OFD Sender: No OFD packet to send [04:01:55]OFD Sender: No OFD packet to send [04:02:00]OFD Sender: No OFD packet to send [04:02:05]OFD Sender: No OFD packet to send [04:02:10]OFD Sender: No OFD packet to send [04:02:15]OFD Sender: No OFD packet to send [04:02:20]OFD Sender: No OFD packet to send [04:02:25]OFD Sender: No OFD packet to send [04:02:30]OFD Sender: No OFD packet to send [04:02:34]accept exits with 9 [04:02:34]New connection [04:02:34]New thread 3066801508 created [04:02:34]Thread 3066658148 joined [04:02:34]Waiting for new connection... [04:02:34] Sock 9.Parse request [04:02:34]Sock 9.Check first char [04:02:34]Sock 9.First char is OK [04:02:34]request: POST /json_proto HTTP/1.0 [04:02:34]Method: POST [04:02:34]URL: /json_proto [04:02:34]Method is POST - this is cgi request [04:02:34]url: /json_proto [04:02:34]query_string will be loaded in cgi processing [04:02:34]execute_cgi json_proto POST (null) [04:02:34]execute_cgi path=json_proto method=POST [04:02:34]POST find Content-Length [04:02:34]Host: 172.17.57.71:8080 [04:02:34]Content-Length: 936 [04:02:34]Content-Type: application/json [04:02:34] [04:02:34]POST finish read [04:02:34]Found Content-Length = 936 [04:02:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127460", "tax_sys" : 0, "items" : [ { "code": "6943046301028", "name": "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u0435\u043B\u044C CARB", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 82.00, "quantity" : 1.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 287.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:02:34]execute_script... [04:02:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127460", "tax_sys" : 0, "items" : [ { "code": "6943046301028", "name": "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u0435\u043B\u044C CARB", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 82.00, "quantity" : 1.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 287.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:02:34]POST & json_proto [04:02:34]process_json_proto [04:02:34]json parsed OK: [04:02:34]protocol is kg_v1.0 [04:02:34]action value=close_receipt [04:02:34]process_action close_receipt [04:02:34]cmd_close_receipt [04:02:34]MH_GetDate [04:02:34]Write to MH i2c: F0 00 00 43 42 74 [04:02:34]Write i2c OK [04:02:34]MH_I2C_Read... [04:02:34]Read from MH i2c: F0 [04:02:34]MH_I2C_Read... [04:02:34]Read from MH i2c: F0 09 00 [04:02:34]MH_I2C_Read... [04:02:34]Read from MH i2c: F0 09 00 43 42 00 61 5C E6 66 33 3A A4 66 FD [04:02:34]GetLastDocTimeStamp 1726371452 [04:02:34]current date 1726372961 [04:02:34]FM_GetShiftState [04:02:34]SAM_PROTO_GetShiftState [04:02:34]wFMCommunicate request_size=4 [04:02:34]MH_SAM_APDU [04:02:34]CAPDU: 80 13 01 00 [04:02:34]Write to MH i2c: E2 08 00 44 42 80 13 01 00 00 00 00 00 03 [04:02:34]Write i2c OK [04:02:34]MH_I2C_Read... [04:02:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:02:34]Read from MH i2c: E2 [04:02:34]MH_I2C_Read... [04:02:34]Read from MH i2c: E2 0E 00 [04:02:34]MH_I2C_Read... [04:02:34]Read from MH i2c: E2 0E 00 44 42 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 85 [04:02:34]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [04:02:34]wFMCommunicate OK [04:02:34]SAM_PROTO_GetShiftState done [04:02:34]FM_GetShiftState done [04:02:34]opened in 1726359809 [04:02:34]opened+sec_in_day 1726446209 [04:02:34]quantity*price = 20500 [04:02:34]sum+1 = 20501 [04:02:34]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480364 Напиток энерг Nitro экзотик 0.45 ж/б 1.000 * 82.00 = 82.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 287.00 НСП 1% : 2.54 НДС 12% : 30.48 Наличными: 287.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 15 15.09.2024 04:02 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92567 ФПД: 182343430239027 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T040241&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92567&fm=182343430239027&tin=02508201610067®Number=0000000000091423&sum=28700 0 [04:02:36]StoreToDocumentArchive [04:02:36]shift 507 fd 92567 [04:02:36]save to /storage/0507/doc_00092567 [04:02:36]save last doc name /storage/0507/doc_00092567 to /storage/kkm_last_doc_name [04:02:36]save OK [04:02:36]Clear old archive folders... [04:02:36]ProcessDocumentItem done err = 0, tmpTLVsize=396 [04:02:36]tlvbuf is 00FF67F0 [04:02:36]SAM_PROTO_ClearQueue [04:02:36]wFMCommunicate request_size=4 [04:02:36]MH_SAM_APDU [04:02:36]CAPDU: 80 09 00 00 [04:02:36]Write to MH i2c: E2 08 00 51 42 80 09 00 00 00 00 00 00 05 [04:02:36]Write i2c OK [04:02:36]MH_I2C_Read... [04:02:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:02:36]Read from MH i2c: E2 [04:02:36]MH_I2C_Read... [04:02:36]Read from MH i2c: E2 03 00 [04:02:36]MH_I2C_Read... [04:02:36]Read from MH i2c: E2 03 00 51 42 00 90 00 07 [04:02:36]RAPDU: 90 00 [04:02:36]wFMCommunicate OK [04:02:36]SAM_PROTO_ClearQueue done [04:02:36]KKMCreateOFDPacket [04:02:36]OFDProtocolAddRootSTLVToBuf [04:02:36]FM_MakeSignedData [04:02:36]FM_MakeSignedData [04:02:36]SAM_PROTO_SignData [04:02:36]wFMCommunicate request_size=4 [04:02:36]MH_SAM_APDU [04:02:36]CAPDU: 80 0D 01 02 [04:02:36]Write to MH i2c: E2 08 00 52 42 80 0D 01 02 00 00 00 00 0D [04:02:36]Write i2c OK [04:02:36]MH_I2C_Read... [04:02:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:02:36]Read from MH i2c: E2 [04:02:36]MH_I2C_Read... [04:02:36]Read from MH i2c: E2 03 00 [04:02:36]MH_I2C_Read... [04:02:36]Read from MH i2c: E2 03 00 52 42 00 90 00 08 [04:02:36]RAPDU: 90 00 [04:02:36]wFMCommunicate OK [04:02:36]wFMCommunicate request_size=255 [04:02:36]MH_SAM_APDU [04:02:36]CAPDU: 80 0D 02 02 FA 03 00 8C 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 36 39 34 33 30 34 36 33 30 31 30 32 38 06 04 19 00 D0 9E D1 87 D0 B8 D1 81 D1 82 D0 B8 D1 82 D0 B5 D0 BB D1 8C 20 43 41 52 42 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 70 00 00 00 00 EB 03 26 00 EF [04:02:36]Write to MH i2c: E2 02 01 53 42 80 0D 02 02 FA 00 03 00 8C 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 36 39 34 33 30 34 36 33 30 31 30 32 38 06 04 19 00 D0 9E D1 87 D0 B8 D1 81 D1 82 D0 B8 D1 82 D0 B5 D0 BB D1 8C 20 43 41 52 42 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 70 00 00 00 00 EB 03 26 00 EF 00 00 9F [04:02:36]Write i2c OK [04:02:36]MH_I2C_Read... [04:02:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:02:36]Read from MH i2c: E2 [04:02:36]MH_I2C_Read... [04:02:36]Read from MH i2c: E2 03 00 [04:02:36]MH_I2C_Read... [04:02:36]Read from MH i2c: E2 03 00 53 42 00 90 00 09 [04:02:36]RAPDU: 90 00 [04:02:36]wFMCommunicate OK [04:02:36]wFMCommunicate request_size=155 [04:02:36]MH_SAM_APDU [04:02:36]CAPDU: 80 0D 02 02 96 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 0B 00 00 00 00 07 04 06 00 1C 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 61 5C E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 97 69 01 00 35 04 06 00 A5 D7 23 62 F3 33 [04:02:36]Write to MH i2c: E2 9E 00 54 42 80 0D 02 02 96 00 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 0B 00 00 00 00 07 04 06 00 1C 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 61 5C E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 97 69 01 00 35 04 06 00 A5 D7 23 62 F3 33 00 00 2D [04:02:36]Write i2c OK [04:02:36]MH_I2C_Read... [04:02:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:02:36]Read from MH i2c: E2 [04:02:36]MH_I2C_Read... [04:02:36]Read from MH i2c: E2 03 00 [04:02:36]MH_I2C_Read... [04:02:36]Read from MH i2c: E2 03 00 54 42 00 90 00 0A [04:02:36]RAPDU: 90 00 [04:02:36]wFMCommunicate OK [04:02:36]wFMCommunicate request_size=4 [04:02:36]MH_SAM_APDU [04:02:36]CAPDU: 80 0D 03 02 [04:02:36]Write to MH i2c: E2 08 00 55 42 80 0D 03 02 00 00 00 00 12 [04:02:36]Write i2c OK [04:02:36]MH_I2C_Read... [04:02:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:02:36]Read from MH i2c: E2 [04:02:36]MH_I2C_Read... [04:02:36]Read from MH i2c: E2 0B 00 [04:02:36]MH_I2C_Read... [04:02:36]Read from MH i2c: E2 0B 00 55 42 00 F4 42 19 FA FF AD 9F CE 90 00 75 [04:02:36]RAPDU: F4 42 19 FA FF AD 9F CE 90 00 [04:02:36]wFMCommunicate OK [04:02:36]SAM_PROTO_SignData done [04:02:36]FM_MakeSignedData done [04:02:36]CreateOFDProtocolMessage [04:02:36]wFMCommunicate request_size=4 [04:02:36]MH_SAM_APDU [04:02:36]CAPDU: 80 11 00 00 [04:02:36]Write to MH i2c: E2 08 00 56 42 80 11 00 00 00 00 00 00 12 [04:02:36]Write i2c OK [04:02:36]MH_I2C_Read... [04:02:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:02:36]Read from MH i2c: E2 [04:02:36]MH_I2C_Read... [04:02:36]Read from MH i2c: E2 17 00 [04:02:36]MH_I2C_Read... [04:02:36]Read from MH i2c: E2 17 00 56 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 69 [04:02:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [04:02:36]wFMCommunicate OK [04:02:36]CreateOFDProtocolMessage done [04:02:36]OFDSenderStorePacket 92567 [04:02:36]StoreOFDPacket docnum=92567 [04:02:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A0 01 00 00 E6 A4 98 01 FA A5 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 36 39 34 33 30 34 36 33 30 31 30 32 38 06 04 19 00 D0 9E D1 87 D0 B8 D1 81 D1 82 D0 B8 D1 82 D0 B5 D0 BB D1 8C 20 43 41 52 42 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 0B 00 00 00 00 07 04 06 00 1C 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 61 5C E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 97 69 01 00 35 04 06 00 A5 D7 23 62 F3 33 F4 42 19 FA FF AD 9F CE [04:02:36]CheckFolder [04:02:36]dirname=/storage/ofd_packets [04:02:36]CheckFolder done [04:02:36]ProducePacketName [04:02:36]name=ofd_packets/00092567 [04:02:36]NVStorageSaveData ofd_packets/00092567 [04:02:36]File name is /storage/ofd_packets/00092567 [04:02:36]Write 446 bytes [04:02:36]NVStorageSaveData done [04:02:36]OFDSenderStorePacket done [04:02:36]KKMCreateOFDPacket done [04:02:36]NVStorageSaveData kkm_last_timestamp [04:02:36]File name is /storage/kkm_last_timestamp [04:02:36]Write 4 bytes [04:02:36]NVStorageSaveData done [04:02:36]ExternCall_PrintAddStr [04:02:36]wPrintStart [04:02:36]Write to MH i2c: 01 00 00 57 42 99 [04:02:36]Write i2c OK [04:02:37]MH_I2C_Read... [04:02:37]OFD Sender: Processing packet 92567 [packets to send 63, broken 62] [04:02:37]ProducePacketName [04:02:37]name=ofd_packets/00092567 [04:02:37]OFD Sender: To server: pG, [04:02:37]CommunicateWithHost lk.salyk.kg:30040 [04:02:37]ConnectInit lk.salyk.kg [04:02:37]Read from MH i2c: 01 [04:02:37]MH_I2C_Read... [04:02:37]Read from MH i2c: 01 07 00 [04:02:37]MH_I2C_Read... [04:02:37]Read from MH i2c: 01 07 00 57 42 00 00 00 00 00 FF 0F AE [04:02:37]RasterBufferAndPrint [04:02:37]line Счет N : (3)127460 [04:02:37]line ИНН: 02508201610067 [04:02:37]line Контрольно-Кассовый Чек [04:02:37]line ПРОДАЖА [04:02:37]line Товар: 6943046301028 [04:02:37]line Очиститель CARB [04:02:37]line 1.000 * 205.00 [04:02:37]line = 205.00 [04:02:37]line НДС 12% НСП 1% [04:02:37]line > о реализуемом товаре [04:02:37]line Товар: 4700000480364 [04:02:37]line Напиток энерг Nitro экзотик 0.45 ж/б [04:02:37]line 1.000 * 82.00 [04:02:37]line = 82.00 [04:02:37]line НДС 12% НСП 1% [04:02:37]line > о реализуемом товаре [04:02:37]line ИТОГО: 287.00 [04:02:37]line НСП 1% : 2.54 [04:02:37]line НДС 12% : 30.48 [04:02:37]line Наличными: 287.00 [04:02:37]line Безнал.: 0.00 [04:02:37]line Место: АЗС № 5 "Партнер Нефть" [04:02:37]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [04:02:37]line СНО: Общий режим [04:02:37]line Чек 15 15.09.2024 04:02 [04:02:37]line Смена: 507 ФФД: 1.0 [04:02:37]line ЗНМ: 03000000022 [04:02:37]line РНМ: 0000000000091423 [04:02:37]line Версия ККМ: 001 [04:02:37]line ФМ: 0000000000874692 [04:02:37]line ФД: 92567 [04:02:37]line ФПД: 182343430239027 [04:02:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T040241&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92567&fm=182343430239027&tin=02508201610067®Number=0000000000091423&sum=28700 [04:02:37]line 0 [04:02:37]written 0, free lines is 4095 [04:02:37]Connected sock=10 [04:02:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A0 01 00 00 E6 A4 98 01 FA A5 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 36 39 34 33 30 34 36 33 30 31 30 32 38 06 04 19 00 D0 9E D1 87 D0 B8 D1 81 D1 82 D0 B8 D1 82 D0 B5 D0 BB D1 8C 20 43 41 52 42 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 0B 00 00 00 00 07 04 06 00 1C 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 61 5C E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 97 69 01 00 35 04 06 00 A5 D7 23 62 F3 33 F4 42 19 FA FF AD 9F CE [04:02:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 27 3F 47 00 9D F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 97 69 01 00 F4 03 04 00 DA 04 E6 66 B6 04 01 00 00 65 DB 85 95 5A 6E 22 C2 [04:02:37]CommunicateWithHost err = 0 [04:02:37]CheckOFDResponse [04:02:37]1017 (14) - 77093643461234 [04:02:37]1041 (16) - 0000000000874692 [04:02:37]1040 (4) - 92567 [04:02:37]1012 (4) - 14.09.2024 21:49 [04:02:37]1206 (1) - 0 [04:02:37]OFD Sender: Remove packet 92567 [04:02:37]ProducePacketName [04:02:37]name=ofd_packets/00092567 [04:02:37]NVStorageDeleteData [04:02:37]Write to MH i2c: 01 00 00 86 42 C8 [04:02:37]Write i2c OK [04:02:37]MH_I2C_Read... [04:02:37]Read from MH i2c: 01 [04:02:37]MH_I2C_Read... [04:02:37]Read from MH i2c: 01 07 00 [04:02:37]MH_I2C_Read... [04:02:37]Read from MH i2c: 01 07 00 86 42 00 00 00 00 00 C8 0C A3 [04:02:37]RasterBufferAndPrint [04:02:37]line [04:02:37]line [04:02:37]line [04:02:37]line [04:02:37]line [04:02:37]written 0, free lines is 3278 [04:02:37]MH_Cut [04:02:37]Write to MH i2c: D1 01 00 8D 42 01 A1 [04:02:37]Write i2c OK [04:02:37]MH_I2C_Read... [04:02:37]Read from MH i2c: D1 [04:02:37]MH_I2C_Read... [04:02:37]Read from MH i2c: D1 01 00 [04:02:37]MH_I2C_Read... [04:02:37]Read from MH i2c: D1 01 00 8D 42 00 A0 [04:02:37]Write to MH i2c: 01 00 00 8E 42 D0 [04:02:37]Write i2c OK [04:02:37]MH_I2C_Read... [04:02:37]OFD Sender: No OFD packet to send [04:02:38]*** Cut start [04:02:38]*** Purtial cut [04:02:38]*** Stage 1: CUTSNS_PIN = 1 [04:02:40]Read from MH i2c: 01 [04:02:40]MH_I2C_Read... [04:02:40]*** Stop cut motor [04:02:40]*** Cut end [04:02:40]Read from MH i2c: 01 07 00 [04:02:40]MH_I2C_Read... [04:02:40]Read from MH i2c: 01 07 00 8E 42 00 00 00 00 00 FF 0F E5 [04:02:40]process_action close_receipt done [04:02:40]requested_data is exist [04:02:40]produce_requested_data [04:02:40]requested_item fm.sn is exist - process it [04:02:40]wFMCommunicate request_size=4 [04:02:40]MH_SAM_APDU [04:02:40]CAPDU: 80 11 00 00 [04:02:40]Write to MH i2c: E2 08 00 8F 42 80 11 00 00 00 00 00 00 4B [04:02:40]Write i2c OK [04:02:40]MH_I2C_Read... [04:02:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:02:40]Read from MH i2c: E2 [04:02:40]MH_I2C_Read... [04:02:40]Read from MH i2c: E2 17 00 [04:02:40]MH_I2C_Read... [04:02:40]Read from MH i2c: E2 17 00 8F 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A2 [04:02:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [04:02:40]wFMCommunicate OK [04:02:40]requested_item fd.num is exist - process it [04:02:40]SAM_PROTO_GetFieldsCounters [04:02:40]wFMCommunicate request_size=4 [04:02:40]MH_SAM_APDU [04:02:40]CAPDU: 80 13 00 00 [04:02:40]Write to MH i2c: E2 08 00 90 42 80 13 00 00 00 00 00 00 4E [04:02:40]Write i2c OK [04:02:40]MH_I2C_Read... [04:02:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:02:40]Read from MH i2c: E2 [04:02:40]MH_I2C_Read... [04:02:40]Read from MH i2c: E2 62 00 [04:02:40]MH_I2C_Read... [04:02:40]Read from MH i2c: E2 62 00 90 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 97 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [04:02:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 97 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:02:40]wFMCommunicate OK [04:02:40]SAM_PROTO_GetFieldsCounters done [04:02:40]requested_item shift.num is exist - process it [04:02:40]requested_item shift.opened is exist - process it [04:02:40]req_shift_opened [04:02:40]FM_GetShiftState [04:02:40]SAM_PROTO_GetShiftState [04:02:40]wFMCommunicate request_size=4 [04:02:40]MH_SAM_APDU [04:02:40]CAPDU: 80 13 01 00 [04:02:40]Write to MH i2c: E2 08 00 91 42 80 13 01 00 00 00 00 00 50 [04:02:40]Write i2c OK [04:02:40]MH_I2C_Read... [04:02:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:02:40]Read from MH i2c: E2 [04:02:40]MH_I2C_Read... [04:02:40]Read from MH i2c: E2 0E 00 [04:02:40]MH_I2C_Read... [04:02:40]Read from MH i2c: E2 0E 00 91 42 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 D2 [04:02:40]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [04:02:40]wFMCommunicate OK [04:02:40]SAM_PROTO_GetShiftState done [04:02:40]FM_GetShiftState done [04:02:40]req_shift_opened done [04:02:40]requested_item shift.open_date is exist - process it [04:02:40]req_shift_open_date [04:02:40]req_shift_open_date done [04:02:40]produce_requested_data done [04:02:40]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92567,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [04:02:40]process_action_free close_receipt [04:02:40]json_value_free [04:02:40]json_value_free done [04:02:40]process_json_proto returns [04:02:40]Send response to host [04:02:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92567,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [04:02:40]free response buf [04:02:40]execute_script done [04:02:40]execute_script returns [04:02:40]free content buf [04:02:40]Sock 9.Close socket [04:02:40]Sock 9.Thread stoped [04:02:42]OFD Sender: No OFD packet to send [04:02:47]OFD Sender: No OFD packet to send [04:02:49]accept exits with 8 [04:02:49]New connection [04:02:49]New thread 3066658148 created [04:02:49]Thread 3066801508 joined [04:02:49]Waiting for new connection... [04:02:49] Sock 8.Parse request [04:02:49]Sock 8.Check first char [04:02:49]Sock 8.First char is OK [04:02:49]request: POST /json_proto HTTP/1.0 [04:02:49]Method: POST [04:02:49]URL: /json_proto [04:02:49]Method is POST - this is cgi request [04:02:49]url: /json_proto [04:02:49]query_string will be loaded in cgi processing [04:02:49]execute_cgi json_proto POST (null) [04:02:49]execute_cgi path=json_proto method=POST [04:02:49]POST find Content-Length [04:02:49]Host: 172.17.57.71:8080 [04:02:49]Content-Length: 624 [04:02:49]Content-Type: application/json [04:02:49] [04:02:49]POST finish read [04:02:49]Found Content-Length = 624 [04:02:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127461", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 147.00, "quantity" : 1.000, "sum" : 147.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 147.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:02:49]execute_script... [04:02:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127461", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 147.00, "quantity" : 1.000, "sum" : 147.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 147.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:02:49]POST & json_proto [04:02:49]process_json_proto [04:02:49]json parsed OK: [04:02:49]protocol is kg_v1.0 [04:02:49]action value=close_receipt [04:02:49]process_action close_receipt [04:02:49]cmd_close_receipt [04:02:49]MH_GetDate [04:02:49]Write to MH i2c: F0 00 00 92 42 C3 [04:02:49]Write i2c OK [04:02:49]MH_I2C_Read... [04:02:49]Read from MH i2c: F0 [04:02:49]MH_I2C_Read... [04:02:49]Read from MH i2c: F0 09 00 [04:02:49]MH_I2C_Read... [04:02:49]Read from MH i2c: F0 09 00 92 42 00 70 5C E6 66 33 3A A4 66 5B [04:02:49]GetLastDocTimeStamp 1726372961 [04:02:49]current date 1726372976 [04:02:49]FM_GetShiftState [04:02:49]SAM_PROTO_GetShiftState [04:02:49]wFMCommunicate request_size=4 [04:02:49]MH_SAM_APDU [04:02:49]CAPDU: 80 13 01 00 [04:02:49]Write to MH i2c: E2 08 00 93 42 80 13 01 00 00 00 00 00 52 [04:02:49]Write i2c OK [04:02:49]MH_I2C_Read... [04:02:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:02:49]Read from MH i2c: E2 [04:02:49]MH_I2C_Read... [04:02:49]Read from MH i2c: E2 0E 00 [04:02:49]MH_I2C_Read... [04:02:49]Read from MH i2c: E2 0E 00 93 42 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 D4 [04:02:49]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [04:02:49]wFMCommunicate OK [04:02:49]SAM_PROTO_GetShiftState done [04:02:49]FM_GetShiftState done [04:02:49]opened in 1726359809 [04:02:49]opened+sec_in_day 1726446209 [04:02:49]quantity*price = 14700 [04:02:49]sum+1 = 14701 [04:02:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 147.00 НСП 1% : 1.30 НДС 12% : 15.61 Наличными: 147.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 16 15.09.2024 04:02 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92568 ФПД: 273267030179872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T040256&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92568&fm=273267030179872&tin=02508201610067®Number=0000000000091423&sum=14700 0 [04:02:50]StoreToDocumentArchive [04:02:50]shift 507 fd 92568 [04:02:50]save to /storage/0507/doc_00092568 [04:02:50]save last doc name /storage/0507/doc_00092568 to /storage/kkm_last_doc_name [04:02:50]save OK [04:02:50]Clear old archive folders... [04:02:50]ProcessDocumentItem done err = 0, tmpTLVsize=276 [04:02:50]tlvbuf is 01038330 [04:02:50]SAM_PROTO_ClearQueue [04:02:50]wFMCommunicate request_size=4 [04:02:50]MH_SAM_APDU [04:02:50]CAPDU: 80 09 00 00 [04:02:50]Write to MH i2c: E2 08 00 A0 42 80 09 00 00 00 00 00 00 54 [04:02:50]Write i2c OK [04:02:50]MH_I2C_Read... [04:02:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:02:50]Read from MH i2c: E2 [04:02:50]MH_I2C_Read... [04:02:50]Read from MH i2c: E2 03 00 [04:02:50]MH_I2C_Read... [04:02:50]Read from MH i2c: E2 03 00 A0 42 00 90 00 56 [04:02:50]RAPDU: 90 00 [04:02:50]wFMCommunicate OK [04:02:50]SAM_PROTO_ClearQueue done [04:02:50]KKMCreateOFDPacket [04:02:50]OFDProtocolAddRootSTLVToBuf [04:02:50]FM_MakeSignedData [04:02:50]FM_MakeSignedData [04:02:50]SAM_PROTO_SignData [04:02:50]wFMCommunicate request_size=4 [04:02:50]MH_SAM_APDU [04:02:50]CAPDU: 80 0D 01 02 [04:02:50]Write to MH i2c: E2 08 00 A1 42 80 0D 01 02 00 00 00 00 5C [04:02:50]Write i2c OK [04:02:50]MH_I2C_Read... [04:02:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:02:50]Read from MH i2c: E2 [04:02:50]MH_I2C_Read... [04:02:50]Read from MH i2c: E2 03 00 [04:02:50]MH_I2C_Read... [04:02:50]Read from MH i2c: E2 03 00 A1 42 00 90 00 57 [04:02:50]RAPDU: 90 00 [04:02:50]wFMCommunicate OK [04:02:50]wFMCommunicate request_size=255 [04:02:50]MH_SAM_APDU [04:02:50]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 70 5C E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 [04:02:50]Write to MH i2c: E2 02 01 A2 42 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 70 5C E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 00 00 40 [04:02:50]Write i2c OK [04:02:50]MH_I2C_Read... [04:02:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:02:51]Read from MH i2c: E2 [04:02:51]MH_I2C_Read... [04:02:51]Read from MH i2c: E2 03 00 [04:02:51]MH_I2C_Read... [04:02:51]Read from MH i2c: E2 03 00 A2 42 00 90 00 58 [04:02:51]RAPDU: 90 00 [04:02:51]wFMCommunicate OK [04:02:51]wFMCommunicate request_size=35 [04:02:51]MH_SAM_APDU [04:02:51]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 98 69 01 00 35 04 06 00 F8 88 F0 43 40 20 [04:02:51]Write to MH i2c: E2 26 00 A3 42 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 98 69 01 00 35 04 06 00 F8 88 F0 43 40 20 00 00 6B [04:02:51]Write i2c OK [04:02:51]MH_I2C_Read... [04:02:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:02:51]Read from MH i2c: E2 [04:02:51]MH_I2C_Read... [04:02:51]Read from MH i2c: E2 03 00 [04:02:51]MH_I2C_Read... [04:02:51]Read from MH i2c: E2 03 00 A3 42 00 90 00 59 [04:02:51]RAPDU: 90 00 [04:02:51]wFMCommunicate OK [04:02:51]wFMCommunicate request_size=4 [04:02:51]MH_SAM_APDU [04:02:51]CAPDU: 80 0D 03 02 [04:02:51]Write to MH i2c: E2 08 00 A4 42 80 0D 03 02 00 00 00 00 61 [04:02:51]Write i2c OK [04:02:51]MH_I2C_Read... [04:02:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:02:51]Read from MH i2c: E2 [04:02:51]MH_I2C_Read... [04:02:51]Read from MH i2c: E2 0B 00 [04:02:51]MH_I2C_Read... [04:02:51]Read from MH i2c: E2 0B 00 A4 42 00 9E A5 99 D2 AB 1A B4 A5 90 00 2E [04:02:51]RAPDU: 9E A5 99 D2 AB 1A B4 A5 90 00 [04:02:51]wFMCommunicate OK [04:02:51]SAM_PROTO_SignData done [04:02:51]FM_MakeSignedData done [04:02:51]CreateOFDProtocolMessage [04:02:51]wFMCommunicate request_size=4 [04:02:51]MH_SAM_APDU [04:02:51]CAPDU: 80 11 00 00 [04:02:51]Write to MH i2c: E2 08 00 A5 42 80 11 00 00 00 00 00 00 61 [04:02:51]Write i2c OK [04:02:51]MH_I2C_Read... [04:02:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:02:51]Read from MH i2c: E2 [04:02:51]MH_I2C_Read... [04:02:51]Read from MH i2c: E2 17 00 [04:02:51]MH_I2C_Read... [04:02:51]Read from MH i2c: E2 17 00 A5 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B8 [04:02:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [04:02:51]wFMCommunicate OK [04:02:51]CreateOFDProtocolMessage done [04:02:51]OFDSenderStorePacket 92568 [04:02:51]StoreOFDPacket docnum=92568 [04:02:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 28 01 00 00 31 CD 20 01 43 15 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 70 5C E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 98 69 01 00 35 04 06 00 F8 88 F0 43 40 20 9E A5 99 D2 AB 1A B4 A5 [04:02:51]CheckFolder [04:02:51]dirname=/storage/ofd_packets [04:02:51]CheckFolder done [04:02:51]ProducePacketName [04:02:51]name=ofd_packets/00092568 [04:02:51]NVStorageSaveData ofd_packets/00092568 [04:02:51]File name is /storage/ofd_packets/00092568 [04:02:51]Write 326 bytes [04:02:51]NVStorageSaveData done [04:02:51]OFDSenderStorePacket done [04:02:51]KKMCreateOFDPacket done [04:02:51]NVStorageSaveData kkm_last_timestamp [04:02:51]File name is /storage/kkm_last_timestamp [04:02:51]Write 4 bytes [04:02:51]NVStorageSaveData done [04:02:51]ExternCall_PrintAddStr [04:02:51]wPrintStart [04:02:51]Write to MH i2c: 01 00 00 A6 42 E8 [04:02:51]Write i2c OK [04:02:51]MH_I2C_Read... [04:02:51]Read from MH i2c: 01 [04:02:51]MH_I2C_Read... [04:02:51]Read from MH i2c: 01 07 00 [04:02:51]MH_I2C_Read... [04:02:51]Read from MH i2c: 01 07 00 A6 42 00 00 00 00 00 FF 0F FD [04:02:51]RasterBufferAndPrint [04:02:51]line Счет N : (3)127461 [04:02:51]line ИНН: 02508201610067 [04:02:51]line Контрольно-Кассовый Чек [04:02:51]line ПРОДАЖА [04:02:51]line Товар: 48744683 [04:02:51]line Сигареты Winston XStyle Caster+ [04:02:51]line 1.000 * 147.00 [04:02:51]line = 147.00 [04:02:51]line НДС 12% НСП 1% [04:02:51]line > о реализуемом товаре [04:02:51]line ИТОГО: 147.00 [04:02:51]line НСП 1% : 1.30 [04:02:51]line НДС 12% : 15.61 [04:02:51]line Наличными: 147.00 [04:02:51]line Безнал.: 0.00 [04:02:51]line Место: АЗС № 5 "Партнер Нефть" [04:02:51]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [04:02:51]line СНО: Общий режим [04:02:51]line Чек 16 15.09.2024 04:02 [04:02:51]line Смена: 507 ФФД: 1.0 [04:02:51]line ЗНМ: 03000000022 [04:02:51]line РНМ: 0000000000091423 [04:02:51]line Версия ККМ: 001 [04:02:51]line ФМ: 0000000000874692 [04:02:51]line ФД: 92568 [04:02:51]line ФПД: 273267030179872 [04:02:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T040256&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92568&fm=273267030179872&tin=02508201610067®Number=0000000000091423&sum=14700 [04:02:51]line 0 [04:02:51]OFD Sender: Processing packet 92568 [packets to send 63, broken 62] [04:02:51]ProducePacketName [04:02:51]name=ofd_packets/00092568 [04:02:51]OFD Sender: To server: pG, [04:02:51]CommunicateWithHost lk.salyk.kg:30040 [04:02:51]ConnectInit lk.salyk.kg [04:02:51]written 0, free lines is 4095 [04:02:51]Connected sock=11 [04:02:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 28 01 00 00 31 CD 20 01 43 15 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 70 5C E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 98 69 01 00 35 04 06 00 F8 88 F0 43 40 20 9E A5 99 D2 AB 1A B4 A5 [04:02:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 F0 5A 47 00 B8 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 98 69 01 00 F4 03 04 00 E9 04 E6 66 B6 04 01 00 00 04 37 A4 0A 8A A9 36 6C [04:02:51]CommunicateWithHost err = 0 [04:02:51]CheckOFDResponse [04:02:51]1017 (14) - 77093643461234 [04:02:51]1041 (16) - 0000000000874692 [04:02:51]1040 (4) - 92568 [04:02:51]1012 (4) - 14.09.2024 21:49 [04:02:51]1206 (1) - 0 [04:02:51]OFD Sender: Remove packet 92568 [04:02:51]ProducePacketName [04:02:51]name=ofd_packets/00092568 [04:02:51]NVStorageDeleteData [04:02:52]Write to MH i2c: 01 00 00 CF 42 11 [04:02:52]Write i2c OK [04:02:52]MH_I2C_Read... [04:02:52]Read from MH i2c: 01 [04:02:52]MH_I2C_Read... [04:02:52]Read from MH i2c: 01 07 00 [04:02:52]MH_I2C_Read... [04:02:52]Read from MH i2c: 01 07 00 CF 42 00 00 00 00 00 12 0D 37 [04:02:52]RasterBufferAndPrint [04:02:52]line [04:02:52]line [04:02:52]line [04:02:52]line [04:02:52]line [04:02:52]written 0, free lines is 3353 [04:02:52]MH_Cut [04:02:52]Write to MH i2c: D1 01 00 D6 42 01 EA [04:02:52]Write i2c OK [04:02:52]MH_I2C_Read... [04:02:52]Read from MH i2c: D1 [04:02:52]MH_I2C_Read... [04:02:52]Read from MH i2c: D1 01 00 [04:02:52]MH_I2C_Read... [04:02:52]Read from MH i2c: D1 01 00 D6 42 00 E9 [04:02:52]Write to MH i2c: 01 00 00 D7 42 19 [04:02:52]Write i2c OK [04:02:52]MH_I2C_Read... [04:02:52]OFD Sender: No OFD packet to send [04:02:52]*** Cut start [04:02:52]*** Purtial cut [04:02:52]*** Stage 1: CUTSNS_PIN = 1 [04:02:54]Read from MH i2c: 01 [04:02:54]MH_I2C_Read... [04:02:54]*** Stop cut motor [04:02:54]*** Cut end [04:02:54]Read from MH i2c: 01 07 00 [04:02:54]MH_I2C_Read... [04:02:54]Read from MH i2c: 01 07 00 D7 42 00 00 00 00 00 FF 0F 2E [04:02:54]process_action close_receipt done [04:02:54]requested_data is exist [04:02:54]produce_requested_data [04:02:54]requested_item fm.sn is exist - process it [04:02:54]wFMCommunicate request_size=4 [04:02:54]MH_SAM_APDU [04:02:54]CAPDU: 80 11 00 00 [04:02:54]Write to MH i2c: E2 08 00 D8 42 80 11 00 00 00 00 00 00 94 [04:02:54]Write i2c OK [04:02:54]MH_I2C_Read... [04:02:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:02:54]Read from MH i2c: E2 [04:02:54]MH_I2C_Read... [04:02:54]Read from MH i2c: E2 17 00 [04:02:54]MH_I2C_Read... [04:02:54]Read from MH i2c: E2 17 00 D8 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 EB [04:02:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [04:02:54]wFMCommunicate OK [04:02:54]requested_item fd.num is exist - process it [04:02:54]SAM_PROTO_GetFieldsCounters [04:02:54]wFMCommunicate request_size=4 [04:02:54]MH_SAM_APDU [04:02:54]CAPDU: 80 13 00 00 [04:02:54]Write to MH i2c: E2 08 00 D9 42 80 13 00 00 00 00 00 00 97 [04:02:54]Write i2c OK [04:02:54]MH_I2C_Read... [04:02:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:02:54]Read from MH i2c: E2 [04:02:54]MH_I2C_Read... [04:02:54]Read from MH i2c: E2 62 00 [04:02:54]MH_I2C_Read... [04:02:54]Read from MH i2c: E2 62 00 D9 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 98 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [04:02:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 98 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:02:54]wFMCommunicate OK [04:02:54]SAM_PROTO_GetFieldsCounters done [04:02:54]requested_item shift.num is exist - process it [04:02:54]requested_item shift.opened is exist - process it [04:02:54]req_shift_opened [04:02:54]FM_GetShiftState [04:02:54]SAM_PROTO_GetShiftState [04:02:54]wFMCommunicate request_size=4 [04:02:54]MH_SAM_APDU [04:02:54]CAPDU: 80 13 01 00 [04:02:54]Write to MH i2c: E2 08 00 DA 42 80 13 01 00 00 00 00 00 99 [04:02:54]Write i2c OK [04:02:54]MH_I2C_Read... [04:02:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:02:55]Read from MH i2c: E2 [04:02:55]MH_I2C_Read... [04:02:55]Read from MH i2c: E2 0E 00 [04:02:55]MH_I2C_Read... [04:02:55]Read from MH i2c: E2 0E 00 DA 42 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 1B [04:02:55]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [04:02:55]wFMCommunicate OK [04:02:55]SAM_PROTO_GetShiftState done [04:02:55]FM_GetShiftState done [04:02:55]req_shift_opened done [04:02:55]requested_item shift.open_date is exist - process it [04:02:55]req_shift_open_date [04:02:55]req_shift_open_date done [04:02:55]produce_requested_data done [04:02:55]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92568,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [04:02:55]process_action_free close_receipt [04:02:55]json_value_free [04:02:55]json_value_free done [04:02:55]process_json_proto returns [04:02:55]Send response to host [04:02:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92568,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [04:02:55]free response buf [04:02:55]execute_script done [04:02:55]execute_script returns [04:02:55]free content buf [04:02:55]Sock 8.Close socket [04:02:55]Sock 8.Thread stoped [04:02:57]OFD Sender: No OFD packet to send [04:03:02]OFD Sender: No OFD packet to send [04:03:07]OFD Sender: No OFD packet to send [04:03:12]OFD Sender: No OFD packet to send [04:03:17]OFD Sender: No OFD packet to send [04:03:22]OFD Sender: No OFD packet to send [04:03:27]OFD Sender: No OFD packet to send [04:03:32]OFD Sender: No OFD packet to send [04:03:37]OFD Sender: No OFD packet to send [04:03:42]OFD Sender: No OFD packet to send [04:03:47]OFD Sender: No OFD packet to send [04:03:52]OFD Sender: No OFD packet to send [04:03:57]OFD Sender: No OFD packet to send [04:04:02]OFD Sender: No OFD packet to send [04:04:07]OFD Sender: No OFD packet to send [04:04:12]OFD Sender: No OFD packet to send [04:04:17]OFD Sender: No OFD packet to send [04:04:22]OFD Sender: No OFD packet to send [04:04:27]OFD Sender: No OFD packet to send [04:04:32]OFD Sender: No OFD packet to send [04:04:37]OFD Sender: No OFD packet to send [04:04:42]OFD Sender: No OFD packet to send [04:04:47]OFD Sender: No OFD packet to send [04:04:52]OFD Sender: No OFD packet to send [04:04:57]OFD Sender: No OFD packet to send [04:05:02]OFD Sender: No OFD packet to send [04:05:07]OFD Sender: No OFD packet to send [04:05:12]OFD Sender: No OFD packet to send [04:05:17]OFD Sender: No OFD packet to send [04:05:22]OFD Sender: No OFD packet to send [04:05:27]OFD Sender: No OFD packet to send [04:05:32]OFD Sender: No OFD packet to send [04:05:37]OFD Sender: No OFD packet to send [04:05:42]OFD Sender: No OFD packet to send [04:05:47]OFD Sender: No OFD packet to send [04:05:52]OFD Sender: No OFD packet to send [04:05:57]OFD Sender: No OFD packet to send [04:06:02]OFD Sender: No OFD packet to send [04:06:07]OFD Sender: No OFD packet to send [04:06:12]OFD Sender: No OFD packet to send [04:06:17]OFD Sender: No OFD packet to send [04:06:22]OFD Sender: No OFD packet to send [04:06:27]OFD Sender: No OFD packet to send [04:06:32]OFD Sender: No OFD packet to send [04:06:37]OFD Sender: No OFD packet to send [04:06:42]OFD Sender: No OFD packet to send [04:06:47]OFD Sender: No OFD packet to send [04:06:52]OFD Sender: No OFD packet to send [04:06:57]OFD Sender: No OFD packet to send [04:07:02]OFD Sender: No OFD packet to send [04:07:07]OFD Sender: No OFD packet to send [04:07:12]OFD Sender: No OFD packet to send [04:07:17]OFD Sender: No OFD packet to send [04:07:22]OFD Sender: No OFD packet to send [04:07:27]OFD Sender: No OFD packet to send [04:07:32]OFD Sender: No OFD packet to send [04:07:37]OFD Sender: No OFD packet to send [04:07:42]OFD Sender: No OFD packet to send [04:07:47]OFD Sender: No OFD packet to send [04:07:52]OFD Sender: No OFD packet to send [04:07:57]OFD Sender: No OFD packet to send [04:08:02]OFD Sender: No OFD packet to send [04:08:07]OFD Sender: No OFD packet to send [04:08:12]OFD Sender: No OFD packet to send [04:08:17]OFD Sender: No OFD packet to send [04:08:22]OFD Sender: No OFD packet to send [04:08:27]OFD Sender: No OFD packet to send [04:08:32]OFD Sender: No OFD packet to send [04:08:37]OFD Sender: No OFD packet to send [04:08:42]OFD Sender: No OFD packet to send [04:08:47]OFD Sender: No OFD packet to send [04:08:52]OFD Sender: No OFD packet to send [04:08:57]OFD Sender: No OFD packet to send [04:09:02]OFD Sender: No OFD packet to send [04:09:07]OFD Sender: No OFD packet to send [04:09:12]OFD Sender: No OFD packet to send [04:09:17]OFD Sender: No OFD packet to send [04:09:22]OFD Sender: No OFD packet to send [04:09:27]OFD Sender: No OFD packet to send [04:09:32]OFD Sender: No OFD packet to send [04:09:37]OFD Sender: No OFD packet to send [04:09:42]OFD Sender: No OFD packet to send [04:09:47]OFD Sender: No OFD packet to send [04:09:52]OFD Sender: No OFD packet to send [04:09:57]OFD Sender: No OFD packet to send [04:10:02]OFD Sender: No OFD packet to send [04:10:07]OFD Sender: No OFD packet to send [04:10:12]OFD Sender: No OFD packet to send [04:10:17]OFD Sender: No OFD packet to send [04:10:22]OFD Sender: No OFD packet to send [04:10:27]OFD Sender: No OFD packet to send [04:10:32]OFD Sender: No OFD packet to send [04:10:37]OFD Sender: No OFD packet to send [04:10:42]OFD Sender: No OFD packet to send [04:10:47]OFD Sender: No OFD packet to send [04:10:52]OFD Sender: No OFD packet to send [04:10:57]OFD Sender: No OFD packet to send [04:11:02]OFD Sender: No OFD packet to send [04:11:07]OFD Sender: No OFD packet to send [04:11:12]OFD Sender: No OFD packet to send [04:11:17]OFD Sender: No OFD packet to send [04:11:22]OFD Sender: No OFD packet to send [04:11:27]OFD Sender: No OFD packet to send [04:11:32]OFD Sender: No OFD packet to send [04:11:37]OFD Sender: No OFD packet to send [04:11:42]OFD Sender: No OFD packet to send [04:11:47]OFD Sender: No OFD packet to send [04:11:52]OFD Sender: No OFD packet to send [04:11:57]OFD Sender: No OFD packet to send [04:12:02]OFD Sender: No OFD packet to send [04:12:07]OFD Sender: No OFD packet to send [04:12:12]OFD Sender: No OFD packet to send [04:12:17]OFD Sender: No OFD packet to send [04:12:23]OFD Sender: No OFD packet to send [04:12:28]OFD Sender: No OFD packet to send [04:12:33]OFD Sender: No OFD packet to send [04:12:38]OFD Sender: No OFD packet to send [04:12:43]OFD Sender: No OFD packet to send [04:12:48]OFD Sender: No OFD packet to send [04:12:53]OFD Sender: No OFD packet to send [04:12:58]OFD Sender: No OFD packet to send [04:13:03]OFD Sender: No OFD packet to send [04:13:08]OFD Sender: No OFD packet to send [04:13:13]OFD Sender: No OFD packet to send [04:13:18]OFD Sender: No OFD packet to send [04:13:23]OFD Sender: No OFD packet to send [04:13:28]OFD Sender: No OFD packet to send [04:13:33]OFD Sender: No OFD packet to send [04:13:38]OFD Sender: No OFD packet to send [04:13:43]OFD Sender: No OFD packet to send [04:13:48]OFD Sender: No OFD packet to send [04:13:53]OFD Sender: No OFD packet to send [04:13:58]OFD Sender: No OFD packet to send [04:14:03]OFD Sender: No OFD packet to send [04:14:08]OFD Sender: No OFD packet to send [04:14:13]OFD Sender: No OFD packet to send [04:14:18]OFD Sender: No OFD packet to send [04:14:23]OFD Sender: No OFD packet to send [04:14:28]OFD Sender: No OFD packet to send [04:14:33]OFD Sender: No OFD packet to send [04:14:38]OFD Sender: No OFD packet to send [04:14:43]OFD Sender: No OFD packet to send [04:14:48]OFD Sender: No OFD packet to send [04:14:53]OFD Sender: No OFD packet to send [04:14:58]OFD Sender: No OFD packet to send [04:15:03]OFD Sender: No OFD packet to send [04:15:08]OFD Sender: No OFD packet to send [04:15:13]OFD Sender: No OFD packet to send [04:15:18]OFD Sender: No OFD packet to send [04:15:23]OFD Sender: No OFD packet to send [04:15:28]OFD Sender: No OFD packet to send [04:15:33]OFD Sender: No OFD packet to send [04:15:38]OFD Sender: No OFD packet to send [04:15:43]OFD Sender: No OFD packet to send [04:15:48]OFD Sender: No OFD packet to send [04:15:53]OFD Sender: No OFD packet to send [04:15:58]OFD Sender: No OFD packet to send [04:16:03]OFD Sender: No OFD packet to send [04:16:08]OFD Sender: No OFD packet to send [04:16:13]OFD Sender: No OFD packet to send [04:16:18]OFD Sender: No OFD packet to send [04:16:23]OFD Sender: No OFD packet to send [04:16:28]OFD Sender: No OFD packet to send [04:16:33]OFD Sender: No OFD packet to send [04:16:38]OFD Sender: No OFD packet to send [04:16:43]OFD Sender: No OFD packet to send [04:16:48]OFD Sender: No OFD packet to send [04:16:53]OFD Sender: No OFD packet to send [04:16:58]OFD Sender: No OFD packet to send [04:17:03]OFD Sender: No OFD packet to send [04:17:08]OFD Sender: No OFD packet to send [04:17:13]OFD Sender: No OFD packet to send [04:17:18]OFD Sender: No OFD packet to send [04:17:23]OFD Sender: No OFD packet to send [04:17:28]OFD Sender: No OFD packet to send [04:17:33]OFD Sender: No OFD packet to send [04:17:38]OFD Sender: No OFD packet to send [04:17:43]OFD Sender: No OFD packet to send [04:17:48]OFD Sender: No OFD packet to send [04:17:53]OFD Sender: No OFD packet to send [04:17:58]OFD Sender: No OFD packet to send [04:18:03]OFD Sender: No OFD packet to send [04:18:08]OFD Sender: No OFD packet to send [04:18:13]OFD Sender: No OFD packet to send [04:18:18]OFD Sender: No OFD packet to send [04:18:23]OFD Sender: No OFD packet to send [04:18:28]OFD Sender: No OFD packet to send [04:18:33]OFD Sender: No OFD packet to send [04:18:38]OFD Sender: No OFD packet to send [04:18:43]OFD Sender: No OFD packet to send [04:18:48]OFD Sender: No OFD packet to send [04:18:53]OFD Sender: No OFD packet to send [04:18:58]OFD Sender: No OFD packet to send [04:19:03]OFD Sender: No OFD packet to send [04:19:08]OFD Sender: No OFD packet to send [04:19:13]OFD Sender: No OFD packet to send [04:19:18]OFD Sender: No OFD packet to send [04:19:23]OFD Sender: No OFD packet to send [04:19:28]OFD Sender: No OFD packet to send [04:19:33]OFD Sender: No OFD packet to send [04:19:38]OFD Sender: No OFD packet to send [04:19:43]OFD Sender: No OFD packet to send [04:19:48]OFD Sender: No OFD packet to send [04:19:53]OFD Sender: No OFD packet to send [04:19:58]OFD Sender: No OFD packet to send [04:20:03]OFD Sender: No OFD packet to send [04:20:08]OFD Sender: No OFD packet to send [04:20:13]OFD Sender: No OFD packet to send [04:20:18]OFD Sender: No OFD packet to send [04:20:23]OFD Sender: No OFD packet to send [04:20:28]OFD Sender: No OFD packet to send [04:20:33]OFD Sender: No OFD packet to send [04:20:38]OFD Sender: No OFD packet to send [04:20:43]OFD Sender: No OFD packet to send [04:20:48]OFD Sender: No OFD packet to send [04:20:53]OFD Sender: No OFD packet to send [04:20:58]OFD Sender: No OFD packet to send [04:21:03]OFD Sender: No OFD packet to send [04:21:08]OFD Sender: No OFD packet to send [04:21:13]OFD Sender: No OFD packet to send [04:21:18]OFD Sender: No OFD packet to send [04:21:23]OFD Sender: No OFD packet to send [04:21:28]OFD Sender: No OFD packet to send [04:21:33]OFD Sender: No OFD packet to send [04:21:38]OFD Sender: No OFD packet to send [04:21:43]OFD Sender: No OFD packet to send [04:21:48]OFD Sender: No OFD packet to send [04:21:53]OFD Sender: No OFD packet to send [04:21:58]OFD Sender: No OFD packet to send [04:22:03]OFD Sender: No OFD packet to send [04:22:08]OFD Sender: No OFD packet to send [04:22:13]OFD Sender: No OFD packet to send [04:22:18]OFD Sender: No OFD packet to send [04:22:23]OFD Sender: No OFD packet to send [04:22:28]OFD Sender: No OFD packet to send [04:22:33]OFD Sender: No OFD packet to send [04:22:38]OFD Sender: No OFD packet to send [04:22:43]OFD Sender: No OFD packet to send [04:22:48]OFD Sender: No OFD packet to send [04:22:53]OFD Sender: No OFD packet to send [04:22:58]OFD Sender: No OFD packet to send [04:23:03]OFD Sender: No OFD packet to send [04:23:08]OFD Sender: No OFD packet to send [04:23:13]OFD Sender: No OFD packet to send [04:23:18]OFD Sender: No OFD packet to send [04:23:23]OFD Sender: No OFD packet to send [04:23:28]OFD Sender: No OFD packet to send [04:23:33]OFD Sender: No OFD packet to send [04:23:38]OFD Sender: No OFD packet to send [04:23:43]OFD Sender: No OFD packet to send [04:23:48]OFD Sender: No OFD packet to send [04:23:53]OFD Sender: No OFD packet to send [04:23:58]OFD Sender: No OFD packet to send [04:24:03]OFD Sender: No OFD packet to send [04:24:08]OFD Sender: No OFD packet to send [04:24:13]OFD Sender: No OFD packet to send [04:24:18]OFD Sender: No OFD packet to send [04:24:23]OFD Sender: No OFD packet to send [04:24:28]OFD Sender: No OFD packet to send [04:24:33]OFD Sender: No OFD packet to send [04:24:38]OFD Sender: No OFD packet to send [04:24:43]OFD Sender: No OFD packet to send [04:24:48]OFD Sender: No OFD packet to send [04:24:53]OFD Sender: No OFD packet to send [04:24:58]OFD Sender: No OFD packet to send [04:25:03]OFD Sender: No OFD packet to send [04:25:08]OFD Sender: No OFD packet to send [04:25:13]OFD Sender: No OFD packet to send [04:25:18]OFD Sender: No OFD packet to send [04:25:23]OFD Sender: No OFD packet to send [04:25:28]OFD Sender: No OFD packet to send [04:25:33]OFD Sender: No OFD packet to send [04:25:38]OFD Sender: No OFD packet to send [04:25:43]OFD Sender: No OFD packet to send [04:25:48]OFD Sender: No OFD packet to send [04:25:53]OFD Sender: No OFD packet to send [04:25:58]OFD Sender: No OFD packet to send [04:26:03]OFD Sender: No OFD packet to send [04:26:08]OFD Sender: No OFD packet to send [04:26:13]OFD Sender: No OFD packet to send [04:26:18]OFD Sender: No OFD packet to send [04:26:23]OFD Sender: No OFD packet to send [04:26:28]OFD Sender: No OFD packet to send [04:26:33]OFD Sender: No OFD packet to send [04:26:38]OFD Sender: No OFD packet to send [04:26:43]OFD Sender: No OFD packet to send [04:26:48]OFD Sender: No OFD packet to send [04:26:53]OFD Sender: No OFD packet to send [04:26:58]OFD Sender: No OFD packet to send [04:27:03]OFD Sender: No OFD packet to send [04:27:08]OFD Sender: No OFD packet to send [04:27:13]OFD Sender: No OFD packet to send [04:27:18]OFD Sender: No OFD packet to send [04:27:23]OFD Sender: No OFD packet to send [04:27:28]OFD Sender: No OFD packet to send [04:27:33]OFD Sender: No OFD packet to send [04:27:38]OFD Sender: No OFD packet to send [04:27:43]OFD Sender: No OFD packet to send [04:27:48]OFD Sender: No OFD packet to send [04:27:53]OFD Sender: No OFD packet to send [04:27:58]OFD Sender: No OFD packet to send [04:28:03]OFD Sender: No OFD packet to send [04:28:08]OFD Sender: No OFD packet to send [04:28:13]OFD Sender: No OFD packet to send [04:28:18]OFD Sender: No OFD packet to send [04:28:23]OFD Sender: No OFD packet to send [04:28:28]OFD Sender: No OFD packet to send [04:28:33]OFD Sender: No OFD packet to send [04:28:38]OFD Sender: No OFD packet to send [04:28:43]OFD Sender: No OFD packet to send [04:28:48]OFD Sender: No OFD packet to send [04:28:53]OFD Sender: No OFD packet to send [04:28:58]OFD Sender: No OFD packet to send [04:29:03]OFD Sender: No OFD packet to send [04:29:08]OFD Sender: No OFD packet to send [04:29:13]OFD Sender: No OFD packet to send [04:29:18]OFD Sender: No OFD packet to send [04:29:23]OFD Sender: No OFD packet to send [04:29:28]OFD Sender: No OFD packet to send [04:29:33]OFD Sender: No OFD packet to send [04:29:38]OFD Sender: No OFD packet to send [04:29:43]OFD Sender: No OFD packet to send [04:29:49]OFD Sender: No OFD packet to send [04:29:54]OFD Sender: No OFD packet to send [04:29:59]OFD Sender: No OFD packet to send [04:30:04]OFD Sender: No OFD packet to send [04:30:09]OFD Sender: No OFD packet to send [04:30:14]OFD Sender: No OFD packet to send [04:30:19]OFD Sender: No OFD packet to send [04:30:24]OFD Sender: No OFD packet to send [04:30:29]OFD Sender: No OFD packet to send [04:30:34]OFD Sender: No OFD packet to send [04:30:39]OFD Sender: No OFD packet to send [04:30:44]OFD Sender: No OFD packet to send [04:30:46]accept exits with 9 [04:30:46]New connection [04:30:46]New thread 3066801508 created [04:30:46]Thread 3066658148 joined [04:30:46]Waiting for new connection... [04:30:46] Sock 9.Parse request [04:30:46]Sock 9.Check first char [04:30:46]Sock 9.First char is OK [04:30:46]request: POST /json_proto HTTP/1.0 [04:30:46]Method: POST [04:30:46]URL: /json_proto [04:30:46]Method is POST - this is cgi request [04:30:46]url: /json_proto [04:30:46]query_string will be loaded in cgi processing [04:30:46]execute_cgi json_proto POST (null) [04:30:46]execute_cgi path=json_proto method=POST [04:30:46]POST find Content-Length [04:30:46]Host: 172.17.57.71:8080 [04:30:46]Content-Length: 1228 [04:30:46]Content-Type: application/json [04:30:46] [04:30:46]POST finish read [04:30:46]Found Content-Length = 1228 [04:30:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127462", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 222.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:30:46]execute_script... [04:30:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127462", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 222.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:30:46]POST & json_proto [04:30:46]process_json_proto [04:30:46]json parsed OK: [04:30:46]protocol is kg_v1.0 [04:30:46]action value=close_receipt [04:30:46]process_action close_receipt [04:30:46]cmd_close_receipt [04:30:46]MH_GetDate [04:30:46]Write to MH i2c: F0 00 00 DB 42 0C [04:30:46]Write i2c OK [04:30:46]MH_I2C_Read... [04:30:46]Read from MH i2c: F0 [04:30:46]MH_I2C_Read... [04:30:46]Read from MH i2c: F0 09 00 [04:30:46]MH_I2C_Read... [04:30:46]Read from MH i2c: F0 09 00 DB 42 00 FC 62 E6 66 33 3A A4 66 36 [04:30:46]GetLastDocTimeStamp 1726372976 [04:30:46]current date 1726374652 [04:30:46]FM_GetShiftState [04:30:46]SAM_PROTO_GetShiftState [04:30:46]wFMCommunicate request_size=4 [04:30:46]MH_SAM_APDU [04:30:46]CAPDU: 80 13 01 00 [04:30:46]Write to MH i2c: E2 08 00 DC 42 80 13 01 00 00 00 00 00 9B [04:30:46]Write i2c OK [04:30:46]MH_I2C_Read... [04:30:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:30:46]Read from MH i2c: E2 [04:30:46]MH_I2C_Read... [04:30:46]Read from MH i2c: E2 0E 00 [04:30:46]MH_I2C_Read... [04:30:46]Read from MH i2c: E2 0E 00 DC 42 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 1D [04:30:46]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [04:30:46]wFMCommunicate OK [04:30:46]SAM_PROTO_GetShiftState done [04:30:46]FM_GetShiftState done [04:30:46]opened in 1726359809 [04:30:46]opened+sec_in_day 1726446209 [04:30:46]quantity*price = 9500 [04:30:46]sum+1 = 9501 [04:30:46]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480050 Напиток Nitro Energy эн green ж/б 0,45л 1.000 * 77.00 = 77.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 222.00 НСП 1% : 1.96 НДС 12% : 23.58 Наличными: 222.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 17 15.09.2024 04:30 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92569 ФПД: 185643433690155 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T043052&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92569&fm=185643433690155&tin=02508201610067®Number=0000000000091423&sum=22200 0 [04:30:47]StoreToDocumentArchive [04:30:47]shift 507 fd 92569 [04:30:47]save to /storage/0507/doc_00092569 [04:30:47]save last doc name /storage/0507/doc_00092569 to /storage/kkm_last_doc_name [04:30:47]save OK [04:30:47]Clear old archive folders... [04:30:47]ProcessDocumentItem done err = 0, tmpTLVsize=526 [04:30:47]tlvbuf is 01013EB0 [04:30:47]SAM_PROTO_ClearQueue [04:30:47]wFMCommunicate request_size=4 [04:30:47]MH_SAM_APDU [04:30:47]CAPDU: 80 09 00 00 [04:30:47]Write to MH i2c: E2 08 00 E9 42 80 09 00 00 00 00 00 00 9D [04:30:47]Write i2c OK [04:30:47]MH_I2C_Read... [04:30:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:30:47]Read from MH i2c: E2 [04:30:47]MH_I2C_Read... [04:30:47]Read from MH i2c: E2 03 00 [04:30:47]MH_I2C_Read... [04:30:47]Read from MH i2c: E2 03 00 E9 42 00 90 00 9F [04:30:47]RAPDU: 90 00 [04:30:47]wFMCommunicate OK [04:30:47]SAM_PROTO_ClearQueue done [04:30:47]KKMCreateOFDPacket [04:30:47]OFDProtocolAddRootSTLVToBuf [04:30:47]FM_MakeSignedData [04:30:47]FM_MakeSignedData [04:30:47]SAM_PROTO_SignData [04:30:47]wFMCommunicate request_size=4 [04:30:47]MH_SAM_APDU [04:30:47]CAPDU: 80 0D 01 02 [04:30:47]Write to MH i2c: E2 08 00 EA 42 80 0D 01 02 00 00 00 00 A5 [04:30:47]Write i2c OK [04:30:47]MH_I2C_Read... [04:30:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:30:47]Read from MH i2c: E2 [04:30:47]MH_I2C_Read... [04:30:47]Read from MH i2c: E2 03 00 [04:30:47]MH_I2C_Read... [04:30:47]Read from MH i2c: E2 03 00 EA 42 00 90 00 A0 [04:30:47]RAPDU: 90 00 [04:30:47]wFMCommunicate OK [04:30:47]wFMCommunicate request_size=255 [04:30:47]MH_SAM_APDU [04:30:47]CAPDU: 80 0D 02 02 FA 03 00 0E 02 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 [04:30:47]Write to MH i2c: E2 02 01 EB 42 80 0D 02 02 FA 00 03 00 0E 02 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 00 77 [04:30:47]Write i2c OK [04:30:47]MH_I2C_Read... [04:30:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:30:48]Read from MH i2c: E2 [04:30:48]MH_I2C_Read... [04:30:48]Read from MH i2c: E2 03 00 [04:30:48]MH_I2C_Read... [04:30:48]Read from MH i2c: E2 03 00 EB 42 00 90 00 A1 [04:30:48]RAPDU: 90 00 [04:30:48]wFMCommunicate OK [04:30:48]wFMCommunicate request_size=255 [04:30:48]MH_SAM_APDU [04:30:48]CAPDU: 80 0D 02 02 FA 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 56 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 09 00 00 00 00 07 04 06 00 B8 56 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 FC 62 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 [04:30:48]Write to MH i2c: E2 02 01 EC 42 80 0D 02 02 FA 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 56 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 09 00 00 00 00 07 04 06 00 B8 56 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 FC 62 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 00 00 3D [04:30:48]Write i2c OK [04:30:48]MH_I2C_Read... [04:30:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:30:48]Read from MH i2c: E2 [04:30:48]MH_I2C_Read... [04:30:48]Read from MH i2c: E2 03 00 [04:30:48]MH_I2C_Read... [04:30:48]Read from MH i2c: E2 03 00 EC 42 00 90 00 A2 [04:30:48]RAPDU: 90 00 [04:30:48]wFMCommunicate OK [04:30:48]wFMCommunicate request_size=35 [04:30:48]MH_SAM_APDU [04:30:48]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 99 69 01 00 35 04 06 00 A8 D7 7A EB 84 2B [04:30:48]Write to MH i2c: E2 26 00 ED 42 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 99 69 01 00 35 04 06 00 A8 D7 7A EB 84 2B 00 00 36 [04:30:48]Write i2c OK [04:30:48]MH_I2C_Read... [04:30:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:30:48]Read from MH i2c: E2 [04:30:48]MH_I2C_Read... [04:30:48]Read from MH i2c: E2 03 00 [04:30:48]MH_I2C_Read... [04:30:48]Read from MH i2c: E2 03 00 ED 42 00 90 00 A3 [04:30:48]RAPDU: 90 00 [04:30:48]wFMCommunicate OK [04:30:48]wFMCommunicate request_size=4 [04:30:48]MH_SAM_APDU [04:30:48]CAPDU: 80 0D 03 02 [04:30:48]Write to MH i2c: E2 08 00 EE 42 80 0D 03 02 00 00 00 00 AB [04:30:48]Write i2c OK [04:30:48]MH_I2C_Read... [04:30:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:30:48]Read from MH i2c: E2 [04:30:48]MH_I2C_Read... [04:30:48]Read from MH i2c: E2 0B 00 [04:30:48]MH_I2C_Read... [04:30:48]Read from MH i2c: E2 0B 00 EE 42 00 87 F5 6B B8 40 30 FA C9 90 00 7E [04:30:48]RAPDU: 87 F5 6B B8 40 30 FA C9 90 00 [04:30:48]wFMCommunicate OK [04:30:48]SAM_PROTO_SignData done [04:30:48]FM_MakeSignedData done [04:30:48]CreateOFDProtocolMessage [04:30:48]wFMCommunicate request_size=4 [04:30:48]MH_SAM_APDU [04:30:48]CAPDU: 80 11 00 00 [04:30:48]Write to MH i2c: E2 08 00 EF 42 80 11 00 00 00 00 00 00 AB [04:30:48]Write i2c OK [04:30:48]MH_I2C_Read... [04:30:48]Read from MH i2c: E2 [04:30:48]MH_I2C_Read... [04:30:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:30:48]Read from MH i2c: E2 17 00 [04:30:48]MH_I2C_Read... [04:30:48]Read from MH i2c: E2 17 00 EF 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 02 [04:30:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [04:30:48]wFMCommunicate OK [04:30:48]CreateOFDProtocolMessage done [04:30:48]OFDSenderStorePacket 92569 [04:30:48]StoreOFDPacket docnum=92569 [04:30:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 22 02 00 00 61 B9 1A 02 56 DC 5A 03 01 00 03 00 0E 02 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 56 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 09 00 00 00 00 07 04 06 00 B8 56 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 FC 62 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 99 69 01 00 35 04 06 00 A8 D7 7A EB 84 2B 87 F5 6B B8 40 30 FA C9 [04:30:48]CheckFolder [04:30:48]dirname=/storage/ofd_packets [04:30:48]CheckFolder done [04:30:48]ProducePacketName [04:30:48]name=ofd_packets/00092569 [04:30:48]NVStorageSaveData ofd_packets/00092569 [04:30:48]File name is /storage/ofd_packets/00092569 [04:30:48]Write 576 bytes [04:30:48]NVStorageSaveData done [04:30:48]OFDSenderStorePacket done [04:30:48]KKMCreateOFDPacket done [04:30:48]NVStorageSaveData kkm_last_timestamp [04:30:48]File name is /storage/kkm_last_timestamp [04:30:48]Write 4 bytes [04:30:48]NVStorageSaveData done [04:30:48]ExternCall_PrintAddStr [04:30:48]wPrintStart [04:30:48]Write to MH i2c: 01 00 00 F0 42 32 [04:30:48]Write i2c OK [04:30:48]MH_I2C_Read... [04:30:48]Read from MH i2c: 01 [04:30:48]MH_I2C_Read... [04:30:48]Read from MH i2c: 01 07 00 [04:30:48]MH_I2C_Read... [04:30:48]Read from MH i2c: 01 07 00 F0 42 00 00 00 00 00 FF 0F 47 [04:30:48]RasterBufferAndPrint [04:30:48]line Счет N : (3)127462 [04:30:48]line ИНН: 02508201610067 [04:30:48]line Контрольно-Кассовый Чек [04:30:48]line ПРОДАЖА [04:30:48]line Товар: 4700000480302 [04:30:48]line Напиток энерг Nitro манго-клуб 0.45 ж/б [04:30:48]line 1.000 * 95.00 [04:30:48]line = 95.00 [04:30:48]line НДС 12% НСП 1% [04:30:48]line > о реализуемом товаре [04:30:48]line Товар: 4700000480050 [04:30:48]line Напиток Nitro Energy эн green ж/б 0,45л [04:30:48]line 1.000 * 77.00 [04:30:48]line = 77.00 [04:30:48]line НДС 12% НСП 1% [04:30:48]line > о реализуемом товаре [04:30:48]line Товар: 4700000160358 [04:30:48]line Вода Легенда 1л [04:30:48]line 1.000 * 50.00 [04:30:48]line = 50.00 [04:30:48]line НДС 12% НСП 1% [04:30:48]line > о реализуемом товаре [04:30:48]line ИТОГО: 222.00 [04:30:48]line НСП 1% : 1.96 [04:30:48]line НДС 12% : 23.58 [04:30:48]line Наличными: 222.00 [04:30:48]line Безнал.: 0.00 [04:30:48]line Место: АЗС № 5 "Партнер Нефть" [04:30:48]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [04:30:48]line СНО: Общий режим [04:30:48]line Чек 17 15.09.2024 04:30 [04:30:48]line Смена: 507 ФФД: 1.0 [04:30:48]line ЗНМ: 03000000022 [04:30:48]line РНМ: 0000000000091423 [04:30:48]line Версия ККМ: 001 [04:30:48]line ФМ: 0000000000874692 [04:30:48]line ФД: 92569 [04:30:48]line ФПД: 185643433690155 [04:30:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T043052&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92569&fm=185643433690155&tin=02508201610067®Number=0000000000091423&sum=22200 [04:30:48]line 0 [04:30:48]written 0, free lines is 4095 [04:30:48]OFD Sender: Processing packet 92569 [packets to send 63, broken 62] [04:30:48]ProducePacketName [04:30:48]name=ofd_packets/00092569 [04:30:48]OFD Sender: To server: pG, [04:30:48]CommunicateWithHost lk.salyk.kg:30040 [04:30:48]ConnectInit lk.salyk.kg [04:30:48]Connected sock=10 [04:30:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 22 02 00 00 61 B9 1A 02 56 DC 5A 03 01 00 03 00 0E 02 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 56 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 09 00 00 00 00 07 04 06 00 B8 56 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 FC 62 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 99 69 01 00 35 04 06 00 A8 D7 7A EB 84 2B 87 F5 6B B8 40 30 FA C9 [04:30:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 67 8C 47 00 31 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 99 69 01 00 F4 03 04 00 76 0B E6 66 B6 04 01 00 00 44 41 CE 09 BB EC 37 34 [04:30:48]CommunicateWithHost err = 0 [04:30:48]CheckOFDResponse [04:30:48]1017 (14) - 77093643461234 [04:30:48]1041 (16) - 0000000000874692 [04:30:48]1040 (4) - 92569 [04:30:48]1012 (4) - 14.09.2024 22:17 [04:30:48]1206 (1) - 0 [04:30:48]OFD Sender: Remove packet 92569 [04:30:48]ProducePacketName [04:30:48]name=ofd_packets/00092569 [04:30:48]NVStorageDeleteData [04:30:49]Write to MH i2c: 01 00 00 26 43 69 [04:30:49]Write i2c OK [04:30:49]MH_I2C_Read... [04:30:49]Read from MH i2c: 01 [04:30:49]MH_I2C_Read... [04:30:49]Read from MH i2c: 01 07 00 [04:30:49]MH_I2C_Read... [04:30:49]Read from MH i2c: 01 07 00 26 43 00 00 00 00 00 5E 0C DA [04:30:49]RasterBufferAndPrint [04:30:49]line [04:30:49]line [04:30:49]line [04:30:49]line [04:30:49]line [04:30:49]written 0, free lines is 3177 [04:30:49]MH_Cut [04:30:49]Write to MH i2c: D1 01 00 2D 43 01 42 [04:30:49]Write i2c OK [04:30:49]MH_I2C_Read... [04:30:49]Read from MH i2c: D1 [04:30:49]MH_I2C_Read... [04:30:49]Read from MH i2c: D1 01 00 [04:30:49]MH_I2C_Read... [04:30:49]Read from MH i2c: D1 01 00 2D 43 00 41 [04:30:49]Write to MH i2c: 01 00 00 2E 43 71 [04:30:49]Write i2c OK [04:30:49]MH_I2C_Read... [04:30:49]OFD Sender: No OFD packet to send [04:30:49]*** Cut start [04:30:49]*** Purtial cut [04:30:49]*** Stage 1: CUTSNS_PIN = 1 [04:30:51]Read from MH i2c: 01 [04:30:51]MH_I2C_Read... [04:30:51]*** Stop cut motor [04:30:51]Read from MH i2c: *** Cut end [04:30:51]01 07 00 [04:30:51]MH_I2C_Read... [04:30:51]Read from MH i2c: 01 07 00 2E 43 00 00 00 00 00 FF 0F 86 [04:30:51]process_action close_receipt done [04:30:51]requested_data is exist [04:30:51]produce_requested_data [04:30:51]requested_item fm.sn is exist - process it [04:30:51]wFMCommunicate request_size=4 [04:30:51]MH_SAM_APDU [04:30:51]CAPDU: 80 11 00 00 [04:30:51]Write to MH i2c: E2 08 00 2F 43 80 11 00 00 00 00 00 00 EC [04:30:51]Write i2c OK [04:30:51]MH_I2C_Read... [04:30:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:30:51]Read from MH i2c: E2 [04:30:51]MH_I2C_Read... [04:30:51]Read from MH i2c: E2 17 00 [04:30:51]MH_I2C_Read... [04:30:51]Read from MH i2c: E2 17 00 2F 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 43 [04:30:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [04:30:51]wFMCommunicate OK [04:30:51]requested_item fd.num is exist - process it [04:30:51]SAM_PROTO_GetFieldsCounters [04:30:51]wFMCommunicate request_size=4 [04:30:51]MH_SAM_APDU [04:30:51]CAPDU: 80 13 00 00 [04:30:51]Write to MH i2c: E2 08 00 30 43 80 13 00 00 00 00 00 00 EF [04:30:51]Write i2c OK [04:30:51]MH_I2C_Read... [04:30:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:30:52]Read from MH i2c: E2 [04:30:52]MH_I2C_Read... [04:30:52]Read from MH i2c: E2 62 00 [04:30:52]MH_I2C_Read... [04:30:52]Read from MH i2c: E2 62 00 30 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 99 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [04:30:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 99 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:30:52]wFMCommunicate OK [04:30:52]SAM_PROTO_GetFieldsCounters done [04:30:52]requested_item shift.num is exist - process it [04:30:52]requested_item shift.opened is exist - process it [04:30:52]req_shift_opened [04:30:52]FM_GetShiftState [04:30:52]SAM_PROTO_GetShiftState [04:30:52]wFMCommunicate request_size=4 [04:30:52]MH_SAM_APDU [04:30:52]CAPDU: 80 13 01 00 [04:30:52]Write to MH i2c: E2 08 00 31 43 80 13 01 00 00 00 00 00 F1 [04:30:52]Write i2c OK [04:30:52]MH_I2C_Read... [04:30:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:30:52]Read from MH i2c: E2 [04:30:52]MH_I2C_Read... [04:30:52]Read from MH i2c: E2 0E 00 [04:30:52]MH_I2C_Read... [04:30:52]Read from MH i2c: E2 0E 00 31 43 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 73 [04:30:52]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [04:30:52]wFMCommunicate OK [04:30:52]SAM_PROTO_GetShiftState done [04:30:52]FM_GetShiftState done [04:30:52]req_shift_opened done [04:30:52]requested_item shift.open_date is exist - process it [04:30:52]req_shift_open_date [04:30:52]req_shift_open_date done [04:30:52]produce_requested_data done [04:30:52]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92569,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [04:30:52]process_action_free close_receipt [04:30:52]json_value_free [04:30:52]json_value_free done [04:30:52]process_json_proto returns [04:30:52]Send response to host [04:30:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92569,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [04:30:52]free response buf [04:30:52]execute_script done [04:30:52]execute_script returns [04:30:52]free content buf [04:30:52]Sock 9.Close socket [04:30:52]Sock 9.Thread stoped [04:30:54]OFD Sender: No OFD packet to send [04:30:59]OFD Sender: No OFD packet to send [04:31:04]OFD Sender: No OFD packet to send [04:31:09]OFD Sender: No OFD packet to send [04:31:14]OFD Sender: No OFD packet to send [04:31:19]OFD Sender: No OFD packet to send [04:31:24]OFD Sender: No OFD packet to send [04:31:29]OFD Sender: No OFD packet to send [04:31:34]OFD Sender: No OFD packet to send [04:31:39]OFD Sender: No OFD packet to send [04:31:44]OFD Sender: No OFD packet to send [04:31:49]OFD Sender: No OFD packet to send [04:31:54]OFD Sender: No OFD packet to send [04:31:59]OFD Sender: No OFD packet to send [04:32:04]OFD Sender: No OFD packet to send [04:32:09]OFD Sender: No OFD packet to send [04:32:14]OFD Sender: No OFD packet to send [04:32:19]OFD Sender: No OFD packet to send [04:32:24]OFD Sender: No OFD packet to send [04:32:29]OFD Sender: No OFD packet to send [04:32:34]OFD Sender: No OFD packet to send [04:32:39]OFD Sender: No OFD packet to send [04:32:44]OFD Sender: No OFD packet to send [04:32:49]OFD Sender: No OFD packet to send [04:32:54]OFD Sender: No OFD packet to send [04:32:59]OFD Sender: No OFD packet to send [04:33:04]OFD Sender: No OFD packet to send [04:33:09]OFD Sender: No OFD packet to send [04:33:14]OFD Sender: No OFD packet to send [04:33:19]OFD Sender: No OFD packet to send [04:33:24]OFD Sender: No OFD packet to send [04:33:29]OFD Sender: No OFD packet to send [04:33:34]OFD Sender: No OFD packet to send [04:33:39]OFD Sender: No OFD packet to send [04:33:44]OFD Sender: No OFD packet to send [04:33:49]OFD Sender: No OFD packet to send [04:33:54]OFD Sender: No OFD packet to send [04:33:59]OFD Sender: No OFD packet to send [04:34:04]OFD Sender: No OFD packet to send [04:34:09]OFD Sender: No OFD packet to send [04:34:14]OFD Sender: No OFD packet to send [04:34:19]OFD Sender: No OFD packet to send [04:34:24]OFD Sender: No OFD packet to send [04:34:29]OFD Sender: No OFD packet to send [04:34:34]OFD Sender: No OFD packet to send [04:34:39]OFD Sender: No OFD packet to send [04:34:44]OFD Sender: No OFD packet to send [04:34:49]OFD Sender: No OFD packet to send [04:34:54]OFD Sender: No OFD packet to send [04:34:59]OFD Sender: No OFD packet to send [04:35:04]OFD Sender: No OFD packet to send [04:35:09]OFD Sender: No OFD packet to send [04:35:14]OFD Sender: No OFD packet to send [04:35:19]OFD Sender: No OFD packet to send [04:35:24]OFD Sender: No OFD packet to send [04:35:29]OFD Sender: No OFD packet to send [04:35:34]OFD Sender: No OFD packet to send [04:35:39]OFD Sender: No OFD packet to send [04:35:44]OFD Sender: No OFD packet to send [04:35:49]OFD Sender: No OFD packet to send [04:35:54]OFD Sender: No OFD packet to send [04:35:59]OFD Sender: No OFD packet to send [04:36:04]OFD Sender: No OFD packet to send [04:36:09]OFD Sender: No OFD packet to send [04:36:14]OFD Sender: No OFD packet to send [04:36:19]OFD Sender: No OFD packet to send [04:36:24]OFD Sender: No OFD packet to send [04:36:29]OFD Sender: No OFD packet to send [04:36:34]OFD Sender: No OFD packet to send [04:36:39]OFD Sender: No OFD packet to send [04:36:44]OFD Sender: No OFD packet to send [04:36:49]OFD Sender: No OFD packet to send [04:36:54]OFD Sender: No OFD packet to send [04:36:59]OFD Sender: No OFD packet to send [04:37:04]OFD Sender: No OFD packet to send [04:37:09]OFD Sender: No OFD packet to send [04:37:14]OFD Sender: No OFD packet to send [04:37:19]OFD Sender: No OFD packet to send [04:37:24]OFD Sender: No OFD packet to send [04:37:29]OFD Sender: No OFD packet to send [04:37:34]OFD Sender: No OFD packet to send [04:37:39]OFD Sender: No OFD packet to send [04:37:44]OFD Sender: No OFD packet to send [04:37:49]OFD Sender: No OFD packet to send [04:37:54]OFD Sender: No OFD packet to send [04:37:59]OFD Sender: No OFD packet to send [04:38:04]OFD Sender: No OFD packet to send [04:38:09]OFD Sender: No OFD packet to send [04:38:14]OFD Sender: No OFD packet to send [04:38:19]OFD Sender: No OFD packet to send [04:38:24]OFD Sender: No OFD packet to send [04:38:29]OFD Sender: No OFD packet to send [04:38:34]OFD Sender: No OFD packet to send [04:38:39]OFD Sender: No OFD packet to send [04:38:44]OFD Sender: No OFD packet to send [04:38:49]OFD Sender: No OFD packet to send [04:38:54]OFD Sender: No OFD packet to send [04:38:59]OFD Sender: No OFD packet to send [04:39:04]OFD Sender: No OFD packet to send [04:39:09]OFD Sender: No OFD packet to send [04:39:14]OFD Sender: No OFD packet to send [04:39:19]OFD Sender: No OFD packet to send [04:39:24]OFD Sender: No OFD packet to send [04:39:29]OFD Sender: No OFD packet to send [04:39:34]OFD Sender: No OFD packet to send [04:39:39]OFD Sender: No OFD packet to send [04:39:44]OFD Sender: No OFD packet to send [04:39:49]OFD Sender: No OFD packet to send [04:39:54]OFD Sender: No OFD packet to send [04:39:59]OFD Sender: No OFD packet to send [04:40:04]OFD Sender: No OFD packet to send [04:40:09]OFD Sender: No OFD packet to send [04:40:14]OFD Sender: No OFD packet to send [04:40:19]OFD Sender: No OFD packet to send [04:40:24]OFD Sender: No OFD packet to send [04:40:29]OFD Sender: No OFD packet to send [04:40:34]OFD Sender: No OFD packet to send [04:40:39]OFD Sender: No OFD packet to send [04:40:44]OFD Sender: No OFD packet to send [04:40:49]OFD Sender: No OFD packet to send [04:40:54]OFD Sender: No OFD packet to send [04:40:59]OFD Sender: No OFD packet to send [04:41:04]OFD Sender: No OFD packet to send [04:41:09]OFD Sender: No OFD packet to send [04:41:15]OFD Sender: No OFD packet to send [04:41:20]OFD Sender: No OFD packet to send [04:41:25]OFD Sender: No OFD packet to send [04:41:30]OFD Sender: No OFD packet to send [04:41:35]OFD Sender: No OFD packet to send [04:41:40]OFD Sender: No OFD packet to send [04:41:45]OFD Sender: No OFD packet to send [04:41:50]OFD Sender: No OFD packet to send [04:41:55]OFD Sender: No OFD packet to send [04:42:00]OFD Sender: No OFD packet to send [04:42:05]OFD Sender: No OFD packet to send [04:42:10]OFD Sender: No OFD packet to send [04:42:15]OFD Sender: No OFD packet to send [04:42:20]OFD Sender: No OFD packet to send [04:42:25]OFD Sender: No OFD packet to send [04:42:30]OFD Sender: No OFD packet to send [04:42:35]OFD Sender: No OFD packet to send [04:42:40]OFD Sender: No OFD packet to send [04:42:45]OFD Sender: No OFD packet to send [04:42:50]OFD Sender: No OFD packet to send [04:42:55]OFD Sender: No OFD packet to send [04:43:00]OFD Sender: No OFD packet to send [04:43:05]OFD Sender: No OFD packet to send [04:43:10]OFD Sender: No OFD packet to send [04:43:15]OFD Sender: No OFD packet to send [04:43:20]OFD Sender: No OFD packet to send [04:43:25]OFD Sender: No OFD packet to send [04:43:30]OFD Sender: No OFD packet to send [04:43:35]OFD Sender: No OFD packet to send [04:43:40]OFD Sender: No OFD packet to send [04:43:45]OFD Sender: No OFD packet to send [04:43:50]OFD Sender: No OFD packet to send [04:43:55]OFD Sender: No OFD packet to send [04:44:00]OFD Sender: No OFD packet to send [04:44:05]OFD Sender: No OFD packet to send [04:44:10]OFD Sender: No OFD packet to send [04:44:15]OFD Sender: No OFD packet to send [04:44:20]OFD Sender: No OFD packet to send [04:44:25]OFD Sender: No OFD packet to send [04:44:30]OFD Sender: No OFD packet to send [04:44:35]OFD Sender: No OFD packet to send [04:44:40]OFD Sender: No OFD packet to send [04:44:45]OFD Sender: No OFD packet to send [04:44:50]OFD Sender: No OFD packet to send [04:44:55]OFD Sender: No OFD packet to send [04:45:00]OFD Sender: No OFD packet to send [04:45:05]OFD Sender: No OFD packet to send [04:45:10]OFD Sender: No OFD packet to send [04:45:15]OFD Sender: No OFD packet to send [04:45:20]OFD Sender: No OFD packet to send [04:45:25]OFD Sender: No OFD packet to send [04:45:30]OFD Sender: No OFD packet to send [04:45:35]OFD Sender: No OFD packet to send [04:45:40]OFD Sender: No OFD packet to send [04:45:45]OFD Sender: No OFD packet to send [04:45:50]OFD Sender: No OFD packet to send [04:45:55]OFD Sender: No OFD packet to send [04:46:00]OFD Sender: No OFD packet to send [04:46:05]OFD Sender: No OFD packet to send [04:46:10]OFD Sender: No OFD packet to send [04:46:15]OFD Sender: No OFD packet to send [04:46:20]OFD Sender: No OFD packet to send [04:46:25]OFD Sender: No OFD packet to send [04:46:30]OFD Sender: No OFD packet to send [04:46:35]OFD Sender: No OFD packet to send [04:46:40]OFD Sender: No OFD packet to send [04:46:45]OFD Sender: No OFD packet to send [04:46:50]OFD Sender: No OFD packet to send [04:46:55]OFD Sender: No OFD packet to send [04:47:00]OFD Sender: No OFD packet to send [04:47:05]OFD Sender: No OFD packet to send [04:47:10]OFD Sender: No OFD packet to send [04:47:15]OFD Sender: No OFD packet to send [04:47:20]OFD Sender: No OFD packet to send [04:47:25]OFD Sender: No OFD packet to send [04:47:30]OFD Sender: No OFD packet to send [04:47:35]OFD Sender: No OFD packet to send [04:47:40]OFD Sender: No OFD packet to send [04:47:45]OFD Sender: No OFD packet to send [04:47:50]OFD Sender: No OFD packet to send [04:47:55]OFD Sender: No OFD packet to send [04:48:00]OFD Sender: No OFD packet to send [04:48:05]OFD Sender: No OFD packet to send [04:48:10]OFD Sender: No OFD packet to send [04:48:15]OFD Sender: No OFD packet to send [04:48:20]OFD Sender: No OFD packet to send [04:48:25]OFD Sender: No OFD packet to send [04:48:30]OFD Sender: No OFD packet to send [04:48:35]OFD Sender: No OFD packet to send [04:48:40]OFD Sender: No OFD packet to send [04:48:45]OFD Sender: No OFD packet to send [04:48:50]OFD Sender: No OFD packet to send [04:48:55]OFD Sender: No OFD packet to send [04:49:00]OFD Sender: No OFD packet to send [04:49:05]OFD Sender: No OFD packet to send [04:49:10]OFD Sender: No OFD packet to send [04:49:15]OFD Sender: No OFD packet to send [04:49:20]OFD Sender: No OFD packet to send [04:49:25]OFD Sender: No OFD packet to send [04:49:30]OFD Sender: No OFD packet to send [04:49:35]OFD Sender: No OFD packet to send [04:49:40]OFD Sender: No OFD packet to send [04:49:45]OFD Sender: No OFD packet to send [04:49:50]OFD Sender: No OFD packet to send [04:49:55]OFD Sender: No OFD packet to send [04:50:00]OFD Sender: No OFD packet to send [04:50:05]OFD Sender: No OFD packet to send [04:50:10]OFD Sender: No OFD packet to send [04:50:15]OFD Sender: No OFD packet to send [04:50:20]OFD Sender: No OFD packet to send [04:50:25]OFD Sender: No OFD packet to send [04:50:30]OFD Sender: No OFD packet to send [04:50:35]OFD Sender: No OFD packet to send [04:50:40]OFD Sender: No OFD packet to send [04:50:45]OFD Sender: No OFD packet to send [04:50:50]OFD Sender: No OFD packet to send [04:50:55]OFD Sender: No OFD packet to send [04:51:00]OFD Sender: No OFD packet to send [04:51:05]OFD Sender: No OFD packet to send [04:51:10]OFD Sender: No OFD packet to send [04:51:15]OFD Sender: No OFD packet to send [04:51:20]OFD Sender: No OFD packet to send [04:51:25]OFD Sender: No OFD packet to send [04:51:30]OFD Sender: No OFD packet to send [04:51:35]OFD Sender: No OFD packet to send [04:51:40]OFD Sender: No OFD packet to send [04:51:45]OFD Sender: No OFD packet to send [04:51:50]OFD Sender: No OFD packet to send [04:51:55]OFD Sender: No OFD packet to send [04:52:00]OFD Sender: No OFD packet to send [04:52:05]OFD Sender: No OFD packet to send [04:52:10]OFD Sender: No OFD packet to send [04:52:15]OFD Sender: No OFD packet to send [04:52:20]OFD Sender: No OFD packet to send [04:52:25]OFD Sender: No OFD packet to send [04:52:30]OFD Sender: No OFD packet to send [04:52:35]OFD Sender: No OFD packet to send [04:52:40]OFD Sender: No OFD packet to send [04:52:45]OFD Sender: No OFD packet to send [04:52:50]OFD Sender: No OFD packet to send [04:52:55]OFD Sender: No OFD packet to send [04:53:00]OFD Sender: No OFD packet to send [04:53:05]OFD Sender: No OFD packet to send [04:53:10]OFD Sender: No OFD packet to send [04:53:15]OFD Sender: No OFD packet to send [04:53:20]OFD Sender: No OFD packet to send [04:53:25]OFD Sender: No OFD packet to send [04:53:30]OFD Sender: No OFD packet to send [04:53:35]OFD Sender: No OFD packet to send [04:53:40]OFD Sender: No OFD packet to send [04:53:45]OFD Sender: No OFD packet to send [04:53:50]OFD Sender: No OFD packet to send [04:53:55]OFD Sender: No OFD packet to send [04:54:00]OFD Sender: No OFD packet to send [04:54:05]OFD Sender: No OFD packet to send [04:54:10]OFD Sender: No OFD packet to send [04:54:15]OFD Sender: No OFD packet to send [04:54:20]OFD Sender: No OFD packet to send [04:54:25]OFD Sender: No OFD packet to send [04:54:30]OFD Sender: No OFD packet to send [04:54:35]OFD Sender: No OFD packet to send [04:54:40]OFD Sender: No OFD packet to send [04:54:45]OFD Sender: No OFD packet to send [04:54:50]OFD Sender: No OFD packet to send [04:54:55]OFD Sender: No OFD packet to send [04:55:00]OFD Sender: No OFD packet to send [04:55:05]OFD Sender: No OFD packet to send [04:55:10]OFD Sender: No OFD packet to send [04:55:15]OFD Sender: No OFD packet to send [04:55:20]OFD Sender: No OFD packet to send [04:55:25]OFD Sender: No OFD packet to send [04:55:30]OFD Sender: No OFD packet to send [04:55:35]OFD Sender: No OFD packet to send [04:55:40]OFD Sender: No OFD packet to send [04:55:45]OFD Sender: No OFD packet to send [04:55:50]OFD Sender: No OFD packet to send [04:55:55]OFD Sender: No OFD packet to send [04:56:00]OFD Sender: No OFD packet to send [04:56:05]OFD Sender: No OFD packet to send [04:56:10]OFD Sender: No OFD packet to send [04:56:15]OFD Sender: No OFD packet to send [04:56:20]OFD Sender: No OFD packet to send [04:56:25]OFD Sender: No OFD packet to send [04:56:30]OFD Sender: No OFD packet to send [04:56:35]OFD Sender: No OFD packet to send [04:56:40]OFD Sender: No OFD packet to send [04:56:45]OFD Sender: No OFD packet to send [04:56:50]OFD Sender: No OFD packet to send [04:56:55]OFD Sender: No OFD packet to send [04:57:00]OFD Sender: No OFD packet to send [04:57:05]OFD Sender: No OFD packet to send [04:57:10]OFD Sender: No OFD packet to send [04:57:15]OFD Sender: No OFD packet to send [04:57:20]OFD Sender: No OFD packet to send [04:57:25]OFD Sender: No OFD packet to send [04:57:30]OFD Sender: No OFD packet to send [04:57:35]OFD Sender: No OFD packet to send [04:57:40]OFD Sender: No OFD packet to send [04:57:45]OFD Sender: No OFD packet to send [04:57:50]OFD Sender: No OFD packet to send [04:57:55]OFD Sender: No OFD packet to send [04:58:00]OFD Sender: No OFD packet to send [04:58:05]OFD Sender: No OFD packet to send [04:58:10]OFD Sender: No OFD packet to send [04:58:15]OFD Sender: No OFD packet to send [04:58:20]OFD Sender: No OFD packet to send [04:58:25]OFD Sender: No OFD packet to send [04:58:30]OFD Sender: No OFD packet to send [04:58:36]OFD Sender: No OFD packet to send [04:58:41]OFD Sender: No OFD packet to send [04:58:46]OFD Sender: No OFD packet to send [04:58:51]OFD Sender: No OFD packet to send [04:58:56]OFD Sender: No OFD packet to send [04:59:01]OFD Sender: No OFD packet to send [04:59:06]OFD Sender: No OFD packet to send [04:59:11]OFD Sender: No OFD packet to send [04:59:16]OFD Sender: No OFD packet to send [04:59:21]OFD Sender: No OFD packet to send [04:59:26]OFD Sender: No OFD packet to send [04:59:31]OFD Sender: No OFD packet to send [04:59:36]OFD Sender: No OFD packet to send [04:59:41]OFD Sender: No OFD packet to send [04:59:46]OFD Sender: No OFD packet to send [04:59:51]OFD Sender: No OFD packet to send [04:59:56]OFD Sender: No OFD packet to send [05:00:01]OFD Sender: No OFD packet to send [05:00:06]OFD Sender: No OFD packet to send [05:00:11]OFD Sender: No OFD packet to send [05:00:16]OFD Sender: No OFD packet to send [05:00:21]OFD Sender: No OFD packet to send [05:00:26]OFD Sender: No OFD packet to send [05:00:31]OFD Sender: No OFD packet to send [05:00:36]OFD Sender: No OFD packet to send [05:00:41]OFD Sender: No OFD packet to send [05:00:46]OFD Sender: No OFD packet to send [05:00:51]OFD Sender: No OFD packet to send [05:00:56]OFD Sender: No OFD packet to send [05:01:01]OFD Sender: No OFD packet to send [05:01:06]OFD Sender: No OFD packet to send [05:01:11]OFD Sender: No OFD packet to send [05:01:16]OFD Sender: No OFD packet to send [05:01:21]OFD Sender: No OFD packet to send [05:01:26]OFD Sender: No OFD packet to send [05:01:31]OFD Sender: No OFD packet to send [05:01:36]OFD Sender: No OFD packet to send [05:01:41]OFD Sender: No OFD packet to send [05:01:46]OFD Sender: No OFD packet to send [05:01:51]OFD Sender: No OFD packet to send [05:01:56]OFD Sender: No OFD packet to send [05:02:01]OFD Sender: No OFD packet to send [05:02:06]OFD Sender: No OFD packet to send [05:02:11]OFD Sender: No OFD packet to send [05:02:16]OFD Sender: No OFD packet to send [05:02:21]OFD Sender: No OFD packet to send [05:02:26]OFD Sender: No OFD packet to send [05:02:31]OFD Sender: No OFD packet to send [05:02:36]OFD Sender: No OFD packet to send [05:02:41]OFD Sender: No OFD packet to send [05:02:46]OFD Sender: No OFD packet to send [05:02:51]OFD Sender: No OFD packet to send [05:02:56]OFD Sender: No OFD packet to send [05:03:01]OFD Sender: No OFD packet to send [05:03:06]OFD Sender: No OFD packet to send [05:03:11]OFD Sender: No OFD packet to send [05:03:16]OFD Sender: No OFD packet to send [05:03:21]OFD Sender: No OFD packet to send [05:03:26]OFD Sender: No OFD packet to send [05:03:31]OFD Sender: No OFD packet to send [05:03:36]OFD Sender: No OFD packet to send [05:03:41]OFD Sender: No OFD packet to send [05:03:46]OFD Sender: No OFD packet to send [05:03:51]OFD Sender: No OFD packet to send [05:03:56]OFD Sender: No OFD packet to send [05:04:01]OFD Sender: No OFD packet to send [05:04:06]OFD Sender: No OFD packet to send [05:04:11]OFD Sender: No OFD packet to send [05:04:16]OFD Sender: No OFD packet to send [05:04:21]OFD Sender: No OFD packet to send [05:04:26]OFD Sender: No OFD packet to send [05:04:31]OFD Sender: No OFD packet to send [05:04:36]OFD Sender: No OFD packet to send [05:04:41]OFD Sender: No OFD packet to send [05:04:46]OFD Sender: No OFD packet to send [05:04:51]OFD Sender: No OFD packet to send [05:04:56]OFD Sender: No OFD packet to send [05:05:01]OFD Sender: No OFD packet to send [05:05:06]OFD Sender: No OFD packet to send [05:05:11]OFD Sender: No OFD packet to send [05:05:16]OFD Sender: No OFD packet to send [05:05:21]OFD Sender: No OFD packet to send [05:05:26]OFD Sender: No OFD packet to send [05:05:31]OFD Sender: No OFD packet to send [05:05:36]OFD Sender: No OFD packet to send [05:05:41]OFD Sender: No OFD packet to send [05:05:46]OFD Sender: No OFD packet to send [05:05:51]OFD Sender: No OFD packet to send [05:05:56]OFD Sender: No OFD packet to send [05:06:01]OFD Sender: No OFD packet to send [05:06:06]OFD Sender: No OFD packet to send [05:06:11]OFD Sender: No OFD packet to send [05:06:16]OFD Sender: No OFD packet to send [05:06:21]OFD Sender: No OFD packet to send [05:06:26]OFD Sender: No OFD packet to send [05:06:31]OFD Sender: No OFD packet to send [05:06:36]OFD Sender: No OFD packet to send [05:06:41]OFD Sender: No OFD packet to send [05:06:46]OFD Sender: No OFD packet to send [05:06:51]OFD Sender: No OFD packet to send [05:06:56]OFD Sender: No OFD packet to send [05:07:01]OFD Sender: No OFD packet to send [05:07:06]OFD Sender: No OFD packet to send [05:07:11]OFD Sender: No OFD packet to send [05:07:16]OFD Sender: No OFD packet to send [05:07:21]OFD Sender: No OFD packet to send [05:07:26]OFD Sender: No OFD packet to send [05:07:31]OFD Sender: No OFD packet to send [05:07:36]OFD Sender: No OFD packet to send [05:07:41]OFD Sender: No OFD packet to send [05:07:46]OFD Sender: No OFD packet to send [05:07:51]OFD Sender: No OFD packet to send [05:07:56]OFD Sender: No OFD packet to send [05:08:01]OFD Sender: No OFD packet to send [05:08:06]OFD Sender: No OFD packet to send [05:08:11]OFD Sender: No OFD packet to send [05:08:16]OFD Sender: No OFD packet to send [05:08:21]OFD Sender: No OFD packet to send [05:08:26]OFD Sender: No OFD packet to send [05:08:31]OFD Sender: No OFD packet to send [05:08:36]OFD Sender: No OFD packet to send [05:08:41]OFD Sender: No OFD packet to send [05:08:46]OFD Sender: No OFD packet to send [05:08:51]OFD Sender: No OFD packet to send [05:08:56]OFD Sender: No OFD packet to send [05:09:01]OFD Sender: No OFD packet to send [05:09:06]OFD Sender: No OFD packet to send [05:09:11]OFD Sender: No OFD packet to send [05:09:16]OFD Sender: No OFD packet to send [05:09:21]OFD Sender: No OFD packet to send [05:09:26]OFD Sender: No OFD packet to send [05:09:31]OFD Sender: No OFD packet to send [05:09:36]OFD Sender: No OFD packet to send [05:09:41]OFD Sender: No OFD packet to send [05:09:46]OFD Sender: No OFD packet to send [05:09:51]OFD Sender: No OFD packet to send [05:09:56]OFD Sender: No OFD packet to send [05:10:01]OFD Sender: No OFD packet to send [05:10:06]OFD Sender: No OFD packet to send [05:10:11]OFD Sender: No OFD packet to send [05:10:16]OFD Sender: No OFD packet to send [05:10:21]OFD Sender: No OFD packet to send [05:10:26]OFD Sender: No OFD packet to send [05:10:31]OFD Sender: No OFD packet to send [05:10:36]OFD Sender: No OFD packet to send [05:10:41]OFD Sender: No OFD packet to send [05:10:46]OFD Sender: No OFD packet to send [05:10:51]OFD Sender: No OFD packet to send [05:10:56]OFD Sender: No OFD packet to send [05:11:01]OFD Sender: No OFD packet to send [05:11:06]OFD Sender: No OFD packet to send [05:11:11]OFD Sender: No OFD packet to send [05:11:16]OFD Sender: No OFD packet to send [05:11:21]OFD Sender: No OFD packet to send [05:11:26]OFD Sender: No OFD packet to send [05:11:31]OFD Sender: No OFD packet to send [05:11:36]OFD Sender: No OFD packet to send [05:11:41]OFD Sender: No OFD packet to send [05:11:46]OFD Sender: No OFD packet to send [05:11:51]OFD Sender: No OFD packet to send [05:11:56]OFD Sender: No OFD packet to send [05:12:01]OFD Sender: No OFD packet to send [05:12:06]OFD Sender: No OFD packet to send [05:12:11]OFD Sender: No OFD packet to send [05:12:16]OFD Sender: No OFD packet to send [05:12:21]OFD Sender: No OFD packet to send [05:12:26]OFD Sender: No OFD packet to send [05:12:31]OFD Sender: No OFD packet to send [05:12:36]OFD Sender: No OFD packet to send [05:12:41]OFD Sender: No OFD packet to send [05:12:46]OFD Sender: No OFD packet to send [05:12:51]OFD Sender: No OFD packet to send [05:12:56]OFD Sender: No OFD packet to send [05:13:01]OFD Sender: No OFD packet to send [05:13:06]OFD Sender: No OFD packet to send [05:13:11]OFD Sender: No OFD packet to send [05:13:16]OFD Sender: No OFD packet to send [05:13:21]OFD Sender: No OFD packet to send [05:13:26]OFD Sender: No OFD packet to send [05:13:31]OFD Sender: No OFD packet to send [05:13:36]OFD Sender: No OFD packet to send [05:13:41]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:06]OFD Sender: No OFD packet to send [05:14:11]OFD Sender: No OFD packet to send [05:14:16]OFD Sender: No OFD packet to send [05:14:21]OFD Sender: No OFD packet to send [05:14:26]OFD Sender: No OFD packet to send [05:14:31]OFD Sender: No OFD packet to send [05:14:36]OFD Sender: No OFD packet to send [05:14:41]OFD Sender: No OFD packet to send [05:14:46]OFD Sender: No OFD packet to send [05:14:51]OFD Sender: No OFD packet to send [05:14:56]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15:06]OFD Sender: No OFD packet to send [05:15:11]OFD Sender: No OFD packet to send [05:15:16]OFD Sender: No OFD packet to send [05:15:21]OFD Sender: No OFD packet to send [05:15:26]OFD Sender: No OFD packet to send [05:15:31]OFD Sender: No OFD packet to send [05:15:36]OFD Sender: No OFD packet to send [05:15:41]OFD Sender: No OFD packet to send [05:15:46]OFD Sender: No OFD packet to send [05:15:51]OFD Sender: No OFD packet to send [05:15:57]OFD Sender: No OFD packet to send [05:16:02]OFD Sender: No OFD packet to send [05:16:07]OFD Sender: No OFD packet to send [05:16:12]OFD Sender: No OFD packet to send [05:16:17]OFD Sender: No OFD packet to send [05:16:22]OFD Sender: No OFD packet to send [05:16:27]OFD Sender: No OFD packet to send [05:16:32]OFD Sender: No OFD packet to send [05:16:37]OFD Sender: No OFD packet to send [05:16:42]OFD Sender: No OFD packet to send [05:16:47]OFD Sender: No OFD packet to send [05:16:52]OFD Sender: No OFD packet to send [05:16:57]OFD Sender: No OFD packet to send [05:17:02]OFD Sender: No OFD packet to send [05:17:07]OFD Sender: No OFD packet to send [05:17:12]OFD Sender: No OFD packet to send [05:17:17]OFD Sender: No OFD packet to send [05:17:22]OFD Sender: No OFD packet to send [05:17:27]OFD Sender: No OFD packet to send [05:17:32]OFD Sender: No OFD packet to send [05:17:37]OFD Sender: No OFD packet to send [05:17:42]OFD Sender: No OFD packet to send [05:17:47]OFD Sender: No OFD packet to send [05:17:52]OFD Sender: No OFD packet to send [05:17:57]OFD Sender: No OFD packet to send [05:18:02]OFD Sender: No OFD packet to send [05:18:07]OFD Sender: No OFD packet to send [05:18:12]OFD Sender: No OFD packet to send [05:18:17]OFD Sender: No OFD packet to send [05:18:22]OFD Sender: No OFD packet to send [05:18:27]OFD Sender: No OFD packet to send [05:18:32]OFD Sender: No OFD packet to send [05:18:37]OFD Sender: No OFD packet to send [05:18:42]OFD Sender: No OFD packet to send [05:18:47]OFD Sender: No OFD packet to send [05:18:52]OFD Sender: No OFD packet to send [05:18:57]OFD Sender: No OFD packet to send [05:19:02]OFD Sender: No OFD packet to send [05:19:07]OFD Sender: No OFD packet to send [05:19:12]OFD Sender: No OFD packet to send [05:19:17]OFD Sender: No OFD packet to send [05:19:22]OFD Sender: No OFD packet to send [05:19:27]OFD Sender: No OFD packet to send [05:19:32]OFD Sender: No OFD packet to send [05:19:37]OFD Sender: No OFD packet to send [05:19:42]OFD Sender: No OFD packet to send [05:19:47]OFD Sender: No OFD packet to send [05:19:52]OFD Sender: No OFD packet to send [05:19:57]OFD Sender: No OFD packet to send [05:20:02]OFD Sender: No OFD packet to send [05:20:07]OFD Sender: No OFD packet to send [05:20:12]OFD Sender: No OFD packet to send [05:20:17]OFD Sender: No OFD packet to send [05:20:22]OFD Sender: No OFD packet to send [05:20:27]OFD Sender: No OFD packet to send [05:20:32]OFD Sender: No OFD packet to send [05:20:37]OFD Sender: No OFD packet to send [05:20:42]OFD Sender: No OFD packet to send [05:20:47]OFD Sender: No OFD packet to send [05:20:52]OFD Sender: No OFD packet to send [05:20:57]OFD Sender: No OFD packet to send [05:21:02]OFD Sender: No OFD packet to send [05:21:07]OFD Sender: No OFD packet to send [05:21:12]OFD Sender: No OFD packet to send [05:21:17]OFD Sender: No OFD packet to send [05:21:22]OFD Sender: No OFD packet to send [05:21:27]OFD Sender: No OFD packet to send [05:21:32]OFD Sender: No OFD packet to send [05:21:37]OFD Sender: No OFD packet to send [05:21:42]OFD Sender: No OFD packet to send [05:21:47]OFD Sender: No OFD packet to send [05:21:52]OFD Sender: No OFD packet to send [05:21:57]OFD Sender: No OFD packet to send [05:22:02]OFD Sender: No OFD packet to send [05:22:07]OFD Sender: No OFD packet to send [05:22:12]OFD Sender: No OFD packet to send [05:22:17]OFD Sender: No OFD packet to send [05:22:22]OFD Sender: No OFD packet to send [05:22:27]OFD Sender: No OFD packet to send [05:22:32]OFD Sender: No OFD packet to send [05:22:37]OFD Sender: No OFD packet to send [05:22:42]OFD Sender: No OFD packet to send [05:22:47]OFD Sender: No OFD packet to send [05:22:52]OFD Sender: No OFD packet to send [05:22:57]OFD Sender: No OFD packet to send [05:23:02]OFD Sender: No OFD packet to send [05:23:07]OFD Sender: No OFD packet to send [05:23:12]OFD Sender: No OFD packet to send [05:23:17]OFD Sender: No OFD packet to send [05:23:22]OFD Sender: No OFD packet to send [05:23:27]OFD Sender: No OFD packet to send [05:23:32]OFD Sender: No OFD packet to send [05:23:37]OFD Sender: No OFD packet to send [05:23:42]OFD Sender: No OFD packet to send [05:23:47]OFD Sender: No OFD packet to send [05:23:52]OFD Sender: No OFD packet to send [05:23:57]OFD Sender: No OFD packet to send [05:24:02]OFD Sender: No OFD packet to send [05:24:07]OFD Sender: No OFD packet to send [05:24:12]OFD Sender: No OFD packet to send [05:24:17]OFD Sender: No OFD packet to send [05:24:22]OFD Sender: No OFD packet to send [05:24:27]OFD Sender: No OFD packet to send [05:24:32]OFD Sender: No OFD packet to send [05:24:37]OFD Sender: No OFD packet to send [05:24:42]OFD Sender: No OFD packet to send [05:24:47]OFD Sender: No OFD packet to send [05:24:52]OFD Sender: No OFD packet to send [05:24:57]OFD Sender: No OFD packet to send [05:25:02]OFD Sender: No OFD packet to send [05:25:07]OFD Sender: No OFD packet to send [05:25:12]OFD Sender: No OFD packet to send [05:25:17]OFD Sender: No OFD packet to send [05:25:22]OFD Sender: No OFD packet to send [05:25:27]OFD Sender: No OFD packet to send [05:25:32]OFD Sender: No OFD packet to send [05:25:37]OFD Sender: No OFD packet to send [05:25:42]OFD Sender: No OFD packet to send [05:25:47]OFD Sender: No OFD packet to send [05:25:52]OFD Sender: No OFD packet to send [05:25:57]OFD Sender: No OFD packet to send [05:26:02]OFD Sender: No OFD packet to send [05:26:07]OFD Sender: No OFD packet to send [05:26:12]OFD Sender: No OFD packet to send [05:26:17]OFD Sender: No OFD packet to send [05:26:22]OFD Sender: No OFD packet to send [05:26:27]OFD Sender: No OFD packet to send [05:26:32]OFD Sender: No OFD packet to send [05:26:37]OFD Sender: No OFD packet to send [05:26:42]OFD Sender: No OFD packet to send [05:26:47]OFD Sender: No OFD packet to send [05:26:52]OFD Sender: No OFD packet to send [05:26:57]OFD Sender: No OFD packet to send [05:27:02]OFD Sender: No OFD packet to send [05:27:07]OFD Sender: No OFD packet to send [05:27:12]OFD Sender: No OFD packet to send [05:27:17]OFD Sender: No OFD packet to send [05:27:22]OFD Sender: No OFD packet to send [05:27:27]OFD Sender: No OFD packet to send [05:27:32]OFD Sender: No OFD packet to send [05:27:37]OFD Sender: No OFD packet to send [05:27:42]OFD Sender: No OFD packet to send [05:27:47]OFD Sender: No OFD packet to send [05:27:52]OFD Sender: No OFD packet to send [05:27:57]OFD Sender: No OFD packet to send [05:28:02]OFD Sender: No OFD packet to send [05:28:07]OFD Sender: No OFD packet to send [05:28:12]OFD Sender: No OFD packet to send [05:28:17]OFD Sender: No OFD packet to send [05:28:22]OFD Sender: No OFD packet to send [05:28:27]OFD Sender: No OFD packet to send [05:28:32]OFD Sender: No OFD packet to send [05:28:37]OFD Sender: No OFD packet to send [05:28:42]OFD Sender: No OFD packet to send [05:28:47]OFD Sender: No OFD packet to send [05:28:52]OFD Sender: No OFD packet to send [05:28:57]OFD Sender: No OFD packet to send [05:29:02]OFD Sender: No OFD packet to send [05:29:07]OFD Sender: No OFD packet to send [05:29:12]OFD Sender: No OFD packet to send [05:29:17]OFD Sender: No OFD packet to send [05:29:22]OFD Sender: No OFD packet to send [05:29:27]OFD Sender: No OFD packet to send [05:29:32]OFD Sender: No OFD packet to send [05:29:37]OFD Sender: No OFD packet to send [05:29:42]OFD Sender: No OFD packet to send [05:29:47]OFD Sender: No OFD packet to send [05:29:52]OFD Sender: No OFD packet to send [05:29:57]OFD Sender: No OFD packet to send [05:30:02]OFD Sender: No OFD packet to send [05:30:07]OFD Sender: No OFD packet to send [05:30:12]OFD Sender: No OFD packet to send [05:30:17]OFD Sender: No OFD packet to send [05:30:22]OFD Sender: No OFD packet to send [05:30:27]OFD Sender: No OFD packet to send [05:30:32]OFD Sender: No OFD packet to send [05:30:37]OFD Sender: No OFD packet to send [05:30:42]OFD Sender: No OFD packet to send [05:30:47]OFD Sender: No OFD packet to send [05:30:52]OFD Sender: No OFD packet to send [05:30:57]OFD Sender: No OFD packet to send [05:31:02]OFD Sender: No OFD packet to send [05:31:07]OFD Sender: No OFD packet to send [05:31:12]OFD Sender: No OFD packet to send [05:31:17]OFD Sender: No OFD packet to send [05:31:22]OFD Sender: No OFD packet to send [05:31:27]OFD Sender: No OFD packet to send [05:31:32]OFD Sender: No OFD packet to send [05:31:37]OFD Sender: No OFD packet to send [05:31:42]OFD Sender: No OFD packet to send [05:31:47]OFD Sender: No OFD packet to send [05:31:52]OFD Sender: No OFD packet to send [05:31:57]OFD Sender: No OFD packet to send [05:32:02]OFD Sender: No OFD packet to send [05:32:07]OFD Sender: No OFD packet to send [05:32:12]OFD Sender: No OFD packet to send [05:32:17]OFD Sender: No OFD packet to send [05:32:22]OFD Sender: No OFD packet to send [05:32:27]OFD Sender: No OFD packet to send [05:32:32]OFD Sender: No OFD packet to send [05:32:37]OFD Sender: No OFD packet to send [05:32:42]OFD Sender: No OFD packet to send [05:32:47]OFD Sender: No OFD packet to send [05:32:52]OFD Sender: No OFD packet to send [05:32:57]OFD Sender: No OFD packet to send [05:33:02]OFD Sender: No OFD packet to send [05:33:07]OFD Sender: No OFD packet to send [05:33:12]OFD Sender: No OFD packet to send [05:33:18]OFD Sender: No OFD packet to send [05:33:23]OFD Sender: No OFD packet to send [05:33:28]OFD Sender: No OFD packet to send [05:33:33]OFD Sender: No OFD packet to send [05:33:38]OFD Sender: No OFD packet to send [05:33:43]OFD Sender: No OFD packet to send [05:33:48]OFD Sender: No OFD packet to send [05:33:53]OFD Sender: No OFD packet to send [05:33:58]OFD Sender: No OFD packet to send [05:34:03]OFD Sender: No OFD packet to send [05:34:08]OFD Sender: No OFD packet to send [05:34:13]OFD Sender: No OFD packet to send [05:34:18]OFD Sender: No OFD packet to send [05:34:23]OFD Sender: No OFD packet to send [05:34:28]OFD Sender: No OFD packet to send [05:34:33]OFD Sender: No OFD packet to send [05:34:38]OFD Sender: No OFD packet to send [05:34:43]OFD Sender: No OFD packet to send [05:34:48]OFD Sender: No OFD packet to send [05:34:53]OFD Sender: No OFD packet to send [05:34:58]OFD Sender: No OFD packet to send [05:35:03]OFD Sender: No OFD packet to send [05:35:08]OFD Sender: No OFD packet to send [05:35:13]OFD Sender: No OFD packet to send [05:35:18]OFD Sender: No OFD packet to send [05:35:23]OFD Sender: No OFD packet to send [05:35:28]OFD Sender: No OFD packet to send [05:35:33]OFD Sender: No OFD packet to send [05:35:38]OFD Sender: No OFD packet to send [05:35:43]OFD Sender: No OFD packet to send [05:35:48]OFD Sender: No OFD packet to send [05:35:53]OFD Sender: No OFD packet to send [05:35:58]OFD Sender: No OFD packet to send [05:36:03]OFD Sender: No OFD packet to send [05:36:08]OFD Sender: No OFD packet to send [05:36:13]OFD Sender: No OFD packet to send [05:36:18]OFD Sender: No OFD packet to send [05:36:23]OFD Sender: No OFD packet to send [05:36:28]OFD Sender: No OFD packet to send [05:36:33]OFD Sender: No OFD packet to send [05:36:38]OFD Sender: No OFD packet to send [05:36:43]OFD Sender: No OFD packet to send [05:36:48]OFD Sender: No OFD packet to send [05:36:53]OFD Sender: No OFD packet to send [05:36:58]OFD Sender: No OFD packet to send [05:37:03]OFD Sender: No OFD packet to send [05:37:08]OFD Sender: No OFD packet to send [05:37:13]OFD Sender: No OFD packet to send [05:37:18]OFD Sender: No OFD packet to send [05:37:23]OFD Sender: No OFD packet to send [05:37:28]OFD Sender: No OFD packet to send [05:37:33]OFD Sender: No OFD packet to send [05:37:38]OFD Sender: No OFD packet to send [05:37:43]OFD Sender: No OFD packet to send [05:37:48]OFD Sender: No OFD packet to send [05:37:53]OFD Sender: No OFD packet to send [05:37:58]OFD Sender: No OFD packet to send [05:38:03]OFD Sender: No OFD packet to send [05:38:08]OFD Sender: No OFD packet to send [05:38:13]OFD Sender: No OFD packet to send [05:38:18]OFD Sender: No OFD packet to send [05:38:23]OFD Sender: No OFD packet to send [05:38:28]OFD Sender: No OFD packet to send [05:38:33]OFD Sender: No OFD packet to send [05:38:38]OFD Sender: No OFD packet to send [05:38:43]OFD Sender: No OFD packet to send [05:38:48]OFD Sender: No OFD packet to send [05:38:53]OFD Sender: No OFD packet to send [05:38:58]OFD Sender: No OFD packet to send [05:39:03]OFD Sender: No OFD packet to send [05:39:08]OFD Sender: No OFD packet to send [05:39:13]OFD Sender: No OFD packet to send [05:39:18]OFD Sender: No OFD packet to send [05:39:23]OFD Sender: No OFD packet to send [05:39:28]OFD Sender: No OFD packet to send [05:39:33]OFD Sender: No OFD packet to send [05:39:38]OFD Sender: No OFD packet to send [05:39:43]OFD Sender: No OFD packet to send [05:39:48]OFD Sender: No OFD packet to send [05:39:53]OFD Sender: No OFD packet to send [05:39:58]OFD Sender: No OFD packet to send [05:40:03]OFD Sender: No OFD packet to send [05:40:08]OFD Sender: No OFD packet to send [05:40:13]OFD Sender: No OFD packet to send [05:40:18]OFD Sender: No OFD packet to send [05:40:23]OFD Sender: No OFD packet to send [05:40:28]OFD Sender: No OFD packet to send [05:40:33]OFD Sender: No OFD packet to send [05:40:38]OFD Sender: No OFD packet to send [05:40:43]OFD Sender: No OFD packet to send [05:40:48]OFD Sender: No OFD packet to send [05:40:53]OFD Sender: No OFD packet to send [05:40:58]OFD Sender: No OFD packet to send [05:41:03]OFD Sender: No OFD packet to send [05:41:08]OFD Sender: No OFD packet to send [05:41:13]OFD Sender: No OFD packet to send [05:41:18]OFD Sender: No OFD packet to send [05:41:23]OFD Sender: No OFD packet to send [05:41:28]OFD Sender: No OFD packet to send [05:41:33]OFD Sender: No OFD packet to send [05:41:38]OFD Sender: No OFD packet to send [05:41:43]OFD Sender: No OFD packet to send [05:41:48]OFD Sender: No OFD packet to send [05:41:53]OFD Sender: No OFD packet to send [05:41:58]OFD Sender: No OFD packet to send [05:42:03]OFD Sender: No OFD packet to send [05:42:08]OFD Sender: No OFD packet to send [05:42:13]OFD Sender: No OFD packet to send [05:42:18]OFD Sender: No OFD packet to send [05:42:23]OFD Sender: No OFD packet to send [05:42:28]OFD Sender: No OFD packet to send [05:42:33]OFD Sender: No OFD packet to send [05:42:38]OFD Sender: No OFD packet to send [05:42:43]OFD Sender: No OFD packet to send [05:42:48]OFD Sender: No OFD packet to send [05:42:53]OFD Sender: No OFD packet to send [05:42:58]OFD Sender: No OFD packet to send [05:43:03]OFD Sender: No OFD packet to send [05:43:08]OFD Sender: No OFD packet to send [05:43:13]OFD Sender: No OFD packet to send [05:43:18]OFD Sender: No OFD packet to send [05:43:23]OFD Sender: No OFD packet to send [05:43:28]OFD Sender: No OFD packet to send [05:43:33]OFD Sender: No OFD packet to send [05:43:38]OFD Sender: No OFD packet to send [05:43:43]OFD Sender: No OFD packet to send [05:43:48]OFD Sender: No OFD packet to send [05:43:53]OFD Sender: No OFD packet to send [05:43:58]OFD Sender: No OFD packet to send [05:44:03]OFD Sender: No OFD packet to send [05:44:08]OFD Sender: No OFD packet to send [05:44:13]OFD Sender: No OFD packet to send [05:44:18]OFD Sender: No OFD packet to send [05:44:23]OFD Sender: No OFD packet to send [05:44:28]OFD Sender: No OFD packet to send [05:44:33]OFD Sender: No OFD packet to send [05:44:38]OFD Sender: No OFD packet to send [05:44:43]OFD Sender: No OFD packet to send [05:44:48]OFD Sender: No OFD packet to send [05:44:53]OFD Sender: No OFD packet to send [05:44:58]OFD Sender: No OFD packet to send [05:45:03]OFD Sender: No OFD packet to send [05:45:08]OFD Sender: No OFD packet to send [05:45:13]OFD Sender: No OFD packet to send [05:45:18]OFD Sender: No OFD packet to send [05:45:23]OFD Sender: No OFD packet to send [05:45:28]OFD Sender: No OFD packet to send [05:45:33]OFD Sender: No OFD packet to send [05:45:38]OFD Sender: No OFD packet to send [05:45:43]OFD Sender: No OFD packet to send [05:45:48]OFD Sender: No OFD packet to send [05:45:53]OFD Sender: No OFD packet to send [05:45:58]OFD Sender: No OFD packet to send [05:46:03]OFD Sender: No OFD packet to send [05:46:08]OFD Sender: No OFD packet to send [05:46:13]OFD Sender: No OFD packet to send [05:46:18]OFD Sender: No OFD packet to send [05:46:23]OFD Sender: No OFD packet to send [05:46:28]OFD Sender: No OFD packet to send [05:46:33]OFD Sender: No OFD packet to send [05:46:38]OFD Sender: No OFD packet to send [05:46:43]OFD Sender: No OFD packet to send [05:46:48]OFD Sender: No OFD packet to send [05:46:53]OFD Sender: No OFD packet to send [05:46:58]OFD Sender: No OFD packet to send [05:47:03]OFD Sender: No OFD packet to send [05:47:08]OFD Sender: No OFD packet to send [05:47:13]OFD Sender: No OFD packet to send [05:47:18]OFD Sender: No OFD packet to send [05:47:23]OFD Sender: No OFD packet to send [05:47:28]OFD Sender: No OFD packet to send [05:47:33]OFD Sender: No OFD packet to send [05:47:38]OFD Sender: No OFD packet to send [05:47:43]OFD Sender: No OFD packet to send [05:47:48]OFD Sender: No OFD packet to send [05:47:53]OFD Sender: No OFD packet to send [05:47:58]OFD Sender: No OFD packet to send [05:48:03]OFD Sender: No OFD packet to send [05:48:08]OFD Sender: No OFD packet to send [05:48:13]OFD Sender: No OFD packet to send [05:48:18]OFD Sender: No OFD packet to send [05:48:23]OFD Sender: No OFD packet to send [05:48:28]OFD Sender: No OFD packet to send [05:48:33]OFD Sender: No OFD packet to send [05:48:38]OFD Sender: No OFD packet to send [05:48:43]OFD Sender: No OFD packet to send [05:48:48]OFD Sender: No OFD packet to send [05:48:53]OFD Sender: No OFD packet to send [05:48:58]OFD Sender: No OFD packet to send [05:49:03]OFD Sender: No OFD packet to send [05:49:08]OFD Sender: No OFD packet to send [05:49:13]OFD Sender: No OFD packet to send [05:49:18]OFD Sender: No OFD packet to send [05:49:23]OFD Sender: No OFD packet to send [05:49:28]OFD Sender: No OFD packet to send [05:49:33]OFD Sender: No OFD packet to send [05:49:38]OFD Sender: No OFD packet to send [05:49:43]OFD Sender: No OFD packet to send [05:49:48]OFD Sender: No OFD packet to send [05:49:53]OFD Sender: No OFD packet to send [05:49:58]OFD Sender: No OFD packet to send [05:50:03]OFD Sender: No OFD packet to send [05:50:08]OFD Sender: No OFD packet to send [05:50:13]OFD Sender: No OFD packet to send [05:50:18]OFD Sender: No OFD packet to send [05:50:23]OFD Sender: No OFD packet to send [05:50:28]OFD Sender: No OFD packet to send [05:50:33]OFD Sender: No OFD packet to send [05:50:39]OFD Sender: No OFD packet to send [05:50:44]OFD Sender: No OFD packet to send [05:50:49]OFD Sender: No OFD packet to send [05:50:54]OFD Sender: No OFD packet to send [05:50:59]OFD Sender: No OFD packet to send [05:51:04]OFD Sender: No OFD packet to send [05:51:09]OFD Sender: No OFD packet to send [05:51:14]OFD Sender: No OFD packet to send [05:51:19]OFD Sender: No OFD packet to send [05:51:24]OFD Sender: No OFD packet to send [05:51:29]OFD Sender: No OFD packet to send [05:51:34]OFD Sender: No OFD packet to send [05:51:39]OFD Sender: No OFD packet to send [05:51:44]OFD Sender: No OFD packet to send [05:51:49]OFD Sender: No OFD packet to send [05:51:54]OFD Sender: No OFD packet to send [05:51:59]OFD Sender: No OFD packet to send [05:52:04]OFD Sender: No OFD packet to send [05:52:09]OFD Sender: No OFD packet to send [05:52:14]OFD Sender: No OFD packet to send [05:52:19]OFD Sender: No OFD packet to send [05:52:24]OFD Sender: No OFD packet to send [05:52:29]OFD Sender: No OFD packet to send [05:52:34]OFD Sender: No OFD packet to send [05:52:39]OFD Sender: No OFD packet to send [05:52:44]OFD Sender: No OFD packet to send [05:52:49]OFD Sender: No OFD packet to send [05:52:54]OFD Sender: No OFD packet to send [05:52:59]OFD Sender: No OFD packet to send [05:53:04]OFD Sender: No OFD packet to send [05:53:09]OFD Sender: No OFD packet to send [05:53:14]OFD Sender: No OFD packet to send [05:53:19]OFD Sender: No OFD packet to send [05:53:24]OFD Sender: No OFD packet to send [05:53:29]OFD Sender: No OFD packet to send [05:53:34]OFD Sender: No OFD packet to send [05:53:39]OFD Sender: No OFD packet to send [05:53:44]OFD Sender: No OFD packet to send [05:53:49]OFD Sender: No OFD packet to send [05:53:54]OFD Sender: No OFD packet to send [05:53:59]OFD Sender: No OFD packet to send [05:54:04]OFD Sender: No OFD packet to send [05:54:09]OFD Sender: No OFD packet to send [05:54:14]OFD Sender: No OFD packet to send [05:54:19]OFD Sender: No OFD packet to send [05:54:24]OFD Sender: No OFD packet to send [05:54:29]OFD Sender: No OFD packet to send [05:54:34]OFD Sender: No OFD packet to send [05:54:39]OFD Sender: No OFD packet to send [05:54:44]OFD Sender: No OFD packet to send [05:54:49]OFD Sender: No OFD packet to send [05:54:54]OFD Sender: No OFD packet to send [05:54:59]OFD Sender: No OFD packet to send [05:55:04]OFD Sender: No OFD packet to send [05:55:09]OFD Sender: No OFD packet to send [05:55:14]OFD Sender: No OFD packet to send [05:55:19]OFD Sender: No OFD packet to send [05:55:24]OFD Sender: No OFD packet to send [05:55:29]OFD Sender: No OFD packet to send [05:55:34]OFD Sender: No OFD packet to send [05:55:39]OFD Sender: No OFD packet to send [05:55:44]OFD Sender: No OFD packet to send [05:55:49]OFD Sender: No OFD packet to send [05:55:54]OFD Sender: No OFD packet to send [05:55:59]OFD Sender: No OFD packet to send [05:56:04]OFD Sender: No OFD packet to send [05:56:09]OFD Sender: No OFD packet to send [05:56:14]OFD Sender: No OFD packet to send [05:56:19]OFD Sender: No OFD packet to send [05:56:24]OFD Sender: No OFD packet to send [05:56:29]OFD Sender: No OFD packet to send [05:56:34]OFD Sender: No OFD packet to send [05:56:39]OFD Sender: No OFD packet to send [05:56:44]OFD Sender: No OFD packet to send [05:56:49]OFD Sender: No OFD packet to send [05:56:54]OFD Sender: No OFD packet to send [05:56:59]OFD Sender: No OFD packet to send [05:57:04]OFD Sender: No OFD packet to send [05:57:09]OFD Sender: No OFD packet to send [05:57:14]OFD Sender: No OFD packet to send [05:57:19]OFD Sender: No OFD packet to send [05:57:24]OFD Sender: No OFD packet to send [05:57:29]OFD Sender: No OFD packet to send [05:57:34]OFD Sender: No OFD packet to send [05:57:39]OFD Sender: No OFD packet to send [05:57:44]OFD Sender: No OFD packet to send [05:57:49]OFD Sender: No OFD packet to send [05:57:54]OFD Sender: No OFD packet to send [05:57:59]OFD Sender: No OFD packet to send [05:58:04]OFD Sender: No OFD packet to send [05:58:09]OFD Sender: No OFD packet to send [05:58:14]OFD Sender: No OFD packet to send [05:58:19]OFD Sender: No OFD packet to send [05:58:24]OFD Sender: No OFD packet to send [05:58:29]OFD Sender: No OFD packet to send [05:58:34]OFD Sender: No OFD packet to send [05:58:39]OFD Sender: No OFD packet to send [05:58:44]OFD Sender: No OFD packet to send [05:58:49]OFD Sender: No OFD packet to send [05:58:54]OFD Sender: No OFD packet to send [05:58:59]OFD Sender: No OFD packet to send [05:59:04]OFD Sender: No OFD packet to send [05:59:09]OFD Sender: No OFD packet to send [05:59:14]OFD Sender: No OFD packet to send [05:59:19]OFD Sender: No OFD packet to send [05:59:24]OFD Sender: No OFD packet to send [05:59:29]OFD Sender: No OFD packet to send [05:59:34]OFD Sender: No OFD packet to send [05:59:39]OFD Sender: No OFD packet to send [05:59:44]OFD Sender: No OFD packet to send [05:59:49]OFD Sender: No OFD packet to send [05:59:54]OFD Sender: No OFD packet to send [05:59:59]OFD Sender: No OFD packet to send [06:00:04]OFD Sender: No OFD packet to send [06:00:09]OFD Sender: No OFD packet to send [06:00:14]OFD Sender: No OFD packet to send [06:00:19]OFD Sender: No OFD packet to send [06:00:24]OFD Sender: No OFD packet to send [06:00:29]OFD Sender: No OFD packet to send [06:00:34]OFD Sender: No OFD packet to send [06:00:39]OFD Sender: No OFD packet to send [06:00:44]OFD Sender: No OFD packet to send [06:00:49]OFD Sender: No OFD packet to send [06:00:54]OFD Sender: No OFD packet to send [06:00:59]OFD Sender: No OFD packet to send [06:01:04]OFD Sender: No OFD packet to send [06:01:09]OFD Sender: No OFD packet to send [06:01:14]OFD Sender: No OFD packet to send [06:01:19]OFD Sender: No OFD packet to send [06:01:24]OFD Sender: No OFD packet to send [06:01:29]OFD Sender: No OFD packet to send [06:01:34]OFD Sender: No OFD packet to send [06:01:39]OFD Sender: No OFD packet to send [06:01:44]OFD Sender: No OFD packet to send [06:01:49]OFD Sender: No OFD packet to send [06:01:54]OFD Sender: No OFD packet to send [06:01:59]OFD Sender: No OFD packet to send [06:02:04]OFD Sender: No OFD packet to send [06:02:09]OFD Sender: No OFD packet to send [06:02:14]OFD Sender: No OFD packet to send [06:02:19]OFD Sender: No OFD packet to send [06:02:24]OFD Sender: No OFD packet to send [06:02:29]OFD Sender: No OFD packet to send [06:02:34]OFD Sender: No OFD packet to send [06:02:39]OFD Sender: No OFD packet to send [06:02:44]OFD Sender: No OFD packet to send [06:02:49]OFD Sender: No OFD packet to send [06:02:54]OFD Sender: No OFD packet to send [06:02:59]OFD Sender: No OFD packet to send [06:03:04]OFD Sender: No OFD packet to send [06:03:09]OFD Sender: No OFD packet to send [06:03:14]OFD Sender: No OFD packet to send [06:03:19]OFD Sender: No OFD packet to send [06:03:24]OFD Sender: No OFD packet to send [06:03:29]OFD Sender: No OFD packet to send [06:03:34]OFD Sender: No OFD packet to send [06:03:39]OFD Sender: No OFD packet to send [06:03:44]OFD Sender: No OFD packet to send [06:03:49]OFD Sender: No OFD packet to send [06:03:54]OFD Sender: No OFD packet to send [06:03:59]OFD Sender: No OFD packet to send [06:04:04]OFD Sender: No OFD packet to send [06:04:09]OFD Sender: No OFD packet to send [06:04:14]OFD Sender: No OFD packet to send [06:04:19]OFD Sender: No OFD packet to send [06:04:24]OFD Sender: No OFD packet to send [06:04:29]OFD Sender: No OFD packet to send [06:04:34]OFD Sender: No OFD packet to send [06:04:39]OFD Sender: No OFD packet to send [06:04:44]OFD Sender: No OFD packet to send [06:04:49]OFD Sender: No OFD packet to send [06:04:54]OFD Sender: No OFD packet to send [06:04:59]OFD Sender: No OFD packet to send [06:05:04]OFD Sender: No OFD packet to send [06:05:09]OFD Sender: No OFD packet to send [06:05:14]OFD Sender: No OFD packet to send [06:05:19]OFD Sender: No OFD packet to send [06:05:24]OFD Sender: No OFD packet to send [06:05:29]OFD Sender: No OFD packet to send [06:05:34]OFD Sender: No OFD packet to send [06:05:39]OFD Sender: No OFD packet to send [06:05:44]OFD Sender: No OFD packet to send [06:05:49]OFD Sender: No OFD packet to send [06:05:54]OFD Sender: No OFD packet to send [06:05:59]OFD Sender: No OFD packet to send [06:06:04]OFD Sender: No OFD packet to send [06:06:09]OFD Sender: No OFD packet to send [06:06:14]OFD Sender: No OFD packet to send [06:06:19]OFD Sender: No OFD packet to send [06:06:24]OFD Sender: No OFD packet to send [06:06:29]OFD Sender: No OFD packet to send [06:06:34]OFD Sender: No OFD packet to send [06:06:39]OFD Sender: No OFD packet to send [06:06:44]OFD Sender: No OFD packet to send [06:06:49]OFD Sender: No OFD packet to send [06:06:54]OFD Sender: No OFD packet to send [06:06:59]OFD Sender: No OFD packet to send [06:07:04]OFD Sender: No OFD packet to send [06:07:09]OFD Sender: No OFD packet to send [06:07:14]OFD Sender: No OFD packet to send [06:07:19]OFD Sender: No OFD packet to send [06:07:24]OFD Sender: No OFD packet to send [06:07:29]OFD Sender: No OFD packet to send [06:07:34]OFD Sender: No OFD packet to send [06:07:39]OFD Sender: No OFD packet to send [06:07:44]OFD Sender: No OFD packet to send [06:07:49]OFD Sender: No OFD packet to send [06:07:55]OFD Sender: No OFD packet to send [06:08:00]OFD Sender: No OFD packet to send [06:08:05]OFD Sender: No OFD packet to send [06:08:10]OFD Sender: No OFD packet to send [06:08:15]OFD Sender: No OFD packet to send [06:08:20]OFD Sender: No OFD packet to send [06:08:25]OFD Sender: No OFD packet to send [06:08:30]OFD Sender: No OFD packet to send [06:08:35]OFD Sender: No OFD packet to send [06:08:40]OFD Sender: No OFD packet to send [06:08:45]OFD Sender: No OFD packet to send [06:08:50]OFD Sender: No OFD packet to send [06:08:55]OFD Sender: No OFD packet to send [06:09:00]OFD Sender: No OFD packet to send [06:09:05]OFD Sender: No OFD packet to send [06:09:10]OFD Sender: No OFD packet to send [06:09:15]OFD Sender: No OFD packet to send [06:09:20]OFD Sender: No OFD packet to send [06:09:25]OFD Sender: No OFD packet to send [06:09:30]OFD Sender: No OFD packet to send [06:09:35]OFD Sender: No OFD packet to send [06:09:40]OFD Sender: No OFD packet to send [06:09:45]OFD Sender: No OFD packet to send [06:09:50]OFD Sender: No OFD packet to send [06:09:55]OFD Sender: No OFD packet to send [06:10:00]OFD Sender: No OFD packet to send [06:10:05]OFD Sender: No OFD packet to send [06:10:10]OFD Sender: No OFD packet to send [06:10:15]OFD Sender: No OFD packet to send [06:10:20]OFD Sender: No OFD packet to send [06:10:25]OFD Sender: No OFD packet to send [06:10:30]OFD Sender: No OFD packet to send [06:10:35]OFD Sender: No OFD packet to send [06:10:40]OFD Sender: No OFD packet to send [06:10:45]OFD Sender: No OFD packet to send [06:10:50]OFD Sender: No OFD packet to send [06:10:55]OFD Sender: No OFD packet to send [06:11:00]OFD Sender: No OFD packet to send [06:11:05]OFD Sender: No OFD packet to send [06:11:10]OFD Sender: No OFD packet to send [06:11:15]OFD Sender: No OFD packet to send [06:11:20]OFD Sender: No OFD packet to send [06:11:25]OFD Sender: No OFD packet to send [06:11:30]OFD Sender: No OFD packet to send [06:11:35]OFD Sender: No OFD packet to send [06:11:40]OFD Sender: No OFD packet to send [06:11:45]OFD Sender: No OFD packet to send [06:11:50]OFD Sender: No OFD packet to send [06:11:55]OFD Sender: No OFD packet to send [06:12:00]OFD Sender: No OFD packet to send [06:12:05]OFD Sender: No OFD packet to send [06:12:10]OFD Sender: No OFD packet to send [06:12:15]OFD Sender: No OFD packet to send [06:12:20]OFD Sender: No OFD packet to send [06:12:25]OFD Sender: No OFD packet to send [06:12:30]OFD Sender: No OFD packet to send [06:12:35]OFD Sender: No OFD packet to send [06:12:40]OFD Sender: No OFD packet to send [06:12:45]OFD Sender: No OFD packet to send [06:12:50]OFD Sender: No OFD packet to send [06:12:55]OFD Sender: No OFD packet to send [06:13:00]OFD Sender: No OFD packet to send [06:13:05]OFD Sender: No OFD packet to send [06:13:10]OFD Sender: No OFD packet to send [06:13:15]OFD Sender: No OFD packet to send [06:13:20]OFD Sender: No OFD packet to send [06:13:25]OFD Sender: No OFD packet to send [06:13:30]OFD Sender: No OFD packet to send [06:13:35]OFD Sender: No OFD packet to send [06:13:40]OFD Sender: No OFD packet to send [06:13:45]OFD Sender: No OFD packet to send [06:13:50]OFD Sender: No OFD packet to send [06:13:55]OFD Sender: No OFD packet to send [06:14:00]OFD Sender: No OFD packet to send [06:14:05]OFD Sender: No OFD packet to send [06:14:10]OFD Sender: No OFD packet to send [06:14:15]OFD Sender: No OFD packet to send [06:14:20]OFD Sender: No OFD packet to send [06:14:25]OFD Sender: No OFD packet to send [06:14:30]OFD Sender: No OFD packet to send [06:14:35]OFD Sender: No OFD packet to send [06:14:40]OFD Sender: No OFD packet to send [06:14:45]OFD Sender: No OFD packet to send [06:14:50]OFD Sender: No OFD packet to send [06:14:55]OFD Sender: No OFD packet to send [06:15:00]OFD Sender: No OFD packet to send [06:15:05]OFD Sender: No OFD packet to send [06:15:10]OFD Sender: No OFD packet to send [06:15:15]OFD Sender: No OFD packet to send [06:15:20]OFD Sender: No OFD packet to send [06:15:25]OFD Sender: No OFD packet to send [06:15:30]OFD Sender: No OFD packet to send [06:15:35]OFD Sender: No OFD packet to send [06:15:40]OFD Sender: No OFD packet to send [06:15:45]OFD Sender: No OFD packet to send [06:15:50]OFD Sender: No OFD packet to send [06:15:55]OFD Sender: No OFD packet to send [06:16:00]OFD Sender: No OFD packet to send [06:16:05]OFD Sender: No OFD packet to send [06:16:10]OFD Sender: No OFD packet to send [06:16:15]OFD Sender: No OFD packet to send [06:16:20]OFD Sender: No OFD packet to send [06:16:25]OFD Sender: No OFD packet to send [06:16:30]OFD Sender: No OFD packet to send [06:16:35]OFD Sender: No OFD packet to send [06:16:40]OFD Sender: No OFD packet to send [06:16:45]OFD Sender: No OFD packet to send [06:16:50]OFD Sender: No OFD packet to send [06:16:55]OFD Sender: No OFD packet to send [06:17:00]OFD Sender: No OFD packet to send [06:17:05]OFD Sender: No OFD packet to send [06:17:10]OFD Sender: No OFD packet to send [06:17:15]OFD Sender: No OFD packet to send [06:17:20]OFD Sender: No OFD packet to send [06:17:25]OFD Sender: No OFD packet to send [06:17:30]OFD Sender: No OFD packet to send [06:17:35]OFD Sender: No OFD packet to send [06:17:40]OFD Sender: No OFD packet to send [06:17:45]OFD Sender: No OFD packet to send [06:17:50]OFD Sender: No OFD packet to send [06:17:55]OFD Sender: No OFD packet to send [06:18:00]OFD Sender: No OFD packet to send [06:18:05]OFD Sender: No OFD packet to send [06:18:10]OFD Sender: No OFD packet to send [06:18:15]OFD Sender: No OFD packet to send [06:18:20]OFD Sender: No OFD packet to send [06:18:25]OFD Sender: No OFD packet to send [06:18:30]OFD Sender: No OFD packet to send [06:18:35]OFD Sender: No OFD packet to send [06:18:40]OFD Sender: No OFD packet to send [06:18:45]OFD Sender: No OFD packet to send [06:18:50]OFD Sender: No OFD packet to send [06:18:55]OFD Sender: No OFD packet to send [06:19:00]OFD Sender: No OFD packet to send [06:19:05]OFD Sender: No OFD packet to send [06:19:10]OFD Sender: No OFD packet to send [06:19:15]OFD Sender: No OFD packet to send [06:19:20]OFD Sender: No OFD packet to send [06:19:25]OFD Sender: No OFD packet to send [06:19:30]OFD Sender: No OFD packet to send [06:19:35]OFD Sender: No OFD packet to send [06:19:40]OFD Sender: No OFD packet to send [06:19:45]OFD Sender: No OFD packet to send [06:19:50]OFD Sender: No OFD packet to send [06:19:55]OFD Sender: No OFD packet to send [06:20:00]OFD Sender: No OFD packet to send [06:20:05]OFD Sender: No OFD packet to send [06:20:10]OFD Sender: No OFD packet to send [06:20:15]OFD Sender: No OFD packet to send [06:20:20]OFD Sender: No OFD packet to send [06:20:25]OFD Sender: No OFD packet to send [06:20:30]OFD Sender: No OFD packet to send [06:20:35]OFD Sender: No OFD packet to send [06:20:40]OFD Sender: No OFD packet to send [06:20:45]OFD Sender: No OFD packet to send [06:20:50]OFD Sender: No OFD packet to send [06:20:55]OFD Sender: No OFD packet to send [06:21:00]OFD Sender: No OFD packet to send [06:21:05]OFD Sender: No OFD packet to send [06:21:10]OFD Sender: No OFD packet to send [06:21:15]OFD Sender: No OFD packet to send [06:21:20]OFD Sender: No OFD packet to send [06:21:25]OFD Sender: No OFD packet to send [06:21:30]OFD Sender: No OFD packet to send [06:21:35]OFD Sender: No OFD packet to send [06:21:40]OFD Sender: No OFD packet to send [06:21:45]OFD Sender: No OFD packet to send [06:21:50]OFD Sender: No OFD packet to send [06:21:55]OFD Sender: No OFD packet to send [06:22:00]OFD Sender: No OFD packet to send [06:22:05]OFD Sender: No OFD packet to send [06:22:10]OFD Sender: No OFD packet to send [06:22:15]OFD Sender: No OFD packet to send [06:22:20]OFD Sender: No OFD packet to send [06:22:25]OFD Sender: No OFD packet to send [06:22:30]OFD Sender: No OFD packet to send [06:22:35]OFD Sender: No OFD packet to send [06:22:40]OFD Sender: No OFD packet to send [06:22:45]OFD Sender: No OFD packet to send [06:22:50]OFD Sender: No OFD packet to send [06:22:55]OFD Sender: No OFD packet to send [06:23:00]OFD Sender: No OFD packet to send [06:23:05]OFD Sender: No OFD packet to send [06:23:10]OFD Sender: No OFD packet to send [06:23:15]OFD Sender: No OFD packet to send [06:23:20]OFD Sender: No OFD packet to send [06:23:25]OFD Sender: No OFD packet to send [06:23:30]OFD Sender: No OFD packet to send [06:23:35]OFD Sender: No OFD packet to send [06:23:40]OFD Sender: No OFD packet to send [06:23:45]OFD Sender: No OFD packet to send [06:23:50]OFD Sender: No OFD packet to send [06:23:55]OFD Sender: No OFD packet to send [06:24:00]OFD Sender: No OFD packet to send [06:24:05]OFD Sender: No OFD packet to send [06:24:10]OFD Sender: No OFD packet to send [06:24:15]OFD Sender: No OFD packet to send [06:24:20]OFD Sender: No OFD packet to send [06:24:25]OFD Sender: No OFD packet to send [06:24:30]OFD Sender: No OFD packet to send [06:24:35]OFD Sender: No OFD packet to send [06:24:40]OFD Sender: No OFD packet to send [06:24:45]OFD Sender: No OFD packet to send [06:24:50]OFD Sender: No OFD packet to send [06:24:55]OFD Sender: No OFD packet to send [06:25:00]OFD Sender: No OFD packet to send [06:25:05]OFD Sender: No OFD packet to send [06:25:10]OFD Sender: No OFD packet to send [06:25:15]OFD Sender: No OFD packet to send [06:25:21]OFD Sender: No OFD packet to send [06:25:26]OFD Sender: No OFD packet to send [06:25:31]OFD Sender: No OFD packet to send [06:25:36]OFD Sender: No OFD packet to send [06:25:41]OFD Sender: No OFD packet to send [06:25:46]OFD Sender: No OFD packet to send [06:25:51]OFD Sender: No OFD packet to send [06:25:56]OFD Sender: No OFD packet to send [06:26:01]OFD Sender: No OFD packet to send [06:26:06]OFD Sender: No OFD packet to send [06:26:11]OFD Sender: No OFD packet to send [06:26:16]OFD Sender: No OFD packet to send [06:26:21]OFD Sender: No OFD packet to send [06:26:26]OFD Sender: No OFD packet to send [06:26:31]OFD Sender: No OFD packet to send [06:26:36]OFD Sender: No OFD packet to send [06:26:41]OFD Sender: No OFD packet to send [06:26:46]OFD Sender: No OFD packet to send [06:26:51]OFD Sender: No OFD packet to send [06:26:56]OFD Sender: No OFD packet to send [06:27:01]OFD Sender: No OFD packet to send [06:27:06]OFD Sender: No OFD packet to send [06:27:11]OFD Sender: No OFD packet to send [06:27:16]OFD Sender: No OFD packet to send [06:27:21]OFD Sender: No OFD packet to send [06:27:26]OFD Sender: No OFD packet to send [06:27:31]OFD Sender: No OFD packet to send [06:27:36]OFD Sender: No OFD packet to send [06:27:41]OFD Sender: No OFD packet to send [06:27:46]OFD Sender: No OFD packet to send [06:27:51]OFD Sender: No OFD packet to send [06:27:56]OFD Sender: No OFD packet to send [06:28:01]OFD Sender: No OFD packet to send [06:28:06]OFD Sender: No OFD packet to send [06:28:11]OFD Sender: No OFD packet to send [06:28:16]OFD Sender: No OFD packet to send [06:28:21]OFD Sender: No OFD packet to send [06:28:26]OFD Sender: No OFD packet to send [06:28:31]OFD Sender: No OFD packet to send [06:28:36]OFD Sender: No OFD packet to send [06:28:41]OFD Sender: No OFD packet to send [06:28:46]OFD Sender: No OFD packet to send [06:28:51]OFD Sender: No OFD packet to send [06:28:56]OFD Sender: No OFD packet to send [06:29:01]OFD Sender: No OFD packet to send [06:29:06]OFD Sender: No OFD packet to send [06:29:11]OFD Sender: No OFD packet to send [06:29:16]OFD Sender: No OFD packet to send [06:29:21]OFD Sender: No OFD packet to send [06:29:26]OFD Sender: No OFD packet to send [06:29:31]OFD Sender: No OFD packet to send [06:29:36]OFD Sender: No OFD packet to send [06:29:41]OFD Sender: No OFD packet to send [06:29:46]OFD Sender: No OFD packet to send [06:29:51]OFD Sender: No OFD packet to send [06:29:56]OFD Sender: No OFD packet to send [06:30:01]OFD Sender: No OFD packet to send [06:30:06]OFD Sender: No OFD packet to send [06:30:11]OFD Sender: No OFD packet to send [06:30:16]OFD Sender: No OFD packet to send [06:30:21]OFD Sender: No OFD packet to send [06:30:26]OFD Sender: No OFD packet to send [06:30:31]OFD Sender: No OFD packet to send [06:30:36]OFD Sender: No OFD packet to send [06:30:41]OFD Sender: No OFD packet to send [06:30:46]OFD Sender: No OFD packet to send [06:30:51]OFD Sender: No OFD packet to send [06:30:56]OFD Sender: No OFD packet to send [06:31:01]OFD Sender: No OFD packet to send [06:31:06]OFD Sender: No OFD packet to send [06:31:11]OFD Sender: No OFD packet to send [06:31:16]OFD Sender: No OFD packet to send [06:31:21]OFD Sender: No OFD packet to send [06:31:26]OFD Sender: No OFD packet to send [06:31:31]OFD Sender: No OFD packet to send [06:31:36]OFD Sender: No OFD packet to send [06:31:41]OFD Sender: No OFD packet to send [06:31:46]OFD Sender: No OFD packet to send [06:31:51]OFD Sender: No OFD packet to send [06:31:56]OFD Sender: No OFD packet to send [06:32:01]OFD Sender: No OFD packet to send [06:32:06]OFD Sender: No OFD packet to send [06:32:11]OFD Sender: No OFD packet to send [06:32:16]OFD Sender: No OFD packet to send [06:32:21]OFD Sender: No OFD packet to send [06:32:26]OFD Sender: No OFD packet to send [06:32:31]OFD Sender: No OFD packet to send [06:32:36]OFD Sender: No OFD packet to send [06:32:41]OFD Sender: No OFD packet to send [06:32:46]OFD Sender: No OFD packet to send [06:32:51]OFD Sender: No OFD packet to send [06:32:56]OFD Sender: No OFD packet to send [06:33:01]OFD Sender: No OFD packet to send [06:33:06]OFD Sender: No OFD packet to send [06:33:11]OFD Sender: No OFD packet to send [06:33:16]OFD Sender: No OFD packet to send [06:33:21]OFD Sender: No OFD packet to send [06:33:26]OFD Sender: No OFD packet to send [06:33:31]OFD Sender: No OFD packet to send [06:33:36]OFD Sender: No OFD packet to send [06:33:41]OFD Sender: No OFD packet to send [06:33:46]OFD Sender: No OFD packet to send [06:33:51]OFD Sender: No OFD packet to send [06:33:56]OFD Sender: No OFD packet to send [06:34:01]OFD Sender: No OFD packet to send [06:34:06]OFD Sender: No OFD packet to send [06:34:11]OFD Sender: No OFD packet to send [06:34:16]OFD Sender: No OFD packet to send [06:34:21]OFD Sender: No OFD packet to send [06:34:26]OFD Sender: No OFD packet to send [06:34:31]OFD Sender: No OFD packet to send [06:34:36]OFD Sender: No OFD packet to send [06:34:41]OFD Sender: No OFD packet to send [06:34:46]OFD Sender: No OFD packet to send [06:34:51]OFD Sender: No OFD packet to send [06:34:56]OFD Sender: No OFD packet to send [06:35:01]OFD Sender: No OFD packet to send [06:35:06]OFD Sender: No OFD packet to send [06:35:11]OFD Sender: No OFD packet to send [06:35:16]OFD Sender: No OFD packet to send [06:35:21]OFD Sender: No OFD packet to send [06:35:26]OFD Sender: No OFD packet to send [06:35:31]OFD Sender: No OFD packet to send [06:35:36]OFD Sender: No OFD packet to send [06:35:41]OFD Sender: No OFD packet to send [06:35:46]OFD Sender: No OFD packet to send [06:35:51]OFD Sender: No OFD packet to send [06:35:56]OFD Sender: No OFD packet to send [06:36:01]OFD Sender: No OFD packet to send [06:36:06]OFD Sender: No OFD packet to send [06:36:11]OFD Sender: No OFD packet to send [06:36:16]OFD Sender: No OFD packet to send [06:36:21]OFD Sender: No OFD packet to send [06:36:26]OFD Sender: No OFD packet to send [06:36:31]OFD Sender: No OFD packet to send [06:36:36]OFD Sender: No OFD packet to send [06:36:41]OFD Sender: No OFD packet to send [06:36:46]OFD Sender: No OFD packet to send [06:36:51]OFD Sender: No OFD packet to send [06:36:56]OFD Sender: No OFD packet to send [06:37:01]OFD Sender: No OFD packet to send [06:37:06]OFD Sender: No OFD packet to send [06:37:11]OFD Sender: No OFD packet to send [06:37:16]OFD Sender: No OFD packet to send [06:37:21]OFD Sender: No OFD packet to send [06:37:26]OFD Sender: No OFD packet to send [06:37:31]OFD Sender: No OFD packet to send [06:37:36]OFD Sender: No OFD packet to send [06:37:41]OFD Sender: No OFD packet to send [06:37:46]OFD Sender: No OFD packet to send [06:37:51]OFD Sender: No OFD packet to send [06:37:56]OFD Sender: No OFD packet to send [06:38:01]OFD Sender: No OFD packet to send [06:38:06]OFD Sender: No OFD packet to send [06:38:11]OFD Sender: No OFD packet to send [06:38:16]OFD Sender: No OFD packet to send [06:38:21]OFD Sender: No OFD packet to send [06:38:26]OFD Sender: No OFD packet to send [06:38:31]OFD Sender: No OFD packet to send [06:38:36]OFD Sender: No OFD packet to send [06:38:41]OFD Sender: No OFD packet to send [06:38:46]OFD Sender: No OFD packet to send [06:38:51]OFD Sender: No OFD packet to send [06:38:56]OFD Sender: No OFD packet to send [06:39:01]OFD Sender: No OFD packet to send [06:39:06]OFD Sender: No OFD packet to send [06:39:11]OFD Sender: No OFD packet to send [06:39:16]OFD Sender: No OFD packet to send [06:39:21]OFD Sender: No OFD packet to send [06:39:26]OFD Sender: No OFD packet to send [06:39:31]OFD Sender: No OFD packet to send [06:39:36]OFD Sender: No OFD packet to send [06:39:41]OFD Sender: No OFD packet to send [06:39:46]OFD Sender: No OFD packet to send [06:39:51]OFD Sender: No OFD packet to send [06:39:56]OFD Sender: No OFD packet to send [06:40:01]OFD Sender: No OFD packet to send [06:40:06]OFD Sender: No OFD packet to send [06:40:11]OFD Sender: No OFD packet to send [06:40:16]OFD Sender: No OFD packet to send [06:40:21]OFD Sender: No OFD packet to send [06:40:26]OFD Sender: No OFD packet to send [06:40:31]OFD Sender: No OFD packet to send [06:40:36]OFD Sender: No OFD packet to send [06:40:41]OFD Sender: No OFD packet to send [06:40:46]OFD Sender: No OFD packet to send [06:40:51]OFD Sender: No OFD packet to send [06:40:56]OFD Sender: No OFD packet to send [06:41:01]OFD Sender: No OFD packet to send [06:41:06]OFD Sender: No OFD packet to send [06:41:11]OFD Sender: No OFD packet to send [06:41:16]OFD Sender: No OFD packet to send [06:41:21]OFD Sender: No OFD packet to send [06:41:26]OFD Sender: No OFD packet to send [06:41:31]OFD Sender: No OFD packet to send [06:41:36]OFD Sender: No OFD packet to send [06:41:41]OFD Sender: No OFD packet to send [06:41:46]OFD Sender: No OFD packet to send [06:41:51]OFD Sender: No OFD packet to send [06:41:56]OFD Sender: No OFD packet to send [06:42:01]OFD Sender: No OFD packet to send [06:42:06]OFD Sender: No OFD packet to send [06:42:11]OFD Sender: No OFD packet to send [06:42:16]OFD Sender: No OFD packet to send [06:42:21]OFD Sender: No OFD packet to send [06:42:26]OFD Sender: No OFD packet to send [06:42:31]OFD Sender: No OFD packet to send [06:42:36]OFD Sender: No OFD packet to send [06:42:41]OFD Sender: No OFD packet to send [06:42:47]OFD Sender: No OFD packet to send [06:42:52]OFD Sender: No OFD packet to send [06:42:57]OFD Sender: No OFD packet to send [06:43:02]OFD Sender: No OFD packet to send [06:43:07]OFD Sender: No OFD packet to send [06:43:12]OFD Sender: No OFD packet to send [06:43:17]OFD Sender: No OFD packet to send [06:43:22]OFD Sender: No OFD packet to send [06:43:27]OFD Sender: No OFD packet to send [06:43:32]OFD Sender: No OFD packet to send [06:43:37]OFD Sender: No OFD packet to send [06:43:42]OFD Sender: No OFD packet to send [06:43:47]OFD Sender: No OFD packet to send [06:43:52]OFD Sender: No OFD packet to send [06:43:57]OFD Sender: No OFD packet to send [06:44:02]OFD Sender: No OFD packet to send [06:44:07]OFD Sender: No OFD packet to send [06:44:12]OFD Sender: No OFD packet to send [06:44:17]OFD Sender: No OFD packet to send [06:44:22]OFD Sender: No OFD packet to send [06:44:27]OFD Sender: No OFD packet to send [06:44:32]OFD Sender: No OFD packet to send [06:44:37]OFD Sender: No OFD packet to send [06:44:42]OFD Sender: No OFD packet to send [06:44:47]OFD Sender: No OFD packet to send [06:44:52]OFD Sender: No OFD packet to send [06:44:57]OFD Sender: No OFD packet to send [06:45:02]OFD Sender: No OFD packet to send [06:45:07]OFD Sender: No OFD packet to send [06:45:12]OFD Sender: No OFD packet to send [06:45:17]OFD Sender: No OFD packet to send [06:45:22]OFD Sender: No OFD packet to send [06:45:27]OFD Sender: No OFD packet to send [06:45:32]OFD Sender: No OFD packet to send [06:45:37]OFD Sender: No OFD packet to send [06:45:42]OFD Sender: No OFD packet to send [06:45:47]OFD Sender: No OFD packet to send [06:45:52]OFD Sender: No OFD packet to send [06:45:57]OFD Sender: No OFD packet to send [06:46:02]OFD Sender: No OFD packet to send [06:46:07]OFD Sender: No OFD packet to send [06:46:12]OFD Sender: No OFD packet to send [06:46:17]OFD Sender: No OFD packet to send [06:46:22]OFD Sender: No OFD packet to send [06:46:27]OFD Sender: No OFD packet to send [06:46:32]OFD Sender: No OFD packet to send [06:46:37]OFD Sender: No OFD packet to send [06:46:42]OFD Sender: No OFD packet to send [06:46:47]OFD Sender: No OFD packet to send [06:46:52]OFD Sender: No OFD packet to send [06:46:57]OFD Sender: No OFD packet to send [06:47:02]OFD Sender: No OFD packet to send [06:47:07]OFD Sender: No OFD packet to send [06:47:12]OFD Sender: No OFD packet to send [06:47:17]OFD Sender: No OFD packet to send [06:47:22]OFD Sender: No OFD packet to send [06:47:27]OFD Sender: No OFD packet to send [06:47:32]OFD Sender: No OFD packet to send [06:47:37]OFD Sender: No OFD packet to send [06:47:42]OFD Sender: No OFD packet to send [06:47:47]OFD Sender: No OFD packet to send [06:47:52]OFD Sender: No OFD packet to send [06:47:57]OFD Sender: No OFD packet to send [06:48:02]OFD Sender: No OFD packet to send [06:48:07]OFD Sender: No OFD packet to send [06:48:12]OFD Sender: No OFD packet to send [06:48:17]OFD Sender: No OFD packet to send [06:48:22]OFD Sender: No OFD packet to send [06:48:27]OFD Sender: No OFD packet to send [06:48:32]OFD Sender: No OFD packet to send [06:48:37]OFD Sender: No OFD packet to send [06:48:42]OFD Sender: No OFD packet to send [06:48:47]OFD Sender: No OFD packet to send [06:48:52]OFD Sender: No OFD packet to send [06:48:57]OFD Sender: No OFD packet to send [06:49:02]OFD Sender: No OFD packet to send [06:49:07]OFD Sender: No OFD packet to send [06:49:12]OFD Sender: No OFD packet to send [06:49:17]OFD Sender: No OFD packet to send [06:49:22]OFD Sender: No OFD packet to send [06:49:27]OFD Sender: No OFD packet to send [06:49:32]OFD Sender: No OFD packet to send [06:49:37]OFD Sender: No OFD packet to send [06:49:42]OFD Sender: No OFD packet to send [06:49:47]OFD Sender: No OFD packet to send [06:49:52]OFD Sender: No OFD packet to send [06:49:57]OFD Sender: No OFD packet to send [06:50:02]OFD Sender: No OFD packet to send [06:50:07]OFD Sender: No OFD packet to send [06:50:12]OFD Sender: No OFD packet to send [06:50:17]OFD Sender: No OFD packet to send [06:50:22]OFD Sender: No OFD packet to send [06:50:27]OFD Sender: No OFD packet to send [06:50:32]OFD Sender: No OFD packet to send [06:50:37]OFD Sender: No OFD packet to send [06:50:42]OFD Sender: No OFD packet to send [06:50:47]OFD Sender: No OFD packet to send [06:50:52]OFD Sender: No OFD packet to send [06:50:57]OFD Sender: No OFD packet to send [06:51:02]OFD Sender: No OFD packet to send [06:51:07]OFD Sender: No OFD packet to send [06:51:12]OFD Sender: No OFD packet to send [06:51:17]OFD Sender: No OFD packet to send [06:51:22]OFD Sender: No OFD packet to send [06:51:27]OFD Sender: No OFD packet to send [06:51:32]OFD Sender: No OFD packet to send [06:51:37]OFD Sender: No OFD packet to send [06:51:42]OFD Sender: No OFD packet to send [06:51:47]OFD Sender: No OFD packet to send [06:51:52]OFD Sender: No OFD packet to send [06:51:57]OFD Sender: No OFD packet to send [06:52:02]OFD Sender: No OFD packet to send [06:52:07]OFD Sender: No OFD packet to send [06:52:12]OFD Sender: No OFD packet to send [06:52:17]OFD Sender: No OFD packet to send [06:52:22]OFD Sender: No OFD packet to send [06:52:27]OFD Sender: No OFD packet to send [06:52:32]OFD Sender: No OFD packet to send [06:52:37]OFD Sender: No OFD packet to send [06:52:42]OFD Sender: No OFD packet to send [06:52:47]OFD Sender: No OFD packet to send [06:52:52]OFD Sender: No OFD packet to send [06:52:57]OFD Sender: No OFD packet to send [06:53:02]OFD Sender: No OFD packet to send [06:53:07]OFD Sender: No OFD packet to send [06:53:12]OFD Sender: No OFD packet to send [06:53:17]OFD Sender: No OFD packet to send [06:53:22]OFD Sender: No OFD packet to send [06:53:27]OFD Sender: No OFD packet to send [06:53:32]OFD Sender: No OFD packet to send [06:53:37]OFD Sender: No OFD packet to send [06:53:42]OFD Sender: No OFD packet to send [06:53:47]OFD Sender: No OFD packet to send [06:53:52]OFD Sender: No OFD packet to send [06:53:57]OFD Sender: No OFD packet to send [06:54:02]OFD Sender: No OFD packet to send [06:54:07]OFD Sender: No OFD packet to send [06:54:12]OFD Sender: No OFD packet to send [06:54:17]OFD Sender: No OFD packet to send [06:54:22]OFD Sender: No OFD packet to send [06:54:27]OFD Sender: No OFD packet to send [06:54:32]OFD Sender: No OFD packet to send [06:54:37]OFD Sender: No OFD packet to send [06:54:42]OFD Sender: No OFD packet to send [06:54:47]OFD Sender: No OFD packet to send [06:54:52]OFD Sender: No OFD packet to send [06:54:57]OFD Sender: No OFD packet to send [06:55:02]OFD Sender: No OFD packet to send [06:55:07]OFD Sender: No OFD packet to send [06:55:12]OFD Sender: No OFD packet to send [06:55:17]OFD Sender: No OFD packet to send [06:55:22]OFD Sender: No OFD packet to send [06:55:27]OFD Sender: No OFD packet to send [06:55:32]OFD Sender: No OFD packet to send [06:55:37]OFD Sender: No OFD packet to send [06:55:42]OFD Sender: No OFD packet to send [06:55:47]OFD Sender: No OFD packet to send [06:55:52]OFD Sender: No OFD packet to send [06:55:57]OFD Sender: No OFD packet to send [06:56:02]OFD Sender: No OFD packet to send [06:56:07]OFD Sender: No OFD packet to send [06:56:12]OFD Sender: No OFD packet to send [06:56:17]OFD Sender: No OFD packet to send [06:56:22]OFD Sender: No OFD packet to send [06:56:27]OFD Sender: No OFD packet to send [06:56:32]OFD Sender: No OFD packet to send [06:56:37]OFD Sender: No OFD packet to send [06:56:42]OFD Sender: No OFD packet to send [06:56:47]OFD Sender: No OFD packet to send [06:56:52]OFD Sender: No OFD packet to send [06:56:57]OFD Sender: No OFD packet to send [06:57:02]OFD Sender: No OFD packet to send [06:57:07]OFD Sender: No OFD packet to send [06:57:12]OFD Sender: No OFD packet to send [06:57:17]OFD Sender: No OFD packet to send [06:57:22]OFD Sender: No OFD packet to send [06:57:27]OFD Sender: No OFD packet to send [06:57:32]OFD Sender: No OFD packet to send [06:57:37]OFD Sender: No OFD packet to send [06:57:42]OFD Sender: No OFD packet to send [06:57:47]OFD Sender: No OFD packet to send [06:57:52]OFD Sender: No OFD packet to send [06:57:57]OFD Sender: No OFD packet to send [06:58:02]OFD Sender: No OFD packet to send [06:58:07]OFD Sender: No OFD packet to send [06:58:12]OFD Sender: No OFD packet to send [06:58:17]OFD Sender: No OFD packet to send [06:58:22]OFD Sender: No OFD packet to send [06:58:27]OFD Sender: No OFD packet to send [06:58:32]OFD Sender: No OFD packet to send [06:58:37]OFD Sender: No OFD packet to send [06:58:42]OFD Sender: No OFD packet to send [06:58:47]OFD Sender: No OFD packet to send [06:58:52]OFD Sender: No OFD packet to send [06:58:57]OFD Sender: No OFD packet to send [06:59:02]OFD Sender: No OFD packet to send [06:59:07]OFD Sender: No OFD packet to send [06:59:12]OFD Sender: No OFD packet to send [06:59:17]OFD Sender: No OFD packet to send [06:59:22]OFD Sender: No OFD packet to send [06:59:27]OFD Sender: No OFD packet to send [06:59:32]OFD Sender: No OFD packet to send [06:59:37]OFD Sender: No OFD packet to send [06:59:42]OFD Sender: No OFD packet to send [06:59:47]OFD Sender: No OFD packet to send [06:59:52]OFD Sender: No OFD packet to send [06:59:57]OFD Sender: No OFD packet to send [07:00:02]OFD Sender: No OFD packet to send [07:00:07]OFD Sender: No OFD packet to send [07:00:13]OFD Sender: No OFD packet to send [07:00:18]OFD Sender: No OFD packet to send [07:00:23]OFD Sender: No OFD packet to send [07:00:28]OFD Sender: No OFD packet to send [07:00:33]OFD Sender: No OFD packet to send [07:00:38]OFD Sender: No OFD packet to send [07:00:43]OFD Sender: No OFD packet to send [07:00:48]OFD Sender: No OFD packet to send [07:00:53]OFD Sender: No OFD packet to send [07:00:58]OFD Sender: No OFD packet to send [07:01:03]OFD Sender: No OFD packet to send [07:01:08]OFD Sender: No OFD packet to send [07:01:13]OFD Sender: No OFD packet to send [07:01:18]OFD Sender: No OFD packet to send [07:01:23]OFD Sender: No OFD packet to send [07:01:28]OFD Sender: No OFD packet to send [07:01:33]OFD Sender: No OFD packet to send [07:01:38]OFD Sender: No OFD packet to send [07:01:43]OFD Sender: No OFD packet to send [07:01:48]OFD Sender: No OFD packet to send [07:01:53]OFD Sender: No OFD packet to send [07:01:58]OFD Sender: No OFD packet to send [07:02:03]OFD Sender: No OFD packet to send [07:02:08]OFD Sender: No OFD packet to send [07:02:13]OFD Sender: No OFD packet to send [07:02:18]OFD Sender: No OFD packet to send [07:02:23]OFD Sender: No OFD packet to send [07:02:28]OFD Sender: No OFD packet to send [07:02:33]OFD Sender: No OFD packet to send [07:02:38]OFD Sender: No OFD packet to send [07:02:43]OFD Sender: No OFD packet to send [07:02:48]OFD Sender: No OFD packet to send [07:02:53]OFD Sender: No OFD packet to send [07:02:58]OFD Sender: No OFD packet to send [07:03:03]OFD Sender: No OFD packet to send [07:03:08]OFD Sender: No OFD packet to send [07:03:13]OFD Sender: No OFD packet to send [07:03:18]OFD Sender: No OFD packet to send [07:03:23]OFD Sender: No OFD packet to send [07:03:28]OFD Sender: No OFD packet to send [07:03:33]OFD Sender: No OFD packet to send [07:03:38]OFD Sender: No OFD packet to send [07:03:43]OFD Sender: No OFD packet to send [07:03:48]OFD Sender: No OFD packet to send [07:03:53]OFD Sender: No OFD packet to send [07:03:58]OFD Sender: No OFD packet to send [07:04:03]OFD Sender: No OFD packet to send [07:04:08]OFD Sender: No OFD packet to send [07:04:13]OFD Sender: No OFD packet to send [07:04:18]OFD Sender: No OFD packet to send [07:04:23]OFD Sender: No OFD packet to send [07:04:28]OFD Sender: No OFD packet to send [07:04:33]OFD Sender: No OFD packet to send [07:04:38]OFD Sender: No OFD packet to send [07:04:43]OFD Sender: No OFD packet to send [07:04:48]OFD Sender: No OFD packet to send [07:04:53]OFD Sender: No OFD packet to send [07:04:58]OFD Sender: No OFD packet to send [07:05:03]OFD Sender: No OFD packet to send [07:05:08]OFD Sender: No OFD packet to send [07:05:13]OFD Sender: No OFD packet to send [07:05:18]OFD Sender: No OFD packet to send [07:05:23]OFD Sender: No OFD packet to send [07:05:28]OFD Sender: No OFD packet to send [07:05:33]OFD Sender: No OFD packet to send [07:05:38]OFD Sender: No OFD packet to send [07:05:43]OFD Sender: No OFD packet to send [07:05:48]OFD Sender: No OFD packet to send [07:05:53]OFD Sender: No OFD packet to send [07:05:58]OFD Sender: No OFD packet to send [07:06:03]OFD Sender: No OFD packet to send [07:06:08]OFD Sender: No OFD packet to send [07:06:13]OFD Sender: No OFD packet to send [07:06:18]OFD Sender: No OFD packet to send [07:06:23]OFD Sender: No OFD packet to send [07:06:28]OFD Sender: No OFD packet to send [07:06:33]OFD Sender: No OFD packet to send [07:06:38]OFD Sender: No OFD packet to send [07:06:43]OFD Sender: No OFD packet to send [07:06:48]OFD Sender: No OFD packet to send [07:06:53]OFD Sender: No OFD packet to send [07:06:58]OFD Sender: No OFD packet to send [07:07:03]OFD Sender: No OFD packet to send [07:07:08]OFD Sender: No OFD packet to send [07:07:13]OFD Sender: No OFD packet to send [07:07:18]OFD Sender: No OFD packet to send [07:07:23]OFD Sender: No OFD packet to send [07:07:28]OFD Sender: No OFD packet to send [07:07:33]OFD Sender: No OFD packet to send [07:07:38]OFD Sender: No OFD packet to send [07:07:43]OFD Sender: No OFD packet to send [07:07:48]OFD Sender: No OFD packet to send [07:07:53]OFD Sender: No OFD packet to send [07:07:58]OFD Sender: No OFD packet to send [07:08:03]OFD Sender: No OFD packet to send [07:08:08]OFD Sender: No OFD packet to send [07:08:13]OFD Sender: No OFD packet to send [07:08:18]OFD Sender: No OFD packet to send [07:08:23]OFD Sender: No OFD packet to send [07:08:28]OFD Sender: No OFD packet to send [07:08:33]OFD Sender: No OFD packet to send [07:08:38]OFD Sender: No OFD packet to send [07:08:43]OFD Sender: No OFD packet to send [07:08:48]OFD Sender: No OFD packet to send [07:08:53]OFD Sender: No OFD packet to send [07:08:58]OFD Sender: No OFD packet to send [07:09:03]OFD Sender: No OFD packet to send [07:09:08]OFD Sender: No OFD packet to send [07:09:13]OFD Sender: No OFD packet to send [07:09:18]OFD Sender: No OFD packet to send [07:09:23]OFD Sender: No OFD packet to send [07:09:28]OFD Sender: No OFD packet to send [07:09:33]OFD Sender: No OFD packet to send [07:09:38]OFD Sender: No OFD packet to send [07:09:43]OFD Sender: No OFD packet to send [07:09:48]OFD Sender: No OFD packet to send [07:09:53]OFD Sender: No OFD packet to send [07:09:58]OFD Sender: No OFD packet to send [07:10:03]OFD Sender: No OFD packet to send [07:10:08]OFD Sender: No OFD packet to send [07:10:13]OFD Sender: No OFD packet to send [07:10:18]OFD Sender: No OFD packet to send [07:10:23]OFD Sender: No OFD packet to send [07:10:28]OFD Sender: No OFD packet to send [07:10:33]OFD Sender: No OFD packet to send [07:10:38]OFD Sender: No OFD packet to send [07:10:43]OFD Sender: No OFD packet to send [07:10:48]OFD Sender: No OFD packet to send [07:10:53]OFD Sender: No OFD packet to send [07:10:58]OFD Sender: No OFD packet to send [07:11:03]OFD Sender: No OFD packet to send [07:11:08]OFD Sender: No OFD packet to send [07:11:13]OFD Sender: No OFD packet to send [07:11:18]OFD Sender: No OFD packet to send [07:11:23]OFD Sender: No OFD packet to send [07:11:28]OFD Sender: No OFD packet to send [07:11:33]OFD Sender: No OFD packet to send [07:11:38]OFD Sender: No OFD packet to send [07:11:43]OFD Sender: No OFD packet to send [07:11:48]OFD Sender: No OFD packet to send [07:11:53]OFD Sender: No OFD packet to send [07:11:58]OFD Sender: No OFD packet to send [07:12:03]OFD Sender: No OFD packet to send [07:12:08]OFD Sender: No OFD packet to send [07:12:13]OFD Sender: No OFD packet to send [07:12:18]OFD Sender: No OFD packet to send [07:12:23]OFD Sender: No OFD packet to send [07:12:28]OFD Sender: No OFD packet to send [07:12:33]OFD Sender: No OFD packet to send [07:12:38]OFD Sender: No OFD packet to send [07:12:43]OFD Sender: No OFD packet to send [07:12:48]OFD Sender: No OFD packet to send [07:12:53]OFD Sender: No OFD packet to send [07:12:58]OFD Sender: No OFD packet to send [07:13:03]OFD Sender: No OFD packet to send [07:13:08]OFD Sender: No OFD packet to send [07:13:13]OFD Sender: No OFD packet to send [07:13:18]OFD Sender: No OFD packet to send [07:13:23]OFD Sender: No OFD packet to send [07:13:28]OFD Sender: No OFD packet to send [07:13:33]OFD Sender: No OFD packet to send [07:13:38]OFD Sender: No OFD packet to send [07:13:43]OFD Sender: No OFD packet to send [07:13:48]OFD Sender: No OFD packet to send [07:13:53]OFD Sender: No OFD packet to send [07:13:58]OFD Sender: No OFD packet to send [07:14:03]OFD Sender: No OFD packet to send [07:14:08]OFD Sender: No OFD packet to send [07:14:13]OFD Sender: No OFD packet to send [07:14:18]OFD Sender: No OFD packet to send [07:14:23]OFD Sender: No OFD packet to send [07:14:28]OFD Sender: No OFD packet to send [07:14:33]OFD Sender: No OFD packet to send [07:14:38]OFD Sender: No OFD packet to send [07:14:43]OFD Sender: No OFD packet to send [07:14:48]OFD Sender: No OFD packet to send [07:14:53]OFD Sender: No OFD packet to send [07:14:58]OFD Sender: No OFD packet to send [07:15:03]OFD Sender: No OFD packet to send [07:15:08]OFD Sender: No OFD packet to send [07:15:13]OFD Sender: No OFD packet to send [07:15:18]OFD Sender: No OFD packet to send [07:15:23]OFD Sender: No OFD packet to send [07:15:28]OFD Sender: No OFD packet to send [07:15:33]OFD Sender: No OFD packet to send [07:15:38]OFD Sender: No OFD packet to send [07:15:43]OFD Sender: No OFD packet to send [07:15:48]OFD Sender: No OFD packet to send [07:15:53]OFD Sender: No OFD packet to send [07:15:58]OFD Sender: No OFD packet to send [07:16:03]OFD Sender: No OFD packet to send [07:16:08]OFD Sender: No OFD packet to send [07:16:13]OFD Sender: No OFD packet to send [07:16:18]OFD Sender: No OFD packet to send [07:16:23]OFD Sender: No OFD packet to send [07:16:28]OFD Sender: No OFD packet to send [07:16:33]OFD Sender: No OFD packet to send [07:16:38]OFD Sender: No OFD packet to send [07:16:43]OFD Sender: No OFD packet to send [07:16:48]OFD Sender: No OFD packet to send [07:16:53]OFD Sender: No OFD packet to send [07:16:58]OFD Sender: No OFD packet to send [07:17:03]OFD Sender: No OFD packet to send [07:17:08]OFD Sender: No OFD packet to send [07:17:13]OFD Sender: No OFD packet to send [07:17:18]OFD Sender: No OFD packet to send [07:17:23]OFD Sender: No OFD packet to send [07:17:28]OFD Sender: No OFD packet to send [07:17:33]OFD Sender: No OFD packet to send [07:17:39]OFD Sender: No OFD packet to send [07:17:44]OFD Sender: No OFD packet to send [07:17:49]OFD Sender: No OFD packet to send [07:17:54]OFD Sender: No OFD packet to send [07:17:59]OFD Sender: No OFD packet to send [07:18:04]OFD Sender: No OFD packet to send [07:18:09]OFD Sender: No OFD packet to send [07:18:14]OFD Sender: No OFD packet to send [07:18:19]OFD Sender: No OFD packet to send [07:18:24]OFD Sender: No OFD packet to send [07:18:29]OFD Sender: No OFD packet to send [07:18:34]OFD Sender: No OFD packet to send [07:18:39]OFD Sender: No OFD packet to send [07:18:44]OFD Sender: No OFD packet to send [07:18:49]OFD Sender: No OFD packet to send [07:18:54]OFD Sender: No OFD packet to send [07:18:59]OFD Sender: No OFD packet to send [07:19:04]OFD Sender: No OFD packet to send [07:19:09]OFD Sender: No OFD packet to send [07:19:14]OFD Sender: No OFD packet to send [07:19:19]OFD Sender: No OFD packet to send [07:19:24]OFD Sender: No OFD packet to send [07:19:29]OFD Sender: No OFD packet to send [07:19:34]OFD Sender: No OFD packet to send [07:19:39]OFD Sender: No OFD packet to send [07:19:44]OFD Sender: No OFD packet to send [07:19:49]OFD Sender: No OFD packet to send [07:19:54]OFD Sender: No OFD packet to send [07:19:59]OFD Sender: No OFD packet to send [07:20:04]OFD Sender: No OFD packet to send [07:20:09]OFD Sender: No OFD packet to send [07:20:14]OFD Sender: No OFD packet to send [07:20:19]OFD Sender: No OFD packet to send [07:20:24]OFD Sender: No OFD packet to send [07:20:29]OFD Sender: No OFD packet to send [07:20:34]OFD Sender: No OFD packet to send [07:20:39]OFD Sender: No OFD packet to send [07:20:44]OFD Sender: No OFD packet to send [07:20:49]OFD Sender: No OFD packet to send [07:20:54]OFD Sender: No OFD packet to send [07:20:59]OFD Sender: No OFD packet to send [07:21:04]OFD Sender: No OFD packet to send [07:21:09]OFD Sender: No OFD packet to send [07:21:14]OFD Sender: No OFD packet to send [07:21:19]OFD Sender: No OFD packet to send [07:21:24]OFD Sender: No OFD packet to send [07:21:29]OFD Sender: No OFD packet to send [07:21:34]OFD Sender: No OFD packet to send [07:21:39]OFD Sender: No OFD packet to send [07:21:44]OFD Sender: No OFD packet to send [07:21:49]OFD Sender: No OFD packet to send [07:21:54]OFD Sender: No OFD packet to send [07:21:59]OFD Sender: No OFD packet to send [07:22:04]OFD Sender: No OFD packet to send [07:22:09]OFD Sender: No OFD packet to send [07:22:14]OFD Sender: No OFD packet to send [07:22:19]OFD Sender: No OFD packet to send [07:22:24]OFD Sender: No OFD packet to send [07:22:29]OFD Sender: No OFD packet to send [07:22:34]OFD Sender: No OFD packet to send [07:22:39]OFD Sender: No OFD packet to send [07:22:44]OFD Sender: No OFD packet to send [07:22:49]OFD Sender: No OFD packet to send [07:22:54]OFD Sender: No OFD packet to send [07:22:59]OFD Sender: No OFD packet to send [07:23:04]OFD Sender: No OFD packet to send [07:23:09]OFD Sender: No OFD packet to send [07:23:14]OFD Sender: No OFD packet to send [07:23:19]OFD Sender: No OFD packet to send [07:23:24]OFD Sender: No OFD packet to send [07:23:29]OFD Sender: No OFD packet to send [07:23:34]OFD Sender: No OFD packet to send [07:23:39]OFD Sender: No OFD packet to send [07:23:44]OFD Sender: No OFD packet to send [07:23:49]OFD Sender: No OFD packet to send [07:23:54]OFD Sender: No OFD packet to send [07:23:59]OFD Sender: No OFD packet to send [07:24:04]OFD Sender: No OFD packet to send [07:24:09]OFD Sender: No OFD packet to send [07:24:14]OFD Sender: No OFD packet to send [07:24:19]OFD Sender: No OFD packet to send [07:24:24]OFD Sender: No OFD packet to send [07:24:29]OFD Sender: No OFD packet to send [07:24:34]OFD Sender: No OFD packet to send [07:24:39]OFD Sender: No OFD packet to send [07:24:44]OFD Sender: No OFD packet to send [07:24:49]OFD Sender: No OFD packet to send [07:24:54]OFD Sender: No OFD packet to send [07:24:59]OFD Sender: No OFD packet to send [07:25:04]OFD Sender: No OFD packet to send [07:25:09]OFD Sender: No OFD packet to send [07:25:14]OFD Sender: No OFD packet to send [07:25:19]OFD Sender: No OFD packet to send [07:25:24]OFD Sender: No OFD packet to send [07:25:29]OFD Sender: No OFD packet to send [07:25:34]OFD Sender: No OFD packet to send [07:25:39]OFD Sender: No OFD packet to send [07:25:44]OFD Sender: No OFD packet to send [07:25:49]OFD Sender: No OFD packet to send [07:25:54]OFD Sender: No OFD packet to send [07:25:59]OFD Sender: No OFD packet to send [07:26:04]OFD Sender: No OFD packet to send [07:26:09]OFD Sender: No OFD packet to send [07:26:14]OFD Sender: No OFD packet to send [07:26:19]OFD Sender: No OFD packet to send [07:26:24]OFD Sender: No OFD packet to send [07:26:29]OFD Sender: No OFD packet to send [07:26:34]OFD Sender: No OFD packet to send [07:26:39]OFD Sender: No OFD packet to send [07:26:44]OFD Sender: No OFD packet to send [07:26:49]OFD Sender: No OFD packet to send [07:26:54]OFD Sender: No OFD packet to send [07:26:59]OFD Sender: No OFD packet to send [07:27:04]OFD Sender: No OFD packet to send [07:27:09]OFD Sender: No OFD packet to send [07:27:14]OFD Sender: No OFD packet to send [07:27:19]OFD Sender: No OFD packet to send [07:27:24]OFD Sender: No OFD packet to send [07:27:29]OFD Sender: No OFD packet to send [07:27:34]OFD Sender: No OFD packet to send [07:27:39]OFD Sender: No OFD packet to send [07:27:44]OFD Sender: No OFD packet to send [07:27:49]OFD Sender: No OFD packet to send [07:27:54]OFD Sender: No OFD packet to send [07:27:59]OFD Sender: No OFD packet to send [07:28:04]OFD Sender: No OFD packet to send [07:28:09]OFD Sender: No OFD packet to send [07:28:14]OFD Sender: No OFD packet to send [07:28:19]OFD Sender: No OFD packet to send [07:28:24]OFD Sender: No OFD packet to send [07:28:29]OFD Sender: No OFD packet to send [07:28:34]OFD Sender: No OFD packet to send [07:28:39]OFD Sender: No OFD packet to send [07:28:44]OFD Sender: No OFD packet to send [07:28:49]OFD Sender: No OFD packet to send [07:28:54]OFD Sender: No OFD packet to send [07:28:59]OFD Sender: No OFD packet to send [07:29:04]OFD Sender: No OFD packet to send [07:29:09]OFD Sender: No OFD packet to send [07:29:14]OFD Sender: No OFD packet to send [07:29:19]OFD Sender: No OFD packet to send [07:29:24]OFD Sender: No OFD packet to send [07:29:29]OFD Sender: No OFD packet to send [07:29:34]OFD Sender: No OFD packet to send [07:29:39]OFD Sender: No OFD packet to send [07:29:44]OFD Sender: No OFD packet to send [07:29:49]OFD Sender: No OFD packet to send [07:29:54]OFD Sender: No OFD packet to send [07:29:59]OFD Sender: No OFD packet to send [07:30:04]OFD Sender: No OFD packet to send [07:30:09]OFD Sender: No OFD packet to send [07:30:14]OFD Sender: No OFD packet to send [07:30:19]OFD Sender: No OFD packet to send [07:30:24]OFD Sender: No OFD packet to send [07:30:29]OFD Sender: No OFD packet to send [07:30:34]OFD Sender: No OFD packet to send [07:30:39]OFD Sender: No OFD packet to send [07:30:44]OFD Sender: No OFD packet to send [07:30:49]OFD Sender: No OFD packet to send [07:30:54]OFD Sender: No OFD packet to send [07:30:59]OFD Sender: No OFD packet to send [07:31:04]OFD Sender: No OFD packet to send [07:31:09]OFD Sender: No OFD packet to send [07:31:14]OFD Sender: No OFD packet to send [07:31:19]OFD Sender: No OFD packet to send [07:31:24]OFD Sender: No OFD packet to send [07:31:29]OFD Sender: No OFD packet to send [07:31:34]OFD Sender: No OFD packet to send [07:31:39]OFD Sender: No OFD packet to send [07:31:44]OFD Sender: No OFD packet to send [07:31:49]OFD Sender: No OFD packet to send [07:31:54]OFD Sender: No OFD packet to send [07:31:59]OFD Sender: No OFD packet to send [07:32:04]OFD Sender: No OFD packet to send [07:32:09]OFD Sender: No OFD packet to send [07:32:14]OFD Sender: No OFD packet to send [07:32:19]OFD Sender: No OFD packet to send [07:32:24]OFD Sender: No OFD packet to send [07:32:29]OFD Sender: No OFD packet to send [07:32:34]OFD Sender: No OFD packet to send [07:32:39]OFD Sender: No OFD packet to send [07:32:44]OFD Sender: No OFD packet to send [07:32:49]OFD Sender: No OFD packet to send [07:32:54]OFD Sender: No OFD packet to send [07:32:59]OFD Sender: No OFD packet to send [07:33:04]OFD Sender: No OFD packet to send [07:33:09]OFD Sender: No OFD packet to send [07:33:14]OFD Sender: No OFD packet to send [07:33:19]OFD Sender: No OFD packet to send [07:33:24]OFD Sender: No OFD packet to send [07:33:29]OFD Sender: No OFD packet to send [07:33:34]OFD Sender: No OFD packet to send [07:33:39]OFD Sender: No OFD packet to send [07:33:44]OFD Sender: No OFD packet to send [07:33:49]OFD Sender: No OFD packet to send [07:33:54]OFD Sender: No OFD packet to send [07:33:59]OFD Sender: No OFD packet to send [07:34:04]OFD Sender: No OFD packet to send [07:34:09]OFD Sender: No OFD packet to send [07:34:14]OFD Sender: No OFD packet to send [07:34:19]OFD Sender: No OFD packet to send [07:34:24]OFD Sender: No OFD packet to send [07:34:29]OFD Sender: No OFD packet to send [07:34:34]OFD Sender: No OFD packet to send [07:34:39]OFD Sender: No OFD packet to send [07:34:44]OFD Sender: No OFD packet to send [07:34:49]OFD Sender: No OFD packet to send [07:34:54]OFD Sender: No OFD packet to send [07:34:59]OFD Sender: No OFD packet to send [07:35:05]OFD Sender: No OFD packet to send [07:35:10]OFD Sender: No OFD packet to send [07:35:15]OFD Sender: No OFD packet to send [07:35:20]OFD Sender: No OFD packet to send [07:35:25]OFD Sender: No OFD packet to send [07:35:30]OFD Sender: No OFD packet to send [07:35:35]OFD Sender: No OFD packet to send [07:35:40]OFD Sender: No OFD packet to send [07:35:45]OFD Sender: No OFD packet to send [07:35:50]OFD Sender: No OFD packet to send [07:35:55]OFD Sender: No OFD packet to send [07:36:00]OFD Sender: No OFD packet to send [07:36:05]OFD Sender: No OFD packet to send [07:36:10]OFD Sender: No OFD packet to send [07:36:15]OFD Sender: No OFD packet to send [07:36:20]OFD Sender: No OFD packet to send [07:36:25]OFD Sender: No OFD packet to send [07:36:30]OFD Sender: No OFD packet to send [07:36:35]OFD Sender: No OFD packet to send [07:36:40]OFD Sender: No OFD packet to send [07:36:45]OFD Sender: No OFD packet to send [07:36:50]OFD Sender: No OFD packet to send [07:36:55]OFD Sender: No OFD packet to send [07:37:00]OFD Sender: No OFD packet to send [07:37:05]OFD Sender: No OFD packet to send [07:37:10]OFD Sender: No OFD packet to send [07:37:15]OFD Sender: No OFD packet to send [07:37:20]OFD Sender: No OFD packet to send [07:37:25]OFD Sender: No OFD packet to send [07:37:30]OFD Sender: No OFD packet to send [07:37:35]OFD Sender: No OFD packet to send [07:37:40]OFD Sender: No OFD packet to send [07:37:45]OFD Sender: No OFD packet to send [07:37:50]OFD Sender: No OFD packet to send [07:37:55]OFD Sender: No OFD packet to send [07:38:00]OFD Sender: No OFD packet to send [07:38:05]OFD Sender: No OFD packet to send [07:38:10]OFD Sender: No OFD packet to send [07:38:15]OFD Sender: No OFD packet to send [07:38:20]OFD Sender: No OFD packet to send [07:38:25]OFD Sender: No OFD packet to send [07:38:30]OFD Sender: No OFD packet to send [07:38:35]OFD Sender: No OFD packet to send [07:38:40]OFD Sender: No OFD packet to send [07:38:45]OFD Sender: No OFD packet to send [07:38:50]OFD Sender: No OFD packet to send [07:38:55]OFD Sender: No OFD packet to send [07:39:00]OFD Sender: No OFD packet to send [07:39:05]OFD Sender: No OFD packet to send [07:39:10]OFD Sender: No OFD packet to send [07:39:15]OFD Sender: No OFD packet to send [07:39:20]OFD Sender: No OFD packet to send [07:39:25]OFD Sender: No OFD packet to send [07:39:30]OFD Sender: No OFD packet to send [07:39:35]OFD Sender: No OFD packet to send [07:39:40]OFD Sender: No OFD packet to send [07:39:45]OFD Sender: No OFD packet to send [07:39:50]OFD Sender: No OFD packet to send [07:39:55]OFD Sender: No OFD packet to send [07:40:00]OFD Sender: No OFD packet to send [07:40:05]OFD Sender: No OFD packet to send [07:40:10]OFD Sender: No OFD packet to send [07:40:15]OFD Sender: No OFD packet to send [07:40:20]OFD Sender: No OFD packet to send [07:40:25]OFD Sender: No OFD packet to send [07:40:30]OFD Sender: No OFD packet to send [07:40:35]OFD Sender: No OFD packet to send [07:40:40]OFD Sender: No OFD packet to send [07:40:45]OFD Sender: No OFD packet to send [07:40:50]OFD Sender: No OFD packet to send [07:40:55]OFD Sender: No OFD packet to send [07:41:00]OFD Sender: No OFD packet to send [07:41:05]OFD Sender: No OFD packet to send [07:41:10]OFD Sender: No OFD packet to send [07:41:15]OFD Sender: No OFD packet to send [07:41:20]OFD Sender: No OFD packet to send [07:41:25]OFD Sender: No OFD packet to send [07:41:30]OFD Sender: No OFD packet to send [07:41:35]OFD Sender: No OFD packet to send [07:41:40]OFD Sender: No OFD packet to send [07:41:45]OFD Sender: No OFD packet to send [07:41:50]OFD Sender: No OFD packet to send [07:41:55]OFD Sender: No OFD packet to send [07:42:00]OFD Sender: No OFD packet to send [07:42:05]OFD Sender: No OFD packet to send [07:42:10]OFD Sender: No OFD packet to send [07:42:15]OFD Sender: No OFD packet to send [07:42:20]OFD Sender: No OFD packet to send [07:42:25]OFD Sender: No OFD packet to send [07:42:30]OFD Sender: No OFD packet to send [07:42:35]OFD Sender: No OFD packet to send [07:42:40]OFD Sender: No OFD packet to send [07:42:42]accept exits with 8 [07:42:42]New connection [07:42:42]New thread 3066658148 created [07:42:42]Thread 3066801508 joined [07:42:42]Waiting for new connection... [07:42:42] Sock 8.Parse request [07:42:42]Sock 8.Check first char [07:42:42]Sock 8.First char is OK [07:42:42]request: POST /json_proto HTTP/1.0 [07:42:42]Method: POST [07:42:42]URL: /json_proto [07:42:42]Method is POST - this is cgi request [07:42:42]url: /json_proto [07:42:42]query_string will be loaded in cgi processing [07:42:42]execute_cgi json_proto POST (null) [07:42:42]execute_cgi path=json_proto method=POST [07:42:42]POST find Content-Length [07:42:42]Host: 172.17.57.71:8080 [07:42:42]Content-Length: 630 [07:42:42]Content-Type: application/json [07:42:42] [07:42:42]POST finish read [07:42:42]Found Content-Length = 630 [07:42:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127463", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:42]execute_script... [07:42:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127463", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:42]POST & json_proto [07:42:42]process_json_proto [07:42:42]json parsed OK: [07:42:42]protocol is kg_v1.0 [07:42:42]action value=close_receipt [07:42:42]process_action close_receipt [07:42:42]cmd_close_receipt [07:42:42]MH_GetDate [07:42:42]Write to MH i2c: F0 00 00 32 43 64 [07:42:42]Write i2c OK [07:42:42]MH_I2C_Read... [07:42:42]Read from MH i2c: F0 [07:42:42]MH_I2C_Read... [07:42:42]Read from MH i2c: F0 09 00 [07:42:42]MH_I2C_Read... [07:42:42]Read from MH i2c: F0 09 00 32 43 00 F9 8F E6 66 33 3A A4 66 B8 [07:42:42]GetLastDocTimeStamp 1726374652 [07:42:42]current date 1726386169 [07:42:42]FM_GetShiftState [07:42:42]SAM_PROTO_GetShiftState [07:42:42]wFMCommunicate request_size=4 [07:42:42]MH_SAM_APDU [07:42:42]CAPDU: 80 13 01 00 [07:42:42]Write to MH i2c: E2 08 00 33 43 80 13 01 00 00 00 00 00 F3 [07:42:42]Write i2c OK [07:42:42]MH_I2C_Read... [07:42:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:42]Read from MH i2c: E2 [07:42:42]MH_I2C_Read... [07:42:42]Read from MH i2c: E2 0E 00 [07:42:42]MH_I2C_Read... [07:42:42]Read from MH i2c: E2 0E 00 33 43 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 75 [07:42:42]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [07:42:42]wFMCommunicate OK [07:42:42]SAM_PROTO_GetShiftState done [07:42:42]FM_GetShiftState done [07:42:42]opened in 1726359809 [07:42:42]opened+sec_in_day 1726446209 [07:42:42]quantity*price = 5000 [07:42:42]sum+1 = 5001 [07:42:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 18 15.09.2024 07:42 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92570 ФПД: 123776026214532 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T074249&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92570&fm=123776026214532&tin=02508201610067®Number=0000000000091423&sum=5000 0 [07:42:43]StoreToDocumentArchive [07:42:43]shift 507 fd 92570 [07:42:43]save to /storage/0507/doc_00092570 [07:42:43]save last doc name /storage/0507/doc_00092570 to /storage/kkm_last_doc_name [07:42:43]save OK [07:42:43]Clear old archive folders... [07:42:43]ProcessDocumentItem done err = 0, tmpTLVsize=269 [07:42:43]tlvbuf is 01041350 [07:42:43]SAM_PROTO_ClearQueue [07:42:43]wFMCommunicate request_size=4 [07:42:43]MH_SAM_APDU [07:42:43]CAPDU: 80 09 00 00 [07:42:43]Write to MH i2c: E2 08 00 40 43 80 09 00 00 00 00 00 00 F5 [07:42:43]Write i2c OK [07:42:43]MH_I2C_Read... [07:42:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:42:43]Read from MH i2c: E2 [07:42:43]MH_I2C_Read... [07:42:43]Read from MH i2c: E2 03 00 [07:42:43]MH_I2C_Read... [07:42:43]Read from MH i2c: E2 03 00 40 43 00 90 00 F7 [07:42:43]RAPDU: 90 00 [07:42:43]wFMCommunicate OK [07:42:43]SAM_PROTO_ClearQueue done [07:42:43]KKMCreateOFDPacket [07:42:43]OFDProtocolAddRootSTLVToBuf [07:42:43]FM_MakeSignedData [07:42:43]FM_MakeSignedData [07:42:43]SAM_PROTO_SignData [07:42:43]wFMCommunicate request_size=4 [07:42:43]MH_SAM_APDU [07:42:43]CAPDU: 80 0D 01 02 [07:42:43]Write to MH i2c: E2 08 00 41 43 80 0D 01 02 00 00 00 00 FD [07:42:43]Write i2c OK [07:42:43]MH_I2C_Read... [07:42:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:42:43]Read from MH i2c: E2 [07:42:43]MH_I2C_Read... [07:42:43]Read from MH i2c: E2 03 00 [07:42:43]MH_I2C_Read... [07:42:43]Read from MH i2c: E2 03 00 41 43 00 90 00 F8 [07:42:43]RAPDU: 90 00 [07:42:43]wFMCommunicate OK [07:42:43]wFMCommunicate request_size=255 [07:42:43]MH_SAM_APDU [07:42:43]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 F9 8F E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [07:42:43]Write to MH i2c: E2 02 01 42 43 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 F9 8F E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 F0 [07:42:43]Write i2c OK [07:42:43]MH_I2C_Read... [07:42:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:43]Read from MH i2c: E2 [07:42:43]MH_I2C_Read... [07:42:43]Read from MH i2c: E2 03 00 [07:42:43]MH_I2C_Read... [07:42:43]Read from MH i2c: E2 03 00 42 43 00 90 00 F9 [07:42:43]RAPDU: 90 00 [07:42:43]wFMCommunicate OK [07:42:43]wFMCommunicate request_size=28 [07:42:43]MH_SAM_APDU [07:42:43]CAPDU: 80 0D 02 02 17 37 34 36 39 32 10 04 04 00 9A 69 01 00 35 04 06 00 70 92 DA 13 00 84 [07:42:43]Write to MH i2c: E2 1F 00 43 43 80 0D 02 02 17 00 37 34 36 39 32 10 04 04 00 9A 69 01 00 35 04 06 00 70 92 DA 13 00 84 00 00 08 [07:42:43]Write i2c OK [07:42:43]MH_I2C_Read... [07:42:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:44]Read from MH i2c: E2 [07:42:44]MH_I2C_Read... [07:42:44]Read from MH i2c: E2 03 00 [07:42:44]MH_I2C_Read... [07:42:44]Read from MH i2c: E2 03 00 43 43 00 90 00 FA [07:42:44]RAPDU: 90 00 [07:42:44]wFMCommunicate OK [07:42:44]wFMCommunicate request_size=4 [07:42:44]MH_SAM_APDU [07:42:44]CAPDU: 80 0D 03 02 [07:42:44]Write to MH i2c: E2 08 00 44 43 80 0D 03 02 00 00 00 00 02 [07:42:44]Write i2c OK [07:42:44]MH_I2C_Read... [07:42:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:42:44]Read from MH i2c: E2 [07:42:44]MH_I2C_Read... [07:42:44]Read from MH i2c: E2 0B 00 [07:42:44]MH_I2C_Read... [07:42:44]Read from MH i2c: E2 0B 00 44 43 00 E7 AE D7 4D 11 BC 8F 4E 90 00 66 [07:42:44]RAPDU: E7 AE D7 4D 11 BC 8F 4E 90 00 [07:42:44]wFMCommunicate OK [07:42:44]SAM_PROTO_SignData done [07:42:44]FM_MakeSignedData done [07:42:44]CreateOFDProtocolMessage [07:42:44]wFMCommunicate request_size=4 [07:42:44]MH_SAM_APDU [07:42:44]CAPDU: 80 11 00 00 [07:42:44]Write to MH i2c: E2 08 00 45 43 80 11 00 00 00 00 00 00 02 [07:42:44]Write i2c OK [07:42:44]MH_I2C_Read... [07:42:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:44]Read from MH i2c: E2 [07:42:44]MH_I2C_Read... [07:42:44]Read from MH i2c: E2 17 00 [07:42:44]MH_I2C_Read... [07:42:44]Read from MH i2c: E2 17 00 45 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 59 [07:42:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:42:44]wFMCommunicate OK [07:42:44]CreateOFDProtocolMessage done [07:42:44]OFDSenderStorePacket 92570 [07:42:44]StoreOFDPacket docnum=92570 [07:42:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 21 01 00 00 F8 79 19 01 A9 E9 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 F9 8F E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9A 69 01 00 35 04 06 00 70 92 DA 13 00 84 E7 AE D7 4D 11 BC 8F 4E [07:42:44]CheckFolder [07:42:44]dirname=/storage/ofd_packets [07:42:44]CheckFolder done [07:42:44]ProducePacketName [07:42:44]name=ofd_packets/00092570 [07:42:44]NVStorageSaveData ofd_packets/00092570 [07:42:44]File name is /storage/ofd_packets/00092570 [07:42:44]Write 319 bytes [07:42:44]NVStorageSaveData done [07:42:44]OFDSenderStorePacket done [07:42:44]KKMCreateOFDPacket done [07:42:44]NVStorageSaveData kkm_last_timestamp [07:42:44]File name is /storage/kkm_last_timestamp [07:42:44]Write 4 bytes [07:42:44]NVStorageSaveData done [07:42:44]ExternCall_PrintAddStr [07:42:44]wPrintStart [07:42:44]Write to MH i2c: 01 00 00 46 43 89 [07:42:44]Write i2c OK [07:42:44]MH_I2C_Read... [07:42:44]Read from MH i2c: 01 [07:42:44]MH_I2C_Read... [07:42:44]Read from MH i2c: 01 07 00 [07:42:44]MH_I2C_Read... [07:42:44]Read from MH i2c: 01 07 00 46 43 00 00 00 00 00 FF 0F 9E [07:42:44]RasterBufferAndPrint [07:42:44]line Счет N : (3)127463 [07:42:44]line ИНН: 02508201610067 [07:42:44]line Контрольно-Кассовый Чек [07:42:44]line ПРОДАЖА [07:42:44]line Товар: 4700000160358 [07:42:44]line Вода Легенда 1л [07:42:44]line 1.000 * 50.00 [07:42:44]line = 50.00 [07:42:44]line НДС 12% НСП 1% [07:42:44]line > о реализуемом товаре [07:42:44]line ИТОГО: 50.00 [07:42:44]line НСП 1% : 0.44 [07:42:44]line НДС 12% : 5.31 [07:42:44]line Наличными: 50.00 [07:42:44]line Безнал.: 0.00 [07:42:44]line Место: АЗС № 5 "Партнер Нефть" [07:42:44]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [07:42:44]line СНО: Общий режим [07:42:44]line Чек 18 15.09.2024 07:42 [07:42:44]line Смена: 507 ФФД: 1.0 [07:42:44]line ЗНМ: 03000000022 [07:42:44]line РНМ: 0000000000091423 [07:42:44]line Версия ККМ: 001 [07:42:44]line ФМ: 0000000000874692 [07:42:44]line ФД: 92570 [07:42:44]line ФПД: 123776026214532 [07:42:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T074249&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92570&fm=123776026214532&tin=02508201610067®Number=0000000000091423&sum=5000 [07:42:44]line 0 [07:42:44]written 0, free lines is 4095 [07:42:44]OFD Sender: Processing packet 92570 [packets to send 63, broken 62] [07:42:44]ProducePacketName [07:42:44]name=ofd_packets/00092570 [07:42:44]OFD Sender: To server: pG, [07:42:44]CommunicateWithHost lk.salyk.kg:30040 [07:42:44]ConnectInit lk.salyk.kg [07:42:44]Connected sock=10 [07:42:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 21 01 00 00 F8 79 19 01 A9 E9 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 F9 8F E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9A 69 01 00 35 04 06 00 70 92 DA 13 00 84 E7 AE D7 4D 11 BC 8F 4E [07:42:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 36 30 47 00 E6 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9A 69 01 00 F4 03 04 00 72 38 E6 66 B6 04 01 00 00 13 8A 59 3E 5C 2E 83 E9 [07:42:44]CommunicateWithHost err = 0 [07:42:44]CheckOFDResponse [07:42:44]1017 (14) - 77093643461234 [07:42:44]1041 (16) - 0000000000874692 [07:42:44]1040 (4) - 92570 [07:42:44]1012 (4) - 15.09.2024 01:29 [07:42:44]1206 (1) - 0 [07:42:44]OFD Sender: Remove packet 92570 [07:42:44]ProducePacketName [07:42:44]name=ofd_packets/00092570 [07:42:44]NVStorageDeleteData [07:42:44]Write to MH i2c: 01 00 00 6E 43 B1 [07:42:44]Write i2c OK [07:42:44]MH_I2C_Read... [07:42:44]Read from MH i2c: 01 [07:42:44]MH_I2C_Read... [07:42:44]Read from MH i2c: 01 07 00 [07:42:44]MH_I2C_Read... [07:42:44]Read from MH i2c: 01 07 00 6E 43 00 00 00 00 00 33 0D F8 [07:42:44]RasterBufferAndPrint [07:42:44]line [07:42:44]line [07:42:44]line [07:42:44]line [07:42:44]line [07:42:44]written 0, free lines is 3388 [07:42:44]MH_Cut [07:42:44]Write to MH i2c: D1 01 00 75 43 01 8A [07:42:44]Write i2c OK [07:42:44]MH_I2C_Read... [07:42:44]Read from MH i2c: D1 [07:42:44]MH_I2C_Read... [07:42:44]Read from MH i2c: D1 01 00 [07:42:44]MH_I2C_Read... [07:42:44]Read from MH i2c: D1 01 00 75 43 00 89 [07:42:44]Write to MH i2c: 01 00 00 76 43 B9 [07:42:44]Write i2c OK [07:42:44]MH_I2C_Read... [07:42:44]OFD Sender: No OFD packet to send [07:42:45]*** Cut start [07:42:45]*** Purtial cut [07:42:45]*** Stage 1: CUTSNS_PIN = 1 [07:42:47]Read from MH i2c: 01 [07:42:47]MH_I2C_Read... [07:42:47]*** Stop cut motor [07:42:47]*** Cut end [07:42:47]Read from MH i2c: 01 07 00 [07:42:47]MH_I2C_Read... [07:42:47]Read from MH i2c: 01 07 00 76 43 00 00 00 00 00 FF 0F CE [07:42:47]process_action close_receipt done [07:42:47]requested_data is exist [07:42:47]produce_requested_data [07:42:47]requested_item fm.sn is exist - process it [07:42:47]wFMCommunicate request_size=4 [07:42:47]MH_SAM_APDU [07:42:47]CAPDU: 80 11 00 00 [07:42:47]Write to MH i2c: E2 08 00 77 43 80 11 00 00 00 00 00 00 34 [07:42:47]Write i2c OK [07:42:47]MH_I2C_Read... [07:42:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:47]Read from MH i2c: E2 [07:42:47]MH_I2C_Read... [07:42:47]Read from MH i2c: E2 17 00 [07:42:47]MH_I2C_Read... [07:42:47]Read from MH i2c: E2 17 00 77 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 8B [07:42:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:42:47]wFMCommunicate OK [07:42:47]requested_item fd.num is exist - process it [07:42:47]SAM_PROTO_GetFieldsCounters [07:42:47]wFMCommunicate request_size=4 [07:42:47]MH_SAM_APDU [07:42:47]CAPDU: 80 13 00 00 [07:42:47]Write to MH i2c: E2 08 00 78 43 80 13 00 00 00 00 00 00 37 [07:42:47]Write i2c OK [07:42:47]MH_I2C_Read... [07:42:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:42:47]Read from MH i2c: E2 [07:42:47]MH_I2C_Read... [07:42:47]Read from MH i2c: E2 62 00 [07:42:47]MH_I2C_Read... [07:42:47]Read from MH i2c: E2 62 00 78 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 9A 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [07:42:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 9A 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:42:47]wFMCommunicate OK [07:42:47]SAM_PROTO_GetFieldsCounters done [07:42:47]requested_item shift.num is exist - process it [07:42:47]requested_item shift.opened is exist - process it [07:42:47]req_shift_opened [07:42:47]FM_GetShiftState [07:42:47]SAM_PROTO_GetShiftState [07:42:47]wFMCommunicate request_size=4 [07:42:47]MH_SAM_APDU [07:42:47]CAPDU: 80 13 01 00 [07:42:47]Write to MH i2c: E2 08 00 79 43 80 13 01 00 00 00 00 00 39 [07:42:47]Write i2c OK [07:42:47]MH_I2C_Read... [07:42:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:47]Read from MH i2c: E2 [07:42:47]MH_I2C_Read... [07:42:47]Read from MH i2c: E2 0E 00 [07:42:47]MH_I2C_Read... [07:42:47]Read from MH i2c: E2 0E 00 79 43 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 BB [07:42:47]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [07:42:47]wFMCommunicate OK [07:42:47]SAM_PROTO_GetShiftState done [07:42:47]FM_GetShiftState done [07:42:47]req_shift_opened done [07:42:47]requested_item shift.open_date is exist - process it [07:42:47]req_shift_open_date [07:42:47]req_shift_open_date done [07:42:47]produce_requested_data done [07:42:47]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92570,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [07:42:47]process_action_free close_receipt [07:42:47]json_value_free [07:42:47]json_value_free done [07:42:47]process_json_proto returns [07:42:47]Send response to host [07:42:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92570,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [07:42:47]free response buf [07:42:47]execute_script done [07:42:47]execute_script returns [07:42:47]free content buf [07:42:47]Sock 8.Close socket [07:42:47]Sock 8.Thread stoped [07:42:49]OFD Sender: No OFD packet to send [07:42:54]OFD Sender: No OFD packet to send [07:42:59]OFD Sender: No OFD packet to send [07:43:04]OFD Sender: No OFD packet to send [07:43:10]OFD Sender: No OFD packet to send [07:43:15]OFD Sender: No OFD packet to send [07:43:20]OFD Sender: No OFD packet to send [07:43:25]OFD Sender: No OFD packet to send [07:43:30]OFD Sender: No OFD packet to send [07:43:35]OFD Sender: No OFD packet to send [07:43:40]OFD Sender: No OFD packet to send [07:43:45]OFD Sender: No OFD packet to send [07:43:50]OFD Sender: No OFD packet to send [07:43:55]OFD Sender: No OFD packet to send [07:44:00]OFD Sender: No OFD packet to send [07:44:05]OFD Sender: No OFD packet to send [07:44:10]OFD Sender: No OFD packet to send [07:44:15]OFD Sender: No OFD packet to send [07:44:20]OFD Sender: No OFD packet to send [07:44:25]OFD Sender: No OFD packet to send [07:44:30]OFD Sender: No OFD packet to send [07:44:35]OFD Sender: No OFD packet to send [07:44:40]OFD Sender: No OFD packet to send [07:44:45]OFD Sender: No OFD packet to send [07:44:50]OFD Sender: No OFD packet to send [07:44:55]OFD Sender: No OFD packet to send [07:45:00]OFD Sender: No OFD packet to send [07:45:05]OFD Sender: No OFD packet to send [07:45:10]OFD Sender: No OFD packet to send [07:45:15]OFD Sender: No OFD packet to send [07:45:20]OFD Sender: No OFD packet to send [07:45:25]OFD Sender: No OFD packet to send [07:45:30]OFD Sender: No OFD packet to send [07:45:35]OFD Sender: No OFD packet to send [07:45:40]OFD Sender: No OFD packet to send [07:45:45]OFD Sender: No OFD packet to send [07:45:50]OFD Sender: No OFD packet to send [07:45:55]OFD Sender: No OFD packet to send [07:46:00]OFD Sender: No OFD packet to send [07:46:05]OFD Sender: No OFD packet to send [07:46:10]OFD Sender: No OFD packet to send [07:46:15]OFD Sender: No OFD packet to send [07:46:20]OFD Sender: No OFD packet to send [07:46:25]OFD Sender: No OFD packet to send [07:46:30]OFD Sender: No OFD packet to send [07:46:35]OFD Sender: No OFD packet to send [07:46:40]OFD Sender: No OFD packet to send [07:46:45]OFD Sender: No OFD packet to send [07:46:50]OFD Sender: No OFD packet to send [07:46:55]OFD Sender: No OFD packet to send [07:47:00]OFD Sender: No OFD packet to send [07:47:05]OFD Sender: No OFD packet to send [07:47:10]OFD Sender: No OFD packet to send [07:47:15]OFD Sender: No OFD packet to send [07:47:20]OFD Sender: No OFD packet to send [07:47:25]OFD Sender: No OFD packet to send [07:47:30]OFD Sender: No OFD packet to send [07:47:35]OFD Sender: No OFD packet to send [07:47:40]OFD Sender: No OFD packet to send [07:47:45]OFD Sender: No OFD packet to send [07:47:50]OFD Sender: No OFD packet to send [07:47:55]OFD Sender: No OFD packet to send [07:48:00]OFD Sender: No OFD packet to send [07:48:05]OFD Sender: No OFD packet to send [07:48:10]OFD Sender: No OFD packet to send [07:48:15]OFD Sender: No OFD packet to send [07:48:20]OFD Sender: No OFD packet to send [07:48:25]OFD Sender: No OFD packet to send [07:48:30]OFD Sender: No OFD packet to send [07:48:35]OFD Sender: No OFD packet to send [07:48:40]OFD Sender: No OFD packet to send [07:48:45]OFD Sender: No OFD packet to send [07:48:50]OFD Sender: No OFD packet to send [07:48:55]OFD Sender: No OFD packet to send [07:49:00]OFD Sender: No OFD packet to send [07:49:05]OFD Sender: No OFD packet to send [07:49:10]OFD Sender: No OFD packet to send [07:49:15]OFD Sender: No OFD packet to send [07:49:20]OFD Sender: No OFD packet to send [07:49:25]OFD Sender: No OFD packet to send [07:49:30]OFD Sender: No OFD packet to send [07:49:35]OFD Sender: No OFD packet to send [07:49:40]OFD Sender: No OFD packet to send [07:49:45]OFD Sender: No OFD packet to send [07:49:50]OFD Sender: No OFD packet to send [07:49:55]OFD Sender: No OFD packet to send [07:50:00]OFD Sender: No OFD packet to send [07:50:05]OFD Sender: No OFD packet to send [07:50:10]OFD Sender: No OFD packet to send [07:50:15]OFD Sender: No OFD packet to send [07:50:20]OFD Sender: No OFD packet to send [07:50:25]OFD Sender: No OFD packet to send [07:50:30]OFD Sender: No OFD packet to send [07:50:35]OFD Sender: No OFD packet to send [07:50:40]OFD Sender: No OFD packet to send [07:50:45]OFD Sender: No OFD packet to send [07:50:50]OFD Sender: No OFD packet to send [07:50:55]OFD Sender: No OFD packet to send [07:51:00]OFD Sender: No OFD packet to send [07:51:05]OFD Sender: No OFD packet to send [07:51:10]OFD Sender: No OFD packet to send [07:51:15]OFD Sender: No OFD packet to send [07:51:20]OFD Sender: No OFD packet to send [07:51:25]OFD Sender: No OFD packet to send [07:51:30]OFD Sender: No OFD packet to send [07:51:35]OFD Sender: No OFD packet to send [07:51:40]OFD Sender: No OFD packet to send [07:51:45]OFD Sender: No OFD packet to send [07:51:50]OFD Sender: No OFD packet to send [07:51:55]OFD Sender: No OFD packet to send [07:52:00]OFD Sender: No OFD packet to send [07:52:05]OFD Sender: No OFD packet to send [07:52:10]OFD Sender: No OFD packet to send [07:52:15]OFD Sender: No OFD packet to send [07:52:20]OFD Sender: No OFD packet to send [07:52:25]OFD Sender: No OFD packet to send [07:52:30]OFD Sender: No OFD packet to send [07:52:35]OFD Sender: No OFD packet to send [07:52:40]OFD Sender: No OFD packet to send [07:52:45]OFD Sender: No OFD packet to send [07:52:50]OFD Sender: No OFD packet to send [07:52:55]OFD Sender: No OFD packet to send [07:53:00]OFD Sender: No OFD packet to send [07:53:05]OFD Sender: No OFD packet to send [07:53:10]OFD Sender: No OFD packet to send [07:53:15]OFD Sender: No OFD packet to send [07:53:20]OFD Sender: No OFD packet to send [07:53:25]OFD Sender: No OFD packet to send [07:53:30]OFD Sender: No OFD packet to send [07:53:35]OFD Sender: No OFD packet to send [07:53:40]OFD Sender: No OFD packet to send [07:53:45]OFD Sender: No OFD packet to send [07:53:50]OFD Sender: No OFD packet to send [07:53:55]OFD Sender: No OFD packet to send [07:54:00]OFD Sender: No OFD packet to send [07:54:05]OFD Sender: No OFD packet to send [07:54:10]OFD Sender: No OFD packet to send [07:54:15]OFD Sender: No OFD packet to send [07:54:20]OFD Sender: No OFD packet to send [07:54:25]OFD Sender: No OFD packet to send [07:54:30]OFD Sender: No OFD packet to send [07:54:35]OFD Sender: No OFD packet to send [07:54:40]OFD Sender: No OFD packet to send [07:54:45]OFD Sender: No OFD packet to send [07:54:50]OFD Sender: No OFD packet to send [07:54:55]OFD Sender: No OFD packet to send [07:55:00]OFD Sender: No OFD packet to send [07:55:05]OFD Sender: No OFD packet to send [07:55:10]OFD Sender: No OFD packet to send [07:55:15]OFD Sender: No OFD packet to send [07:55:20]OFD Sender: No OFD packet to send [07:55:25]OFD Sender: No OFD packet to send [07:55:30]OFD Sender: No OFD packet to send [07:55:35]OFD Sender: No OFD packet to send [07:55:40]OFD Sender: No OFD packet to send [07:55:45]OFD Sender: No OFD packet to send [07:55:50]OFD Sender: No OFD packet to send [07:55:55]OFD Sender: No OFD packet to send [07:56:00]OFD Sender: No OFD packet to send [07:56:05]OFD Sender: No OFD packet to send [07:56:10]OFD Sender: No OFD packet to send [07:56:15]OFD Sender: No OFD packet to send [07:56:20]OFD Sender: No OFD packet to send [07:56:25]OFD Sender: No OFD packet to send [07:56:30]OFD Sender: No OFD packet to send [07:56:35]OFD Sender: No OFD packet to send [07:56:40]OFD Sender: No OFD packet to send [07:56:45]OFD Sender: No OFD packet to send [07:56:50]OFD Sender: No OFD packet to send [07:56:55]OFD Sender: No OFD packet to send [07:57:00]OFD Sender: No OFD packet to send [07:57:05]OFD Sender: No OFD packet to send [07:57:10]OFD Sender: No OFD packet to send [07:57:15]OFD Sender: No OFD packet to send [07:57:20]OFD Sender: No OFD packet to send [07:57:25]OFD Sender: No OFD packet to send [07:57:30]OFD Sender: No OFD packet to send [07:57:35]OFD Sender: No OFD packet to send [07:57:40]OFD Sender: No OFD packet to send [07:57:45]OFD Sender: No OFD packet to send [07:57:50]OFD Sender: No OFD packet to send [07:57:55]OFD Sender: No OFD packet to send [07:58:00]OFD Sender: No OFD packet to send [07:58:05]OFD Sender: No OFD packet to send [07:58:10]OFD Sender: No OFD packet to send [07:58:15]OFD Sender: No OFD packet to send [07:58:20]OFD Sender: No OFD packet to send [07:58:25]OFD Sender: No OFD packet to send [07:58:30]OFD Sender: No OFD packet to send [07:58:35]OFD Sender: No OFD packet to send [07:58:40]OFD Sender: No OFD packet to send [07:58:45]OFD Sender: No OFD packet to send [07:58:50]OFD Sender: No OFD packet to send [07:58:55]OFD Sender: No OFD packet to send [07:59:00]OFD Sender: No OFD packet to send [07:59:05]OFD Sender: No OFD packet to send [07:59:10]OFD Sender: No OFD packet to send [07:59:15]OFD Sender: No OFD packet to send [07:59:20]OFD Sender: No OFD packet to send [07:59:25]OFD Sender: No OFD packet to send [07:59:30]OFD Sender: No OFD packet to send [07:59:35]OFD Sender: No OFD packet to send [07:59:40]OFD Sender: No OFD packet to send [07:59:45]OFD Sender: No OFD packet to send [07:59:50]OFD Sender: No OFD packet to send [07:59:55]OFD Sender: No OFD packet to send [08:00:00]OFD Sender: No OFD packet to send [08:00:05]OFD Sender: No OFD packet to send [08:00:10]OFD Sender: No OFD packet to send [08:00:15]OFD Sender: No OFD packet to send [08:00:20]OFD Sender: No OFD packet to send [08:00:25]OFD Sender: No OFD packet to send [08:00:30]OFD Sender: No OFD packet to send [08:00:36]OFD Sender: No OFD packet to send [08:00:41]OFD Sender: No OFD packet to send [08:00:46]OFD Sender: No OFD packet to send [08:00:51]OFD Sender: No OFD packet to send [08:00:56]OFD Sender: No OFD packet to send [08:01:01]OFD Sender: No OFD packet to send [08:01:06]OFD Sender: No OFD packet to send [08:01:11]OFD Sender: No OFD packet to send [08:01:16]OFD Sender: No OFD packet to send [08:01:21]OFD Sender: No OFD packet to send [08:01:26]OFD Sender: No OFD packet to send [08:01:31]OFD Sender: No OFD packet to send [08:01:36]OFD Sender: No OFD packet to send [08:01:41]OFD Sender: No OFD packet to send [08:01:46]OFD Sender: No OFD packet to send [08:01:51]OFD Sender: No OFD packet to send [08:01:56]OFD Sender: No OFD packet to send [08:02:01]OFD Sender: No OFD packet to send [08:02:06]OFD Sender: No OFD packet to send [08:02:11]OFD Sender: No OFD packet to send [08:02:16]OFD Sender: No OFD packet to send [08:02:21]OFD Sender: No OFD packet to send [08:02:26]OFD Sender: No OFD packet to send [08:02:31]OFD Sender: No OFD packet to send [08:02:36]OFD Sender: No OFD packet to send [08:02:41]OFD Sender: No OFD packet to send [08:02:46]OFD Sender: No OFD packet to send [08:02:51]OFD Sender: No OFD packet to send [08:02:56]OFD Sender: No OFD packet to send [08:03:01]OFD Sender: No OFD packet to send [08:03:06]OFD Sender: No OFD packet to send [08:03:07]accept exits with 9 [08:03:07]New connection [08:03:07]New thread 3066801508 created [08:03:07]Thread 3066658148 joined [08:03:07]Waiting for new connection... [08:03:07] Sock 9.Parse request [08:03:07]Sock 9.Check first char [08:03:07]Sock 9.First char is OK [08:03:07]request: POST /json_proto HTTP/1.0 [08:03:07]Method: POST [08:03:07]URL: /json_proto [08:03:07]Method is POST - this is cgi request [08:03:07]url: /json_proto [08:03:07]query_string will be loaded in cgi processing [08:03:07]execute_cgi json_proto POST (null) [08:03:07]execute_cgi path=json_proto method=POST [08:03:07]POST find Content-Length [08:03:07]Host: 172.17.57.71:8080 [08:03:07]Content-Length: 658 [08:03:07]Content-Type: application/json [08:03:07] [08:03:07]POST finish read [08:03:07]Found Content-Length = 658 [08:03:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127464", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:07]execute_script... [08:03:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127464", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:07]POST & json_proto [08:03:07]process_json_proto [08:03:07]json parsed OK: [08:03:07]protocol is kg_v1.0 [08:03:07]action value=close_receipt [08:03:07]process_action close_receipt [08:03:07]cmd_close_receipt [08:03:07]MH_GetDate [08:03:07]Write to MH i2c: F0 00 00 7A 43 AC [08:03:07]Write i2c OK [08:03:07]MH_I2C_Read... [08:03:07]Read from MH i2c: F0 [08:03:07]MH_I2C_Read... [08:03:07]Read from MH i2c: F0 09 00 [08:03:07]MH_I2C_Read... [08:03:07]Read from MH i2c: F0 09 00 7A 43 00 C2 94 E6 66 33 3A A4 66 CE [08:03:07]GetLastDocTimeStamp 1726386169 [08:03:07]current date 1726387394 [08:03:07]FM_GetShiftState [08:03:07]SAM_PROTO_GetShiftState [08:03:07]wFMCommunicate request_size=4 [08:03:07]MH_SAM_APDU [08:03:07]CAPDU: 80 13 01 00 [08:03:07]Write to MH i2c: E2 08 00 7B 43 80 13 01 00 00 00 00 00 3B [08:03:07]Write i2c OK [08:03:07]MH_I2C_Read... [08:03:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:07]Read from MH i2c: E2 [08:03:07]MH_I2C_Read... [08:03:07]Read from MH i2c: E2 0E 00 [08:03:07]MH_I2C_Read... [08:03:07]Read from MH i2c: E2 0E 00 7B 43 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 BD [08:03:07]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [08:03:07]wFMCommunicate OK [08:03:07]SAM_PROTO_GetShiftState done [08:03:07]FM_GetShiftState done [08:03:07]opened in 1726359809 [08:03:07]opened+sec_in_day 1726446209 [08:03:07]quantity*price = 10500 [08:03:07]sum+1 = 10501 [08:03:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 19 15.09.2024 08:03 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92571 ФПД: 145911584605457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T080314&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92571&fm=145911584605457&tin=02508201610067®Number=0000000000091423&sum=10500 0 [08:03:08]StoreToDocumentArchive [08:03:08]shift 507 fd 92571 [08:03:08]save to /storage/0507/doc_00092571 [08:03:08]save last doc name /storage/0507/doc_00092571 to /storage/kkm_last_doc_name [08:03:08]save OK [08:03:08]Clear old archive folders... [08:03:08]ProcessDocumentItem done err = 0, tmpTLVsize=278 [08:03:08]tlvbuf is 00F9F8E0 [08:03:08]SAM_PROTO_ClearQueue [08:03:08]wFMCommunicate request_size=4 [08:03:08]MH_SAM_APDU [08:03:08]CAPDU: 80 09 00 00 [08:03:08]Write to MH i2c: E2 08 00 88 43 80 09 00 00 00 00 00 00 3D [08:03:08]Write i2c OK [08:03:08]MH_I2C_Read... [08:03:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:03:08]Read from MH i2c: E2 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: E2 03 00 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: E2 03 00 88 43 00 90 00 3F [08:03:08]RAPDU: 90 00 [08:03:08]wFMCommunicate OK [08:03:08]SAM_PROTO_ClearQueue done [08:03:08]KKMCreateOFDPacket [08:03:08]OFDProtocolAddRootSTLVToBuf [08:03:08]FM_MakeSignedData [08:03:08]FM_MakeSignedData [08:03:08]SAM_PROTO_SignData [08:03:08]wFMCommunicate request_size=4 [08:03:08]MH_SAM_APDU [08:03:08]CAPDU: 80 0D 01 02 [08:03:08]Write to MH i2c: E2 08 00 89 43 80 0D 01 02 00 00 00 00 45 [08:03:08]Write i2c OK [08:03:08]MH_I2C_Read... [08:03:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:03:08]Read from MH i2c: E2 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: E2 03 00 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: E2 03 00 89 43 00 90 00 40 [08:03:08]RAPDU: 90 00 [08:03:08]wFMCommunicate OK [08:03:08]wFMCommunicate request_size=255 [08:03:08]MH_SAM_APDU [08:03:08]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 C2 94 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 [08:03:08]Write to MH i2c: E2 02 01 8A 43 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 C2 94 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 00 00 59 [08:03:08]Write i2c OK [08:03:08]MH_I2C_Read... [08:03:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:08]Read from MH i2c: E2 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: E2 03 00 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: E2 03 00 8A 43 00 90 00 41 [08:03:08]RAPDU: 90 00 [08:03:08]wFMCommunicate OK [08:03:08]wFMCommunicate request_size=37 [08:03:08]MH_SAM_APDU [08:03:08]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9B 69 01 00 35 04 06 00 84 B4 B0 2B 45 11 [08:03:08]Write to MH i2c: E2 28 00 8B 43 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9B 69 01 00 35 04 06 00 84 B4 B0 2B 45 11 00 00 11 [08:03:08]Write i2c OK [08:03:08]MH_I2C_Read... [08:03:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:08]Read from MH i2c: E2 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: E2 03 00 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: E2 03 00 8B 43 00 90 00 42 [08:03:08]RAPDU: 90 00 [08:03:08]wFMCommunicate OK [08:03:08]wFMCommunicate request_size=4 [08:03:08]MH_SAM_APDU [08:03:08]CAPDU: 80 0D 03 02 [08:03:08]Write to MH i2c: E2 08 00 8C 43 80 0D 03 02 00 00 00 00 4A [08:03:08]Write i2c OK [08:03:08]MH_I2C_Read... [08:03:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:03:08]Read from MH i2c: E2 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: E2 0B 00 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: E2 0B 00 8C 43 00 07 06 5A B1 A0 FB 49 AD 90 00 F4 [08:03:08]RAPDU: 07 06 5A B1 A0 FB 49 AD 90 00 [08:03:08]wFMCommunicate OK [08:03:08]SAM_PROTO_SignData done [08:03:08]FM_MakeSignedData done [08:03:08]CreateOFDProtocolMessage [08:03:08]wFMCommunicate request_size=4 [08:03:08]MH_SAM_APDU [08:03:08]CAPDU: 80 11 00 00 [08:03:08]Write to MH i2c: E2 08 00 8D 43 80 11 00 00 00 00 00 00 4A [08:03:08]Write i2c OK [08:03:08]MH_I2C_Read... [08:03:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:08]Read from MH i2c: E2 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: E2 17 00 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: E2 17 00 8D 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A1 [08:03:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:03:08]wFMCommunicate OK [08:03:08]CreateOFDProtocolMessage done [08:03:08]OFDSenderStorePacket 92571 [08:03:08]StoreOFDPacket docnum=92571 [08:03:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2A 01 00 00 1B E5 22 01 DA 83 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 C2 94 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9B 69 01 00 35 04 06 00 84 B4 B0 2B 45 11 07 06 5A B1 A0 FB 49 AD [08:03:08]CheckFolder [08:03:08]dirname=/storage/ofd_packets [08:03:08]CheckFolder done [08:03:08]ProducePacketName [08:03:08]name=ofd_packets/00092571 [08:03:08]NVStorageSaveData ofd_packets/00092571 [08:03:08]File name is /storage/ofd_packets/00092571 [08:03:08]Write 328 bytes [08:03:08]NVStorageSaveData done [08:03:08]OFDSenderStorePacket done [08:03:08]KKMCreateOFDPacket done [08:03:08]NVStorageSaveData kkm_last_timestamp [08:03:08]File name is /storage/kkm_last_timestamp [08:03:08]Write 4 bytes [08:03:08]NVStorageSaveData done [08:03:08]ExternCall_PrintAddStr [08:03:08]wPrintStart [08:03:08]Write to MH i2c: 01 00 00 8E 43 D1 [08:03:08]Write i2c OK [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: 01 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: 01 07 00 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: 01 07 00 8E 43 00 00 00 00 00 FF 0F E6 [08:03:08]RasterBufferAndPrint [08:03:08]line Счет N : (3)127464 [08:03:08]line ИНН: 02508201610067 [08:03:08]line Контрольно-Кассовый Чек [08:03:08]line ПРОДАЖА [08:03:08]line Товар: 5449000054227 [08:03:08]line Напиток Кока-Кола 1л [08:03:08]line 1.000 * 105.00 [08:03:08]line = 105.00 [08:03:08]line НДС 12% НСП 1% [08:03:08]line > о реализуемом товаре [08:03:08]line ИТОГО: 105.00 [08:03:08]line НСП 1% : 0.93 [08:03:08]line НДС 12% : 11.15 [08:03:08]line Наличными: 105.00 [08:03:08]line Безнал.: 0.00 [08:03:08]line Место: АЗС № 5 "Партнер Нефть" [08:03:08]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [08:03:08]line СНО: Общий режим [08:03:08]line Чек 19 15.09.2024 08:03 [08:03:08]line Смена: 507 ФФД: 1.0 [08:03:08]line ЗНМ: 03000000022 [08:03:08]line РНМ: 0000000000091423 [08:03:08]line Версия ККМ: 001 [08:03:08]line ФМ: 0000000000874692 [08:03:08]line ФД: 92571 [08:03:08]line ФПД: 145911584605457 [08:03:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T080314&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92571&fm=145911584605457&tin=02508201610067®Number=0000000000091423&sum=10500 [08:03:09]OFD Sender: Processing packet 92571 [packets to send 63, broken 62] [08:03:09]ProducePacketName [08:03:09]name=ofd_packets/00092571 [08:03:09]OFD Sender: To server: pG, [08:03:09]CommunicateWithHost lk.salyk.kg:30040 [08:03:09]ConnectInit lk.salyk.kg [08:03:09]line 0 [08:03:09]written 0, free lines is 4095 [08:03:09]Connected sock=11 [08:03:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2A 01 00 00 1B E5 22 01 DA 83 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 C2 94 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9B 69 01 00 35 04 06 00 84 B4 B0 2B 45 11 07 06 5A B1 A0 FB 49 AD [08:03:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 BF F8 47 00 33 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9B 69 01 00 F4 03 04 00 3B 3D E6 66 B6 04 01 00 00 7C 79 9C 50 A2 99 E6 62 [08:03:09]CommunicateWithHost err = 0 [08:03:09]CheckOFDResponse [08:03:09]1017 (14) - 77093643461234 [08:03:09]1041 (16) - 0000000000874692 [08:03:09]1040 (4) - 92571 [08:03:09]1012 (4) - 15.09.2024 01:49 [08:03:09]1206 (1) - 0 [08:03:09]OFD Sender: Remove packet 92571 [08:03:09]ProducePacketName [08:03:09]name=ofd_packets/00092571 [08:03:09]NVStorageDeleteData [08:03:09]Write to MH i2c: 01 00 00 B6 43 F9 [08:03:09]Write i2c OK [08:03:09]MH_I2C_Read... [08:03:09]Read from MH i2c: 01 [08:03:09]MH_I2C_Read... [08:03:09]Read from MH i2c: 01 07 00 [08:03:09]MH_I2C_Read... [08:03:09]Read from MH i2c: 01 07 00 B6 43 00 00 00 00 00 11 0D 1E [08:03:09]RasterBufferAndPrint [08:03:09]line [08:03:09]line [08:03:09]line [08:03:09]line [08:03:09]line [08:03:09]written 0, free lines is 3351 [08:03:09]MH_Cut [08:03:09]Write to MH i2c: D1 01 00 BD 43 01 D2 [08:03:09]Write i2c OK [08:03:09]MH_I2C_Read... [08:03:09]Read from MH i2c: D1 [08:03:09]MH_I2C_Read... [08:03:09]Read from MH i2c: D1 01 00 [08:03:09]MH_I2C_Read... [08:03:09]Read from MH i2c: D1 01 00 BD 43 00 D1 [08:03:09]Write to MH i2c: 01 00 00 BE 43 01 [08:03:09]Write i2c OK [08:03:09]MH_I2C_Read... [08:03:10]OFD Sender: No OFD packet to send [08:03:10]*** Cut start [08:03:10]*** Purtial cut [08:03:10]*** Stage 1: CUTSNS_PIN = 1 [08:03:12]Read from MH i2c: 01 [08:03:12]MH_I2C_Read... [08:03:12]*** Stop cut motor [08:03:12]*** Cut end [08:03:12]Read from MH i2c: 01 07 00 [08:03:12]MH_I2C_Read... [08:03:12]Read from MH i2c: 01 07 00 BE 43 00 00 00 00 00 FF 0F 16 [08:03:12]process_action close_receipt done [08:03:12]requested_data is exist [08:03:12]produce_requested_data [08:03:12]requested_item fm.sn is exist - process it [08:03:12]wFMCommunicate request_size=4 [08:03:12]MH_SAM_APDU [08:03:12]CAPDU: 80 11 00 00 [08:03:12]Write to MH i2c: E2 08 00 BF 43 80 11 00 00 00 00 00 00 7C [08:03:12]Write i2c OK [08:03:12]MH_I2C_Read... [08:03:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:12]Read from MH i2c: E2 [08:03:12]MH_I2C_Read... [08:03:12]Read from MH i2c: E2 17 00 [08:03:12]MH_I2C_Read... [08:03:12]Read from MH i2c: E2 17 00 BF 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D3 [08:03:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:03:12]wFMCommunicate OK [08:03:12]requested_item fd.num is exist - process it [08:03:12]SAM_PROTO_GetFieldsCounters [08:03:12]wFMCommunicate request_size=4 [08:03:12]MH_SAM_APDU [08:03:12]CAPDU: 80 13 00 00 [08:03:12]Write to MH i2c: E2 08 00 C0 43 80 13 00 00 00 00 00 00 7F [08:03:12]Write i2c OK [08:03:12]MH_I2C_Read... [08:03:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:03:12]Read from MH i2c: E2 [08:03:12]MH_I2C_Read... [08:03:12]Read from MH i2c: E2 62 00 [08:03:12]MH_I2C_Read... [08:03:12]Read from MH i2c: E2 62 00 C0 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 9B 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [08:03:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 9B 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:03:12]wFMCommunicate OK [08:03:12]SAM_PROTO_GetFieldsCounters done [08:03:12]requested_item shift.num is exist - process it [08:03:12]requested_item shift.opened is exist - process it [08:03:12]req_shift_opened [08:03:12]FM_GetShiftState [08:03:12]SAM_PROTO_GetShiftState [08:03:12]wFMCommunicate request_size=4 [08:03:12]MH_SAM_APDU [08:03:12]CAPDU: 80 13 01 00 [08:03:12]Write to MH i2c: E2 08 00 C1 43 80 13 01 00 00 00 00 00 81 [08:03:12]Write i2c OK [08:03:12]MH_I2C_Read... [08:03:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:12]Read from MH i2c: E2 [08:03:12]MH_I2C_Read... [08:03:12]Read from MH i2c: E2 0E 00 [08:03:12]MH_I2C_Read... [08:03:12]Read from MH i2c: E2 0E 00 C1 43 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 03 [08:03:12]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [08:03:12]wFMCommunicate OK [08:03:12]SAM_PROTO_GetShiftState done [08:03:12]FM_GetShiftState done [08:03:12]req_shift_opened done [08:03:12]requested_item shift.open_date is exist - process it [08:03:12]req_shift_open_date [08:03:12]req_shift_open_date done [08:03:12]produce_requested_data done [08:03:12]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92571,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [08:03:12]process_action_free close_receipt [08:03:12]json_value_free [08:03:12]json_value_free done [08:03:12]process_json_proto returns [08:03:12]Send response to host [08:03:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92571,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [08:03:12]free response buf [08:03:12]execute_script done [08:03:12]execute_script returns [08:03:12]free content buf [08:03:12]Sock 9.Close socket [08:03:12]Sock 9.Thread stoped [08:03:15]OFD Sender: No OFD packet to send [08:03:20]OFD Sender: No OFD packet to send [08:03:25]OFD Sender: No OFD packet to send [08:03:30]OFD Sender: No OFD packet to send [08:03:35]OFD Sender: No OFD packet to send [08:03:40]OFD Sender: No OFD packet to send [08:03:45]OFD Sender: No OFD packet to send [08:03:50]OFD Sender: No OFD packet to send [08:03:55]OFD Sender: No OFD packet to send [08:04:00]OFD Sender: No OFD packet to send [08:04:05]OFD Sender: No OFD packet to send [08:04:10]OFD Sender: No OFD packet to send [08:04:15]OFD Sender: No OFD packet to send [08:04:20]OFD Sender: No OFD packet to send [08:04:25]OFD Sender: No OFD packet to send [08:04:30]OFD Sender: No OFD packet to send [08:04:35]OFD Sender: No OFD packet to send [08:04:40]OFD Sender: No OFD packet to send [08:04:45]OFD Sender: No OFD packet to send [08:04:50]OFD Sender: No OFD packet to send [08:04:55]OFD Sender: No OFD packet to send [08:05:00]OFD Sender: No OFD packet to send [08:05:05]OFD Sender: No OFD packet to send [08:05:10]OFD Sender: No OFD packet to send [08:05:15]OFD Sender: No OFD packet to send [08:05:20]OFD Sender: No OFD packet to send [08:05:25]OFD Sender: No OFD packet to send [08:05:30]OFD Sender: No OFD packet to send [08:05:35]OFD Sender: No OFD packet to send [08:05:40]OFD Sender: No OFD packet to send [08:05:45]OFD Sender: No OFD packet to send [08:05:50]OFD Sender: No OFD packet to send [08:05:55]OFD Sender: No OFD packet to send [08:06:00]OFD Sender: No OFD packet to send [08:06:05]OFD Sender: No OFD packet to send [08:06:10]OFD Sender: No OFD packet to send [08:06:15]OFD Sender: No OFD packet to send [08:06:20]OFD Sender: No OFD packet to send [08:06:25]OFD Sender: No OFD packet to send [08:06:30]OFD Sender: No OFD packet to send [08:06:35]OFD Sender: No OFD packet to send [08:06:40]OFD Sender: No OFD packet to send [08:06:45]OFD Sender: No OFD packet to send [08:06:50]OFD Sender: No OFD packet to send [08:06:55]OFD Sender: No OFD packet to send [08:07:00]OFD Sender: No OFD packet to send [08:07:05]OFD Sender: No OFD packet to send [08:07:10]OFD Sender: No OFD packet to send [08:07:15]OFD Sender: No OFD packet to send [08:07:20]OFD Sender: No OFD packet to send [08:07:25]OFD Sender: No OFD packet to send [08:07:30]OFD Sender: No OFD packet to send [08:07:35]OFD Sender: No OFD packet to send [08:07:40]OFD Sender: No OFD packet to send [08:07:45]OFD Sender: No OFD packet to send [08:07:50]OFD Sender: No OFD packet to send [08:07:55]OFD Sender: No OFD packet to send [08:08:00]OFD Sender: No OFD packet to send [08:08:05]OFD Sender: No OFD packet to send [08:08:10]OFD Sender: No OFD packet to send [08:08:15]OFD Sender: No OFD packet to send [08:08:20]OFD Sender: No OFD packet to send [08:08:25]OFD Sender: No OFD packet to send [08:08:30]OFD Sender: No OFD packet to send [08:08:35]OFD Sender: No OFD packet to send [08:08:40]OFD Sender: No OFD packet to send [08:08:45]OFD Sender: No OFD packet to send [08:08:50]OFD Sender: No OFD packet to send [08:08:55]OFD Sender: No OFD packet to send [08:09:00]OFD Sender: No OFD packet to send [08:09:05]OFD Sender: No OFD packet to send [08:09:10]OFD Sender: No OFD packet to send [08:09:15]OFD Sender: No OFD packet to send [08:09:20]OFD Sender: No OFD packet to send [08:09:25]OFD Sender: No OFD packet to send [08:09:30]OFD Sender: No OFD packet to send [08:09:35]OFD Sender: No OFD packet to send [08:09:40]OFD Sender: No OFD packet to send [08:09:45]OFD Sender: No OFD packet to send [08:09:50]OFD Sender: No OFD packet to send [08:09:55]OFD Sender: No OFD packet to send [08:10:00]OFD Sender: No OFD packet to send [08:10:05]OFD Sender: No OFD packet to send [08:10:10]OFD Sender: No OFD packet to send [08:10:15]OFD Sender: No OFD packet to send [08:10:20]OFD Sender: No OFD packet to send [08:10:25]OFD Sender: No OFD packet to send [08:10:30]OFD Sender: No OFD packet to send [08:10:35]OFD Sender: No OFD packet to send [08:10:40]OFD Sender: No OFD packet to send [08:10:45]OFD Sender: No OFD packet to send [08:10:50]OFD Sender: No OFD packet to send [08:10:55]OFD Sender: No OFD packet to send [08:11:00]OFD Sender: No OFD packet to send [08:11:05]OFD Sender: No OFD packet to send [08:11:10]OFD Sender: No OFD packet to send [08:11:15]OFD Sender: No OFD packet to send [08:11:20]OFD Sender: No OFD packet to send [08:11:25]OFD Sender: No OFD packet to send [08:11:30]OFD Sender: No OFD packet to send [08:11:35]OFD Sender: No OFD packet to send [08:11:40]OFD Sender: No OFD packet to send [08:11:45]OFD Sender: No OFD packet to send [08:11:50]OFD Sender: No OFD packet to send [08:11:55]OFD Sender: No OFD packet to send [08:12:00]OFD Sender: No OFD packet to send [08:12:05]OFD Sender: No OFD packet to send [08:12:10]OFD Sender: No OFD packet to send [08:12:15]OFD Sender: No OFD packet to send [08:12:20]OFD Sender: No OFD packet to send [08:12:25]OFD Sender: No OFD packet to send [08:12:30]OFD Sender: No OFD packet to send [08:12:35]OFD Sender: No OFD packet to send [08:12:40]OFD Sender: No OFD packet to send [08:12:45]OFD Sender: No OFD packet to send [08:12:50]OFD Sender: No OFD packet to send [08:12:55]OFD Sender: No OFD packet to send [08:13:00]OFD Sender: No OFD packet to send [08:13:05]OFD Sender: No OFD packet to send [08:13:10]OFD Sender: No OFD packet to send [08:13:15]OFD Sender: No OFD packet to send [08:13:20]OFD Sender: No OFD packet to send [08:13:25]OFD Sender: No OFD packet to send [08:13:30]OFD Sender: No OFD packet to send [08:13:35]OFD Sender: No OFD packet to send [08:13:40]OFD Sender: No OFD packet to send [08:13:45]OFD Sender: No OFD packet to send [08:13:50]OFD Sender: No OFD packet to send [08:13:55]OFD Sender: No OFD packet to send [08:14:00]OFD Sender: No OFD packet to send [08:14:05]OFD Sender: No OFD packet to send [08:14:10]OFD Sender: No OFD packet to send [08:14:15]OFD Sender: No OFD packet to send [08:14:20]OFD Sender: No OFD packet to send [08:14:25]OFD Sender: No OFD packet to send [08:14:30]OFD Sender: No OFD packet to send [08:14:35]OFD Sender: No OFD packet to send [08:14:40]OFD Sender: No OFD packet to send [08:14:45]OFD Sender: No OFD packet to send [08:14:50]OFD Sender: No OFD packet to send [08:14:55]OFD Sender: No OFD packet to send [08:15:00]OFD Sender: No OFD packet to send [08:15:05]OFD Sender: No OFD packet to send [08:15:10]OFD Sender: No OFD packet to send [08:15:15]OFD Sender: No OFD packet to send [08:15:20]OFD Sender: No OFD packet to send [08:15:25]OFD Sender: No OFD packet to send [08:15:30]OFD Sender: No OFD packet to send [08:15:35]OFD Sender: No OFD packet to send [08:15:40]OFD Sender: No OFD packet to send [08:15:45]OFD Sender: No OFD packet to send [08:15:50]OFD Sender: No OFD packet to send [08:15:55]OFD Sender: No OFD packet to send [08:16:00]OFD Sender: No OFD packet to send [08:16:05]OFD Sender: No OFD packet to send [08:16:10]OFD Sender: No OFD packet to send [08:16:15]OFD Sender: No OFD packet to send [08:16:20]OFD Sender: No OFD packet to send [08:16:25]OFD Sender: No OFD packet to send [08:16:30]OFD Sender: No OFD packet to send [08:16:35]OFD Sender: No OFD packet to send [08:16:40]OFD Sender: No OFD packet to send [08:16:45]OFD Sender: No OFD packet to send [08:16:50]OFD Sender: No OFD packet to send [08:16:55]OFD Sender: No OFD packet to send [08:17:00]OFD Sender: No OFD packet to send [08:17:05]OFD Sender: No OFD packet to send [08:17:10]OFD Sender: No OFD packet to send [08:17:15]OFD Sender: No OFD packet to send [08:17:20]OFD Sender: No OFD packet to send [08:17:25]OFD Sender: No OFD packet to send [08:17:30]OFD Sender: No OFD packet to send [08:17:35]OFD Sender: No OFD packet to send [08:17:40]OFD Sender: No OFD packet to send [08:17:45]OFD Sender: No OFD packet to send [08:17:50]OFD Sender: No OFD packet to send [08:17:55]OFD Sender: No OFD packet to send [08:18:00]OFD Sender: No OFD packet to send [08:18:05]OFD Sender: No OFD packet to send [08:18:10]OFD Sender: No OFD packet to send [08:18:15]OFD Sender: No OFD packet to send [08:18:20]OFD Sender: No OFD packet to send [08:18:25]OFD Sender: No OFD packet to send [08:18:30]OFD Sender: No OFD packet to send [08:18:35]OFD Sender: No OFD packet to send [08:18:40]OFD Sender: No OFD packet to send [08:18:45]OFD Sender: No OFD packet to send [08:18:50]OFD Sender: No OFD packet to send [08:18:55]OFD Sender: No OFD packet to send [08:19:00]OFD Sender: No OFD packet to send [08:19:05]OFD Sender: No OFD packet to send [08:19:10]OFD Sender: No OFD packet to send [08:19:15]OFD Sender: No OFD packet to send [08:19:20]OFD Sender: No OFD packet to send [08:19:25]OFD Sender: No OFD packet to send [08:19:31]OFD Sender: No OFD packet to send [08:19:36]OFD Sender: No OFD packet to send [08:19:41]OFD Sender: No OFD packet to send [08:19:46]OFD Sender: No OFD packet to send [08:19:51]OFD Sender: No OFD packet to send [08:19:56]OFD Sender: No OFD packet to send [08:20:01]OFD Sender: No OFD packet to send [08:20:06]OFD Sender: No OFD packet to send [08:20:11]OFD Sender: No OFD packet to send [08:20:16]OFD Sender: No OFD packet to send [08:20:17]accept exits with 8 [08:20:17]New connection [08:20:17]New thread 3066658148 created [08:20:17]Thread 3066801508 joined [08:20:17]Waiting for new connection... [08:20:17] Sock 8.Parse request [08:20:17]Sock 8.Check first char [08:20:17]Sock 8.First char is OK [08:20:17]request: POST /json_proto HTTP/1.0 [08:20:17]Method: POST [08:20:17]URL: /json_proto [08:20:17]Method is POST - this is cgi request [08:20:17]url: /json_proto [08:20:17]query_string will be loaded in cgi processing [08:20:17]execute_cgi json_proto POST (null) [08:20:17]execute_cgi path=json_proto method=POST [08:20:17]POST find Content-Length [08:20:17]Host: 172.17.57.71:8080 [08:20:17]Content-Length: 650 [08:20:17]Content-Type: application/json [08:20:17] [08:20:17]POST finish read [08:20:17]Found Content-Length = 650 [08:20:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127466", "tax_sys" : 0, "items" : [ { "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:17]execute_script... [08:20:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127466", "tax_sys" : 0, "items" : [ { "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:17]POST & json_proto [08:20:17]process_json_proto [08:20:17]json parsed OK: [08:20:17]protocol is kg_v1.0 [08:20:17]action value=close_receipt [08:20:17]process_action close_receipt [08:20:17]cmd_close_receipt [08:20:17]MH_GetDate [08:20:17]Write to MH i2c: F0 00 00 C2 43 F4 [08:20:17]Write i2c OK [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: F0 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: F0 09 00 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: F0 09 00 C2 43 00 C8 98 E6 66 33 3A A4 66 20 [08:20:17]GetLastDocTimeStamp 1726387394 [08:20:17]current date 1726388424 [08:20:17]FM_GetShiftState [08:20:17]SAM_PROTO_GetShiftState [08:20:17]wFMCommunicate request_size=4 [08:20:17]MH_SAM_APDU [08:20:17]CAPDU: 80 13 01 00 [08:20:17]Write to MH i2c: E2 08 00 C3 43 80 13 01 00 00 00 00 00 83 [08:20:17]Write i2c OK [08:20:17]MH_I2C_Read... [08:20:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:17]Read from MH i2c: E2 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: E2 0E 00 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: E2 0E 00 C3 43 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 05 [08:20:17]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [08:20:17]wFMCommunicate OK [08:20:17]SAM_PROTO_GetShiftState done [08:20:17]FM_GetShiftState done [08:20:17]opened in 1726359809 [08:20:17]opened+sec_in_day 1726446209 [08:20:17]quantity*price = 7500 [08:20:17]sum+1 = 7501 [08:20:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 20 15.09.2024 08:20 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92572 ФПД: 65829380506676 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T082024&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92572&fm=65829380506676&tin=02508201610067®Number=0000000000091423&sum=7500 0 [08:20:18]StoreToDocumentArchive [08:20:18]shift 507 fd 92572 [08:20:18]save to /storage/0507/doc_00092572 [08:20:18]save last doc name /storage/0507/doc_00092572 to /storage/kkm_last_doc_name [08:20:18]save OK [08:20:18]Clear old archive folders... [08:20:18]ProcessDocumentItem done err = 0, tmpTLVsize=285 [08:20:18]tlvbuf is 00F81240 [08:20:18]SAM_PROTO_ClearQueue [08:20:18]wFMCommunicate request_size=4 [08:20:18]MH_SAM_APDU [08:20:18]CAPDU: 80 09 00 00 [08:20:18]Write to MH i2c: E2 08 00 D0 43 80 09 00 00 00 00 00 00 85 [08:20:18]Write i2c OK [08:20:18]MH_I2C_Read... [08:20:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:18]Read from MH i2c: E2 [08:20:18]MH_I2C_Read... [08:20:18]Read from MH i2c: E2 03 00 [08:20:18]MH_I2C_Read... [08:20:18]Read from MH i2c: E2 03 00 D0 43 00 90 00 87 [08:20:18]RAPDU: 90 00 [08:20:18]wFMCommunicate OK [08:20:18]SAM_PROTO_ClearQueue done [08:20:18]KKMCreateOFDPacket [08:20:18]OFDProtocolAddRootSTLVToBuf [08:20:18]FM_MakeSignedData [08:20:18]FM_MakeSignedData [08:20:18]SAM_PROTO_SignData [08:20:18]wFMCommunicate request_size=4 [08:20:18]MH_SAM_APDU [08:20:18]CAPDU: 80 0D 01 02 [08:20:18]Write to MH i2c: E2 08 00 D1 43 80 0D 01 02 00 00 00 00 8D [08:20:18]Write i2c OK [08:20:18]MH_I2C_Read... [08:20:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:18]Read from MH i2c: E2 [08:20:18]MH_I2C_Read... [08:20:18]Read from MH i2c: E2 03 00 [08:20:18]MH_I2C_Read... [08:20:18]Read from MH i2c: E2 03 00 D1 43 00 90 00 88 [08:20:18]RAPDU: 90 00 [08:20:18]wFMCommunicate OK [08:20:18]wFMCommunicate request_size=255 [08:20:18]MH_SAM_APDU [08:20:18]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 C8 98 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 [08:20:18]Write to MH i2c: E2 02 01 D2 43 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 C8 98 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 00 00 4A [08:20:18]Write i2c OK [08:20:18]MH_I2C_Read... [08:20:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:18]Read from MH i2c: E2 [08:20:18]MH_I2C_Read... [08:20:18]Read from MH i2c: E2 03 00 [08:20:18]MH_I2C_Read... [08:20:18]Read from MH i2c: E2 03 00 D2 43 00 90 00 89 [08:20:18]RAPDU: 90 00 [08:20:18]wFMCommunicate OK [08:20:18]wFMCommunicate request_size=44 [08:20:18]MH_SAM_APDU [08:20:18]CAPDU: 80 0D 02 02 27 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9C 69 01 00 35 04 06 00 3B DF 18 D7 44 34 [08:20:18]Write to MH i2c: E2 2F 00 D3 43 80 0D 02 02 27 00 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9C 69 01 00 35 04 06 00 3B DF 18 D7 44 34 00 00 38 [08:20:18]Write i2c OK [08:20:18]MH_I2C_Read... [08:20:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:18]Read from MH i2c: E2 [08:20:18]MH_I2C_Read... [08:20:18]Read from MH i2c: E2 03 00 [08:20:18]MH_I2C_Read... [08:20:18]Read from MH i2c: E2 03 00 D3 43 00 90 00 8A [08:20:18]RAPDU: 90 00 [08:20:18]wFMCommunicate OK [08:20:18]wFMCommunicate request_size=4 [08:20:18]MH_SAM_APDU [08:20:18]CAPDU: 80 0D 03 02 [08:20:18]Write to MH i2c: E2 08 00 D4 43 80 0D 03 02 00 00 00 00 92 [08:20:18]Write i2c OK [08:20:18]MH_I2C_Read... [08:20:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:18]Read from MH i2c: E2 [08:20:18]MH_I2C_Read... [08:20:18]Read from MH i2c: E2 0B 00 [08:20:18]MH_I2C_Read... [08:20:18]Read from MH i2c: E2 0B 00 D4 43 00 8F 1F FB 54 E0 56 96 A0 90 00 FC [08:20:18]RAPDU: 8F 1F FB 54 E0 56 96 A0 90 00 [08:20:18]wFMCommunicate OK [08:20:18]SAM_PROTO_SignData done [08:20:18]FM_MakeSignedData done [08:20:18]CreateOFDProtocolMessage [08:20:18]wFMCommunicate request_size=4 [08:20:18]MH_SAM_APDU [08:20:18]CAPDU: 80 11 00 00 [08:20:18]Write to MH i2c: E2 08 00 D5 43 80 11 00 00 00 00 00 00 92 [08:20:18]Write i2c OK [08:20:18]MH_I2C_Read... [08:20:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:18]Read from MH i2c: E2 [08:20:18]MH_I2C_Read... [08:20:18]Read from MH i2c: E2 17 00 [08:20:18]MH_I2C_Read... [08:20:18]Read from MH i2c: E2 17 00 D5 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E9 [08:20:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:20:18]wFMCommunicate OK [08:20:18]CreateOFDProtocolMessage done [08:20:18]OFDSenderStorePacket 92572 [08:20:18]StoreOFDPacket docnum=92572 [08:20:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 31 01 00 00 6F 6D 29 01 7C BC 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 C8 98 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9C 69 01 00 35 04 06 00 3B DF 18 D7 44 34 8F 1F FB 54 E0 56 96 A0 [08:20:18]CheckFolder [08:20:18]dirname=/storage/ofd_packets [08:20:18]CheckFolder done [08:20:18]ProducePacketName [08:20:18]name=ofd_packets/00092572 [08:20:18]NVStorageSaveData ofd_packets/00092572 [08:20:18]File name is /storage/ofd_packets/00092572 [08:20:18]Write 335 bytes [08:20:18]NVStorageSaveData done [08:20:18]OFDSenderStorePacket done [08:20:18]KKMCreateOFDPacket done [08:20:18]NVStorageSaveData kkm_last_timestamp [08:20:18]File name is /storage/kkm_last_timestamp [08:20:18]Write 4 bytes [08:20:18]NVStorageSaveData done [08:20:18]ExternCall_PrintAddStr [08:20:18]wPrintStart [08:20:18]Write to MH i2c: 01 00 00 D6 43 19 [08:20:18]Write i2c OK [08:20:18]MH_I2C_Read... [08:20:18]Read from MH i2c: 01 [08:20:18]MH_I2C_Read... [08:20:18]Read from MH i2c: 01 07 00 [08:20:18]MH_I2C_Read... [08:20:18]Read from MH i2c: 01 07 00 D6 43 00 00 00 00 00 FF 0F 2E [08:20:18]RasterBufferAndPrint [08:20:18]line Счет N : (3)127466 [08:20:18]line ИНН: 02508201610067 [08:20:18]line Контрольно-Кассовый Чек [08:20:18]line ПРОДАЖА [08:20:18]line Товар: 4870112002775 [08:20:18]line Шок батончик ALBENI BITES 80гр [08:20:18]line 1.000 * 75.00 [08:20:18]line = 75.00 [08:20:18]line НДС 12% НСП 1% [08:20:18]line > о реализуемом товаре [08:20:18]line ИТОГО: 75.00 [08:20:18]line НСП 1% : 0.66 [08:20:18]line НДС 12% : 7.96 [08:20:18]line Наличными: 75.00 [08:20:18]line Безнал.: 0.00 [08:20:18]line Место: АЗС № 5 "Партнер Нефть" [08:20:18]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [08:20:18]line СНО: Общий режим [08:20:18]line Чек 20 15.09.2024 08:20 [08:20:18]line Смена: 507 ФФД: 1.0 [08:20:18]line ЗНМ: 03000000022 [08:20:18]line РНМ: 0000000000091423 [08:20:18]line Версия ККМ: 001 [08:20:18]line ФМ: 0000000000874692 [08:20:18]line ФД: 92572 [08:20:18]line ФПД: 65829380506676 [08:20:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T082024&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92572&fm=65829380506676&tin=02508201610067®Number=0000000000091423&sum=7500 [08:20:19]line 0 [08:20:19]OFD Sender: Processing packet 92572 [packets to send 63, broken 62] [08:20:19]ProducePacketName [08:20:19]name=ofd_packets/00092572 [08:20:19]OFD Sender: To server: pG, [08:20:19]CommunicateWithHost lk.salyk.kg:30040 [08:20:19]ConnectInit lk.salyk.kg [08:20:19]written 0, free lines is 4095 [08:20:19]Connected sock=10 [08:20:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 31 01 00 00 6F 6D 29 01 7C BC 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 C8 98 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9C 69 01 00 35 04 06 00 3B DF 18 D7 44 34 8F 1F FB 54 E0 56 96 A0 [08:20:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 8B 6C 47 00 8A 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9C 69 01 00 F4 03 04 00 41 41 E6 66 B6 04 01 00 00 63 D1 F7 43 53 C4 F3 40 [08:20:19]CommunicateWithHost err = 0 [08:20:19]CheckOFDResponse [08:20:19]1017 (14) - 77093643461234 [08:20:19]1041 (16) - 0000000000874692 [08:20:19]1040 (4) - 92572 [08:20:19]1012 (4) - 15.09.2024 02:06 [08:20:19]1206 (1) - 0 [08:20:19]OFD Sender: Remove packet 92572 [08:20:19]ProducePacketName [08:20:19]name=ofd_packets/00092572 [08:20:19]NVStorageDeleteData [08:20:19]Write to MH i2c: 01 00 00 FF 43 42 [08:20:19]Write i2c OK [08:20:19]MH_I2C_Read... [08:20:19]Read from MH i2c: 01 [08:20:19]MH_I2C_Read... [08:20:19]Read from MH i2c: 01 07 00 [08:20:19]MH_I2C_Read... [08:20:19]Read from MH i2c: 01 07 00 FF 43 00 00 00 00 00 08 0D 5E [08:20:19]RasterBufferAndPrint [08:20:19]line [08:20:19]line [08:20:19]line [08:20:19]line [08:20:19]line [08:20:19]written 0, free lines is 3343 [08:20:19]MH_Cut [08:20:19]Write to MH i2c: D1 01 00 06 44 01 1C [08:20:19]Write i2c OK [08:20:19]MH_I2C_Read... [08:20:19]Read from MH i2c: D1 [08:20:19]MH_I2C_Read... [08:20:19]Read from MH i2c: D1 01 00 [08:20:19]MH_I2C_Read... [08:20:19]Read from MH i2c: D1 01 00 06 44 00 1B [08:20:19]Write to MH i2c: 01 00 00 07 44 4B [08:20:19]Write i2c OK [08:20:19]MH_I2C_Read... [08:20:20]OFD Sender: No OFD packet to send [08:20:20]*** Cut start [08:20:20]*** Purtial cut [08:20:20]*** Stage 1: CUTSNS_PIN = 1 [08:20:22]Read from MH i2c: 01 [08:20:22]MH_I2C_Read... [08:20:22]*** Stop cut motor [08:20:22]*** Cut end [08:20:22]Read from MH i2c: 01 07 00 [08:20:22]MH_I2C_Read... [08:20:22]Read from MH i2c: 01 07 00 07 44 00 00 00 00 00 FF 0F 60 [08:20:22]process_action close_receipt done [08:20:22]requested_data is exist [08:20:22]produce_requested_data [08:20:22]requested_item fm.sn is exist - process it [08:20:22]wFMCommunicate request_size=4 [08:20:22]MH_SAM_APDU [08:20:22]CAPDU: 80 11 00 00 [08:20:22]Write to MH i2c: E2 08 00 08 44 80 11 00 00 00 00 00 00 C6 [08:20:22]Write i2c OK [08:20:22]MH_I2C_Read... [08:20:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:22]Read from MH i2c: E2 [08:20:22]MH_I2C_Read... [08:20:22]Read from MH i2c: E2 17 00 [08:20:22]MH_I2C_Read... [08:20:22]Read from MH i2c: E2 17 00 08 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 1D [08:20:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:20:22]wFMCommunicate OK [08:20:22]requested_item fd.num is exist - process it [08:20:22]SAM_PROTO_GetFieldsCounters [08:20:22]wFMCommunicate request_size=4 [08:20:22]MH_SAM_APDU [08:20:22]CAPDU: 80 13 00 00 [08:20:22]Write to MH i2c: E2 08 00 09 44 80 13 00 00 00 00 00 00 C9 [08:20:22]Write i2c OK [08:20:22]MH_I2C_Read... [08:20:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:22]Read from MH i2c: E2 [08:20:22]MH_I2C_Read... [08:20:22]Read from MH i2c: E2 62 00 [08:20:22]MH_I2C_Read... [08:20:22]Read from MH i2c: E2 62 00 09 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 9C 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [08:20:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 9C 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:20:22]wFMCommunicate OK [08:20:22]SAM_PROTO_GetFieldsCounters done [08:20:22]requested_item shift.num is exist - process it [08:20:22]requested_item shift.opened is exist - process it [08:20:22]req_shift_opened [08:20:22]FM_GetShiftState [08:20:22]SAM_PROTO_GetShiftState [08:20:22]wFMCommunicate request_size=4 [08:20:22]MH_SAM_APDU [08:20:22]CAPDU: 80 13 01 00 [08:20:22]Write to MH i2c: E2 08 00 0A 44 80 13 01 00 00 00 00 00 CB [08:20:22]Write i2c OK [08:20:22]MH_I2C_Read... [08:20:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:22]Read from MH i2c: E2 [08:20:22]MH_I2C_Read... [08:20:22]Read from MH i2c: E2 0E 00 [08:20:22]MH_I2C_Read... [08:20:22]Read from MH i2c: E2 0E 00 0A 44 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 4D [08:20:22]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [08:20:22]wFMCommunicate OK [08:20:22]SAM_PROTO_GetShiftState done [08:20:22]FM_GetShiftState done [08:20:22]req_shift_opened done [08:20:22]requested_item shift.open_date is exist - process it [08:20:22]req_shift_open_date [08:20:22]req_shift_open_date done [08:20:22]produce_requested_data done [08:20:22]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92572,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [08:20:22]process_action_free close_receipt [08:20:22]json_value_free [08:20:22]json_value_free done [08:20:22]process_json_proto returns [08:20:22]Send response to host [08:20:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92572,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [08:20:22]free response buf [08:20:22]execute_script done [08:20:22]execute_script returns [08:20:22]free content buf [08:20:22]Sock 8.Close socket [08:20:22]Sock 8.Thread stoped [08:20:25]OFD Sender: No OFD packet to send [08:20:29]accept exits with 9 [08:20:29]New connection [08:20:29]New thread 3066801508 created [08:20:29]Thread 3066658148 joined [08:20:29]Waiting for new connection... [08:20:29] Sock 9.Parse request [08:20:29]Sock 9.Check first char [08:20:29]Sock 9.First char is OK [08:20:29]request: POST /json_proto HTTP/1.0 [08:20:29]Method: POST [08:20:29]URL: /json_proto [08:20:29]Method is POST - this is cgi request [08:20:29]url: /json_proto [08:20:29]query_string will be loaded in cgi processing [08:20:29]execute_cgi json_proto POST (null) [08:20:29]execute_cgi path=json_proto method=POST [08:20:29]POST find Content-Length [08:20:29]Host: 172.17.57.71:8080 [08:20:29]Content-Length: 616 [08:20:29]Content-Type: application/json [08:20:29] [08:20:29]POST finish read [08:20:29]Found Content-Length = 616 [08:20:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127467", "tax_sys" : 0, "items" : [ { "code": "48743273", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Marlboro Touch", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:29]execute_script... [08:20:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127467", "tax_sys" : 0, "items" : [ { "code": "48743273", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Marlboro Touch", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:29]POST & json_proto [08:20:29]process_json_proto [08:20:29]json parsed OK: [08:20:29]protocol is kg_v1.0 [08:20:29]action value=close_receipt [08:20:29]process_action close_receipt [08:20:29]cmd_close_receipt [08:20:29]MH_GetDate [08:20:29]Write to MH i2c: F0 00 00 0B 44 3E [08:20:29]Write i2c OK [08:20:29]MH_I2C_Read... [08:20:29]Read from MH i2c: F0 [08:20:29]MH_I2C_Read... [08:20:29]Read from MH i2c: F0 09 00 [08:20:29]MH_I2C_Read... [08:20:29]Read from MH i2c: F0 09 00 0B 44 00 D4 98 E6 66 33 3A A4 66 76 [08:20:29]GetLastDocTimeStamp 1726388424 [08:20:29]current date 1726388436 [08:20:29]FM_GetShiftState [08:20:29]SAM_PROTO_GetShiftState [08:20:29]wFMCommunicate request_size=4 [08:20:29]MH_SAM_APDU [08:20:29]CAPDU: 80 13 01 00 [08:20:29]Write to MH i2c: E2 08 00 0C 44 80 13 01 00 00 00 00 00 CD [08:20:29]Write i2c OK [08:20:29]MH_I2C_Read... [08:20:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:29]Read from MH i2c: E2 [08:20:29]MH_I2C_Read... [08:20:29]Read from MH i2c: E2 0E 00 [08:20:29]MH_I2C_Read... [08:20:29]Read from MH i2c: E2 0E 00 0C 44 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 4F [08:20:29]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [08:20:29]wFMCommunicate OK [08:20:29]SAM_PROTO_GetShiftState done [08:20:29]FM_GetShiftState done [08:20:29]opened in 1726359809 [08:20:29]opened+sec_in_day 1726446209 [08:20:29]quantity*price = 14000 [08:20:29]sum+1 = 14001 [08:20:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 21 15.09.2024 08:20 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92573 ФПД: 280143178796530 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T082036&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92573&fm=280143178796530&tin=02508201610067®Number=0000000000091423&sum=14000 0 [08:20:30]StoreToDocumentArchive [08:20:30]shift 507 fd 92573 [08:20:30]save to /storage/0507/doc_00092573 [08:20:30]save last doc name /storage/0507/doc_00092573 to /storage/kkm_last_doc_name [08:20:30]save OK [08:20:30]Clear old archive folders... [08:20:30]ProcessDocumentItem done err = 0, tmpTLVsize=268 [08:20:30]tlvbuf is 01108FC0 [08:20:30]SAM_PROTO_ClearQueue [08:20:30]wFMCommunicate request_size=4 [08:20:30]MH_SAM_APDU [08:20:30]CAPDU: 80 09 00 00 [08:20:30]Write to MH i2c: E2 08 00 19 44 80 09 00 00 00 00 00 00 CF [08:20:30]Write i2c OK [08:20:30]MH_I2C_Read... [08:20:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:30]Read from MH i2c: E2 [08:20:30]MH_I2C_Read... [08:20:30]Read from MH i2c: E2 03 00 [08:20:30]MH_I2C_Read... [08:20:30]Read from MH i2c: E2 03 00 19 44 00 90 00 D1 [08:20:30]RAPDU: 90 00 [08:20:30]wFMCommunicate OK [08:20:30]SAM_PROTO_ClearQueue done [08:20:30]KKMCreateOFDPacket [08:20:30]OFDProtocolAddRootSTLVToBuf [08:20:30]FM_MakeSignedData [08:20:30]FM_MakeSignedData [08:20:30]SAM_PROTO_SignData [08:20:30]wFMCommunicate request_size=4 [08:20:30]MH_SAM_APDU [08:20:30]CAPDU: 80 0D 01 02 [08:20:30]Write to MH i2c: E2 08 00 1A 44 80 0D 01 02 00 00 00 00 D7 [08:20:30]Write i2c OK [08:20:30]MH_I2C_Read... [08:20:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:30]Read from MH i2c: E2 [08:20:30]MH_I2C_Read... [08:20:30]Read from MH i2c: E2 03 00 [08:20:30]MH_I2C_Read... [08:20:30]Read from MH i2c: E2 03 00 1A 44 00 90 00 D2 [08:20:30]RAPDU: 90 00 [08:20:30]wFMCommunicate OK [08:20:30]wFMCommunicate request_size=255 [08:20:30]MH_SAM_APDU [08:20:30]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 38 37 34 33 32 37 33 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 61 72 6C 62 6F 72 6F 20 54 6F 75 63 68 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 D4 98 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [08:20:30]Write to MH i2c: E2 02 01 1B 44 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 38 37 34 33 32 37 33 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 61 72 6C 62 6F 72 6F 20 54 6F 75 63 68 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 D4 98 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 BD [08:20:30]Write i2c OK [08:20:30]MH_I2C_Read... [08:20:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:30]Read from MH i2c: E2 [08:20:30]MH_I2C_Read... [08:20:30]Read from MH i2c: E2 03 00 [08:20:30]MH_I2C_Read... [08:20:30]Read from MH i2c: E2 03 00 1B 44 00 90 00 D3 [08:20:30]RAPDU: 90 00 [08:20:30]wFMCommunicate OK [08:20:30]wFMCommunicate request_size=27 [08:20:30]MH_SAM_APDU [08:20:30]CAPDU: 80 0D 02 02 16 34 36 39 32 10 04 04 00 9D 69 01 00 35 04 06 00 FE C9 EA A8 8D F2 [08:20:30]Write to MH i2c: E2 1E 00 1C 44 80 0D 02 02 16 00 34 36 39 32 10 04 04 00 9D 69 01 00 35 04 06 00 FE C9 EA A8 8D F2 00 00 11 [08:20:30]Write i2c OK [08:20:30]MH_I2C_Read... [08:20:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:30]Read from MH i2c: E2 [08:20:30]MH_I2C_Read... [08:20:30]Read from MH i2c: E2 03 00 [08:20:30]MH_I2C_Read... [08:20:30]Read from MH i2c: E2 03 00 1C 44 00 90 00 D4 [08:20:30]RAPDU: 90 00 [08:20:30]wFMCommunicate OK [08:20:30]wFMCommunicate request_size=4 [08:20:30]MH_SAM_APDU [08:20:30]CAPDU: 80 0D 03 02 [08:20:30]Write to MH i2c: E2 08 00 1D 44 80 0D 03 02 00 00 00 00 DC [08:20:30]Write i2c OK [08:20:30]MH_I2C_Read... [08:20:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:30]Read from MH i2c: E2 [08:20:30]MH_I2C_Read... [08:20:30]Read from MH i2c: E2 0B 00 [08:20:30]MH_I2C_Read... [08:20:30]Read from MH i2c: E2 0B 00 1D 44 00 37 75 48 92 F9 DC D4 B3 90 00 BF [08:20:30]RAPDU: 37 75 48 92 F9 DC D4 B3 90 00 [08:20:30]wFMCommunicate OK [08:20:30]SAM_PROTO_SignData done [08:20:30]FM_MakeSignedData done [08:20:30]CreateOFDProtocolMessage [08:20:30]wFMCommunicate request_size=4 [08:20:30]MH_SAM_APDU [08:20:30]CAPDU: 80 11 00 00 [08:20:30]Write to MH i2c: E2 08 00 1E 44 80 11 00 00 00 00 00 00 DC [08:20:30]Write i2c OK [08:20:30]MH_I2C_Read... [08:20:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:30]Read from MH i2c: E2 [08:20:30]MH_I2C_Read... [08:20:30]Read from MH i2c: E2 17 00 [08:20:30]MH_I2C_Read... [08:20:30]Read from MH i2c: E2 17 00 1E 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 33 [08:20:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:20:30]wFMCommunicate OK [08:20:30]CreateOFDProtocolMessage done [08:20:30]OFDSenderStorePacket 92573 [08:20:30]StoreOFDPacket docnum=92573 [08:20:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 20 01 00 00 0E 9C 18 01 0D 34 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 38 37 34 33 32 37 33 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 61 72 6C 62 6F 72 6F 20 54 6F 75 63 68 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 D4 98 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9D 69 01 00 35 04 06 00 FE C9 EA A8 8D F2 37 75 48 92 F9 DC D4 B3 [08:20:30]CheckFolder [08:20:30]dirname=/storage/ofd_packets [08:20:30]CheckFolder done [08:20:30]ProducePacketName [08:20:30]name=ofd_packets/00092573 [08:20:30]NVStorageSaveData ofd_packets/00092573 [08:20:30]File name is /storage/ofd_packets/00092573 [08:20:30]Write 318 bytes [08:20:30]NVStorageSaveData done [08:20:30]OFDSenderStorePacket done [08:20:30]KKMCreateOFDPacket done [08:20:30]NVStorageSaveData kkm_last_timestamp [08:20:30]File name is /storage/kkm_last_timestamp [08:20:30]Write 4 bytes [08:20:30]NVStorageSaveData done [08:20:30]ExternCall_PrintAddStr [08:20:30]wPrintStart [08:20:30]Write to MH i2c: 01 00 00 1F 44 63 [08:20:30]Write i2c OK [08:20:30]MH_I2C_Read... [08:20:30]Read from MH i2c: 01 [08:20:30]MH_I2C_Read... [08:20:30]Read from MH i2c: 01 07 00 [08:20:30]MH_I2C_Read... [08:20:30]Read from MH i2c: 01 07 00 1F 44 00 00 00 00 00 FF 0F 78 [08:20:30]RasterBufferAndPrint [08:20:30]line Счет N : (3)127467 [08:20:30]line ИНН: 02508201610067 [08:20:30]line Контрольно-Кассовый Чек [08:20:30]line ПРОДАЖА [08:20:30]line Товар: 48743273 [08:20:30]line Сигареты Marlboro Touch [08:20:30]line 1.000 * 140.00 [08:20:30]line = 140.00 [08:20:30]line НДС 12% НСП 1% [08:20:30]line > о реализуемом товаре [08:20:30]line ИТОГО: 140.00 [08:20:30]line НСП 1% : 1.24 [08:20:30]line НДС 12% : 14.87 [08:20:30]line Наличными: 140.00 [08:20:30]line Безнал.: 0.00 [08:20:30]line Место: АЗС № 5 "Партнер Нефть" [08:20:30]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [08:20:30]line СНО: Общий режим [08:20:30]line Чек 21 15.09.2024 08:20 [08:20:30]line Смена: 507 ФФД: 1.0 [08:20:30]line ЗНМ: 03000000022 [08:20:30]line РНМ: 0000000000091423 [08:20:30]line Версия ККМ: 001 [08:20:30]line ФМ: 0000000000874692 [08:20:30]line ФД: 92573 [08:20:30]line ФПД: 280143178796530 [08:20:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T082036&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92573&fm=280143178796530&tin=02508201610067®Number=0000000000091423&sum=14000 [08:20:31]OFD Sender: Processing packet 92573 [packets to send 63, broken 62] [08:20:31]ProducePacketName [08:20:31]name=ofd_packets/00092573 [08:20:31]OFD Sender: To server: pG, [08:20:31]CommunicateWithHost lk.salyk.kg:30040 [08:20:31]ConnectInit lk.salyk.kg [08:20:31]line 0 [08:20:31]written 0, free lines is 4095 [08:20:31]Connected sock=10 [08:20:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 20 01 00 00 0E 9C 18 01 0D 34 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 38 37 34 33 32 37 33 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 61 72 6C 62 6F 72 6F 20 54 6F 75 63 68 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 D4 98 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9D 69 01 00 35 04 06 00 FE C9 EA A8 8D F2 37 75 48 92 F9 DC D4 B3 [08:20:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 52 49 47 00 2F BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9D 69 01 00 F4 03 04 00 4D 41 E6 66 B6 04 01 00 00 2C AD 9A E5 51 7F D4 F7 [08:20:31]CommunicateWithHost err = 0 [08:20:31]CheckOFDResponse [08:20:31]1017 (14) - 77093643461234 [08:20:31]1041 (16) - 0000000000874692 [08:20:31]1040 (4) - 92573 [08:20:31]1012 (4) - 15.09.2024 02:07 [08:20:31]1206 (1) - 0 [08:20:31]OFD Sender: Remove packet 92573 [08:20:31]ProducePacketName [08:20:31]name=ofd_packets/00092573 [08:20:31]NVStorageDeleteData [08:20:31]Write to MH i2c: 01 00 00 47 44 8B [08:20:31]Write i2c OK [08:20:31]MH_I2C_Read... [08:20:31]Read from MH i2c: 01 [08:20:31]MH_I2C_Read... [08:20:31]Read from MH i2c: 01 07 00 [08:20:31]MH_I2C_Read... [08:20:31]Read from MH i2c: 01 07 00 47 44 00 00 00 00 00 21 0D C0 [08:20:31]RasterBufferAndPrint [08:20:31]line [08:20:31]line [08:20:31]line [08:20:31]line [08:20:31]line [08:20:31]written 0, free lines is 3367 [08:20:31]MH_Cut [08:20:31]Write to MH i2c: D1 01 00 4E 44 01 64 [08:20:31]Write i2c OK [08:20:31]MH_I2C_Read... [08:20:31]Read from MH i2c: D1 [08:20:31]MH_I2C_Read... [08:20:31]Read from MH i2c: D1 01 00 [08:20:31]MH_I2C_Read... [08:20:31]Read from MH i2c: D1 01 00 4E 44 00 63 [08:20:31]Write to MH i2c: 01 00 00 4F 44 93 [08:20:31]Write i2c OK [08:20:31]MH_I2C_Read... [08:20:31]OFD Sender: No OFD packet to send [08:20:32]*** Cut start [08:20:32]*** Purtial cut [08:20:32]*** Stage 1: CUTSNS_PIN = 1 [08:20:34]Read from MH i2c: 01 [08:20:34]MH_I2C_Read... [08:20:34]*** Stop cut motor [08:20:34]*** Cut end [08:20:34]Read from MH i2c: 01 07 00 [08:20:34]MH_I2C_Read... [08:20:34]Read from MH i2c: 01 07 00 4F 44 00 00 00 00 00 FF 0F A8 [08:20:34]process_action close_receipt done [08:20:34]requested_data is exist [08:20:34]produce_requested_data [08:20:34]requested_item fm.sn is exist - process it [08:20:34]wFMCommunicate request_size=4 [08:20:34]MH_SAM_APDU [08:20:34]CAPDU: 80 11 00 00 [08:20:34]Write to MH i2c: E2 08 00 50 44 80 11 00 00 00 00 00 00 0E [08:20:34]Write i2c OK [08:20:34]MH_I2C_Read... [08:20:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:34]Read from MH i2c: E2 [08:20:34]MH_I2C_Read... [08:20:34]Read from MH i2c: E2 17 00 [08:20:34]MH_I2C_Read... [08:20:34]Read from MH i2c: E2 17 00 50 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 65 [08:20:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:20:34]wFMCommunicate OK [08:20:34]requested_item fd.num is exist - process it [08:20:34]SAM_PROTO_GetFieldsCounters [08:20:34]wFMCommunicate request_size=4 [08:20:34]MH_SAM_APDU [08:20:34]CAPDU: 80 13 00 00 [08:20:34]Write to MH i2c: E2 08 00 51 44 80 13 00 00 00 00 00 00 11 [08:20:34]Write i2c OK [08:20:34]MH_I2C_Read... [08:20:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:34]Read from MH i2c: E2 [08:20:34]MH_I2C_Read... [08:20:34]Read from MH i2c: E2 62 00 [08:20:34]MH_I2C_Read... [08:20:34]Read from MH i2c: E2 62 00 51 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 9D 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [08:20:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 9D 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:20:34]wFMCommunicate OK [08:20:34]SAM_PROTO_GetFieldsCounters done [08:20:34]requested_item shift.num is exist - process it [08:20:34]requested_item shift.opened is exist - process it [08:20:34]req_shift_opened [08:20:34]FM_GetShiftState [08:20:34]SAM_PROTO_GetShiftState [08:20:34]wFMCommunicate request_size=4 [08:20:34]MH_SAM_APDU [08:20:34]CAPDU: 80 13 01 00 [08:20:34]Write to MH i2c: E2 08 00 52 44 80 13 01 00 00 00 00 00 13 [08:20:34]Write i2c OK [08:20:34]MH_I2C_Read... [08:20:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:34]Read from MH i2c: E2 [08:20:34]MH_I2C_Read... [08:20:34]Read from MH i2c: E2 0E 00 [08:20:34]MH_I2C_Read... [08:20:34]Read from MH i2c: E2 0E 00 52 44 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 95 [08:20:34]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [08:20:34]wFMCommunicate OK [08:20:34]SAM_PROTO_GetShiftState done [08:20:34]FM_GetShiftState done [08:20:34]req_shift_opened done [08:20:34]requested_item shift.open_date is exist - process it [08:20:34]req_shift_open_date [08:20:34]req_shift_open_date done [08:20:34]produce_requested_data done [08:20:34]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92573,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [08:20:34]process_action_free close_receipt [08:20:34]json_value_free [08:20:34]json_value_free done [08:20:34]process_json_proto returns [08:20:34]Send response to host [08:20:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92573,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [08:20:34]free response buf [08:20:34]execute_script done [08:20:34]execute_script returns [08:20:34]free content buf [08:20:34]Sock 9.Close socket [08:20:34]Sock 9.Thread stoped [08:20:36]OFD Sender: No OFD packet to send [08:20:41]OFD Sender: No OFD packet to send [08:20:46]OFD Sender: No OFD packet to send [08:20:51]OFD Sender: No OFD packet to send [08:20:56]OFD Sender: No OFD packet to send [08:21:01]OFD Sender: No OFD packet to send [08:21:06]OFD Sender: No OFD packet to send [08:21:11]OFD Sender: No OFD packet to send [08:21:17]OFD Sender: No OFD packet to send [08:21:22]OFD Sender: No OFD packet to send [08:21:27]OFD Sender: No OFD packet to send [08:21:32]OFD Sender: No OFD packet to send [08:21:37]OFD Sender: No OFD packet to send [08:21:42]OFD Sender: No OFD packet to send [08:21:47]OFD Sender: No OFD packet to send [08:21:52]OFD Sender: No OFD packet to send [08:21:57]OFD Sender: No OFD packet to send [08:22:02]OFD Sender: No OFD packet to send [08:22:07]OFD Sender: No OFD packet to send [08:22:12]OFD Sender: No OFD packet to send [08:22:17]OFD Sender: No OFD packet to send [08:22:22]OFD Sender: No OFD packet to send [08:22:27]OFD Sender: No OFD packet to send [08:22:32]OFD Sender: No OFD packet to send [08:22:37]OFD Sender: No OFD packet to send [08:22:42]OFD Sender: No OFD packet to send [08:22:47]OFD Sender: No OFD packet to send [08:22:52]OFD Sender: No OFD packet to send [08:22:57]OFD Sender: No OFD packet to send [08:23:02]OFD Sender: No OFD packet to send [08:23:07]OFD Sender: No OFD packet to send [08:23:12]OFD Sender: No OFD packet to send [08:23:17]OFD Sender: No OFD packet to send [08:23:22]OFD Sender: No OFD packet to send [08:23:27]OFD Sender: No OFD packet to send [08:23:32]OFD Sender: No OFD packet to send [08:23:37]OFD Sender: No OFD packet to send [08:23:42]OFD Sender: No OFD packet to send [08:23:47]OFD Sender: No OFD packet to send [08:23:52]OFD Sender: No OFD packet to send [08:23:57]OFD Sender: No OFD packet to send [08:24:02]OFD Sender: No OFD packet to send [08:24:07]OFD Sender: No OFD packet to send [08:24:12]OFD Sender: No OFD packet to send [08:24:17]OFD Sender: No OFD packet to send [08:24:22]OFD Sender: No OFD packet to send [08:24:27]OFD Sender: No OFD packet to send [08:24:32]OFD Sender: No OFD packet to send [08:24:37]OFD Sender: No OFD packet to send [08:24:42]OFD Sender: No OFD packet to send [08:24:47]OFD Sender: No OFD packet to send [08:24:52]OFD Sender: No OFD packet to send [08:24:57]OFD Sender: No OFD packet to send [08:25:02]OFD Sender: No OFD packet to send [08:25:07]OFD Sender: No OFD packet to send [08:25:12]OFD Sender: No OFD packet to send [08:25:17]OFD Sender: No OFD packet to send [08:25:22]OFD Sender: No OFD packet to send [08:25:27]OFD Sender: No OFD packet to send [08:25:32]OFD Sender: No OFD packet to send [08:25:37]OFD Sender: No OFD packet to send [08:25:42]OFD Sender: No OFD packet to send [08:25:47]OFD Sender: No OFD packet to send [08:25:52]OFD Sender: No OFD packet to send [08:25:57]OFD Sender: No OFD packet to send [08:26:02]OFD Sender: No OFD packet to send [08:26:07]OFD Sender: No OFD packet to send [08:26:12]OFD Sender: No OFD packet to send [08:26:17]OFD Sender: No OFD packet to send [08:26:22]OFD Sender: No OFD packet to send [08:26:27]OFD Sender: No OFD packet to send [08:26:32]OFD Sender: No OFD packet to send [08:26:37]OFD Sender: No OFD packet to send [08:26:42]OFD Sender: No OFD packet to send [08:26:47]OFD Sender: No OFD packet to send [08:26:52]OFD Sender: No OFD packet to send [08:26:57]OFD Sender: No OFD packet to send [08:27:02]OFD Sender: No OFD packet to send [08:27:07]OFD Sender: No OFD packet to send [08:27:12]OFD Sender: No OFD packet to send [08:27:17]OFD Sender: No OFD packet to send [08:27:22]OFD Sender: No OFD packet to send [08:27:27]OFD Sender: No OFD packet to send [08:27:32]OFD Sender: No OFD packet to send [08:27:37]OFD Sender: No OFD packet to send [08:27:42]OFD Sender: No OFD packet to send [08:27:47]OFD Sender: No OFD packet to send [08:27:52]OFD Sender: No OFD packet to send [08:27:57]OFD Sender: No OFD packet to send [08:28:02]OFD Sender: No OFD packet to send [08:28:07]OFD Sender: No OFD packet to send [08:28:12]OFD Sender: No OFD packet to send [08:28:17]OFD Sender: No OFD packet to send [08:28:22]OFD Sender: No OFD packet to send [08:28:27]OFD Sender: No OFD packet to send [08:28:32]OFD Sender: No OFD packet to send [08:28:37]OFD Sender: No OFD packet to send [08:28:42]OFD Sender: No OFD packet to send [08:28:47]OFD Sender: No OFD packet to send [08:28:52]OFD Sender: No OFD packet to send [08:28:57]OFD Sender: No OFD packet to send [08:29:02]OFD Sender: No OFD packet to send [08:29:07]OFD Sender: No OFD packet to send [08:29:12]OFD Sender: No OFD packet to send [08:29:17]OFD Sender: No OFD packet to send [08:29:22]OFD Sender: No OFD packet to send [08:29:27]OFD Sender: No OFD packet to send [08:29:32]OFD Sender: No OFD packet to send [08:29:37]OFD Sender: No OFD packet to send [08:29:42]OFD Sender: No OFD packet to send [08:29:47]OFD Sender: No OFD packet to send [08:29:52]OFD Sender: No OFD packet to send [08:29:57]OFD Sender: No OFD packet to send [08:30:02]OFD Sender: No OFD packet to send [08:30:07]OFD Sender: No OFD packet to send [08:30:12]OFD Sender: No OFD packet to send [08:30:17]OFD Sender: No OFD packet to send [08:30:22]OFD Sender: No OFD packet to send [08:30:27]OFD Sender: No OFD packet to send [08:30:32]OFD Sender: No OFD packet to send [08:30:37]OFD Sender: No OFD packet to send [08:30:42]OFD Sender: No OFD packet to send [08:30:47]OFD Sender: No OFD packet to send [08:30:52]OFD Sender: No OFD packet to send [08:30:57]OFD Sender: No OFD packet to send [08:31:02]OFD Sender: No OFD packet to send [08:31:07]OFD Sender: No OFD packet to send [08:31:12]OFD Sender: No OFD packet to send [08:31:17]OFD Sender: No OFD packet to send [08:31:22]OFD Sender: No OFD packet to send [08:31:27]OFD Sender: No OFD packet to send [08:31:32]OFD Sender: No OFD packet to send [08:31:37]OFD Sender: No OFD packet to send [08:31:42]OFD Sender: No OFD packet to send [08:31:47]OFD Sender: No OFD packet to send [08:31:52]OFD Sender: No OFD packet to send [08:31:57]OFD Sender: No OFD packet to send [08:32:02]OFD Sender: No OFD packet to send [08:32:07]OFD Sender: No OFD packet to send [08:32:12]OFD Sender: No OFD packet to send [08:32:17]OFD Sender: No OFD packet to send [08:32:22]OFD Sender: No OFD packet to send [08:32:27]OFD Sender: No OFD packet to send [08:32:32]OFD Sender: No OFD packet to send [08:32:37]OFD Sender: No OFD packet to send [08:32:42]OFD Sender: No OFD packet to send [08:32:47]OFD Sender: No OFD packet to send [08:32:52]OFD Sender: No OFD packet to send [08:32:57]OFD Sender: No OFD packet to send [08:33:02]OFD Sender: No OFD packet to send [08:33:07]OFD Sender: No OFD packet to send [08:33:12]OFD Sender: No OFD packet to send [08:33:17]OFD Sender: No OFD packet to send [08:33:22]OFD Sender: No OFD packet to send [08:33:27]OFD Sender: No OFD packet to send [08:33:32]OFD Sender: No OFD packet to send [08:33:37]OFD Sender: No OFD packet to send [08:33:42]OFD Sender: No OFD packet to send [08:33:47]OFD Sender: No OFD packet to send [08:33:52]OFD Sender: No OFD packet to send [08:33:57]OFD Sender: No OFD packet to send [08:34:02]OFD Sender: No OFD packet to send [08:34:07]OFD Sender: No OFD packet to send [08:34:12]OFD Sender: No OFD packet to send [08:34:17]OFD Sender: No OFD packet to send [08:34:22]OFD Sender: No OFD packet to send [08:34:27]OFD Sender: No OFD packet to send [08:34:32]OFD Sender: No OFD packet to send [08:34:37]OFD Sender: No OFD packet to send [08:34:42]OFD Sender: No OFD packet to send [08:34:47]OFD Sender: No OFD packet to send [08:34:52]OFD Sender: No OFD packet to send [08:34:57]OFD Sender: No OFD packet to send [08:35:02]OFD Sender: No OFD packet to send [08:35:07]OFD Sender: No OFD packet to send [08:35:12]OFD Sender: No OFD packet to send [08:35:17]OFD Sender: No OFD packet to send [08:35:22]OFD Sender: No OFD packet to send [08:35:27]OFD Sender: No OFD packet to send [08:35:32]OFD Sender: No OFD packet to send [08:35:37]OFD Sender: No OFD packet to send [08:35:42]OFD Sender: No OFD packet to send [08:35:47]OFD Sender: No OFD packet to send [08:35:52]OFD Sender: No OFD packet to send [08:35:57]OFD Sender: No OFD packet to send [08:36:02]OFD Sender: No OFD packet to send [08:36:07]OFD Sender: No OFD packet to send [08:36:12]OFD Sender: No OFD packet to send [08:36:17]OFD Sender: No OFD packet to send [08:36:22]OFD Sender: No OFD packet to send [08:36:27]OFD Sender: No OFD packet to send [08:36:32]OFD Sender: No OFD packet to send [08:36:37]OFD Sender: No OFD packet to send [08:36:42]OFD Sender: No OFD packet to send [08:36:47]OFD Sender: No OFD packet to send [08:36:52]OFD Sender: No OFD packet to send [08:36:57]OFD Sender: No OFD packet to send [08:37:02]OFD Sender: No OFD packet to send [08:37:07]OFD Sender: No OFD packet to send [08:37:12]OFD Sender: No OFD packet to send [08:37:17]OFD Sender: No OFD packet to send [08:37:22]OFD Sender: No OFD packet to send [08:37:27]OFD Sender: No OFD packet to send [08:37:32]OFD Sender: No OFD packet to send [08:37:37]OFD Sender: No OFD packet to send [08:37:42]OFD Sender: No OFD packet to send [08:37:47]OFD Sender: No OFD packet to send [08:37:52]OFD Sender: No OFD packet to send [08:37:57]OFD Sender: No OFD packet to send [08:38:02]OFD Sender: No OFD packet to send [08:38:07]OFD Sender: No OFD packet to send [08:38:12]OFD Sender: No OFD packet to send [08:38:17]OFD Sender: No OFD packet to send [08:38:22]OFD Sender: No OFD packet to send [08:38:27]OFD Sender: No OFD packet to send [08:38:32]OFD Sender: No OFD packet to send [08:38:37]OFD Sender: No OFD packet to send [08:38:43]OFD Sender: No OFD packet to send [08:38:48]OFD Sender: No OFD packet to send [08:38:53]OFD Sender: No OFD packet to send [08:38:58]OFD Sender: No OFD packet to send [08:39:03]OFD Sender: No OFD packet to send [08:39:08]OFD Sender: No OFD packet to send [08:39:13]OFD Sender: No OFD packet to send [08:39:18]OFD Sender: No OFD packet to send [08:39:23]OFD Sender: No OFD packet to send [08:39:28]OFD Sender: No OFD packet to send [08:39:33]OFD Sender: No OFD packet to send [08:39:38]OFD Sender: No OFD packet to send [08:39:43]OFD Sender: No OFD packet to send [08:39:48]OFD Sender: No OFD packet to send [08:39:53]OFD Sender: No OFD packet to send [08:39:58]OFD Sender: No OFD packet to send [08:40:03]OFD Sender: No OFD packet to send [08:40:08]OFD Sender: No OFD packet to send [08:40:13]OFD Sender: No OFD packet to send [08:40:18]OFD Sender: No OFD packet to send [08:40:23]OFD Sender: No OFD packet to send [08:40:28]OFD Sender: No OFD packet to send [08:40:33]OFD Sender: No OFD packet to send [08:40:38]OFD Sender: No OFD packet to send [08:40:43]OFD Sender: No OFD packet to send [08:40:48]OFD Sender: No OFD packet to send [08:40:53]OFD Sender: No OFD packet to send [08:40:58]OFD Sender: No OFD packet to send [08:41:03]OFD Sender: No OFD packet to send [08:41:08]OFD Sender: No OFD packet to send [08:41:13]OFD Sender: No OFD packet to send [08:41:18]OFD Sender: No OFD packet to send [08:41:23]OFD Sender: No OFD packet to send [08:41:28]OFD Sender: No OFD packet to send [08:41:33]OFD Sender: No OFD packet to send [08:41:38]OFD Sender: No OFD packet to send [08:41:43]OFD Sender: No OFD packet to send [08:41:48]OFD Sender: No OFD packet to send [08:41:53]OFD Sender: No OFD packet to send [08:41:58]OFD Sender: No OFD packet to send [08:42:03]OFD Sender: No OFD packet to send [08:42:08]OFD Sender: No OFD packet to send [08:42:13]OFD Sender: No OFD packet to send [08:42:18]OFD Sender: No OFD packet to send [08:42:23]OFD Sender: No OFD packet to send [08:42:28]OFD Sender: No OFD packet to send [08:42:33]OFD Sender: No OFD packet to send [08:42:38]OFD Sender: No OFD packet to send [08:42:43]OFD Sender: No OFD packet to send [08:42:48]OFD Sender: No OFD packet to send [08:42:53]OFD Sender: No OFD packet to send [08:42:58]OFD Sender: No OFD packet to send [08:43:03]OFD Sender: No OFD packet to send [08:43:08]OFD Sender: No OFD packet to send [08:43:13]OFD Sender: No OFD packet to send [08:43:18]OFD Sender: No OFD packet to send [08:43:23]OFD Sender: No OFD packet to send [08:43:28]OFD Sender: No OFD packet to send [08:43:33]OFD Sender: No OFD packet to send [08:43:38]OFD Sender: No OFD packet to send [08:43:43]OFD Sender: No OFD packet to send [08:43:48]OFD Sender: No OFD packet to send [08:43:53]OFD Sender: No OFD packet to send [08:43:58]OFD Sender: No OFD packet to send [08:44:03]OFD Sender: No OFD packet to send [08:44:08]OFD Sender: No OFD packet to send [08:44:13]OFD Sender: No OFD packet to send [08:44:18]OFD Sender: No OFD packet to send [08:44:23]OFD Sender: No OFD packet to send [08:44:28]OFD Sender: No OFD packet to send [08:44:33]OFD Sender: No OFD packet to send [08:44:38]OFD Sender: No OFD packet to send [08:44:43]OFD Sender: No OFD packet to send [08:44:48]OFD Sender: No OFD packet to send [08:44:53]OFD Sender: No OFD packet to send [08:44:58]OFD Sender: No OFD packet to send [08:45:03]OFD Sender: No OFD packet to send [08:45:08]OFD Sender: No OFD packet to send [08:45:13]OFD Sender: No OFD packet to send [08:45:18]OFD Sender: No OFD packet to send [08:45:23]OFD Sender: No OFD packet to send [08:45:28]OFD Sender: No OFD packet to send [08:45:33]OFD Sender: No OFD packet to send [08:45:38]OFD Sender: No OFD packet to send [08:45:43]OFD Sender: No OFD packet to send [08:45:48]OFD Sender: No OFD packet to send [08:45:53]OFD Sender: No OFD packet to send [08:45:58]OFD Sender: No OFD packet to send [08:46:03]OFD Sender: No OFD packet to send [08:46:08]OFD Sender: No OFD packet to send [08:46:13]OFD Sender: No OFD packet to send [08:46:18]OFD Sender: No OFD packet to send [08:46:23]OFD Sender: No OFD packet to send [08:46:28]OFD Sender: No OFD packet to send [08:46:33]OFD Sender: No OFD packet to send [08:46:38]OFD Sender: No OFD packet to send [08:46:43]OFD Sender: No OFD packet to send [08:46:48]OFD Sender: No OFD packet to send [08:46:53]OFD Sender: No OFD packet to send [08:46:58]OFD Sender: No OFD packet to send [08:47:03]OFD Sender: No OFD packet to send [08:47:08]OFD Sender: No OFD packet to send [08:47:13]OFD Sender: No OFD packet to send [08:47:18]OFD Sender: No OFD packet to send [08:47:23]OFD Sender: No OFD packet to send [08:47:28]OFD Sender: No OFD packet to send [08:47:33]OFD Sender: No OFD packet to send [08:47:38]OFD Sender: No OFD packet to send [08:47:43]OFD Sender: No OFD packet to send [08:47:48]OFD Sender: No OFD packet to send [08:47:53]OFD Sender: No OFD packet to send [08:47:58]OFD Sender: No OFD packet to send [08:48:03]OFD Sender: No OFD packet to send [08:48:08]OFD Sender: No OFD packet to send [08:48:13]OFD Sender: No OFD packet to send [08:48:18]OFD Sender: No OFD packet to send [08:48:23]OFD Sender: No OFD packet to send [08:48:28]OFD Sender: No OFD packet to send [08:48:33]OFD Sender: No OFD packet to send [08:48:38]OFD Sender: No OFD packet to send [08:48:43]OFD Sender: No OFD packet to send [08:48:48]OFD Sender: No OFD packet to send [08:48:53]OFD Sender: No OFD packet to send [08:48:58]OFD Sender: No OFD packet to send [08:49:03]OFD Sender: No OFD packet to send [08:49:08]OFD Sender: No OFD packet to send [08:49:13]OFD Sender: No OFD packet to send [08:49:18]OFD Sender: No OFD packet to send [08:49:23]OFD Sender: No OFD packet to send [08:49:28]OFD Sender: No OFD packet to send [08:49:33]OFD Sender: No OFD packet to send [08:49:38]OFD Sender: No OFD packet to send [08:49:43]OFD Sender: No OFD packet to send [08:49:48]OFD Sender: No OFD packet to send [08:49:53]OFD Sender: No OFD packet to send [08:49:58]OFD Sender: No OFD packet to send [08:50:03]OFD Sender: No OFD packet to send [08:50:08]OFD Sender: No OFD packet to send [08:50:13]OFD Sender: No OFD packet to send [08:50:18]OFD Sender: No OFD packet to send [08:50:23]OFD Sender: No OFD packet to send [08:50:28]OFD Sender: No OFD packet to send [08:50:33]OFD Sender: No OFD packet to send [08:50:38]OFD Sender: No OFD packet to send [08:50:43]OFD Sender: No OFD packet to send [08:50:48]OFD Sender: No OFD packet to send [08:50:53]OFD Sender: No OFD packet to send [08:50:58]OFD Sender: No OFD packet to send [08:51:03]OFD Sender: No OFD packet to send [08:51:08]OFD Sender: No OFD packet to send [08:51:13]OFD Sender: No OFD packet to send [08:51:18]OFD Sender: No OFD packet to send [08:51:23]OFD Sender: No OFD packet to send [08:51:28]OFD Sender: No OFD packet to send [08:51:33]OFD Sender: No OFD packet to send [08:51:38]OFD Sender: No OFD packet to send [08:51:43]OFD Sender: No OFD packet to send [08:51:48]OFD Sender: No OFD packet to send [08:51:53]OFD Sender: No OFD packet to send [08:51:58]OFD Sender: No OFD packet to send [08:52:03]OFD Sender: No OFD packet to send [08:52:08]OFD Sender: No OFD packet to send [08:52:13]OFD Sender: No OFD packet to send [08:52:18]OFD Sender: No OFD packet to send [08:52:23]OFD Sender: No OFD packet to send [08:52:28]OFD Sender: No OFD packet to send [08:52:33]OFD Sender: No OFD packet to send [08:52:38]OFD Sender: No OFD packet to send [08:52:43]OFD Sender: No OFD packet to send [08:52:48]OFD Sender: No OFD packet to send [08:52:53]OFD Sender: No OFD packet to send [08:52:58]OFD Sender: No OFD packet to send [08:53:03]OFD Sender: No OFD packet to send [08:53:08]OFD Sender: No OFD packet to send [08:53:13]OFD Sender: No OFD packet to send [08:53:18]OFD Sender: No OFD packet to send [08:53:23]OFD Sender: No OFD packet to send [08:53:28]OFD Sender: No OFD packet to send [08:53:33]OFD Sender: No OFD packet to send [08:53:38]OFD Sender: No OFD packet to send [08:53:43]OFD Sender: No OFD packet to send [08:53:48]OFD Sender: No OFD packet to send [08:53:53]OFD Sender: No OFD packet to send [08:53:58]OFD Sender: No OFD packet to send [08:54:03]OFD Sender: No OFD packet to send [08:54:08]OFD Sender: No OFD packet to send [08:54:13]OFD Sender: No OFD packet to send [08:54:18]OFD Sender: No OFD packet to send [08:54:23]OFD Sender: No OFD packet to send [08:54:28]OFD Sender: No OFD packet to send [08:54:33]OFD Sender: No OFD packet to send [08:54:38]OFD Sender: No OFD packet to send [08:54:43]OFD Sender: No OFD packet to send [08:54:48]OFD Sender: No OFD packet to send [08:54:53]OFD Sender: No OFD packet to send [08:54:58]OFD Sender: No OFD packet to send [08:55:03]OFD Sender: No OFD packet to send [08:55:08]OFD Sender: No OFD packet to send [08:55:13]OFD Sender: No OFD packet to send [08:55:18]OFD Sender: No OFD packet to send [08:55:23]OFD Sender: No OFD packet to send [08:55:28]OFD Sender: No OFD packet to send [08:55:33]OFD Sender: No OFD packet to send [08:55:38]OFD Sender: No OFD packet to send [08:55:43]OFD Sender: No OFD packet to send [08:55:48]OFD Sender: No OFD packet to send [08:55:53]OFD Sender: No OFD packet to send [08:55:59]OFD Sender: No OFD packet to send [08:56:04]OFD Sender: No OFD packet to send [08:56:09]OFD Sender: No OFD packet to send [08:56:14]OFD Sender: No OFD packet to send [08:56:19]OFD Sender: No OFD packet to send [08:56:24]OFD Sender: No OFD packet to send [08:56:29]OFD Sender: No OFD packet to send [08:56:34]OFD Sender: No OFD packet to send [08:56:39]OFD Sender: No OFD packet to send [08:56:44]OFD Sender: No OFD packet to send [08:56:49]OFD Sender: No OFD packet to send [08:56:54]OFD Sender: No OFD packet to send [08:56:59]OFD Sender: No OFD packet to send [08:57:04]OFD Sender: No OFD packet to send [08:57:09]OFD Sender: No OFD packet to send [08:57:14]OFD Sender: No OFD packet to send [08:57:19]OFD Sender: No OFD packet to send [08:57:24]OFD Sender: No OFD packet to send [08:57:29]OFD Sender: No OFD packet to send [08:57:34]OFD Sender: No OFD packet to send [08:57:39]OFD Sender: No OFD packet to send [08:57:44]OFD Sender: No OFD packet to send [08:57:49]OFD Sender: No OFD packet to send [08:57:54]OFD Sender: No OFD packet to send [08:57:59]OFD Sender: No OFD packet to send [08:58:04]OFD Sender: No OFD packet to send [08:58:09]OFD Sender: No OFD packet to send [08:58:14]OFD Sender: No OFD packet to send [08:58:19]OFD Sender: No OFD packet to send [08:58:24]OFD Sender: No OFD packet to send [08:58:29]OFD Sender: No OFD packet to send [08:58:34]OFD Sender: No OFD packet to send [08:58:39]OFD Sender: No OFD packet to send [08:58:44]OFD Sender: No OFD packet to send [08:58:49]OFD Sender: No OFD packet to send [08:58:54]OFD Sender: No OFD packet to send [08:58:59]OFD Sender: No OFD packet to send [08:59:04]OFD Sender: No OFD packet to send [08:59:09]OFD Sender: No OFD packet to send [08:59:14]OFD Sender: No OFD packet to send [08:59:19]OFD Sender: No OFD packet to send [08:59:24]OFD Sender: No OFD packet to send [08:59:29]OFD Sender: No OFD packet to send [08:59:34]OFD Sender: No OFD packet to send [08:59:39]OFD Sender: No OFD packet to send [08:59:44]OFD Sender: No OFD packet to send [08:59:47]accept exits with 8 [08:59:47]New connection [08:59:47]New thread 3066658148 created [08:59:47]Thread 3066801508 joined [08:59:47]Waiting for new connection... [08:59:47] Sock 8.Parse request [08:59:47]Sock 8.Check first char [08:59:47]Sock 8.First char is OK [08:59:47]request: POST /json_proto HTTP/1.0 [08:59:47]Method: POST [08:59:47]URL: /json_proto [08:59:47]Method is POST - this is cgi request [08:59:47]url: /json_proto [08:59:47]query_string will be loaded in cgi processing [08:59:47]execute_cgi json_proto POST (null) [08:59:47]execute_cgi path=json_proto method=POST [08:59:47]POST find Content-Length [08:59:47]Host: 172.17.57.71:8080 [08:59:47]Content-Length: 621 [08:59:47]Content-Type: application/json [08:59:47] [08:59:47]POST finish read [08:59:47]Found Content-Length = 621 [08:59:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127468", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:47]execute_script... [08:59:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127468", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:47]POST & json_proto [08:59:47]process_json_proto [08:59:47]json parsed OK: [08:59:47]protocol is kg_v1.0 [08:59:47]action value=close_receipt [08:59:47]process_action close_receipt [08:59:47]cmd_close_receipt [08:59:47]MH_GetDate [08:59:47]Write to MH i2c: F0 00 00 53 44 86 [08:59:47]Write i2c OK [08:59:47]MH_I2C_Read... [08:59:47]Read from MH i2c: F0 [08:59:47]MH_I2C_Read... [08:59:47]Read from MH i2c: F0 09 00 [08:59:47]MH_I2C_Read... [08:59:47]Read from MH i2c: F0 09 00 53 44 00 0A A2 E6 66 33 3A A4 66 FE [08:59:47]GetLastDocTimeStamp 1726388436 [08:59:47]current date 1726390794 [08:59:47]FM_GetShiftState [08:59:47]SAM_PROTO_GetShiftState [08:59:47]wFMCommunicate request_size=4 [08:59:47]MH_SAM_APDU [08:59:47]CAPDU: 80 13 01 00 [08:59:47]Write to MH i2c: E2 08 00 54 44 80 13 01 00 00 00 00 00 15 [08:59:47]Write i2c OK [08:59:47]MH_I2C_Read... [08:59:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:47]Read from MH i2c: E2 [08:59:47]MH_I2C_Read... [08:59:47]Read from MH i2c: E2 0E 00 [08:59:47]MH_I2C_Read... [08:59:47]Read from MH i2c: E2 0E 00 54 44 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 97 [08:59:47]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [08:59:47]wFMCommunicate OK [08:59:47]SAM_PROTO_GetShiftState done [08:59:47]FM_GetShiftState done [08:59:47]opened in 1726359809 [08:59:47]opened+sec_in_day 1726446209 [08:59:47]quantity*price = 14400 [08:59:47]sum+1 = 14401 [08:59:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 22 15.09.2024 08:59 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92574 ФПД: 181924247960028 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T085955&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92574&fm=181924247960028&tin=02508201610067®Number=0000000000091423&sum=14400 0 [08:59:48]StoreToDocumentArchive [08:59:48]shift 507 fd 92574 [08:59:48]save to /storage/0507/doc_00092574 [08:59:48]save last doc name /storage/0507/doc_00092574 to /storage/kkm_last_doc_name [08:59:48]save OK [08:59:48]Clear old archive folders... [08:59:48]ProcessDocumentItem done err = 0, tmpTLVsize=273 [08:59:48]tlvbuf is 00F9FC80 [08:59:48]SAM_PROTO_ClearQueue [08:59:48]wFMCommunicate request_size=4 [08:59:48]MH_SAM_APDU [08:59:48]CAPDU: 80 09 00 00 [08:59:48]Write to MH i2c: E2 08 00 61 44 80 09 00 00 00 00 00 00 17 [08:59:48]Write i2c OK [08:59:48]MH_I2C_Read... [08:59:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:48]Read from MH i2c: E2 [08:59:48]MH_I2C_Read... [08:59:48]Read from MH i2c: E2 03 00 [08:59:48]MH_I2C_Read... [08:59:48]Read from MH i2c: E2 03 00 61 44 00 90 00 19 [08:59:48]RAPDU: 90 00 [08:59:48]wFMCommunicate OK [08:59:48]SAM_PROTO_ClearQueue done [08:59:48]KKMCreateOFDPacket [08:59:48]OFDProtocolAddRootSTLVToBuf [08:59:48]FM_MakeSignedData [08:59:48]FM_MakeSignedData [08:59:48]SAM_PROTO_SignData [08:59:48]wFMCommunicate request_size=4 [08:59:48]MH_SAM_APDU [08:59:48]CAPDU: 80 0D 01 02 [08:59:48]Write to MH i2c: E2 08 00 62 44 80 0D 01 02 00 00 00 00 1F [08:59:48]Write i2c OK [08:59:48]MH_I2C_Read... [08:59:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:48]Read from MH i2c: E2 [08:59:48]MH_I2C_Read... [08:59:48]Read from MH i2c: E2 03 00 [08:59:48]MH_I2C_Read... [08:59:48]Read from MH i2c: E2 03 00 62 44 00 90 00 1A [08:59:48]RAPDU: 90 00 [08:59:48]wFMCommunicate OK [08:59:48]wFMCommunicate request_size=255 [08:59:48]MH_SAM_APDU [08:59:48]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 0B A2 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 [08:59:48]Write to MH i2c: E2 02 01 63 44 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 0B A2 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 00 00 7A [08:59:48]Write i2c OK [08:59:48]MH_I2C_Read... [08:59:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:48]Read from MH i2c: E2 [08:59:48]MH_I2C_Read... [08:59:48]Read from MH i2c: E2 03 00 [08:59:48]MH_I2C_Read... [08:59:48]Read from MH i2c: E2 03 00 63 44 00 90 00 1B [08:59:48]RAPDU: 90 00 [08:59:48]wFMCommunicate OK [08:59:48]wFMCommunicate request_size=32 [08:59:48]MH_SAM_APDU [08:59:48]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 39 32 10 04 04 00 9E 69 01 00 35 04 06 00 A5 75 8A 2C F9 DC [08:59:48]Write to MH i2c: E2 23 00 64 44 80 0D 02 02 1B 00 30 30 30 38 37 34 36 39 32 10 04 04 00 9E 69 01 00 35 04 06 00 A5 75 8A 2C F9 DC 00 00 30 [08:59:48]Write i2c OK [08:59:48]MH_I2C_Read... [08:59:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:48]Read from MH i2c: E2 [08:59:48]MH_I2C_Read... [08:59:48]Read from MH i2c: E2 03 00 [08:59:48]MH_I2C_Read... [08:59:48]Read from MH i2c: E2 03 00 64 44 00 90 00 1C [08:59:48]RAPDU: 90 00 [08:59:48]wFMCommunicate OK [08:59:48]wFMCommunicate request_size=4 [08:59:48]MH_SAM_APDU [08:59:48]CAPDU: 80 0D 03 02 [08:59:48]Write to MH i2c: E2 08 00 65 44 80 0D 03 02 00 00 00 00 24 [08:59:48]Write i2c OK [08:59:48]MH_I2C_Read... [08:59:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:48]Read from MH i2c: E2 [08:59:48]MH_I2C_Read... [08:59:48]Read from MH i2c: E2 0B 00 [08:59:48]MH_I2C_Read... [08:59:48]Read from MH i2c: E2 0B 00 65 44 00 58 A2 BA 33 6C 64 0E 26 90 00 10 [08:59:48]RAPDU: 58 A2 BA 33 6C 64 0E 26 90 00 [08:59:48]wFMCommunicate OK [08:59:48]SAM_PROTO_SignData done [08:59:48]FM_MakeSignedData done [08:59:48]CreateOFDProtocolMessage [08:59:48]wFMCommunicate request_size=4 [08:59:48]MH_SAM_APDU [08:59:48]CAPDU: 80 11 00 00 [08:59:48]Write to MH i2c: E2 08 00 66 44 80 11 00 00 00 00 00 00 24 [08:59:48]Write i2c OK [08:59:48]MH_I2C_Read... [08:59:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:48]Read from MH i2c: E2 [08:59:48]MH_I2C_Read... [08:59:48]Read from MH i2c: E2 17 00 [08:59:48]MH_I2C_Read... [08:59:48]Read from MH i2c: E2 17 00 66 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 7B [08:59:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:59:48]wFMCommunicate OK [08:59:48]CreateOFDProtocolMessage done [08:59:48]OFDSenderStorePacket 92574 [08:59:48]StoreOFDPacket docnum=92574 [08:59:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 25 01 00 00 BB A1 1D 01 07 C7 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 0B A2 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9E 69 01 00 35 04 06 00 A5 75 8A 2C F9 DC 58 A2 BA 33 6C 64 0E 26 [08:59:48]CheckFolder [08:59:48]dirname=/storage/ofd_packets [08:59:48]CheckFolder done [08:59:48]ProducePacketName [08:59:48]name=ofd_packets/00092574 [08:59:48]NVStorageSaveData ofd_packets/00092574 [08:59:48]File name is /storage/ofd_packets/00092574 [08:59:48]Write 323 bytes [08:59:48]NVStorageSaveData done [08:59:48]OFDSenderStorePacket done [08:59:48]KKMCreateOFDPacket done [08:59:48]NVStorageSaveData kkm_last_timestamp [08:59:48]File name is /storage/kkm_last_timestamp [08:59:48]Write 4 bytes [08:59:48]NVStorageSaveData done [08:59:48]ExternCall_PrintAddStr [08:59:48]wPrintStart [08:59:48]Write to MH i2c: 01 00 00 67 44 AB [08:59:48]OFD Sender: Processing packet 92574 [packets to send 63, broken 62] [08:59:48]ProducePacketName [08:59:48]name=ofd_packets/00092574 [08:59:48]Write i2c OK [08:59:48]MH_I2C_Read... [08:59:49]OFD Sender: To server: pG, [08:59:49]CommunicateWithHost lk.salyk.kg:30040 [08:59:49]ConnectInit lk.salyk.kg [08:59:49]Read from MH i2c: 01 [08:59:49]MH_I2C_Read... [08:59:49]Read from MH i2c: 01 07 00 [08:59:49]MH_I2C_Read... [08:59:49]Read from MH i2c: 01 07 00 67 44 00 00 00 00 00 FF 0F C0 [08:59:49]RasterBufferAndPrint [08:59:49]line Счет N : (3)127468 [08:59:49]line ИНН: 02508201610067 [08:59:49]line Контрольно-Кассовый Чек [08:59:49]line ПРОДАЖА [08:59:49]line Товар: 48747059 [08:59:49]line Сигареты Winston Legend Blue [08:59:49]line 1.000 * 144.00 [08:59:49]line = 144.00 [08:59:49]line НДС 12% НСП 1% [08:59:49]line > о реализуемом товаре [08:59:49]line ИТОГО: 144.00 [08:59:49]line НСП 1% : 1.27 [08:59:49]line НДС 12% : 15.29 [08:59:49]line Наличными: 144.00 [08:59:49]line Безнал.: 0.00 [08:59:49]line Место: АЗС № 5 "Партнер Нефть" [08:59:49]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [08:59:49]line СНО: Общий режим [08:59:49]line Чек 22 15.09.2024 08:59 [08:59:49]line Смена: 507 ФФД: 1.0 [08:59:49]line ЗНМ: 03000000022 [08:59:49]line РНМ: 0000000000091423 [08:59:49]line Версия ККМ: 001 [08:59:49]line ФМ: 0000000000874692 [08:59:49]line ФД: 92574 [08:59:49]line ФПД: 181924247960028 [08:59:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T085955&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92574&fm=181924247960028&tin=02508201610067®Number=0000000000091423&sum=14400 [08:59:49]line 0 [08:59:49]written 0, free lines is 4095 [08:59:49]Connected sock=10 [08:59:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 25 01 00 00 BB A1 1D 01 07 C7 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 0B A2 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9E 69 01 00 35 04 06 00 A5 75 8A 2C F9 DC 58 A2 BA 33 6C 64 0E 26 [08:59:49]Write to MH i2c: 01 00 00 90 44 D4 [08:59:49]Write i2c OK [08:59:49]MH_I2C_Read... [08:59:49]Read from MH i2c: 01 [08:59:49]MH_I2C_Read... [08:59:49]Read from MH i2c: 01 07 00 [08:59:49]MH_I2C_Read... [08:59:49]Read from MH i2c: 01 07 00 90 44 00 00 00 00 00 0B 0D F3 [08:59:49]RasterBufferAndPrint [08:59:49]line [08:59:49]line [08:59:49]line [08:59:49]line [08:59:49]line [08:59:49]written 0, free lines is 3346 [08:59:49]MH_Cut [08:59:49]Write to MH i2c: D1 01 00 97 44 01 AD [08:59:49]Write i2c OK [08:59:49]MH_I2C_Read... [08:59:49]Read from MH i2c: D1 [08:59:49]MH_I2C_Read... [08:59:49]Read from MH i2c: D1 01 00 [08:59:49]MH_I2C_Read... [08:59:49]Read from MH i2c: D1 01 00 97 44 00 AC [08:59:49]Write to MH i2c: 01 00 00 98 44 DC [08:59:49]Write i2c OK [08:59:49]MH_I2C_Read... [08:59:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 9C 90 47 00 B2 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9E 69 01 00 F4 03 04 00 83 4A E6 66 B6 04 01 00 00 51 83 6A D9 1F 8C A0 F8 [08:59:49]CommunicateWithHost err = 0 [08:59:49]CheckOFDResponse [08:59:49]1017 (14) - 77093643461234 [08:59:49]1041 (16) - 0000000000874692 [08:59:49]1040 (4) - 92574 [08:59:49]1012 (4) - 15.09.2024 02:46 [08:59:49]1206 (1) - 0 [08:59:49]OFD Sender: Remove packet 92574 [08:59:49]ProducePacketName [08:59:49]name=ofd_packets/00092574 [08:59:49]NVStorageDeleteData [08:59:50]OFD Sender: No OFD packet to send [08:59:50]*** Cut start [08:59:50]*** Purtial cut [08:59:50]*** Stage 1: CUTSNS_PIN = 1 [08:59:52]Read from MH i2c: 01 [08:59:52]MH_I2C_Read... [08:59:52]*** Stop cut motor [08:59:52]*** Cut end [08:59:52]Read from MH i2c: 01 07 00 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: 01 07 00 98 44 00 00 00 00 00 FF 0F F1 [08:59:52]process_action close_receipt done [08:59:52]requested_data is exist [08:59:52]produce_requested_data [08:59:52]requested_item fm.sn is exist - process it [08:59:52]wFMCommunicate request_size=4 [08:59:52]MH_SAM_APDU [08:59:52]CAPDU: 80 11 00 00 [08:59:52]Write to MH i2c: E2 08 00 99 44 80 11 00 00 00 00 00 00 57 [08:59:52]Write i2c OK [08:59:52]MH_I2C_Read... [08:59:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:52]Read from MH i2c: E2 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 17 00 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 17 00 99 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 AE [08:59:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:59:52]wFMCommunicate OK [08:59:52]requested_item fd.num is exist - process it [08:59:52]SAM_PROTO_GetFieldsCounters [08:59:52]wFMCommunicate request_size=4 [08:59:52]MH_SAM_APDU [08:59:52]CAPDU: 80 13 00 00 [08:59:52]Write to MH i2c: E2 08 00 9A 44 80 13 00 00 00 00 00 00 5A [08:59:52]Write i2c OK [08:59:52]MH_I2C_Read... [08:59:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:52]Read from MH i2c: E2 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 62 00 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 62 00 9A 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 9E 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [08:59:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 9E 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:59:52]wFMCommunicate OK [08:59:52]SAM_PROTO_GetFieldsCounters done [08:59:52]requested_item shift.num is exist - process it [08:59:52]requested_item shift.opened is exist - process it [08:59:52]req_shift_opened [08:59:52]FM_GetShiftState [08:59:52]SAM_PROTO_GetShiftState [08:59:52]wFMCommunicate request_size=4 [08:59:52]MH_SAM_APDU [08:59:52]CAPDU: 80 13 01 00 [08:59:52]Write to MH i2c: E2 08 00 9B 44 80 13 01 00 00 00 00 00 5C [08:59:52]Write i2c OK [08:59:52]MH_I2C_Read... [08:59:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:52]Read from MH i2c: E2 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 0E 00 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 0E 00 9B 44 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 DE [08:59:52]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [08:59:52]wFMCommunicate OK [08:59:52]SAM_PROTO_GetShiftState done [08:59:52]FM_GetShiftState done [08:59:52]req_shift_opened done [08:59:52]requested_item shift.open_date is exist - process it [08:59:52]req_shift_open_date [08:59:52]req_shift_open_date done [08:59:52]produce_requested_data done [08:59:52]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92574,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [08:59:52]process_action_free close_receipt [08:59:52]json_value_free [08:59:52]json_value_free done [08:59:52]process_json_proto returns [08:59:52]Send response to host [08:59:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92574,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [08:59:52]free response buf [08:59:52]execute_script done [08:59:52]execute_script returns [08:59:52]free content buf [08:59:52]Sock 8.Close socket [08:59:52]Sock 8.Thread stoped [08:59:55]OFD Sender: No OFD packet to send [09:00:00]OFD Sender: No OFD packet to send [09:00:05]OFD Sender: No OFD packet to send [09:00:10]OFD Sender: No OFD packet to send [09:00:15]OFD Sender: No OFD packet to send [09:00:20]OFD Sender: No OFD packet to send [09:00:25]OFD Sender: No OFD packet to send [09:00:30]OFD Sender: No OFD packet to send [09:00:35]OFD Sender: No OFD packet to send [09:00:40]OFD Sender: No OFD packet to send [09:00:45]OFD Sender: No OFD packet to send [09:00:50]OFD Sender: No OFD packet to send [09:00:55]OFD Sender: No OFD packet to send [09:01:00]OFD Sender: No OFD packet to send [09:01:05]OFD Sender: No OFD packet to send [09:01:10]OFD Sender: No OFD packet to send [09:01:15]OFD Sender: No OFD packet to send [09:01:20]OFD Sender: No OFD packet to send [09:01:25]OFD Sender: No OFD packet to send [09:01:30]OFD Sender: No OFD packet to send [09:01:35]OFD Sender: No OFD packet to send [09:01:40]OFD Sender: No OFD packet to send [09:01:45]OFD Sender: No OFD packet to send [09:01:50]OFD Sender: No OFD packet to send [09:01:55]OFD Sender: No OFD packet to send [09:02:00]OFD Sender: No OFD packet to send [09:02:05]OFD Sender: No OFD packet to send [09:02:10]OFD Sender: No OFD packet to send [09:02:15]OFD Sender: No OFD packet to send [09:02:20]OFD Sender: No OFD packet to send [09:02:25]OFD Sender: No OFD packet to send [09:02:30]OFD Sender: No OFD packet to send [09:02:35]OFD Sender: No OFD packet to send [09:02:40]OFD Sender: No OFD packet to send [09:02:45]OFD Sender: No OFD packet to send [09:02:50]OFD Sender: No OFD packet to send [09:02:55]OFD Sender: No OFD packet to send [09:03:00]OFD Sender: No OFD packet to send [09:03:05]OFD Sender: No OFD packet to send [09:03:10]OFD Sender: No OFD packet to send [09:03:15]OFD Sender: No OFD packet to send [09:03:20]OFD Sender: No OFD packet to send [09:03:25]OFD Sender: No OFD packet to send [09:03:30]OFD Sender: No OFD packet to send [09:03:35]OFD Sender: No OFD packet to send [09:03:40]OFD Sender: No OFD packet to send [09:03:45]OFD Sender: No OFD packet to send [09:03:50]OFD Sender: No OFD packet to send [09:03:55]OFD Sender: No OFD packet to send [09:04:00]OFD Sender: No OFD packet to send [09:04:05]OFD Sender: No OFD packet to send [09:04:10]OFD Sender: No OFD packet to send [09:04:15]OFD Sender: No OFD packet to send [09:04:20]OFD Sender: No OFD packet to send [09:04:25]OFD Sender: No OFD packet to send [09:04:30]OFD Sender: No OFD packet to send [09:04:35]OFD Sender: No OFD packet to send [09:04:40]OFD Sender: No OFD packet to send [09:04:45]OFD Sender: No OFD packet to send [09:04:50]OFD Sender: No OFD packet to send [09:04:55]OFD Sender: No OFD packet to send [09:05:00]OFD Sender: No OFD packet to send [09:05:05]OFD Sender: No OFD packet to send [09:05:10]OFD Sender: No OFD packet to send [09:05:15]OFD Sender: No OFD packet to send [09:05:20]OFD Sender: No OFD packet to send [09:05:25]OFD Sender: No OFD packet to send [09:05:30]OFD Sender: No OFD packet to send [09:05:35]OFD Sender: No OFD packet to send [09:05:40]OFD Sender: No OFD packet to send [09:05:45]OFD Sender: No OFD packet to send [09:05:50]OFD Sender: No OFD packet to send [09:05:55]OFD Sender: No OFD packet to send [09:06:00]OFD Sender: No OFD packet to send [09:06:05]OFD Sender: No OFD packet to send [09:06:10]OFD Sender: No OFD packet to send [09:06:15]OFD Sender: No OFD packet to send [09:06:20]OFD Sender: No OFD packet to send [09:06:25]OFD Sender: No OFD packet to send [09:06:30]OFD Sender: No OFD packet to send [09:06:35]OFD Sender: No OFD packet to send [09:06:40]OFD Sender: No OFD packet to send [09:06:45]OFD Sender: No OFD packet to send [09:06:50]OFD Sender: No OFD packet to send [09:06:55]OFD Sender: No OFD packet to send [09:07:00]OFD Sender: No OFD packet to send [09:07:05]OFD Sender: No OFD packet to send [09:07:08]accept exits with 9 [09:07:08]New connection [09:07:08]New thread 3066801508 created [09:07:08]Thread 3066658148 joined [09:07:08]Waiting for new connection... [09:07:08] Sock 9.Parse request [09:07:08]Sock 9.Check first char [09:07:08]Sock 9.First char is OK [09:07:08]request: POST /json_proto HTTP/1.0 [09:07:08]Method: POST [09:07:08]URL: /json_proto [09:07:08]Method is POST - this is cgi request [09:07:08]url: /json_proto [09:07:08]query_string will be loaded in cgi processing [09:07:08]execute_cgi json_proto POST (null) [09:07:08]execute_cgi path=json_proto method=POST [09:07:08]POST find Content-Length [09:07:08]Host: 172.17.57.71:8080 [09:07:08]Content-Length: 684 [09:07:08]Content-Type: application/json [09:07:08] [09:07:08]POST finish read [09:07:08]Found Content-Length = 684 [09:07:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127469", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:08]execute_script... [09:07:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127469", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:08]POST & json_proto [09:07:08]process_json_proto [09:07:08]json parsed OK: [09:07:08]protocol is kg_v1.0 [09:07:08]action value=close_receipt [09:07:08]process_action close_receipt [09:07:08]cmd_close_receipt [09:07:08]MH_GetDate [09:07:08]Write to MH i2c: F0 00 00 9C 44 CF [09:07:08]Write i2c OK [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: F0 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: F0 09 00 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: F0 09 00 9C 44 00 C3 A3 E6 66 33 3A A4 66 01 [09:07:08]GetLastDocTimeStamp 1726390795 [09:07:08]current date 1726391235 [09:07:08]FM_GetShiftState [09:07:08]SAM_PROTO_GetShiftState [09:07:08]wFMCommunicate request_size=4 [09:07:08]MH_SAM_APDU [09:07:08]CAPDU: 80 13 01 00 [09:07:08]Write to MH i2c: E2 08 00 9D 44 80 13 01 00 00 00 00 00 5E [09:07:08]Write i2c OK [09:07:08]MH_I2C_Read... [09:07:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:08]Read from MH i2c: E2 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: E2 0E 00 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: E2 0E 00 9D 44 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 E0 [09:07:08]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [09:07:08]wFMCommunicate OK [09:07:08]SAM_PROTO_GetShiftState done [09:07:08]FM_GetShiftState done [09:07:08]opened in 1726359809 [09:07:08]opened+sec_in_day 1726446209 [09:07:08]quantity*price = 7500 [09:07:08]sum+1 = 7501 [09:07:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 23 15.09.2024 09:07 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92575 ФПД: 186599160053624 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T090716&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92575&fm=186599160053624&tin=02508201610067®Number=0000000000091423&sum=7500 0 [09:07:09]StoreToDocumentArchive [09:07:09]shift 507 fd 92575 [09:07:09]save to /storage/0507/doc_00092575 [09:07:09]save last doc name /storage/0507/doc_00092575 to /storage/kkm_last_doc_name [09:07:09]save OK [09:07:09]Clear old archive folders... [09:07:09]ProcessDocumentItem done err = 0, tmpTLVsize=295 [09:07:09]tlvbuf is 010CAA90 [09:07:09]SAM_PROTO_ClearQueue [09:07:09]wFMCommunicate request_size=4 [09:07:09]MH_SAM_APDU [09:07:09]CAPDU: 80 09 00 00 [09:07:09]Write to MH i2c: E2 08 00 AA 44 80 09 00 00 00 00 00 00 60 [09:07:09]Write i2c OK [09:07:09]MH_I2C_Read... [09:07:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:07:09]Read from MH i2c: E2 [09:07:09]MH_I2C_Read... [09:07:09]Read from MH i2c: E2 03 00 [09:07:09]MH_I2C_Read... [09:07:09]Read from MH i2c: E2 03 00 AA 44 00 90 00 62 [09:07:09]RAPDU: 90 00 [09:07:09]wFMCommunicate OK [09:07:09]SAM_PROTO_ClearQueue done [09:07:09]KKMCreateOFDPacket [09:07:09]OFDProtocolAddRootSTLVToBuf [09:07:09]FM_MakeSignedData [09:07:09]FM_MakeSignedData [09:07:09]SAM_PROTO_SignData [09:07:09]wFMCommunicate request_size=4 [09:07:09]MH_SAM_APDU [09:07:09]CAPDU: 80 0D 01 02 [09:07:09]Write to MH i2c: E2 08 00 AB 44 80 0D 01 02 00 00 00 00 68 [09:07:09]Write i2c OK [09:07:09]MH_I2C_Read... [09:07:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:07:09]Read from MH i2c: E2 [09:07:09]MH_I2C_Read... [09:07:09]Read from MH i2c: E2 03 00 [09:07:09]MH_I2C_Read... [09:07:09]Read from MH i2c: E2 03 00 AB 44 00 90 00 63 [09:07:09]RAPDU: 90 00 [09:07:09]wFMCommunicate OK [09:07:09]wFMCommunicate request_size=255 [09:07:09]MH_SAM_APDU [09:07:09]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 C4 A3 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [09:07:09]Write to MH i2c: E2 02 01 AC 44 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 C4 A3 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 73 [09:07:09]Write i2c OK [09:07:09]MH_I2C_Read... [09:07:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:09]Read from MH i2c: E2 [09:07:09]MH_I2C_Read... [09:07:09]Read from MH i2c: E2 03 00 [09:07:09]MH_I2C_Read... [09:07:09]Read from MH i2c: E2 03 00 AC 44 00 90 00 64 [09:07:09]RAPDU: 90 00 [09:07:09]wFMCommunicate OK [09:07:09]wFMCommunicate request_size=54 [09:07:09]MH_SAM_APDU [09:07:09]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9F 69 01 00 35 04 06 00 A9 B6 00 A6 7F 78 [09:07:09]Write to MH i2c: E2 39 00 AD 44 80 0D 02 02 31 00 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9F 69 01 00 35 04 06 00 A9 B6 00 A6 7F 78 00 00 95 [09:07:09]Write i2c OK [09:07:09]MH_I2C_Read... [09:07:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:09]Read from MH i2c: E2 [09:07:09]MH_I2C_Read... [09:07:09]Read from MH i2c: E2 03 00 [09:07:09]MH_I2C_Read... [09:07:09]Read from MH i2c: E2 03 00 AD 44 00 90 00 65 [09:07:09]RAPDU: 90 00 [09:07:09]wFMCommunicate OK [09:07:09]wFMCommunicate request_size=4 [09:07:09]MH_SAM_APDU [09:07:09]CAPDU: 80 0D 03 02 [09:07:09]Write to MH i2c: E2 08 00 AE 44 80 0D 03 02 00 00 00 00 6D [09:07:09]Write i2c OK [09:07:09]MH_I2C_Read... [09:07:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:07:09]Read from MH i2c: E2 [09:07:09]MH_I2C_Read... [09:07:09]Read from MH i2c: E2 0B 00 [09:07:09]MH_I2C_Read... [09:07:09]Read from MH i2c: E2 0B 00 AE 44 00 1E AE F0 08 80 EA 58 0D 90 00 01 [09:07:09]RAPDU: 1E AE F0 08 80 EA 58 0D 90 00 [09:07:09]wFMCommunicate OK [09:07:09]SAM_PROTO_SignData done [09:07:09]FM_MakeSignedData done [09:07:09]CreateOFDProtocolMessage [09:07:09]wFMCommunicate request_size=4 [09:07:09]MH_SAM_APDU [09:07:09]CAPDU: 80 11 00 00 [09:07:09]Write to MH i2c: E2 08 00 AF 44 80 11 00 00 00 00 00 00 6D [09:07:09]Write i2c OK [09:07:09]MH_I2C_Read... [09:07:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:09]Read from MH i2c: E2 [09:07:09]MH_I2C_Read... [09:07:09]Read from MH i2c: E2 17 00 [09:07:09]MH_I2C_Read... [09:07:09]Read from MH i2c: E2 17 00 AF 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C4 [09:07:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:07:09]wFMCommunicate OK [09:07:09]CreateOFDProtocolMessage done [09:07:09]OFDSenderStorePacket 92575 [09:07:09]StoreOFDPacket docnum=92575 [09:07:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3B 01 00 00 37 5C 33 01 BB 60 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 C4 A3 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9F 69 01 00 35 04 06 00 A9 B6 00 A6 7F 78 1E AE F0 08 80 EA 58 0D [09:07:09]CheckFolder [09:07:09]dirname=/storage/ofd_packets [09:07:09]CheckFolder done [09:07:09]ProducePacketName [09:07:09]name=ofd_packets/00092575 [09:07:09]NVStorageSaveData ofd_packets/00092575 [09:07:09]File name is /storage/ofd_packets/00092575 [09:07:09]Write 345 bytes [09:07:09]NVStorageSaveData done [09:07:09]OFDSenderStorePacket done [09:07:09]KKMCreateOFDPacket done [09:07:09]NVStorageSaveData kkm_last_timestamp [09:07:09]File name is /storage/kkm_last_timestamp [09:07:09]Write 4 bytes [09:07:09]NVStorageSaveData done [09:07:09]ExternCall_PrintAddStr [09:07:09]wPrintStart [09:07:09]Write to MH i2c: 01 00 00 B0 44 F4 [09:07:09]Write i2c OK [09:07:09]MH_I2C_Read... [09:07:09]Read from MH i2c: 01 [09:07:09]MH_I2C_Read... [09:07:09]Read from MH i2c: 01 07 00 [09:07:09]MH_I2C_Read... [09:07:09]Read from MH i2c: 01 07 00 B0 44 00 00 00 00 00 FF 0F 09 [09:07:09]RasterBufferAndPrint [09:07:09]line Счет N : (3)127469 [09:07:09]line ИНН: 02508201610067 [09:07:09]line Контрольно-Кассовый Чек [09:07:09]line ПРОДАЖА [09:07:09]line Товар: 5449000027450 [09:07:09]line Напиток FuzeTea чай манго,ром 0,5л [09:07:09]line 1.000 * 75.00 [09:07:09]line = 75.00 [09:07:09]line НДС 12% НСП 1% [09:07:09]line > о реализуемом товаре [09:07:09]line ИТОГО: 75.00 [09:07:09]line НСП 1% : 0.66 [09:07:09]line НДС 12% : 7.96 [09:07:09]line Наличными: 75.00 [09:07:09]line Безнал.: 0.00 [09:07:09]line Место: АЗС № 5 "Партнер Нефть" [09:07:09]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [09:07:09]line СНО: Общий режим [09:07:09]line Чек 23 15.09.2024 09:07 [09:07:09]line Смена: 507 ФФД: 1.0 [09:07:09]line ЗНМ: 03000000022 [09:07:09]line РНМ: 0000000000091423 [09:07:09]line Версия ККМ: 001 [09:07:09]line ФМ: 0000000000874692 [09:07:09]line ФД: 92575 [09:07:09]line ФПД: 186599160053624 [09:07:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T090716&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92575&fm=186599160053624&tin=02508201610067®Number=0000000000091423&sum=7500 [09:07:10]line 0 [09:07:10]OFD Sender: Processing packet 92575 [packets to send 63, broken 62] [09:07:10]ProducePacketName [09:07:10]name=ofd_packets/00092575 [09:07:10]OFD Sender: To server: pG, [09:07:10]CommunicateWithHost lk.salyk.kg:30040 [09:07:10]ConnectInit lk.salyk.kg [09:07:10]written 0, free lines is 4095 [09:07:10]Connected sock=10 [09:07:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3B 01 00 00 37 5C 33 01 BB 60 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 C4 A3 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9F 69 01 00 35 04 06 00 A9 B6 00 A6 7F 78 1E AE F0 08 80 EA 58 0D [09:07:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 DE 4E 47 00 0F A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9F 69 01 00 F4 03 04 00 3C 4C E6 66 B6 04 01 00 00 42 77 D1 1B F2 95 6A D6 [09:07:10]CommunicateWithHost err = 0 [09:07:10]CheckOFDResponse [09:07:10]1017 (14) - 77093643461234 [09:07:10]1041 (16) - 0000000000874692 [09:07:10]1040 (4) - 92575 [09:07:10]1012 (4) - 15.09.2024 02:53 [09:07:10]1206 (1) - 0 [09:07:10]OFD Sender: Remove packet 92575 [09:07:10]ProducePacketName [09:07:10]name=ofd_packets/00092575 [09:07:10]NVStorageDeleteData [09:07:10]Write to MH i2c: 01 00 00 D9 44 1D [09:07:10]Write i2c OK [09:07:10]MH_I2C_Read... [09:07:10]Read from MH i2c: 01 [09:07:10]MH_I2C_Read... [09:07:10]Read from MH i2c: 01 07 00 [09:07:10]MH_I2C_Read... [09:07:10]Read from MH i2c: 01 07 00 D9 44 00 00 00 00 00 17 0D 48 [09:07:10]RasterBufferAndPrint [09:07:10]line [09:07:10]line [09:07:10]line [09:07:10]line [09:07:10]line [09:07:10]written 0, free lines is 3359 [09:07:10]MH_Cut [09:07:10]Write to MH i2c: D1 01 00 E0 44 01 F6 [09:07:10]Write i2c OK [09:07:10]MH_I2C_Read... [09:07:10]Read from MH i2c: D1 [09:07:10]MH_I2C_Read... [09:07:10]Read from MH i2c: D1 01 00 [09:07:10]MH_I2C_Read... [09:07:10]Read from MH i2c: D1 01 00 E0 44 00 F5 [09:07:10]Write to MH i2c: 01 00 00 E1 44 25 [09:07:10]Write i2c OK [09:07:10]MH_I2C_Read... [09:07:11]OFD Sender: No OFD packet to send [09:07:11]*** Cut start [09:07:11]*** Purtial cut [09:07:11]*** Stage 1: CUTSNS_PIN = 1 [09:07:13]Read from MH i2c: 01 [09:07:13]MH_I2C_Read... [09:07:13]*** Stop cut motor [09:07:13]*** Cut end [09:07:13]Read from MH i2c: 01 07 00 [09:07:13]MH_I2C_Read... [09:07:13]Read from MH i2c: 01 07 00 E1 44 00 00 00 00 00 FF 0F 3A [09:07:13]process_action close_receipt done [09:07:13]requested_data is exist [09:07:13]produce_requested_data [09:07:13]requested_item fm.sn is exist - process it [09:07:13]wFMCommunicate request_size=4 [09:07:13]MH_SAM_APDU [09:07:13]CAPDU: 80 11 00 00 [09:07:13]Write to MH i2c: E2 08 00 E2 44 80 11 00 00 00 00 00 00 A0 [09:07:13]Write i2c OK [09:07:13]MH_I2C_Read... [09:07:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:13]Read from MH i2c: E2 [09:07:13]MH_I2C_Read... [09:07:13]Read from MH i2c: E2 17 00 [09:07:13]MH_I2C_Read... [09:07:13]Read from MH i2c: E2 17 00 E2 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F7 [09:07:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:07:13]wFMCommunicate OK [09:07:13]requested_item fd.num is exist - process it [09:07:13]SAM_PROTO_GetFieldsCounters [09:07:13]wFMCommunicate request_size=4 [09:07:13]MH_SAM_APDU [09:07:13]CAPDU: 80 13 00 00 [09:07:13]Write to MH i2c: E2 08 00 E3 44 80 13 00 00 00 00 00 00 A3 [09:07:13]Write i2c OK [09:07:13]MH_I2C_Read... [09:07:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:07:13]Read from MH i2c: E2 [09:07:13]MH_I2C_Read... [09:07:13]Read from MH i2c: E2 62 00 [09:07:13]MH_I2C_Read... [09:07:13]Read from MH i2c: E2 62 00 E3 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 9F 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [09:07:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 9F 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:07:13]wFMCommunicate OK [09:07:13]SAM_PROTO_GetFieldsCounters done [09:07:13]requested_item shift.num is exist - process it [09:07:13]requested_item shift.opened is exist - process it [09:07:13]req_shift_opened [09:07:13]FM_GetShiftState [09:07:13]SAM_PROTO_GetShiftState [09:07:13]wFMCommunicate request_size=4 [09:07:13]MH_SAM_APDU [09:07:13]CAPDU: 80 13 01 00 [09:07:13]Write to MH i2c: E2 08 00 E4 44 80 13 01 00 00 00 00 00 A5 [09:07:13]Write i2c OK [09:07:13]MH_I2C_Read... [09:07:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:13]Read from MH i2c: E2 [09:07:13]MH_I2C_Read... [09:07:13]Read from MH i2c: E2 0E 00 [09:07:13]MH_I2C_Read... [09:07:13]Read from MH i2c: E2 0E 00 E4 44 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 27 [09:07:13]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [09:07:13]wFMCommunicate OK [09:07:13]SAM_PROTO_GetShiftState done [09:07:13]FM_GetShiftState done [09:07:13]req_shift_opened done [09:07:13]requested_item shift.open_date is exist - process it [09:07:13]req_shift_open_date [09:07:13]req_shift_open_date done [09:07:13]produce_requested_data done [09:07:13]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92575,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [09:07:13]process_action_free close_receipt [09:07:13]json_value_free [09:07:13]json_value_free done [09:07:13]process_json_proto returns [09:07:13]Send response to host [09:07:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92575,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [09:07:13]free response buf [09:07:13]execute_script done [09:07:13]execute_script returns [09:07:13]free content buf [09:07:13]Sock 9.Close socket [09:07:13]Sock 9.Thread stoped [09:07:16]OFD Sender: No OFD packet to send [09:07:21]OFD Sender: No OFD packet to send [09:07:26]OFD Sender: No OFD packet to send [09:07:31]OFD Sender: No OFD packet to send [09:07:36]OFD Sender: No OFD packet to send [09:07:41]OFD Sender: No OFD packet to send [09:07:46]OFD Sender: No OFD packet to send [09:07:51]OFD Sender: No OFD packet to send [09:07:56]OFD Sender: No OFD packet to send [09:08:01]OFD Sender: No OFD packet to send [09:08:06]OFD Sender: No OFD packet to send [09:08:11]OFD Sender: No OFD packet to send [09:08:16]OFD Sender: No OFD packet to send [09:08:21]OFD Sender: No OFD packet to send [09:08:26]OFD Sender: No OFD packet to send [09:08:31]OFD Sender: No OFD packet to send [09:08:36]OFD Sender: No OFD packet to send [09:08:41]OFD Sender: No OFD packet to send [09:08:46]OFD Sender: No OFD packet to send [09:08:51]OFD Sender: No OFD packet to send [09:08:56]OFD Sender: No OFD packet to send [09:09:01]OFD Sender: No OFD packet to send [09:09:06]OFD Sender: No OFD packet to send [09:09:11]OFD Sender: No OFD packet to send [09:09:16]OFD Sender: No OFD packet to send [09:09:21]OFD Sender: No OFD packet to send [09:09:26]OFD Sender: No OFD packet to send [09:09:31]OFD Sender: No OFD packet to send [09:09:36]OFD Sender: No OFD packet to send [09:09:41]OFD Sender: No OFD packet to send [09:09:46]OFD Sender: No OFD packet to send [09:09:51]OFD Sender: No OFD packet to send [09:09:56]OFD Sender: No OFD packet to send [09:10:01]OFD Sender: No OFD packet to send [09:10:06]OFD Sender: No OFD packet to send [09:10:11]OFD Sender: No OFD packet to send [09:10:16]OFD Sender: No OFD packet to send [09:10:21]OFD Sender: No OFD packet to send [09:10:26]OFD Sender: No OFD packet to send [09:10:31]OFD Sender: No OFD packet to send [09:10:36]OFD Sender: No OFD packet to send [09:10:41]OFD Sender: No OFD packet to send [09:10:46]OFD Sender: No OFD packet to send [09:10:51]OFD Sender: No OFD packet to send [09:10:56]OFD Sender: No OFD packet to send [09:11:01]OFD Sender: No OFD packet to send [09:11:06]OFD Sender: No OFD packet to send [09:11:11]OFD Sender: No OFD packet to send [09:11:16]OFD Sender: No OFD packet to send [09:11:21]OFD Sender: No OFD packet to send [09:11:26]OFD Sender: No OFD packet to send [09:11:31]OFD Sender: No OFD packet to send [09:11:36]OFD Sender: No OFD packet to send [09:11:41]OFD Sender: No OFD packet to send [09:11:46]OFD Sender: No OFD packet to send [09:11:51]OFD Sender: No OFD packet to send [09:11:56]OFD Sender: No OFD packet to send [09:12:01]OFD Sender: No OFD packet to send [09:12:06]OFD Sender: No OFD packet to send [09:12:11]OFD Sender: No OFD packet to send [09:12:16]OFD Sender: No OFD packet to send [09:12:21]OFD Sender: No OFD packet to send [09:12:26]OFD Sender: No OFD packet to send [09:12:31]OFD Sender: No OFD packet to send [09:12:36]OFD Sender: No OFD packet to send [09:12:41]OFD Sender: No OFD packet to send [09:12:46]OFD Sender: No OFD packet to send [09:12:51]OFD Sender: No OFD packet to send [09:12:56]OFD Sender: No OFD packet to send [09:13:01]OFD Sender: No OFD packet to send [09:13:06]OFD Sender: No OFD packet to send [09:13:11]OFD Sender: No OFD packet to send [09:13:16]OFD Sender: No OFD packet to send [09:13:21]OFD Sender: No OFD packet to send [09:13:26]OFD Sender: No OFD packet to send [09:13:31]OFD Sender: No OFD packet to send [09:13:36]OFD Sender: No OFD packet to send [09:13:41]OFD Sender: No OFD packet to send [09:13:46]OFD Sender: No OFD packet to send [09:13:51]OFD Sender: No OFD packet to send [09:13:56]OFD Sender: No OFD packet to send [09:14:01]OFD Sender: No OFD packet to send [09:14:06]OFD Sender: No OFD packet to send [09:14:11]OFD Sender: No OFD packet to send [09:14:16]OFD Sender: No OFD packet to send [09:14:21]OFD Sender: No OFD packet to send [09:14:26]OFD Sender: No OFD packet to send [09:14:31]OFD Sender: No OFD packet to send [09:14:36]OFD Sender: No OFD packet to send [09:14:41]OFD Sender: No OFD packet to send [09:14:46]OFD Sender: No OFD packet to send [09:14:51]OFD Sender: No OFD packet to send [09:14:56]OFD Sender: No OFD packet to send [09:15:01]OFD Sender: No OFD packet to send [09:15:06]OFD Sender: No OFD packet to send [09:15:11]OFD Sender: No OFD packet to send [09:15:16]OFD Sender: No OFD packet to send [09:15:21]OFD Sender: No OFD packet to send [09:15:26]OFD Sender: No OFD packet to send [09:15:31]OFD Sender: No OFD packet to send [09:15:36]OFD Sender: No OFD packet to send [09:15:41]OFD Sender: No OFD packet to send [09:15:46]OFD Sender: No OFD packet to send [09:15:51]OFD Sender: No OFD packet to send [09:15:56]OFD Sender: No OFD packet to send [09:16:01]OFD Sender: No OFD packet to send [09:16:06]OFD Sender: No OFD packet to send [09:16:11]OFD Sender: No OFD packet to send [09:16:16]OFD Sender: No OFD packet to send [09:16:21]OFD Sender: No OFD packet to send [09:16:26]OFD Sender: No OFD packet to send [09:16:31]OFD Sender: No OFD packet to send [09:16:36]OFD Sender: No OFD packet to send [09:16:41]OFD Sender: No OFD packet to send [09:16:46]OFD Sender: No OFD packet to send [09:16:51]OFD Sender: No OFD packet to send [09:16:56]OFD Sender: No OFD packet to send [09:17:01]OFD Sender: No OFD packet to send [09:17:06]OFD Sender: No OFD packet to send [09:17:11]OFD Sender: No OFD packet to send [09:17:16]OFD Sender: No OFD packet to send [09:17:21]OFD Sender: No OFD packet to send [09:17:26]OFD Sender: No OFD packet to send [09:17:31]OFD Sender: No OFD packet to send [09:17:36]OFD Sender: No OFD packet to send [09:17:41]OFD Sender: No OFD packet to send [09:17:46]OFD Sender: No OFD packet to send [09:17:51]OFD Sender: No OFD packet to send [09:17:56]OFD Sender: No OFD packet to send [09:18:01]OFD Sender: No OFD packet to send [09:18:06]OFD Sender: No OFD packet to send [09:18:11]OFD Sender: No OFD packet to send [09:18:16]OFD Sender: No OFD packet to send [09:18:20]accept exits with 8 [09:18:20]New connection [09:18:20]New thread 3066658148 created [09:18:20]Thread 3066801508 joined [09:18:20]Waiting for new connection... [09:18:20] Sock 8.Parse request [09:18:20]Sock 8.Check first char [09:18:20]Sock 8.First char is OK [09:18:20]request: POST /json_proto HTTP/1.0 [09:18:20]Method: POST [09:18:20]URL: /json_proto [09:18:20]Method is POST - this is cgi request [09:18:20]url: /json_proto [09:18:20]query_string will be loaded in cgi processing [09:18:20]execute_cgi json_proto POST (null) [09:18:20]execute_cgi path=json_proto method=POST [09:18:20]POST find Content-Length [09:18:20]Host: 172.17.57.71:8080 [09:18:20]Content-Length: 621 [09:18:20]Content-Type: application/json [09:18:20] [09:18:20]POST finish read [09:18:20]Found Content-Length = 621 [09:18:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127470", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:20]execute_script... [09:18:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127470", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:20]POST & json_proto [09:18:20]process_json_proto [09:18:20]json parsed OK: [09:18:20]protocol is kg_v1.0 [09:18:20]action value=close_receipt [09:18:20]process_action close_receipt [09:18:20]cmd_close_receipt [09:18:20]MH_GetDate [09:18:20]Write to MH i2c: F0 00 00 E5 44 18 [09:18:20]Write i2c OK [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: F0 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: F0 09 00 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: F0 09 00 E5 44 00 63 A6 E6 66 33 3A A4 66 ED [09:18:20]GetLastDocTimeStamp 1726391236 [09:18:20]current date 1726391907 [09:18:20]FM_GetShiftState [09:18:20]SAM_PROTO_GetShiftState [09:18:20]wFMCommunicate request_size=4 [09:18:20]MH_SAM_APDU [09:18:20]CAPDU: 80 13 01 00 [09:18:20]Write to MH i2c: E2 08 00 E6 44 80 13 01 00 00 00 00 00 A7 [09:18:20]Write i2c OK [09:18:20]MH_I2C_Read... [09:18:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:20]Read from MH i2c: E2 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: E2 0E 00 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: E2 0E 00 E6 44 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 29 [09:18:20]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [09:18:20]wFMCommunicate OK [09:18:20]SAM_PROTO_GetShiftState done [09:18:20]FM_GetShiftState done [09:18:20]opened in 1726359809 [09:18:20]opened+sec_in_day 1726446209 [09:18:20]quantity*price = 14400 [09:18:20]sum+1 = 14401 [09:18:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 24 15.09.2024 09:18 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92576 ФПД: 252105774990898 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T091828&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92576&fm=252105774990898&tin=02508201610067®Number=0000000000091423&sum=14400 0 [09:18:21]StoreToDocumentArchive [09:18:21]shift 507 fd 92576 [09:18:21]save to /storage/0507/doc_00092576 [09:18:21]save last doc name /storage/0507/doc_00092576 to /storage/kkm_last_doc_name [09:18:21]save OK [09:18:21]Clear old archive folders... [09:18:21]ProcessDocumentItem done err = 0, tmpTLVsize=273 [09:18:21]tlvbuf is 01014580 [09:18:21]SAM_PROTO_ClearQueue [09:18:21]wFMCommunicate request_size=4 [09:18:21]MH_SAM_APDU [09:18:21]CAPDU: 80 09 00 00 [09:18:21]Write to MH i2c: E2 08 00 F3 44 80 09 00 00 00 00 00 00 A9 [09:18:21]Write i2c OK [09:18:21]MH_I2C_Read... [09:18:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:18:21]Read from MH i2c: E2 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: E2 03 00 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: E2 03 00 F3 44 00 90 00 AB [09:18:21]RAPDU: 90 00 [09:18:21]wFMCommunicate OK [09:18:21]SAM_PROTO_ClearQueue done [09:18:21]KKMCreateOFDPacket [09:18:21]OFDProtocolAddRootSTLVToBuf [09:18:21]FM_MakeSignedData [09:18:21]FM_MakeSignedData [09:18:21]SAM_PROTO_SignData [09:18:21]wFMCommunicate request_size=4 [09:18:21]MH_SAM_APDU [09:18:21]CAPDU: 80 0D 01 02 [09:18:21]Write to MH i2c: E2 08 00 F4 44 80 0D 01 02 00 00 00 00 B1 [09:18:21]Write i2c OK [09:18:21]MH_I2C_Read... [09:18:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:18:21]Read from MH i2c: E2 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: E2 03 00 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: E2 03 00 F4 44 00 90 00 AC [09:18:21]RAPDU: 90 00 [09:18:21]wFMCommunicate OK [09:18:21]wFMCommunicate request_size=255 [09:18:21]MH_SAM_APDU [09:18:21]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 64 A6 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 [09:18:21]Write to MH i2c: E2 02 01 F5 44 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 64 A6 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 00 00 6B [09:18:21]Write i2c OK [09:18:21]MH_I2C_Read... [09:18:21]OFD Sender: No OFD packet to send [09:18:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:21]Read from MH i2c: E2 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: E2 03 00 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: E2 03 00 F5 44 00 90 00 AD [09:18:21]RAPDU: 90 00 [09:18:21]wFMCommunicate OK [09:18:21]wFMCommunicate request_size=32 [09:18:21]MH_SAM_APDU [09:18:21]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 39 32 10 04 04 00 A0 69 01 00 35 04 06 00 E5 49 F3 2A 06 32 [09:18:21]Write to MH i2c: E2 23 00 F6 44 80 0D 02 02 1B 00 30 30 30 38 37 34 36 39 32 10 04 04 00 A0 69 01 00 35 04 06 00 E5 49 F3 2A 06 32 00 00 A2 [09:18:21]Write i2c OK [09:18:21]MH_I2C_Read... [09:18:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:21]Read from MH i2c: E2 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: E2 03 00 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: E2 03 00 F6 44 00 90 00 AE [09:18:21]RAPDU: 90 00 [09:18:21]wFMCommunicate OK [09:18:21]wFMCommunicate request_size=4 [09:18:21]MH_SAM_APDU [09:18:21]CAPDU: 80 0D 03 02 [09:18:21]Write to MH i2c: E2 08 00 F7 44 80 0D 03 02 00 00 00 00 B6 [09:18:21]Write i2c OK [09:18:21]MH_I2C_Read... [09:18:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:18:21]Read from MH i2c: E2 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: E2 0B 00 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: E2 0B 00 F7 44 00 F7 AE 67 D1 33 C1 37 75 90 00 34 [09:18:21]RAPDU: F7 AE 67 D1 33 C1 37 75 90 00 [09:18:21]wFMCommunicate OK [09:18:21]SAM_PROTO_SignData done [09:18:21]FM_MakeSignedData done [09:18:21]CreateOFDProtocolMessage [09:18:21]wFMCommunicate request_size=4 [09:18:21]MH_SAM_APDU [09:18:21]CAPDU: 80 11 00 00 [09:18:21]Write to MH i2c: E2 08 00 F8 44 80 11 00 00 00 00 00 00 B6 [09:18:21]Write i2c OK [09:18:21]MH_I2C_Read... [09:18:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:21]Read from MH i2c: E2 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: E2 17 00 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: E2 17 00 F8 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 0D [09:18:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:18:21]wFMCommunicate OK [09:18:21]CreateOFDProtocolMessage done [09:18:21]OFDSenderStorePacket 92576 [09:18:21]StoreOFDPacket docnum=92576 [09:18:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 25 01 00 00 AA 8F 1D 01 2F ED 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 64 A6 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A0 69 01 00 35 04 06 00 E5 49 F3 2A 06 32 F7 AE 67 D1 33 C1 37 75 [09:18:21]CheckFolder [09:18:21]dirname=/storage/ofd_packets [09:18:21]CheckFolder done [09:18:21]ProducePacketName [09:18:21]name=ofd_packets/00092576 [09:18:21]NVStorageSaveData ofd_packets/00092576 [09:18:21]File name is /storage/ofd_packets/00092576 [09:18:21]Write 323 bytes [09:18:21]NVStorageSaveData done [09:18:21]OFDSenderStorePacket done [09:18:21]KKMCreateOFDPacket done [09:18:21]NVStorageSaveData kkm_last_timestamp [09:18:21]File name is /storage/kkm_last_timestamp [09:18:21]Write 4 bytes [09:18:21]NVStorageSaveData done [09:18:21]ExternCall_PrintAddStr [09:18:21]wPrintStart [09:18:21]Write to MH i2c: 01 00 00 F9 44 3D [09:18:21]Write i2c OK [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: 01 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: 01 07 00 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: 01 07 00 F9 44 00 00 00 00 00 FF 0F 52 [09:18:21]RasterBufferAndPrint [09:18:21]line Счет N : (3)127470 [09:18:21]line ИНН: 02508201610067 [09:18:21]line Контрольно-Кассовый Чек [09:18:21]line ПРОДАЖА [09:18:21]line Товар: 48747059 [09:18:21]line Сигареты Winston Legend Blue [09:18:21]line 1.000 * 144.00 [09:18:21]line = 144.00 [09:18:21]line НДС 12% НСП 1% [09:18:21]line > о реализуемом товаре [09:18:21]line ИТОГО: 144.00 [09:18:21]line НСП 1% : 1.27 [09:18:21]line НДС 12% : 15.29 [09:18:21]line Наличными: 144.00 [09:18:21]line Безнал.: 0.00 [09:18:21]line Место: АЗС № 5 "Партнер Нефть" [09:18:21]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [09:18:21]line СНО: Общий режим [09:18:21]line Чек 24 15.09.2024 09:18 [09:18:21]line Смена: 507 ФФД: 1.0 [09:18:21]line ЗНМ: 03000000022 [09:18:21]line РНМ: 0000000000091423 [09:18:21]line Версия ККМ: 001 [09:18:21]line ФМ: 0000000000874692 [09:18:21]line ФД: 92576 [09:18:21]line ФПД: 252105774990898 [09:18:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T091828&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92576&fm=252105774990898&tin=02508201610067®Number=0000000000091423&sum=14400 [09:18:21]line 0 [09:18:21]written 0, free lines is 4095 [09:18:21]OFD Sender: Processing packet 92576 [packets to send 63, broken 62] [09:18:21]ProducePacketName [09:18:21]name=ofd_packets/00092576 [09:18:21]OFD Sender: To server: pG, [09:18:21]CommunicateWithHost lk.salyk.kg:30040 [09:18:22]ConnectInit lk.salyk.kg [09:18:22]Write to MH i2c: 01 00 00 22 45 67 [09:18:22]Write i2c OK [09:18:22]MH_I2C_Read... [09:18:22]Read from MH i2c: 01 [09:18:22]MH_I2C_Read... [09:18:22]Read from MH i2c: 01 07 00 [09:18:22]MH_I2C_Read... [09:18:22]Read from MH i2c: 01 07 00 22 45 00 00 00 00 00 02 0D 7D [09:18:22]RasterBufferAndPrint [09:18:22]line [09:18:22]line [09:18:22]line [09:18:22]line [09:18:22]line [09:18:22]written 0, free lines is 3337 [09:18:22]MH_Cut [09:18:22]Write to MH i2c: D1 01 00 29 45 01 40 [09:18:22]Write i2c OK [09:18:22]MH_I2C_Read... [09:18:22]Read from MH i2c: D1 [09:18:22]MH_I2C_Read... [09:18:22]Read from MH i2c: D1 01 00 [09:18:22]MH_I2C_Read... [09:18:22]Read from MH i2c: D1 01 00 29 45 00 3F [09:18:22]Write to MH i2c: 01 00 00 2A 45 6F [09:18:22]Write i2c OK [09:18:22]MH_I2C_Read... [09:18:22]Connected sock=10 [09:18:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 25 01 00 00 AA 8F 1D 01 2F ED 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 64 A6 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A0 69 01 00 35 04 06 00 E5 49 F3 2A 06 32 F7 AE 67 D1 33 C1 37 75 [09:18:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 74 E1 47 00 D1 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A0 69 01 00 F4 03 04 00 DC 4E E6 66 B6 04 01 00 00 08 78 56 91 AF 21 04 F3 [09:18:22]CommunicateWithHost err = 0 [09:18:22]CheckOFDResponse [09:18:22]1017 (14) - 77093643461234 [09:18:22]1041 (16) - 0000000000874692 [09:18:22]1040 (4) - 92576 [09:18:22]1012 (4) - 15.09.2024 03:05 [09:18:22]1206 (1) - 0 [09:18:22]OFD Sender: Remove packet 92576 [09:18:22]ProducePacketName [09:18:22]name=ofd_packets/00092576 [09:18:22]NVStorageDeleteData [09:18:23]*** Cut start [09:18:23]*** Purtial cut [09:18:23]*** Stage 1: CUTSNS_PIN = 1 [09:18:23]OFD Sender: No OFD packet to send [09:18:25]Read from MH i2c: 01 [09:18:25]MH_I2C_Read... [09:18:25]*** Stop cut motor [09:18:25]*** Cut end [09:18:25]Read from MH i2c: 01 07 00 [09:18:25]MH_I2C_Read... [09:18:25]Read from MH i2c: 01 07 00 2A 45 00 00 00 00 00 FF 0F 84 [09:18:25]process_action close_receipt done [09:18:25]requested_data is exist [09:18:25]produce_requested_data [09:18:25]requested_item fm.sn is exist - process it [09:18:25]wFMCommunicate request_size=4 [09:18:25]MH_SAM_APDU [09:18:25]CAPDU: 80 11 00 00 [09:18:25]Write to MH i2c: E2 08 00 2B 45 80 11 00 00 00 00 00 00 EA [09:18:25]Write i2c OK [09:18:25]MH_I2C_Read... [09:18:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:25]Read from MH i2c: E2 [09:18:25]MH_I2C_Read... [09:18:25]Read from MH i2c: E2 17 00 [09:18:25]MH_I2C_Read... [09:18:25]Read from MH i2c: E2 17 00 2B 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 41 [09:18:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:18:25]wFMCommunicate OK [09:18:25]requested_item fd.num is exist - process it [09:18:25]SAM_PROTO_GetFieldsCounters [09:18:25]wFMCommunicate request_size=4 [09:18:25]MH_SAM_APDU [09:18:25]CAPDU: 80 13 00 00 [09:18:25]Write to MH i2c: E2 08 00 2C 45 80 13 00 00 00 00 00 00 ED [09:18:25]Write i2c OK [09:18:25]MH_I2C_Read... [09:18:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:25]Read from MH i2c: E2 [09:18:25]MH_I2C_Read... [09:18:25]Read from MH i2c: E2 62 00 [09:18:25]MH_I2C_Read... [09:18:25]Read from MH i2c: E2 62 00 2C 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A0 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [09:18:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A0 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:18:25]wFMCommunicate OK [09:18:25]SAM_PROTO_GetFieldsCounters done [09:18:25]requested_item shift.num is exist - process it [09:18:25]requested_item shift.opened is exist - process it [09:18:25]req_shift_opened [09:18:25]FM_GetShiftState [09:18:25]SAM_PROTO_GetShiftState [09:18:25]wFMCommunicate request_size=4 [09:18:25]MH_SAM_APDU [09:18:25]CAPDU: 80 13 01 00 [09:18:25]Write to MH i2c: E2 08 00 2D 45 80 13 01 00 00 00 00 00 EF [09:18:25]Write i2c OK [09:18:25]MH_I2C_Read... [09:18:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:25]Read from MH i2c: E2 [09:18:25]MH_I2C_Read... [09:18:25]Read from MH i2c: E2 0E 00 [09:18:25]MH_I2C_Read... [09:18:25]Read from MH i2c: E2 0E 00 2D 45 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 71 [09:18:25]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [09:18:25]wFMCommunicate OK [09:18:25]SAM_PROTO_GetShiftState done [09:18:25]FM_GetShiftState done [09:18:25]req_shift_opened done [09:18:25]requested_item shift.open_date is exist - process it [09:18:25]req_shift_open_date [09:18:25]req_shift_open_date done [09:18:25]produce_requested_data done [09:18:25]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92576,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [09:18:25]process_action_free close_receipt [09:18:25]json_value_free [09:18:25]json_value_free done [09:18:25]process_json_proto returns [09:18:25]Send response to host [09:18:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92576,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [09:18:25]free response buf [09:18:25]execute_script done [09:18:25]execute_script returns [09:18:25]free content buf [09:18:25]Sock 8.Close socket [09:18:25]Sock 8.Thread stoped [09:18:28]OFD Sender: No OFD packet to send [09:18:33]OFD Sender: No OFD packet to send [09:18:38]OFD Sender: No OFD packet to send [09:18:43]OFD Sender: No OFD packet to send [09:18:48]OFD Sender: No OFD packet to send [09:18:53]OFD Sender: No OFD packet to send [09:18:58]OFD Sender: No OFD packet to send [09:19:03]OFD Sender: No OFD packet to send [09:19:08]OFD Sender: No OFD packet to send [09:19:13]OFD Sender: No OFD packet to send [09:19:18]OFD Sender: No OFD packet to send [09:19:23]OFD Sender: No OFD packet to send [09:19:28]OFD Sender: No OFD packet to send [09:19:33]OFD Sender: No OFD packet to send [09:19:38]OFD Sender: No OFD packet to send [09:19:43]OFD Sender: No OFD packet to send [09:19:48]OFD Sender: No OFD packet to send [09:19:53]OFD Sender: No OFD packet to send [09:19:58]OFD Sender: No OFD packet to send [09:20:03]OFD Sender: No OFD packet to send [09:20:08]OFD Sender: No OFD packet to send [09:20:13]OFD Sender: No OFD packet to send [09:20:18]OFD Sender: No OFD packet to send [09:20:23]OFD Sender: No OFD packet to send [09:20:28]OFD Sender: No OFD packet to send [09:20:33]OFD Sender: No OFD packet to send [09:20:38]OFD Sender: No OFD packet to send [09:20:43]OFD Sender: No OFD packet to send [09:20:48]OFD Sender: No OFD packet to send [09:20:53]OFD Sender: No OFD packet to send [09:20:58]OFD Sender: No OFD packet to send [09:21:03]OFD Sender: No OFD packet to send [09:21:08]OFD Sender: No OFD packet to send [09:21:13]OFD Sender: No OFD packet to send [09:21:18]OFD Sender: No OFD packet to send [09:21:23]OFD Sender: No OFD packet to send [09:21:28]OFD Sender: No OFD packet to send [09:21:33]OFD Sender: No OFD packet to send [09:21:38]OFD Sender: No OFD packet to send [09:21:43]OFD Sender: No OFD packet to send [09:21:48]OFD Sender: No OFD packet to send [09:21:53]OFD Sender: No OFD packet to send [09:21:58]OFD Sender: No OFD packet to send [09:22:03]OFD Sender: No OFD packet to send [09:22:08]OFD Sender: No OFD packet to send [09:22:13]OFD Sender: No OFD packet to send [09:22:18]OFD Sender: No OFD packet to send [09:22:23]OFD Sender: No OFD packet to send [09:22:28]OFD Sender: No OFD packet to send [09:22:33]OFD Sender: No OFD packet to send [09:22:38]OFD Sender: No OFD packet to send [09:22:43]OFD Sender: No OFD packet to send [09:22:48]OFD Sender: No OFD packet to send [09:22:53]OFD Sender: No OFD packet to send [09:22:58]OFD Sender: No OFD packet to send [09:23:03]OFD Sender: No OFD packet to send [09:23:08]OFD Sender: No OFD packet to send [09:23:13]OFD Sender: No OFD packet to send [09:23:18]OFD Sender: No OFD packet to send [09:23:23]OFD Sender: No OFD packet to send [09:23:28]OFD Sender: No OFD packet to send [09:23:33]OFD Sender: No OFD packet to send [09:23:38]OFD Sender: No OFD packet to send [09:23:43]OFD Sender: No OFD packet to send [09:23:48]OFD Sender: No OFD packet to send [09:23:53]OFD Sender: No OFD packet to send [09:23:58]OFD Sender: No OFD packet to send [09:24:03]OFD Sender: No OFD packet to send [09:24:08]OFD Sender: No OFD packet to send [09:24:13]OFD Sender: No OFD packet to send [09:24:18]OFD Sender: No OFD packet to send [09:24:23]OFD Sender: No OFD packet to send [09:24:28]OFD Sender: No OFD packet to send [09:24:33]OFD Sender: No OFD packet to send [09:24:38]OFD Sender: No OFD packet to send [09:24:43]OFD Sender: No OFD packet to send [09:24:48]OFD Sender: No OFD packet to send [09:24:53]OFD Sender: No OFD packet to send [09:24:58]OFD Sender: No OFD packet to send [09:25:03]OFD Sender: No OFD packet to send [09:25:08]OFD Sender: No OFD packet to send [09:25:13]OFD Sender: No OFD packet to send [09:25:18]OFD Sender: No OFD packet to send [09:25:23]OFD Sender: No OFD packet to send [09:25:28]OFD Sender: No OFD packet to send [09:25:33]OFD Sender: No OFD packet to send [09:25:38]OFD Sender: No OFD packet to send [09:25:43]OFD Sender: No OFD packet to send [09:25:48]OFD Sender: No OFD packet to send [09:25:53]OFD Sender: No OFD packet to send [09:25:58]OFD Sender: No OFD packet to send [09:26:03]OFD Sender: No OFD packet to send [09:26:08]OFD Sender: No OFD packet to send [09:26:13]OFD Sender: No OFD packet to send [09:26:18]OFD Sender: No OFD packet to send [09:26:23]OFD Sender: No OFD packet to send [09:26:28]OFD Sender: No OFD packet to send [09:26:33]OFD Sender: No OFD packet to send [09:26:38]OFD Sender: No OFD packet to send [09:26:43]OFD Sender: No OFD packet to send [09:26:48]OFD Sender: No OFD packet to send [09:26:53]OFD Sender: No OFD packet to send [09:26:58]OFD Sender: No OFD packet to send [09:27:03]OFD Sender: No OFD packet to send [09:27:08]OFD Sender: No OFD packet to send [09:27:13]OFD Sender: No OFD packet to send [09:27:18]OFD Sender: No OFD packet to send [09:27:23]OFD Sender: No OFD packet to send [09:27:28]OFD Sender: No OFD packet to send [09:27:33]OFD Sender: No OFD packet to send [09:27:38]OFD Sender: No OFD packet to send [09:27:43]OFD Sender: No OFD packet to send [09:27:48]OFD Sender: No OFD packet to send [09:27:53]OFD Sender: No OFD packet to send [09:27:58]OFD Sender: No OFD packet to send [09:28:03]OFD Sender: No OFD packet to send [09:28:08]OFD Sender: No OFD packet to send [09:28:13]OFD Sender: No OFD packet to send [09:28:18]OFD Sender: No OFD packet to send [09:28:23]OFD Sender: No OFD packet to send [09:28:28]OFD Sender: No OFD packet to send [09:28:33]OFD Sender: No OFD packet to send [09:28:38]OFD Sender: No OFD packet to send [09:28:43]OFD Sender: No OFD packet to send [09:28:48]OFD Sender: No OFD packet to send [09:28:53]OFD Sender: No OFD packet to send [09:28:58]OFD Sender: No OFD packet to send [09:29:03]OFD Sender: No OFD packet to send [09:29:08]OFD Sender: No OFD packet to send [09:29:13]OFD Sender: No OFD packet to send [09:29:18]OFD Sender: No OFD packet to send [09:29:23]OFD Sender: No OFD packet to send [09:29:28]OFD Sender: No OFD packet to send [09:29:33]OFD Sender: No OFD packet to send [09:29:38]OFD Sender: No OFD packet to send [09:29:43]OFD Sender: No OFD packet to send [09:29:48]OFD Sender: No OFD packet to send [09:29:53]OFD Sender: No OFD packet to send [09:29:58]OFD Sender: No OFD packet to send [09:30:03]OFD Sender: No OFD packet to send [09:30:08]OFD Sender: No OFD packet to send [09:30:13]OFD Sender: No OFD packet to send [09:30:18]OFD Sender: No OFD packet to send [09:30:23]OFD Sender: No OFD packet to send [09:30:28]OFD Sender: No OFD packet to send [09:30:33]OFD Sender: No OFD packet to send [09:30:38]OFD Sender: No OFD packet to send [09:30:43]OFD Sender: No OFD packet to send [09:30:48]OFD Sender: No OFD packet to send [09:30:53]OFD Sender: No OFD packet to send [09:30:58]OFD Sender: No OFD packet to send [09:31:03]OFD Sender: No OFD packet to send [09:31:08]OFD Sender: No OFD packet to send [09:31:13]OFD Sender: No OFD packet to send [09:31:18]OFD Sender: No OFD packet to send [09:31:23]OFD Sender: No OFD packet to send [09:31:28]OFD Sender: No OFD packet to send [09:31:33]OFD Sender: No OFD packet to send [09:31:38]OFD Sender: No OFD packet to send [09:31:43]OFD Sender: No OFD packet to send [09:31:48]OFD Sender: No OFD packet to send [09:31:53]OFD Sender: No OFD packet to send [09:31:58]OFD Sender: No OFD packet to send [09:32:03]OFD Sender: No OFD packet to send [09:32:08]OFD Sender: No OFD packet to send [09:32:13]OFD Sender: No OFD packet to send [09:32:16]accept exits with 9 [09:32:16]New connection [09:32:16]New thread 3066801508 created [09:32:16]Thread 3066658148 joined [09:32:16]Waiting for new connection... [09:32:16] Sock 9.Parse request [09:32:16]Sock 9.Check first char [09:32:16]Sock 9.First char is OK [09:32:16]request: POST /json_proto HTTP/1.0 [09:32:16]Method: POST [09:32:16]URL: /json_proto [09:32:16]Method is POST - this is cgi request [09:32:16]url: /json_proto [09:32:16]query_string will be loaded in cgi processing [09:32:16]execute_cgi json_proto POST (null) [09:32:16]execute_cgi path=json_proto method=POST [09:32:16]POST find Content-Length [09:32:16]Host: 172.17.57.71:8080 [09:32:16]Content-Length: 654 [09:32:16]Content-Type: application/json [09:32:16] [09:32:16]POST finish read [09:32:16]Found Content-Length = 654 [09:32:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127471", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:16]execute_script... [09:32:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127471", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:16]POST & json_proto [09:32:16]process_json_proto [09:32:16]json parsed OK: [09:32:16]protocol is kg_v1.0 [09:32:16]action value=close_receipt [09:32:16]process_action close_receipt [09:32:16]cmd_close_receipt [09:32:16]MH_GetDate [09:32:16]Write to MH i2c: F0 00 00 2E 45 62 [09:32:16]Write i2c OK [09:32:16]MH_I2C_Read... [09:32:16]Read from MH i2c: F0 [09:32:16]MH_I2C_Read... [09:32:16]Read from MH i2c: F0 09 00 [09:32:16]MH_I2C_Read... [09:32:16]Read from MH i2c: F0 09 00 2E 45 00 A8 A9 E6 66 33 3A A4 66 7F [09:32:16]GetLastDocTimeStamp 1726391908 [09:32:16]current date 1726392744 [09:32:16]FM_GetShiftState [09:32:16]SAM_PROTO_GetShiftState [09:32:16]wFMCommunicate request_size=4 [09:32:16]MH_SAM_APDU [09:32:16]CAPDU: 80 13 01 00 [09:32:16]Write to MH i2c: E2 08 00 2F 45 80 13 01 00 00 00 00 00 F1 [09:32:16]Write i2c OK [09:32:16]MH_I2C_Read... [09:32:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:16]Read from MH i2c: E2 [09:32:16]MH_I2C_Read... [09:32:16]Read from MH i2c: E2 0E 00 [09:32:16]MH_I2C_Read... [09:32:16]Read from MH i2c: E2 0E 00 2F 45 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 73 [09:32:16]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [09:32:16]wFMCommunicate OK [09:32:16]SAM_PROTO_GetShiftState done [09:32:16]FM_GetShiftState done [09:32:16]opened in 1726359809 [09:32:16]opened+sec_in_day 1726446209 [09:32:16]quantity*price = 7700 [09:32:16]sum+1 = 7701 [09:32:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 77.00 НСП 1% : 0.68 НДС 12% : 8.18 Наличными: 77.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 25 15.09.2024 09:32 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92577 ФПД: 280146440022663 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T093224&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92577&fm=280146440022663&tin=02508201610067®Number=0000000000091423&sum=7700 0 [09:32:17]StoreToDocumentArchive [09:32:17]shift 507 fd 92577 [09:32:17]save to /storage/0507/doc_00092577 [09:32:17]save last doc name /storage/0507/doc_00092577 to /storage/kkm_last_doc_name [09:32:17]save OK [09:32:17]Clear old archive folders... [09:32:17]ProcessDocumentItem done err = 0, tmpTLVsize=293 [09:32:17]tlvbuf is 00FD8C90 [09:32:17]SAM_PROTO_ClearQueue [09:32:17]wFMCommunicate request_size=4 [09:32:17]MH_SAM_APDU [09:32:17]CAPDU: 80 09 00 00 [09:32:17]Write to MH i2c: E2 08 00 3C 45 80 09 00 00 00 00 00 00 F3 [09:32:17]Write i2c OK [09:32:17]MH_I2C_Read... [09:32:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:17]Read from MH i2c: E2 [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: E2 03 00 [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: E2 03 00 3C 45 00 90 00 F5 [09:32:17]RAPDU: 90 00 [09:32:17]wFMCommunicate OK [09:32:17]SAM_PROTO_ClearQueue done [09:32:17]KKMCreateOFDPacket [09:32:17]OFDProtocolAddRootSTLVToBuf [09:32:17]FM_MakeSignedData [09:32:17]FM_MakeSignedData [09:32:17]SAM_PROTO_SignData [09:32:17]wFMCommunicate request_size=4 [09:32:17]MH_SAM_APDU [09:32:17]CAPDU: 80 0D 01 02 [09:32:17]Write to MH i2c: E2 08 00 3D 45 80 0D 01 02 00 00 00 00 FB [09:32:17]Write i2c OK [09:32:17]MH_I2C_Read... [09:32:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:17]Read from MH i2c: E2 [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: E2 03 00 [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: E2 03 00 3D 45 00 90 00 F6 [09:32:17]RAPDU: 90 00 [09:32:17]wFMCommunicate OK [09:32:17]wFMCommunicate request_size=255 [09:32:17]MH_SAM_APDU [09:32:17]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 A8 A9 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [09:32:17]Write to MH i2c: E2 02 01 3E 45 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 A8 A9 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 42 [09:32:17]Write i2c OK [09:32:17]MH_I2C_Read... [09:32:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:17]Read from MH i2c: E2 [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: E2 03 00 [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: E2 03 00 3E 45 00 90 00 F7 [09:32:17]RAPDU: 90 00 [09:32:17]wFMCommunicate OK [09:32:17]wFMCommunicate request_size=52 [09:32:17]MH_SAM_APDU [09:32:17]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A1 69 01 00 35 04 06 00 FE CA AD 0A EA 87 [09:32:17]Write to MH i2c: E2 37 00 3F 45 80 0D 02 02 2F 00 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A1 69 01 00 35 04 06 00 FE CA AD 0A EA 87 00 00 BA [09:32:17]Write i2c OK [09:32:17]MH_I2C_Read... [09:32:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:17]Read from MH i2c: E2 [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: E2 03 00 [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: E2 03 00 3F 45 00 90 00 F8 [09:32:17]RAPDU: 90 00 [09:32:17]wFMCommunicate OK [09:32:17]wFMCommunicate request_size=4 [09:32:17]MH_SAM_APDU [09:32:17]CAPDU: 80 0D 03 02 [09:32:17]Write to MH i2c: E2 08 00 40 45 80 0D 03 02 00 00 00 00 00 [09:32:17]Write i2c OK [09:32:17]MH_I2C_Read... [09:32:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:17]Read from MH i2c: E2 [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: E2 0B 00 [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: E2 0B 00 40 45 00 3F E8 C0 02 6F EA FB A0 90 00 DE [09:32:17]RAPDU: 3F E8 C0 02 6F EA FB A0 90 00 [09:32:17]wFMCommunicate OK [09:32:17]SAM_PROTO_SignData done [09:32:17]FM_MakeSignedData done [09:32:17]CreateOFDProtocolMessage [09:32:17]wFMCommunicate request_size=4 [09:32:17]MH_SAM_APDU [09:32:17]CAPDU: 80 11 00 00 [09:32:17]Write to MH i2c: E2 08 00 41 45 80 11 00 00 00 00 00 00 00 [09:32:17]Write i2c OK [09:32:17]MH_I2C_Read... [09:32:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:17]Read from MH i2c: E2 [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: E2 17 00 [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: E2 17 00 41 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 57 [09:32:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:32:17]wFMCommunicate OK [09:32:17]CreateOFDProtocolMessage done [09:32:17]OFDSenderStorePacket 92577 [09:32:17]StoreOFDPacket docnum=92577 [09:32:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 39 01 00 00 03 2D 31 01 6E BA 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 A8 A9 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A1 69 01 00 35 04 06 00 FE CA AD 0A EA 87 3F E8 C0 02 6F EA FB A0 [09:32:17]CheckFolder [09:32:17]dirname=/storage/ofd_packets [09:32:17]CheckFolder done [09:32:17]ProducePacketName [09:32:17]name=ofd_packets/00092577 [09:32:17]NVStorageSaveData ofd_packets/00092577 [09:32:17]File name is /storage/ofd_packets/00092577 [09:32:17]Write 343 bytes [09:32:17]NVStorageSaveData done [09:32:17]OFDSenderStorePacket done [09:32:17]KKMCreateOFDPacket done [09:32:17]NVStorageSaveData kkm_last_timestamp [09:32:17]File name is /storage/kkm_last_timestamp [09:32:17]Write 4 bytes [09:32:17]NVStorageSaveData done [09:32:17]ExternCall_PrintAddStr [09:32:17]wPrintStart [09:32:17]Write to MH i2c: 01 00 00 42 45 87 [09:32:17]Write i2c OK [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: 01 [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: 01 07 00 [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: 01 07 00 42 45 00 00 00 00 00 FF 0F 9C [09:32:17]RasterBufferAndPrint [09:32:17]line Счет N : (3)127471 [09:32:17]line ИНН: 02508201610067 [09:32:17]line Контрольно-Кассовый Чек [09:32:17]line ПРОДАЖА [09:32:17]line Товар: 4700000480050 [09:32:17]line Напиток Nitro Energy эн green ж/б 0,45л [09:32:17]line 1.000 * 77.00 [09:32:17]line = 77.00 [09:32:17]line НДС 12% НСП 1% [09:32:17]line > о реализуемом товаре [09:32:17]line ИТОГО: 77.00 [09:32:17]line НСП 1% : 0.68 [09:32:17]line НДС 12% : 8.18 [09:32:17]line Наличными: 77.00 [09:32:17]line Безнал.: 0.00 [09:32:17]line Место: АЗС № 5 "Партнер Нефть" [09:32:17]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [09:32:17]line СНО: Общий режим [09:32:17]line Чек 25 15.09.2024 09:32 [09:32:17]line Смена: 507 ФФД: 1.0 [09:32:17]line ЗНМ: 03000000022 [09:32:17]line РНМ: 0000000000091423 [09:32:17]line Версия ККМ: 001 [09:32:17]line ФМ: 0000000000874692 [09:32:17]line ФД: 92577 [09:32:17]line ФПД: 280146440022663 [09:32:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T093224&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92577&fm=280146440022663&tin=02508201610067®Number=0000000000091423&sum=7700 [09:32:18]OFD Sender: Processing packet 92577 [packets to send 63, broken 62] [09:32:18]ProducePacketName [09:32:18]name=ofd_packets/00092577 [09:32:18]OFD Sender: To server: pG, [09:32:18]CommunicateWithHost lk.salyk.kg:30040 [09:32:18]ConnectInit lk.salyk.kg [09:32:18]line 0 [09:32:18]written 0, free lines is 4095 [09:32:18]Connected sock=8 [09:32:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 39 01 00 00 03 2D 31 01 6E BA 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 A8 A9 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A1 69 01 00 35 04 06 00 FE CA AD 0A EA 87 3F E8 C0 02 6F EA FB A0 [09:32:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 97 FE 47 00 4F 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A1 69 01 00 F4 03 04 00 20 52 E6 66 B6 04 01 00 00 9B 29 96 A9 98 72 E0 50 [09:32:18]CommunicateWithHost err = 0 [09:32:18]CheckOFDResponse [09:32:18]1017 (14) - 77093643461234 [09:32:18]1041 (16) - 0000000000874692 [09:32:18]1040 (4) - 92577 [09:32:18]1012 (4) - 15.09.2024 03:18 [09:32:18]1206 (1) - 0 [09:32:18]OFD Sender: Remove packet 92577 [09:32:18]ProducePacketName [09:32:18]name=ofd_packets/00092577 [09:32:18]NVStorageDeleteData [09:32:18]Write to MH i2c: 01 00 00 6B 45 B0 [09:32:18]Write i2c OK [09:32:18]MH_I2C_Read... [09:32:18]Read from MH i2c: 01 [09:32:18]MH_I2C_Read... [09:32:18]Read from MH i2c: 01 07 00 [09:32:18]MH_I2C_Read... [09:32:18]Read from MH i2c: 01 07 00 6B 45 00 00 00 00 00 1E 0D E2 [09:32:18]RasterBufferAndPrint [09:32:18]line [09:32:18]line [09:32:18]line [09:32:18]line [09:32:18]line [09:32:18]written 0, free lines is 3364 [09:32:18]MH_Cut [09:32:18]Write to MH i2c: D1 01 00 72 45 01 89 [09:32:18]Write i2c OK [09:32:18]MH_I2C_Read... [09:32:18]Read from MH i2c: D1 [09:32:18]MH_I2C_Read... [09:32:18]Read from MH i2c: D1 01 00 [09:32:18]MH_I2C_Read... [09:32:18]Read from MH i2c: D1 01 00 72 45 00 88 [09:32:18]Write to MH i2c: 01 00 00 73 45 B8 [09:32:18]Write i2c OK [09:32:18]MH_I2C_Read... [09:32:19]OFD Sender: No OFD packet to send [09:32:19]*** Cut start [09:32:19]*** Purtial cut [09:32:19]*** Stage 1: CUTSNS_PIN = 1 [09:32:21]Read from MH i2c: 01 [09:32:21]MH_I2C_Read... [09:32:21]*** Stop cut motor [09:32:21]*** Cut end [09:32:21]Read from MH i2c: 01 07 00 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: 01 07 00 73 45 00 00 00 00 00 FF 0F CD [09:32:21]process_action close_receipt done [09:32:21]requested_data is exist [09:32:21]produce_requested_data [09:32:21]requested_item fm.sn is exist - process it [09:32:21]wFMCommunicate request_size=4 [09:32:21]MH_SAM_APDU [09:32:21]CAPDU: 80 11 00 00 [09:32:21]Write to MH i2c: E2 08 00 74 45 80 11 00 00 00 00 00 00 33 [09:32:21]Write i2c OK [09:32:21]MH_I2C_Read... [09:32:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:21]Read from MH i2c: E2 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: E2 17 00 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: E2 17 00 74 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 8A [09:32:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:32:21]wFMCommunicate OK [09:32:21]requested_item fd.num is exist - process it [09:32:21]SAM_PROTO_GetFieldsCounters [09:32:21]wFMCommunicate request_size=4 [09:32:21]MH_SAM_APDU [09:32:21]CAPDU: 80 13 00 00 [09:32:21]Write to MH i2c: E2 08 00 75 45 80 13 00 00 00 00 00 00 36 [09:32:21]Write i2c OK [09:32:21]MH_I2C_Read... [09:32:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:21]Read from MH i2c: E2 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: E2 62 00 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: E2 62 00 75 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A1 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [09:32:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A1 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:32:21]wFMCommunicate OK [09:32:21]SAM_PROTO_GetFieldsCounters done [09:32:21]requested_item shift.num is exist - process it [09:32:21]requested_item shift.opened is exist - process it [09:32:21]req_shift_opened [09:32:21]FM_GetShiftState [09:32:21]SAM_PROTO_GetShiftState [09:32:21]wFMCommunicate request_size=4 [09:32:21]MH_SAM_APDU [09:32:21]CAPDU: 80 13 01 00 [09:32:21]Write to MH i2c: E2 08 00 76 45 80 13 01 00 00 00 00 00 38 [09:32:21]Write i2c OK [09:32:21]MH_I2C_Read... [09:32:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:21]Read from MH i2c: E2 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: E2 0E 00 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: E2 0E 00 76 45 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 BA [09:32:21]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [09:32:21]wFMCommunicate OK [09:32:21]SAM_PROTO_GetShiftState done [09:32:21]FM_GetShiftState done [09:32:21]req_shift_opened done [09:32:21]requested_item shift.open_date is exist - process it [09:32:21]req_shift_open_date [09:32:21]req_shift_open_date done [09:32:21]produce_requested_data done [09:32:21]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92577,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [09:32:21]process_action_free close_receipt [09:32:21]json_value_free [09:32:21]json_value_free done [09:32:21]process_json_proto returns [09:32:21]Send response to host [09:32:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92577,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [09:32:21]free response buf [09:32:21]execute_script done [09:32:21]execute_script returns [09:32:21]free content buf [09:32:21]Sock 9.Close socket [09:32:21]Sock 9.Thread stoped [09:32:24]OFD Sender: No OFD packet to send [09:32:29]OFD Sender: No OFD packet to send [09:32:34]OFD Sender: No OFD packet to send [09:32:39]OFD Sender: No OFD packet to send [09:32:44]OFD Sender: No OFD packet to send [09:32:49]OFD Sender: No OFD packet to send [09:32:54]OFD Sender: No OFD packet to send [09:32:59]OFD Sender: No OFD packet to send [09:33:04]OFD Sender: No OFD packet to send [09:33:09]OFD Sender: No OFD packet to send [09:33:14]OFD Sender: No OFD packet to send [09:33:19]OFD Sender: No OFD packet to send [09:33:24]OFD Sender: No OFD packet to send [09:33:29]OFD Sender: No OFD packet to send [09:33:34]OFD Sender: No OFD packet to send [09:33:39]OFD Sender: No OFD packet to send [09:33:44]OFD Sender: No OFD packet to send [09:33:49]OFD Sender: No OFD packet to send [09:33:54]OFD Sender: No OFD packet to send [09:33:59]OFD Sender: No OFD packet to send [09:34:04]OFD Sender: No OFD packet to send [09:34:09]OFD Sender: No OFD packet to send [09:34:14]OFD Sender: No OFD packet to send [09:34:19]OFD Sender: No OFD packet to send [09:34:24]OFD Sender: No OFD packet to send [09:34:29]OFD Sender: No OFD packet to send [09:34:34]OFD Sender: No OFD packet to send [09:34:39]OFD Sender: No OFD packet to send [09:34:44]OFD Sender: No OFD packet to send [09:34:49]OFD Sender: No OFD packet to send [09:34:54]OFD Sender: No OFD packet to send [09:34:59]OFD Sender: No OFD packet to send [09:35:04]OFD Sender: No OFD packet to send [09:35:09]OFD Sender: No OFD packet to send [09:35:14]OFD Sender: No OFD packet to send [09:35:19]OFD Sender: No OFD packet to send [09:35:24]OFD Sender: No OFD packet to send [09:35:29]OFD Sender: No OFD packet to send [09:35:34]OFD Sender: No OFD packet to send [09:35:39]OFD Sender: No OFD packet to send [09:35:44]OFD Sender: No OFD packet to send [09:35:49]OFD Sender: No OFD packet to send [09:35:54]OFD Sender: No OFD packet to send [09:35:59]OFD Sender: No OFD packet to send [09:36:04]OFD Sender: No OFD packet to send [09:36:09]OFD Sender: No OFD packet to send [09:36:14]OFD Sender: No OFD packet to send [09:36:19]OFD Sender: No OFD packet to send [09:36:24]OFD Sender: No OFD packet to send [09:36:29]OFD Sender: No OFD packet to send [09:36:34]OFD Sender: No OFD packet to send [09:36:39]OFD Sender: No OFD packet to send [09:36:44]OFD Sender: No OFD packet to send [09:36:49]OFD Sender: No OFD packet to send [09:36:54]OFD Sender: No OFD packet to send [09:36:59]OFD Sender: No OFD packet to send [09:37:04]OFD Sender: No OFD packet to send [09:37:09]OFD Sender: No OFD packet to send [09:37:14]OFD Sender: No OFD packet to send [09:37:19]OFD Sender: No OFD packet to send [09:37:24]OFD Sender: No OFD packet to send [09:37:29]OFD Sender: No OFD packet to send [09:37:34]OFD Sender: No OFD packet to send [09:37:39]OFD Sender: No OFD packet to send [09:37:44]OFD Sender: No OFD packet to send [09:37:49]OFD Sender: No OFD packet to send [09:37:54]OFD Sender: No OFD packet to send [09:37:59]OFD Sender: No OFD packet to send [09:38:04]OFD Sender: No OFD packet to send [09:38:09]OFD Sender: No OFD packet to send [09:38:14]OFD Sender: No OFD packet to send [09:38:19]OFD Sender: No OFD packet to send [09:38:24]OFD Sender: No OFD packet to send [09:38:29]OFD Sender: No OFD packet to send [09:38:34]OFD Sender: No OFD packet to send [09:38:39]OFD Sender: No OFD packet to send [09:38:44]OFD Sender: No OFD packet to send [09:38:49]OFD Sender: No OFD packet to send [09:38:54]OFD Sender: No OFD packet to send [09:38:59]OFD Sender: No OFD packet to send [09:39:04]OFD Sender: No OFD packet to send [09:39:09]OFD Sender: No OFD packet to send [09:39:14]OFD Sender: No OFD packet to send [09:39:19]OFD Sender: No OFD packet to send [09:39:24]OFD Sender: No OFD packet to send [09:39:29]OFD Sender: No OFD packet to send [09:39:34]OFD Sender: No OFD packet to send [09:39:39]OFD Sender: No OFD packet to send [09:39:44]OFD Sender: No OFD packet to send [09:39:49]OFD Sender: No OFD packet to send [09:39:54]OFD Sender: No OFD packet to send [09:39:56]accept exits with 10 [09:39:56]New connection [09:39:56]New thread 3066658148 created [09:39:56]Thread 3066801508 joined [09:39:56]Waiting for new connection... [09:39:56] Sock 10.Parse request [09:39:56]Sock 10.Check first char [09:39:56]Sock 10.First char is OK [09:39:56]request: POST /json_proto HTTP/1.0 [09:39:56]Method: POST [09:39:56]URL: /json_proto [09:39:56]Method is POST - this is cgi request [09:39:56]url: /json_proto [09:39:56]query_string will be loaded in cgi processing [09:39:56]execute_cgi json_proto POST (null) [09:39:56]execute_cgi path=json_proto method=POST [09:39:56]POST find Content-Length [09:39:56]Host: 172.17.57.71:8080 [09:39:56]Content-Length: 973 [09:39:56]Content-Type: application/json [09:39:56] [09:39:56]POST finish read [09:39:56]Found Content-Length = 973 [09:39:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127472", "tax_sys" : 0, "items" : [ { "code": "4870002328619", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A DADA \u0430\u043F\u0435\u043B,\u043B\u0435\u043C\u043E\u043D\u0433\u0440 \u041F\u042D\u0422 0,5\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 2.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:56]execute_script... [09:39:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127472", "tax_sys" : 0, "items" : [ { "code": "4870002328619", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A DADA \u0430\u043F\u0435\u043B,\u043B\u0435\u043C\u043E\u043D\u0433\u0440 \u041F\u042D\u0422 0,5\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 2.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:56]POST & json_proto [09:39:56]process_json_proto [09:39:56]json parsed OK: [09:39:56]protocol is kg_v1.0 [09:39:56]action value=close_receipt [09:39:56]process_action close_receipt [09:39:56]cmd_close_receipt [09:39:56]MH_GetDate [09:39:56]Write to MH i2c: F0 00 00 77 45 AB [09:39:56]Write i2c OK [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: F0 [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: F0 09 00 [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: F0 09 00 77 45 00 74 AB E6 66 33 3A A4 66 96 [09:39:56]GetLastDocTimeStamp 1726392744 [09:39:56]current date 1726393204 [09:39:56]FM_GetShiftState [09:39:56]SAM_PROTO_GetShiftState [09:39:56]wFMCommunicate request_size=4 [09:39:56]MH_SAM_APDU [09:39:56]CAPDU: 80 13 01 00 [09:39:56]Write to MH i2c: E2 08 00 78 45 80 13 01 00 00 00 00 00 3A [09:39:56]Write i2c OK [09:39:56]MH_I2C_Read... [09:39:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:56]Read from MH i2c: E2 [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: E2 0E 00 [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: E2 0E 00 78 45 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 BC [09:39:56]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [09:39:56]wFMCommunicate OK [09:39:56]SAM_PROTO_GetShiftState done [09:39:56]FM_GetShiftState done [09:39:56]opened in 1726359809 [09:39:56]opened+sec_in_day 1726446209 [09:39:56]quantity*price = 9000 [09:39:56]sum+1 = 9001 [09:39:56]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600682557456 Напиток FLash up energy эн ж/б 0,5/0,45л 2.000 * 85.00 = 170.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 26 15.09.2024 09:40 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92578 ФПД: 112628988525523 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T094004&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92578&fm=112628988525523&tin=02508201610067®Number=0000000000091423&sum=26000 0 [09:39:57]StoreToDocumentArchive [09:39:57]shift 507 fd 92578 [09:39:57]save to /storage/0507/doc_00092578 [09:39:57]save last doc name /storage/0507/doc_00092578 to /storage/kkm_last_doc_name [09:39:57]save OK [09:39:57]Clear old archive folders... [09:39:57]ProcessDocumentItem done err = 0, tmpTLVsize=422 [09:39:57]tlvbuf is 00F92C60 [09:39:57]SAM_PROTO_ClearQueue [09:39:57]wFMCommunicate request_size=4 [09:39:57]MH_SAM_APDU [09:39:57]CAPDU: 80 09 00 00 [09:39:57]Write to MH i2c: E2 08 00 85 45 80 09 00 00 00 00 00 00 3C [09:39:57]Write i2c OK [09:39:57]MH_I2C_Read... [09:39:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:57]Read from MH i2c: E2 [09:39:57]MH_I2C_Read... [09:39:57]Read from MH i2c: E2 03 00 [09:39:57]MH_I2C_Read... [09:39:57]Read from MH i2c: E2 03 00 85 45 00 90 00 3E [09:39:57]RAPDU: 90 00 [09:39:57]wFMCommunicate OK [09:39:57]SAM_PROTO_ClearQueue done [09:39:57]KKMCreateOFDPacket [09:39:57]OFDProtocolAddRootSTLVToBuf [09:39:57]FM_MakeSignedData [09:39:57]FM_MakeSignedData [09:39:57]SAM_PROTO_SignData [09:39:57]wFMCommunicate request_size=4 [09:39:57]MH_SAM_APDU [09:39:57]CAPDU: 80 0D 01 02 [09:39:57]Write to MH i2c: E2 08 00 86 45 80 0D 01 02 00 00 00 00 44 [09:39:57]Write i2c OK [09:39:57]MH_I2C_Read... [09:39:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:57]Read from MH i2c: E2 [09:39:57]MH_I2C_Read... [09:39:57]Read from MH i2c: E2 03 00 [09:39:57]MH_I2C_Read... [09:39:57]Read from MH i2c: E2 03 00 86 45 00 90 00 3F [09:39:57]RAPDU: 90 00 [09:39:57]wFMCommunicate OK [09:39:57]wFMCommunicate request_size=255 [09:39:57]MH_SAM_APDU [09:39:57]CAPDU: 80 0D 02 02 FA 03 00 A6 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 36 31 39 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D0 B0 D0 BF D0 B5 D0 BB 2C D0 BB D0 B5 D0 BC D0 BE D0 BD D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 [09:39:57]Write to MH i2c: E2 02 01 87 45 80 0D 02 02 FA 00 03 00 A6 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 36 31 39 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D0 B0 D0 BF D0 B5 D0 BB 2C D0 BB D0 B5 D0 BC D0 BE D0 BD D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 00 00 0A [09:39:57]Write i2c OK [09:39:57]MH_I2C_Read... [09:39:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:57]Read from MH i2c: E2 [09:39:57]MH_I2C_Read... [09:39:57]Read from MH i2c: E2 03 00 [09:39:57]MH_I2C_Read... [09:39:57]Read from MH i2c: E2 03 00 87 45 00 90 00 40 [09:39:57]RAPDU: 90 00 [09:39:57]wFMCommunicate OK [09:39:57]wFMCommunicate request_size=181 [09:39:57]MH_SAM_APDU [09:39:57]CAPDU: 80 0D 02 02 B0 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 74 AB E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A2 69 01 00 35 04 06 00 66 6F 7A DA 3B D3 [09:39:57]Write to MH i2c: E2 B8 00 88 45 80 0D 02 02 B0 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 74 AB E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A2 69 01 00 35 04 06 00 66 6F 7A DA 3B D3 00 00 0C [09:39:57]Write i2c OK [09:39:57]MH_I2C_Read... [09:39:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:58]Read from MH i2c: E2 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: E2 03 00 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: E2 03 00 88 45 00 90 00 41 [09:39:58]RAPDU: 90 00 [09:39:58]wFMCommunicate OK [09:39:58]wFMCommunicate request_size=4 [09:39:58]MH_SAM_APDU [09:39:58]CAPDU: 80 0D 03 02 [09:39:58]Write to MH i2c: E2 08 00 89 45 80 0D 03 02 00 00 00 00 49 [09:39:58]Write i2c OK [09:39:58]MH_I2C_Read... [09:39:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:58]Read from MH i2c: E2 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: E2 0B 00 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: E2 0B 00 89 45 00 48 A5 6B 78 98 89 1E 29 90 00 82 [09:39:58]RAPDU: 48 A5 6B 78 98 89 1E 29 90 00 [09:39:58]wFMCommunicate OK [09:39:58]SAM_PROTO_SignData done [09:39:58]FM_MakeSignedData done [09:39:58]CreateOFDProtocolMessage [09:39:58]wFMCommunicate request_size=4 [09:39:58]MH_SAM_APDU [09:39:58]CAPDU: 80 11 00 00 [09:39:58]Write to MH i2c: E2 08 00 8A 45 80 11 00 00 00 00 00 00 49 [09:39:58]Write i2c OK [09:39:58]MH_I2C_Read... [09:39:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:58]Read from MH i2c: E2 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: E2 17 00 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: E2 17 00 8A 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A0 [09:39:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:39:58]wFMCommunicate OK [09:39:58]CreateOFDProtocolMessage done [09:39:58]OFDSenderStorePacket 92578 [09:39:58]StoreOFDPacket docnum=92578 [09:39:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 BA 01 00 00 BA F0 B2 01 67 10 5A 03 01 00 03 00 A6 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 36 31 39 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D0 B0 D0 BF D0 B5 D0 BB 2C D0 BB D0 B5 D0 BC D0 BE D0 BD D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 74 AB E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A2 69 01 00 35 04 06 00 66 6F 7A DA 3B D3 48 A5 6B 78 98 89 1E 29 [09:39:58]CheckFolder [09:39:58]dirname=/storage/ofd_packets [09:39:58]CheckFolder done [09:39:58]ProducePacketName [09:39:58]name=ofd_packets/00092578 [09:39:58]NVStorageSaveData ofd_packets/00092578 [09:39:58]File name is /storage/ofd_packets/00092578 [09:39:58]Write 472 bytes [09:39:58]NVStorageSaveData done [09:39:58]OFDSenderStorePacket done [09:39:58]KKMCreateOFDPacket done [09:39:58]NVStorageSaveData kkm_last_timestamp [09:39:58]File name is /storage/kkm_last_timestamp [09:39:58]Write 4 bytes [09:39:58]NVStorageSaveData done [09:39:58]ExternCall_PrintAddStr [09:39:58]wPrintStart [09:39:58]Write to MH i2c: 01 00 00 8B 45 D0 [09:39:58]Write i2c OK [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: 01 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: 01 07 00 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: 01 07 00 8B 45 00 00 00 00 00 FF 0F E5 [09:39:58]RasterBufferAndPrint [09:39:58]line Счет N : (3)127472 [09:39:58]line ИНН: 02508201610067 [09:39:58]line Контрольно-Кассовый Чек [09:39:58]line ПРОДАЖА [09:39:58]line Товар: 4870002328619 [09:39:58]line Напиток DADA апел,лемонгр ПЭТ 0,5л [09:39:58]line 1.000 * 90.00 [09:39:58]line = 90.00 [09:39:58]line НДС 12% НСП 1% [09:39:58]line > о реализуемом товаре [09:39:58]line Товар: 4600682557456 [09:39:58]line Напиток FLash up energy эн ж/б 0,5/0,45л [09:39:58]line 2.000 * 85.00 [09:39:58]line = 170.00 [09:39:58]line НДС 12% НСП 1% [09:39:58]line > о реализуемом товаре [09:39:58]line ИТОГО: 260.00 [09:39:58]line НСП 1% : 2.30 [09:39:58]line НДС 12% : 27.61 [09:39:58]line Наличными: 260.00 [09:39:58]line Безнал.: 0.00 [09:39:58]line Место: АЗС № 5 "Партнер Нефть" [09:39:58]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [09:39:58]line СНО: Общий режим [09:39:58]line Чек 26 15.09.2024 09:40 [09:39:58]line Смена: 507 ФФД: 1.0 [09:39:58]line ЗНМ: 03000000022 [09:39:58]line РНМ: 0000000000091423 [09:39:58]line Версия ККМ: 001 [09:39:58]line ФМ: 0000000000874692 [09:39:58]line ФД: 92578 [09:39:58]line ФПД: 112628988525523 [09:39:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T094004&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92578&fm=112628988525523&tin=02508201610067®Number=0000000000091423&sum=26000 [09:39:58]line 0 [09:39:58]OFD Sender: Processing packet 92578 [packets to send 63, broken 62] [09:39:58]ProducePacketName [09:39:58]name=ofd_packets/00092578 [09:39:58]OFD Sender: To server: pG, [09:39:58]CommunicateWithHost lk.salyk.kg:30040 [09:39:58]ConnectInit lk.salyk.kg [09:39:58]written 0, free lines is 4095 [09:39:58]Connected sock=9 [09:39:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 BA 01 00 00 BA F0 B2 01 67 10 5A 03 01 00 03 00 A6 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 36 31 39 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D0 B0 D0 BF D0 B5 D0 BB 2C D0 BB D0 B5 D0 BC D0 BE D0 BD D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 74 AB E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A2 69 01 00 35 04 06 00 66 6F 7A DA 3B D3 48 A5 6B 78 98 89 1E 29 [09:39:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 59 6F 47 00 35 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A2 69 01 00 F4 03 04 00 EC 53 E6 66 B6 04 01 00 00 97 3E C0 A5 7C 92 40 45 [09:39:58]CommunicateWithHost err = 0 [09:39:58]CheckOFDResponse [09:39:58]1017 (14) - 77093643461234 [09:39:58]1041 (16) - 0000000000874692 [09:39:58]1040 (4) - 92578 [09:39:58]1012 (4) - 15.09.2024 03:26 [09:39:58]1206 (1) - 0 [09:39:58]OFD Sender: Remove packet 92578 [09:39:58]ProducePacketName [09:39:58]name=ofd_packets/00092578 [09:39:58]NVStorageDeleteData [09:39:59]Write to MH i2c: 01 00 00 BB 45 00 [09:39:59]Write i2c OK [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: 01 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: 01 07 00 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: 01 07 00 BB 45 00 00 00 00 00 BB 0C CE [09:39:59]RasterBufferAndPrint [09:39:59]line [09:39:59]line [09:39:59]line [09:39:59]line [09:39:59]line [09:39:59]written 0, free lines is 3268 [09:39:59]MH_Cut [09:39:59]Write to MH i2c: D1 01 00 C2 45 01 D9 [09:39:59]Write i2c OK [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: D1 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: D1 01 00 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: D1 01 00 C2 45 00 D8 [09:39:59]Write to MH i2c: 01 00 00 C3 45 08 [09:39:59]Write i2c OK [09:39:59]MH_I2C_Read... [09:39:59]OFD Sender: No OFD packet to send [09:39:59]*** Cut start [09:39:59]*** Purtial cut [09:39:59]*** Stage 1: CUTSNS_PIN = 1 [09:40:01]Read from MH i2c: 01 [09:40:01]MH_I2C_Read... [09:40:01]*** Stop cut motor [09:40:01]*** Cut end [09:40:01]Read from MH i2c: 01 07 00 [09:40:01]MH_I2C_Read... [09:40:01]Read from MH i2c: 01 07 00 C3 45 00 00 00 00 00 FF 0F 1D [09:40:01]process_action close_receipt done [09:40:01]requested_data is exist [09:40:01]produce_requested_data [09:40:01]requested_item fm.sn is exist - process it [09:40:01]wFMCommunicate request_size=4 [09:40:01]MH_SAM_APDU [09:40:01]CAPDU: 80 11 00 00 [09:40:01]Write to MH i2c: E2 08 00 C4 45 80 11 00 00 00 00 00 00 83 [09:40:01]Write i2c OK [09:40:01]MH_I2C_Read... [09:40:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:01]Read from MH i2c: E2 [09:40:01]MH_I2C_Read... [09:40:01]Read from MH i2c: E2 17 00 [09:40:01]MH_I2C_Read... [09:40:01]Read from MH i2c: E2 17 00 C4 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 DA [09:40:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:40:01]wFMCommunicate OK [09:40:01]requested_item fd.num is exist - process it [09:40:01]SAM_PROTO_GetFieldsCounters [09:40:01]wFMCommunicate request_size=4 [09:40:01]MH_SAM_APDU [09:40:01]CAPDU: 80 13 00 00 [09:40:01]Write to MH i2c: E2 08 00 C5 45 80 13 00 00 00 00 00 00 86 [09:40:01]Write i2c OK [09:40:01]MH_I2C_Read... [09:40:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:01]Read from MH i2c: E2 [09:40:01]MH_I2C_Read... [09:40:01]Read from MH i2c: E2 62 00 [09:40:01]MH_I2C_Read... [09:40:01]Read from MH i2c: E2 62 00 C5 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A2 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [09:40:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A2 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:40:01]wFMCommunicate OK [09:40:01]SAM_PROTO_GetFieldsCounters done [09:40:01]requested_item shift.num is exist - process it [09:40:01]requested_item shift.opened is exist - process it [09:40:01]req_shift_opened [09:40:01]FM_GetShiftState [09:40:01]SAM_PROTO_GetShiftState [09:40:01]wFMCommunicate request_size=4 [09:40:01]MH_SAM_APDU [09:40:01]CAPDU: 80 13 01 00 [09:40:01]Write to MH i2c: E2 08 00 C6 45 80 13 01 00 00 00 00 00 88 [09:40:01]Write i2c OK [09:40:01]MH_I2C_Read... [09:40:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:01]Read from MH i2c: E2 [09:40:01]MH_I2C_Read... [09:40:01]Read from MH i2c: E2 0E 00 [09:40:01]MH_I2C_Read... [09:40:01]Read from MH i2c: E2 0E 00 C6 45 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 0A [09:40:01]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [09:40:01]wFMCommunicate OK [09:40:01]SAM_PROTO_GetShiftState done [09:40:01]FM_GetShiftState done [09:40:01]req_shift_opened done [09:40:01]requested_item shift.open_date is exist - process it [09:40:01]req_shift_open_date [09:40:01]req_shift_open_date done [09:40:01]produce_requested_data done [09:40:01]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92578,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [09:40:01]process_action_free close_receipt [09:40:01]json_value_free [09:40:01]json_value_free done [09:40:01]process_json_proto returns [09:40:01]Send response to host [09:40:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92578,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [09:40:01]free response buf [09:40:01]execute_script done [09:40:01]execute_script returns [09:40:01]free content buf [09:40:01]Sock 10.Close socket [09:40:01]Sock 10.Thread stoped [09:40:04]OFD Sender: No OFD packet to send [09:40:09]OFD Sender: No OFD packet to send [09:40:10]accept exits with 8 [09:40:10]New connection [09:40:10]New thread 3066801508 created [09:40:10]Thread 3066658148 joined [09:40:10]Waiting for new connection... [09:40:10] Sock 8.Parse request [09:40:10]Sock 8.Check first char [09:40:10]Sock 8.First char is OK [09:40:10]request: POST /json_proto HTTP/1.0 [09:40:10]Method: POST [09:40:10]URL: /json_proto [09:40:10]Method is POST - this is cgi request [09:40:10]url: /json_proto [09:40:10]query_string will be loaded in cgi processing [09:40:10]execute_cgi json_proto POST (null) [09:40:10]execute_cgi path=json_proto method=POST [09:40:10]POST find Content-Length [09:40:10]Host: 172.17.57.71:8080 [09:40:10]Content-Length: 621 [09:40:10]Content-Type: application/json [09:40:10] [09:40:10]POST finish read [09:40:10]Found Content-Length = 621 [09:40:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127473", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:10]execute_script... [09:40:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127473", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:10]POST & json_proto [09:40:10]process_json_proto [09:40:10]json parsed OK: [09:40:10]protocol is kg_v1.0 [09:40:10]action value=close_receipt [09:40:10]process_action close_receipt [09:40:10]cmd_close_receipt [09:40:10]MH_GetDate [09:40:10]Write to MH i2c: F0 00 00 C7 45 FB [09:40:10]Write i2c OK [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: F0 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: F0 09 00 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: F0 09 00 C7 45 00 82 AB E6 66 33 3A A4 66 F4 [09:40:10]GetLastDocTimeStamp 1726393204 [09:40:10]current date 1726393218 [09:40:10]FM_GetShiftState [09:40:10]SAM_PROTO_GetShiftState [09:40:10]wFMCommunicate request_size=4 [09:40:10]MH_SAM_APDU [09:40:10]CAPDU: 80 13 01 00 [09:40:10]Write to MH i2c: E2 08 00 C8 45 80 13 01 00 00 00 00 00 8A [09:40:10]Write i2c OK [09:40:10]MH_I2C_Read... [09:40:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:10]Read from MH i2c: E2 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 0E 00 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 0E 00 C8 45 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 0C [09:40:10]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [09:40:10]wFMCommunicate OK [09:40:10]SAM_PROTO_GetShiftState done [09:40:10]FM_GetShiftState done [09:40:10]opened in 1726359809 [09:40:10]opened+sec_in_day 1726446209 [09:40:10]quantity*price = 14400 [09:40:10]sum+1 = 14401 [09:40:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 27 15.09.2024 09:40 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92579 ФПД: 237420018100642 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T094018&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92579&fm=237420018100642&tin=02508201610067®Number=0000000000091423&sum=14400 0 [09:40:11]StoreToDocumentArchive [09:40:11]shift 507 fd 92579 [09:40:11]save to /storage/0507/doc_00092579 [09:40:11]save last doc name /storage/0507/doc_00092579 to /storage/kkm_last_doc_name [09:40:11]save OK [09:40:11]Clear old archive folders... [09:40:11]ProcessDocumentItem done err = 0, tmpTLVsize=273 [09:40:11]tlvbuf is 0101E630 [09:40:11]SAM_PROTO_ClearQueue [09:40:11]wFMCommunicate request_size=4 [09:40:11]MH_SAM_APDU [09:40:11]CAPDU: 80 09 00 00 [09:40:11]Write to MH i2c: E2 08 00 D5 45 80 09 00 00 00 00 00 00 8C [09:40:11]Write i2c OK [09:40:11]MH_I2C_Read... [09:40:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:11]Read from MH i2c: E2 [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: E2 03 00 [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: E2 03 00 D5 45 00 90 00 8E [09:40:11]RAPDU: 90 00 [09:40:11]wFMCommunicate OK [09:40:11]SAM_PROTO_ClearQueue done [09:40:11]KKMCreateOFDPacket [09:40:11]OFDProtocolAddRootSTLVToBuf [09:40:11]FM_MakeSignedData [09:40:11]FM_MakeSignedData [09:40:11]SAM_PROTO_SignData [09:40:11]wFMCommunicate request_size=4 [09:40:11]MH_SAM_APDU [09:40:11]CAPDU: 80 0D 01 02 [09:40:11]Write to MH i2c: E2 08 00 D6 45 80 0D 01 02 00 00 00 00 94 [09:40:11]Write i2c OK [09:40:11]MH_I2C_Read... [09:40:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:11]Read from MH i2c: E2 [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: E2 03 00 [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: E2 03 00 D6 45 00 90 00 8F [09:40:11]RAPDU: 90 00 [09:40:11]wFMCommunicate OK [09:40:11]wFMCommunicate request_size=255 [09:40:11]MH_SAM_APDU [09:40:11]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 82 AB E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 [09:40:11]Write to MH i2c: E2 02 01 D7 45 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 82 AB E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 00 00 88 [09:40:11]Write i2c OK [09:40:11]MH_I2C_Read... [09:40:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:11]Read from MH i2c: E2 [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: E2 03 00 [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: E2 03 00 D7 45 00 90 00 90 [09:40:11]RAPDU: 90 00 [09:40:11]wFMCommunicate OK [09:40:11]wFMCommunicate request_size=32 [09:40:11]MH_SAM_APDU [09:40:11]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 39 32 10 04 04 00 A3 69 01 00 35 04 06 00 D7 EE A7 D7 69 A2 [09:40:11]Write to MH i2c: E2 23 00 D8 45 80 0D 02 02 1B 00 30 30 30 38 37 34 36 39 32 10 04 04 00 A3 69 01 00 35 04 06 00 D7 EE A7 D7 69 A2 00 00 53 [09:40:11]Write i2c OK [09:40:11]MH_I2C_Read... [09:40:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:11]Read from MH i2c: E2 [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: E2 03 00 [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: E2 03 00 D8 45 00 90 00 91 [09:40:11]RAPDU: 90 00 [09:40:11]wFMCommunicate OK [09:40:11]wFMCommunicate request_size=4 [09:40:11]MH_SAM_APDU [09:40:11]CAPDU: 80 0D 03 02 [09:40:11]Write to MH i2c: E2 08 00 D9 45 80 0D 03 02 00 00 00 00 99 [09:40:11]Write i2c OK [09:40:11]MH_I2C_Read... [09:40:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:11]Read from MH i2c: E2 [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: E2 0B 00 [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: E2 0B 00 D9 45 00 FE D6 78 68 FE 81 E6 86 90 00 39 [09:40:11]RAPDU: FE D6 78 68 FE 81 E6 86 90 00 [09:40:11]wFMCommunicate OK [09:40:11]SAM_PROTO_SignData done [09:40:11]FM_MakeSignedData done [09:40:11]CreateOFDProtocolMessage [09:40:11]wFMCommunicate request_size=4 [09:40:11]MH_SAM_APDU [09:40:11]CAPDU: 80 11 00 00 [09:40:11]Write to MH i2c: E2 08 00 DA 45 80 11 00 00 00 00 00 00 99 [09:40:11]Write i2c OK [09:40:11]MH_I2C_Read... [09:40:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:11]Read from MH i2c: E2 [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: E2 17 00 [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: E2 17 00 DA 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F0 [09:40:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:40:11]wFMCommunicate OK [09:40:11]CreateOFDProtocolMessage done [09:40:11]OFDSenderStorePacket 92579 [09:40:11]StoreOFDPacket docnum=92579 [09:40:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 25 01 00 00 B9 53 1D 01 7A 69 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 82 AB E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A3 69 01 00 35 04 06 00 D7 EE A7 D7 69 A2 FE D6 78 68 FE 81 E6 86 [09:40:11]CheckFolder [09:40:11]dirname=/storage/ofd_packets [09:40:11]CheckFolder done [09:40:11]ProducePacketName [09:40:11]name=ofd_packets/00092579 [09:40:11]NVStorageSaveData ofd_packets/00092579 [09:40:11]File name is /storage/ofd_packets/00092579 [09:40:11]Write 323 bytes [09:40:11]NVStorageSaveData done [09:40:11]OFDSenderStorePacket done [09:40:11]KKMCreateOFDPacket done [09:40:11]NVStorageSaveData kkm_last_timestamp [09:40:11]File name is /storage/kkm_last_timestamp [09:40:11]Write 4 bytes [09:40:11]NVStorageSaveData done [09:40:11]ExternCall_PrintAddStr [09:40:11]wPrintStart [09:40:11]Write to MH i2c: 01 00 00 DB 45 20 [09:40:11]Write i2c OK [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: 01 [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: 01 07 00 [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: 01 07 00 DB 45 00 00 00 00 00 FF 0F 35 [09:40:11]RasterBufferAndPrint [09:40:11]line Счет N : (3)127473 [09:40:11]line ИНН: 02508201610067 [09:40:11]line Контрольно-Кассовый Чек [09:40:11]line ПРОДАЖА [09:40:11]line Товар: 48743570 [09:40:11]line Сигареты Winston XStyle Blue [09:40:11]line 1.000 * 144.00 [09:40:11]line = 144.00 [09:40:11]line НДС 12% НСП 1% [09:40:11]line > о реализуемом товаре [09:40:11]line ИТОГО: 144.00 [09:40:11]line НСП 1% : 1.27 [09:40:11]line НДС 12% : 15.29 [09:40:11]line Наличными: 144.00 [09:40:11]line Безнал.: 0.00 [09:40:11]line Место: АЗС № 5 "Партнер Нефть" [09:40:11]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [09:40:11]line СНО: Общий режим [09:40:11]line Чек 27 15.09.2024 09:40 [09:40:11]line Смена: 507 ФФД: 1.0 [09:40:11]line ЗНМ: 03000000022 [09:40:11]line РНМ: 0000000000091423 [09:40:11]line Версия ККМ: 001 [09:40:11]line ФМ: 0000000000874692 [09:40:11]line ФД: 92579 [09:40:11]line ФПД: 237420018100642 [09:40:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T094018&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92579&fm=237420018100642&tin=02508201610067®Number=0000000000091423&sum=14400 [09:40:11]line 0 [09:40:11]written 0, free lines is 4095 [09:40:11]OFD Sender: Processing packet 92579 [packets to send 63, broken 62] [09:40:11]ProducePacketName [09:40:11]name=ofd_packets/00092579 [09:40:11]OFD Sender: To server: pG, [09:40:11]CommunicateWithHost lk.salyk.kg:30040 [09:40:11]ConnectInit lk.salyk.kg [09:40:11]Connected sock=9 [09:40:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 25 01 00 00 B9 53 1D 01 7A 69 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 82 AB E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A3 69 01 00 35 04 06 00 D7 EE A7 D7 69 A2 FE D6 78 68 FE 81 E6 86 [09:40:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 C2 31 47 00 3C F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A3 69 01 00 F4 03 04 00 FA 53 E6 66 B6 04 01 00 00 A1 2F 86 B7 37 42 97 74 [09:40:12]CommunicateWithHost err = 0 [09:40:12]CheckOFDResponse [09:40:12]1017 (14) - 77093643461234 [09:40:12]1041 (16) - 0000000000874692 [09:40:12]1040 (4) - 92579 [09:40:12]1012 (4) - 15.09.2024 03:26 [09:40:12]1206 (1) - 0 [09:40:12]OFD Sender: Remove packet 92579 [09:40:12]ProducePacketName [09:40:12]name=ofd_packets/00092579 [09:40:12]NVStorageDeleteData [09:40:12]Write to MH i2c: 01 00 00 03 46 49 [09:40:12]Write i2c OK [09:40:12]MH_I2C_Read... [09:40:12]Read from MH i2c: 01 [09:40:12]MH_I2C_Read... [09:40:12]Read from MH i2c: 01 07 00 [09:40:12]MH_I2C_Read... [09:40:12]Read from MH i2c: 01 07 00 03 46 00 00 00 00 00 31 0D 8E [09:40:12]RasterBufferAndPrint [09:40:12]line [09:40:12]line [09:40:12]line [09:40:12]line [09:40:12]line [09:40:12]written 0, free lines is 3385 [09:40:12]MH_Cut [09:40:12]Write to MH i2c: D1 01 00 0A 46 01 22 [09:40:12]Write i2c OK [09:40:12]MH_I2C_Read... [09:40:12]Read from MH i2c: D1 [09:40:12]MH_I2C_Read... [09:40:12]Read from MH i2c: D1 01 00 [09:40:12]MH_I2C_Read... [09:40:12]Read from MH i2c: D1 01 00 0A 46 00 21 [09:40:12]Write to MH i2c: 01 00 00 0B 46 51 [09:40:12]Write i2c OK [09:40:12]MH_I2C_Read... [09:40:12]OFD Sender: No OFD packet to send [09:40:12]*** Cut start [09:40:12]*** Purtial cut [09:40:12]*** Stage 1: CUTSNS_PIN = 1 [09:40:14]Read from MH i2c: 01 [09:40:14]MH_I2C_Read... [09:40:14]*** Stop cut motor [09:40:14]*** Cut end [09:40:14]Read from MH i2c: 01 07 00 [09:40:14]MH_I2C_Read... [09:40:14]Read from MH i2c: 01 07 00 0B 46 00 00 00 00 00 FF 0F 66 [09:40:14]process_action close_receipt done [09:40:14]requested_data is exist [09:40:14]produce_requested_data [09:40:14]requested_item fm.sn is exist - process it [09:40:14]wFMCommunicate request_size=4 [09:40:14]MH_SAM_APDU [09:40:14]CAPDU: 80 11 00 00 [09:40:14]Write to MH i2c: E2 08 00 0C 46 80 11 00 00 00 00 00 00 CC [09:40:14]Write i2c OK [09:40:14]MH_I2C_Read... [09:40:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:15]Read from MH i2c: E2 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: E2 17 00 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: E2 17 00 0C 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 23 [09:40:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:40:15]wFMCommunicate OK [09:40:15]requested_item fd.num is exist - process it [09:40:15]SAM_PROTO_GetFieldsCounters [09:40:15]wFMCommunicate request_size=4 [09:40:15]MH_SAM_APDU [09:40:15]CAPDU: 80 13 00 00 [09:40:15]Write to MH i2c: E2 08 00 0D 46 80 13 00 00 00 00 00 00 CF [09:40:15]Write i2c OK [09:40:15]MH_I2C_Read... [09:40:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:15]Read from MH i2c: E2 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: E2 62 00 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: E2 62 00 0D 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A3 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [09:40:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A3 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:40:15]wFMCommunicate OK [09:40:15]SAM_PROTO_GetFieldsCounters done [09:40:15]requested_item shift.num is exist - process it [09:40:15]requested_item shift.opened is exist - process it [09:40:15]req_shift_opened [09:40:15]FM_GetShiftState [09:40:15]SAM_PROTO_GetShiftState [09:40:15]wFMCommunicate request_size=4 [09:40:15]MH_SAM_APDU [09:40:15]CAPDU: 80 13 01 00 [09:40:15]Write to MH i2c: E2 08 00 0E 46 80 13 01 00 00 00 00 00 D1 [09:40:15]Write i2c OK [09:40:15]MH_I2C_Read... [09:40:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:15]Read from MH i2c: E2 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: E2 0E 00 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: E2 0E 00 0E 46 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 53 [09:40:15]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [09:40:15]wFMCommunicate OK [09:40:15]SAM_PROTO_GetShiftState done [09:40:15]FM_GetShiftState done [09:40:15]req_shift_opened done [09:40:15]requested_item shift.open_date is exist - process it [09:40:15]req_shift_open_date [09:40:15]req_shift_open_date done [09:40:15]produce_requested_data done [09:40:15]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92579,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [09:40:15]process_action_free close_receipt [09:40:15]json_value_free [09:40:15]json_value_free done [09:40:15]process_json_proto returns [09:40:15]Send response to host [09:40:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92579,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [09:40:15]free response buf [09:40:15]execute_script done [09:40:15]execute_script returns [09:40:15]free content buf [09:40:15]Sock 8.Close socket [09:40:15]Sock 8.Thread stoped [09:40:17]OFD Sender: No OFD packet to send [09:40:22]OFD Sender: No OFD packet to send [09:40:27]OFD Sender: No OFD packet to send [09:40:32]OFD Sender: No OFD packet to send [09:40:37]OFD Sender: No OFD packet to send [09:40:42]OFD Sender: No OFD packet to send [09:40:47]OFD Sender: No OFD packet to send [09:40:52]OFD Sender: No OFD packet to send [09:40:57]OFD Sender: No OFD packet to send [09:41:02]OFD Sender: No OFD packet to send [09:41:07]OFD Sender: No OFD packet to send [09:41:12]OFD Sender: No OFD packet to send [09:41:17]OFD Sender: No OFD packet to send [09:41:22]OFD Sender: No OFD packet to send [09:41:27]OFD Sender: No OFD packet to send [09:41:32]OFD Sender: No OFD packet to send [09:41:37]OFD Sender: No OFD packet to send [09:41:42]OFD Sender: No OFD packet to send [09:41:47]OFD Sender: No OFD packet to send [09:41:52]OFD Sender: No OFD packet to send [09:41:57]OFD Sender: No OFD packet to send [09:42:02]OFD Sender: No OFD packet to send [09:42:07]OFD Sender: No OFD packet to send [09:42:12]OFD Sender: No OFD packet to send [09:42:17]OFD Sender: No OFD packet to send [09:42:22]OFD Sender: No OFD packet to send [09:42:27]OFD Sender: No OFD packet to send [09:42:32]OFD Sender: No OFD packet to send [09:42:37]OFD Sender: No OFD packet to send [09:42:42]OFD Sender: No OFD packet to send [09:42:47]OFD Sender: No OFD packet to send [09:42:52]OFD Sender: No OFD packet to send [09:42:57]OFD Sender: No OFD packet to send [09:43:02]OFD Sender: No OFD packet to send [09:43:07]OFD Sender: No OFD packet to send [09:43:12]OFD Sender: No OFD packet to send [09:43:17]OFD Sender: No OFD packet to send [09:43:22]OFD Sender: No OFD packet to send [09:43:27]OFD Sender: No OFD packet to send [09:43:32]OFD Sender: No OFD packet to send [09:43:37]OFD Sender: No OFD packet to send [09:43:42]OFD Sender: No OFD packet to send [09:43:47]OFD Sender: No OFD packet to send [09:43:52]OFD Sender: No OFD packet to send [09:43:57]OFD Sender: No OFD packet to send [09:44:02]OFD Sender: No OFD packet to send [09:44:07]OFD Sender: No OFD packet to send [09:44:12]OFD Sender: No OFD packet to send [09:44:17]OFD Sender: No OFD packet to send [09:44:22]OFD Sender: No OFD packet to send [09:44:27]OFD Sender: No OFD packet to send [09:44:32]OFD Sender: No OFD packet to send [09:44:37]OFD Sender: No OFD packet to send [09:44:42]OFD Sender: No OFD packet to send [09:44:47]OFD Sender: No OFD packet to send [09:44:52]OFD Sender: No OFD packet to send [09:44:57]OFD Sender: No OFD packet to send [09:45:02]OFD Sender: No OFD packet to send [09:45:07]OFD Sender: No OFD packet to send [09:45:12]OFD Sender: No OFD packet to send [09:45:17]OFD Sender: No OFD packet to send [09:45:22]OFD Sender: No OFD packet to send [09:45:28]OFD Sender: No OFD packet to send [09:45:33]OFD Sender: No OFD packet to send [09:45:38]OFD Sender: No OFD packet to send [09:45:43]OFD Sender: No OFD packet to send [09:45:48]OFD Sender: No OFD packet to send [09:45:53]OFD Sender: No OFD packet to send [09:45:58]OFD Sender: No OFD packet to send [09:46:03]OFD Sender: No OFD packet to send [09:46:08]OFD Sender: No OFD packet to send [09:46:13]OFD Sender: No OFD packet to send [09:46:18]OFD Sender: No OFD packet to send [09:46:23]OFD Sender: No OFD packet to send [09:46:28]OFD Sender: No OFD packet to send [09:46:33]OFD Sender: No OFD packet to send [09:46:38]OFD Sender: No OFD packet to send [09:46:43]OFD Sender: No OFD packet to send [09:46:48]OFD Sender: No OFD packet to send [09:46:53]OFD Sender: No OFD packet to send [09:46:58]OFD Sender: No OFD packet to send [09:47:03]OFD Sender: No OFD packet to send [09:47:08]OFD Sender: No OFD packet to send [09:47:13]OFD Sender: No OFD packet to send [09:47:18]OFD Sender: No OFD packet to send [09:47:23]OFD Sender: No OFD packet to send [09:47:28]OFD Sender: No OFD packet to send [09:47:33]OFD Sender: No OFD packet to send [09:47:38]OFD Sender: No OFD packet to send [09:47:43]OFD Sender: No OFD packet to send [09:47:48]OFD Sender: No OFD packet to send [09:47:53]OFD Sender: No OFD packet to send [09:47:58]OFD Sender: No OFD packet to send [09:48:03]OFD Sender: No OFD packet to send [09:48:08]OFD Sender: No OFD packet to send [09:48:13]OFD Sender: No OFD packet to send [09:48:18]OFD Sender: No OFD packet to send [09:48:23]OFD Sender: No OFD packet to send [09:48:28]OFD Sender: No OFD packet to send [09:48:33]OFD Sender: No OFD packet to send [09:48:38]OFD Sender: No OFD packet to send [09:48:43]OFD Sender: No OFD packet to send [09:48:46]accept exits with 10 [09:48:46]New connection [09:48:46]New thread 3066658148 created [09:48:46]Thread 3066801508 joined [09:48:46]Waiting for new connection... [09:48:46] Sock 10.Parse request [09:48:46]Sock 10.Check first char [09:48:46]Sock 10.First char is OK [09:48:46]request: POST /json_proto HTTP/1.0 [09:48:46]Method: POST [09:48:46]URL: /json_proto [09:48:46]Method is POST - this is cgi request [09:48:46]url: /json_proto [09:48:46]query_string will be loaded in cgi processing [09:48:46]execute_cgi json_proto POST (null) [09:48:46]execute_cgi path=json_proto method=POST [09:48:46]POST find Content-Length [09:48:46]Host: 172.17.57.71:8080 [09:48:46]Content-Length: 624 [09:48:46]Content-Type: application/json [09:48:46] [09:48:46]POST finish read [09:48:46]Found Content-Length = 624 [09:48:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127474", "tax_sys" : 0, "items" : [ { "code": "745240075967", "name": "\u0410\u0432\u0442\u043E\u043F\u0430\u0440\u0444\u044E\u043C 7 AQUA", "price" : 300.00, "quantity" : 1.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:46]execute_script... [09:48:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127474", "tax_sys" : 0, "items" : [ { "code": "745240075967", "name": "\u0410\u0432\u0442\u043E\u043F\u0430\u0440\u0444\u044E\u043C 7 AQUA", "price" : 300.00, "quantity" : 1.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:46]POST & json_proto [09:48:46]process_json_proto [09:48:46]json parsed OK: [09:48:46]protocol is kg_v1.0 [09:48:46]action value=close_receipt [09:48:46]process_action close_receipt [09:48:46]cmd_close_receipt [09:48:46]MH_GetDate [09:48:46]Write to MH i2c: F0 00 00 0F 46 44 [09:48:46]Write i2c OK [09:48:46]MH_I2C_Read... [09:48:46]Read from MH i2c: F0 [09:48:46]MH_I2C_Read... [09:48:46]Read from MH i2c: F0 09 00 [09:48:46]MH_I2C_Read... [09:48:46]Read from MH i2c: F0 09 00 0F 46 00 85 AD E6 66 33 3A A4 66 42 [09:48:46]GetLastDocTimeStamp 1726393218 [09:48:46]current date 1726393733 [09:48:46]FM_GetShiftState [09:48:46]SAM_PROTO_GetShiftState [09:48:46]wFMCommunicate request_size=4 [09:48:46]MH_SAM_APDU [09:48:46]CAPDU: 80 13 01 00 [09:48:46]Write to MH i2c: E2 08 00 10 46 80 13 01 00 00 00 00 00 D3 [09:48:46]Write i2c OK [09:48:46]MH_I2C_Read... [09:48:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:46]Read from MH i2c: E2 [09:48:46]MH_I2C_Read... [09:48:46]Read from MH i2c: E2 0E 00 [09:48:46]MH_I2C_Read... [09:48:46]Read from MH i2c: E2 0E 00 10 46 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 55 [09:48:46]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [09:48:46]wFMCommunicate OK [09:48:46]SAM_PROTO_GetShiftState done [09:48:46]FM_GetShiftState done [09:48:46]opened in 1726359809 [09:48:46]opened+sec_in_day 1726446209 [09:48:46]quantity*price = 30000 [09:48:46]sum+1 = 30001 [09:48:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 28 15.09.2024 09:48 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92580 ФПД: 237187308256444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T094854&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92580&fm=237187308256444&tin=02508201610067®Number=0000000000091423&sum=30000 0 [09:48:47]StoreToDocumentArchive [09:48:47]shift 507 fd 92580 [09:48:47]save to /storage/0507/doc_00092580 [09:48:47]save last doc name /storage/0507/doc_00092580 to /storage/kkm_last_doc_name [09:48:47]save OK [09:48:47]Clear old archive folders... [09:48:47]ProcessDocumentItem done err = 0, tmpTLVsize=268 [09:48:47]tlvbuf is 00FA2020 [09:48:47]SAM_PROTO_ClearQueue [09:48:47]wFMCommunicate request_size=4 [09:48:47]MH_SAM_APDU [09:48:47]CAPDU: 80 09 00 00 [09:48:47]Write to MH i2c: E2 08 00 1D 46 80 09 00 00 00 00 00 00 D5 [09:48:47]Write i2c OK [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 [09:48:47]MH_I2C_Read... [09:48:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:47]Read from MH i2c: E2 03 00 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 03 00 1D 46 00 90 00 D7 [09:48:47]RAPDU: 90 00 [09:48:47]wFMCommunicate OK [09:48:47]SAM_PROTO_ClearQueue done [09:48:47]KKMCreateOFDPacket [09:48:47]OFDProtocolAddRootSTLVToBuf [09:48:47]FM_MakeSignedData [09:48:47]FM_MakeSignedData [09:48:47]SAM_PROTO_SignData [09:48:47]wFMCommunicate request_size=4 [09:48:47]MH_SAM_APDU [09:48:47]CAPDU: 80 0D 01 02 [09:48:47]Write to MH i2c: E2 08 00 1E 46 80 0D 01 02 00 00 00 00 DD [09:48:47]Write i2c OK [09:48:47]MH_I2C_Read... [09:48:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:47]Read from MH i2c: E2 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 03 00 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 03 00 1E 46 00 90 00 D8 [09:48:47]RAPDU: 90 00 [09:48:47]wFMCommunicate OK [09:48:47]wFMCommunicate request_size=255 [09:48:47]MH_SAM_APDU [09:48:47]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 36 37 06 04 1B 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 37 20 41 51 55 41 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 86 AD E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [09:48:47]Write to MH i2c: E2 02 01 1F 46 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 36 37 06 04 1B 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 37 20 41 51 55 41 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 86 AD E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 97 [09:48:47]Write i2c OK [09:48:47]MH_I2C_Read... [09:48:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:47]Read from MH i2c: E2 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 03 00 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 03 00 1F 46 00 90 00 D9 [09:48:47]RAPDU: 90 00 [09:48:47]wFMCommunicate OK [09:48:47]wFMCommunicate request_size=27 [09:48:47]MH_SAM_APDU [09:48:47]CAPDU: 80 0D 02 02 16 34 36 39 32 10 04 04 00 A4 69 01 00 35 04 06 00 D7 B8 79 40 FC BC [09:48:47]Write to MH i2c: E2 1E 00 20 46 80 0D 02 02 16 00 34 36 39 32 10 04 04 00 A4 69 01 00 35 04 06 00 D7 B8 79 40 FC BC 00 00 46 [09:48:47]Write i2c OK [09:48:47]MH_I2C_Read... [09:48:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:47]Read from MH i2c: E2 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 03 00 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 03 00 20 46 00 90 00 DA [09:48:47]RAPDU: 90 00 [09:48:47]wFMCommunicate OK [09:48:47]wFMCommunicate request_size=4 [09:48:47]MH_SAM_APDU [09:48:47]CAPDU: 80 0D 03 02 [09:48:47]Write to MH i2c: E2 08 00 21 46 80 0D 03 02 00 00 00 00 E2 [09:48:47]Write i2c OK [09:48:47]MH_I2C_Read... [09:48:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:47]Read from MH i2c: E2 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 0B 00 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 0B 00 21 46 00 56 78 D9 95 A0 EA 00 C8 90 00 71 [09:48:47]RAPDU: 56 78 D9 95 A0 EA 00 C8 90 00 [09:48:47]wFMCommunicate OK [09:48:47]SAM_PROTO_SignData done [09:48:47]FM_MakeSignedData done [09:48:47]CreateOFDProtocolMessage [09:48:47]wFMCommunicate request_size=4 [09:48:47]MH_SAM_APDU [09:48:47]CAPDU: 80 11 00 00 [09:48:47]Write to MH i2c: E2 08 00 22 46 80 11 00 00 00 00 00 00 E2 [09:48:47]Write i2c OK [09:48:47]MH_I2C_Read... [09:48:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:47]Read from MH i2c: E2 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 17 00 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 17 00 22 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 39 [09:48:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:48:47]wFMCommunicate OK [09:48:47]CreateOFDProtocolMessage done [09:48:47]OFDSenderStorePacket 92580 [09:48:47]StoreOFDPacket docnum=92580 [09:48:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 20 01 00 00 C6 D5 18 01 8B 7C 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 36 37 06 04 1B 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 37 20 41 51 55 41 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 86 AD E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A4 69 01 00 35 04 06 00 D7 B8 79 40 FC BC 56 78 D9 95 A0 EA 00 C8 [09:48:47]CheckFolder [09:48:47]dirname=/storage/ofd_packets [09:48:47]CheckFolder done [09:48:47]ProducePacketName [09:48:47]name=ofd_packets/00092580 [09:48:47]NVStorageSaveData ofd_packets/00092580 [09:48:47]File name is /storage/ofd_packets/00092580 [09:48:47]Write 318 bytes [09:48:47]NVStorageSaveData done [09:48:47]OFDSenderStorePacket done [09:48:47]KKMCreateOFDPacket done [09:48:47]NVStorageSaveData kkm_last_timestamp [09:48:47]File name is /storage/kkm_last_timestamp [09:48:47]Write 4 bytes [09:48:47]NVStorageSaveData done [09:48:47]ExternCall_PrintAddStr [09:48:47]wPrintStart [09:48:47]Write to MH i2c: 01 00 00 23 46 69 [09:48:47]Write i2c OK [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: 01 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: 01 07 00 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: 01 07 00 23 46 00 00 00 00 00 FF 0F 7E [09:48:47]RasterBufferAndPrint [09:48:47]line Счет N : (3)127474 [09:48:47]line ИНН: 02508201610067 [09:48:47]line Контрольно-Кассовый Чек [09:48:47]line ПРОДАЖА [09:48:47]line Товар: 745240075967 [09:48:47]line Автопарфюм 7 AQUA [09:48:47]line 1.000 * 300.00 [09:48:47]line = 300.00 [09:48:47]line НДС 12% НСП 1% [09:48:47]line > о реализуемом товаре [09:48:47]line ИТОГО: 300.00 [09:48:47]line НСП 1% : 2.65 [09:48:47]line НДС 12% : 31.86 [09:48:47]line Наличными: 300.00 [09:48:47]line Безнал.: 0.00 [09:48:47]line Место: АЗС № 5 "Партнер Нефть" [09:48:47]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [09:48:47]line СНО: Общий режим [09:48:47]line Чек 28 15.09.2024 09:48 [09:48:47]line Смена: 507 ФФД: 1.0 [09:48:47]line ЗНМ: 03000000022 [09:48:47]line РНМ: 0000000000091423 [09:48:47]line Версия ККМ: 001 [09:48:47]line ФМ: 0000000000874692 [09:48:47]line ФД: 92580 [09:48:47]line ФПД: 237187308256444 [09:48:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T094854&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92580&fm=237187308256444&tin=02508201610067®Number=0000000000091423&sum=30000 [09:48:48]OFD Sender: Processing packet 92580 [packets to send 63, broken 62] [09:48:48]ProducePacketName [09:48:48]name=ofd_packets/00092580 [09:48:48]OFD Sender: To server: pG, [09:48:48]CommunicateWithHost lk.salyk.kg:30040 [09:48:48]ConnectInit lk.salyk.kg [09:48:48]line 0 [09:48:48]written 0, free lines is 4095 [09:48:48]Connected sock=9 [09:48:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 20 01 00 00 C6 D5 18 01 8B 7C 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 36 37 06 04 1B 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 37 20 41 51 55 41 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 86 AD E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A4 69 01 00 35 04 06 00 D7 B8 79 40 FC BC 56 78 D9 95 A0 EA 00 C8 [09:48:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 94 34 47 00 EE 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A4 69 01 00 F4 03 04 00 FE 55 E6 66 B6 04 01 00 00 AD E2 97 C8 1E E0 37 70 [09:48:48]CommunicateWithHost err = 0 [09:48:48]CheckOFDResponse [09:48:48]1017 (14) - 77093643461234 [09:48:48]1041 (16) - 0000000000874692 [09:48:48]1040 (4) - 92580 [09:48:48]1012 (4) - 15.09.2024 03:35 [09:48:48]1206 (1) - 0 [09:48:48]OFD Sender: Remove packet 92580 [09:48:48]ProducePacketName [09:48:48]name=ofd_packets/00092580 [09:48:48]NVStorageDeleteData [09:48:48]Write to MH i2c: 01 00 00 4B 46 91 [09:48:48]Write i2c OK [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: 01 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: 01 07 00 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: 01 07 00 4B 46 00 00 00 00 00 24 0D C9 [09:48:48]RasterBufferAndPrint [09:48:48]line [09:48:48]line [09:48:48]line [09:48:48]line [09:48:48]line [09:48:48]written 0, free lines is 3371 [09:48:48]MH_Cut [09:48:48]Write to MH i2c: D1 01 00 52 46 01 6A [09:48:48]Write i2c OK [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: D1 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: D1 01 00 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: D1 01 00 52 46 00 69 [09:48:48]Write to MH i2c: 01 00 00 53 46 99 [09:48:48]Write i2c OK [09:48:48]MH_I2C_Read... [09:48:48]OFD Sender: No OFD packet to send [09:48:49]*** Cut start [09:48:49]*** Purtial cut [09:48:49]*** Stage 1: CUTSNS_PIN = 1 [09:48:51]Read from MH i2c: 01 [09:48:51]MH_I2C_Read... [09:48:51]*** Stop cut motor [09:48:51]*** Cut end [09:48:51]Read from MH i2c: 01 07 00 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: 01 07 00 53 46 00 00 00 00 00 FF 0F AE [09:48:51]process_action close_receipt done [09:48:51]requested_data is exist [09:48:51]produce_requested_data [09:48:51]requested_item fm.sn is exist - process it [09:48:51]wFMCommunicate request_size=4 [09:48:51]MH_SAM_APDU [09:48:51]CAPDU: 80 11 00 00 [09:48:51]Write to MH i2c: E2 08 00 54 46 80 11 00 00 00 00 00 00 14 [09:48:51]Write i2c OK [09:48:51]MH_I2C_Read... [09:48:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:51]Read from MH i2c: E2 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: E2 17 00 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: E2 17 00 54 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 6B [09:48:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:48:51]wFMCommunicate OK [09:48:51]requested_item fd.num is exist - process it [09:48:51]SAM_PROTO_GetFieldsCounters [09:48:51]wFMCommunicate request_size=4 [09:48:51]MH_SAM_APDU [09:48:51]CAPDU: 80 13 00 00 [09:48:51]Write to MH i2c: E2 08 00 55 46 80 13 00 00 00 00 00 00 17 [09:48:51]Write i2c OK [09:48:51]MH_I2C_Read... [09:48:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:51]Read from MH i2c: E2 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: E2 62 00 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: E2 62 00 55 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A4 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [09:48:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A4 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:48:51]wFMCommunicate OK [09:48:51]SAM_PROTO_GetFieldsCounters done [09:48:51]requested_item shift.num is exist - process it [09:48:51]requested_item shift.opened is exist - process it [09:48:51]req_shift_opened [09:48:51]FM_GetShiftState [09:48:51]SAM_PROTO_GetShiftState [09:48:51]wFMCommunicate request_size=4 [09:48:51]MH_SAM_APDU [09:48:51]CAPDU: 80 13 01 00 [09:48:51]Write to MH i2c: E2 08 00 56 46 80 13 01 00 00 00 00 00 19 [09:48:51]Write i2c OK [09:48:51]MH_I2C_Read... [09:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:51]Read from MH i2c: E2 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: E2 0E 00 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: E2 0E 00 56 46 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 9B [09:48:51]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [09:48:51]wFMCommunicate OK [09:48:51]SAM_PROTO_GetShiftState done [09:48:51]FM_GetShiftState done [09:48:51]req_shift_opened done [09:48:51]requested_item shift.open_date is exist - process it [09:48:51]req_shift_open_date [09:48:51]req_shift_open_date done [09:48:51]produce_requested_data done [09:48:51]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92580,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [09:48:51]process_action_free close_receipt [09:48:51]json_value_free [09:48:51]json_value_free done [09:48:51]process_json_proto returns [09:48:51]Send response to host [09:48:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92580,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [09:48:51]free response buf [09:48:51]execute_script done [09:48:51]execute_script returns [09:48:51]free content buf [09:48:51]Sock 10.Close socket [09:48:51]Sock 10.Thread stoped [09:48:53]OFD Sender: No OFD packet to send [09:48:58]OFD Sender: No OFD packet to send [09:49:03]OFD Sender: No OFD packet to send [09:49:08]OFD Sender: No OFD packet to send [09:49:13]OFD Sender: No OFD packet to send [09:49:18]OFD Sender: No OFD packet to send [09:49:23]OFD Sender: No OFD packet to send [09:49:28]OFD Sender: No OFD packet to send [09:49:33]OFD Sender: No OFD packet to send [09:49:38]OFD Sender: No OFD packet to send [09:49:43]OFD Sender: No OFD packet to send [09:49:48]OFD Sender: No OFD packet to send [09:49:53]OFD Sender: No OFD packet to send [09:49:58]OFD Sender: No OFD packet to send [09:50:03]OFD Sender: No OFD packet to send [09:50:08]OFD Sender: No OFD packet to send [09:50:13]OFD Sender: No OFD packet to send [09:50:18]OFD Sender: No OFD packet to send [09:50:24]OFD Sender: No OFD packet to send [09:50:29]OFD Sender: No OFD packet to send [09:50:34]OFD Sender: No OFD packet to send [09:50:39]OFD Sender: No OFD packet to send [09:50:44]OFD Sender: No OFD packet to send [09:50:49]OFD Sender: No OFD packet to send [09:50:54]OFD Sender: No OFD packet to send [09:50:59]OFD Sender: No OFD packet to send [09:51:04]OFD Sender: No OFD packet to send [09:51:09]OFD Sender: No OFD packet to send [09:51:14]OFD Sender: No OFD packet to send [09:51:19]OFD Sender: No OFD packet to send [09:51:24]OFD Sender: No OFD packet to send [09:51:29]OFD Sender: No OFD packet to send [09:51:34]OFD Sender: No OFD packet to send [09:51:39]OFD Sender: No OFD packet to send [09:51:44]OFD Sender: No OFD packet to send [09:51:49]OFD Sender: No OFD packet to send [09:51:54]OFD Sender: No OFD packet to send [09:51:59]OFD Sender: No OFD packet to send [09:52:04]OFD Sender: No OFD packet to send [09:52:09]OFD Sender: No OFD packet to send [09:52:14]OFD Sender: No OFD packet to send [09:52:19]OFD Sender: No OFD packet to send [09:52:22]accept exits with 8 [09:52:22]New connection [09:52:22]New thread 3066801508 created [09:52:22]Thread 3066658148 joined [09:52:22]Waiting for new connection... [09:52:22] Sock 8.Parse request [09:52:22]Sock 8.Check first char [09:52:22]Sock 8.First char is OK [09:52:22]request: POST /json_proto HTTP/1.0 [09:52:22]Method: POST [09:52:22]URL: /json_proto [09:52:22]Method is POST - this is cgi request [09:52:22]url: /json_proto [09:52:22]query_string will be loaded in cgi processing [09:52:22]execute_cgi json_proto POST (null) [09:52:22]execute_cgi path=json_proto method=POST [09:52:22]POST find Content-Length [09:52:22]Host: 172.17.57.71:8080 [09:52:22]Content-Length: 699 [09:52:22]Content-Type: application/json [09:52:22] [09:52:22]POST finish read [09:52:22]Found Content-Length = 699 [09:52:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127475", "tax_sys" : 0, "items" : [ { "code": "4620017455554", "name": "\u041C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 \u0411\u043E\u043D\u0434\u0438 \u0430\u0441\u0441\u043E\u0440\u0442 \u043F\u0430\u043A 70\u0433", "price" : 43.00, "quantity" : 1.000, "sum" : 43.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 43.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:22]execute_script... [09:52:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127475", "tax_sys" : 0, "items" : [ { "code": "4620017455554", "name": "\u041C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 \u0411\u043E\u043D\u0434\u0438 \u0430\u0441\u0441\u043E\u0440\u0442 \u043F\u0430\u043A 70\u0433", "price" : 43.00, "quantity" : 1.000, "sum" : 43.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 43.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:22]POST & json_proto [09:52:22]process_json_proto [09:52:22]json parsed OK: [09:52:22]protocol is kg_v1.0 [09:52:22]action value=close_receipt [09:52:22]process_action close_receipt [09:52:22]cmd_close_receipt [09:52:22]MH_GetDate [09:52:22]Write to MH i2c: F0 00 00 57 46 8C [09:52:22]Write i2c OK [09:52:22]MH_I2C_Read... [09:52:22]Read from MH i2c: F0 [09:52:22]MH_I2C_Read... [09:52:22]Read from MH i2c: F0 09 00 [09:52:22]MH_I2C_Read... [09:52:22]Read from MH i2c: F0 09 00 57 46 00 5E AE E6 66 33 3A A4 66 64 [09:52:22]GetLastDocTimeStamp 1726393734 [09:52:22]current date 1726393950 [09:52:22]FM_GetShiftState [09:52:22]SAM_PROTO_GetShiftState [09:52:22]wFMCommunicate request_size=4 [09:52:22]MH_SAM_APDU [09:52:22]CAPDU: 80 13 01 00 [09:52:22]Write to MH i2c: E2 08 00 58 46 80 13 01 00 00 00 00 00 1B [09:52:22]Write i2c OK [09:52:22]MH_I2C_Read... [09:52:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:22]Read from MH i2c: E2 [09:52:22]MH_I2C_Read... [09:52:22]Read from MH i2c: E2 0E 00 [09:52:22]MH_I2C_Read... [09:52:22]Read from MH i2c: E2 0E 00 58 46 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 9D [09:52:22]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [09:52:22]wFMCommunicate OK [09:52:22]SAM_PROTO_GetShiftState done [09:52:22]FM_GetShiftState done [09:52:22]opened in 1726359809 [09:52:22]opened+sec_in_day 1726446209 [09:52:22]quantity*price = 4300 [09:52:22]sum+1 = 4301 [09:52:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 43.00 НСП 1% : 0.38 НДС 12% : 4.57 Наличными: 43.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 29 15.09.2024 09:52 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92581 ФПД: 187076588918784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T095230&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92581&fm=187076588918784&tin=02508201610067®Number=0000000000091423&sum=4300 0 [09:52:23]StoreToDocumentArchive [09:52:23]shift 507 fd 92581 [09:52:23]save to /storage/0507/doc_00092581 [09:52:23]save last doc name /storage/0507/doc_00092581 to /storage/kkm_last_doc_name [09:52:23]save OK [09:52:23]Clear old archive folders... [09:52:23]ProcessDocumentItem done err = 0, tmpTLVsize=294 [09:52:23]tlvbuf is 00FD8E20 [09:52:23]SAM_PROTO_ClearQueue [09:52:23]wFMCommunicate request_size=4 [09:52:23]MH_SAM_APDU [09:52:23]CAPDU: 80 09 00 00 [09:52:23]Write to MH i2c: E2 08 00 65 46 80 09 00 00 00 00 00 00 1D [09:52:23]Write i2c OK [09:52:23]MH_I2C_Read... [09:52:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:23]Read from MH i2c: E2 [09:52:23]MH_I2C_Read... [09:52:23]Read from MH i2c: E2 03 00 [09:52:23]MH_I2C_Read... [09:52:23]Read from MH i2c: E2 03 00 65 46 00 90 00 1F [09:52:23]RAPDU: 90 00 [09:52:23]wFMCommunicate OK [09:52:23]SAM_PROTO_ClearQueue done [09:52:23]KKMCreateOFDPacket [09:52:23]OFDProtocolAddRootSTLVToBuf [09:52:23]FM_MakeSignedData [09:52:23]FM_MakeSignedData [09:52:23]SAM_PROTO_SignData [09:52:23]wFMCommunicate request_size=4 [09:52:23]MH_SAM_APDU [09:52:23]CAPDU: 80 0D 01 02 [09:52:23]Write to MH i2c: E2 08 00 66 46 80 0D 01 02 00 00 00 00 25 [09:52:23]Write i2c OK [09:52:23]MH_I2C_Read... [09:52:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:23]Read from MH i2c: E2 [09:52:23]MH_I2C_Read... [09:52:23]Read from MH i2c: E2 03 00 [09:52:23]MH_I2C_Read... [09:52:23]Read from MH i2c: E2 03 00 66 46 00 90 00 20 [09:52:23]RAPDU: 90 00 [09:52:23]wFMCommunicate OK [09:52:23]wFMCommunicate request_size=255 [09:52:23]MH_SAM_APDU [09:52:23]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 35 35 35 34 06 04 34 00 D0 9C D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 D0 91 D0 BE D0 BD D0 B4 D0 B8 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 20 D0 BF D0 B0 D0 BA 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 CC 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 01 00 00 00 00 07 04 06 00 CC 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 5E AE E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [09:52:23]Write to MH i2c: E2 02 01 67 46 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 35 35 35 34 06 04 34 00 D0 9C D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 D0 91 D0 BE D0 BD D0 B4 D0 B8 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 20 D0 BF D0 B0 D0 BA 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 CC 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 01 00 00 00 00 07 04 06 00 CC 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 5E AE E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 C8 [09:52:23]Write i2c OK [09:52:23]MH_I2C_Read... [09:52:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:23]Read from MH i2c: E2 [09:52:23]MH_I2C_Read... [09:52:23]Read from MH i2c: E2 03 00 [09:52:23]MH_I2C_Read... [09:52:23]Read from MH i2c: E2 03 00 67 46 00 90 00 21 [09:52:23]RAPDU: 90 00 [09:52:23]wFMCommunicate OK [09:52:23]wFMCommunicate request_size=53 [09:52:23]MH_SAM_APDU [09:52:23]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A5 69 01 00 35 04 06 00 AA 25 29 A0 D8 00 [09:52:23]Write to MH i2c: E2 38 00 68 46 80 0D 02 02 30 00 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A5 69 01 00 35 04 06 00 AA 25 29 A0 D8 00 00 00 9A [09:52:23]Write i2c OK [09:52:23]MH_I2C_Read... [09:52:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:23]Read from MH i2c: E2 [09:52:23]MH_I2C_Read... [09:52:23]Read from MH i2c: E2 03 00 [09:52:23]MH_I2C_Read... [09:52:23]Read from MH i2c: E2 03 00 68 46 00 90 00 22 [09:52:23]RAPDU: 90 00 [09:52:23]wFMCommunicate OK [09:52:23]wFMCommunicate request_size=4 [09:52:23]MH_SAM_APDU [09:52:23]CAPDU: 80 0D 03 02 [09:52:23]Write to MH i2c: E2 08 00 69 46 80 0D 03 02 00 00 00 00 2A [09:52:23]Write i2c OK [09:52:23]MH_I2C_Read... [09:52:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:23]Read from MH i2c: E2 [09:52:23]MH_I2C_Read... [09:52:23]Read from MH i2c: E2 0B 00 [09:52:23]MH_I2C_Read... [09:52:23]Read from MH i2c: E2 0B 00 69 46 00 CE B0 5D 3F 4B E5 88 48 90 00 45 [09:52:23]RAPDU: CE B0 5D 3F 4B E5 88 48 90 00 [09:52:23]wFMCommunicate OK [09:52:23]SAM_PROTO_SignData done [09:52:23]FM_MakeSignedData done [09:52:23]CreateOFDProtocolMessage [09:52:23]wFMCommunicate request_size=4 [09:52:23]MH_SAM_APDU [09:52:23]CAPDU: 80 11 00 00 [09:52:23]Write to MH i2c: E2 08 00 6A 46 80 11 00 00 00 00 00 00 2A [09:52:23]Write i2c OK [09:52:23]MH_I2C_Read... [09:52:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:23]Read from MH i2c: E2 [09:52:23]MH_I2C_Read... [09:52:23]Read from MH i2c: E2 17 00 [09:52:23]MH_I2C_Read... [09:52:23]Read from MH i2c: E2 17 00 6A 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 81 [09:52:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:52:23]wFMCommunicate OK [09:52:23]CreateOFDProtocolMessage done [09:52:23]OFDSenderStorePacket 92581 [09:52:23]StoreOFDPacket docnum=92581 [09:52:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3A 01 00 00 7C DA 32 01 14 60 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 35 35 35 34 06 04 34 00 D0 9C D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 D0 91 D0 BE D0 BD D0 B4 D0 B8 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 20 D0 BF D0 B0 D0 BA 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 CC 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 01 00 00 00 00 07 04 06 00 CC 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 5E AE E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A5 69 01 00 35 04 06 00 AA 25 29 A0 D8 00 CE B0 5D 3F 4B E5 88 48 [09:52:23]CheckFolder [09:52:23]dirname=/storage/ofd_packets [09:52:23]CheckFolder done [09:52:23]ProducePacketName [09:52:23]name=ofd_packets/00092581 [09:52:23]NVStorageSaveData ofd_packets/00092581 [09:52:23]File name is /storage/ofd_packets/00092581 [09:52:23]Write 344 bytes [09:52:23]NVStorageSaveData done [09:52:23]OFDSenderStorePacket done [09:52:23]KKMCreateOFDPacket done [09:52:23]NVStorageSaveData kkm_last_timestamp [09:52:23]File name is /storage/kkm_last_timestamp [09:52:23]Write 4 bytes [09:52:23]NVStorageSaveData done [09:52:23]ExternCall_PrintAddStr [09:52:23]wPrintStart [09:52:23]Write to MH i2c: 01 00 00 6B 46 B1 [09:52:23]Write i2c OK [09:52:23]MH_I2C_Read... [09:52:23]Read from MH i2c: 01 [09:52:23]MH_I2C_Read... [09:52:23]Read from MH i2c: 01 07 00 [09:52:23]MH_I2C_Read... [09:52:23]Read from MH i2c: 01 07 00 6B 46 00 00 00 00 00 FF 0F C6 [09:52:23]RasterBufferAndPrint [09:52:23]line Счет N : (3)127475 [09:52:23]line ИНН: 02508201610067 [09:52:23]line Контрольно-Кассовый Чек [09:52:23]line ПРОДАЖА [09:52:23]line Товар: 4620017455554 [09:52:23]line Мармелад Бонди ассорт пак 70г [09:52:23]line 1.000 * 43.00 [09:52:23]line = 43.00 [09:52:23]line НДС 12% НСП 1% [09:52:23]line > о реализуемом товаре [09:52:23]line ИТОГО: 43.00 [09:52:23]line НСП 1% : 0.38 [09:52:23]line НДС 12% : 4.57 [09:52:23]line Наличными: 43.00 [09:52:23]line Безнал.: 0.00 [09:52:23]line Место: АЗС № 5 "Партнер Нефть" [09:52:23]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [09:52:23]line СНО: Общий режим [09:52:23]line Чек 29 15.09.2024 09:52 [09:52:23]line Смена: 507 ФФД: 1.0 [09:52:23]line ЗНМ: 03000000022 [09:52:23]line РНМ: 0000000000091423 [09:52:23]line Версия ККМ: 001 [09:52:23]line ФМ: 0000000000874692 [09:52:23]line ФД: 92581 [09:52:23]line ФПД: 187076588918784 [09:52:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T095230&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92581&fm=187076588918784&tin=02508201610067®Number=0000000000091423&sum=4300 [09:52:24]OFD Sender: Processing packet 92581 [packets to send 63, broken 62] [09:52:24]ProducePacketName [09:52:24]name=ofd_packets/00092581 [09:52:24]OFD Sender: To server: pG, [09:52:24]CommunicateWithHost lk.salyk.kg:30040 [09:52:24]ConnectInit lk.salyk.kg [09:52:24]line 0 [09:52:24]written 0, free lines is 4095 [09:52:24]Connected sock=10 [09:52:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3A 01 00 00 7C DA 32 01 14 60 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 35 35 35 34 06 04 34 00 D0 9C D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 D0 91 D0 BE D0 BD D0 B4 D0 B8 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 20 D0 BF D0 B0 D0 BA 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 CC 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 01 00 00 00 00 07 04 06 00 CC 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 5E AE E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A5 69 01 00 35 04 06 00 AA 25 29 A0 D8 00 CE B0 5D 3F 4B E5 88 48 [09:52:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 77 60 47 00 06 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A5 69 01 00 F4 03 04 00 D6 56 E6 66 B6 04 01 00 00 EA D5 94 E4 B5 9B E5 D2 [09:52:24]CommunicateWithHost err = 0 [09:52:24]CheckOFDResponse [09:52:24]1017 (14) - 77093643461234 [09:52:24]1041 (16) - 0000000000874692 [09:52:24]1040 (4) - 92581 [09:52:24]1012 (4) - 15.09.2024 03:39 [09:52:24]1206 (1) - 0 [09:52:24]OFD Sender: Remove packet 92581 [09:52:24]ProducePacketName [09:52:24]name=ofd_packets/00092581 [09:52:24]NVStorageDeleteData [09:52:24]Write to MH i2c: 01 00 00 94 46 DA [09:52:24]Write i2c OK [09:52:24]MH_I2C_Read... [09:52:24]Read from MH i2c: 01 [09:52:24]MH_I2C_Read... [09:52:24]Read from MH i2c: 01 07 00 [09:52:24]MH_I2C_Read... [09:52:24]Read from MH i2c: 01 07 00 94 46 00 00 00 00 00 12 0D 00 [09:52:24]RasterBufferAndPrint [09:52:24]line [09:52:24]line [09:52:24]line [09:52:24]line [09:52:24]line [09:52:24]written 0, free lines is 3353 [09:52:24]MH_Cut [09:52:24]Write to MH i2c: D1 01 00 9B 46 01 B3 [09:52:24]Write i2c OK [09:52:24]MH_I2C_Read... [09:52:24]Read from MH i2c: D1 [09:52:24]MH_I2C_Read... [09:52:24]Read from MH i2c: D1 01 00 [09:52:24]MH_I2C_Read... [09:52:24]Read from MH i2c: D1 01 00 9B 46 00 B2 [09:52:24]Write to MH i2c: 01 00 00 9C 46 E2 [09:52:24]Write i2c OK [09:52:24]MH_I2C_Read... [09:52:25]OFD Sender: No OFD packet to send [09:52:25]*** Cut start [09:52:25]*** Purtial cut [09:52:25]*** Stage 1: CUTSNS_PIN = 1 [09:52:27]Read from MH i2c: 01 [09:52:27]MH_I2C_Read... [09:52:27]*** Stop cut motor [09:52:27]*** Cut end [09:52:27]Read from MH i2c: 01 07 00 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: 01 07 00 9C 46 00 00 00 00 00 FF 0F F7 [09:52:27]process_action close_receipt done [09:52:27]requested_data is exist [09:52:27]produce_requested_data [09:52:27]requested_item fm.sn is exist - process it [09:52:27]wFMCommunicate request_size=4 [09:52:27]MH_SAM_APDU [09:52:27]CAPDU: 80 11 00 00 [09:52:27]Write to MH i2c: E2 08 00 9D 46 80 11 00 00 00 00 00 00 5D [09:52:27]Write i2c OK [09:52:27]MH_I2C_Read... [09:52:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:27]Read from MH i2c: E2 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: E2 17 00 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: E2 17 00 9D 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B4 [09:52:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:52:27]wFMCommunicate OK [09:52:27]requested_item fd.num is exist - process it [09:52:27]SAM_PROTO_GetFieldsCounters [09:52:27]wFMCommunicate request_size=4 [09:52:27]MH_SAM_APDU [09:52:27]CAPDU: 80 13 00 00 [09:52:27]Write to MH i2c: E2 08 00 9E 46 80 13 00 00 00 00 00 00 60 [09:52:27]Write i2c OK [09:52:27]MH_I2C_Read... [09:52:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:27]Read from MH i2c: E2 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: E2 62 00 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: E2 62 00 9E 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A5 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [09:52:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A5 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:52:27]wFMCommunicate OK [09:52:27]SAM_PROTO_GetFieldsCounters done [09:52:27]requested_item shift.num is exist - process it [09:52:27]requested_item shift.opened is exist - process it [09:52:27]req_shift_opened [09:52:27]FM_GetShiftState [09:52:27]SAM_PROTO_GetShiftState [09:52:27]wFMCommunicate request_size=4 [09:52:27]MH_SAM_APDU [09:52:27]CAPDU: 80 13 01 00 [09:52:27]Write to MH i2c: E2 08 00 9F 46 80 13 01 00 00 00 00 00 62 [09:52:27]Write i2c OK [09:52:27]MH_I2C_Read... [09:52:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:27]Read from MH i2c: E2 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: E2 0E 00 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: E2 0E 00 9F 46 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 E4 [09:52:27]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [09:52:27]wFMCommunicate OK [09:52:27]SAM_PROTO_GetShiftState done [09:52:27]FM_GetShiftState done [09:52:27]req_shift_opened done [09:52:27]requested_item shift.open_date is exist - process it [09:52:27]req_shift_open_date [09:52:27]req_shift_open_date done [09:52:27]produce_requested_data done [09:52:27]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92581,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [09:52:27]process_action_free close_receipt [09:52:27]json_value_free [09:52:27]json_value_free done [09:52:27]process_json_proto returns [09:52:27]Send response to host [09:52:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92581,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [09:52:27]free response buf [09:52:27]execute_script done [09:52:27]execute_script returns [09:52:27]free content buf [09:52:27]Sock 8.Close socket [09:52:27]Sock 8.Thread stoped [09:52:30]OFD Sender: No OFD packet to send [09:52:35]OFD Sender: No OFD packet to send [09:52:40]OFD Sender: No OFD packet to send [09:52:45]OFD Sender: No OFD packet to send [09:52:50]OFD Sender: No OFD packet to send [09:52:55]OFD Sender: No OFD packet to send [09:53:00]OFD Sender: No OFD packet to send [09:53:05]OFD Sender: No OFD packet to send [09:53:10]OFD Sender: No OFD packet to send [09:53:15]OFD Sender: No OFD packet to send [09:53:20]OFD Sender: No OFD packet to send [09:53:25]OFD Sender: No OFD packet to send [09:53:30]OFD Sender: No OFD packet to send [09:53:35]OFD Sender: No OFD packet to send [09:53:40]OFD Sender: No OFD packet to send [09:53:45]OFD Sender: No OFD packet to send [09:53:50]OFD Sender: No OFD packet to send [09:53:55]OFD Sender: No OFD packet to send [09:54:00]OFD Sender: No OFD packet to send [09:54:05]OFD Sender: No OFD packet to send [09:54:10]OFD Sender: No OFD packet to send [09:54:15]OFD Sender: No OFD packet to send [09:54:20]OFD Sender: No OFD packet to send [09:54:25]OFD Sender: No OFD packet to send [09:54:30]OFD Sender: No OFD packet to send [09:54:35]OFD Sender: No OFD packet to send [09:54:40]OFD Sender: No OFD packet to send [09:54:45]OFD Sender: No OFD packet to send [09:54:50]OFD Sender: No OFD packet to send [09:54:55]OFD Sender: No OFD packet to send [09:55:00]OFD Sender: No OFD packet to send [09:55:05]OFD Sender: No OFD packet to send [09:55:10]OFD Sender: No OFD packet to send [09:55:15]OFD Sender: No OFD packet to send [09:55:20]OFD Sender: No OFD packet to send [09:55:25]OFD Sender: No OFD packet to send [09:55:30]OFD Sender: No OFD packet to send [09:55:35]OFD Sender: No OFD packet to send [09:55:40]OFD Sender: No OFD packet to send [09:55:45]OFD Sender: No OFD packet to send [09:55:50]OFD Sender: No OFD packet to send [09:55:55]OFD Sender: No OFD packet to send [09:56:00]OFD Sender: No OFD packet to send [09:56:05]OFD Sender: No OFD packet to send [09:56:10]OFD Sender: No OFD packet to send [09:56:15]OFD Sender: No OFD packet to send [09:56:20]OFD Sender: No OFD packet to send [09:56:25]OFD Sender: No OFD packet to send [09:56:30]OFD Sender: No OFD packet to send [09:56:35]OFD Sender: No OFD packet to send [09:56:40]OFD Sender: No OFD packet to send [09:56:45]OFD Sender: No OFD packet to send [09:56:50]OFD Sender: No OFD packet to send [09:56:55]OFD Sender: No OFD packet to send [09:57:00]OFD Sender: No OFD packet to send [09:57:05]OFD Sender: No OFD packet to send [09:57:10]OFD Sender: No OFD packet to send [09:57:15]OFD Sender: No OFD packet to send [09:57:20]OFD Sender: No OFD packet to send [09:57:25]OFD Sender: No OFD packet to send [09:57:30]OFD Sender: No OFD packet to send [09:57:35]OFD Sender: No OFD packet to send [09:57:40]OFD Sender: No OFD packet to send [09:57:45]OFD Sender: No OFD packet to send [09:57:50]OFD Sender: No OFD packet to send [09:57:55]OFD Sender: No OFD packet to send [09:58:00]OFD Sender: No OFD packet to send [09:58:05]OFD Sender: No OFD packet to send [09:58:10]OFD Sender: No OFD packet to send [09:58:15]OFD Sender: No OFD packet to send [09:58:20]OFD Sender: No OFD packet to send [09:58:25]OFD Sender: No OFD packet to send [09:58:30]OFD Sender: No OFD packet to send [09:58:35]OFD Sender: No OFD packet to send [09:58:40]OFD Sender: No OFD packet to send [09:58:45]OFD Sender: No OFD packet to send [09:58:50]OFD Sender: No OFD packet to send [09:58:55]OFD Sender: No OFD packet to send [09:59:00]OFD Sender: No OFD packet to send [09:59:05]OFD Sender: No OFD packet to send [09:59:10]OFD Sender: No OFD packet to send [09:59:15]OFD Sender: No OFD packet to send [09:59:20]OFD Sender: No OFD packet to send [09:59:25]OFD Sender: No OFD packet to send [09:59:30]OFD Sender: No OFD packet to send [09:59:35]OFD Sender: No OFD packet to send [09:59:40]OFD Sender: No OFD packet to send [09:59:45]OFD Sender: No OFD packet to send [09:59:50]OFD Sender: No OFD packet to send [09:59:55]OFD Sender: No OFD packet to send [10:00:00]OFD Sender: No OFD packet to send [10:00:05]OFD Sender: No OFD packet to send [10:00:10]OFD Sender: No OFD packet to send [10:00:15]OFD Sender: No OFD packet to send [10:00:20]OFD Sender: No OFD packet to send [10:00:25]OFD Sender: No OFD packet to send [10:00:30]OFD Sender: No OFD packet to send [10:00:35]OFD Sender: No OFD packet to send [10:00:40]OFD Sender: No OFD packet to send [10:00:45]OFD Sender: No OFD packet to send [10:00:50]OFD Sender: No OFD packet to send [10:00:55]OFD Sender: No OFD packet to send [10:01:00]OFD Sender: No OFD packet to send [10:01:05]OFD Sender: No OFD packet to send [10:01:10]OFD Sender: No OFD packet to send [10:01:15]OFD Sender: No OFD packet to send [10:01:20]OFD Sender: No OFD packet to send [10:01:25]OFD Sender: No OFD packet to send [10:01:30]OFD Sender: No OFD packet to send [10:01:35]OFD Sender: No OFD packet to send [10:01:40]OFD Sender: No OFD packet to send [10:01:45]OFD Sender: No OFD packet to send [10:01:50]OFD Sender: No OFD packet to send [10:01:55]OFD Sender: No OFD packet to send [10:02:00]OFD Sender: No OFD packet to send [10:02:05]OFD Sender: No OFD packet to send [10:02:10]OFD Sender: No OFD packet to send [10:02:15]OFD Sender: No OFD packet to send [10:02:20]OFD Sender: No OFD packet to send [10:02:25]OFD Sender: No OFD packet to send [10:02:30]OFD Sender: No OFD packet to send [10:02:35]OFD Sender: No OFD packet to send [10:02:40]OFD Sender: No OFD packet to send [10:02:45]OFD Sender: No OFD packet to send [10:02:50]OFD Sender: No OFD packet to send [10:02:55]OFD Sender: No OFD packet to send [10:03:00]OFD Sender: No OFD packet to send [10:03:05]OFD Sender: No OFD packet to send [10:03:10]OFD Sender: No OFD packet to send [10:03:15]OFD Sender: No OFD packet to send [10:03:20]OFD Sender: No OFD packet to send [10:03:25]OFD Sender: No OFD packet to send [10:03:30]OFD Sender: No OFD packet to send [10:03:35]OFD Sender: No OFD packet to send [10:03:40]OFD Sender: No OFD packet to send [10:03:45]OFD Sender: No OFD packet to send [10:03:50]OFD Sender: No OFD packet to send [10:03:55]OFD Sender: No OFD packet to send [10:04:00]OFD Sender: No OFD packet to send [10:04:05]OFD Sender: No OFD packet to send [10:04:10]OFD Sender: No OFD packet to send [10:04:15]OFD Sender: No OFD packet to send [10:04:20]OFD Sender: No OFD packet to send [10:04:25]OFD Sender: No OFD packet to send [10:04:30]OFD Sender: No OFD packet to send [10:04:35]OFD Sender: No OFD packet to send [10:04:40]OFD Sender: No OFD packet to send [10:04:45]OFD Sender: No OFD packet to send [10:04:50]OFD Sender: No OFD packet to send [10:04:55]OFD Sender: No OFD packet to send [10:05:00]OFD Sender: No OFD packet to send [10:05:05]OFD Sender: No OFD packet to send [10:05:10]OFD Sender: No OFD packet to send [10:05:15]OFD Sender: No OFD packet to send [10:05:20]OFD Sender: No OFD packet to send [10:05:25]OFD Sender: No OFD packet to send [10:05:30]OFD Sender: No OFD packet to send [10:05:35]OFD Sender: No OFD packet to send [10:05:40]OFD Sender: No OFD packet to send [10:05:45]OFD Sender: No OFD packet to send [10:05:50]OFD Sender: No OFD packet to send [10:05:55]OFD Sender: No OFD packet to send [10:06:00]OFD Sender: No OFD packet to send [10:06:05]OFD Sender: No OFD packet to send [10:06:10]OFD Sender: No OFD packet to send [10:06:15]OFD Sender: No OFD packet to send [10:06:20]OFD Sender: No OFD packet to send [10:06:25]OFD Sender: No OFD packet to send [10:06:30]OFD Sender: No OFD packet to send [10:06:35]OFD Sender: No OFD packet to send [10:06:40]OFD Sender: No OFD packet to send [10:06:45]OFD Sender: No OFD packet to send [10:06:50]OFD Sender: No OFD packet to send [10:06:55]OFD Sender: No OFD packet to send [10:07:00]OFD Sender: No OFD packet to send [10:07:05]OFD Sender: No OFD packet to send [10:07:10]OFD Sender: No OFD packet to send [10:07:15]OFD Sender: No OFD packet to send [10:07:20]OFD Sender: No OFD packet to send [10:07:25]OFD Sender: No OFD packet to send [10:07:30]OFD Sender: No OFD packet to send [10:07:35]OFD Sender: No OFD packet to send [10:07:40]OFD Sender: No OFD packet to send [10:07:45]OFD Sender: No OFD packet to send [10:07:50]OFD Sender: No OFD packet to send [10:07:55]OFD Sender: No OFD packet to send [10:08:00]OFD Sender: No OFD packet to send [10:08:05]OFD Sender: No OFD packet to send [10:08:10]OFD Sender: No OFD packet to send [10:08:15]OFD Sender: No OFD packet to send [10:08:20]OFD Sender: No OFD packet to send [10:08:25]OFD Sender: No OFD packet to send [10:08:30]OFD Sender: No OFD packet to send [10:08:35]OFD Sender: No OFD packet to send [10:08:40]OFD Sender: No OFD packet to send [10:08:45]OFD Sender: No OFD packet to send [10:08:50]OFD Sender: No OFD packet to send [10:08:55]OFD Sender: No OFD packet to send [10:09:00]OFD Sender: No OFD packet to send [10:09:06]OFD Sender: No OFD packet to send [10:09:11]OFD Sender: No OFD packet to send [10:09:16]OFD Sender: No OFD packet to send [10:09:21]OFD Sender: No OFD packet to send [10:09:26]OFD Sender: No OFD packet to send [10:09:31]OFD Sender: No OFD packet to send [10:09:36]OFD Sender: No OFD packet to send [10:09:41]OFD Sender: No OFD packet to send [10:09:46]OFD Sender: No OFD packet to send [10:09:51]OFD Sender: No OFD packet to send [10:09:56]OFD Sender: No OFD packet to send [10:10:01]OFD Sender: No OFD packet to send [10:10:06]OFD Sender: No OFD packet to send [10:10:11]OFD Sender: No OFD packet to send [10:10:16]OFD Sender: No OFD packet to send [10:10:21]OFD Sender: No OFD packet to send [10:10:26]OFD Sender: No OFD packet to send [10:10:31]OFD Sender: No OFD packet to send [10:10:36]OFD Sender: No OFD packet to send [10:10:41]OFD Sender: No OFD packet to send [10:10:46]OFD Sender: No OFD packet to send [10:10:51]OFD Sender: No OFD packet to send [10:10:56]OFD Sender: No OFD packet to send [10:11:01]OFD Sender: No OFD packet to send [10:11:06]OFD Sender: No OFD packet to send [10:11:11]OFD Sender: No OFD packet to send [10:11:16]OFD Sender: No OFD packet to send [10:11:21]OFD Sender: No OFD packet to send [10:11:26]OFD Sender: No OFD packet to send [10:11:31]OFD Sender: No OFD packet to send [10:11:36]OFD Sender: No OFD packet to send [10:11:41]OFD Sender: No OFD packet to send [10:11:46]OFD Sender: No OFD packet to send [10:11:51]OFD Sender: No OFD packet to send [10:11:56]OFD Sender: No OFD packet to send [10:12:01]OFD Sender: No OFD packet to send [10:12:06]OFD Sender: No OFD packet to send [10:12:11]OFD Sender: No OFD packet to send [10:12:16]OFD Sender: No OFD packet to send [10:12:21]OFD Sender: No OFD packet to send [10:12:26]OFD Sender: No OFD packet to send [10:12:31]OFD Sender: No OFD packet to send [10:12:36]OFD Sender: No OFD packet to send [10:12:41]OFD Sender: No OFD packet to send [10:12:46]OFD Sender: No OFD packet to send [10:12:51]OFD Sender: No OFD packet to send [10:12:56]OFD Sender: No OFD packet to send [10:13:01]OFD Sender: No OFD packet to send [10:13:06]OFD Sender: No OFD packet to send [10:13:11]OFD Sender: No OFD packet to send [10:13:16]OFD Sender: No OFD packet to send [10:13:21]OFD Sender: No OFD packet to send [10:13:26]OFD Sender: No OFD packet to send [10:13:31]OFD Sender: No OFD packet to send [10:13:36]OFD Sender: No OFD packet to send [10:13:41]OFD Sender: No OFD packet to send [10:13:46]OFD Sender: No OFD packet to send [10:13:51]OFD Sender: No OFD packet to send [10:13:56]OFD Sender: No OFD packet to send [10:14:01]OFD Sender: No OFD packet to send [10:14:06]OFD Sender: No OFD packet to send [10:14:11]OFD Sender: No OFD packet to send [10:14:16]OFD Sender: No OFD packet to send [10:14:21]OFD Sender: No OFD packet to send [10:14:26]OFD Sender: No OFD packet to send [10:14:31]OFD Sender: No OFD packet to send [10:14:36]OFD Sender: No OFD packet to send [10:14:41]OFD Sender: No OFD packet to send [10:14:46]OFD Sender: No OFD packet to send [10:14:51]OFD Sender: No OFD packet to send [10:14:56]OFD Sender: No OFD packet to send [10:15:01]OFD Sender: No OFD packet to send [10:15:06]OFD Sender: No OFD packet to send [10:15:11]OFD Sender: No OFD packet to send [10:15:16]OFD Sender: No OFD packet to send [10:15:21]OFD Sender: No OFD packet to send [10:15:26]OFD Sender: No OFD packet to send [10:15:31]OFD Sender: No OFD packet to send [10:15:36]OFD Sender: No OFD packet to send [10:15:41]OFD Sender: No OFD packet to send [10:15:46]OFD Sender: No OFD packet to send [10:15:51]OFD Sender: No OFD packet to send [10:15:56]OFD Sender: No OFD packet to send [10:16:01]OFD Sender: No OFD packet to send [10:16:06]OFD Sender: No OFD packet to send [10:16:11]OFD Sender: No OFD packet to send [10:16:16]OFD Sender: No OFD packet to send [10:16:21]OFD Sender: No OFD packet to send [10:16:26]OFD Sender: No OFD packet to send [10:16:31]OFD Sender: No OFD packet to send [10:16:36]OFD Sender: No OFD packet to send [10:16:41]OFD Sender: No OFD packet to send [10:16:46]OFD Sender: No OFD packet to send [10:16:51]OFD Sender: No OFD packet to send [10:16:56]OFD Sender: No OFD packet to send [10:17:01]OFD Sender: No OFD packet to send [10:17:06]OFD Sender: No OFD packet to send [10:17:11]OFD Sender: No OFD packet to send [10:17:16]OFD Sender: No OFD packet to send [10:17:21]OFD Sender: No OFD packet to send [10:17:26]OFD Sender: No OFD packet to send [10:17:31]OFD Sender: No OFD packet to send [10:17:36]OFD Sender: No OFD packet to send [10:17:41]OFD Sender: No OFD packet to send [10:17:46]OFD Sender: No OFD packet to send [10:17:51]OFD Sender: No OFD packet to send [10:17:56]OFD Sender: No OFD packet to send [10:18:01]OFD Sender: No OFD packet to send [10:18:06]OFD Sender: No OFD packet to send [10:18:11]OFD Sender: No OFD packet to send [10:18:16]OFD Sender: No OFD packet to send [10:18:21]OFD Sender: No OFD packet to send [10:18:26]OFD Sender: No OFD packet to send [10:18:31]OFD Sender: No OFD packet to send [10:18:36]OFD Sender: No OFD packet to send [10:18:41]OFD Sender: No OFD packet to send [10:18:46]OFD Sender: No OFD packet to send [10:18:51]OFD Sender: No OFD packet to send [10:18:56]OFD Sender: No OFD packet to send [10:19:01]OFD Sender: No OFD packet to send [10:19:06]OFD Sender: No OFD packet to send [10:19:11]OFD Sender: No OFD packet to send [10:19:16]OFD Sender: No OFD packet to send [10:19:21]OFD Sender: No OFD packet to send [10:19:26]OFD Sender: No OFD packet to send [10:19:31]OFD Sender: No OFD packet to send [10:19:36]OFD Sender: No OFD packet to send [10:19:41]OFD Sender: No OFD packet to send [10:19:46]OFD Sender: No OFD packet to send [10:19:51]OFD Sender: No OFD packet to send [10:19:56]OFD Sender: No OFD packet to send [10:20:01]OFD Sender: No OFD packet to send [10:20:06]OFD Sender: No OFD packet to send [10:20:11]OFD Sender: No OFD packet to send [10:20:16]OFD Sender: No OFD packet to send [10:20:21]OFD Sender: No OFD packet to send [10:20:26]OFD Sender: No OFD packet to send [10:20:31]OFD Sender: No OFD packet to send [10:20:36]OFD Sender: No OFD packet to send [10:20:41]OFD Sender: No OFD packet to send [10:20:46]OFD Sender: No OFD packet to send [10:20:51]OFD Sender: No OFD packet to send [10:20:56]OFD Sender: No OFD packet to send [10:21:01]OFD Sender: No OFD packet to send [10:21:06]OFD Sender: No OFD packet to send [10:21:11]OFD Sender: No OFD packet to send [10:21:16]OFD Sender: No OFD packet to send [10:21:21]OFD Sender: No OFD packet to send [10:21:24]accept exits with 9 [10:21:24]New connection [10:21:24]New thread 3066658148 created [10:21:24]Thread 3066801508 joined [10:21:24]Waiting for new connection... [10:21:24] Sock 9.Parse request [10:21:24]Sock 9.Check first char [10:21:24]Sock 9.First char is OK [10:21:24]request: POST /json_proto HTTP/1.0 [10:21:24]Method: POST [10:21:24]URL: /json_proto [10:21:24]Method is POST - this is cgi request [10:21:24]url: /json_proto [10:21:24]query_string will be loaded in cgi processing [10:21:24]execute_cgi json_proto POST (null) [10:21:24]execute_cgi path=json_proto method=POST [10:21:24]POST find Content-Length [10:21:24]Host: 172.17.57.71:8080 [10:21:24]Content-Length: 666 [10:21:24]Content-Type: application/json [10:21:24] [10:21:24]POST finish read [10:21:24]Found Content-Length = 666 [10:21:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127476", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:24]execute_script... [10:21:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127476", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:24]POST & json_proto [10:21:24]process_json_proto [10:21:24]json parsed OK: [10:21:24]protocol is kg_v1.0 [10:21:24]action value=close_receipt [10:21:24]process_action close_receipt [10:21:24]cmd_close_receipt [10:21:24]MH_GetDate [10:21:24]Write to MH i2c: F0 00 00 A0 46 D5 [10:21:24]Write i2c OK [10:21:24]MH_I2C_Read... [10:21:24]Read from MH i2c: F0 [10:21:24]MH_I2C_Read... [10:21:24]Read from MH i2c: F0 09 00 [10:21:24]MH_I2C_Read... [10:21:24]Read from MH i2c: F0 09 00 A0 46 00 2C B5 E6 66 33 3A A4 66 82 [10:21:24]GetLastDocTimeStamp 1726393950 [10:21:24]current date 1726395692 [10:21:24]FM_GetShiftState [10:21:24]SAM_PROTO_GetShiftState [10:21:24]wFMCommunicate request_size=4 [10:21:24]MH_SAM_APDU [10:21:24]CAPDU: 80 13 01 00 [10:21:24]Write to MH i2c: E2 08 00 A1 46 80 13 01 00 00 00 00 00 64 [10:21:24]Write i2c OK [10:21:24]MH_I2C_Read... [10:21:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:24]Read from MH i2c: E2 [10:21:24]MH_I2C_Read... [10:21:24]Read from MH i2c: E2 0E 00 [10:21:24]MH_I2C_Read... [10:21:24]Read from MH i2c: E2 0E 00 A1 46 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 E6 [10:21:24]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [10:21:24]wFMCommunicate OK [10:21:24]SAM_PROTO_GetShiftState done [10:21:24]FM_GetShiftState done [10:21:24]opened in 1726359809 [10:21:24]opened+sec_in_day 1726446209 [10:21:24]quantity*price = 9000 [10:21:24]sum+1 = 9001 [10:21:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 30 15.09.2024 10:21 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92582 ФПД: 111092659812558 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T102132&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92582&fm=111092659812558&tin=02508201610067®Number=0000000000091423&sum=9000 0 [10:21:25]StoreToDocumentArchive [10:21:25]shift 507 fd 92582 [10:21:25]save to /storage/0507/doc_00092582 [10:21:25]save last doc name /storage/0507/doc_00092582 to /storage/kkm_last_doc_name [10:21:25]save OK [10:21:25]Clear old archive folders... [10:21:25]ProcessDocumentItem done err = 0, tmpTLVsize=293 [10:21:25]tlvbuf is 00FF8FA0 [10:21:25]SAM_PROTO_ClearQueue [10:21:25]wFMCommunicate request_size=4 [10:21:25]MH_SAM_APDU [10:21:25]CAPDU: 80 09 00 00 [10:21:25]Write to MH i2c: E2 08 00 AE 46 80 09 00 00 00 00 00 00 66 [10:21:25]Write i2c OK [10:21:25]MH_I2C_Read... [10:21:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:25]Read from MH i2c: E2 [10:21:25]MH_I2C_Read... [10:21:25]Read from MH i2c: E2 03 00 [10:21:25]MH_I2C_Read... [10:21:25]Read from MH i2c: E2 03 00 AE 46 00 90 00 68 [10:21:25]RAPDU: 90 00 [10:21:25]wFMCommunicate OK [10:21:25]SAM_PROTO_ClearQueue done [10:21:25]KKMCreateOFDPacket [10:21:25]OFDProtocolAddRootSTLVToBuf [10:21:25]FM_MakeSignedData [10:21:25]FM_MakeSignedData [10:21:25]SAM_PROTO_SignData [10:21:25]wFMCommunicate request_size=4 [10:21:25]MH_SAM_APDU [10:21:25]CAPDU: 80 0D 01 02 [10:21:25]Write to MH i2c: E2 08 00 AF 46 80 0D 01 02 00 00 00 00 6E [10:21:25]Write i2c OK [10:21:25]MH_I2C_Read... [10:21:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:25]Read from MH i2c: E2 [10:21:25]MH_I2C_Read... [10:21:25]Read from MH i2c: E2 03 00 [10:21:25]MH_I2C_Read... [10:21:25]Read from MH i2c: E2 03 00 AF 46 00 90 00 69 [10:21:25]RAPDU: 90 00 [10:21:25]wFMCommunicate OK [10:21:25]wFMCommunicate request_size=255 [10:21:25]MH_SAM_APDU [10:21:25]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 2C B5 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [10:21:25]Write to MH i2c: E2 02 01 B0 46 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 2C B5 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 8D [10:21:25]Write i2c OK [10:21:25]MH_I2C_Read... [10:21:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:25]Read from MH i2c: E2 [10:21:25]MH_I2C_Read... [10:21:25]Read from MH i2c: E2 03 00 [10:21:25]MH_I2C_Read... [10:21:25]Read from MH i2c: E2 03 00 B0 46 00 90 00 6A [10:21:25]RAPDU: 90 00 [10:21:25]wFMCommunicate OK [10:21:25]wFMCommunicate request_size=52 [10:21:25]MH_SAM_APDU [10:21:25]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A6 69 01 00 35 04 06 00 65 09 C6 86 78 CE [10:21:25]Write to MH i2c: E2 37 00 B1 46 80 0D 02 02 2F 00 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A6 69 01 00 35 04 06 00 65 09 C6 86 78 CE 00 00 42 [10:21:25]Write i2c OK [10:21:25]MH_I2C_Read... [10:21:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:25]Read from MH i2c: E2 [10:21:25]MH_I2C_Read... [10:21:25]Read from MH i2c: E2 03 00 [10:21:25]MH_I2C_Read... [10:21:25]Read from MH i2c: E2 03 00 B1 46 00 90 00 6B [10:21:25]RAPDU: 90 00 [10:21:25]wFMCommunicate OK [10:21:25]wFMCommunicate request_size=4 [10:21:25]MH_SAM_APDU [10:21:25]CAPDU: 80 0D 03 02 [10:21:25]Write to MH i2c: E2 08 00 B2 46 80 0D 03 02 00 00 00 00 73 [10:21:25]Write i2c OK [10:21:25]MH_I2C_Read... [10:21:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:25]Read from MH i2c: E2 [10:21:25]MH_I2C_Read... [10:21:25]Read from MH i2c: E2 0B 00 [10:21:25]MH_I2C_Read... [10:21:25]Read from MH i2c: E2 0B 00 B2 46 00 9E FB C3 BB 16 6A AE C1 90 00 7A [10:21:25]RAPDU: 9E FB C3 BB 16 6A AE C1 90 00 [10:21:25]wFMCommunicate OK [10:21:25]SAM_PROTO_SignData done [10:21:25]FM_MakeSignedData done [10:21:25]CreateOFDProtocolMessage [10:21:25]wFMCommunicate request_size=4 [10:21:25]MH_SAM_APDU [10:21:25]CAPDU: 80 11 00 00 [10:21:25]Write to MH i2c: E2 08 00 B3 46 80 11 00 00 00 00 00 00 73 [10:21:25]Write i2c OK [10:21:25]MH_I2C_Read... [10:21:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:25]Read from MH i2c: E2 [10:21:25]MH_I2C_Read... [10:21:25]Read from MH i2c: E2 17 00 [10:21:25]MH_I2C_Read... [10:21:25]Read from MH i2c: E2 17 00 B3 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 CA [10:21:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:21:25]wFMCommunicate OK [10:21:25]CreateOFDProtocolMessage done [10:21:25]OFDSenderStorePacket 92582 [10:21:25]StoreOFDPacket docnum=92582 [10:21:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 39 01 00 00 66 AA 31 01 5D BC 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 2C B5 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A6 69 01 00 35 04 06 00 65 09 C6 86 78 CE 9E FB C3 BB 16 6A AE C1 [10:21:25]CheckFolder [10:21:25]dirname=/storage/ofd_packets [10:21:25]CheckFolder done [10:21:25]ProducePacketName [10:21:25]name=ofd_packets/00092582 [10:21:25]NVStorageSaveData ofd_packets/00092582 [10:21:25]File name is /storage/ofd_packets/00092582 [10:21:25]Write 343 bytes [10:21:25]NVStorageSaveData done [10:21:25]OFDSenderStorePacket done [10:21:25]KKMCreateOFDPacket done [10:21:25]NVStorageSaveData kkm_last_timestamp [10:21:25]File name is /storage/kkm_last_timestamp [10:21:25]Write 4 bytes [10:21:25]NVStorageSaveData done [10:21:25]ExternCall_PrintAddStr [10:21:25]wPrintStart [10:21:25]Write to MH i2c: 01 00 00 B4 46 FA [10:21:25]Write i2c OK [10:21:25]MH_I2C_Read... [10:21:25]Read from MH i2c: 01 [10:21:25]MH_I2C_Read... [10:21:25]Read from MH i2c: 01 07 00 [10:21:25]MH_I2C_Read... [10:21:25]Read from MH i2c: 01 07 00 B4 46 00 00 00 00 00 FF 0F 0F [10:21:25]RasterBufferAndPrint [10:21:25]line Счет N : (3)127476 [10:21:25]line ИНН: 02508201610067 [10:21:25]line Контрольно-Кассовый Чек [10:21:25]line ПРОДАЖА [10:21:25]line Товар: 4870022003305 [10:21:25]line Напиток Gorilla эн нат ж/б 0,5/0,45л [10:21:25]line 1.000 * 90.00 [10:21:25]line = 90.00 [10:21:25]line НДС 12% НСП 1% [10:21:25]line > о реализуемом товаре [10:21:25]line ИТОГО: 90.00 [10:21:25]line НСП 1% : 0.80 [10:21:25]line НДС 12% : 9.56 [10:21:25]line Наличными: 90.00 [10:21:25]line Безнал.: 0.00 [10:21:25]line Место: АЗС № 5 "Партнер Нефть" [10:21:25]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [10:21:25]line СНО: Общий режим [10:21:25]line Чек 30 15.09.2024 10:21 [10:21:25]line Смена: 507 ФФД: 1.0 [10:21:25]line ЗНМ: 03000000022 [10:21:25]line РНМ: 0000000000091423 [10:21:25]line Версия ККМ: 001 [10:21:25]line ФМ: 0000000000874692 [10:21:25]line ФД: 92582 [10:21:25]line ФПД: 111092659812558 [10:21:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T102132&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92582&fm=111092659812558&tin=02508201610067®Number=0000000000091423&sum=9000 [10:21:26]OFD Sender: Processing packet 92582 [packets to send 63, broken 62] [10:21:26]ProducePacketName [10:21:26]name=ofd_packets/00092582 [10:21:26]OFD Sender: To server: pG, [10:21:26]CommunicateWithHost lk.salyk.kg:30040 [10:21:26]ConnectInit lk.salyk.kg [10:21:26]line 0 [10:21:26]written 0, free lines is 4095 [10:21:26]Connected sock=10 [10:21:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 39 01 00 00 66 AA 31 01 5D BC 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 2C B5 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A6 69 01 00 35 04 06 00 65 09 C6 86 78 CE 9E FB C3 BB 16 6A AE C1 [10:21:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 C9 1B 47 00 1E BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A6 69 01 00 F4 03 04 00 A4 5D E6 66 B6 04 01 00 00 14 B0 DC 95 43 4D 94 59 [10:21:26]CommunicateWithHost err = 0 [10:21:26]CheckOFDResponse [10:21:26]1017 (14) - 77093643461234 [10:21:26]1041 (16) - 0000000000874692 [10:21:26]1040 (4) - 92582 [10:21:26]1012 (4) - 15.09.2024 04:08 [10:21:26]1206 (1) - 0 [10:21:26]OFD Sender: Remove packet 92582 [10:21:26]ProducePacketName [10:21:26]name=ofd_packets/00092582 [10:21:26]NVStorageDeleteData [10:21:26]Write to MH i2c: 01 00 00 DD 46 23 [10:21:26]Write i2c OK [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: 01 [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: 01 07 00 [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: 01 07 00 DD 46 00 00 00 00 00 0F 0D 46 [10:21:26]RasterBufferAndPrint [10:21:26]line [10:21:26]line [10:21:26]line [10:21:26]line [10:21:26]line [10:21:26]written 0, free lines is 3351 [10:21:26]MH_Cut [10:21:26]Write to MH i2c: D1 01 00 E4 46 01 FC [10:21:26]Write i2c OK [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: D1 [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: D1 01 00 [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: D1 01 00 E4 46 00 FB [10:21:26]Write to MH i2c: 01 00 00 E5 46 2B [10:21:26]Write i2c OK [10:21:26]MH_I2C_Read... [10:21:26]OFD Sender: No OFD packet to send [10:21:27]*** Cut start [10:21:27]*** Purtial cut [10:21:27]*** Stage 1: CUTSNS_PIN = 1 [10:21:29]Read from MH i2c: 01 [10:21:29]MH_I2C_Read... [10:21:29]*** Stop cut motor [10:21:29]*** Cut end [10:21:29]Read from MH i2c: 01 07 00 [10:21:29]MH_I2C_Read... [10:21:29]Read from MH i2c: 01 07 00 E5 46 00 00 00 00 00 FF 0F 40 [10:21:29]process_action close_receipt done [10:21:29]requested_data is exist [10:21:29]produce_requested_data [10:21:29]requested_item fm.sn is exist - process it [10:21:29]wFMCommunicate request_size=4 [10:21:29]MH_SAM_APDU [10:21:29]CAPDU: 80 11 00 00 [10:21:29]Write to MH i2c: E2 08 00 E6 46 80 11 00 00 00 00 00 00 A6 [10:21:29]Write i2c OK [10:21:29]MH_I2C_Read... [10:21:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:29]Read from MH i2c: E2 [10:21:29]MH_I2C_Read... [10:21:29]Read from MH i2c: E2 17 00 [10:21:29]MH_I2C_Read... [10:21:29]Read from MH i2c: E2 17 00 E6 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 FD [10:21:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:21:29]wFMCommunicate OK [10:21:29]requested_item fd.num is exist - process it [10:21:29]SAM_PROTO_GetFieldsCounters [10:21:29]wFMCommunicate request_size=4 [10:21:29]MH_SAM_APDU [10:21:29]CAPDU: 80 13 00 00 [10:21:29]Write to MH i2c: E2 08 00 E7 46 80 13 00 00 00 00 00 00 A9 [10:21:29]Write i2c OK [10:21:29]MH_I2C_Read... [10:21:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:29]Read from MH i2c: E2 [10:21:29]MH_I2C_Read... [10:21:29]Read from MH i2c: E2 62 00 [10:21:29]MH_I2C_Read... [10:21:29]Read from MH i2c: E2 62 00 E7 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A6 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [10:21:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A6 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:21:29]wFMCommunicate OK [10:21:29]SAM_PROTO_GetFieldsCounters done [10:21:29]requested_item shift.num is exist - process it [10:21:29]requested_item shift.opened is exist - process it [10:21:29]req_shift_opened [10:21:29]FM_GetShiftState [10:21:29]SAM_PROTO_GetShiftState [10:21:29]wFMCommunicate request_size=4 [10:21:29]MH_SAM_APDU [10:21:29]CAPDU: 80 13 01 00 [10:21:29]Write to MH i2c: E2 08 00 E8 46 80 13 01 00 00 00 00 00 AB [10:21:29]Write i2c OK [10:21:29]MH_I2C_Read... [10:21:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:29]Read from MH i2c: E2 [10:21:29]MH_I2C_Read... [10:21:29]Read from MH i2c: E2 0E 00 [10:21:29]MH_I2C_Read... [10:21:29]Read from MH i2c: E2 0E 00 E8 46 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 2D [10:21:29]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [10:21:29]wFMCommunicate OK [10:21:29]SAM_PROTO_GetShiftState done [10:21:29]FM_GetShiftState done [10:21:29]req_shift_opened done [10:21:29]requested_item shift.open_date is exist - process it [10:21:29]req_shift_open_date [10:21:29]req_shift_open_date done [10:21:29]produce_requested_data done [10:21:29]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92582,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [10:21:29]process_action_free close_receipt [10:21:29]json_value_free [10:21:29]json_value_free done [10:21:29]process_json_proto returns [10:21:29]Send response to host [10:21:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92582,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [10:21:29]free response buf [10:21:29]execute_script done [10:21:29]execute_script returns [10:21:29]free content buf [10:21:29]Sock 9.Close socket [10:21:29]Sock 9.Thread stoped [10:21:31]OFD Sender: No OFD packet to send [10:21:36]OFD Sender: No OFD packet to send [10:21:38]accept exits with 8 [10:21:38]New connection [10:21:38]New thread 3066801508 created [10:21:38]Thread 3066658148 joined [10:21:38]Waiting for new connection... [10:21:38] Sock 8.Parse request [10:21:38]Sock 8.Check first char [10:21:38]Sock 8.First char is OK [10:21:38]request: POST /json_proto HTTP/1.0 [10:21:38]Method: POST [10:21:38]URL: /json_proto [10:21:38]Method is POST - this is cgi request [10:21:38]url: /json_proto [10:21:38]query_string will be loaded in cgi processing [10:21:38]execute_cgi json_proto POST (null) [10:21:38]execute_cgi path=json_proto method=POST [10:21:38]POST find Content-Length [10:21:38]Host: 172.17.57.71:8080 [10:21:38]Content-Length: 809 [10:21:38]Content-Type: application/json [10:21:38] [10:21:38]POST finish read [10:21:38]Found Content-Length = 809 [10:21:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127477", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:38]execute_script... [10:21:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127477", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:38]POST & json_proto [10:21:38]process_json_proto [10:21:38]json parsed OK: [10:21:38]protocol is kg_v1.0 [10:21:38]action value=close_receipt [10:21:38]process_action close_receipt [10:21:38]cmd_close_receipt [10:21:38]MH_GetDate [10:21:38]Write to MH i2c: F0 00 00 E9 46 1E [10:21:38]Write i2c OK [10:21:38]MH_I2C_Read... [10:21:38]Read from MH i2c: F0 [10:21:38]MH_I2C_Read... [10:21:38]Read from MH i2c: F0 09 00 [10:21:38]MH_I2C_Read... [10:21:38]Read from MH i2c: F0 09 00 E9 46 00 3A B5 E6 66 33 3A A4 66 D9 [10:21:38]GetLastDocTimeStamp 1726395692 [10:21:38]current date 1726395706 [10:21:38]FM_GetShiftState [10:21:38]SAM_PROTO_GetShiftState [10:21:38]wFMCommunicate request_size=4 [10:21:38]MH_SAM_APDU [10:21:38]CAPDU: 80 13 01 00 [10:21:38]Write to MH i2c: E2 08 00 EA 46 80 13 01 00 00 00 00 00 AD [10:21:38]Write i2c OK [10:21:38]MH_I2C_Read... [10:21:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:38]Read from MH i2c: E2 [10:21:38]MH_I2C_Read... [10:21:38]Read from MH i2c: E2 0E 00 [10:21:38]MH_I2C_Read... [10:21:38]Read from MH i2c: E2 0E 00 EA 46 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 2F [10:21:38]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [10:21:38]wFMCommunicate OK [10:21:38]SAM_PROTO_GetShiftState done [10:21:38]FM_GetShiftState done [10:21:38]opened in 1726359809 [10:21:38]opened+sec_in_day 1726446209 [10:21:38]quantity*price = 6000 [10:21:38]sum+1 = 6001 [10:21:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 0.00 Безнал.: 60.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 31 15.09.2024 10:21 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92583 ФПД: 147199096382016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T102146&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92583&fm=147199096382016&tin=02508201610067®Number=0000000000091423&sum=6000 0 [10:21:39]StoreToDocumentArchive [10:21:39]shift 507 fd 92583 [10:21:39]save to /storage/0507/doc_00092583 [10:21:39]save last doc name /storage/0507/doc_00092583 to /storage/kkm_last_doc_name [10:21:39]save OK [10:21:39]Clear old archive folders... [10:21:39]ProcessDocumentItem done err = 0, tmpTLVsize=271 [10:21:39]tlvbuf is 01082D40 [10:21:39]SAM_PROTO_ClearQueue [10:21:39]wFMCommunicate request_size=4 [10:21:39]MH_SAM_APDU [10:21:39]CAPDU: 80 09 00 00 [10:21:39]Write to MH i2c: E2 08 00 F7 46 80 09 00 00 00 00 00 00 AF [10:21:39]Write i2c OK [10:21:39]MH_I2C_Read... [10:21:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:39]Read from MH i2c: E2 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 03 00 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 03 00 F7 46 00 90 00 B1 [10:21:39]RAPDU: 90 00 [10:21:39]wFMCommunicate OK [10:21:39]SAM_PROTO_ClearQueue done [10:21:39]KKMCreateOFDPacket [10:21:39]OFDProtocolAddRootSTLVToBuf [10:21:39]FM_MakeSignedData [10:21:39]FM_MakeSignedData [10:21:39]SAM_PROTO_SignData [10:21:39]wFMCommunicate request_size=4 [10:21:39]MH_SAM_APDU [10:21:39]CAPDU: 80 0D 01 02 [10:21:39]Write to MH i2c: E2 08 00 F8 46 80 0D 01 02 00 00 00 00 B7 [10:21:39]Write i2c OK [10:21:39]MH_I2C_Read... [10:21:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:39]Read from MH i2c: E2 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 03 00 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 03 00 F8 46 00 90 00 B2 [10:21:39]RAPDU: 90 00 [10:21:39]wFMCommunicate OK [10:21:39]wFMCommunicate request_size=255 [10:21:39]MH_SAM_APDU [10:21:39]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 3A B5 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 [10:21:39]Write to MH i2c: E2 02 01 F9 46 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 3A B5 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 36 [10:21:39]Write i2c OK [10:21:39]MH_I2C_Read... [10:21:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:39]Read from MH i2c: E2 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 03 00 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 03 00 F9 46 00 90 00 B3 [10:21:39]RAPDU: 90 00 [10:21:39]wFMCommunicate OK [10:21:39]wFMCommunicate request_size=30 [10:21:39]MH_SAM_APDU [10:21:39]CAPDU: 80 0D 02 02 19 30 38 37 34 36 39 32 10 04 04 00 A7 69 01 00 35 04 06 00 85 E0 75 D9 E2 40 [10:21:39]Write to MH i2c: E2 21 00 FA 46 80 0D 02 02 19 00 30 38 37 34 36 39 32 10 04 04 00 A7 69 01 00 35 04 06 00 85 E0 75 D9 E2 40 00 00 9D [10:21:39]Write i2c OK [10:21:39]MH_I2C_Read... [10:21:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:39]Read from MH i2c: E2 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 03 00 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 03 00 FA 46 00 90 00 B4 [10:21:39]RAPDU: 90 00 [10:21:39]wFMCommunicate OK [10:21:39]wFMCommunicate request_size=4 [10:21:39]MH_SAM_APDU [10:21:39]CAPDU: 80 0D 03 02 [10:21:39]Write to MH i2c: E2 08 00 FB 46 80 0D 03 02 00 00 00 00 BC [10:21:39]Write i2c OK [10:21:39]MH_I2C_Read... [10:21:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:39]Read from MH i2c: E2 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 0B 00 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 0B 00 FB 46 00 71 D0 59 E7 17 62 67 32 90 00 50 [10:21:39]RAPDU: 71 D0 59 E7 17 62 67 32 90 00 [10:21:39]wFMCommunicate OK [10:21:39]SAM_PROTO_SignData done [10:21:39]FM_MakeSignedData done [10:21:39]CreateOFDProtocolMessage [10:21:39]wFMCommunicate request_size=4 [10:21:39]MH_SAM_APDU [10:21:39]CAPDU: 80 11 00 00 [10:21:39]Write to MH i2c: E2 08 00 FC 46 80 11 00 00 00 00 00 00 BC [10:21:39]Write i2c OK [10:21:39]MH_I2C_Read... [10:21:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:39]Read from MH i2c: E2 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 17 00 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 17 00 FC 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 13 [10:21:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:21:39]wFMCommunicate OK [10:21:39]CreateOFDProtocolMessage done [10:21:39]OFDSenderStorePacket 92583 [10:21:39]StoreOFDPacket docnum=92583 [10:21:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 B2 52 1B 01 12 4D 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 3A B5 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A7 69 01 00 35 04 06 00 85 E0 75 D9 E2 40 71 D0 59 E7 17 62 67 32 [10:21:39]CheckFolder [10:21:39]dirname=/storage/ofd_packets [10:21:39]CheckFolder done [10:21:39]ProducePacketName [10:21:39]name=ofd_packets/00092583 [10:21:39]NVStorageSaveData ofd_packets/00092583 [10:21:39]File name is /storage/ofd_packets/00092583 [10:21:39]Write 321 bytes [10:21:39]NVStorageSaveData done [10:21:39]OFDSenderStorePacket done [10:21:39]KKMCreateOFDPacket done [10:21:39]NVStorageSaveData kkm_last_timestamp [10:21:39]File name is /storage/kkm_last_timestamp [10:21:39]Write 4 bytes [10:21:39]NVStorageSaveData done [10:21:39]ExternCall_PrintAddStr [10:21:39]wPrintStart [10:21:39]Write to MH i2c: 01 00 00 FD 46 43 [10:21:39]Write i2c OK [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: 01 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: 01 07 00 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: 01 07 00 FD 46 00 00 00 00 00 FF 0F 58 [10:21:39]RasterBufferAndPrint [10:21:39]line Счет N : (3)127477 [10:21:39]line ИНН: 02508201610067 [10:21:39]line Контрольно-Кассовый Чек [10:21:39]line ПРОДАЖА [10:21:39]line Товар: 4700000160204 [10:21:39]line Вода Легенда 1,5л [10:21:39]line 1.000 * 60.00 [10:21:39]line = 60.00 [10:21:39]line НДС 12% НСП 1% [10:21:39]line > о реализуемом товаре [10:21:39]line ИТОГО: 60.00 [10:21:39]line НСП 1% : 0.53 [10:21:39]line НДС 12% : 6.37 [10:21:39]line Наличными: 0.00 [10:21:39]line Безнал.: 60.00 [10:21:39]line Место: АЗС № 5 "Партнер Нефть" [10:21:39]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [10:21:39]line СНО: Общий режим [10:21:39]line Чек 31 15.09.2024 10:21 [10:21:39]line Смена: 507 ФФД: 1.0 [10:21:39]line ЗНМ: 03000000022 [10:21:39]line РНМ: 0000000000091423 [10:21:39]line Версия ККМ: 001 [10:21:39]line Платежная система: Бакай Банк [10:21:39]line ФМ: 0000000000874692 [10:21:39]line ФД: 92583 [10:21:39]line ФПД: 147199096382016 [10:21:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T102146&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92583&fm=147199096382016&tin=02508201610067®Number=0000000000091423&sum=6000 [10:21:40]OFD Sender: Processing packet 92583 [packets to send 63, broken 62] [10:21:40]ProducePacketName [10:21:40]name=ofd_packets/00092583 [10:21:40]OFD Sender: To server: pG, [10:21:40]CommunicateWithHost lk.salyk.kg:30040 [10:21:40]ConnectInit lk.salyk.kg [10:21:40]line 0 [10:21:40]written 0, free lines is 4095 [10:21:40]Connected sock=10 [10:21:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 B2 52 1B 01 12 4D 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 3A B5 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A7 69 01 00 35 04 06 00 85 E0 75 D9 E2 40 71 D0 59 E7 17 62 67 32 [10:21:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 D2 4B 47 00 82 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A7 69 01 00 F4 03 04 00 B2 5D E6 66 B6 04 01 00 00 0E A2 EE 6B BD 45 14 50 [10:21:40]CommunicateWithHost err = 0 [10:21:40]CheckOFDResponse [10:21:40]1017 (14) - 77093643461234 [10:21:40]1041 (16) - 0000000000874692 [10:21:40]1040 (4) - 92583 [10:21:40]1012 (4) - 15.09.2024 04:08 [10:21:40]1206 (1) - 0 [10:21:40]OFD Sender: Remove packet 92583 [10:21:40]ProducePacketName [10:21:40]name=ofd_packets/00092583 [10:21:40]NVStorageDeleteData [10:21:40]Write to MH i2c: 01 00 00 27 47 6E [10:21:40]Write i2c OK [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: 01 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: 01 07 00 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: 01 07 00 27 47 00 00 00 00 00 02 0D 84 [10:21:40]RasterBufferAndPrint [10:21:40]line [10:21:40]line [10:21:40]line [10:21:40]line [10:21:40]line [10:21:40]written 0, free lines is 3335 [10:21:40]MH_Cut [10:21:40]Write to MH i2c: D1 01 00 2E 47 01 47 [10:21:40]Write i2c OK [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: D1 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: D1 01 00 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: D1 01 00 2E 47 00 46 [10:21:40]Write to MH i2c: 01 00 00 2F 47 76 [10:21:40]Write i2c OK [10:21:40]MH_I2C_Read... [10:21:41]OFD Sender: No OFD packet to send [10:21:41]*** Cut start [10:21:41]*** Purtial cut [10:21:41]*** Stage 1: CUTSNS_PIN = 1 [10:21:43]Read from MH i2c: 01 [10:21:43]MH_I2C_Read... [10:21:43]*** Stop cut motor [10:21:43]*** Cut end [10:21:43]Read from MH i2c: 01 07 00 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: 01 07 00 2F 47 00 00 00 00 00 FF 0F 8B [10:21:43]process_action close_receipt done [10:21:43]requested_data is exist [10:21:43]produce_requested_data [10:21:43]requested_item fm.sn is exist - process it [10:21:43]wFMCommunicate request_size=4 [10:21:43]MH_SAM_APDU [10:21:43]CAPDU: 80 11 00 00 [10:21:43]Write to MH i2c: E2 08 00 30 47 80 11 00 00 00 00 00 00 F1 [10:21:43]Write i2c OK [10:21:43]MH_I2C_Read... [10:21:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:43]Read from MH i2c: E2 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: E2 17 00 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: E2 17 00 30 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 48 [10:21:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:21:43]wFMCommunicate OK [10:21:43]requested_item fd.num is exist - process it [10:21:43]SAM_PROTO_GetFieldsCounters [10:21:43]wFMCommunicate request_size=4 [10:21:43]MH_SAM_APDU [10:21:43]CAPDU: 80 13 00 00 [10:21:43]Write to MH i2c: E2 08 00 31 47 80 13 00 00 00 00 00 00 F4 [10:21:43]Write i2c OK [10:21:43]MH_I2C_Read... [10:21:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:43]Read from MH i2c: E2 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: E2 62 00 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: E2 62 00 31 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A7 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [10:21:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A7 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:21:43]wFMCommunicate OK [10:21:43]SAM_PROTO_GetFieldsCounters done [10:21:43]requested_item shift.num is exist - process it [10:21:43]requested_item shift.opened is exist - process it [10:21:43]req_shift_opened [10:21:43]FM_GetShiftState [10:21:43]SAM_PROTO_GetShiftState [10:21:43]wFMCommunicate request_size=4 [10:21:43]MH_SAM_APDU [10:21:43]CAPDU: 80 13 01 00 [10:21:43]Write to MH i2c: E2 08 00 32 47 80 13 01 00 00 00 00 00 F6 [10:21:43]Write i2c OK [10:21:43]MH_I2C_Read... [10:21:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:43]Read from MH i2c: E2 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: E2 0E 00 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: E2 0E 00 32 47 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 78 [10:21:43]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [10:21:43]wFMCommunicate OK [10:21:43]SAM_PROTO_GetShiftState done [10:21:43]FM_GetShiftState done [10:21:43]req_shift_opened done [10:21:43]requested_item shift.open_date is exist - process it [10:21:43]req_shift_open_date [10:21:43]req_shift_open_date done [10:21:43]produce_requested_data done [10:21:43]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92583,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [10:21:43]process_action_free close_receipt [10:21:43]json_value_free [10:21:43]json_value_free done [10:21:43]process_json_proto returns [10:21:43]Send response to host [10:21:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92583,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [10:21:43]free response buf [10:21:43]execute_script done [10:21:43]execute_script returns [10:21:43]free content buf [10:21:43]Sock 8.Close socket [10:21:43]Sock 8.Thread stoped [10:21:46]OFD Sender: No OFD packet to send [10:21:51]OFD Sender: No OFD packet to send [10:21:56]OFD Sender: No OFD packet to send [10:22:01]OFD Sender: No OFD packet to send [10:22:06]OFD Sender: No OFD packet to send [10:22:11]OFD Sender: No OFD packet to send [10:22:16]OFD Sender: No OFD packet to send [10:22:21]OFD Sender: No OFD packet to send [10:22:26]OFD Sender: No OFD packet to send [10:22:31]OFD Sender: No OFD packet to send [10:22:36]OFD Sender: No OFD packet to send [10:22:41]OFD Sender: No OFD packet to send [10:22:46]OFD Sender: No OFD packet to send [10:22:51]OFD Sender: No OFD packet to send [10:22:56]OFD Sender: No OFD packet to send [10:23:01]OFD Sender: No OFD packet to send [10:23:06]OFD Sender: No OFD packet to send [10:23:11]OFD Sender: No OFD packet to send [10:23:16]OFD Sender: No OFD packet to send [10:23:21]OFD Sender: No OFD packet to send [10:23:26]OFD Sender: No OFD packet to send [10:23:31]OFD Sender: No OFD packet to send [10:23:36]OFD Sender: No OFD packet to send [10:23:41]OFD Sender: No OFD packet to send [10:23:46]accept exits with 9 [10:23:46]New connection [10:23:46]New thread 3066658148 created [10:23:46]Thread 3066801508 joined [10:23:46]Waiting for new connection... [10:23:46] Sock 9.Parse request [10:23:46]Sock 9.Check first char [10:23:46]Sock 9.First char is OK [10:23:46]request: POST /json_proto HTTP/1.0 [10:23:46]Method: POST [10:23:46]URL: /json_proto [10:23:46]Method is POST - this is cgi request [10:23:46]url: /json_proto [10:23:46]query_string will be loaded in cgi processing [10:23:46]execute_cgi json_proto POST (null) [10:23:46]execute_cgi path=json_proto method=POST [10:23:46]POST find Content-Length [10:23:46]Host: 172.17.57.71:8080 [10:23:46]Content-Length: 620 [10:23:46]Content-Type: application/json [10:23:46] [10:23:46]POST finish read [10:23:46]Found Content-Length = 620 [10:23:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127478", "tax_sys" : 0, "items" : [ { "code": "4650063118011", "name": "\u041C\u0430\u0441\u043B\u043E GPN Diesel Extra 10W-40 1\u043B", "price" : 420.00, "quantity" : 1.000, "sum" : 420.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 420.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:46]execute_script... [10:23:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127478", "tax_sys" : 0, "items" : [ { "code": "4650063118011", "name": "\u041C\u0430\u0441\u043B\u043E GPN Diesel Extra 10W-40 1\u043B", "price" : 420.00, "quantity" : 1.000, "sum" : 420.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 420.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:46]POST & json_proto [10:23:46]process_json_proto [10:23:46]json parsed OK: [10:23:46]protocol is kg_v1.0 [10:23:46]action value=close_receipt [10:23:46]process_action close_receipt [10:23:46]cmd_close_receipt [10:23:46]MH_GetDate [10:23:46]Write to MH i2c: F0 00 00 33 47 69 [10:23:46]Write i2c OK [10:23:46]MH_I2C_Read... [10:23:46]Read from MH i2c: F0 [10:23:46]MH_I2C_Read... [10:23:46]Read from MH i2c: F0 09 00 [10:23:46]MH_I2C_Read... [10:23:46]Read from MH i2c: F0 09 00 33 47 00 BA B5 E6 66 33 3A A4 66 A4 [10:23:46]GetLastDocTimeStamp 1726395706 [10:23:46]current date 1726395834 [10:23:46]FM_GetShiftState [10:23:46]SAM_PROTO_GetShiftState [10:23:46]wFMCommunicate request_size=4 [10:23:46]MH_SAM_APDU [10:23:46]CAPDU: 80 13 01 00 [10:23:46]Write to MH i2c: E2 08 00 34 47 80 13 01 00 00 00 00 00 F8 [10:23:46]Write i2c OK [10:23:46]MH_I2C_Read... [10:23:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:46]Read from MH i2c: E2 [10:23:46]MH_I2C_Read... [10:23:46]Read from MH i2c: E2 0E 00 [10:23:46]MH_I2C_Read... [10:23:46]Read from MH i2c: E2 0E 00 34 47 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 7A [10:23:46]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [10:23:46]wFMCommunicate OK [10:23:46]SAM_PROTO_GetShiftState done [10:23:46]FM_GetShiftState done [10:23:46]opened in 1726359809 [10:23:46]opened+sec_in_day 1726446209 [10:23:46]quantity*price = 42000 [10:23:46]sum+1 = 42001 [10:23:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 420.00 НСП 1% : 3.72 НДС 12% : 44.60 Наличными: 420.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 32 15.09.2024 10:23 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92584 ФПД: 130093576910146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T102354&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92584&fm=130093576910146&tin=02508201610067®Number=0000000000091423&sum=42000 0 [10:23:47]StoreToDocumentArchive [10:23:47]shift 507 fd 92584 [10:23:47]save to /storage/0507/doc_00092584 [10:23:47]save last doc name /storage/0507/doc_00092584 to /storage/kkm_last_doc_name [10:23:47]save OK [10:23:47]Clear old archive folders... [10:23:47]ProcessDocumentItem done err = 0, tmpTLVsize=280 [10:23:47]tlvbuf is 01014450 [10:23:47]SAM_PROTO_ClearQueue [10:23:47]wFMCommunicate request_size=4 [10:23:47]MH_SAM_APDU [10:23:47]CAPDU: 80 09 00 00 [10:23:47]Write to MH i2c: E2 08 00 41 47 80 09 00 00 00 00 00 00 FA [10:23:47]Write i2c OK [10:23:47]MH_I2C_Read... [10:23:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:47]Read from MH i2c: E2 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: E2 03 00 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: E2 03 00 41 47 00 90 00 FC [10:23:47]RAPDU: 90 00 [10:23:47]wFMCommunicate OK [10:23:47]SAM_PROTO_ClearQueue done [10:23:47]KKMCreateOFDPacket [10:23:47]OFDProtocolAddRootSTLVToBuf [10:23:47]FM_MakeSignedData [10:23:47]FM_MakeSignedData [10:23:47]SAM_PROTO_SignData [10:23:47]wFMCommunicate request_size=4 [10:23:47]MH_SAM_APDU [10:23:47]CAPDU: 80 0D 01 02 [10:23:47]Write to MH i2c: E2 08 00 42 47 80 0D 01 02 00 00 00 00 02 [10:23:47]Write i2c OK [10:23:47]MH_I2C_Read... [10:23:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:47]Read from MH i2c: E2 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: E2 03 00 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: E2 03 00 42 47 00 90 00 FD [10:23:47]RAPDU: 90 00 [10:23:47]wFMCommunicate OK [10:23:47]wFMCommunicate request_size=255 [10:23:47]MH_SAM_APDU [10:23:47]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 38 30 31 31 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 50 4E 20 44 69 65 73 65 6C 20 45 78 74 72 61 20 31 30 57 2D 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 A4 00 00 00 00 13 04 06 00 10 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 BA B5 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 [10:23:47]Write to MH i2c: E2 02 01 43 47 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 38 30 31 31 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 50 4E 20 44 69 65 73 65 6C 20 45 78 74 72 61 20 31 30 57 2D 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 A4 00 00 00 00 13 04 06 00 10 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 BA B5 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 00 00 CC [10:23:47]Write i2c OK [10:23:47]MH_I2C_Read... [10:23:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:47]Read from MH i2c: E2 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: E2 03 00 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: E2 03 00 43 47 00 90 00 FE [10:23:47]RAPDU: 90 00 [10:23:47]wFMCommunicate OK [10:23:47]wFMCommunicate request_size=39 [10:23:47]MH_SAM_APDU [10:23:47]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A8 69 01 00 35 04 06 00 76 51 C5 70 75 42 [10:23:47]Write to MH i2c: E2 2A 00 44 47 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A8 69 01 00 35 04 06 00 76 51 C5 70 75 42 00 00 89 [10:23:47]Write i2c OK [10:23:47]MH_I2C_Read... [10:23:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:47]Read from MH i2c: E2 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: E2 03 00 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: E2 03 00 44 47 00 90 00 FF [10:23:47]RAPDU: 90 00 [10:23:47]wFMCommunicate OK [10:23:47]wFMCommunicate request_size=4 [10:23:47]MH_SAM_APDU [10:23:47]CAPDU: 80 0D 03 02 [10:23:47]Write to MH i2c: E2 08 00 45 47 80 0D 03 02 00 00 00 00 07 [10:23:47]Write i2c OK [10:23:47]MH_I2C_Read... [10:23:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:47]Read from MH i2c: E2 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: E2 0B 00 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: E2 0B 00 45 47 00 6C 92 3D 64 0F F1 93 D2 90 00 0C [10:23:47]RAPDU: 6C 92 3D 64 0F F1 93 D2 90 00 [10:23:47]wFMCommunicate OK [10:23:47]SAM_PROTO_SignData done [10:23:47]FM_MakeSignedData done [10:23:47]CreateOFDProtocolMessage [10:23:47]wFMCommunicate request_size=4 [10:23:47]MH_SAM_APDU [10:23:47]CAPDU: 80 11 00 00 [10:23:47]Write to MH i2c: E2 08 00 46 47 80 11 00 00 00 00 00 00 07 [10:23:47]Write i2c OK [10:23:47]MH_I2C_Read... [10:23:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:47]Read from MH i2c: E2 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: E2 17 00 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: E2 17 00 46 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 5E [10:23:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:23:47]wFMCommunicate OK [10:23:47]CreateOFDProtocolMessage done [10:23:47]OFDSenderStorePacket 92584 [10:23:47]StoreOFDPacket docnum=92584 [10:23:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2C 01 00 00 5D 88 24 01 EC AB 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 38 30 31 31 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 50 4E 20 44 69 65 73 65 6C 20 45 78 74 72 61 20 31 30 57 2D 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 A4 00 00 00 00 13 04 06 00 10 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 BA B5 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A8 69 01 00 35 04 06 00 76 51 C5 70 75 42 6C 92 3D 64 0F F1 93 D2 [10:23:47]CheckFolder [10:23:47]dirname=/storage/ofd_packets [10:23:47]CheckFolder done [10:23:47]ProducePacketName [10:23:47]name=ofd_packets/00092584 [10:23:47]NVStorageSaveData ofd_packets/00092584 [10:23:47]File name is /storage/ofd_packets/00092584 [10:23:47]Write 330 bytes [10:23:47]NVStorageSaveData done [10:23:47]OFDSenderStorePacket done [10:23:47]KKMCreateOFDPacket done [10:23:47]NVStorageSaveData kkm_last_timestamp [10:23:47]File name is /storage/kkm_last_timestamp [10:23:47]Write 4 bytes [10:23:47]NVStorageSaveData done [10:23:47]ExternCall_PrintAddStr [10:23:47]wPrintStart [10:23:47]Write to MH i2c: 01 00 00 47 47 8E [10:23:47]Write i2c OK [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: 01 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: 01 07 00 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: 01 07 00 47 47 00 00 00 00 00 FF 0F A3 [10:23:47]RasterBufferAndPrint [10:23:47]line Счет N : (3)127478 [10:23:47]line ИНН: 02508201610067 [10:23:47]line Контрольно-Кассовый Чек [10:23:47]line ПРОДАЖА [10:23:47]line Товар: 4650063118011 [10:23:47]line Масло GPN Diesel Extra 10W-40 1л [10:23:47]line 1.000 * 420.00 [10:23:47]line = 420.00 [10:23:47]line НДС 12% НСП 1% [10:23:47]line > о реализуемом товаре [10:23:47]line ИТОГО: 420.00 [10:23:47]line НСП 1% : 3.72 [10:23:47]line НДС 12% : 44.60 [10:23:47]line Наличными: 420.00 [10:23:47]line Безнал.: 0.00 [10:23:47]line Место: АЗС № 5 "Партнер Нефть" [10:23:47]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [10:23:47]line СНО: Общий режим [10:23:47]line Чек 32 15.09.2024 10:23 [10:23:47]line Смена: 507 ФФД: 1.0 [10:23:47]line ЗНМ: 03000000022 [10:23:47]line РНМ: 0000000000091423 [10:23:47]line Версия ККМ: 001 [10:23:47]line ФМ: 0000000000874692 [10:23:47]line ФД: 92584 [10:23:47]line ФПД: 130093576910146 [10:23:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T102354&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92584&fm=130093576910146&tin=02508201610067®Number=0000000000091423&sum=42000 [10:23:48]OFD Sender: Processing packet 92584 [packets to send 63, broken 62] [10:23:48]ProducePacketName [10:23:48]name=ofd_packets/00092584 [10:23:48]OFD Sender: To server: pG, [10:23:48]CommunicateWithHost lk.salyk.kg:30040 [10:23:48]ConnectInit lk.salyk.kg [10:23:48]line 0 [10:23:48]written 0, free lines is 4095 [10:23:48]Connected sock=10 [10:23:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2C 01 00 00 5D 88 24 01 EC AB 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 38 30 31 31 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 50 4E 20 44 69 65 73 65 6C 20 45 78 74 72 61 20 31 30 57 2D 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 A4 00 00 00 00 13 04 06 00 10 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 BA B5 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A8 69 01 00 35 04 06 00 76 51 C5 70 75 42 6C 92 3D 64 0F F1 93 D2 [10:23:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 86 68 47 00 37 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A8 69 01 00 F4 03 04 00 32 5E E6 66 B6 04 01 00 00 10 7A AC 7F 48 61 80 AB [10:23:48]CommunicateWithHost err = 0 [10:23:48]CheckOFDResponse [10:23:48]1017 (14) - 77093643461234 [10:23:48]1041 (16) - 0000000000874692 [10:23:48]1040 (4) - 92584 [10:23:48]1012 (4) - 15.09.2024 04:10 [10:23:48]1206 (1) - 0 [10:23:48]OFD Sender: Remove packet 92584 [10:23:48]ProducePacketName [10:23:48]name=ofd_packets/00092584 [10:23:48]NVStorageDeleteData [10:23:48]Write to MH i2c: 01 00 00 70 47 B7 [10:23:48]Write i2c OK [10:23:48]MH_I2C_Read... [10:23:48]Read from MH i2c: 01 [10:23:48]MH_I2C_Read... [10:23:48]Read from MH i2c: 01 07 00 [10:23:48]MH_I2C_Read... [10:23:48]Read from MH i2c: 01 07 00 70 47 00 00 00 00 00 1A 0D E5 [10:23:48]RasterBufferAndPrint [10:23:48]line [10:23:48]line [10:23:48]line [10:23:48]line [10:23:48]line [10:23:48]written 0, free lines is 3363 [10:23:48]MH_Cut [10:23:48]Write to MH i2c: D1 01 00 77 47 01 90 [10:23:48]Write i2c OK [10:23:48]MH_I2C_Read... [10:23:48]Read from MH i2c: D1 [10:23:48]MH_I2C_Read... [10:23:48]Read from MH i2c: D1 01 00 [10:23:48]MH_I2C_Read... [10:23:48]Read from MH i2c: D1 01 00 77 47 00 8F [10:23:48]Write to MH i2c: 01 00 00 78 47 BF [10:23:48]Write i2c OK [10:23:48]MH_I2C_Read... [10:23:48]OFD Sender: No OFD packet to send [10:23:49]*** Cut start [10:23:49]*** Purtial cut [10:23:49]*** Stage 1: CUTSNS_PIN = 1 [10:23:51]Read from MH i2c: 01 [10:23:51]MH_I2C_Read... [10:23:51]*** Stop cut motor [10:23:51]*** Cut end [10:23:51]Read from MH i2c: 01 07 00 [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: 01 07 00 78 47 00 00 00 00 00 FF 0F D4 [10:23:51]process_action close_receipt done [10:23:51]requested_data is exist [10:23:51]produce_requested_data [10:23:51]requested_item fm.sn is exist - process it [10:23:51]wFMCommunicate request_size=4 [10:23:51]MH_SAM_APDU [10:23:51]CAPDU: 80 11 00 00 [10:23:51]Write to MH i2c: E2 08 00 79 47 80 11 00 00 00 00 00 00 3A [10:23:51]Write i2c OK [10:23:51]MH_I2C_Read... [10:23:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:51]Read from MH i2c: E2 [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: E2 17 00 [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: E2 17 00 79 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 91 [10:23:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:23:51]wFMCommunicate OK [10:23:51]requested_item fd.num is exist - process it [10:23:51]SAM_PROTO_GetFieldsCounters [10:23:51]wFMCommunicate request_size=4 [10:23:51]MH_SAM_APDU [10:23:51]CAPDU: 80 13 00 00 [10:23:51]Write to MH i2c: E2 08 00 7A 47 80 13 00 00 00 00 00 00 3D [10:23:51]Write i2c OK [10:23:51]MH_I2C_Read... [10:23:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:51]Read from MH i2c: E2 [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: E2 62 00 [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: E2 62 00 7A 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A8 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [10:23:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A8 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:23:51]wFMCommunicate OK [10:23:51]SAM_PROTO_GetFieldsCounters done [10:23:51]requested_item shift.num is exist - process it [10:23:51]requested_item shift.opened is exist - process it [10:23:51]req_shift_opened [10:23:51]FM_GetShiftState [10:23:51]SAM_PROTO_GetShiftState [10:23:51]wFMCommunicate request_size=4 [10:23:51]MH_SAM_APDU [10:23:51]CAPDU: 80 13 01 00 [10:23:51]Write to MH i2c: E2 08 00 7B 47 80 13 01 00 00 00 00 00 3F [10:23:51]Write i2c OK [10:23:51]MH_I2C_Read... [10:23:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:51]Read from MH i2c: E2 [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: E2 0E 00 [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: E2 0E 00 7B 47 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 C1 [10:23:51]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [10:23:51]wFMCommunicate OK [10:23:51]SAM_PROTO_GetShiftState done [10:23:51]FM_GetShiftState done [10:23:51]req_shift_opened done [10:23:51]requested_item shift.open_date is exist - process it [10:23:51]req_shift_open_date [10:23:51]req_shift_open_date done [10:23:51]produce_requested_data done [10:23:51]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92584,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [10:23:51]process_action_free close_receipt [10:23:51]json_value_free [10:23:51]json_value_free done [10:23:51]process_json_proto returns [10:23:51]Send response to host [10:23:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92584,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [10:23:51]free response buf [10:23:51]execute_script done [10:23:51]execute_script returns [10:23:51]free content buf [10:23:51]Sock 9.Close socket [10:23:51]Sock 9.Thread stoped [10:23:53]OFD Sender: No OFD packet to send [10:23:58]OFD Sender: No OFD packet to send [10:24:03]OFD Sender: No OFD packet to send [10:24:08]OFD Sender: No OFD packet to send [10:24:13]OFD Sender: No OFD packet to send [10:24:18]OFD Sender: No OFD packet to send [10:24:23]OFD Sender: No OFD packet to send [10:24:28]OFD Sender: No OFD packet to send [10:24:33]OFD Sender: No OFD packet to send [10:24:38]OFD Sender: No OFD packet to send [10:24:43]OFD Sender: No OFD packet to send [10:24:48]OFD Sender: No OFD packet to send [10:24:53]OFD Sender: No OFD packet to send [10:24:58]OFD Sender: No OFD packet to send [10:25:03]OFD Sender: No OFD packet to send [10:25:08]OFD Sender: No OFD packet to send [10:25:13]OFD Sender: No OFD packet to send [10:25:18]OFD Sender: No OFD packet to send [10:25:23]OFD Sender: No OFD packet to send [10:25:29]OFD Sender: No OFD packet to send [10:25:34]OFD Sender: No OFD packet to send [10:25:39]OFD Sender: No OFD packet to send [10:25:44]OFD Sender: No OFD packet to send [10:25:49]OFD Sender: No OFD packet to send [10:25:54]OFD Sender: No OFD packet to send [10:25:59]OFD Sender: No OFD packet to send [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:14]OFD Sender: No OFD packet to send [10:26:19]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:29]OFD Sender: No OFD packet to send [10:26:32]accept exits with 8 [10:26:32]New connection [10:26:32]New thread 3066801508 created [10:26:32]Thread 3066658148 joined [10:26:32]Waiting for new connection... [10:26:32] Sock 8.Parse request [10:26:32]Sock 8.Check first char [10:26:32]Sock 8.First char is OK [10:26:32]request: POST /json_proto HTTP/1.0 [10:26:32]Method: POST [10:26:32]URL: /json_proto [10:26:32]Method is POST - this is cgi request [10:26:32]url: /json_proto [10:26:32]query_string will be loaded in cgi processing [10:26:32]execute_cgi json_proto POST (null) [10:26:32]execute_cgi path=json_proto method=POST [10:26:32]POST find Content-Length [10:26:32]Host: 172.17.57.71:8080 [10:26:32]Content-Length: 1313 [10:26:32]Content-Type: application/json [10:26:32] [10:26:32]POST finish read [10:26:32]Found Content-Length = 1313 [10:26:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127479", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160044", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 256.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:32]execute_script... [10:26:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127479", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160044", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 256.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:32]POST & json_proto [10:26:32]process_json_proto [10:26:32]json parsed OK: [10:26:32]protocol is kg_v1.0 [10:26:32]action value=close_receipt [10:26:32]process_action close_receipt [10:26:32]cmd_close_receipt [10:26:32]MH_GetDate [10:26:32]Write to MH i2c: F0 00 00 7C 47 B2 [10:26:32]Write i2c OK [10:26:32]MH_I2C_Read... [10:26:32]Read from MH i2c: F0 [10:26:32]MH_I2C_Read... [10:26:32]Read from MH i2c: F0 09 00 [10:26:32]MH_I2C_Read... [10:26:32]Read from MH i2c: F0 09 00 7C 47 00 60 B6 E6 66 33 3A A4 66 94 [10:26:32]GetLastDocTimeStamp 1726395834 [10:26:32]current date 1726396000 [10:26:32]FM_GetShiftState [10:26:32]SAM_PROTO_GetShiftState [10:26:32]wFMCommunicate request_size=4 [10:26:32]MH_SAM_APDU [10:26:32]CAPDU: 80 13 01 00 [10:26:32]Write to MH i2c: E2 08 00 7D 47 80 13 01 00 00 00 00 00 41 [10:26:32]Write i2c OK [10:26:32]MH_I2C_Read... [10:26:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:32]Read from MH i2c: E2 [10:26:32]MH_I2C_Read... [10:26:32]Read from MH i2c: E2 0E 00 [10:26:32]MH_I2C_Read... [10:26:32]Read from MH i2c: E2 0E 00 7D 47 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 C3 [10:26:32]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [10:26:32]wFMCommunicate OK [10:26:32]SAM_PROTO_GetShiftState done [10:26:32]FM_GetShiftState done [10:26:32]opened in 1726359809 [10:26:32]opened+sec_in_day 1726446209 [10:26:32]quantity*price = 7700 [10:26:32]sum+1 = 7701 [10:26:32]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160044 Вода Ыссык Ата 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48745000 Сигареты Winston Purple Mix 1.000 * 139.00 = 139.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 256.00 НСП 1% : 2.26 НДС 12% : 27.19 Наличными: 0.00 Безнал.: 256.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 33 15.09.2024 10:26 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92585 ФПД: 7553909113550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T102640&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92585&fm=7553909113550&tin=02508201610067®Number=0000000000091423&sum=25600 0 [10:26:33]StoreToDocumentArchive [10:26:33]shift 507 fd 92585 [10:26:33]save to /storage/0507/doc_00092585 [10:26:33]save last doc name /storage/0507/doc_00092585 to /storage/kkm_last_doc_name [10:26:33]save OK [10:26:33]Clear old archive folders... [10:26:33]ProcessDocumentItem done err = 0, tmpTLVsize=499 [10:26:33]tlvbuf is 00FD84C0 [10:26:33]SAM_PROTO_ClearQueue [10:26:33]wFMCommunicate request_size=4 [10:26:33]MH_SAM_APDU [10:26:33]CAPDU: 80 09 00 00 [10:26:33]Write to MH i2c: E2 08 00 8A 47 80 09 00 00 00 00 00 00 43 [10:26:33]Write i2c OK [10:26:33]MH_I2C_Read... [10:26:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:33]Read from MH i2c: E2 [10:26:33]MH_I2C_Read... [10:26:33]Read from MH i2c: E2 03 00 [10:26:33]MH_I2C_Read... [10:26:33]Read from MH i2c: E2 03 00 8A 47 00 90 00 45 [10:26:33]RAPDU: 90 00 [10:26:33]wFMCommunicate OK [10:26:33]SAM_PROTO_ClearQueue done [10:26:33]KKMCreateOFDPacket [10:26:33]OFDProtocolAddRootSTLVToBuf [10:26:33]FM_MakeSignedData [10:26:33]FM_MakeSignedData [10:26:33]SAM_PROTO_SignData [10:26:33]wFMCommunicate request_size=4 [10:26:33]MH_SAM_APDU [10:26:33]CAPDU: 80 0D 01 02 [10:26:33]Write to MH i2c: E2 08 00 8B 47 80 0D 01 02 00 00 00 00 4B [10:26:33]Write i2c OK [10:26:33]MH_I2C_Read... [10:26:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:33]Read from MH i2c: E2 [10:26:33]MH_I2C_Read... [10:26:33]Read from MH i2c: E2 03 00 [10:26:33]MH_I2C_Read... [10:26:33]Read from MH i2c: E2 03 00 8B 47 00 90 00 46 [10:26:33]RAPDU: 90 00 [10:26:33]wFMCommunicate OK [10:26:33]wFMCommunicate request_size=255 [10:26:33]MH_SAM_APDU [10:26:33]CAPDU: 80 0D 02 02 FA 03 00 F3 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 [10:26:34]Write to MH i2c: E2 02 01 8C 47 80 0D 02 02 FA 00 03 00 F3 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 00 00 39 [10:26:34]OFD Sender: No OFD packet to send [10:26:34]Write i2c OK [10:26:34]MH_I2C_Read... [10:26:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:34]Read from MH i2c: E2 [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: E2 03 00 [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: E2 03 00 8C 47 00 90 00 47 [10:26:34]RAPDU: 90 00 [10:26:34]wFMCommunicate OK [10:26:34]wFMCommunicate request_size=255 [10:26:34]MH_SAM_APDU [10:26:34]CAPDU: 80 0D 02 02 FA 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 64 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 60 B6 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A9 69 01 00 35 04 06 00 06 DE C8 [10:26:34]Write to MH i2c: E2 02 01 8D 47 80 0D 02 02 FA 00 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 64 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 60 B6 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A9 69 01 00 35 04 06 00 06 DE C8 00 00 28 [10:26:34]Write i2c OK [10:26:34]MH_I2C_Read... [10:26:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:34]Read from MH i2c: E2 [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: E2 03 00 [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: E2 03 00 8D 47 00 90 00 48 [10:26:34]RAPDU: 90 00 [10:26:34]wFMCommunicate OK [10:26:34]wFMCommunicate request_size=8 [10:26:34]MH_SAM_APDU [10:26:34]CAPDU: 80 0D 02 02 03 11 C2 CE [10:26:34]Write to MH i2c: E2 0B 00 8E 47 80 0D 02 02 03 00 11 C2 CE 00 00 F6 [10:26:34]Write i2c OK [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: E2 [10:26:34]MH_I2C_Read... [10:26:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:34]Read from MH i2c: E2 03 00 [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: E2 03 00 8E 47 00 90 00 49 [10:26:34]RAPDU: 90 00 [10:26:34]wFMCommunicate OK [10:26:34]wFMCommunicate request_size=4 [10:26:34]MH_SAM_APDU [10:26:34]CAPDU: 80 0D 03 02 [10:26:34]Write to MH i2c: E2 08 00 8F 47 80 0D 03 02 00 00 00 00 51 [10:26:34]Write i2c OK [10:26:34]MH_I2C_Read... [10:26:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:34]Read from MH i2c: E2 [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: E2 0B 00 [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: E2 0B 00 8F 47 00 70 3E A4 84 D2 A8 07 E1 90 00 8A [10:26:34]RAPDU: 70 3E A4 84 D2 A8 07 E1 90 00 [10:26:34]wFMCommunicate OK [10:26:34]SAM_PROTO_SignData done [10:26:34]FM_MakeSignedData done [10:26:34]CreateOFDProtocolMessage [10:26:34]wFMCommunicate request_size=4 [10:26:34]MH_SAM_APDU [10:26:34]CAPDU: 80 11 00 00 [10:26:34]Write to MH i2c: E2 08 00 90 47 80 11 00 00 00 00 00 00 51 [10:26:34]Write i2c OK [10:26:34]MH_I2C_Read... [10:26:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:34]Read from MH i2c: E2 [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: E2 17 00 [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: E2 17 00 90 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A8 [10:26:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:26:34]wFMCommunicate OK [10:26:34]CreateOFDProtocolMessage done [10:26:34]OFDSenderStorePacket 92585 [10:26:34]StoreOFDPacket docnum=92585 [10:26:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 07 02 00 00 A6 40 FF 01 0A D9 5A 03 01 00 03 00 F3 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 64 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 60 B6 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A9 69 01 00 35 04 06 00 06 DE C8 11 C2 CE 70 3E A4 84 D2 A8 07 E1 [10:26:34]CheckFolder [10:26:34]dirname=/storage/ofd_packets [10:26:34]CheckFolder done [10:26:34]ProducePacketName [10:26:34]name=ofd_packets/00092585 [10:26:34]NVStorageSaveData ofd_packets/00092585 [10:26:34]File name is /storage/ofd_packets/00092585 [10:26:34]Write 549 bytes [10:26:34]NVStorageSaveData done [10:26:34]OFDSenderStorePacket done [10:26:34]KKMCreateOFDPacket done [10:26:34]NVStorageSaveData kkm_last_timestamp [10:26:34]File name is /storage/kkm_last_timestamp [10:26:34]Write 4 bytes [10:26:34]NVStorageSaveData done [10:26:34]ExternCall_PrintAddStr [10:26:34]wPrintStart [10:26:34]Write to MH i2c: 01 00 00 91 47 D8 [10:26:34]Write i2c OK [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: 01 [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: 01 07 00 [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: 01 07 00 91 47 00 00 00 00 00 FF 0F ED [10:26:34]RasterBufferAndPrint [10:26:34]line Счет N : (3)127479 [10:26:34]line ИНН: 02508201610067 [10:26:34]line Контрольно-Кассовый Чек [10:26:34]line ПРОДАЖА [10:26:34]line Товар: 4700000480050 [10:26:34]line Напиток Nitro Energy эн green ж/б 0,45л [10:26:34]line 1.000 * 77.00 [10:26:34]line = 77.00 [10:26:34]line НДС 12% НСП 1% [10:26:34]line > о реализуемом товаре [10:26:34]line Товар: 4700000160044 [10:26:34]line Вода Ыссык Ата 0,5л [10:26:34]line 1.000 * 40.00 [10:26:34]line = 40.00 [10:26:34]line НДС 12% НСП 1% [10:26:34]line > о реализуемом товаре [10:26:34]line Товар: 48745000 [10:26:34]line Сигареты Winston Purple Mix [10:26:34]line 1.000 * 139.00 [10:26:34]line = 139.00 [10:26:34]line НДС 12% НСП 1% [10:26:34]line > о реализуемом товаре [10:26:34]line ИТОГО: 256.00 [10:26:34]line НСП 1% : 2.26 [10:26:34]line НДС 12% : 27.19 [10:26:34]line Наличными: 0.00 [10:26:34]line Безнал.: 256.00 [10:26:34]line Место: АЗС № 5 "Партнер Нефть" [10:26:34]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [10:26:34]line СНО: Общий режим [10:26:34]line Чек 33 15.09.2024 10:26 [10:26:34]line Смена: 507 ФФД: 1.0 [10:26:34]line ЗНМ: 03000000022 [10:26:34]line РНМ: 0000000000091423 [10:26:34]line Версия ККМ: 001 [10:26:34]line Платежная система: О! деньги [10:26:34]line ФМ: 0000000000874692 [10:26:34]line ФД: 92585 [10:26:34]line ФПД: 7553909113550 [10:26:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T102640&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92585&fm=7553909113550&tin=02508201610067®Number=0000000000091423&sum=25600 [10:26:35]OFD Sender: Processing packet 92585 [packets to send 63, broken 62] [10:26:35]ProducePacketName [10:26:35]name=ofd_packets/00092585 [10:26:35]OFD Sender: To server: pG, [10:26:35]CommunicateWithHost lk.salyk.kg:30040 [10:26:35]ConnectInit lk.salyk.kg [10:26:35]line 0 [10:26:35]written 0, free lines is 4095 [10:26:35]Connected sock=10 [10:26:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 07 02 00 00 A6 40 FF 01 0A D9 5A 03 01 00 03 00 F3 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 64 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 60 B6 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A9 69 01 00 35 04 06 00 06 DE C8 11 C2 CE 70 3E A4 84 D2 A8 07 E1 [10:26:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 A2 89 47 00 99 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A9 69 01 00 F4 03 04 00 D9 5E E6 66 B6 04 01 00 00 54 A8 42 3F 65 D3 FF 55 [10:26:35]CommunicateWithHost err = 0 [10:26:35]CheckOFDResponse [10:26:35]1017 (14) - 77093643461234 [10:26:35]1041 (16) - 0000000000874692 [10:26:35]1040 (4) - 92585 [10:26:35]1012 (4) - 15.09.2024 04:13 [10:26:35]1206 (1) - 0 [10:26:35]OFD Sender: Remove packet 92585 [10:26:35]ProducePacketName [10:26:35]name=ofd_packets/00092585 [10:26:35]NVStorageDeleteData [10:26:35]Write to MH i2c: 01 00 00 C8 47 0F [10:26:35]Write i2c OK [10:26:35]MH_I2C_Read... [10:26:35]Read from MH i2c: 01 [10:26:35]MH_I2C_Read... [10:26:35]Read from MH i2c: 01 07 00 [10:26:35]MH_I2C_Read... [10:26:35]Read from MH i2c: 01 07 00 C8 47 00 00 00 00 00 60 0C 82 [10:26:35]RasterBufferAndPrint [10:26:35]line [10:26:35]line [10:26:35]line [10:26:35]line [10:26:35]line [10:26:35]written 0, free lines is 3176 [10:26:35]MH_Cut [10:26:35]Write to MH i2c: D1 01 00 CF 47 01 E8 [10:26:35]Write i2c OK [10:26:35]MH_I2C_Read... [10:26:35]Read from MH i2c: D1 [10:26:35]MH_I2C_Read... [10:26:35]Read from MH i2c: D1 01 00 [10:26:35]MH_I2C_Read... [10:26:35]Read from MH i2c: D1 01 00 CF 47 00 E7 [10:26:35]Write to MH i2c: 01 00 00 D0 47 17 [10:26:35]Write i2c OK [10:26:35]MH_I2C_Read... [10:26:35]OFD Sender: No OFD packet to send [10:26:36]*** Cut start [10:26:36]*** Purtial cut [10:26:36]*** Stage 1: CUTSNS_PIN = 1 [10:26:38]Read from MH i2c: 01 [10:26:38]MH_I2C_Read... [10:26:38]*** Stop cut motor [10:26:38]*** Cut end [10:26:38]Read from MH i2c: 01 07 00 [10:26:38]MH_I2C_Read... [10:26:38]Read from MH i2c: 01 07 00 D0 47 00 00 00 00 00 FF 0F 2C [10:26:38]process_action close_receipt done [10:26:38]requested_data is exist [10:26:38]produce_requested_data [10:26:38]requested_item fm.sn is exist - process it [10:26:38]wFMCommunicate request_size=4 [10:26:38]MH_SAM_APDU [10:26:38]CAPDU: 80 11 00 00 [10:26:38]Write to MH i2c: E2 08 00 D1 47 80 11 00 00 00 00 00 00 92 [10:26:38]Write i2c OK [10:26:38]MH_I2C_Read... [10:26:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:38]Read from MH i2c: E2 [10:26:38]MH_I2C_Read... [10:26:38]Read from MH i2c: E2 17 00 [10:26:38]MH_I2C_Read... [10:26:38]Read from MH i2c: E2 17 00 D1 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E9 [10:26:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:26:38]wFMCommunicate OK [10:26:38]requested_item fd.num is exist - process it [10:26:38]SAM_PROTO_GetFieldsCounters [10:26:38]wFMCommunicate request_size=4 [10:26:38]MH_SAM_APDU [10:26:38]CAPDU: 80 13 00 00 [10:26:38]Write to MH i2c: E2 08 00 D2 47 80 13 00 00 00 00 00 00 95 [10:26:38]Write i2c OK [10:26:38]MH_I2C_Read... [10:26:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:38]Read from MH i2c: E2 [10:26:38]MH_I2C_Read... [10:26:38]Read from MH i2c: E2 62 00 [10:26:38]MH_I2C_Read... [10:26:38]Read from MH i2c: E2 62 00 D2 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A9 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [10:26:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A9 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:26:38]wFMCommunicate OK [10:26:38]SAM_PROTO_GetFieldsCounters done [10:26:38]requested_item shift.num is exist - process it [10:26:38]requested_item shift.opened is exist - process it [10:26:38]req_shift_opened [10:26:38]FM_GetShiftState [10:26:38]SAM_PROTO_GetShiftState [10:26:38]wFMCommunicate request_size=4 [10:26:38]MH_SAM_APDU [10:26:38]CAPDU: 80 13 01 00 [10:26:38]Write to MH i2c: E2 08 00 D3 47 80 13 01 00 00 00 00 00 97 [10:26:38]Write i2c OK [10:26:38]MH_I2C_Read... [10:26:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:38]Read from MH i2c: E2 [10:26:38]MH_I2C_Read... [10:26:38]Read from MH i2c: E2 0E 00 [10:26:38]MH_I2C_Read... [10:26:38]Read from MH i2c: E2 0E 00 D3 47 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 19 [10:26:38]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [10:26:38]wFMCommunicate OK [10:26:38]SAM_PROTO_GetShiftState done [10:26:38]FM_GetShiftState done [10:26:38]req_shift_opened done [10:26:38]requested_item shift.open_date is exist - process it [10:26:38]req_shift_open_date [10:26:38]req_shift_open_date done [10:26:38]produce_requested_data done [10:26:38]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92585,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [10:26:38]process_action_free close_receipt [10:26:38]json_value_free [10:26:38]json_value_free done [10:26:38]process_json_proto returns [10:26:38]Send response to host [10:26:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92585,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [10:26:38]free response buf [10:26:38]execute_script done [10:26:38]execute_script returns [10:26:38]free content buf [10:26:38]Sock 8.Close socket [10:26:38]Sock 8.Thread stoped [10:26:41]OFD Sender: No OFD packet to send [10:26:46]OFD Sender: No OFD packet to send [10:26:51]OFD Sender: No OFD packet to send [10:26:56]OFD Sender: No OFD packet to send [10:27:01]OFD Sender: No OFD packet to send [10:27:06]OFD Sender: No OFD packet to send [10:27:11]OFD Sender: No OFD packet to send [10:27:16]OFD Sender: No OFD packet to send [10:27:21]OFD Sender: No OFD packet to send [10:27:26]OFD Sender: No OFD packet to send [10:27:31]OFD Sender: No OFD packet to send [10:27:36]OFD Sender: No OFD packet to send [10:27:41]OFD Sender: No OFD packet to send [10:27:46]OFD Sender: No OFD packet to send [10:27:51]OFD Sender: No OFD packet to send [10:27:56]OFD Sender: No OFD packet to send [10:28:01]OFD Sender: No OFD packet to send [10:28:06]OFD Sender: No OFD packet to send [10:28:11]OFD Sender: No OFD packet to send [10:28:16]OFD Sender: No OFD packet to send [10:28:21]OFD Sender: No OFD packet to send [10:28:26]OFD Sender: No OFD packet to send [10:28:31]OFD Sender: No OFD packet to send [10:28:36]OFD Sender: No OFD packet to send [10:28:41]OFD Sender: No OFD packet to send [10:28:46]OFD Sender: No OFD packet to send [10:28:51]OFD Sender: No OFD packet to send [10:28:56]OFD Sender: No OFD packet to send [10:29:01]OFD Sender: No OFD packet to send [10:29:06]OFD Sender: No OFD packet to send [10:29:11]OFD Sender: No OFD packet to send [10:29:16]OFD Sender: No OFD packet to send [10:29:21]OFD Sender: No OFD packet to send [10:29:26]OFD Sender: No OFD packet to send [10:29:31]OFD Sender: No OFD packet to send [10:29:36]OFD Sender: No OFD packet to send [10:29:41]OFD Sender: No OFD packet to send [10:29:46]OFD Sender: No OFD packet to send [10:29:51]OFD Sender: No OFD packet to send [10:29:56]OFD Sender: No OFD packet to send [10:30:01]OFD Sender: No OFD packet to send [10:30:06]OFD Sender: No OFD packet to send [10:30:11]OFD Sender: No OFD packet to send [10:30:16]OFD Sender: No OFD packet to send [10:30:21]OFD Sender: No OFD packet to send [10:30:26]OFD Sender: No OFD packet to send [10:30:31]OFD Sender: No OFD packet to send [10:30:36]OFD Sender: No OFD packet to send [10:30:41]OFD Sender: No OFD packet to send [10:30:46]OFD Sender: No OFD packet to send [10:30:51]OFD Sender: No OFD packet to send [10:30:56]OFD Sender: No OFD packet to send [10:31:01]OFD Sender: No OFD packet to send [10:31:06]OFD Sender: No OFD packet to send [10:31:11]OFD Sender: No OFD packet to send [10:31:16]OFD Sender: No OFD packet to send [10:31:21]OFD Sender: No OFD packet to send [10:31:26]OFD Sender: No OFD packet to send [10:31:31]OFD Sender: No OFD packet to send [10:31:36]OFD Sender: No OFD packet to send [10:31:41]OFD Sender: No OFD packet to send [10:31:46]OFD Sender: No OFD packet to send [10:31:51]OFD Sender: No OFD packet to send [10:31:56]OFD Sender: No OFD packet to send [10:32:01]OFD Sender: No OFD packet to send [10:32:06]OFD Sender: No OFD packet to send [10:32:11]OFD Sender: No OFD packet to send [10:32:16]OFD Sender: No OFD packet to send [10:32:21]OFD Sender: No OFD packet to send [10:32:26]OFD Sender: No OFD packet to send [10:32:31]OFD Sender: No OFD packet to send [10:32:36]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:51]OFD Sender: No OFD packet to send [10:32:56]OFD Sender: No OFD packet to send [10:33:01]OFD Sender: No OFD packet to send [10:33:06]OFD Sender: No OFD packet to send [10:33:11]OFD Sender: No OFD packet to send [10:33:16]OFD Sender: No OFD packet to send [10:33:21]OFD Sender: No OFD packet to send [10:33:26]OFD Sender: No OFD packet to send [10:33:31]OFD Sender: No OFD packet to send [10:33:36]OFD Sender: No OFD packet to send [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:56]OFD Sender: No OFD packet to send [10:34:01]OFD Sender: No OFD packet to send [10:34:06]OFD Sender: No OFD packet to send [10:34:11]OFD Sender: No OFD packet to send [10:34:16]OFD Sender: No OFD packet to send [10:34:21]OFD Sender: No OFD packet to send [10:34:26]OFD Sender: No OFD packet to send [10:34:31]OFD Sender: No OFD packet to send [10:34:36]OFD Sender: No OFD packet to send [10:34:41]OFD Sender: No OFD packet to send [10:34:46]OFD Sender: No OFD packet to send [10:34:51]OFD Sender: No OFD packet to send [10:34:56]OFD Sender: No OFD packet to send [10:35:01]OFD Sender: No OFD packet to send [10:35:06]OFD Sender: No OFD packet to send [10:35:11]OFD Sender: No OFD packet to send [10:35:16]OFD Sender: No OFD packet to send [10:35:21]OFD Sender: No OFD packet to send [10:35:26]OFD Sender: No OFD packet to send [10:35:31]OFD Sender: No OFD packet to send [10:35:36]OFD Sender: No OFD packet to send [10:35:41]OFD Sender: No OFD packet to send [10:35:46]OFD Sender: No OFD packet to send [10:35:51]OFD Sender: No OFD packet to send [10:35:56]OFD Sender: No OFD packet to send [10:36:01]OFD Sender: No OFD packet to send [10:36:06]OFD Sender: No OFD packet to send [10:36:11]OFD Sender: No OFD packet to send [10:36:16]OFD Sender: No OFD packet to send [10:36:21]OFD Sender: No OFD packet to send [10:36:26]OFD Sender: No OFD packet to send [10:36:31]OFD Sender: No OFD packet to send [10:36:36]OFD Sender: No OFD packet to send [10:36:41]OFD Sender: No OFD packet to send [10:36:46]OFD Sender: No OFD packet to send [10:36:51]OFD Sender: No OFD packet to send [10:36:56]OFD Sender: No OFD packet to send [10:37:01]OFD Sender: No OFD packet to send [10:37:06]OFD Sender: No OFD packet to send [10:37:11]OFD Sender: No OFD packet to send [10:37:16]OFD Sender: No OFD packet to send [10:37:21]OFD Sender: No OFD packet to send [10:37:26]OFD Sender: No OFD packet to send [10:37:31]OFD Sender: No OFD packet to send [10:37:36]OFD Sender: No OFD packet to send [10:37:41]OFD Sender: No OFD packet to send [10:37:46]OFD Sender: No OFD packet to send [10:37:51]OFD Sender: No OFD packet to send [10:37:56]OFD Sender: No OFD packet to send [10:38:01]OFD Sender: No OFD packet to send [10:38:06]OFD Sender: No OFD packet to send [10:38:11]OFD Sender: No OFD packet to send [10:38:16]OFD Sender: No OFD packet to send [10:38:21]OFD Sender: No OFD packet to send [10:38:26]OFD Sender: No OFD packet to send [10:38:31]OFD Sender: No OFD packet to send [10:38:36]OFD Sender: No OFD packet to send [10:38:41]OFD Sender: No OFD packet to send [10:38:46]OFD Sender: No OFD packet to send [10:38:51]OFD Sender: No OFD packet to send [10:38:56]OFD Sender: No OFD packet to send [10:39:01]OFD Sender: No OFD packet to send [10:39:06]OFD Sender: No OFD packet to send [10:39:11]OFD Sender: No OFD packet to send [10:39:16]OFD Sender: No OFD packet to send [10:39:21]OFD Sender: No OFD packet to send [10:39:26]OFD Sender: No OFD packet to send [10:39:31]OFD Sender: No OFD packet to send [10:39:36]OFD Sender: No OFD packet to send [10:39:41]OFD Sender: No OFD packet to send [10:39:46]OFD Sender: No OFD packet to send [10:39:51]OFD Sender: No OFD packet to send [10:39:56]OFD Sender: No OFD packet to send [10:40:01]OFD Sender: No OFD packet to send [10:40:06]OFD Sender: No OFD packet to send [10:40:11]OFD Sender: No OFD packet to send [10:40:16]OFD Sender: No OFD packet to send [10:40:21]OFD Sender: No OFD packet to send [10:40:26]OFD Sender: No OFD packet to send [10:40:31]OFD Sender: No OFD packet to send [10:40:36]OFD Sender: No OFD packet to send [10:40:41]OFD Sender: No OFD packet to send [10:40:46]OFD Sender: No OFD packet to send [10:40:51]OFD Sender: No OFD packet to send [10:40:56]OFD Sender: No OFD packet to send [10:41:01]OFD Sender: No OFD packet to send [10:41:06]OFD Sender: No OFD packet to send [10:41:11]OFD Sender: No OFD packet to send [10:41:16]OFD Sender: No OFD packet to send [10:41:21]OFD Sender: No OFD packet to send [10:41:26]OFD Sender: No OFD packet to send [10:41:31]OFD Sender: No OFD packet to send [10:41:36]OFD Sender: No OFD packet to send [10:41:41]OFD Sender: No OFD packet to send [10:41:46]OFD Sender: No OFD packet to send [10:41:51]OFD Sender: No OFD packet to send [10:41:56]OFD Sender: No OFD packet to send [10:42:01]OFD Sender: No OFD packet to send [10:42:06]OFD Sender: No OFD packet to send [10:42:11]OFD Sender: No OFD packet to send [10:42:16]OFD Sender: No OFD packet to send [10:42:21]OFD Sender: No OFD packet to send [10:42:26]OFD Sender: No OFD packet to send [10:42:31]OFD Sender: No OFD packet to send [10:42:36]OFD Sender: No OFD packet to send [10:42:41]OFD Sender: No OFD packet to send [10:42:46]OFD Sender: No OFD packet to send [10:42:51]OFD Sender: No OFD packet to send [10:42:56]OFD Sender: No OFD packet to send [10:43:01]OFD Sender: No OFD packet to send [10:43:06]OFD Sender: No OFD packet to send [10:43:11]OFD Sender: No OFD packet to send [10:43:16]OFD Sender: No OFD packet to send [10:43:21]OFD Sender: No OFD packet to send [10:43:26]OFD Sender: No OFD packet to send [10:43:31]OFD Sender: No OFD packet to send [10:43:36]OFD Sender: No OFD packet to send [10:43:41]OFD Sender: No OFD packet to send [10:43:46]OFD Sender: No OFD packet to send [10:43:51]OFD Sender: No OFD packet to send [10:43:57]OFD Sender: No OFD packet to send [10:44:02]OFD Sender: No OFD packet to send [10:44:07]OFD Sender: No OFD packet to send [10:44:12]OFD Sender: No OFD packet to send [10:44:17]OFD Sender: No OFD packet to send [10:44:22]OFD Sender: No OFD packet to send [10:44:27]OFD Sender: No OFD packet to send [10:44:32]OFD Sender: No OFD packet to send [10:44:37]OFD Sender: No OFD packet to send [10:44:42]OFD Sender: No OFD packet to send [10:44:47]OFD Sender: No OFD packet to send [10:44:52]OFD Sender: No OFD packet to send [10:44:57]OFD Sender: No OFD packet to send [10:45:02]OFD Sender: No OFD packet to send [10:45:07]OFD Sender: No OFD packet to send [10:45:12]OFD Sender: No OFD packet to send [10:45:17]OFD Sender: No OFD packet to send [10:45:22]OFD Sender: No OFD packet to send [10:45:27]OFD Sender: No OFD packet to send [10:45:32]OFD Sender: No OFD packet to send [10:45:37]OFD Sender: No OFD packet to send [10:45:42]OFD Sender: No OFD packet to send [10:45:47]OFD Sender: No OFD packet to send [10:45:52]OFD Sender: No OFD packet to send [10:45:57]OFD Sender: No OFD packet to send [10:46:02]OFD Sender: No OFD packet to send [10:46:07]OFD Sender: No OFD packet to send [10:46:12]OFD Sender: No OFD packet to send [10:46:17]OFD Sender: No OFD packet to send [10:46:22]OFD Sender: No OFD packet to send [10:46:27]OFD Sender: No OFD packet to send [10:46:32]OFD Sender: No OFD packet to send [10:46:37]OFD Sender: No OFD packet to send [10:46:42]OFD Sender: No OFD packet to send [10:46:47]OFD Sender: No OFD packet to send [10:46:52]OFD Sender: No OFD packet to send [10:46:57]OFD Sender: No OFD packet to send [10:47:02]OFD Sender: No OFD packet to send [10:47:07]OFD Sender: No OFD packet to send [10:47:12]OFD Sender: No OFD packet to send [10:47:17]OFD Sender: No OFD packet to send [10:47:22]OFD Sender: No OFD packet to send [10:47:27]OFD Sender: No OFD packet to send [10:47:32]OFD Sender: No OFD packet to send [10:47:37]OFD Sender: No OFD packet to send [10:47:42]OFD Sender: No OFD packet to send [10:47:47]OFD Sender: No OFD packet to send [10:47:52]OFD Sender: No OFD packet to send [10:47:57]OFD Sender: No OFD packet to send [10:48:02]OFD Sender: No OFD packet to send [10:48:07]OFD Sender: No OFD packet to send [10:48:12]OFD Sender: No OFD packet to send [10:48:17]OFD Sender: No OFD packet to send [10:48:22]OFD Sender: No OFD packet to send [10:48:23]accept exits with 9 [10:48:23]New connection [10:48:23]New thread 3066658148 created [10:48:23]Thread 3066801508 joined [10:48:23]Waiting for new connection... [10:48:23] Sock 9.Parse request [10:48:23]Sock 9.Check first char [10:48:23]Sock 9.First char is OK [10:48:23]request: POST /json_proto HTTP/1.0 [10:48:23]Method: POST [10:48:23]URL: /json_proto [10:48:23]Method is POST - this is cgi request [10:48:23]url: /json_proto [10:48:23]query_string will be loaded in cgi processing [10:48:23]execute_cgi json_proto POST (null) [10:48:23]execute_cgi path=json_proto method=POST [10:48:23]POST find Content-Length [10:48:23]Host: 172.17.57.71:8080 [10:48:23]Content-Length: 893 [10:48:23]Content-Type: application/json [10:48:23] [10:48:23]POST finish read [10:48:23]Found Content-Length = 893 [10:48:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127480", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:23]execute_script... [10:48:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127480", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:23]POST & json_proto [10:48:23]process_json_proto [10:48:23]json parsed OK: [10:48:23]protocol is kg_v1.0 [10:48:23]action value=close_receipt [10:48:23]process_action close_receipt [10:48:23]cmd_close_receipt [10:48:23]MH_GetDate [10:48:23]Write to MH i2c: F0 00 00 D4 47 0A [10:48:23]Write i2c OK [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: F0 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: F0 09 00 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: F0 09 00 D4 47 00 7F BB E6 66 33 3A A4 66 10 [10:48:23]GetLastDocTimeStamp 1726396000 [10:48:23]current date 1726397311 [10:48:23]FM_GetShiftState [10:48:23]SAM_PROTO_GetShiftState [10:48:23]wFMCommunicate request_size=4 [10:48:23]MH_SAM_APDU [10:48:23]CAPDU: 80 13 01 00 [10:48:23]Write to MH i2c: E2 08 00 D5 47 80 13 01 00 00 00 00 00 99 [10:48:23]Write i2c OK [10:48:23]MH_I2C_Read... [10:48:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:23]Read from MH i2c: E2 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 0E 00 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 0E 00 D5 47 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 1B [10:48:23]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [10:48:23]wFMCommunicate OK [10:48:23]SAM_PROTO_GetShiftState done [10:48:23]FM_GetShiftState done [10:48:23]opened in 1726359809 [10:48:23]opened+sec_in_day 1726446209 [10:48:23]quantity*price = 11000 [10:48:23]sum+1 = 11001 [10:48:23]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4011100977952 Шок Батончик Твикс 55г 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 34 15.09.2024 10:48 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92586 ФПД: 99865807408522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T104831&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92586&fm=99865807408522&tin=02508201610067®Number=0000000000091423&sum=17000 0 [10:48:24]StoreToDocumentArchive [10:48:24]shift 507 fd 92586 [10:48:24]save to /storage/0507/doc_00092586 [10:48:24]save last doc name /storage/0507/doc_00092586 to /storage/kkm_last_doc_name [10:48:24]save OK [10:48:24]Clear old archive folders... [10:48:24]ProcessDocumentItem done err = 0, tmpTLVsize=377 [10:48:24]tlvbuf is 010ACA70 [10:48:24]SAM_PROTO_ClearQueue [10:48:24]wFMCommunicate request_size=4 [10:48:24]MH_SAM_APDU [10:48:24]CAPDU: 80 09 00 00 [10:48:24]Write to MH i2c: E2 08 00 E2 47 80 09 00 00 00 00 00 00 9B [10:48:24]Write i2c OK [10:48:24]MH_I2C_Read... [10:48:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:24]Read from MH i2c: E2 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: E2 03 00 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: E2 03 00 E2 47 00 90 00 9D [10:48:24]RAPDU: 90 00 [10:48:24]wFMCommunicate OK [10:48:24]SAM_PROTO_ClearQueue done [10:48:24]KKMCreateOFDPacket [10:48:24]OFDProtocolAddRootSTLVToBuf [10:48:24]FM_MakeSignedData [10:48:24]FM_MakeSignedData [10:48:24]SAM_PROTO_SignData [10:48:24]wFMCommunicate request_size=4 [10:48:24]MH_SAM_APDU [10:48:24]CAPDU: 80 0D 01 02 [10:48:24]Write to MH i2c: E2 08 00 E3 47 80 0D 01 02 00 00 00 00 A3 [10:48:24]Write i2c OK [10:48:24]MH_I2C_Read... [10:48:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:24]Read from MH i2c: E2 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: E2 03 00 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: E2 03 00 E3 47 00 90 00 9E [10:48:24]RAPDU: 90 00 [10:48:24]wFMCommunicate OK [10:48:24]wFMCommunicate request_size=255 [10:48:24]MH_SAM_APDU [10:48:24]CAPDU: 80 0D 02 02 FA 03 00 79 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE [10:48:24]Write to MH i2c: E2 02 01 E4 47 80 0D 02 02 FA 00 03 00 79 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 00 00 12 [10:48:24]Write i2c OK [10:48:24]MH_I2C_Read... [10:48:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:24]Read from MH i2c: E2 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: E2 03 00 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: E2 03 00 E4 47 00 90 00 9F [10:48:24]RAPDU: 90 00 [10:48:24]wFMCommunicate OK [10:48:24]wFMCommunicate request_size=136 [10:48:24]MH_SAM_APDU [10:48:24]CAPDU: 80 0D 02 02 83 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 7F BB E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AA 69 01 00 35 04 06 00 5A D3 D1 F9 CD 8A [10:48:24]Write to MH i2c: E2 8B 00 E5 47 80 0D 02 02 83 00 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 7F BB E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AA 69 01 00 35 04 06 00 5A D3 D1 F9 CD 8A 00 00 AD [10:48:24]Write i2c OK [10:48:24]MH_I2C_Read... [10:48:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:24]Read from MH i2c: E2 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: E2 03 00 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: E2 03 00 E5 47 00 90 00 A0 [10:48:24]RAPDU: 90 00 [10:48:24]wFMCommunicate OK [10:48:24]wFMCommunicate request_size=4 [10:48:24]MH_SAM_APDU [10:48:24]CAPDU: 80 0D 03 02 [10:48:24]Write to MH i2c: E2 08 00 E6 47 80 0D 03 02 00 00 00 00 A8 [10:48:24]Write i2c OK [10:48:24]MH_I2C_Read... [10:48:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:24]Read from MH i2c: E2 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: E2 0B 00 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: E2 0B 00 E6 47 00 BC 7D 88 60 5B E6 C7 AA 90 00 7C [10:48:24]RAPDU: BC 7D 88 60 5B E6 C7 AA 90 00 [10:48:24]wFMCommunicate OK [10:48:24]SAM_PROTO_SignData done [10:48:24]FM_MakeSignedData done [10:48:24]CreateOFDProtocolMessage [10:48:24]wFMCommunicate request_size=4 [10:48:24]MH_SAM_APDU [10:48:24]CAPDU: 80 11 00 00 [10:48:24]Write to MH i2c: E2 08 00 E7 47 80 11 00 00 00 00 00 00 A8 [10:48:24]Write i2c OK [10:48:24]MH_I2C_Read... [10:48:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:25]Read from MH i2c: E2 [10:48:25]MH_I2C_Read... [10:48:25]Read from MH i2c: E2 17 00 [10:48:25]MH_I2C_Read... [10:48:25]Read from MH i2c: E2 17 00 E7 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 FF [10:48:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:48:25]wFMCommunicate OK [10:48:25]CreateOFDProtocolMessage done [10:48:25]OFDSenderStorePacket 92586 [10:48:25]StoreOFDPacket docnum=92586 [10:48:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 8D 01 00 00 56 4E 85 01 77 2D 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 7F BB E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AA 69 01 00 35 04 06 00 5A D3 D1 F9 CD 8A BC 7D 88 60 5B E6 C7 AA [10:48:25]CheckFolder [10:48:25]dirname=/storage/ofd_packets [10:48:25]CheckFolder done [10:48:25]ProducePacketName [10:48:25]name=ofd_packets/00092586 [10:48:25]NVStorageSaveData ofd_packets/00092586 [10:48:25]File name is /storage/ofd_packets/00092586 [10:48:25]Write 427 bytes [10:48:25]NVStorageSaveData done [10:48:25]OFDSenderStorePacket done [10:48:25]KKMCreateOFDPacket done [10:48:25]NVStorageSaveData kkm_last_timestamp [10:48:25]File name is /storage/kkm_last_timestamp [10:48:25]Write 4 bytes [10:48:25]NVStorageSaveData done [10:48:25]ExternCall_PrintAddStr [10:48:25]wPrintStart [10:48:25]Write to MH i2c: 01 00 00 E8 47 2F [10:48:25]Write i2c OK [10:48:25]MH_I2C_Read... [10:48:25]Read from MH i2c: 01 [10:48:25]MH_I2C_Read... [10:48:25]Read from MH i2c: 01 07 00 [10:48:25]MH_I2C_Read... [10:48:25]Read from MH i2c: 01 07 00 E8 47 00 00 00 00 00 FF 0F 44 [10:48:25]RasterBufferAndPrint [10:48:25]line Счет N : (3)127480 [10:48:25]line ИНН: 02508201610067 [10:48:25]line Контрольно-Кассовый Чек [10:48:25]line ПРОДАЖА [10:48:25]line Товар: 4870001570071 [10:48:25]line Напиток Pepsi 1л [10:48:25]line 1.000 * 110.00 [10:48:25]line = 110.00 [10:48:25]line НДС 12% НСП 1% [10:48:25]line > о реализуемом товаре [10:48:25]line Товар: 4011100977952 [10:48:25]line Шок Батончик Твикс 55г [10:48:25]line 1.000 * 60.00 [10:48:25]line = 60.00 [10:48:25]line НДС 12% НСП 1% [10:48:25]line > о реализуемом товаре [10:48:25]line ИТОГО: 170.00 [10:48:25]line НСП 1% : 1.50 [10:48:25]line НДС 12% : 18.05 [10:48:25]line Наличными: 170.00 [10:48:25]line Безнал.: 0.00 [10:48:25]line Место: АЗС № 5 "Партнер Нефть" [10:48:25]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [10:48:25]line СНО: Общий режим [10:48:25]line Чек 34 15.09.2024 10:48 [10:48:25]line Смена: 507 ФФД: 1.0 [10:48:25]line ЗНМ: 03000000022 [10:48:25]line РНМ: 0000000000091423 [10:48:25]line Версия ККМ: 001 [10:48:25]line ФМ: 0000000000874692 [10:48:25]line ФД: 92586 [10:48:25]line ФПД: 99865807408522 [10:48:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T104831&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92586&fm=99865807408522&tin=02508201610067®Number=0000000000091423&sum=17000 [10:48:25]line 0 [10:48:25]OFD Sender: Processing packet 92586 [packets to send 63, broken 62] [10:48:25]ProducePacketName [10:48:25]name=ofd_packets/00092586 [10:48:25]OFD Sender: To server: pG, [10:48:25]CommunicateWithHost lk.salyk.kg:30040 [10:48:25]ConnectInit lk.salyk.kg [10:48:25]written 0, free lines is 4095 [10:48:25]Connected sock=10 [10:48:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 8D 01 00 00 56 4E 85 01 77 2D 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 7F BB E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AA 69 01 00 35 04 06 00 5A D3 D1 F9 CD 8A BC 7D 88 60 5B E6 C7 AA [10:48:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 96 65 47 00 AB AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AA 69 01 00 F4 03 04 00 F7 63 E6 66 B6 04 01 00 00 B8 66 08 E8 07 96 E9 80 [10:48:25]CommunicateWithHost err = 0 [10:48:25]CheckOFDResponse [10:48:25]1017 (14) - 77093643461234 [10:48:25]1041 (16) - 0000000000874692 [10:48:25]1040 (4) - 92586 [10:48:25]1012 (4) - 15.09.2024 04:35 [10:48:25]1206 (1) - 0 [10:48:25]OFD Sender: Remove packet 92586 [10:48:25]ProducePacketName [10:48:25]name=ofd_packets/00092586 [10:48:25]NVStorageDeleteData [10:48:25]Write to MH i2c: 01 00 00 16 48 5E [10:48:25]Write i2c OK [10:48:25]MH_I2C_Read... [10:48:25]Read from MH i2c: 01 [10:48:25]MH_I2C_Read... [10:48:25]Read from MH i2c: 01 07 00 [10:48:25]MH_I2C_Read... [10:48:25]Read from MH i2c: 01 07 00 16 48 00 00 00 00 00 EA 0C 5B [10:48:25]RasterBufferAndPrint [10:48:25]line [10:48:25]line [10:48:25]line [10:48:25]line [10:48:25]line [10:48:25]written 0, free lines is 3315 [10:48:25]MH_Cut [10:48:25]Write to MH i2c: D1 01 00 1D 48 01 37 [10:48:25]Write i2c OK [10:48:25]MH_I2C_Read... [10:48:25]Read from MH i2c: D1 [10:48:25]MH_I2C_Read... [10:48:25]Read from MH i2c: D1 01 00 [10:48:25]MH_I2C_Read... [10:48:25]Read from MH i2c: D1 01 00 1D 48 00 36 [10:48:25]Write to MH i2c: 01 00 00 1E 48 66 [10:48:25]Write i2c OK [10:48:25]MH_I2C_Read... [10:48:26]OFD Sender: No OFD packet to send [10:48:26]*** Cut start [10:48:26]*** Purtial cut [10:48:26]*** Stage 1: CUTSNS_PIN = 1 [10:48:28]Read from MH i2c: 01 [10:48:28]MH_I2C_Read... [10:48:28]*** Stop cut motor [10:48:28]*** Cut end [10:48:28]Read from MH i2c: 01 07 00 [10:48:28]MH_I2C_Read... [10:48:28]Read from MH i2c: 01 07 00 1E 48 00 00 00 00 00 FF 0F 7B [10:48:28]process_action close_receipt done [10:48:28]requested_data is exist [10:48:28]produce_requested_data [10:48:28]requested_item fm.sn is exist - process it [10:48:28]wFMCommunicate request_size=4 [10:48:28]MH_SAM_APDU [10:48:28]CAPDU: 80 11 00 00 [10:48:28]Write to MH i2c: E2 08 00 1F 48 80 11 00 00 00 00 00 00 E1 [10:48:28]Write i2c OK [10:48:28]MH_I2C_Read... [10:48:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:28]Read from MH i2c: E2 [10:48:28]MH_I2C_Read... [10:48:28]Read from MH i2c: E2 17 00 [10:48:28]MH_I2C_Read... [10:48:28]Read from MH i2c: E2 17 00 1F 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 38 [10:48:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:48:28]wFMCommunicate OK [10:48:28]requested_item fd.num is exist - process it [10:48:28]SAM_PROTO_GetFieldsCounters [10:48:28]wFMCommunicate request_size=4 [10:48:28]MH_SAM_APDU [10:48:28]CAPDU: 80 13 00 00 [10:48:28]Write to MH i2c: E2 08 00 20 48 80 13 00 00 00 00 00 00 E4 [10:48:28]Write i2c OK [10:48:28]MH_I2C_Read... [10:48:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:28]Read from MH i2c: E2 [10:48:28]MH_I2C_Read... [10:48:28]Read from MH i2c: E2 62 00 [10:48:28]MH_I2C_Read... [10:48:28]Read from MH i2c: E2 62 00 20 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 AA 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [10:48:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 AA 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:48:28]wFMCommunicate OK [10:48:28]SAM_PROTO_GetFieldsCounters done [10:48:28]requested_item shift.num is exist - process it [10:48:28]requested_item shift.opened is exist - process it [10:48:28]req_shift_opened [10:48:28]FM_GetShiftState [10:48:28]SAM_PROTO_GetShiftState [10:48:28]wFMCommunicate request_size=4 [10:48:28]MH_SAM_APDU [10:48:28]CAPDU: 80 13 01 00 [10:48:28]Write to MH i2c: E2 08 00 21 48 80 13 01 00 00 00 00 00 E6 [10:48:28]Write i2c OK [10:48:28]MH_I2C_Read... [10:48:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:28]Read from MH i2c: E2 [10:48:28]MH_I2C_Read... [10:48:28]Read from MH i2c: E2 0E 00 [10:48:28]MH_I2C_Read... [10:48:28]Read from MH i2c: E2 0E 00 21 48 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 68 [10:48:28]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [10:48:28]wFMCommunicate OK [10:48:28]SAM_PROTO_GetShiftState done [10:48:28]FM_GetShiftState done [10:48:28]req_shift_opened done [10:48:28]requested_item shift.open_date is exist - process it [10:48:28]req_shift_open_date [10:48:28]req_shift_open_date done [10:48:28]produce_requested_data done [10:48:28]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92586,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [10:48:28]process_action_free close_receipt [10:48:28]json_value_free [10:48:28]json_value_free done [10:48:28]process_json_proto returns [10:48:28]Send response to host [10:48:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92586,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [10:48:28]free response buf [10:48:28]execute_script done [10:48:28]execute_script returns [10:48:28]free content buf [10:48:28]Sock 9.Close socket [10:48:28]Sock 9.Thread stoped [10:48:31]OFD Sender: No OFD packet to send [10:48:36]OFD Sender: No OFD packet to send [10:48:41]OFD Sender: No OFD packet to send [10:48:46]OFD Sender: No OFD packet to send [10:48:51]OFD Sender: No OFD packet to send [10:48:56]OFD Sender: No OFD packet to send [10:49:01]OFD Sender: No OFD packet to send [10:49:06]OFD Sender: No OFD packet to send [10:49:11]OFD Sender: No OFD packet to send [10:49:16]OFD Sender: No OFD packet to send [10:49:21]OFD Sender: No OFD packet to send [10:49:26]OFD Sender: No OFD packet to send [10:49:31]OFD Sender: No OFD packet to send [10:49:36]OFD Sender: No OFD packet to send [10:49:41]OFD Sender: No OFD packet to send [10:49:46]OFD Sender: No OFD packet to send [10:49:51]OFD Sender: No OFD packet to send [10:49:56]OFD Sender: No OFD packet to send [10:50:01]OFD Sender: No OFD packet to send [10:50:06]OFD Sender: No OFD packet to send [10:50:11]OFD Sender: No OFD packet to send [10:50:16]OFD Sender: No OFD packet to send [10:50:16]accept exits with 8 [10:50:16]New connection [10:50:16]New thread 3066801508 created [10:50:16]Thread 3066658148 joined [10:50:16]Waiting for new connection... [10:50:16] Sock 8.Parse request [10:50:16]Sock 8.Check first char [10:50:16]Sock 8.First char is OK [10:50:16]request: POST /json_proto HTTP/1.0 [10:50:16]Method: POST [10:50:16]URL: /json_proto [10:50:16]Method is POST - this is cgi request [10:50:16]url: /json_proto [10:50:16]query_string will be loaded in cgi processing [10:50:16]execute_cgi json_proto POST (null) [10:50:16]execute_cgi path=json_proto method=POST [10:50:16]POST find Content-Length [10:50:16]Host: 172.17.57.71:8080 [10:50:16]Content-Length: 623 [10:50:16]Content-Type: application/json [10:50:16] [10:50:16]POST finish read [10:50:16]Found Content-Length = 623 [10:50:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127481", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:16]execute_script... [10:50:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127481", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:16]POST & json_proto [10:50:16]process_json_proto [10:50:16]json parsed OK: [10:50:16]protocol is kg_v1.0 [10:50:16]action value=close_receipt [10:50:16]process_action close_receipt [10:50:16]cmd_close_receipt [10:50:16]MH_GetDate [10:50:16]Write to MH i2c: F0 00 00 22 48 59 [10:50:16]Write i2c OK [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: F0 [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: F0 09 00 [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: F0 09 00 22 48 00 F1 BB E6 66 33 3A A4 66 D1 [10:50:16]GetLastDocTimeStamp 1726397311 [10:50:16]current date 1726397425 [10:50:16]FM_GetShiftState [10:50:16]SAM_PROTO_GetShiftState [10:50:16]wFMCommunicate request_size=4 [10:50:16]MH_SAM_APDU [10:50:16]CAPDU: 80 13 01 00 [10:50:16]Write to MH i2c: E2 08 00 23 48 80 13 01 00 00 00 00 00 E8 [10:50:16]Write i2c OK [10:50:16]MH_I2C_Read... [10:50:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:17]Read from MH i2c: E2 [10:50:17]MH_I2C_Read... [10:50:17]Read from MH i2c: E2 0E 00 [10:50:17]MH_I2C_Read... [10:50:17]Read from MH i2c: E2 0E 00 23 48 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 6A [10:50:17]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [10:50:17]wFMCommunicate OK [10:50:17]SAM_PROTO_GetShiftState done [10:50:17]FM_GetShiftState done [10:50:17]opened in 1726359809 [10:50:17]opened+sec_in_day 1726446209 [10:50:17]quantity*price = 28800 [10:50:17]sum+1 = 28801 [10:50:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 288.00 НСП 1% : 2.55 НДС 12% : 30.58 Наличными: 288.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 35 15.09.2024 10:50 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92587 ФПД: 87007790644661 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T105025&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92587&fm=87007790644661&tin=02508201610067®Number=0000000000091423&sum=28800 0 [10:50:18]StoreToDocumentArchive [10:50:18]shift 507 fd 92587 [10:50:18]save to /storage/0507/doc_00092587 [10:50:18]save last doc name /storage/0507/doc_00092587 to /storage/kkm_last_doc_name [10:50:18]save OK [10:50:18]Clear old archive folders... [10:50:18]ProcessDocumentItem done err = 0, tmpTLVsize=275 [10:50:18]tlvbuf is 0108DCB0 [10:50:18]SAM_PROTO_ClearQueue [10:50:18]wFMCommunicate request_size=4 [10:50:18]MH_SAM_APDU [10:50:18]CAPDU: 80 09 00 00 [10:50:18]Write to MH i2c: E2 08 00 30 48 80 09 00 00 00 00 00 00 EA [10:50:18]Write i2c OK [10:50:18]MH_I2C_Read... [10:50:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:18]Read from MH i2c: E2 [10:50:18]MH_I2C_Read... [10:50:18]Read from MH i2c: E2 03 00 [10:50:18]MH_I2C_Read... [10:50:18]Read from MH i2c: E2 03 00 30 48 00 90 00 EC [10:50:18]RAPDU: 90 00 [10:50:18]wFMCommunicate OK [10:50:18]SAM_PROTO_ClearQueue done [10:50:18]KKMCreateOFDPacket [10:50:18]OFDProtocolAddRootSTLVToBuf [10:50:18]FM_MakeSignedData [10:50:18]FM_MakeSignedData [10:50:18]SAM_PROTO_SignData [10:50:18]wFMCommunicate request_size=4 [10:50:18]MH_SAM_APDU [10:50:18]CAPDU: 80 0D 01 02 [10:50:18]Write to MH i2c: E2 08 00 31 48 80 0D 01 02 00 00 00 00 F2 [10:50:18]Write i2c OK [10:50:18]MH_I2C_Read... [10:50:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:18]Read from MH i2c: E2 [10:50:18]MH_I2C_Read... [10:50:18]Read from MH i2c: E2 03 00 [10:50:18]MH_I2C_Read... [10:50:18]Read from MH i2c: E2 03 00 31 48 00 90 00 ED [10:50:18]RAPDU: 90 00 [10:50:18]wFMCommunicate OK [10:50:18]wFMCommunicate request_size=255 [10:50:18]MH_SAM_APDU [10:50:18]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 F1 BB E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 [10:50:18]Write to MH i2c: E2 02 01 32 48 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 F1 BB E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 00 00 DB [10:50:18]Write i2c OK [10:50:18]MH_I2C_Read... [10:50:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:18]Read from MH i2c: E2 [10:50:18]MH_I2C_Read... [10:50:18]Read from MH i2c: E2 03 00 [10:50:18]MH_I2C_Read... [10:50:18]Read from MH i2c: E2 03 00 32 48 00 90 00 EE [10:50:18]RAPDU: 90 00 [10:50:18]wFMCommunicate OK [10:50:18]wFMCommunicate request_size=34 [10:50:18]MH_SAM_APDU [10:50:18]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AB 69 01 00 35 04 06 00 4F 22 14 74 3D B5 [10:50:18]Write to MH i2c: E2 25 00 33 48 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AB 69 01 00 35 04 06 00 4F 22 14 74 3D B5 00 00 BA [10:50:18]Write i2c OK [10:50:18]MH_I2C_Read... [10:50:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:18]Read from MH i2c: E2 [10:50:18]MH_I2C_Read... [10:50:18]Read from MH i2c: E2 03 00 [10:50:18]MH_I2C_Read... [10:50:18]Read from MH i2c: E2 03 00 33 48 00 90 00 EF [10:50:18]RAPDU: 90 00 [10:50:18]wFMCommunicate OK [10:50:18]wFMCommunicate request_size=4 [10:50:18]MH_SAM_APDU [10:50:18]CAPDU: 80 0D 03 02 [10:50:18]Write to MH i2c: E2 08 00 34 48 80 0D 03 02 00 00 00 00 F7 [10:50:18]Write i2c OK [10:50:18]MH_I2C_Read... [10:50:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:18]Read from MH i2c: E2 [10:50:18]MH_I2C_Read... [10:50:18]Read from MH i2c: E2 0B 00 [10:50:18]MH_I2C_Read... [10:50:18]Read from MH i2c: E2 0B 00 34 48 00 38 DD 54 F5 15 54 12 EB 90 00 BC [10:50:18]RAPDU: 38 DD 54 F5 15 54 12 EB 90 00 [10:50:18]wFMCommunicate OK [10:50:18]SAM_PROTO_SignData done [10:50:18]FM_MakeSignedData done [10:50:18]CreateOFDProtocolMessage [10:50:18]wFMCommunicate request_size=4 [10:50:18]MH_SAM_APDU [10:50:18]CAPDU: 80 11 00 00 [10:50:18]Write to MH i2c: E2 08 00 35 48 80 11 00 00 00 00 00 00 F7 [10:50:18]Write i2c OK [10:50:18]MH_I2C_Read... [10:50:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:18]Read from MH i2c: E2 [10:50:18]MH_I2C_Read... [10:50:18]Read from MH i2c: E2 17 00 [10:50:18]MH_I2C_Read... [10:50:18]Read from MH i2c: E2 17 00 35 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 4E [10:50:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:50:18]wFMCommunicate OK [10:50:18]CreateOFDProtocolMessage done [10:50:18]OFDSenderStorePacket 92587 [10:50:18]StoreOFDPacket docnum=92587 [10:50:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 0E CD 1F 01 74 9E 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 F1 BB E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AB 69 01 00 35 04 06 00 4F 22 14 74 3D B5 38 DD 54 F5 15 54 12 EB [10:50:18]CheckFolder [10:50:18]dirname=/storage/ofd_packets [10:50:18]CheckFolder done [10:50:18]ProducePacketName [10:50:18]name=ofd_packets/00092587 [10:50:18]NVStorageSaveData ofd_packets/00092587 [10:50:18]File name is /storage/ofd_packets/00092587 [10:50:18]Write 325 bytes [10:50:18]NVStorageSaveData done [10:50:18]OFDSenderStorePacket done [10:50:18]KKMCreateOFDPacket done [10:50:18]NVStorageSaveData kkm_last_timestamp [10:50:18]File name is /storage/kkm_last_timestamp [10:50:18]Write 4 bytes [10:50:18]NVStorageSaveData done [10:50:18]ExternCall_PrintAddStr [10:50:18]wPrintStart [10:50:18]Write to MH i2c: 01 00 00 36 48 7E [10:50:18]Write i2c OK [10:50:18]MH_I2C_Read... [10:50:18]Read from MH i2c: 01 [10:50:18]MH_I2C_Read... [10:50:18]Read from MH i2c: 01 07 00 [10:50:18]MH_I2C_Read... [10:50:18]Read from MH i2c: 01 07 00 36 48 00 00 00 00 00 FF 0F 93 [10:50:18]RasterBufferAndPrint [10:50:18]line Счет N : (3)127481 [10:50:18]line ИНН: 02508201610067 [10:50:18]line Контрольно-Кассовый Чек [10:50:18]line ПРОДАЖА [10:50:18]line Товар: 48743587 [10:50:18]line Сигареты Winston XStyle Silver [10:50:18]line 2.000 * 144.00 [10:50:18]line = 288.00 [10:50:18]line НДС 12% НСП 1% [10:50:18]line > о реализуемом товаре [10:50:18]line ИТОГО: 288.00 [10:50:18]line НСП 1% : 2.55 [10:50:18]line НДС 12% : 30.58 [10:50:18]line Наличными: 288.00 [10:50:18]line Безнал.: 0.00 [10:50:18]line Место: АЗС № 5 "Партнер Нефть" [10:50:18]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [10:50:18]line СНО: Общий режим [10:50:18]line Чек 35 15.09.2024 10:50 [10:50:18]line Смена: 507 ФФД: 1.0 [10:50:18]line ЗНМ: 03000000022 [10:50:18]line РНМ: 0000000000091423 [10:50:18]line Версия ККМ: 001 [10:50:18]line ФМ: 0000000000874692 [10:50:18]line ФД: 92587 [10:50:18]line ФПД: 87007790644661 [10:50:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T105025&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92587&fm=87007790644661&tin=02508201610067®Number=0000000000091423&sum=28800 [10:50:19]line 0 [10:50:19]OFD Sender: Processing packet 92587 [packets to send 63, broken 62] [10:50:19]ProducePacketName [10:50:19]name=ofd_packets/00092587 [10:50:19]OFD Sender: To server: pG, [10:50:19]CommunicateWithHost lk.salyk.kg:30040 [10:50:19]ConnectInit lk.salyk.kg [10:50:19]written 0, free lines is 4095 [10:50:19]Connected sock=10 [10:50:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 0E CD 1F 01 74 9E 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 F1 BB E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AB 69 01 00 35 04 06 00 4F 22 14 74 3D B5 38 DD 54 F5 15 54 12 EB [10:50:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 77 0F 47 00 12 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AB 69 01 00 F4 03 04 00 69 64 E6 66 B6 04 01 00 00 12 C4 65 2E 31 75 C7 A2 [10:50:19]CommunicateWithHost err = 0 [10:50:19]CheckOFDResponse [10:50:19]1017 (14) - 77093643461234 [10:50:19]1041 (16) - 0000000000874692 [10:50:19]1040 (4) - 92587 [10:50:19]1012 (4) - 15.09.2024 04:36 [10:50:19]1206 (1) - 0 [10:50:19]OFD Sender: Remove packet 92587 [10:50:19]ProducePacketName [10:50:19]name=ofd_packets/00092587 [10:50:19]NVStorageDeleteData [10:50:19]Write to MH i2c: 01 00 00 5F 48 A7 [10:50:19]Write i2c OK [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: 01 [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: 01 07 00 [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: 01 07 00 5F 48 00 00 00 00 00 00 0D BB [10:50:19]RasterBufferAndPrint [10:50:19]line [10:50:19]line [10:50:19]line [10:50:19]line [10:50:19]line [10:50:19]written 0, free lines is 3334 [10:50:19]MH_Cut [10:50:19]Write to MH i2c: D1 01 00 66 48 01 80 [10:50:19]Write i2c OK [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: D1 [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: D1 01 00 [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: D1 01 00 66 48 00 7F [10:50:19]Write to MH i2c: 01 00 00 67 48 AF [10:50:19]Write i2c OK [10:50:19]MH_I2C_Read... [10:50:19]OFD Sender: No OFD packet to send [10:50:20]*** Cut start [10:50:20]*** Purtial cut [10:50:20]*** Stage 1: CUTSNS_PIN = 1 [10:50:22]Read from MH i2c: 01 [10:50:22]MH_I2C_Read... [10:50:22]*** Stop cut motor [10:50:22]*** Cut end [10:50:22]Read from MH i2c: 01 07 00 [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: 01 07 00 67 48 00 00 00 00 00 FF 0F C4 [10:50:22]process_action close_receipt done [10:50:22]requested_data is exist [10:50:22]produce_requested_data [10:50:22]requested_item fm.sn is exist - process it [10:50:22]wFMCommunicate request_size=4 [10:50:22]MH_SAM_APDU [10:50:22]CAPDU: 80 11 00 00 [10:50:22]Write to MH i2c: E2 08 00 68 48 80 11 00 00 00 00 00 00 2A [10:50:22]Write i2c OK [10:50:22]MH_I2C_Read... [10:50:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:22]Read from MH i2c: E2 [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: E2 17 00 [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: E2 17 00 68 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 81 [10:50:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:50:22]wFMCommunicate OK [10:50:22]requested_item fd.num is exist - process it [10:50:22]SAM_PROTO_GetFieldsCounters [10:50:22]wFMCommunicate request_size=4 [10:50:22]MH_SAM_APDU [10:50:22]CAPDU: 80 13 00 00 [10:50:22]Write to MH i2c: E2 08 00 69 48 80 13 00 00 00 00 00 00 2D [10:50:22]Write i2c OK [10:50:22]MH_I2C_Read... [10:50:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:22]Read from MH i2c: E2 [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: E2 62 00 [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: E2 62 00 69 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 AB 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [10:50:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 AB 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:50:22]wFMCommunicate OK [10:50:22]SAM_PROTO_GetFieldsCounters done [10:50:22]requested_item shift.num is exist - process it [10:50:22]requested_item shift.opened is exist - process it [10:50:22]req_shift_opened [10:50:22]FM_GetShiftState [10:50:22]SAM_PROTO_GetShiftState [10:50:22]wFMCommunicate request_size=4 [10:50:22]MH_SAM_APDU [10:50:22]CAPDU: 80 13 01 00 [10:50:22]Write to MH i2c: E2 08 00 6A 48 80 13 01 00 00 00 00 00 2F [10:50:22]Write i2c OK [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: E2 [10:50:22]MH_I2C_Read... [10:50:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:22]Read from MH i2c: E2 0E 00 [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: E2 0E 00 6A 48 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 B1 [10:50:22]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [10:50:22]wFMCommunicate OK [10:50:22]SAM_PROTO_GetShiftState done [10:50:22]FM_GetShiftState done [10:50:22]req_shift_opened done [10:50:22]requested_item shift.open_date is exist - process it [10:50:22]req_shift_open_date [10:50:22]req_shift_open_date done [10:50:22]produce_requested_data done [10:50:22]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92587,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [10:50:22]process_action_free close_receipt [10:50:22]json_value_free [10:50:22]json_value_free done [10:50:22]process_json_proto returns [10:50:22]Send response to host [10:50:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92587,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [10:50:22]free response buf [10:50:22]execute_script done [10:50:22]execute_script returns [10:50:22]free content buf [10:50:22]Sock 8.Close socket [10:50:22]Sock 8.Thread stoped [10:50:24]OFD Sender: No OFD packet to send [10:50:29]OFD Sender: No OFD packet to send [10:50:34]OFD Sender: No OFD packet to send [10:50:39]OFD Sender: No OFD packet to send [10:50:44]OFD Sender: No OFD packet to send [10:50:49]OFD Sender: No OFD packet to send [10:50:54]OFD Sender: No OFD packet to send [10:50:59]OFD Sender: No OFD packet to send [10:51:04]OFD Sender: No OFD packet to send [10:51:09]OFD Sender: No OFD packet to send [10:51:14]OFD Sender: No OFD packet to send [10:51:16]accept exits with 9 [10:51:16]New connection [10:51:16]New thread 3066658148 created [10:51:16]Thread 3066801508 joined [10:51:16]Waiting for new connection... [10:51:16] Sock 9.Parse request [10:51:16]Sock 9.Check first char [10:51:16]Sock 9.First char is OK [10:51:16]request: POST /json_proto HTTP/1.0 [10:51:16]Method: POST [10:51:16]URL: /json_proto [10:51:16]Method is POST - this is cgi request [10:51:16]url: /json_proto [10:51:16]query_string will be loaded in cgi processing [10:51:16]execute_cgi json_proto POST (null) [10:51:16]execute_cgi path=json_proto method=POST [10:51:16]POST find Content-Length [10:51:16]Host: 172.17.57.71:8080 [10:51:16]Content-Length: 1438 [10:51:16]Content-Type: application/json [10:51:16] [10:51:16]POST finish read [10:51:16]Found Content-Length = 1438 [10:51:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127482", "tax_sys" : 0, "items" : [ { "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8710732217097", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 311.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:16]execute_script... [10:51:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127482", "tax_sys" : 0, "items" : [ { "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8710732217097", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 311.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:16]POST & json_proto [10:51:16]process_json_proto [10:51:16]json parsed OK: [10:51:16]protocol is kg_v1.0 [10:51:16]action value=close_receipt [10:51:16]process_action close_receipt [10:51:16]cmd_close_receipt [10:51:16]MH_GetDate [10:51:16]Write to MH i2c: F0 00 00 6B 48 A2 [10:51:16]Write i2c OK [10:51:16]MH_I2C_Read... [10:51:16]Read from MH i2c: F0 [10:51:16]MH_I2C_Read... [10:51:16]Read from MH i2c: F0 09 00 [10:51:16]MH_I2C_Read... [10:51:16]Read from MH i2c: F0 09 00 6B 48 00 2C BC E6 66 33 3A A4 66 56 [10:51:16]GetLastDocTimeStamp 1726397425 [10:51:16]current date 1726397484 [10:51:16]FM_GetShiftState [10:51:16]SAM_PROTO_GetShiftState [10:51:16]wFMCommunicate request_size=4 [10:51:16]MH_SAM_APDU [10:51:16]CAPDU: 80 13 01 00 [10:51:16]Write to MH i2c: E2 08 00 6C 48 80 13 01 00 00 00 00 00 31 [10:51:16]Write i2c OK [10:51:16]MH_I2C_Read... [10:51:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:16]Read from MH i2c: E2 [10:51:16]MH_I2C_Read... [10:51:16]Read from MH i2c: E2 0E 00 [10:51:16]MH_I2C_Read... [10:51:16]Read from MH i2c: E2 0E 00 6C 48 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 B3 [10:51:16]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [10:51:16]wFMCommunicate OK [10:51:16]SAM_PROTO_GetShiftState done [10:51:16]FM_GetShiftState done [10:51:16]opened in 1726359809 [10:51:16]opened+sec_in_day 1726446209 [10:51:16]quantity*price = 4000 [10:51:16]sum+1 = 4001 [10:51:16]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4011100977952 Шок Батончик Твикс 55г 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 8710732217097 Зажигалка Cricket ПН пьезо 1.000 * 67.00 = 67.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 311.00 НСП 1% : 2.74 НДС 12% : 33.02 Наличными: 311.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 36 15.09.2024 10:51 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92588 ФПД: 50395751295836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T105125&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92588&fm=50395751295836&tin=02508201610067®Number=0000000000091423&sum=31100 0 [10:51:18]StoreToDocumentArchive [10:51:18]shift 507 fd 92588 [10:51:18]save to /storage/0507/doc_00092588 [10:51:18]save last doc name /storage/0507/doc_00092588 to /storage/kkm_last_doc_name [10:51:18]save OK [10:51:18]Clear old archive folders... [10:51:18]ProcessDocumentItem done err = 0, tmpTLVsize=602 [10:51:18]tlvbuf is 01037F80 [10:51:18]SAM_PROTO_ClearQueue [10:51:18]wFMCommunicate request_size=4 [10:51:18]MH_SAM_APDU [10:51:18]CAPDU: 80 09 00 00 [10:51:18]Write to MH i2c: E2 08 00 79 48 80 09 00 00 00 00 00 00 33 [10:51:18]Write i2c OK [10:51:18]MH_I2C_Read... [10:51:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:51:18]Read from MH i2c: E2 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 03 00 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 03 00 79 48 00 90 00 35 [10:51:18]RAPDU: 90 00 [10:51:18]wFMCommunicate OK [10:51:18]SAM_PROTO_ClearQueue done [10:51:18]KKMCreateOFDPacket [10:51:18]OFDProtocolAddRootSTLVToBuf [10:51:18]FM_MakeSignedData [10:51:18]FM_MakeSignedData [10:51:18]SAM_PROTO_SignData [10:51:18]wFMCommunicate request_size=4 [10:51:18]MH_SAM_APDU [10:51:18]CAPDU: 80 0D 01 02 [10:51:18]Write to MH i2c: E2 08 00 7A 48 80 0D 01 02 00 00 00 00 3B [10:51:18]Write i2c OK [10:51:18]MH_I2C_Read... [10:51:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:51:18]Read from MH i2c: E2 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 03 00 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 03 00 7A 48 00 90 00 36 [10:51:18]RAPDU: 90 00 [10:51:18]wFMCommunicate OK [10:51:18]wFMCommunicate request_size=255 [10:51:18]MH_SAM_APDU [10:51:18]CAPDU: 80 0D 02 02 FA 03 00 5A 02 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 [10:51:18]Write to MH i2c: E2 02 01 7B 48 80 0D 02 02 FA 00 03 00 5A 02 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 00 00 E8 [10:51:18]Write i2c OK [10:51:18]MH_I2C_Read... [10:51:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:18]Read from MH i2c: E2 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 03 00 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 03 00 7B 48 00 90 00 37 [10:51:18]RAPDU: 90 00 [10:51:18]wFMCommunicate OK [10:51:18]wFMCommunicate request_size=255 [10:51:18]MH_SAM_APDU [10:51:18]CAPDU: 80 0D 02 02 FA D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 0C 00 00 00 00 07 04 06 00 7C 79 00 [10:51:18]Write to MH i2c: E2 02 01 7C 48 80 0D 02 02 FA 00 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 0C 00 00 00 00 07 04 06 00 7C 79 00 00 00 E4 [10:51:18]Write i2c OK [10:51:18]MH_I2C_Read... [10:51:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:18]Read from MH i2c: E2 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 03 00 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 03 00 7C 48 00 90 00 38 [10:51:18]RAPDU: 90 00 [10:51:18]wFMCommunicate OK [10:51:18]wFMCommunicate request_size=111 [10:51:18]MH_SAM_APDU [10:51:18]CAPDU: 80 0D 02 02 6A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 2D BC E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AC 69 01 00 35 04 06 00 2D D5 AC DA AB 5C [10:51:18]Write to MH i2c: E2 72 00 7D 48 80 0D 02 02 6A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 2D BC E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AC 69 01 00 35 04 06 00 2D D5 AC DA AB 5C 00 00 34 [10:51:18]Write i2c OK [10:51:18]MH_I2C_Read... [10:51:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:18]Read from MH i2c: E2 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 03 00 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 03 00 7D 48 00 90 00 39 [10:51:18]RAPDU: 90 00 [10:51:18]wFMCommunicate OK [10:51:18]wFMCommunicate request_size=4 [10:51:18]MH_SAM_APDU [10:51:18]CAPDU: 80 0D 03 02 [10:51:18]Write to MH i2c: E2 08 00 7E 48 80 0D 03 02 00 00 00 00 41 [10:51:18]Write i2c OK [10:51:18]MH_I2C_Read... [10:51:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:51:18]Read from MH i2c: E2 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 0B 00 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 0B 00 7E 48 00 23 47 46 1D 67 4C BE 7C 90 00 FC [10:51:18]RAPDU: 23 47 46 1D 67 4C BE 7C 90 00 [10:51:18]wFMCommunicate OK [10:51:18]SAM_PROTO_SignData done [10:51:18]FM_MakeSignedData done [10:51:18]CreateOFDProtocolMessage [10:51:18]wFMCommunicate request_size=4 [10:51:18]MH_SAM_APDU [10:51:18]CAPDU: 80 11 00 00 [10:51:18]Write to MH i2c: E2 08 00 7F 48 80 11 00 00 00 00 00 00 41 [10:51:18]Write i2c OK [10:51:18]MH_I2C_Read... [10:51:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:19]Read from MH i2c: E2 [10:51:19]MH_I2C_Read... [10:51:19]Read from MH i2c: E2 17 00 [10:51:19]MH_I2C_Read... [10:51:19]Read from MH i2c: E2 17 00 7F 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 98 [10:51:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:51:19]wFMCommunicate OK [10:51:19]CreateOFDProtocolMessage done [10:51:19]OFDSenderStorePacket 92588 [10:51:19]StoreOFDPacket docnum=92588 [10:51:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 6E 02 00 00 4D 45 66 02 EF 90 5A 03 01 00 03 00 5A 02 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 0C 00 00 00 00 07 04 06 00 7C 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 2D BC E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AC 69 01 00 35 04 06 00 2D D5 AC DA AB 5C 23 47 46 1D 67 4C BE 7C [10:51:19]CheckFolder [10:51:19]dirname=/storage/ofd_packets [10:51:19]CheckFolder done [10:51:19]ProducePacketName [10:51:19]name=ofd_packets/00092588 [10:51:19]NVStorageSaveData ofd_packets/00092588 [10:51:19]File name is /storage/ofd_packets/00092588 [10:51:19]Write 652 bytes [10:51:19]NVStorageSaveData done [10:51:19]OFDSenderStorePacket done [10:51:19]KKMCreateOFDPacket done [10:51:19]NVStorageSaveData kkm_last_timestamp [10:51:19]File name is /storage/kkm_last_timestamp [10:51:19]Write 4 bytes [10:51:19]NVStorageSaveData done [10:51:19]ExternCall_PrintAddStr [10:51:19]wPrintStart [10:51:19]Write to MH i2c: 01 00 00 80 48 C8 [10:51:19]Write i2c OK [10:51:19]MH_I2C_Read... [10:51:19]Read from MH i2c: 01 [10:51:19]MH_I2C_Read... [10:51:19]Read from MH i2c: 01 07 00 [10:51:19]MH_I2C_Read... [10:51:19]Read from MH i2c: 01 07 00 80 48 00 00 00 00 00 FF 0F DD [10:51:19]RasterBufferAndPrint [10:51:19]line Счет N : (3)127482 [10:51:19]line ИНН: 02508201610067 [10:51:19]line Контрольно-Кассовый Чек [10:51:19]line ПРОДАЖА [10:51:19]line Товар: 40822426 [10:51:19]line Вода Бонаква 0,5л б/г [10:51:19]line 1.000 * 40.00 [10:51:19]line = 40.00 [10:51:19]line НДС 12% НСП 1% [10:51:19]line > о реализуемом товаре [10:51:19]line Товар: 48743587 [10:51:19]line Сигареты Winston XStyle Silver [10:51:19]line 1.000 * 144.00 [10:51:19]line = 144.00 [10:51:19]line НДС 12% НСП 1% [10:51:19]line > о реализуемом товаре [10:51:19]line Товар: 4011100977952 [10:51:19]line Шок Батончик Твикс 55г [10:51:19]line 1.000 * 60.00 [10:51:19]line = 60.00 [10:51:19]line НДС 12% НСП 1% [10:51:19]line > о реализуемом товаре [10:51:19]line Товар: 8710732217097 [10:51:19]line Зажигалка Cricket ПН пьезо [10:51:19]line 1.000 * 67.00 [10:51:19]line = 67.00 [10:51:19]line НДС 12% НСП 1% [10:51:19]line > о реализуемом товаре [10:51:19]line ИТОГО: 311.00 [10:51:19]line НСП 1% : 2.74 [10:51:19]line НДС 12% : 33.02 [10:51:19]line Наличными: 311.00 [10:51:19]line Безнал.: 0.00 [10:51:19]line Место: АЗС № 5 "Партнер Нефть" [10:51:19]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [10:51:19]line СНО: Общий режим [10:51:19]line Чек 36 15.09.2024 10:51 [10:51:19]line Смена: 507 ФФД: 1.0 [10:51:19]line ЗНМ: 03000000022 [10:51:19]line РНМ: 0000000000091423 [10:51:19]line Версия ККМ: 001 [10:51:19]line ФМ: 0000000000874692 [10:51:19]line ФД: 92588 [10:51:19]line ФПД: 50395751295836 [10:51:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T105125&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92588&fm=50395751295836&tin=02508201610067®Number=0000000000091423&sum=31100 [10:51:19]line 0 [10:51:19]OFD Sender: Processing packet 92588 [packets to send 63, broken 62] [10:51:19]ProducePacketName [10:51:19]name=ofd_packets/00092588 [10:51:19]OFD Sender: To server: pG, [10:51:19]CommunicateWithHost lk.salyk.kg:30040 [10:51:19]ConnectInit lk.salyk.kg [10:51:19]written 0, free lines is 4095 [10:51:19]Connected sock=10 [10:51:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 6E 02 00 00 4D 45 66 02 EF 90 5A 03 01 00 03 00 5A 02 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 0C 00 00 00 00 07 04 06 00 7C 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 2D BC E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AC 69 01 00 35 04 06 00 2D D5 AC DA AB 5C 23 47 46 1D 67 4C BE 7C [10:51:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 01 C8 47 00 7E D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AC 69 01 00 F4 03 04 00 A5 64 E6 66 B6 04 01 00 00 1D 8A 09 10 DF 72 B6 E0 [10:51:19]CommunicateWithHost err = 0 [10:51:19]CheckOFDResponse [10:51:19]1017 (14) - 77093643461234 [10:51:19]1041 (16) - 0000000000874692 [10:51:19]1040 (4) - 92588 [10:51:19]1012 (4) - 15.09.2024 04:37 [10:51:19]1206 (1) - 0 [10:51:19]OFD Sender: Remove packet 92588 [10:51:19]ProducePacketName [10:51:19]name=ofd_packets/00092588 [10:51:19]NVStorageDeleteData [10:51:19]Write to MH i2c: 01 00 00 BB 48 03 [10:51:19]Write i2c OK [10:51:19]MH_I2C_Read... [10:51:19]Read from MH i2c: 01 [10:51:19]MH_I2C_Read... [10:51:19]Read from MH i2c: 01 07 00 [10:51:19]MH_I2C_Read... [10:51:19]Read from MH i2c: 01 07 00 BB 48 00 00 00 00 00 21 0C 37 [10:51:19]RasterBufferAndPrint [10:51:19]line [10:51:19]line [10:51:19]line [10:51:19]line [10:51:19]line [10:51:19]written 0, free lines is 3117 [10:51:20]MH_Cut [10:51:20]Write to MH i2c: D1 01 00 C2 48 01 DC [10:51:20]Write i2c OK [10:51:20]MH_I2C_Read... [10:51:20]Read from MH i2c: D1 [10:51:20]MH_I2C_Read... [10:51:20]Read from MH i2c: D1 01 00 [10:51:20]MH_I2C_Read... [10:51:20]Read from MH i2c: D1 01 00 C2 48 00 DB [10:51:20]Write to MH i2c: 01 00 00 C3 48 0B [10:51:20]Write i2c OK [10:51:20]MH_I2C_Read... [10:51:20]OFD Sender: No OFD packet to send [10:51:20]*** Cut start [10:51:20]*** Purtial cut [10:51:20]*** Stage 1: CUTSNS_PIN = 1 [10:51:22]Read from MH i2c: 01 [10:51:22]MH_I2C_Read... [10:51:22]*** Stop cut motor [10:51:22]*** Cut end [10:51:22]Read from MH i2c: 01 07 00 [10:51:22]MH_I2C_Read... [10:51:22]Read from MH i2c: 01 07 00 C3 48 00 00 00 00 00 FF 0F 20 [10:51:22]process_action close_receipt done [10:51:22]requested_data is exist [10:51:22]produce_requested_data [10:51:22]requested_item fm.sn is exist - process it [10:51:22]wFMCommunicate request_size=4 [10:51:22]MH_SAM_APDU [10:51:22]CAPDU: 80 11 00 00 [10:51:22]Write to MH i2c: E2 08 00 C4 48 80 11 00 00 00 00 00 00 86 [10:51:22]Write i2c OK [10:51:22]MH_I2C_Read... [10:51:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:22]Read from MH i2c: E2 [10:51:22]MH_I2C_Read... [10:51:22]Read from MH i2c: E2 17 00 [10:51:22]MH_I2C_Read... [10:51:22]Read from MH i2c: E2 17 00 C4 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 DD [10:51:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:51:22]wFMCommunicate OK [10:51:22]requested_item fd.num is exist - process it [10:51:22]SAM_PROTO_GetFieldsCounters [10:51:22]wFMCommunicate request_size=4 [10:51:22]MH_SAM_APDU [10:51:22]CAPDU: 80 13 00 00 [10:51:22]Write to MH i2c: E2 08 00 C5 48 80 13 00 00 00 00 00 00 89 [10:51:22]Write i2c OK [10:51:22]MH_I2C_Read... [10:51:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:51:23]Read from MH i2c: E2 [10:51:23]MH_I2C_Read... [10:51:23]Read from MH i2c: E2 62 00 [10:51:23]MH_I2C_Read... [10:51:23]Read from MH i2c: E2 62 00 C5 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 AC 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [10:51:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 AC 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:51:23]wFMCommunicate OK [10:51:23]SAM_PROTO_GetFieldsCounters done [10:51:23]requested_item shift.num is exist - process it [10:51:23]requested_item shift.opened is exist - process it [10:51:23]req_shift_opened [10:51:23]FM_GetShiftState [10:51:23]SAM_PROTO_GetShiftState [10:51:23]wFMCommunicate request_size=4 [10:51:23]MH_SAM_APDU [10:51:23]CAPDU: 80 13 01 00 [10:51:23]Write to MH i2c: E2 08 00 C6 48 80 13 01 00 00 00 00 00 8B [10:51:23]Write i2c OK [10:51:23]MH_I2C_Read... [10:51:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:23]Read from MH i2c: E2 [10:51:23]MH_I2C_Read... [10:51:23]Read from MH i2c: E2 0E 00 [10:51:23]MH_I2C_Read... [10:51:23]Read from MH i2c: E2 0E 00 C6 48 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 0D [10:51:23]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [10:51:23]wFMCommunicate OK [10:51:23]SAM_PROTO_GetShiftState done [10:51:23]FM_GetShiftState done [10:51:23]req_shift_opened done [10:51:23]requested_item shift.open_date is exist - process it [10:51:23]req_shift_open_date [10:51:23]req_shift_open_date done [10:51:23]produce_requested_data done [10:51:23]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92588,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [10:51:23]process_action_free close_receipt [10:51:23]json_value_free [10:51:23]json_value_free done [10:51:23]process_json_proto returns [10:51:23]Send response to host [10:51:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92588,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [10:51:23]free response buf [10:51:23]execute_script done [10:51:23]execute_script returns [10:51:23]free content buf [10:51:23]Sock 9.Close socket [10:51:23]Sock 9.Thread stoped [10:51:25]OFD Sender: No OFD packet to send [10:51:30]OFD Sender: No OFD packet to send [10:51:35]OFD Sender: No OFD packet to send [10:51:40]OFD Sender: No OFD packet to send [10:51:45]OFD Sender: No OFD packet to send [10:51:50]OFD Sender: No OFD packet to send [10:51:55]OFD Sender: No OFD packet to send [10:52:00]OFD Sender: No OFD packet to send [10:52:05]OFD Sender: No OFD packet to send [10:52:10]OFD Sender: No OFD packet to send [10:52:15]OFD Sender: No OFD packet to send [10:52:20]OFD Sender: No OFD packet to send [10:52:25]OFD Sender: No OFD packet to send [10:52:30]OFD Sender: No OFD packet to send [10:52:35]OFD Sender: No OFD packet to send [10:52:40]OFD Sender: No OFD packet to send [10:52:45]OFD Sender: No OFD packet to send [10:52:50]OFD Sender: No OFD packet to send [10:52:55]OFD Sender: No OFD packet to send [10:53:00]OFD Sender: No OFD packet to send [10:53:05]OFD Sender: No OFD packet to send [10:53:10]OFD Sender: No OFD packet to send [10:53:15]OFD Sender: No OFD packet to send [10:53:20]OFD Sender: No OFD packet to send [10:53:25]OFD Sender: No OFD packet to send [10:53:30]OFD Sender: No OFD packet to send [10:53:35]OFD Sender: No OFD packet to send [10:53:40]OFD Sender: No OFD packet to send [10:53:45]OFD Sender: No OFD packet to send [10:53:50]OFD Sender: No OFD packet to send [10:53:55]OFD Sender: No OFD packet to send [10:54:00]OFD Sender: No OFD packet to send [10:54:05]OFD Sender: No OFD packet to send [10:54:10]OFD Sender: No OFD packet to send [10:54:15]OFD Sender: No OFD packet to send [10:54:20]OFD Sender: No OFD packet to send [10:54:25]OFD Sender: No OFD packet to send [10:54:30]OFD Sender: No OFD packet to send [10:54:35]OFD Sender: No OFD packet to send [10:54:40]OFD Sender: No OFD packet to send [10:54:45]OFD Sender: No OFD packet to send [10:54:50]OFD Sender: No OFD packet to send [10:54:55]OFD Sender: No OFD packet to send [10:55:00]OFD Sender: No OFD packet to send [10:55:05]OFD Sender: No OFD packet to send [10:55:10]OFD Sender: No OFD packet to send [10:55:15]OFD Sender: No OFD packet to send [10:55:20]OFD Sender: No OFD packet to send [10:55:25]OFD Sender: No OFD packet to send [10:55:30]OFD Sender: No OFD packet to send [10:55:35]OFD Sender: No OFD packet to send [10:55:40]OFD Sender: No OFD packet to send [10:55:45]OFD Sender: No OFD packet to send [10:55:50]OFD Sender: No OFD packet to send [10:55:55]OFD Sender: No OFD packet to send [10:56:00]OFD Sender: No OFD packet to send [10:56:05]OFD Sender: No OFD packet to send [10:56:10]OFD Sender: No OFD packet to send [10:56:15]OFD Sender: No OFD packet to send [10:56:20]OFD Sender: No OFD packet to send [10:56:25]OFD Sender: No OFD packet to send [10:56:30]OFD Sender: No OFD packet to send [10:56:35]OFD Sender: No OFD packet to send [10:56:40]OFD Sender: No OFD packet to send [10:56:45]OFD Sender: No OFD packet to send [10:56:50]OFD Sender: No OFD packet to send [10:56:55]OFD Sender: No OFD packet to send [10:57:00]OFD Sender: No OFD packet to send [10:57:05]OFD Sender: No OFD packet to send [10:57:10]OFD Sender: No OFD packet to send [10:57:15]OFD Sender: No OFD packet to send [10:57:20]OFD Sender: No OFD packet to send [10:57:25]OFD Sender: No OFD packet to send [10:57:30]OFD Sender: No OFD packet to send [10:57:35]OFD Sender: No OFD packet to send [10:57:40]OFD Sender: No OFD packet to send [10:57:45]OFD Sender: No OFD packet to send [10:57:50]OFD Sender: No OFD packet to send [10:57:55]OFD Sender: No OFD packet to send [10:58:00]OFD Sender: No OFD packet to send [10:58:05]OFD Sender: No OFD packet to send [10:58:10]OFD Sender: No OFD packet to send [10:58:15]OFD Sender: No OFD packet to send [10:58:20]OFD Sender: No OFD packet to send [10:58:25]OFD Sender: No OFD packet to send [10:58:30]OFD Sender: No OFD packet to send [10:58:35]OFD Sender: No OFD packet to send [10:58:40]OFD Sender: No OFD packet to send [10:58:45]OFD Sender: No OFD packet to send [10:58:50]OFD Sender: No OFD packet to send [10:58:55]OFD Sender: No OFD packet to send [10:59:00]OFD Sender: No OFD packet to send [10:59:05]OFD Sender: No OFD packet to send [10:59:10]OFD Sender: No OFD packet to send [10:59:15]OFD Sender: No OFD packet to send [10:59:20]OFD Sender: No OFD packet to send [10:59:25]OFD Sender: No OFD packet to send [10:59:30]OFD Sender: No OFD packet to send [10:59:35]OFD Sender: No OFD packet to send [10:59:40]OFD Sender: No OFD packet to send [10:59:45]OFD Sender: No OFD packet to send [10:59:50]OFD Sender: No OFD packet to send [10:59:55]OFD Sender: No OFD packet to send [11:00:00]OFD Sender: No OFD packet to send [11:00:05]OFD Sender: No OFD packet to send [11:00:10]OFD Sender: No OFD packet to send [11:00:15]OFD Sender: No OFD packet to send [11:00:20]OFD Sender: No OFD packet to send [11:00:25]OFD Sender: No OFD packet to send [11:00:30]OFD Sender: No OFD packet to send [11:00:35]OFD Sender: No OFD packet to send [11:00:40]OFD Sender: No OFD packet to send [11:00:45]OFD Sender: No OFD packet to send [11:00:50]OFD Sender: No OFD packet to send [11:00:55]OFD Sender: No OFD packet to send [11:01:00]OFD Sender: No OFD packet to send [11:01:05]OFD Sender: No OFD packet to send [11:01:10]OFD Sender: No OFD packet to send [11:01:15]OFD Sender: No OFD packet to send [11:01:20]OFD Sender: No OFD packet to send [11:01:25]OFD Sender: No OFD packet to send [11:01:30]OFD Sender: No OFD packet to send [11:01:35]OFD Sender: No OFD packet to send [11:01:40]OFD Sender: No OFD packet to send [11:01:45]OFD Sender: No OFD packet to send [11:01:50]OFD Sender: No OFD packet to send [11:01:55]OFD Sender: No OFD packet to send [11:02:00]OFD Sender: No OFD packet to send [11:02:05]OFD Sender: No OFD packet to send [11:02:10]OFD Sender: No OFD packet to send [11:02:15]OFD Sender: No OFD packet to send [11:02:20]OFD Sender: No OFD packet to send [11:02:25]OFD Sender: No OFD packet to send [11:02:30]OFD Sender: No OFD packet to send [11:02:35]OFD Sender: No OFD packet to send [11:02:40]OFD Sender: No OFD packet to send [11:02:45]OFD Sender: No OFD packet to send [11:02:50]OFD Sender: No OFD packet to send [11:02:55]OFD Sender: No OFD packet to send [11:03:00]OFD Sender: No OFD packet to send [11:03:05]OFD Sender: No OFD packet to send [11:03:10]OFD Sender: No OFD packet to send [11:03:15]OFD Sender: No OFD packet to send [11:03:20]OFD Sender: No OFD packet to send [11:03:25]OFD Sender: No OFD packet to send [11:03:30]OFD Sender: No OFD packet to send [11:03:35]OFD Sender: No OFD packet to send [11:03:40]OFD Sender: No OFD packet to send [11:03:45]OFD Sender: No OFD packet to send [11:03:50]OFD Sender: No OFD packet to send [11:03:55]OFD Sender: No OFD packet to send [11:04:00]OFD Sender: No OFD packet to send [11:04:05]OFD Sender: No OFD packet to send [11:04:10]OFD Sender: No OFD packet to send [11:04:15]OFD Sender: No OFD packet to send [11:04:20]OFD Sender: No OFD packet to send [11:04:25]OFD Sender: No OFD packet to send [11:04:30]OFD Sender: No OFD packet to send [11:04:35]OFD Sender: No OFD packet to send [11:04:40]OFD Sender: No OFD packet to send [11:04:45]OFD Sender: No OFD packet to send [11:04:50]OFD Sender: No OFD packet to send [11:04:55]OFD Sender: No OFD packet to send [11:05:00]OFD Sender: No OFD packet to send [11:05:05]OFD Sender: No OFD packet to send [11:05:10]OFD Sender: No OFD packet to send [11:05:15]OFD Sender: No OFD packet to send [11:05:20]OFD Sender: No OFD packet to send [11:05:25]OFD Sender: No OFD packet to send [11:05:30]OFD Sender: No OFD packet to send [11:05:35]OFD Sender: No OFD packet to send [11:05:40]OFD Sender: No OFD packet to send [11:05:45]OFD Sender: No OFD packet to send [11:05:50]OFD Sender: No OFD packet to send [11:05:55]OFD Sender: No OFD packet to send [11:06:01]OFD Sender: No OFD packet to send [11:06:06]OFD Sender: No OFD packet to send [11:06:11]OFD Sender: No OFD packet to send [11:06:16]OFD Sender: No OFD packet to send [11:06:21]OFD Sender: No OFD packet to send [11:06:26]OFD Sender: No OFD packet to send [11:06:31]OFD Sender: No OFD packet to send [11:06:36]OFD Sender: No OFD packet to send [11:06:41]OFD Sender: No OFD packet to send [11:06:46]OFD Sender: No OFD packet to send [11:06:51]OFD Sender: No OFD packet to send [11:06:56]OFD Sender: No OFD packet to send [11:07:01]OFD Sender: No OFD packet to send [11:07:06]OFD Sender: No OFD packet to send [11:07:11]OFD Sender: No OFD packet to send [11:07:16]OFD Sender: No OFD packet to send [11:07:21]OFD Sender: No OFD packet to send [11:07:26]OFD Sender: No OFD packet to send [11:07:31]OFD Sender: No OFD packet to send [11:07:36]OFD Sender: No OFD packet to send [11:07:41]OFD Sender: No OFD packet to send [11:07:46]OFD Sender: No OFD packet to send [11:07:51]OFD Sender: No OFD packet to send [11:07:56]OFD Sender: No OFD packet to send [11:08:01]OFD Sender: No OFD packet to send [11:08:06]OFD Sender: No OFD packet to send [11:08:11]OFD Sender: No OFD packet to send [11:08:16]OFD Sender: No OFD packet to send [11:08:21]OFD Sender: No OFD packet to send [11:08:26]OFD Sender: No OFD packet to send [11:08:31]OFD Sender: No OFD packet to send [11:08:36]OFD Sender: No OFD packet to send [11:08:41]OFD Sender: No OFD packet to send [11:08:46]OFD Sender: No OFD packet to send [11:08:51]OFD Sender: No OFD packet to send [11:08:56]OFD Sender: No OFD packet to send [11:09:01]OFD Sender: No OFD packet to send [11:09:06]OFD Sender: No OFD packet to send [11:09:11]OFD Sender: No OFD packet to send [11:09:16]OFD Sender: No OFD packet to send [11:09:21]OFD Sender: No OFD packet to send [11:09:26]OFD Sender: No OFD packet to send [11:09:31]OFD Sender: No OFD packet to send [11:09:36]OFD Sender: No OFD packet to send [11:09:41]OFD Sender: No OFD packet to send [11:09:46]OFD Sender: No OFD packet to send [11:09:51]OFD Sender: No OFD packet to send [11:09:56]OFD Sender: No OFD packet to send [11:10:01]OFD Sender: No OFD packet to send [11:10:06]OFD Sender: No OFD packet to send [11:10:11]OFD Sender: No OFD packet to send [11:10:16]OFD Sender: No OFD packet to send [11:10:21]OFD Sender: No OFD packet to send [11:10:26]OFD Sender: No OFD packet to send [11:10:31]OFD Sender: No OFD packet to send [11:10:36]OFD Sender: No OFD packet to send [11:10:41]OFD Sender: No OFD packet to send [11:10:46]OFD Sender: No OFD packet to send [11:10:51]OFD Sender: No OFD packet to send [11:10:56]OFD Sender: No OFD packet to send [11:11:01]OFD Sender: No OFD packet to send [11:11:06]OFD Sender: No OFD packet to send [11:11:11]OFD Sender: No OFD packet to send [11:11:16]OFD Sender: No OFD packet to send [11:11:21]OFD Sender: No OFD packet to send [11:11:26]OFD Sender: No OFD packet to send [11:11:31]OFD Sender: No OFD packet to send [11:11:36]OFD Sender: No OFD packet to send [11:11:41]OFD Sender: No OFD packet to send [11:11:46]OFD Sender: No OFD packet to send [11:11:51]OFD Sender: No OFD packet to send [11:11:52]accept exits with 8 [11:11:52]New connection [11:11:52]New thread 3066801508 created [11:11:52]Thread 3066658148 joined [11:11:52]Waiting for new connection... [11:11:52] Sock 8.Parse request [11:11:52]Sock 8.Check first char [11:11:52]Sock 8.First char is OK [11:11:52]request: POST /json_proto HTTP/1.0 [11:11:52]Method: POST [11:11:52]URL: /json_proto [11:11:52]Method is POST - this is cgi request [11:11:52]url: /json_proto [11:11:52]query_string will be loaded in cgi processing [11:11:52]execute_cgi json_proto POST (null) [11:11:52]execute_cgi path=json_proto method=POST [11:11:52]POST find Content-Length [11:11:52]Host: 172.17.57.71:8080 [11:11:52]Content-Length: 654 [11:11:52]Content-Type: application/json [11:11:52] [11:11:52]POST finish read [11:11:52]Found Content-Length = 654 [11:11:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127483", "tax_sys" : 0, "items" : [ { "code": "4660013331438", "name": "\u042D\u0441\u043A\u0438\u043C\u043E \u041C\u043E\u0441\u043A\u043E\u0432\u0441\u043A\u043E\u0435", "price" : 95.00, "quantity" : 3.000, "sum" : 285.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:52]execute_script... [11:11:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127483", "tax_sys" : 0, "items" : [ { "code": "4660013331438", "name": "\u042D\u0441\u043A\u0438\u043C\u043E \u041C\u043E\u0441\u043A\u043E\u0432\u0441\u043A\u043E\u0435", "price" : 95.00, "quantity" : 3.000, "sum" : 285.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:52]POST & json_proto [11:11:52]process_json_proto [11:11:52]json parsed OK: [11:11:52]protocol is kg_v1.0 [11:11:52]action value=close_receipt [11:11:52]process_action close_receipt [11:11:52]cmd_close_receipt [11:11:52]MH_GetDate [11:11:52]Write to MH i2c: F0 00 00 C7 48 FE [11:11:52]Write i2c OK [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: F0 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: F0 09 00 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: F0 09 00 C7 48 00 01 C1 E6 66 33 3A A4 66 8C [11:11:52]GetLastDocTimeStamp 1726397485 [11:11:52]current date 1726398721 [11:11:52]FM_GetShiftState [11:11:52]SAM_PROTO_GetShiftState [11:11:52]wFMCommunicate request_size=4 [11:11:52]MH_SAM_APDU [11:11:52]CAPDU: 80 13 01 00 [11:11:52]Write to MH i2c: E2 08 00 C8 48 80 13 01 00 00 00 00 00 8D [11:11:52]Write i2c OK [11:11:52]MH_I2C_Read... [11:11:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:52]Read from MH i2c: E2 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: E2 0E 00 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: E2 0E 00 C8 48 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 0F [11:11:52]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [11:11:52]wFMCommunicate OK [11:11:52]SAM_PROTO_GetShiftState done [11:11:52]FM_GetShiftState done [11:11:52]opened in 1726359809 [11:11:52]opened+sec_in_day 1726446209 [11:11:52]quantity*price = 28500 [11:11:52]sum+1 = 28501 [11:11:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 285.00 НСП 1% : 2.52 НДС 12% : 30.26 Наличными: 285.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 37 15.09.2024 11:12 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92589 ФПД: 166684270554091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T111201&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92589&fm=166684270554091&tin=02508201610067®Number=0000000000091423&sum=28500 0 [11:11:54]StoreToDocumentArchive [11:11:54]shift 507 fd 92589 [11:11:54]save to /storage/0507/doc_00092589 [11:11:54]save last doc name /storage/0507/doc_00092589 to /storage/kkm_last_doc_name [11:11:54]save OK [11:11:54]Clear old archive folders... [11:11:54]ProcessDocumentItem done err = 0, tmpTLVsize=275 [11:11:54]tlvbuf is 01087D80 [11:11:54]SAM_PROTO_ClearQueue [11:11:54]wFMCommunicate request_size=4 [11:11:54]MH_SAM_APDU [11:11:54]CAPDU: 80 09 00 00 [11:11:54]Write to MH i2c: E2 08 00 D5 48 80 09 00 00 00 00 00 00 8F [11:11:54]Write i2c OK [11:11:54]MH_I2C_Read... [11:11:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:54]Read from MH i2c: E2 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 03 00 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 03 00 D5 48 00 90 00 91 [11:11:54]RAPDU: 90 00 [11:11:54]wFMCommunicate OK [11:11:54]SAM_PROTO_ClearQueue done [11:11:54]KKMCreateOFDPacket [11:11:54]OFDProtocolAddRootSTLVToBuf [11:11:54]FM_MakeSignedData [11:11:54]FM_MakeSignedData [11:11:54]SAM_PROTO_SignData [11:11:54]wFMCommunicate request_size=4 [11:11:54]MH_SAM_APDU [11:11:54]CAPDU: 80 0D 01 02 [11:11:54]Write to MH i2c: E2 08 00 D6 48 80 0D 01 02 00 00 00 00 97 [11:11:54]Write i2c OK [11:11:54]MH_I2C_Read... [11:11:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:54]Read from MH i2c: E2 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 03 00 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 03 00 D6 48 00 90 00 92 [11:11:54]RAPDU: 90 00 [11:11:54]wFMCommunicate OK [11:11:54]wFMCommunicate request_size=255 [11:11:54]MH_SAM_APDU [11:11:54]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 33 38 06 04 21 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9C D0 BE D1 81 D0 BA D0 BE D0 B2 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 01 C1 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 [11:11:54]Write to MH i2c: E2 02 01 D7 48 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 33 38 06 04 21 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9C D0 BE D1 81 D0 BA D0 BE D0 B2 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 01 C1 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 00 00 CE [11:11:54]Write i2c OK [11:11:54]MH_I2C_Read... [11:11:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:54]Read from MH i2c: E2 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 03 00 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 03 00 D7 48 00 90 00 93 [11:11:54]RAPDU: 90 00 [11:11:54]wFMCommunicate OK [11:11:54]wFMCommunicate request_size=34 [11:11:54]MH_SAM_APDU [11:11:54]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AD 69 01 00 35 04 06 00 97 99 34 BC 6B EB [11:11:54]Write to MH i2c: E2 25 00 D8 48 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AD 69 01 00 35 04 06 00 97 99 34 BC 6B EB 00 00 EC [11:11:54]Write i2c OK [11:11:54]MH_I2C_Read... [11:11:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:54]Read from MH i2c: E2 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 03 00 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 03 00 D8 48 00 90 00 94 [11:11:54]RAPDU: 90 00 [11:11:54]wFMCommunicate OK [11:11:54]wFMCommunicate request_size=4 [11:11:54]MH_SAM_APDU [11:11:54]CAPDU: 80 0D 03 02 [11:11:54]Write to MH i2c: E2 08 00 D9 48 80 0D 03 02 00 00 00 00 9C [11:11:54]Write i2c OK [11:11:54]MH_I2C_Read... [11:11:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:54]Read from MH i2c: E2 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 0B 00 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 0B 00 D9 48 00 9C 97 8D 56 F4 89 69 E5 90 00 7E [11:11:54]RAPDU: 9C 97 8D 56 F4 89 69 E5 90 00 [11:11:54]wFMCommunicate OK [11:11:54]SAM_PROTO_SignData done [11:11:54]FM_MakeSignedData done [11:11:54]CreateOFDProtocolMessage [11:11:54]wFMCommunicate request_size=4 [11:11:54]MH_SAM_APDU [11:11:54]CAPDU: 80 11 00 00 [11:11:54]Write to MH i2c: E2 08 00 DA 48 80 11 00 00 00 00 00 00 9C [11:11:54]Write i2c OK [11:11:54]MH_I2C_Read... [11:11:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:54]Read from MH i2c: E2 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 17 00 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 17 00 DA 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F3 [11:11:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:11:54]wFMCommunicate OK [11:11:54]CreateOFDProtocolMessage done [11:11:54]OFDSenderStorePacket 92589 [11:11:54]StoreOFDPacket docnum=92589 [11:11:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 A3 21 1F 01 56 0A 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 33 38 06 04 21 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9C D0 BE D1 81 D0 BA D0 BE D0 B2 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 01 C1 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AD 69 01 00 35 04 06 00 97 99 34 BC 6B EB 9C 97 8D 56 F4 89 69 E5 [11:11:54]CheckFolder [11:11:54]dirname=/storage/ofd_packets [11:11:54]CheckFolder done [11:11:54]ProducePacketName [11:11:54]name=ofd_packets/00092589 [11:11:54]NVStorageSaveData ofd_packets/00092589 [11:11:54]File name is /storage/ofd_packets/00092589 [11:11:54]Write 325 bytes [11:11:54]NVStorageSaveData done [11:11:54]OFDSenderStorePacket done [11:11:54]KKMCreateOFDPacket done [11:11:54]NVStorageSaveData kkm_last_timestamp [11:11:54]File name is /storage/kkm_last_timestamp [11:11:54]Write 4 bytes [11:11:54]NVStorageSaveData done [11:11:54]OFD Sender: Processing packet 92589 [packets to send 63, broken 62] [11:11:54]ProducePacketName [11:11:54]name=ofd_packets/00092589 [11:11:54]OFD Sender: To server: pG, [11:11:54]CommunicateWithHost lk.salyk.kg:30040 [11:11:54]ConnectInit lk.salyk.kg [11:11:54]ExternCall_PrintAddStr [11:11:54]wPrintStart [11:11:54]Write to MH i2c: 01 00 00 DB 48 23 [11:11:54]Write i2c OK [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: 01 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: 01 07 00 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: 01 07 00 DB 48 00 00 00 00 00 FF 0F 38 [11:11:54]RasterBufferAndPrint [11:11:54]line Счет N : (3)127483 [11:11:54]line ИНН: 02508201610067 [11:11:54]line Контрольно-Кассовый Чек [11:11:54]line ПРОДАЖА [11:11:54]line Товар: 4660013331438 [11:11:54]line Эскимо Московское [11:11:54]line 3.000 * 95.00 [11:11:54]line = 285.00 [11:11:54]line НДС 12% НСП 1% [11:11:54]line > о реализуемом товаре [11:11:54]line ИТОГО: 285.00 [11:11:54]line НСП 1% : 2.52 [11:11:54]line НДС 12% : 30.26 [11:11:54]line Наличными: 285.00 [11:11:54]line Безнал.: 0.00 [11:11:54]line Место: АЗС № 5 "Партнер Нефть" [11:11:54]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [11:11:54]line СНО: Общий режим [11:11:54]line Чек 37 15.09.2024 11:12 [11:11:54]line Смена: 507 ФФД: 1.0 [11:11:54]line ЗНМ: 03000000022 [11:11:54]line РНМ: 0000000000091423 [11:11:54]line Версия ККМ: 001 [11:11:54]line ФМ: 0000000000874692 [11:11:54]line ФД: 92589 [11:11:54]line ФПД: 166684270554091 [11:11:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T111201&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92589&fm=166684270554091&tin=02508201610067®Number=0000000000091423&sum=28500 [11:11:54]line 0 [11:11:54]Connected sock=12 [11:11:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 A3 21 1F 01 56 0A 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 33 38 06 04 21 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9C D0 BE D1 81 D0 BA D0 BE D0 B2 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 01 C1 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AD 69 01 00 35 04 06 00 97 99 34 BC 6B EB 9C 97 8D 56 F4 89 69 E5 [11:11:54]written 0, free lines is 4095 [11:11:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 96 9F 47 00 E1 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AD 69 01 00 F4 03 04 00 79 69 E6 66 B6 04 01 00 00 BF A6 BE 89 C2 E5 A5 CE [11:11:55]CommunicateWithHost err = 0 [11:11:55]CheckOFDResponse [11:11:55]1017 (14) - 77093643461234 [11:11:55]1041 (16) - 0000000000874692 [11:11:55]1040 (4) - 92589 [11:11:55]1012 (4) - 15.09.2024 04:58 [11:11:55]1206 (1) - 0 [11:11:55]OFD Sender: Remove packet 92589 [11:11:55]ProducePacketName [11:11:55]name=ofd_packets/00092589 [11:11:55]NVStorageDeleteData [11:11:55]Write to MH i2c: 01 00 00 03 49 4C [11:11:55]Write i2c OK [11:11:55]MH_I2C_Read... [11:11:55]Read from MH i2c: 01 [11:11:55]MH_I2C_Read... [11:11:55]Read from MH i2c: 01 07 00 [11:11:55]MH_I2C_Read... [11:11:55]Read from MH i2c: 01 07 00 03 49 00 00 00 00 00 1D 0D 7D [11:11:55]RasterBufferAndPrint [11:11:55]line [11:11:55]line [11:11:55]line [11:11:55]line [11:11:55]line [11:11:55]written 0, free lines is 3362 [11:11:55]MH_Cut [11:11:55]Write to MH i2c: D1 01 00 0A 49 01 25 [11:11:55]Write i2c OK [11:11:55]MH_I2C_Read... [11:11:55]Read from MH i2c: D1 [11:11:55]MH_I2C_Read... [11:11:55]Read from MH i2c: D1 01 00 [11:11:55]MH_I2C_Read... [11:11:55]Read from MH i2c: D1 01 00 0A 49 00 24 [11:11:55]Write to MH i2c: 01 00 00 0B 49 54 [11:11:55]Write i2c OK [11:11:55]MH_I2C_Read... [11:11:55]OFD Sender: No OFD packet to send [11:11:56]*** Cut start [11:11:56]*** Purtial cut [11:11:56]*** Stage 1: CUTSNS_PIN = 1 [11:11:58]Read from MH i2c: 01 [11:11:58]MH_I2C_Read... [11:11:58]*** Stop cut motor [11:11:58]*** Cut end [11:11:58]Read from MH i2c: 01 07 00 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: 01 07 00 0B 49 00 00 00 00 00 FF 0F 69 [11:11:58]process_action close_receipt done [11:11:58]requested_data is exist [11:11:58]produce_requested_data [11:11:58]requested_item fm.sn is exist - process it [11:11:58]wFMCommunicate request_size=4 [11:11:58]MH_SAM_APDU [11:11:58]CAPDU: 80 11 00 00 [11:11:58]Write to MH i2c: E2 08 00 0C 49 80 11 00 00 00 00 00 00 CF [11:11:58]Write i2c OK [11:11:58]MH_I2C_Read... [11:11:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:58]Read from MH i2c: E2 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: E2 17 00 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: E2 17 00 0C 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 26 [11:11:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:11:58]wFMCommunicate OK [11:11:58]requested_item fd.num is exist - process it [11:11:58]SAM_PROTO_GetFieldsCounters [11:11:58]wFMCommunicate request_size=4 [11:11:58]MH_SAM_APDU [11:11:58]CAPDU: 80 13 00 00 [11:11:58]Write to MH i2c: E2 08 00 0D 49 80 13 00 00 00 00 00 00 D2 [11:11:58]Write i2c OK [11:11:58]MH_I2C_Read... [11:11:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:58]Read from MH i2c: E2 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: E2 62 00 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: E2 62 00 0D 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 AD 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [11:11:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 AD 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:11:58]wFMCommunicate OK [11:11:58]SAM_PROTO_GetFieldsCounters done [11:11:58]requested_item shift.num is exist - process it [11:11:58]requested_item shift.opened is exist - process it [11:11:58]req_shift_opened [11:11:58]FM_GetShiftState [11:11:58]SAM_PROTO_GetShiftState [11:11:58]wFMCommunicate request_size=4 [11:11:58]MH_SAM_APDU [11:11:58]CAPDU: 80 13 01 00 [11:11:58]Write to MH i2c: E2 08 00 0E 49 80 13 01 00 00 00 00 00 D4 [11:11:58]Write i2c OK [11:11:58]MH_I2C_Read... [11:11:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:58]Read from MH i2c: E2 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: E2 0E 00 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: E2 0E 00 0E 49 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 56 [11:11:58]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [11:11:58]wFMCommunicate OK [11:11:58]SAM_PROTO_GetShiftState done [11:11:58]FM_GetShiftState done [11:11:58]req_shift_opened done [11:11:58]requested_item shift.open_date is exist - process it [11:11:58]req_shift_open_date [11:11:58]req_shift_open_date done [11:11:58]produce_requested_data done [11:11:58]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92589,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [11:11:58]process_action_free close_receipt [11:11:58]json_value_free [11:11:58]json_value_free done [11:11:58]process_json_proto returns [11:11:58]Send response to host [11:11:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92589,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [11:11:58]free response buf [11:11:58]execute_script done [11:11:58]execute_script returns [11:11:58]free content buf [11:11:58]Sock 8.Close socket [11:11:58]Sock 8.Thread stoped [11:12:00]OFD Sender: No OFD packet to send [11:12:05]OFD Sender: No OFD packet to send [11:12:06]accept exits with 9 [11:12:06]New connection [11:12:06]New thread 3066658148 created [11:12:06]Thread 3066801508 joined [11:12:06]Waiting for new connection... [11:12:06] Sock 9.Parse request [11:12:06]Sock 9.Check first char [11:12:06]Sock 9.First char is OK [11:12:06]request: POST /json_proto HTTP/1.0 [11:12:06]Method: POST [11:12:06]URL: /json_proto [11:12:06]Method is POST - this is cgi request [11:12:06]url: /json_proto [11:12:06]query_string will be loaded in cgi processing [11:12:06]execute_cgi json_proto POST (null) [11:12:06]execute_cgi path=json_proto method=POST [11:12:06]POST find Content-Length [11:12:06]Host: 172.17.57.71:8080 [11:12:06]Content-Length: 614 [11:12:06]Content-Type: application/json [11:12:06] [11:12:06]POST finish read [11:12:06]Found Content-Length = 614 [11:12:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127484", "tax_sys" : 0, "items" : [ { "code": "48744317", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Camel Yellow", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:06]execute_script... [11:12:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127484", "tax_sys" : 0, "items" : [ { "code": "48744317", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Camel Yellow", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:06]POST & json_proto [11:12:06]process_json_proto [11:12:06]json parsed OK: [11:12:06]protocol is kg_v1.0 [11:12:06]action value=close_receipt [11:12:06]process_action close_receipt [11:12:06]cmd_close_receipt [11:12:06]MH_GetDate [11:12:06]Write to MH i2c: F0 00 00 0F 49 47 [11:12:06]Write i2c OK [11:12:06]MH_I2C_Read... [11:12:06]Read from MH i2c: F0 [11:12:06]MH_I2C_Read... [11:12:06]Read from MH i2c: F0 09 00 [11:12:06]MH_I2C_Read... [11:12:06]Read from MH i2c: F0 09 00 0F 49 00 0F C1 E6 66 33 3A A4 66 E3 [11:12:06]GetLastDocTimeStamp 1726398721 [11:12:06]current date 1726398735 [11:12:06]FM_GetShiftState [11:12:06]SAM_PROTO_GetShiftState [11:12:06]wFMCommunicate request_size=4 [11:12:06]MH_SAM_APDU [11:12:06]CAPDU: 80 13 01 00 [11:12:06]Write to MH i2c: E2 08 00 10 49 80 13 01 00 00 00 00 00 D6 [11:12:06]Write i2c OK [11:12:06]MH_I2C_Read... [11:12:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:07]Read from MH i2c: E2 [11:12:07]MH_I2C_Read... [11:12:07]Read from MH i2c: E2 0E 00 [11:12:07]MH_I2C_Read... [11:12:07]Read from MH i2c: E2 0E 00 10 49 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 58 [11:12:07]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [11:12:07]wFMCommunicate OK [11:12:07]SAM_PROTO_GetShiftState done [11:12:07]FM_GetShiftState done [11:12:07]opened in 1726359809 [11:12:07]opened+sec_in_day 1726446209 [11:12:07]quantity*price = 15400 [11:12:07]sum+1 = 15401 [11:12:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 154.00 НСП 1% : 1.36 НДС 12% : 16.35 Наличными: 154.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 38 15.09.2024 11:12 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92590 ФПД: 6608445727434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T111215&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92590&fm=6608445727434&tin=02508201610067®Number=0000000000091423&sum=15400 0 [11:12:08]StoreToDocumentArchive [11:12:08]shift 507 fd 92590 [11:12:08]save to /storage/0507/doc_00092590 [11:12:08]save last doc name /storage/0507/doc_00092590 to /storage/kkm_last_doc_name [11:12:08]save OK [11:12:08]Clear old archive folders... [11:12:08]ProcessDocumentItem done err = 0, tmpTLVsize=266 [11:12:08]tlvbuf is 01048E30 [11:12:08]SAM_PROTO_ClearQueue [11:12:08]wFMCommunicate request_size=4 [11:12:08]MH_SAM_APDU [11:12:08]CAPDU: 80 09 00 00 [11:12:08]Write to MH i2c: E2 08 00 1D 49 80 09 00 00 00 00 00 00 D8 [11:12:08]Write i2c OK [11:12:08]MH_I2C_Read... [11:12:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:08]Read from MH i2c: E2 [11:12:08]MH_I2C_Read... [11:12:08]Read from MH i2c: E2 03 00 [11:12:08]MH_I2C_Read... [11:12:08]Read from MH i2c: E2 03 00 1D 49 00 90 00 DA [11:12:08]RAPDU: 90 00 [11:12:08]wFMCommunicate OK [11:12:08]SAM_PROTO_ClearQueue done [11:12:08]KKMCreateOFDPacket [11:12:08]OFDProtocolAddRootSTLVToBuf [11:12:08]FM_MakeSignedData [11:12:08]FM_MakeSignedData [11:12:08]SAM_PROTO_SignData [11:12:08]wFMCommunicate request_size=4 [11:12:08]MH_SAM_APDU [11:12:08]CAPDU: 80 0D 01 02 [11:12:08]Write to MH i2c: E2 08 00 1E 49 80 0D 01 02 00 00 00 00 E0 [11:12:08]Write i2c OK [11:12:08]MH_I2C_Read... [11:12:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:08]Read from MH i2c: E2 [11:12:08]MH_I2C_Read... [11:12:08]Read from MH i2c: E2 03 00 [11:12:08]MH_I2C_Read... [11:12:08]Read from MH i2c: E2 03 00 1E 49 00 90 00 DB [11:12:08]RAPDU: 90 00 [11:12:08]wFMCommunicate OK [11:12:08]wFMCommunicate request_size=255 [11:12:08]MH_SAM_APDU [11:12:08]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 0F C1 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 [11:12:08]Write to MH i2c: E2 02 01 1F 49 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 0F C1 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 00 00 55 [11:12:08]Write i2c OK [11:12:08]MH_I2C_Read... [11:12:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:08]Read from MH i2c: E2 [11:12:08]MH_I2C_Read... [11:12:08]Read from MH i2c: E2 03 00 [11:12:08]MH_I2C_Read... [11:12:08]Read from MH i2c: E2 03 00 1F 49 00 90 00 DC [11:12:08]RAPDU: 90 00 [11:12:08]wFMCommunicate OK [11:12:08]wFMCommunicate request_size=25 [11:12:08]MH_SAM_APDU [11:12:08]CAPDU: 80 0D 02 02 14 39 32 10 04 04 00 AE 69 01 00 35 04 06 00 06 02 A6 0F 62 CA [11:12:08]Write to MH i2c: E2 1C 00 20 49 80 0D 02 02 14 00 39 32 10 04 04 00 AE 69 01 00 35 04 06 00 06 02 A6 0F 62 CA 00 00 CE [11:12:08]Write i2c OK [11:12:08]MH_I2C_Read... [11:12:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:08]Read from MH i2c: E2 [11:12:08]MH_I2C_Read... [11:12:08]Read from MH i2c: E2 03 00 [11:12:08]MH_I2C_Read... [11:12:08]Read from MH i2c: E2 03 00 20 49 00 90 00 DD [11:12:08]RAPDU: 90 00 [11:12:08]wFMCommunicate OK [11:12:08]wFMCommunicate request_size=4 [11:12:08]MH_SAM_APDU [11:12:08]CAPDU: 80 0D 03 02 [11:12:08]Write to MH i2c: E2 08 00 21 49 80 0D 03 02 00 00 00 00 E5 [11:12:08]Write i2c OK [11:12:08]MH_I2C_Read... [11:12:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:08]Read from MH i2c: E2 [11:12:08]MH_I2C_Read... [11:12:08]Read from MH i2c: E2 0B 00 [11:12:08]MH_I2C_Read... [11:12:08]Read from MH i2c: E2 0B 00 21 49 00 6A 16 98 AF 6F C8 16 CC 90 00 C6 [11:12:08]RAPDU: 6A 16 98 AF 6F C8 16 CC 90 00 [11:12:08]wFMCommunicate OK [11:12:08]SAM_PROTO_SignData done [11:12:08]FM_MakeSignedData done [11:12:08]CreateOFDProtocolMessage [11:12:08]wFMCommunicate request_size=4 [11:12:08]MH_SAM_APDU [11:12:08]CAPDU: 80 11 00 00 [11:12:08]Write to MH i2c: E2 08 00 22 49 80 11 00 00 00 00 00 00 E5 [11:12:08]Write i2c OK [11:12:08]MH_I2C_Read... [11:12:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:08]Read from MH i2c: E2 [11:12:08]MH_I2C_Read... [11:12:08]Read from MH i2c: E2 17 00 [11:12:08]MH_I2C_Read... [11:12:08]Read from MH i2c: E2 17 00 22 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 3C [11:12:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:12:08]wFMCommunicate OK [11:12:08]CreateOFDProtocolMessage done [11:12:08]OFDSenderStorePacket 92590 [11:12:08]StoreOFDPacket docnum=92590 [11:12:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 1E 01 00 00 19 FB 16 01 0C D1 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 0F C1 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AE 69 01 00 35 04 06 00 06 02 A6 0F 62 CA 6A 16 98 AF 6F C8 16 CC [11:12:08]CheckFolder [11:12:08]dirname=/storage/ofd_packets [11:12:08]CheckFolder done [11:12:08]ProducePacketName [11:12:08]name=ofd_packets/00092590 [11:12:08]NVStorageSaveData ofd_packets/00092590 [11:12:08]File name is /storage/ofd_packets/00092590 [11:12:08]Write 316 bytes [11:12:08]NVStorageSaveData done [11:12:08]OFDSenderStorePacket done [11:12:08]KKMCreateOFDPacket done [11:12:08]NVStorageSaveData kkm_last_timestamp [11:12:08]File name is /storage/kkm_last_timestamp [11:12:08]Write 4 bytes [11:12:08]NVStorageSaveData done [11:12:08]ExternCall_PrintAddStr [11:12:08]wPrintStart [11:12:08]Write to MH i2c: 01 00 00 23 49 6C [11:12:08]Write i2c OK [11:12:08]MH_I2C_Read... [11:12:08]Read from MH i2c: 01 [11:12:08]MH_I2C_Read... [11:12:08]Read from MH i2c: 01 07 00 [11:12:08]MH_I2C_Read... [11:12:08]Read from MH i2c: 01 07 00 23 49 00 00 00 00 00 FF 0F 81 [11:12:08]RasterBufferAndPrint [11:12:08]line Счет N : (3)127484 [11:12:08]line ИНН: 02508201610067 [11:12:08]line Контрольно-Кассовый Чек [11:12:08]line ПРОДАЖА [11:12:08]line Товар: 48744317 [11:12:08]line Сигареты Camel Yellow [11:12:08]line 1.000 * 154.00 [11:12:08]line = 154.00 [11:12:08]line НДС 12% НСП 1% [11:12:08]line > о реализуемом товаре [11:12:08]line ИТОГО: 154.00 [11:12:08]line НСП 1% : 1.36 [11:12:08]line НДС 12% : 16.35 [11:12:08]line Наличными: 154.00 [11:12:08]line Безнал.: 0.00 [11:12:08]line Место: АЗС № 5 "Партнер Нефть" [11:12:08]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [11:12:08]line СНО: Общий режим [11:12:08]line Чек 38 15.09.2024 11:12 [11:12:08]line Смена: 507 ФФД: 1.0 [11:12:08]line ЗНМ: 03000000022 [11:12:08]line РНМ: 0000000000091423 [11:12:08]line Версия ККМ: 001 [11:12:08]line ФМ: 0000000000874692 [11:12:08]line ФД: 92590 [11:12:08]line ФПД: 6608445727434 [11:12:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T111215&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92590&fm=6608445727434&tin=02508201610067®Number=0000000000091423&sum=15400 [11:12:08]OFD Sender: Processing packet 92590 [packets to send 63, broken 62] [11:12:08]ProducePacketName [11:12:08]name=ofd_packets/00092590 [11:12:08]OFD Sender: To server: pG, [11:12:08]CommunicateWithHost lk.salyk.kg:30040 [11:12:08]ConnectInit lk.salyk.kg [11:12:08]line 0 [11:12:08]written 0, free lines is 4095 [11:12:09]Connected sock=10 [11:12:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 1E 01 00 00 19 FB 16 01 0C D1 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 0F C1 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AE 69 01 00 35 04 06 00 06 02 A6 0F 62 CA 6A 16 98 AF 6F C8 16 CC [11:12:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 82 DD 47 00 AE 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AE 69 01 00 F4 03 04 00 87 69 E6 66 B6 04 01 00 00 1E 6F B5 B3 C5 48 09 BB [11:12:09]CommunicateWithHost err = 0 [11:12:09]CheckOFDResponse [11:12:09]1017 (14) - 77093643461234 [11:12:09]1041 (16) - 0000000000874692 [11:12:09]1040 (4) - 92590 [11:12:09]1012 (4) - 15.09.2024 04:58 [11:12:09]1206 (1) - 0 [11:12:09]OFD Sender: Remove packet 92590 [11:12:09]ProducePacketName [11:12:09]name=ofd_packets/00092590 [11:12:09]NVStorageDeleteData [11:12:09]Write to MH i2c: 01 00 00 4B 49 94 [11:12:09]Write i2c OK [11:12:09]MH_I2C_Read... [11:12:09]Read from MH i2c: 01 [11:12:09]MH_I2C_Read... [11:12:09]Read from MH i2c: 01 07 00 [11:12:09]MH_I2C_Read... [11:12:09]Read from MH i2c: 01 07 00 4B 49 00 00 00 00 00 17 0D BF [11:12:09]RasterBufferAndPrint [11:12:09]line [11:12:09]line [11:12:09]line [11:12:09]line [11:12:09]line [11:12:09]written 0, free lines is 3360 [11:12:09]MH_Cut [11:12:09]Write to MH i2c: D1 01 00 52 49 01 6D [11:12:09]Write i2c OK [11:12:09]MH_I2C_Read... [11:12:09]Read from MH i2c: D1 [11:12:09]MH_I2C_Read... [11:12:09]Read from MH i2c: D1 01 00 [11:12:09]MH_I2C_Read... [11:12:09]Read from MH i2c: D1 01 00 52 49 00 6C [11:12:09]Write to MH i2c: 01 00 00 53 49 9C [11:12:09]Write i2c OK [11:12:09]MH_I2C_Read... [11:12:09]OFD Sender: No OFD packet to send [11:12:10]*** Cut start [11:12:10]*** Purtial cut [11:12:10]*** Stage 1: CUTSNS_PIN = 1 [11:12:12]Read from MH i2c: 01 [11:12:12]MH_I2C_Read... [11:12:12]*** Stop cut motor [11:12:12]*** Cut end [11:12:12]Read from MH i2c: 01 07 00 [11:12:12]MH_I2C_Read... [11:12:12]Read from MH i2c: 01 07 00 53 49 00 00 00 00 00 FF 0F B1 [11:12:12]process_action close_receipt done [11:12:12]requested_data is exist [11:12:12]produce_requested_data [11:12:12]requested_item fm.sn is exist - process it [11:12:12]wFMCommunicate request_size=4 [11:12:12]MH_SAM_APDU [11:12:12]CAPDU: 80 11 00 00 [11:12:12]Write to MH i2c: E2 08 00 54 49 80 11 00 00 00 00 00 00 17 [11:12:12]Write i2c OK [11:12:12]MH_I2C_Read... [11:12:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:12]Read from MH i2c: E2 [11:12:12]MH_I2C_Read... [11:12:12]Read from MH i2c: E2 17 00 [11:12:12]MH_I2C_Read... [11:12:12]Read from MH i2c: E2 17 00 54 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 6E [11:12:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:12:12]wFMCommunicate OK [11:12:12]requested_item fd.num is exist - process it [11:12:12]SAM_PROTO_GetFieldsCounters [11:12:12]wFMCommunicate request_size=4 [11:12:12]MH_SAM_APDU [11:12:12]CAPDU: 80 13 00 00 [11:12:12]Write to MH i2c: E2 08 00 55 49 80 13 00 00 00 00 00 00 1A [11:12:12]Write i2c OK [11:12:12]MH_I2C_Read... [11:12:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:12]Read from MH i2c: E2 [11:12:12]MH_I2C_Read... [11:12:12]Read from MH i2c: E2 62 00 [11:12:12]MH_I2C_Read... [11:12:12]Read from MH i2c: E2 62 00 55 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 AE 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [11:12:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 AE 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:12]wFMCommunicate OK [11:12:12]SAM_PROTO_GetFieldsCounters done [11:12:12]requested_item shift.num is exist - process it [11:12:12]requested_item shift.opened is exist - process it [11:12:12]req_shift_opened [11:12:12]FM_GetShiftState [11:12:12]SAM_PROTO_GetShiftState [11:12:12]wFMCommunicate request_size=4 [11:12:12]MH_SAM_APDU [11:12:12]CAPDU: 80 13 01 00 [11:12:12]Write to MH i2c: E2 08 00 56 49 80 13 01 00 00 00 00 00 1C [11:12:12]Write i2c OK [11:12:12]MH_I2C_Read... [11:12:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:12]Read from MH i2c: E2 [11:12:12]MH_I2C_Read... [11:12:12]Read from MH i2c: E2 0E 00 [11:12:12]MH_I2C_Read... [11:12:12]Read from MH i2c: E2 0E 00 56 49 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 9E [11:12:12]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [11:12:12]wFMCommunicate OK [11:12:12]SAM_PROTO_GetShiftState done [11:12:12]FM_GetShiftState done [11:12:12]req_shift_opened done [11:12:12]requested_item shift.open_date is exist - process it [11:12:12]req_shift_open_date [11:12:12]req_shift_open_date done [11:12:12]produce_requested_data done [11:12:12]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92590,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [11:12:12]process_action_free close_receipt [11:12:12]json_value_free [11:12:12]json_value_free done [11:12:12]process_json_proto returns [11:12:12]Send response to host [11:12:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92590,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [11:12:12]free response buf [11:12:12]execute_script done [11:12:12]execute_script returns [11:12:12]free content buf [11:12:12]Sock 9.Close socket [11:12:12]Sock 9.Thread stoped [11:12:14]OFD Sender: No OFD packet to send [11:12:19]OFD Sender: No OFD packet to send [11:12:24]OFD Sender: No OFD packet to send [11:12:29]OFD Sender: No OFD packet to send [11:12:34]OFD Sender: No OFD packet to send [11:12:39]OFD Sender: No OFD packet to send [11:12:44]OFD Sender: No OFD packet to send [11:12:49]OFD Sender: No OFD packet to send [11:12:54]OFD Sender: No OFD packet to send [11:12:59]OFD Sender: No OFD packet to send [11:13:04]OFD Sender: No OFD packet to send [11:13:09]OFD Sender: No OFD packet to send [11:13:14]OFD Sender: No OFD packet to send [11:13:19]OFD Sender: No OFD packet to send [11:13:24]OFD Sender: No OFD packet to send [11:13:29]OFD Sender: No OFD packet to send [11:13:34]OFD Sender: No OFD packet to send [11:13:39]OFD Sender: No OFD packet to send [11:13:44]OFD Sender: No OFD packet to send [11:13:49]OFD Sender: No OFD packet to send [11:13:54]OFD Sender: No OFD packet to send [11:13:59]OFD Sender: No OFD packet to send [11:14:04]OFD Sender: No OFD packet to send [11:14:09]OFD Sender: No OFD packet to send [11:14:14]OFD Sender: No OFD packet to send [11:14:19]OFD Sender: No OFD packet to send [11:14:24]OFD Sender: No OFD packet to send [11:14:29]OFD Sender: No OFD packet to send [11:14:34]OFD Sender: No OFD packet to send [11:14:39]OFD Sender: No OFD packet to send [11:14:44]OFD Sender: No OFD packet to send [11:14:49]OFD Sender: No OFD packet to send [11:14:54]OFD Sender: No OFD packet to send [11:14:59]OFD Sender: No OFD packet to send [11:15:04]OFD Sender: No OFD packet to send [11:15:09]OFD Sender: No OFD packet to send [11:15:14]OFD Sender: No OFD packet to send [11:15:19]OFD Sender: No OFD packet to send [11:15:24]OFD Sender: No OFD packet to send [11:15:29]OFD Sender: No OFD packet to send [11:15:34]OFD Sender: No OFD packet to send [11:15:39]OFD Sender: No OFD packet to send [11:15:44]OFD Sender: No OFD packet to send [11:15:49]OFD Sender: No OFD packet to send [11:15:54]OFD Sender: No OFD packet to send [11:15:59]OFD Sender: No OFD packet to send [11:16:04]OFD Sender: No OFD packet to send [11:16:09]OFD Sender: No OFD packet to send [11:16:14]OFD Sender: No OFD packet to send [11:16:19]OFD Sender: No OFD packet to send [11:16:24]OFD Sender: No OFD packet to send [11:16:29]OFD Sender: No OFD packet to send [11:16:34]OFD Sender: No OFD packet to send [11:16:39]OFD Sender: No OFD packet to send [11:16:45]OFD Sender: No OFD packet to send [11:16:50]OFD Sender: No OFD packet to send [11:16:55]OFD Sender: No OFD packet to send [11:17:00]OFD Sender: No OFD packet to send [11:17:05]OFD Sender: No OFD packet to send [11:17:10]OFD Sender: No OFD packet to send [11:17:15]OFD Sender: No OFD packet to send [11:17:20]OFD Sender: No OFD packet to send [11:17:25]OFD Sender: No OFD packet to send [11:17:30]OFD Sender: No OFD packet to send [11:17:35]OFD Sender: No OFD packet to send [11:17:40]OFD Sender: No OFD packet to send [11:17:45]OFD Sender: No OFD packet to send [11:17:50]OFD Sender: No OFD packet to send [11:17:55]OFD Sender: No OFD packet to send [11:18:00]OFD Sender: No OFD packet to send [11:18:05]OFD Sender: No OFD packet to send [11:18:10]OFD Sender: No OFD packet to send [11:18:15]OFD Sender: No OFD packet to send [11:18:20]OFD Sender: No OFD packet to send [11:18:25]OFD Sender: No OFD packet to send [11:18:30]OFD Sender: No OFD packet to send [11:18:35]OFD Sender: No OFD packet to send [11:18:40]OFD Sender: No OFD packet to send [11:18:45]OFD Sender: No OFD packet to send [11:18:50]OFD Sender: No OFD packet to send [11:18:55]OFD Sender: No OFD packet to send [11:19:00]OFD Sender: No OFD packet to send [11:19:05]OFD Sender: No OFD packet to send [11:19:10]OFD Sender: No OFD packet to send [11:19:15]OFD Sender: No OFD packet to send [11:19:20]OFD Sender: No OFD packet to send [11:19:25]OFD Sender: No OFD packet to send [11:19:30]OFD Sender: No OFD packet to send [11:19:35]OFD Sender: No OFD packet to send [11:19:40]OFD Sender: No OFD packet to send [11:19:45]OFD Sender: No OFD packet to send [11:19:50]OFD Sender: No OFD packet to send [11:19:55]OFD Sender: No OFD packet to send [11:20:00]OFD Sender: No OFD packet to send [11:20:05]OFD Sender: No OFD packet to send [11:20:10]OFD Sender: No OFD packet to send [11:20:15]OFD Sender: No OFD packet to send [11:20:20]OFD Sender: No OFD packet to send [11:20:25]OFD Sender: No OFD packet to send [11:20:30]OFD Sender: No OFD packet to send [11:20:35]OFD Sender: No OFD packet to send [11:20:40]OFD Sender: No OFD packet to send [11:20:45]OFD Sender: No OFD packet to send [11:20:50]OFD Sender: No OFD packet to send [11:20:55]OFD Sender: No OFD packet to send [11:21:00]OFD Sender: No OFD packet to send [11:21:05]OFD Sender: No OFD packet to send [11:21:10]OFD Sender: No OFD packet to send [11:21:15]OFD Sender: No OFD packet to send [11:21:20]OFD Sender: No OFD packet to send [11:21:25]OFD Sender: No OFD packet to send [11:21:30]OFD Sender: No OFD packet to send [11:21:35]OFD Sender: No OFD packet to send [11:21:40]OFD Sender: No OFD packet to send [11:21:45]OFD Sender: No OFD packet to send [11:21:50]OFD Sender: No OFD packet to send [11:21:55]OFD Sender: No OFD packet to send [11:22:00]OFD Sender: No OFD packet to send [11:22:05]OFD Sender: No OFD packet to send [11:22:10]OFD Sender: No OFD packet to send [11:22:15]OFD Sender: No OFD packet to send [11:22:20]OFD Sender: No OFD packet to send [11:22:25]OFD Sender: No OFD packet to send [11:22:30]OFD Sender: No OFD packet to send [11:22:35]OFD Sender: No OFD packet to send [11:22:40]OFD Sender: No OFD packet to send [11:22:45]OFD Sender: No OFD packet to send [11:22:50]OFD Sender: No OFD packet to send [11:22:55]OFD Sender: No OFD packet to send [11:23:00]OFD Sender: No OFD packet to send [11:23:05]OFD Sender: No OFD packet to send [11:23:10]OFD Sender: No OFD packet to send [11:23:15]OFD Sender: No OFD packet to send [11:23:20]OFD Sender: No OFD packet to send [11:23:25]OFD Sender: No OFD packet to send [11:23:30]OFD Sender: No OFD packet to send [11:23:35]OFD Sender: No OFD packet to send [11:23:40]OFD Sender: No OFD packet to send [11:23:45]OFD Sender: No OFD packet to send [11:23:50]OFD Sender: No OFD packet to send [11:23:55]OFD Sender: No OFD packet to send [11:24:00]OFD Sender: No OFD packet to send [11:24:05]OFD Sender: No OFD packet to send [11:24:10]OFD Sender: No OFD packet to send [11:24:15]OFD Sender: No OFD packet to send [11:24:20]OFD Sender: No OFD packet to send [11:24:25]OFD Sender: No OFD packet to send [11:24:30]OFD Sender: No OFD packet to send [11:24:35]OFD Sender: No OFD packet to send [11:24:40]OFD Sender: No OFD packet to send [11:24:45]OFD Sender: No OFD packet to send [11:24:50]OFD Sender: No OFD packet to send [11:24:55]OFD Sender: No OFD packet to send [11:25:00]OFD Sender: No OFD packet to send [11:25:05]OFD Sender: No OFD packet to send [11:25:10]OFD Sender: No OFD packet to send [11:25:15]OFD Sender: No OFD packet to send [11:25:20]OFD Sender: No OFD packet to send [11:25:25]OFD Sender: No OFD packet to send [11:25:30]OFD Sender: No OFD packet to send [11:25:35]OFD Sender: No OFD packet to send [11:25:40]OFD Sender: No OFD packet to send [11:25:45]OFD Sender: No OFD packet to send [11:25:50]OFD Sender: No OFD packet to send [11:25:55]OFD Sender: No OFD packet to send [11:26:00]OFD Sender: No OFD packet to send [11:26:05]OFD Sender: No OFD packet to send [11:26:10]OFD Sender: No OFD packet to send [11:26:15]OFD Sender: No OFD packet to send [11:26:20]OFD Sender: No OFD packet to send [11:26:25]OFD Sender: No OFD packet to send [11:26:30]OFD Sender: No OFD packet to send [11:26:35]OFD Sender: No OFD packet to send [11:26:40]OFD Sender: No OFD packet to send [11:26:45]OFD Sender: No OFD packet to send [11:26:50]OFD Sender: No OFD packet to send [11:26:55]OFD Sender: No OFD packet to send [11:27:00]OFD Sender: No OFD packet to send [11:27:05]OFD Sender: No OFD packet to send [11:27:10]OFD Sender: No OFD packet to send [11:27:15]OFD Sender: No OFD packet to send [11:27:20]OFD Sender: No OFD packet to send [11:27:25]OFD Sender: No OFD packet to send [11:27:30]OFD Sender: No OFD packet to send [11:27:35]OFD Sender: No OFD packet to send [11:27:40]OFD Sender: No OFD packet to send [11:27:45]OFD Sender: No OFD packet to send [11:27:50]OFD Sender: No OFD packet to send [11:27:55]OFD Sender: No OFD packet to send [11:28:00]OFD Sender: No OFD packet to send [11:28:05]OFD Sender: No OFD packet to send [11:28:10]OFD Sender: No OFD packet to send [11:28:15]OFD Sender: No OFD packet to send [11:28:20]OFD Sender: No OFD packet to send [11:28:25]OFD Sender: No OFD packet to send [11:28:30]OFD Sender: No OFD packet to send [11:28:35]OFD Sender: No OFD packet to send [11:28:40]OFD Sender: No OFD packet to send [11:28:45]OFD Sender: No OFD packet to send [11:28:50]OFD Sender: No OFD packet to send [11:28:55]OFD Sender: No OFD packet to send [11:29:00]OFD Sender: No OFD packet to send [11:29:05]OFD Sender: No OFD packet to send [11:29:10]OFD Sender: No OFD packet to send [11:29:15]OFD Sender: No OFD packet to send [11:29:20]OFD Sender: No OFD packet to send [11:29:25]OFD Sender: No OFD packet to send [11:29:30]OFD Sender: No OFD packet to send [11:29:35]OFD Sender: No OFD packet to send [11:29:40]OFD Sender: No OFD packet to send [11:29:45]OFD Sender: No OFD packet to send [11:29:50]OFD Sender: No OFD packet to send [11:29:55]OFD Sender: No OFD packet to send [11:30:00]OFD Sender: No OFD packet to send [11:30:05]OFD Sender: No OFD packet to send [11:30:10]OFD Sender: No OFD packet to send [11:30:15]OFD Sender: No OFD packet to send [11:30:20]OFD Sender: No OFD packet to send [11:30:25]OFD Sender: No OFD packet to send [11:30:30]OFD Sender: No OFD packet to send [11:30:35]OFD Sender: No OFD packet to send [11:30:40]OFD Sender: No OFD packet to send [11:30:44]accept exits with 8 [11:30:44]New connection [11:30:44]New thread 3066801508 created [11:30:44]Thread 3066658148 joined [11:30:44]Waiting for new connection... [11:30:44] Sock 8.Parse request [11:30:44]Sock 8.Check first char [11:30:44]Sock 8.First char is OK [11:30:44]request: POST /json_proto HTTP/1.0 [11:30:44]Method: POST [11:30:44]URL: /json_proto [11:30:44]Method is POST - this is cgi request [11:30:44]url: /json_proto [11:30:44]query_string will be loaded in cgi processing [11:30:44]execute_cgi json_proto POST (null) [11:30:44]execute_cgi path=json_proto method=POST [11:30:44]POST find Content-Length [11:30:44]Host: 172.17.57.71:8080 [11:30:44]Content-Length: 634 [11:30:44]Content-Type: application/json [11:30:44] [11:30:44]POST finish read [11:30:44]Found Content-Length = 634 [11:30:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127485", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 4.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:44]execute_script... [11:30:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127485", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 4.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:44]POST & json_proto [11:30:44]process_json_proto [11:30:44]json parsed OK: [11:30:44]protocol is kg_v1.0 [11:30:44]action value=close_receipt [11:30:44]process_action close_receipt [11:30:44]cmd_close_receipt [11:30:44]MH_GetDate [11:30:44]Write to MH i2c: F0 00 00 57 49 8F [11:30:44]Write i2c OK [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: F0 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: F0 09 00 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: F0 09 00 57 49 00 6C C5 E6 66 33 3A A4 66 8C [11:30:44]GetLastDocTimeStamp 1726398735 [11:30:44]current date 1726399852 [11:30:44]FM_GetShiftState [11:30:44]SAM_PROTO_GetShiftState [11:30:44]wFMCommunicate request_size=4 [11:30:44]MH_SAM_APDU [11:30:44]CAPDU: 80 13 01 00 [11:30:44]Write to MH i2c: E2 08 00 58 49 80 13 01 00 00 00 00 00 1E [11:30:44]Write i2c OK [11:30:44]MH_I2C_Read... [11:30:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:44]Read from MH i2c: E2 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: E2 0E 00 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: E2 0E 00 58 49 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 A0 [11:30:44]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [11:30:44]wFMCommunicate OK [11:30:44]SAM_PROTO_GetShiftState done [11:30:44]FM_GetShiftState done [11:30:44]opened in 1726359809 [11:30:44]opened+sec_in_day 1726446209 [11:30:44]quantity*price = 16000 [11:30:44]sum+1 = 16001 [11:30:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 39 15.09.2024 11:30 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92591 ФПД: 34422577898058 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T113052&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92591&fm=34422577898058&tin=02508201610067®Number=0000000000091423&sum=16000 0 [11:30:45]StoreToDocumentArchive [11:30:45]shift 507 fd 92591 [11:30:45]save to /storage/0507/doc_00092591 [11:30:45]save last doc name /storage/0507/doc_00092591 to /storage/kkm_last_doc_name [11:30:45]save OK [11:30:45]Clear old archive folders... [11:30:45]ProcessDocumentItem done err = 0, tmpTLVsize=271 [11:30:45]tlvbuf is 00F9FA20 [11:30:45]SAM_PROTO_ClearQueue [11:30:45]wFMCommunicate request_size=4 [11:30:45]MH_SAM_APDU [11:30:45]CAPDU: 80 09 00 00 [11:30:45]Write to MH i2c: E2 08 00 65 49 80 09 00 00 00 00 00 00 20 [11:30:45]Write i2c OK [11:30:45]MH_I2C_Read... [11:30:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:45]Read from MH i2c: E2 [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: E2 03 00 [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: E2 03 00 65 49 00 90 00 22 [11:30:45]RAPDU: 90 00 [11:30:45]wFMCommunicate OK [11:30:45]SAM_PROTO_ClearQueue done [11:30:45]KKMCreateOFDPacket [11:30:45]OFDProtocolAddRootSTLVToBuf [11:30:45]FM_MakeSignedData [11:30:45]FM_MakeSignedData [11:30:45]SAM_PROTO_SignData [11:30:45]wFMCommunicate request_size=4 [11:30:45]MH_SAM_APDU [11:30:45]CAPDU: 80 0D 01 02 [11:30:45]Write to MH i2c: E2 08 00 66 49 80 0D 01 02 00 00 00 00 28 [11:30:45]Write i2c OK [11:30:45]MH_I2C_Read... [11:30:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:45]Read from MH i2c: E2 [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: E2 03 00 [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: E2 03 00 66 49 00 90 00 23 [11:30:45]RAPDU: 90 00 [11:30:45]wFMCommunicate OK [11:30:45]wFMCommunicate request_size=255 [11:30:45]MH_SAM_APDU [11:30:45]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 6C C5 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 [11:30:45]Write to MH i2c: E2 02 01 67 49 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 6C C5 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 02 [11:30:45]Write i2c OK [11:30:45]MH_I2C_Read... [11:30:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:45]Read from MH i2c: E2 [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: E2 03 00 [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: E2 03 00 67 49 00 90 00 24 [11:30:45]RAPDU: 90 00 [11:30:45]wFMCommunicate OK [11:30:45]wFMCommunicate request_size=30 [11:30:45]MH_SAM_APDU [11:30:45]CAPDU: 80 0D 02 02 19 30 38 37 34 36 39 32 10 04 04 00 AF 69 01 00 35 04 06 00 1F 4E A1 87 22 4A [11:30:45]Write to MH i2c: E2 21 00 68 49 80 0D 02 02 19 00 30 38 37 34 36 39 32 10 04 04 00 AF 69 01 00 35 04 06 00 1F 4E A1 87 22 4A 00 00 42 [11:30:45]Write i2c OK [11:30:45]MH_I2C_Read... [11:30:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:45]Read from MH i2c: E2 [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: E2 03 00 [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: E2 03 00 68 49 00 90 00 25 [11:30:45]RAPDU: 90 00 [11:30:45]wFMCommunicate OK [11:30:45]wFMCommunicate request_size=4 [11:30:45]MH_SAM_APDU [11:30:45]CAPDU: 80 0D 03 02 [11:30:45]Write to MH i2c: E2 08 00 69 49 80 0D 03 02 00 00 00 00 2D [11:30:45]Write i2c OK [11:30:45]MH_I2C_Read... [11:30:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:45]Read from MH i2c: E2 [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: E2 0B 00 [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: E2 0B 00 69 49 00 4C D5 83 44 8C DD 94 09 90 00 1C [11:30:45]RAPDU: 4C D5 83 44 8C DD 94 09 90 00 [11:30:45]wFMCommunicate OK [11:30:45]SAM_PROTO_SignData done [11:30:45]FM_MakeSignedData done [11:30:45]CreateOFDProtocolMessage [11:30:45]wFMCommunicate request_size=4 [11:30:45]MH_SAM_APDU [11:30:45]CAPDU: 80 11 00 00 [11:30:45]Write to MH i2c: E2 08 00 6A 49 80 11 00 00 00 00 00 00 2D [11:30:45]Write i2c OK [11:30:45]MH_I2C_Read... [11:30:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:45]Read from MH i2c: E2 [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: E2 17 00 [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: E2 17 00 6A 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 84 [11:30:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:30:45]wFMCommunicate OK [11:30:45]CreateOFDProtocolMessage done [11:30:45]OFDSenderStorePacket 92591 [11:30:45]StoreOFDPacket docnum=92591 [11:30:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 1C 12 1B 01 FB 05 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 6C C5 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AF 69 01 00 35 04 06 00 1F 4E A1 87 22 4A 4C D5 83 44 8C DD 94 09 [11:30:45]CheckFolder [11:30:45]dirname=/storage/ofd_packets [11:30:45]CheckFolder done [11:30:45]ProducePacketName [11:30:45]name=ofd_packets/00092591 [11:30:45]NVStorageSaveData ofd_packets/00092591 [11:30:45]File name is /storage/ofd_packets/00092591 [11:30:45]Write 321 bytes [11:30:45]NVStorageSaveData done [11:30:45]OFDSenderStorePacket done [11:30:45]KKMCreateOFDPacket done [11:30:45]NVStorageSaveData kkm_last_timestamp [11:30:45]File name is /storage/kkm_last_timestamp [11:30:45]Write 4 bytes [11:30:45]NVStorageSaveData done [11:30:45]ExternCall_PrintAddStr [11:30:45]wPrintStart [11:30:45]Write to MH i2c: 01 00 00 6B 49 B4 [11:30:45]OFD Sender: Processing packet 92591 [packets to send 63, broken 62] [11:30:45]ProducePacketName [11:30:45]name=ofd_packets/00092591 [11:30:45]OFD Sender: To server: pG, [11:30:45]CommunicateWithHost lk.salyk.kg:30040 [11:30:45]ConnectInit lk.salyk.kg [11:30:45]Write i2c OK [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: 01 [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: 01 07 00 [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: 01 07 00 6B 49 00 00 00 00 00 FF 0F C9 [11:30:45]RasterBufferAndPrint [11:30:45]line Счет N : (3)127485 [11:30:45]line ИНН: 02508201610067 [11:30:45]line Контрольно-Кассовый Чек [11:30:45]line ПРОДАЖА [11:30:45]line Товар: 4700000160211 [11:30:45]line Вода Легенда 0,5л [11:30:45]line 4.000 * 40.00 [11:30:45]line = 160.00 [11:30:45]line НДС 12% НСП 1% [11:30:45]line > о реализуемом товаре [11:30:45]line ИТОГО: 160.00 [11:30:45]line НСП 1% : 1.42 [11:30:45]line НДС 12% : 16.99 [11:30:45]line Наличными: 160.00 [11:30:45]line Безнал.: 0.00 [11:30:45]line Место: АЗС № 5 "Партнер Нефть" [11:30:45]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [11:30:45]line СНО: Общий режим [11:30:45]line Чек 39 15.09.2024 11:30 [11:30:45]line Смена: 507 ФФД: 1.0 [11:30:45]line ЗНМ: 03000000022 [11:30:45]line РНМ: 0000000000091423 [11:30:45]line Версия ККМ: 001 [11:30:45]line ФМ: 0000000000874692 [11:30:45]line ФД: 92591 [11:30:45]line ФПД: 34422577898058 [11:30:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T113052&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92591&fm=34422577898058&tin=02508201610067®Number=0000000000091423&sum=16000 [11:30:46]Connected sock=10 [11:30:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 1C 12 1B 01 FB 05 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 6C C5 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AF 69 01 00 35 04 06 00 1F 4E A1 87 22 4A 4C D5 83 44 8C DD 94 09 [11:30:46]line 0 [11:30:46]written 0, free lines is 4095 [11:30:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 4B 28 47 00 68 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AF 69 01 00 F4 03 04 00 E4 6D E6 66 B6 04 01 00 00 33 59 9D D1 58 F0 7D 38 [11:30:46]CommunicateWithHost err = 0 [11:30:46]CheckOFDResponse [11:30:46]1017 (14) - 77093643461234 [11:30:46]1041 (16) - 0000000000874692 [11:30:46]1040 (4) - 92591 [11:30:46]1012 (4) - 15.09.2024 05:17 [11:30:46]1206 (1) - 0 [11:30:46]OFD Sender: Remove packet 92591 [11:30:46]ProducePacketName [11:30:46]name=ofd_packets/00092591 [11:30:46]NVStorageDeleteData [11:30:46]Write to MH i2c: 01 00 00 93 49 DC [11:30:46]Write i2c OK [11:30:46]MH_I2C_Read... [11:30:46]Read from MH i2c: 01 [11:30:46]MH_I2C_Read... [11:30:46]Read from MH i2c: 01 07 00 [11:30:46]MH_I2C_Read... [11:30:46]Read from MH i2c: 01 07 00 93 49 00 00 00 00 00 1A 0D 0A [11:30:46]RasterBufferAndPrint [11:30:46]line [11:30:46]line [11:30:46]line [11:30:46]line [11:30:46]line [11:30:46]written 0, free lines is 3362 [11:30:46]MH_Cut [11:30:46]Write to MH i2c: D1 01 00 9A 49 01 B5 [11:30:46]Write i2c OK [11:30:46]MH_I2C_Read... [11:30:46]Read from MH i2c: D1 [11:30:46]MH_I2C_Read... [11:30:46]Read from MH i2c: D1 01 00 [11:30:46]MH_I2C_Read... [11:30:46]Read from MH i2c: D1 01 00 9A 49 00 B4 [11:30:46]Write to MH i2c: 01 00 00 9B 49 E4 [11:30:46]Write i2c OK [11:30:46]MH_I2C_Read... [11:30:46]OFD Sender: No OFD packet to send [11:30:47]*** Cut start [11:30:47]*** Purtial cut [11:30:47]*** Stage 1: CUTSNS_PIN = 1 [11:30:49]Read from MH i2c: 01 [11:30:49]MH_I2C_Read... [11:30:49]*** Stop cut motor [11:30:49]*** Cut end [11:30:49]Read from MH i2c: 01 07 00 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: 01 07 00 9B 49 00 00 00 00 00 FF 0F F9 [11:30:49]process_action close_receipt done [11:30:49]requested_data is exist [11:30:49]produce_requested_data [11:30:49]requested_item fm.sn is exist - process it [11:30:49]wFMCommunicate request_size=4 [11:30:49]MH_SAM_APDU [11:30:49]CAPDU: 80 11 00 00 [11:30:49]Write to MH i2c: E2 08 00 9C 49 80 11 00 00 00 00 00 00 5F [11:30:49]Write i2c OK [11:30:49]MH_I2C_Read... [11:30:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:49]Read from MH i2c: E2 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 17 00 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 17 00 9C 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B6 [11:30:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:30:49]wFMCommunicate OK [11:30:49]requested_item fd.num is exist - process it [11:30:49]SAM_PROTO_GetFieldsCounters [11:30:49]wFMCommunicate request_size=4 [11:30:49]MH_SAM_APDU [11:30:49]CAPDU: 80 13 00 00 [11:30:49]Write to MH i2c: E2 08 00 9D 49 80 13 00 00 00 00 00 00 62 [11:30:49]Write i2c OK [11:30:49]MH_I2C_Read... [11:30:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:49]Read from MH i2c: E2 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 62 00 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 62 00 9D 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 AF 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [11:30:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 AF 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:49]wFMCommunicate OK [11:30:49]SAM_PROTO_GetFieldsCounters done [11:30:49]requested_item shift.num is exist - process it [11:30:49]requested_item shift.opened is exist - process it [11:30:49]req_shift_opened [11:30:49]FM_GetShiftState [11:30:49]SAM_PROTO_GetShiftState [11:30:49]wFMCommunicate request_size=4 [11:30:49]MH_SAM_APDU [11:30:49]CAPDU: 80 13 01 00 [11:30:49]Write to MH i2c: E2 08 00 9E 49 80 13 01 00 00 00 00 00 64 [11:30:49]Write i2c OK [11:30:49]MH_I2C_Read... [11:30:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:49]Read from MH i2c: E2 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 0E 00 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 0E 00 9E 49 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 E6 [11:30:49]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [11:30:49]wFMCommunicate OK [11:30:49]SAM_PROTO_GetShiftState done [11:30:49]FM_GetShiftState done [11:30:49]req_shift_opened done [11:30:49]requested_item shift.open_date is exist - process it [11:30:49]req_shift_open_date [11:30:49]req_shift_open_date done [11:30:49]produce_requested_data done [11:30:49]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92591,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [11:30:49]process_action_free close_receipt [11:30:49]json_value_free [11:30:49]json_value_free done [11:30:49]process_json_proto returns [11:30:49]Send response to host [11:30:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92591,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [11:30:49]free response buf [11:30:49]execute_script done [11:30:49]execute_script returns [11:30:49]free content buf [11:30:49]Sock 8.Close socket [11:30:49]Sock 8.Thread stoped [11:30:51]OFD Sender: No OFD packet to send [11:30:56]OFD Sender: No OFD packet to send [11:31:01]OFD Sender: No OFD packet to send [11:31:06]OFD Sender: No OFD packet to send [11:31:11]OFD Sender: No OFD packet to send [11:31:16]OFD Sender: No OFD packet to send [11:31:21]OFD Sender: No OFD packet to send [11:31:26]OFD Sender: No OFD packet to send [11:31:31]OFD Sender: No OFD packet to send [11:31:36]OFD Sender: No OFD packet to send [11:31:41]OFD Sender: No OFD packet to send [11:31:46]OFD Sender: No OFD packet to send [11:31:51]OFD Sender: No OFD packet to send [11:31:56]OFD Sender: No OFD packet to send [11:32:01]OFD Sender: No OFD packet to send [11:32:06]OFD Sender: No OFD packet to send [11:32:11]OFD Sender: No OFD packet to send [11:32:16]OFD Sender: No OFD packet to send [11:32:21]OFD Sender: No OFD packet to send [11:32:26]OFD Sender: No OFD packet to send [11:32:31]OFD Sender: No OFD packet to send [11:32:36]OFD Sender: No OFD packet to send [11:32:41]OFD Sender: No OFD packet to send [11:32:46]OFD Sender: No OFD packet to send [11:32:51]OFD Sender: No OFD packet to send [11:32:56]OFD Sender: No OFD packet to send [11:33:01]OFD Sender: No OFD packet to send [11:33:06]OFD Sender: No OFD packet to send [11:33:11]OFD Sender: No OFD packet to send [11:33:16]OFD Sender: No OFD packet to send [11:33:21]OFD Sender: No OFD packet to send [11:33:26]OFD Sender: No OFD packet to send [11:33:31]OFD Sender: No OFD packet to send [11:33:36]OFD Sender: No OFD packet to send [11:33:41]OFD Sender: No OFD packet to send [11:33:46]OFD Sender: No OFD packet to send [11:33:51]OFD Sender: No OFD packet to send [11:33:56]OFD Sender: No OFD packet to send [11:34:01]OFD Sender: No OFD packet to send [11:34:06]OFD Sender: No OFD packet to send [11:34:11]OFD Sender: No OFD packet to send [11:34:17]OFD Sender: No OFD packet to send [11:34:22]OFD Sender: No OFD packet to send [11:34:27]OFD Sender: No OFD packet to send [11:34:32]OFD Sender: No OFD packet to send [11:34:37]OFD Sender: No OFD packet to send [11:34:42]OFD Sender: No OFD packet to send [11:34:47]OFD Sender: No OFD packet to send [11:34:52]OFD Sender: No OFD packet to send [11:34:57]OFD Sender: No OFD packet to send [11:35:02]OFD Sender: No OFD packet to send [11:35:07]OFD Sender: No OFD packet to send [11:35:12]OFD Sender: No OFD packet to send [11:35:17]OFD Sender: No OFD packet to send [11:35:22]OFD Sender: No OFD packet to send [11:35:27]OFD Sender: No OFD packet to send [11:35:32]OFD Sender: No OFD packet to send [11:35:37]OFD Sender: No OFD packet to send [11:35:42]OFD Sender: No OFD packet to send [11:35:47]OFD Sender: No OFD packet to send [11:35:52]OFD Sender: No OFD packet to send [11:35:57]OFD Sender: No OFD packet to send [11:36:02]OFD Sender: No OFD packet to send [11:36:07]OFD Sender: No OFD packet to send [11:36:12]OFD Sender: No OFD packet to send [11:36:17]OFD Sender: No OFD packet to send [11:36:22]OFD Sender: No OFD packet to send [11:36:27]OFD Sender: No OFD packet to send [11:36:32]OFD Sender: No OFD packet to send [11:36:37]OFD Sender: No OFD packet to send [11:36:42]OFD Sender: No OFD packet to send [11:36:47]OFD Sender: No OFD packet to send [11:36:52]OFD Sender: No OFD packet to send [11:36:57]OFD Sender: No OFD packet to send [11:37:02]OFD Sender: No OFD packet to send [11:37:07]OFD Sender: No OFD packet to send [11:37:12]OFD Sender: No OFD packet to send [11:37:17]OFD Sender: No OFD packet to send [11:37:22]OFD Sender: No OFD packet to send [11:37:27]OFD Sender: No OFD packet to send [11:37:32]OFD Sender: No OFD packet to send [11:37:37]OFD Sender: No OFD packet to send [11:37:42]OFD Sender: No OFD packet to send [11:37:47]OFD Sender: No OFD packet to send [11:37:52]OFD Sender: No OFD packet to send [11:37:57]OFD Sender: No OFD packet to send [11:38:02]OFD Sender: No OFD packet to send [11:38:07]OFD Sender: No OFD packet to send [11:38:12]OFD Sender: No OFD packet to send [11:38:17]OFD Sender: No OFD packet to send [11:38:22]OFD Sender: No OFD packet to send [11:38:27]OFD Sender: No OFD packet to send [11:38:32]OFD Sender: No OFD packet to send [11:38:37]OFD Sender: No OFD packet to send [11:38:42]OFD Sender: No OFD packet to send [11:38:47]OFD Sender: No OFD packet to send [11:38:52]OFD Sender: No OFD packet to send [11:38:57]OFD Sender: No OFD packet to send [11:39:02]OFD Sender: No OFD packet to send [11:39:07]OFD Sender: No OFD packet to send [11:39:12]OFD Sender: No OFD packet to send [11:39:17]OFD Sender: No OFD packet to send [11:39:22]OFD Sender: No OFD packet to send [11:39:27]OFD Sender: No OFD packet to send [11:39:32]OFD Sender: No OFD packet to send [11:39:37]OFD Sender: No OFD packet to send [11:39:42]OFD Sender: No OFD packet to send [11:39:47]OFD Sender: No OFD packet to send [11:39:52]OFD Sender: No OFD packet to send [11:39:57]OFD Sender: No OFD packet to send [11:40:02]OFD Sender: No OFD packet to send [11:40:07]OFD Sender: No OFD packet to send [11:40:12]OFD Sender: No OFD packet to send [11:40:17]OFD Sender: No OFD packet to send [11:40:22]OFD Sender: No OFD packet to send [11:40:27]OFD Sender: No OFD packet to send [11:40:32]OFD Sender: No OFD packet to send [11:40:37]OFD Sender: No OFD packet to send [11:40:42]OFD Sender: No OFD packet to send [11:40:47]OFD Sender: No OFD packet to send [11:40:52]OFD Sender: No OFD packet to send [11:40:57]OFD Sender: No OFD packet to send [11:41:02]OFD Sender: No OFD packet to send [11:41:07]OFD Sender: No OFD packet to send [11:41:12]OFD Sender: No OFD packet to send [11:41:17]OFD Sender: No OFD packet to send [11:41:22]OFD Sender: No OFD packet to send [11:41:27]OFD Sender: No OFD packet to send [11:41:32]OFD Sender: No OFD packet to send [11:41:37]OFD Sender: No OFD packet to send [11:41:42]OFD Sender: No OFD packet to send [11:41:47]OFD Sender: No OFD packet to send [11:41:52]OFD Sender: No OFD packet to send [11:41:57]OFD Sender: No OFD packet to send [11:42:02]OFD Sender: No OFD packet to send [11:42:07]OFD Sender: No OFD packet to send [11:42:12]OFD Sender: No OFD packet to send [11:42:17]OFD Sender: No OFD packet to send [11:42:22]OFD Sender: No OFD packet to send [11:42:27]OFD Sender: No OFD packet to send [11:42:32]OFD Sender: No OFD packet to send [11:42:37]OFD Sender: No OFD packet to send [11:42:42]OFD Sender: No OFD packet to send [11:42:47]OFD Sender: No OFD packet to send [11:42:52]OFD Sender: No OFD packet to send [11:42:57]OFD Sender: No OFD packet to send [11:43:02]OFD Sender: No OFD packet to send [11:43:07]OFD Sender: No OFD packet to send [11:43:12]OFD Sender: No OFD packet to send [11:43:17]OFD Sender: No OFD packet to send [11:43:22]OFD Sender: No OFD packet to send [11:43:27]OFD Sender: No OFD packet to send [11:43:32]OFD Sender: No OFD packet to send [11:43:37]OFD Sender: No OFD packet to send [11:43:42]OFD Sender: No OFD packet to send [11:43:47]OFD Sender: No OFD packet to send [11:43:52]OFD Sender: No OFD packet to send [11:43:57]OFD Sender: No OFD packet to send [11:44:02]OFD Sender: No OFD packet to send [11:44:07]OFD Sender: No OFD packet to send [11:44:12]OFD Sender: No OFD packet to send [11:44:17]OFD Sender: No OFD packet to send [11:44:22]OFD Sender: No OFD packet to send [11:44:27]OFD Sender: No OFD packet to send [11:44:32]OFD Sender: No OFD packet to send [11:44:37]OFD Sender: No OFD packet to send [11:44:42]OFD Sender: No OFD packet to send [11:44:47]OFD Sender: No OFD packet to send [11:44:52]OFD Sender: No OFD packet to send [11:44:57]OFD Sender: No OFD packet to send [11:45:02]OFD Sender: No OFD packet to send [11:45:07]OFD Sender: No OFD packet to send [11:45:12]OFD Sender: No OFD packet to send [11:45:17]OFD Sender: No OFD packet to send [11:45:22]OFD Sender: No OFD packet to send [11:45:27]OFD Sender: No OFD packet to send [11:45:32]OFD Sender: No OFD packet to send [11:45:37]OFD Sender: No OFD packet to send [11:45:42]OFD Sender: No OFD packet to send [11:45:47]OFD Sender: No OFD packet to send [11:45:52]OFD Sender: No OFD packet to send [11:45:57]OFD Sender: No OFD packet to send [11:46:02]OFD Sender: No OFD packet to send [11:46:07]OFD Sender: No OFD packet to send [11:46:12]OFD Sender: No OFD packet to send [11:46:17]OFD Sender: No OFD packet to send [11:46:22]OFD Sender: No OFD packet to send [11:46:27]OFD Sender: No OFD packet to send [11:46:32]OFD Sender: No OFD packet to send [11:46:37]OFD Sender: No OFD packet to send [11:46:42]OFD Sender: No OFD packet to send [11:46:47]OFD Sender: No OFD packet to send [11:46:52]OFD Sender: No OFD packet to send [11:46:57]OFD Sender: No OFD packet to send [11:47:02]OFD Sender: No OFD packet to send [11:47:07]OFD Sender: No OFD packet to send [11:47:12]OFD Sender: No OFD packet to send [11:47:17]OFD Sender: No OFD packet to send [11:47:22]OFD Sender: No OFD packet to send [11:47:27]OFD Sender: No OFD packet to send [11:47:32]OFD Sender: No OFD packet to send [11:47:37]OFD Sender: No OFD packet to send [11:47:42]OFD Sender: No OFD packet to send [11:47:47]OFD Sender: No OFD packet to send [11:47:52]OFD Sender: No OFD packet to send [11:47:57]OFD Sender: No OFD packet to send [11:48:02]OFD Sender: No OFD packet to send [11:48:07]OFD Sender: No OFD packet to send [11:48:12]OFD Sender: No OFD packet to send [11:48:17]OFD Sender: No OFD packet to send [11:48:22]OFD Sender: No OFD packet to send [11:48:27]OFD Sender: No OFD packet to send [11:48:32]OFD Sender: No OFD packet to send [11:48:37]OFD Sender: No OFD packet to send [11:48:42]OFD Sender: No OFD packet to send [11:48:47]OFD Sender: No OFD packet to send [11:48:52]OFD Sender: No OFD packet to send [11:48:57]OFD Sender: No OFD packet to send [11:49:02]OFD Sender: No OFD packet to send [11:49:07]OFD Sender: No OFD packet to send [11:49:12]OFD Sender: No OFD packet to send [11:49:17]OFD Sender: No OFD packet to send [11:49:22]OFD Sender: No OFD packet to send [11:49:27]OFD Sender: No OFD packet to send [11:49:32]OFD Sender: No OFD packet to send [11:49:37]OFD Sender: No OFD packet to send [11:49:42]OFD Sender: No OFD packet to send [11:49:47]OFD Sender: No OFD packet to send [11:49:52]OFD Sender: No OFD packet to send [11:49:57]OFD Sender: No OFD packet to send [11:50:02]OFD Sender: No OFD packet to send [11:50:07]OFD Sender: No OFD packet to send [11:50:12]OFD Sender: No OFD packet to send [11:50:17]OFD Sender: No OFD packet to send [11:50:22]OFD Sender: No OFD packet to send [11:50:27]OFD Sender: No OFD packet to send [11:50:32]OFD Sender: No OFD packet to send [11:50:37]OFD Sender: No OFD packet to send [11:50:42]OFD Sender: No OFD packet to send [11:50:47]OFD Sender: No OFD packet to send [11:50:52]OFD Sender: No OFD packet to send [11:50:57]OFD Sender: No OFD packet to send [11:51:02]OFD Sender: No OFD packet to send [11:51:07]OFD Sender: No OFD packet to send [11:51:12]OFD Sender: No OFD packet to send [11:51:17]OFD Sender: No OFD packet to send [11:51:22]OFD Sender: No OFD packet to send [11:51:27]OFD Sender: No OFD packet to send [11:51:32]OFD Sender: No OFD packet to send [11:51:37]OFD Sender: No OFD packet to send [11:51:43]OFD Sender: No OFD packet to send [11:51:48]OFD Sender: No OFD packet to send [11:51:53]OFD Sender: No OFD packet to send [11:51:58]OFD Sender: No OFD packet to send [11:52:03]OFD Sender: No OFD packet to send [11:52:08]OFD Sender: No OFD packet to send [11:52:13]OFD Sender: No OFD packet to send [11:52:18]OFD Sender: No OFD packet to send [11:52:23]OFD Sender: No OFD packet to send [11:52:28]OFD Sender: No OFD packet to send [11:52:33]OFD Sender: No OFD packet to send [11:52:38]OFD Sender: No OFD packet to send [11:52:43]OFD Sender: No OFD packet to send [11:52:48]OFD Sender: No OFD packet to send [11:52:53]OFD Sender: No OFD packet to send [11:52:58]OFD Sender: No OFD packet to send [11:53:03]OFD Sender: No OFD packet to send [11:53:03]accept exits with 9 [11:53:03]New connection [11:53:03]New thread 3066658148 created [11:53:03]Thread 3066801508 joined [11:53:03]Waiting for new connection... [11:53:03] Sock 9.Parse request [11:53:03]Sock 9.Check first char [11:53:03]Sock 9.First char is OK [11:53:03]request: POST /json_proto HTTP/1.0 [11:53:03]Method: POST [11:53:03]URL: /json_proto [11:53:03]Method is POST - this is cgi request [11:53:03]url: /json_proto [11:53:03]query_string will be loaded in cgi processing [11:53:03]execute_cgi json_proto POST (null) [11:53:03]execute_cgi path=json_proto method=POST [11:53:03]POST find Content-Length [11:53:03]Host: 172.17.57.71:8080 [11:53:03]Content-Length: 695 [11:53:03]Content-Type: application/json [11:53:03] [11:53:03]POST finish read [11:53:03]Found Content-Length = 695 [11:53:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127486", "tax_sys" : 0, "items" : [ { "code": "4631162227163", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 Mojito LEMON LIME \u0436", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:03]execute_script... [11:53:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127486", "tax_sys" : 0, "items" : [ { "code": "4631162227163", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 Mojito LEMON LIME \u0436", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:03]POST & json_proto [11:53:03]process_json_proto [11:53:03]json parsed OK: [11:53:03]protocol is kg_v1.0 [11:53:03]action value=close_receipt [11:53:03]process_action close_receipt [11:53:03]cmd_close_receipt [11:53:03]MH_GetDate [11:53:03]Write to MH i2c: F0 00 00 9F 49 D7 [11:53:03]Write i2c OK [11:53:03]MH_I2C_Read... [11:53:03]Read from MH i2c: F0 [11:53:03]MH_I2C_Read... [11:53:03]Read from MH i2c: F0 09 00 [11:53:03]MH_I2C_Read... [11:53:03]Read from MH i2c: F0 09 00 9F 49 00 A8 CA E6 66 33 3A A4 66 15 [11:53:03]GetLastDocTimeStamp 1726399852 [11:53:03]current date 1726401192 [11:53:03]FM_GetShiftState [11:53:03]SAM_PROTO_GetShiftState [11:53:03]wFMCommunicate request_size=4 [11:53:03]MH_SAM_APDU [11:53:03]CAPDU: 80 13 01 00 [11:53:03]Write to MH i2c: E2 08 00 A0 49 80 13 01 00 00 00 00 00 66 [11:53:03]Write i2c OK [11:53:03]MH_I2C_Read... [11:53:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:03]Read from MH i2c: E2 [11:53:03]MH_I2C_Read... [11:53:03]Read from MH i2c: E2 0E 00 [11:53:03]MH_I2C_Read... [11:53:03]Read from MH i2c: E2 0E 00 A0 49 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 E8 [11:53:03]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [11:53:03]wFMCommunicate OK [11:53:03]SAM_PROTO_GetShiftState done [11:53:03]FM_GetShiftState done [11:53:03]opened in 1726359809 [11:53:03]opened+sec_in_day 1726446209 [11:53:03]quantity*price = 9500 [11:53:03]sum+1 = 9501 [11:53:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 40 15.09.2024 11:53 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92592 ФПД: 65291827988938 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T115312&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92592&fm=65291827988938&tin=02508201610067®Number=0000000000091423&sum=9500 0 [11:53:04]StoreToDocumentArchive [11:53:04]shift 507 fd 92592 [11:53:04]save to /storage/0507/doc_00092592 [11:53:04]save last doc name /storage/0507/doc_00092592 to /storage/kkm_last_doc_name [11:53:04]save OK [11:53:04]Clear old archive folders... [11:53:04]ProcessDocumentItem done err = 0, tmpTLVsize=302 [11:53:04]tlvbuf is 01037E30 [11:53:04]SAM_PROTO_ClearQueue [11:53:04]wFMCommunicate request_size=4 [11:53:04]MH_SAM_APDU [11:53:04]CAPDU: 80 09 00 00 [11:53:04]Write to MH i2c: E2 08 00 AD 49 80 09 00 00 00 00 00 00 68 [11:53:04]Write i2c OK [11:53:04]MH_I2C_Read... [11:53:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:05]Read from MH i2c: E2 [11:53:05]MH_I2C_Read... [11:53:05]Read from MH i2c: E2 03 00 [11:53:05]MH_I2C_Read... [11:53:05]Read from MH i2c: E2 03 00 AD 49 00 90 00 6A [11:53:05]RAPDU: 90 00 [11:53:05]wFMCommunicate OK [11:53:05]SAM_PROTO_ClearQueue done [11:53:05]KKMCreateOFDPacket [11:53:05]OFDProtocolAddRootSTLVToBuf [11:53:05]FM_MakeSignedData [11:53:05]FM_MakeSignedData [11:53:05]SAM_PROTO_SignData [11:53:05]wFMCommunicate request_size=4 [11:53:05]MH_SAM_APDU [11:53:05]CAPDU: 80 0D 01 02 [11:53:05]Write to MH i2c: E2 08 00 AE 49 80 0D 01 02 00 00 00 00 70 [11:53:05]Write i2c OK [11:53:05]MH_I2C_Read... [11:53:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:05]Read from MH i2c: E2 [11:53:05]MH_I2C_Read... [11:53:05]Read from MH i2c: E2 03 00 [11:53:05]MH_I2C_Read... [11:53:05]Read from MH i2c: E2 03 00 AE 49 00 90 00 6B [11:53:05]RAPDU: 90 00 [11:53:05]wFMCommunicate OK [11:53:05]wFMCommunicate request_size=255 [11:53:05]MH_SAM_APDU [11:53:05]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 A8 CA E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 [11:53:05]Write to MH i2c: E2 02 01 AF 49 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 A8 CA E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 00 00 31 [11:53:05]Write i2c OK [11:53:05]MH_I2C_Read... [11:53:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:05]Read from MH i2c: E2 [11:53:05]MH_I2C_Read... [11:53:05]Read from MH i2c: E2 03 00 [11:53:05]MH_I2C_Read... [11:53:05]Read from MH i2c: E2 03 00 AF 49 00 90 00 6C [11:53:05]RAPDU: 90 00 [11:53:05]wFMCommunicate OK [11:53:05]wFMCommunicate request_size=61 [11:53:05]MH_SAM_APDU [11:53:05]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B0 69 01 00 35 04 06 00 3B 61 F0 36 C9 CA [11:53:05]Write to MH i2c: E2 40 00 B0 49 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B0 69 01 00 35 04 06 00 3B 61 F0 36 C9 CA 00 00 15 [11:53:05]Write i2c OK [11:53:05]MH_I2C_Read... [11:53:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:05]Read from MH i2c: E2 [11:53:05]MH_I2C_Read... [11:53:05]Read from MH i2c: E2 03 00 [11:53:05]MH_I2C_Read... [11:53:05]Read from MH i2c: E2 03 00 B0 49 00 90 00 6D [11:53:05]RAPDU: 90 00 [11:53:05]wFMCommunicate OK [11:53:05]wFMCommunicate request_size=4 [11:53:05]MH_SAM_APDU [11:53:05]CAPDU: 80 0D 03 02 [11:53:05]Write to MH i2c: E2 08 00 B1 49 80 0D 03 02 00 00 00 00 75 [11:53:05]Write i2c OK [11:53:05]MH_I2C_Read... [11:53:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:05]Read from MH i2c: E2 [11:53:05]MH_I2C_Read... [11:53:05]Read from MH i2c: E2 0B 00 [11:53:05]MH_I2C_Read... [11:53:05]Read from MH i2c: E2 0B 00 B1 49 00 C7 93 F8 39 93 BF 9E 8A 90 00 7B [11:53:05]RAPDU: C7 93 F8 39 93 BF 9E 8A 90 00 [11:53:05]wFMCommunicate OK [11:53:05]SAM_PROTO_SignData done [11:53:05]FM_MakeSignedData done [11:53:05]CreateOFDProtocolMessage [11:53:05]wFMCommunicate request_size=4 [11:53:05]MH_SAM_APDU [11:53:05]CAPDU: 80 11 00 00 [11:53:05]Write to MH i2c: E2 08 00 B2 49 80 11 00 00 00 00 00 00 75 [11:53:05]Write i2c OK [11:53:05]MH_I2C_Read... [11:53:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:05]Read from MH i2c: E2 [11:53:05]MH_I2C_Read... [11:53:05]Read from MH i2c: E2 17 00 [11:53:05]MH_I2C_Read... [11:53:05]Read from MH i2c: E2 17 00 B2 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 CC [11:53:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:53:05]wFMCommunicate OK [11:53:05]CreateOFDProtocolMessage done [11:53:05]OFDSenderStorePacket 92592 [11:53:05]StoreOFDPacket docnum=92592 [11:53:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 42 01 00 00 6E 61 3A 01 3C 22 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 A8 CA E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B0 69 01 00 35 04 06 00 3B 61 F0 36 C9 CA C7 93 F8 39 93 BF 9E 8A [11:53:05]CheckFolder [11:53:05]dirname=/storage/ofd_packets [11:53:05]CheckFolder done [11:53:05]ProducePacketName [11:53:05]name=ofd_packets/00092592 [11:53:05]NVStorageSaveData ofd_packets/00092592 [11:53:05]File name is /storage/ofd_packets/00092592 [11:53:05]Write 352 bytes [11:53:05]NVStorageSaveData done [11:53:05]OFDSenderStorePacket done [11:53:05]KKMCreateOFDPacket done [11:53:05]NVStorageSaveData kkm_last_timestamp [11:53:05]File name is /storage/kkm_last_timestamp [11:53:05]Write 4 bytes [11:53:05]NVStorageSaveData done [11:53:05]ExternCall_PrintAddStr [11:53:05]wPrintStart [11:53:05]Write to MH i2c: 01 00 00 B3 49 FC [11:53:05]Write i2c OK [11:53:05]MH_I2C_Read... [11:53:05]Read from MH i2c: 01 [11:53:05]MH_I2C_Read... [11:53:05]Read from MH i2c: 01 07 00 [11:53:05]MH_I2C_Read... [11:53:05]Read from MH i2c: 01 07 00 B3 49 00 00 00 00 00 FF 0F 11 [11:53:05]RasterBufferAndPrint [11:53:05]line Счет N : (3)127486 [11:53:05]line ИНН: 02508201610067 [11:53:05]line Контрольно-Кассовый Чек [11:53:05]line ПРОДАЖА [11:53:05]line Товар: 4631162227163 [11:53:05]line Напиток газированный Mojito LEMON LIME ж [11:53:05]line 1.000 * 95.00 [11:53:05]line = 95.00 [11:53:05]line НДС 12% НСП 1% [11:53:05]line > о реализуемом товаре [11:53:05]line ИТОГО: 95.00 [11:53:05]line НСП 1% : 0.84 [11:53:05]line НДС 12% : 10.09 [11:53:05]line Наличными: 95.00 [11:53:05]line Безнал.: 0.00 [11:53:05]line Место: АЗС № 5 "Партнер Нефть" [11:53:05]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [11:53:05]line СНО: Общий режим [11:53:05]line Чек 40 15.09.2024 11:53 [11:53:05]line Смена: 507 ФФД: 1.0 [11:53:05]line ЗНМ: 03000000022 [11:53:05]line РНМ: 0000000000091423 [11:53:05]line Версия ККМ: 001 [11:53:05]line ФМ: 0000000000874692 [11:53:05]line ФД: 92592 [11:53:05]line ФПД: 65291827988938 [11:53:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T115312&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92592&fm=65291827988938&tin=02508201610067®Number=0000000000091423&sum=9500 [11:53:05]line 0 [11:53:05]OFD Sender: Processing packet 92592 [packets to send 63, broken 62] [11:53:05]ProducePacketName [11:53:05]name=ofd_packets/00092592 [11:53:05]OFD Sender: To server: pG, [11:53:05]CommunicateWithHost lk.salyk.kg:30040 [11:53:05]ConnectInit lk.salyk.kg [11:53:05]written 0, free lines is 4095 [11:53:05]Connected sock=10 [11:53:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 42 01 00 00 6E 61 3A 01 3C 22 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 A8 CA E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B0 69 01 00 35 04 06 00 3B 61 F0 36 C9 CA C7 93 F8 39 93 BF 9E 8A [11:53:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 05 71 47 00 FC B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B0 69 01 00 F4 03 04 00 20 73 E6 66 B6 04 01 00 00 B9 7C E2 3B F6 7A D8 F6 [11:53:06]CommunicateWithHost err = 0 [11:53:06]CheckOFDResponse [11:53:06]1017 (14) - 77093643461234 [11:53:06]1041 (16) - 0000000000874692 [11:53:06]1040 (4) - 92592 [11:53:06]1012 (4) - 15.09.2024 05:39 [11:53:06]1206 (1) - 0 [11:53:06]OFD Sender: Remove packet 92592 [11:53:06]ProducePacketName [11:53:06]name=ofd_packets/00092592 [11:53:06]NVStorageDeleteData [11:53:06]Write to MH i2c: 01 00 00 DC 49 25 [11:53:06]Write i2c OK [11:53:06]MH_I2C_Read... [11:53:06]Read from MH i2c: 01 [11:53:06]MH_I2C_Read... [11:53:06]Read from MH i2c: 01 07 00 [11:53:06]MH_I2C_Read... [11:53:06]Read from MH i2c: 01 07 00 DC 49 00 00 00 00 00 19 0D 52 [11:53:06]RasterBufferAndPrint [11:53:06]line [11:53:06]line [11:53:06]line [11:53:06]line [11:53:06]line [11:53:06]written 0, free lines is 3362 [11:53:06]MH_Cut [11:53:06]Write to MH i2c: D1 01 00 E3 49 01 FE [11:53:06]Write i2c OK [11:53:06]MH_I2C_Read... [11:53:06]Read from MH i2c: D1 [11:53:06]MH_I2C_Read... [11:53:06]Read from MH i2c: D1 01 00 [11:53:06]MH_I2C_Read... [11:53:06]Read from MH i2c: D1 01 00 E3 49 00 FD [11:53:06]Write to MH i2c: 01 00 00 E4 49 2D [11:53:06]Write i2c OK [11:53:06]MH_I2C_Read... [11:53:06]OFD Sender: No OFD packet to send [11:53:06]*** Cut start [11:53:06]*** Purtial cut [11:53:06]*** Stage 1: CUTSNS_PIN = 1 [11:53:08]Read from MH i2c: 01 [11:53:08]MH_I2C_Read... [11:53:08]*** Stop cut motor [11:53:08]*** Cut end [11:53:08]Read from MH i2c: 01 07 00 [11:53:08]MH_I2C_Read... [11:53:08]Read from MH i2c: 01 07 00 E4 49 00 00 00 00 00 FF 0F 42 [11:53:08]process_action close_receipt done [11:53:08]requested_data is exist [11:53:08]produce_requested_data [11:53:08]requested_item fm.sn is exist - process it [11:53:08]wFMCommunicate request_size=4 [11:53:08]MH_SAM_APDU [11:53:08]CAPDU: 80 11 00 00 [11:53:08]Write to MH i2c: E2 08 00 E5 49 80 11 00 00 00 00 00 00 A8 [11:53:08]Write i2c OK [11:53:08]MH_I2C_Read... [11:53:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:09]Read from MH i2c: E2 [11:53:09]MH_I2C_Read... [11:53:09]Read from MH i2c: E2 17 00 [11:53:09]MH_I2C_Read... [11:53:09]Read from MH i2c: E2 17 00 E5 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 FF [11:53:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:53:09]wFMCommunicate OK [11:53:09]requested_item fd.num is exist - process it [11:53:09]SAM_PROTO_GetFieldsCounters [11:53:09]wFMCommunicate request_size=4 [11:53:09]MH_SAM_APDU [11:53:09]CAPDU: 80 13 00 00 [11:53:09]Write to MH i2c: E2 08 00 E6 49 80 13 00 00 00 00 00 00 AB [11:53:09]Write i2c OK [11:53:09]MH_I2C_Read... [11:53:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:09]Read from MH i2c: E2 [11:53:09]MH_I2C_Read... [11:53:09]Read from MH i2c: E2 62 00 [11:53:09]MH_I2C_Read... [11:53:09]Read from MH i2c: E2 62 00 E6 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B0 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [11:53:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B0 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:53:09]wFMCommunicate OK [11:53:09]SAM_PROTO_GetFieldsCounters done [11:53:09]requested_item shift.num is exist - process it [11:53:09]requested_item shift.opened is exist - process it [11:53:09]req_shift_opened [11:53:09]FM_GetShiftState [11:53:09]SAM_PROTO_GetShiftState [11:53:09]wFMCommunicate request_size=4 [11:53:09]MH_SAM_APDU [11:53:09]CAPDU: 80 13 01 00 [11:53:09]Write to MH i2c: E2 08 00 E7 49 80 13 01 00 00 00 00 00 AD [11:53:09]Write i2c OK [11:53:09]MH_I2C_Read... [11:53:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:09]Read from MH i2c: E2 [11:53:09]MH_I2C_Read... [11:53:09]Read from MH i2c: E2 0E 00 [11:53:09]MH_I2C_Read... [11:53:09]Read from MH i2c: E2 0E 00 E7 49 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 2F [11:53:09]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [11:53:09]wFMCommunicate OK [11:53:09]SAM_PROTO_GetShiftState done [11:53:09]FM_GetShiftState done [11:53:09]req_shift_opened done [11:53:09]requested_item shift.open_date is exist - process it [11:53:09]req_shift_open_date [11:53:09]req_shift_open_date done [11:53:09]produce_requested_data done [11:53:09]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92592,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [11:53:09]process_action_free close_receipt [11:53:09]json_value_free [11:53:09]json_value_free done [11:53:09]process_json_proto returns [11:53:09]Send response to host [11:53:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92592,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [11:53:09]free response buf [11:53:09]execute_script done [11:53:09]execute_script returns [11:53:09]free content buf [11:53:09]Sock 9.Close socket [11:53:09]Sock 9.Thread stoped [11:53:11]OFD Sender: No OFD packet to send [11:53:16]OFD Sender: No OFD packet to send [11:53:21]OFD Sender: No OFD packet to send [11:53:26]OFD Sender: No OFD packet to send [11:53:31]OFD Sender: No OFD packet to send [11:53:36]OFD Sender: No OFD packet to send [11:53:41]OFD Sender: No OFD packet to send [11:53:46]OFD Sender: No OFD packet to send [11:53:51]OFD Sender: No OFD packet to send [11:53:56]OFD Sender: No OFD packet to send [11:54:01]OFD Sender: No OFD packet to send [11:54:06]OFD Sender: No OFD packet to send [11:54:11]OFD Sender: No OFD packet to send [11:54:16]OFD Sender: No OFD packet to send [11:54:21]OFD Sender: No OFD packet to send [11:54:26]OFD Sender: No OFD packet to send [11:54:31]OFD Sender: No OFD packet to send [11:54:36]OFD Sender: No OFD packet to send [11:54:41]OFD Sender: No OFD packet to send [11:54:46]OFD Sender: No OFD packet to send [11:54:51]OFD Sender: No OFD packet to send [11:54:56]OFD Sender: No OFD packet to send [11:55:01]OFD Sender: No OFD packet to send [11:55:06]OFD Sender: No OFD packet to send [11:55:11]OFD Sender: No OFD packet to send [11:55:16]OFD Sender: No OFD packet to send [11:55:21]OFD Sender: No OFD packet to send [11:55:26]OFD Sender: No OFD packet to send [11:55:31]OFD Sender: No OFD packet to send [11:55:36]OFD Sender: No OFD packet to send [11:55:41]OFD Sender: No OFD packet to send [11:55:46]OFD Sender: No OFD packet to send [11:55:51]OFD Sender: No OFD packet to send [11:55:56]OFD Sender: No OFD packet to send [11:56:01]OFD Sender: No OFD packet to send [11:56:06]OFD Sender: No OFD packet to send [11:56:11]OFD Sender: No OFD packet to send [11:56:16]OFD Sender: No OFD packet to send [11:56:21]OFD Sender: No OFD packet to send [11:56:26]OFD Sender: No OFD packet to send [11:56:31]OFD Sender: No OFD packet to send [11:56:36]OFD Sender: No OFD packet to send [11:56:41]OFD Sender: No OFD packet to send [11:56:46]OFD Sender: No OFD packet to send [11:56:51]OFD Sender: No OFD packet to send [11:56:56]OFD Sender: No OFD packet to send [11:57:01]OFD Sender: No OFD packet to send [11:57:06]OFD Sender: No OFD packet to send [11:57:11]OFD Sender: No OFD packet to send [11:57:16]OFD Sender: No OFD packet to send [11:57:21]OFD Sender: No OFD packet to send [11:57:26]OFD Sender: No OFD packet to send [11:57:31]OFD Sender: No OFD packet to send [11:57:36]OFD Sender: No OFD packet to send [11:57:41]OFD Sender: No OFD packet to send [11:57:46]OFD Sender: No OFD packet to send [11:57:51]OFD Sender: No OFD packet to send [11:57:56]OFD Sender: No OFD packet to send [11:58:01]OFD Sender: No OFD packet to send [11:58:06]OFD Sender: No OFD packet to send [11:58:11]OFD Sender: No OFD packet to send [11:58:16]OFD Sender: No OFD packet to send [11:58:21]OFD Sender: No OFD packet to send [11:58:26]OFD Sender: No OFD packet to send [11:58:31]OFD Sender: No OFD packet to send [11:58:36]OFD Sender: No OFD packet to send [11:58:41]OFD Sender: No OFD packet to send [11:58:46]OFD Sender: No OFD packet to send [11:58:52]OFD Sender: No OFD packet to send [11:58:57]OFD Sender: No OFD packet to send [11:59:02]OFD Sender: No OFD packet to send [11:59:07]OFD Sender: No OFD packet to send [11:59:12]OFD Sender: No OFD packet to send [11:59:17]OFD Sender: No OFD packet to send [11:59:22]OFD Sender: No OFD packet to send [11:59:27]OFD Sender: No OFD packet to send [11:59:32]OFD Sender: No OFD packet to send [11:59:37]OFD Sender: No OFD packet to send [11:59:42]OFD Sender: No OFD packet to send [11:59:47]OFD Sender: No OFD packet to send [11:59:52]OFD Sender: No OFD packet to send [11:59:57]OFD Sender: No OFD packet to send [12:00:02]OFD Sender: No OFD packet to send [12:00:07]OFD Sender: No OFD packet to send [12:00:12]OFD Sender: No OFD packet to send [12:00:17]OFD Sender: No OFD packet to send [12:00:22]OFD Sender: No OFD packet to send [12:00:27]OFD Sender: No OFD packet to send [12:00:32]OFD Sender: No OFD packet to send [12:00:37]OFD Sender: No OFD packet to send [12:00:42]OFD Sender: No OFD packet to send [12:00:47]OFD Sender: No OFD packet to send [12:00:52]OFD Sender: No OFD packet to send [12:00:57]OFD Sender: No OFD packet to send [12:01:02]OFD Sender: No OFD packet to send [12:01:07]OFD Sender: No OFD packet to send [12:01:12]OFD Sender: No OFD packet to send [12:01:17]OFD Sender: No OFD packet to send [12:01:22]OFD Sender: No OFD packet to send [12:01:27]OFD Sender: No OFD packet to send [12:01:32]OFD Sender: No OFD packet to send [12:01:37]OFD Sender: No OFD packet to send [12:01:42]OFD Sender: No OFD packet to send [12:01:47]OFD Sender: No OFD packet to send [12:01:52]OFD Sender: No OFD packet to send [12:01:57]OFD Sender: No OFD packet to send [12:02:02]OFD Sender: No OFD packet to send [12:02:07]OFD Sender: No OFD packet to send [12:02:12]OFD Sender: No OFD packet to send [12:02:17]OFD Sender: No OFD packet to send [12:02:22]OFD Sender: No OFD packet to send [12:02:27]OFD Sender: No OFD packet to send [12:02:32]OFD Sender: No OFD packet to send [12:02:37]OFD Sender: No OFD packet to send [12:02:42]OFD Sender: No OFD packet to send [12:02:47]OFD Sender: No OFD packet to send [12:02:52]OFD Sender: No OFD packet to send [12:02:57]OFD Sender: No OFD packet to send [12:03:02]OFD Sender: No OFD packet to send [12:03:07]OFD Sender: No OFD packet to send [12:03:12]OFD Sender: No OFD packet to send [12:03:17]OFD Sender: No OFD packet to send [12:03:22]OFD Sender: No OFD packet to send [12:03:27]OFD Sender: No OFD packet to send [12:03:32]OFD Sender: No OFD packet to send [12:03:37]OFD Sender: No OFD packet to send [12:03:42]OFD Sender: No OFD packet to send [12:03:47]OFD Sender: No OFD packet to send [12:03:52]OFD Sender: No OFD packet to send [12:03:57]OFD Sender: No OFD packet to send [12:04:02]OFD Sender: No OFD packet to send [12:04:07]OFD Sender: No OFD packet to send [12:04:12]OFD Sender: No OFD packet to send [12:04:17]OFD Sender: No OFD packet to send [12:04:22]OFD Sender: No OFD packet to send [12:04:27]OFD Sender: No OFD packet to send [12:04:32]OFD Sender: No OFD packet to send [12:04:37]OFD Sender: No OFD packet to send [12:04:42]OFD Sender: No OFD packet to send [12:04:47]OFD Sender: No OFD packet to send [12:04:52]OFD Sender: No OFD packet to send [12:04:57]OFD Sender: No OFD packet to send [12:05:02]OFD Sender: No OFD packet to send [12:05:07]OFD Sender: No OFD packet to send [12:05:12]OFD Sender: No OFD packet to send [12:05:17]OFD Sender: No OFD packet to send [12:05:22]OFD Sender: No OFD packet to send [12:05:27]OFD Sender: No OFD packet to send [12:05:32]OFD Sender: No OFD packet to send [12:05:37]OFD Sender: No OFD packet to send [12:05:42]OFD Sender: No OFD packet to send [12:05:47]OFD Sender: No OFD packet to send [12:05:52]OFD Sender: No OFD packet to send [12:05:57]OFD Sender: No OFD packet to send [12:06:02]OFD Sender: No OFD packet to send [12:06:07]OFD Sender: No OFD packet to send [12:06:12]OFD Sender: No OFD packet to send [12:06:17]OFD Sender: No OFD packet to send [12:06:22]OFD Sender: No OFD packet to send [12:06:27]OFD Sender: No OFD packet to send [12:06:32]OFD Sender: No OFD packet to send [12:06:37]OFD Sender: No OFD packet to send [12:06:42]OFD Sender: No OFD packet to send [12:06:47]OFD Sender: No OFD packet to send [12:06:52]OFD Sender: No OFD packet to send [12:06:57]OFD Sender: No OFD packet to send [12:07:02]OFD Sender: No OFD packet to send [12:07:07]OFD Sender: No OFD packet to send [12:07:12]OFD Sender: No OFD packet to send [12:07:17]OFD Sender: No OFD packet to send [12:07:22]OFD Sender: No OFD packet to send [12:07:27]OFD Sender: No OFD packet to send [12:07:32]OFD Sender: No OFD packet to send [12:07:37]OFD Sender: No OFD packet to send [12:07:42]OFD Sender: No OFD packet to send [12:07:47]OFD Sender: No OFD packet to send [12:07:52]OFD Sender: No OFD packet to send [12:07:57]OFD Sender: No OFD packet to send [12:08:02]OFD Sender: No OFD packet to send [12:08:07]OFD Sender: No OFD packet to send [12:08:12]OFD Sender: No OFD packet to send [12:08:17]OFD Sender: No OFD packet to send [12:08:22]OFD Sender: No OFD packet to send [12:08:27]OFD Sender: No OFD packet to send [12:08:32]OFD Sender: No OFD packet to send [12:08:37]OFD Sender: No OFD packet to send [12:08:42]OFD Sender: No OFD packet to send [12:08:47]OFD Sender: No OFD packet to send [12:08:52]OFD Sender: No OFD packet to send [12:08:57]OFD Sender: No OFD packet to send [12:09:02]OFD Sender: No OFD packet to send [12:09:07]OFD Sender: No OFD packet to send [12:09:12]OFD Sender: No OFD packet to send [12:09:17]OFD Sender: No OFD packet to send [12:09:22]OFD Sender: No OFD packet to send [12:09:27]OFD Sender: No OFD packet to send [12:09:32]OFD Sender: No OFD packet to send [12:09:37]OFD Sender: No OFD packet to send [12:09:42]OFD Sender: No OFD packet to send [12:09:47]OFD Sender: No OFD packet to send [12:09:52]OFD Sender: No OFD packet to send [12:09:57]OFD Sender: No OFD packet to send [12:10:02]OFD Sender: No OFD packet to send [12:10:07]OFD Sender: No OFD packet to send [12:10:12]OFD Sender: No OFD packet to send [12:10:17]OFD Sender: No OFD packet to send [12:10:22]OFD Sender: No OFD packet to send [12:10:27]OFD Sender: No OFD packet to send [12:10:32]OFD Sender: No OFD packet to send [12:10:37]OFD Sender: No OFD packet to send [12:10:42]OFD Sender: No OFD packet to send [12:10:47]OFD Sender: No OFD packet to send [12:10:52]OFD Sender: No OFD packet to send [12:10:57]OFD Sender: No OFD packet to send [12:11:02]OFD Sender: No OFD packet to send [12:11:07]OFD Sender: No OFD packet to send [12:11:12]OFD Sender: No OFD packet to send [12:11:17]OFD Sender: No OFD packet to send [12:11:22]OFD Sender: No OFD packet to send [12:11:27]OFD Sender: No OFD packet to send [12:11:32]OFD Sender: No OFD packet to send [12:11:37]OFD Sender: No OFD packet to send [12:11:42]OFD Sender: No OFD packet to send [12:11:47]OFD Sender: No OFD packet to send [12:11:52]OFD Sender: No OFD packet to send [12:11:57]OFD Sender: No OFD packet to send [12:12:02]OFD Sender: No OFD packet to send [12:12:07]OFD Sender: No OFD packet to send [12:12:12]OFD Sender: No OFD packet to send [12:12:17]OFD Sender: No OFD packet to send [12:12:22]OFD Sender: No OFD packet to send [12:12:27]OFD Sender: No OFD packet to send [12:12:32]OFD Sender: No OFD packet to send [12:12:37]OFD Sender: No OFD packet to send [12:12:42]OFD Sender: No OFD packet to send [12:12:47]OFD Sender: No OFD packet to send [12:12:52]OFD Sender: No OFD packet to send [12:12:57]OFD Sender: No OFD packet to send [12:13:02]OFD Sender: No OFD packet to send [12:13:07]OFD Sender: No OFD packet to send [12:13:12]OFD Sender: No OFD packet to send [12:13:17]OFD Sender: No OFD packet to send [12:13:22]OFD Sender: No OFD packet to send [12:13:27]OFD Sender: No OFD packet to send [12:13:32]OFD Sender: No OFD packet to send [12:13:37]OFD Sender: No OFD packet to send [12:13:42]OFD Sender: No OFD packet to send [12:13:47]OFD Sender: No OFD packet to send [12:13:52]OFD Sender: No OFD packet to send [12:13:57]OFD Sender: No OFD packet to send [12:14:02]OFD Sender: No OFD packet to send [12:14:07]OFD Sender: No OFD packet to send [12:14:12]accept exits with 8 [12:14:12]New connection [12:14:12]New thread 3066801508 created [12:14:12]Thread 3066658148 joined [12:14:12]Waiting for new connection... [12:14:12] Sock 8.Parse request [12:14:12]Sock 8.Check first char [12:14:12]Sock 8.First char is OK [12:14:12]request: POST /json_proto HTTP/1.0 [12:14:12]Method: POST [12:14:12]URL: /json_proto [12:14:12]Method is POST - this is cgi request [12:14:12]url: /json_proto [12:14:12]query_string will be loaded in cgi processing [12:14:12]execute_cgi json_proto POST (null) [12:14:12]execute_cgi path=json_proto method=POST [12:14:12]POST find Content-Length [12:14:12]Host: 172.17.57.71:8080 [12:14:12]Content-Length: 700 [12:14:12]Content-Type: application/json [12:14:12] [12:14:12]POST finish read [12:14:12]Found Content-Length = 700 [12:14:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127487", "tax_sys" : 0, "items" : [ { "code": "4870002325113", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A PEPSI \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u0442 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:12]execute_script... [12:14:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127487", "tax_sys" : 0, "items" : [ { "code": "4870002325113", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A PEPSI \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u0442 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:12]POST & json_proto [12:14:12]process_json_proto [12:14:12]json parsed OK: [12:14:12]protocol is kg_v1.0 [12:14:12]action value=close_receipt [12:14:12]process_action close_receipt [12:14:12]cmd_close_receipt [12:14:12]MH_GetDate [12:14:12]Write to MH i2c: F0 00 00 E8 49 20 [12:14:12]Write i2c OK [12:14:12]MH_I2C_Read... [12:14:12]Read from MH i2c: F0 [12:14:12]MH_I2C_Read... [12:14:12]Read from MH i2c: F0 09 00 [12:14:12]MH_I2C_Read... [12:14:12]Read from MH i2c: F0 09 00 E8 49 00 9D CF E6 66 33 3A A4 66 58 [12:14:12]GetLastDocTimeStamp 1726401192 [12:14:12]current date 1726402461 [12:14:12]FM_GetShiftState [12:14:12]SAM_PROTO_GetShiftState [12:14:12]wFMCommunicate request_size=4 [12:14:12]MH_SAM_APDU [12:14:12]CAPDU: 80 13 01 00 [12:14:12]Write to MH i2c: E2 08 00 E9 49 80 13 01 00 00 00 00 00 AF [12:14:12]Write i2c OK [12:14:12]MH_I2C_Read... [12:14:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:12]Read from MH i2c: E2 [12:14:12]MH_I2C_Read... [12:14:12]Read from MH i2c: E2 0E 00 [12:14:12]MH_I2C_Read... [12:14:12]Read from MH i2c: E2 0E 00 E9 49 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 31 [12:14:12]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [12:14:12]wFMCommunicate OK [12:14:12]SAM_PROTO_GetShiftState done [12:14:12]FM_GetShiftState done [12:14:12]opened in 1726359809 [12:14:12]opened+sec_in_day 1726446209 [12:14:12]quantity*price = 9000 [12:14:12]sum+1 = 9001 [12:14:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 41 15.09.2024 12:14 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92593 ФПД: 77874765733087 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T121421&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92593&fm=77874765733087&tin=02508201610067®Number=0000000000091423&sum=9000 0 [12:14:13]StoreToDocumentArchive [12:14:13]shift 507 fd 92593 [12:14:13]save to /storage/0507/doc_00092593 [12:14:13]save last doc name /storage/0507/doc_00092593 to /storage/kkm_last_doc_name [12:14:13]save OK [12:14:13]Clear old archive folders... [12:14:13]ProcessDocumentItem done err = 0, tmpTLVsize=299 [12:14:13]tlvbuf is 010E9930 [12:14:13]SAM_PROTO_ClearQueue [12:14:13]wFMCommunicate request_size=4 [12:14:13]MH_SAM_APDU [12:14:13]CAPDU: 80 09 00 00 [12:14:13]Write to MH i2c: E2 08 00 F6 49 80 09 00 00 00 00 00 00 B1 [12:14:13]Write i2c OK [12:14:13]MH_I2C_Read... [12:14:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:14]Read from MH i2c: E2 [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: E2 03 00 [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: E2 03 00 F6 49 00 90 00 B3 [12:14:14]RAPDU: 90 00 [12:14:14]wFMCommunicate OK [12:14:14]SAM_PROTO_ClearQueue done [12:14:14]KKMCreateOFDPacket [12:14:14]OFDProtocolAddRootSTLVToBuf [12:14:14]FM_MakeSignedData [12:14:14]FM_MakeSignedData [12:14:14]SAM_PROTO_SignData [12:14:14]wFMCommunicate request_size=4 [12:14:14]MH_SAM_APDU [12:14:14]CAPDU: 80 0D 01 02 [12:14:14]Write to MH i2c: E2 08 00 F7 49 80 0D 01 02 00 00 00 00 B9 [12:14:14]Write i2c OK [12:14:14]MH_I2C_Read... [12:14:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:14]Read from MH i2c: E2 [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: E2 03 00 [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: E2 03 00 F7 49 00 90 00 B4 [12:14:14]RAPDU: 90 00 [12:14:14]wFMCommunicate OK [12:14:14]wFMCommunicate request_size=255 [12:14:14]MH_SAM_APDU [12:14:14]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 9D CF E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [12:14:14]Write to MH i2c: E2 02 01 F8 49 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 9D CF E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 4D [12:14:14]Write i2c OK [12:14:14]MH_I2C_Read... [12:14:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:14]Read from MH i2c: E2 [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: E2 03 00 [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: E2 03 00 F8 49 00 90 00 B5 [12:14:14]RAPDU: 90 00 [12:14:14]wFMCommunicate OK [12:14:14]wFMCommunicate request_size=58 [12:14:14]MH_SAM_APDU [12:14:14]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B1 69 01 00 35 04 06 00 46 D3 A1 BF 9C DF [12:14:14]Write to MH i2c: E2 3D 00 F9 49 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B1 69 01 00 35 04 06 00 46 D3 A1 BF 9C DF 00 00 B8 [12:14:14]Write i2c OK [12:14:14]MH_I2C_Read... [12:14:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:14]Read from MH i2c: E2 [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: E2 03 00 [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: E2 03 00 F9 49 00 90 00 B6 [12:14:14]RAPDU: 90 00 [12:14:14]wFMCommunicate OK [12:14:14]wFMCommunicate request_size=4 [12:14:14]MH_SAM_APDU [12:14:14]CAPDU: 80 0D 03 02 [12:14:14]Write to MH i2c: E2 08 00 FA 49 80 0D 03 02 00 00 00 00 BE [12:14:14]Write i2c OK [12:14:14]MH_I2C_Read... [12:14:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:14]Read from MH i2c: E2 [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: E2 0B 00 [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: E2 0B 00 FA 49 00 BB A2 AB 74 DF 59 0C AC 90 00 2B [12:14:14]RAPDU: BB A2 AB 74 DF 59 0C AC 90 00 [12:14:14]wFMCommunicate OK [12:14:14]SAM_PROTO_SignData done [12:14:14]FM_MakeSignedData done [12:14:14]CreateOFDProtocolMessage [12:14:14]wFMCommunicate request_size=4 [12:14:14]MH_SAM_APDU [12:14:14]CAPDU: 80 11 00 00 [12:14:14]Write to MH i2c: E2 08 00 FB 49 80 11 00 00 00 00 00 00 BE [12:14:14]Write i2c OK [12:14:14]MH_I2C_Read... [12:14:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:14]Read from MH i2c: E2 [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: E2 17 00 [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: E2 17 00 FB 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 15 [12:14:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:14:14]wFMCommunicate OK [12:14:14]CreateOFDProtocolMessage done [12:14:14]OFDSenderStorePacket 92593 [12:14:14]StoreOFDPacket docnum=92593 [12:14:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3F 01 00 00 FB F8 37 01 E5 17 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 9D CF E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B1 69 01 00 35 04 06 00 46 D3 A1 BF 9C DF BB A2 AB 74 DF 59 0C AC [12:14:14]CheckFolder [12:14:14]dirname=/storage/ofd_packets [12:14:14]CheckFolder done [12:14:14]ProducePacketName [12:14:14]name=ofd_packets/00092593 [12:14:14]NVStorageSaveData ofd_packets/00092593 [12:14:14]File name is /storage/ofd_packets/00092593 [12:14:14]Write 349 bytes [12:14:14]NVStorageSaveData done [12:14:14]OFDSenderStorePacket done [12:14:14]KKMCreateOFDPacket done [12:14:14]NVStorageSaveData kkm_last_timestamp [12:14:14]File name is /storage/kkm_last_timestamp [12:14:14]Write 4 bytes [12:14:14]NVStorageSaveData done [12:14:14]ExternCall_PrintAddStr [12:14:14]wPrintStart [12:14:14]Write to MH i2c: 01 00 00 FC 49 45 [12:14:14]Write i2c OK [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: 01 [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: 01 07 00 [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: 01 07 00 FC 49 00 00 00 00 00 FF 0F 5A [12:14:14]RasterBufferAndPrint [12:14:14]line Счет N : (3)127487 [12:14:14]line ИНН: 02508201610067 [12:14:14]line Контрольно-Кассовый Чек [12:14:14]line ПРОДАЖА [12:14:14]line Товар: 4870002325113 [12:14:14]line Напиток PEPSI газированный ст 0,25л [12:14:14]line 1.000 * 90.00 [12:14:14]line = 90.00 [12:14:14]line НДС 12% НСП 1% [12:14:14]line > о реализуемом товаре [12:14:14]line ИТОГО: 90.00 [12:14:14]line НСП 1% : 0.80 [12:14:14]line НДС 12% : 9.56 [12:14:14]line Наличными: 90.00 [12:14:14]line Безнал.: 0.00 [12:14:14]line Место: АЗС № 5 "Партнер Нефть" [12:14:14]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:14:14]line СНО: Общий режим [12:14:14]line Чек 41 15.09.2024 12:14 [12:14:14]line Смена: 507 ФФД: 1.0 [12:14:14]line ЗНМ: 03000000022 [12:14:14]line РНМ: 0000000000091423 [12:14:14]line Версия ККМ: 001 [12:14:14]line ФМ: 0000000000874692 [12:14:14]line ФД: 92593 [12:14:14]line ФПД: 77874765733087 [12:14:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T121421&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92593&fm=77874765733087&tin=02508201610067®Number=0000000000091423&sum=9000 [12:14:14]line 0 [12:14:14]written 0, free lines is 4095 [12:14:14]OFD Sender: Processing packet 92593 [packets to send 63, broken 62] [12:14:14]ProducePacketName [12:14:14]name=ofd_packets/00092593 [12:14:14]OFD Sender: To server: pG, [12:14:14]CommunicateWithHost lk.salyk.kg:30040 [12:14:14]ConnectInit lk.salyk.kg [12:14:14]Connected sock=10 [12:14:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3F 01 00 00 FB F8 37 01 E5 17 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 9D CF E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B1 69 01 00 35 04 06 00 46 D3 A1 BF 9C DF BB A2 AB 74 DF 59 0C AC [12:14:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 2D D1 47 00 65 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B1 69 01 00 F4 03 04 00 15 78 E6 66 B6 04 01 00 00 A8 9A A8 4F 5C A1 28 F0 [12:14:15]CommunicateWithHost err = 0 [12:14:15]CheckOFDResponse [12:14:15]1017 (14) - 77093643461234 [12:14:15]1041 (16) - 0000000000874692 [12:14:15]1040 (4) - 92593 [12:14:15]1012 (4) - 15.09.2024 06:00 [12:14:15]1206 (1) - 0 [12:14:15]OFD Sender: Remove packet 92593 [12:14:15]ProducePacketName [12:14:15]name=ofd_packets/00092593 [12:14:15]NVStorageDeleteData [12:14:15]Write to MH i2c: 01 00 00 25 4A 6F [12:14:15]Write i2c OK [12:14:15]MH_I2C_Read... [12:14:15]Read from MH i2c: 01 [12:14:15]MH_I2C_Read... [12:14:15]Read from MH i2c: 01 07 00 [12:14:15]MH_I2C_Read... [12:14:15]Read from MH i2c: 01 07 00 25 4A 00 00 00 00 00 03 0D 86 [12:14:15]RasterBufferAndPrint [12:14:15]line [12:14:15]line [12:14:15]line [12:14:15]line [12:14:15]line [12:14:15]written 0, free lines is 3340 [12:14:15]MH_Cut [12:14:15]Write to MH i2c: D1 01 00 2C 4A 01 48 [12:14:15]Write i2c OK [12:14:15]MH_I2C_Read... [12:14:15]Read from MH i2c: D1 [12:14:15]MH_I2C_Read... [12:14:15]Read from MH i2c: D1 01 00 [12:14:15]MH_I2C_Read... [12:14:15]Read from MH i2c: D1 01 00 2C 4A 00 47 [12:14:15]Write to MH i2c: 01 00 00 2D 4A 77 [12:14:15]Write i2c OK [12:14:15]MH_I2C_Read... [12:14:15]OFD Sender: No OFD packet to send [12:14:15]*** Cut start [12:14:15]*** Purtial cut [12:14:15]*** Stage 1: CUTSNS_PIN = 1 [12:14:17]Read from MH i2c: 01 [12:14:17]MH_I2C_Read... [12:14:17]*** Stop cut motor [12:14:17]*** Cut end [12:14:17]Read from MH i2c: 01 07 00 [12:14:17]MH_I2C_Read... [12:14:17]Read from MH i2c: 01 07 00 2D 4A 00 00 00 00 00 FF 0F 8C [12:14:17]process_action close_receipt done [12:14:17]requested_data is exist [12:14:17]produce_requested_data [12:14:17]requested_item fm.sn is exist - process it [12:14:17]wFMCommunicate request_size=4 [12:14:17]MH_SAM_APDU [12:14:17]CAPDU: 80 11 00 00 [12:14:17]Write to MH i2c: E2 08 00 2E 4A 80 11 00 00 00 00 00 00 F2 [12:14:17]Write i2c OK [12:14:17]MH_I2C_Read... [12:14:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:18]Read from MH i2c: E2 [12:14:18]MH_I2C_Read... [12:14:18]Read from MH i2c: E2 17 00 [12:14:18]MH_I2C_Read... [12:14:18]Read from MH i2c: E2 17 00 2E 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 49 [12:14:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:14:18]wFMCommunicate OK [12:14:18]requested_item fd.num is exist - process it [12:14:18]SAM_PROTO_GetFieldsCounters [12:14:18]wFMCommunicate request_size=4 [12:14:18]MH_SAM_APDU [12:14:18]CAPDU: 80 13 00 00 [12:14:18]Write to MH i2c: E2 08 00 2F 4A 80 13 00 00 00 00 00 00 F5 [12:14:18]Write i2c OK [12:14:18]MH_I2C_Read... [12:14:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:18]Read from MH i2c: E2 [12:14:18]MH_I2C_Read... [12:14:18]Read from MH i2c: E2 62 00 [12:14:18]MH_I2C_Read... [12:14:18]Read from MH i2c: E2 62 00 2F 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B1 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [12:14:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B1 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:14:18]wFMCommunicate OK [12:14:18]SAM_PROTO_GetFieldsCounters done [12:14:18]requested_item shift.num is exist - process it [12:14:18]requested_item shift.opened is exist - process it [12:14:18]req_shift_opened [12:14:18]FM_GetShiftState [12:14:18]SAM_PROTO_GetShiftState [12:14:18]wFMCommunicate request_size=4 [12:14:18]MH_SAM_APDU [12:14:18]CAPDU: 80 13 01 00 [12:14:18]Write to MH i2c: E2 08 00 30 4A 80 13 01 00 00 00 00 00 F7 [12:14:18]Write i2c OK [12:14:18]MH_I2C_Read... [12:14:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:18]Read from MH i2c: E2 [12:14:18]MH_I2C_Read... [12:14:18]Read from MH i2c: E2 0E 00 [12:14:18]MH_I2C_Read... [12:14:18]Read from MH i2c: E2 0E 00 30 4A 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 79 [12:14:18]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [12:14:18]wFMCommunicate OK [12:14:18]SAM_PROTO_GetShiftState done [12:14:18]FM_GetShiftState done [12:14:18]req_shift_opened done [12:14:18]requested_item shift.open_date is exist - process it [12:14:18]req_shift_open_date [12:14:18]req_shift_open_date done [12:14:18]produce_requested_data done [12:14:18]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92593,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [12:14:18]process_action_free close_receipt [12:14:18]json_value_free [12:14:18]json_value_free done [12:14:18]process_json_proto returns [12:14:18]Send response to host [12:14:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92593,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [12:14:18]free response buf [12:14:18]execute_script done [12:14:18]execute_script returns [12:14:18]free content buf [12:14:18]Sock 8.Close socket [12:14:18]Sock 8.Thread stoped [12:14:20]OFD Sender: No OFD packet to send [12:14:25]OFD Sender: No OFD packet to send [12:14:30]OFD Sender: No OFD packet to send [12:14:35]OFD Sender: No OFD packet to send [12:14:40]OFD Sender: No OFD packet to send [12:14:45]OFD Sender: No OFD packet to send [12:14:50]OFD Sender: No OFD packet to send [12:14:55]OFD Sender: No OFD packet to send [12:15:00]OFD Sender: No OFD packet to send [12:15:05]OFD Sender: No OFD packet to send [12:15:10]OFD Sender: No OFD packet to send [12:15:15]OFD Sender: No OFD packet to send [12:15:20]OFD Sender: No OFD packet to send [12:15:25]OFD Sender: No OFD packet to send [12:15:30]OFD Sender: No OFD packet to send [12:15:35]OFD Sender: No OFD packet to send [12:15:40]OFD Sender: No OFD packet to send [12:15:45]OFD Sender: No OFD packet to send [12:15:50]OFD Sender: No OFD packet to send [12:15:55]OFD Sender: No OFD packet to send [12:16:00]OFD Sender: No OFD packet to send [12:16:05]OFD Sender: No OFD packet to send [12:16:10]OFD Sender: No OFD packet to send [12:16:15]OFD Sender: No OFD packet to send [12:16:20]OFD Sender: No OFD packet to send [12:16:25]OFD Sender: No OFD packet to send [12:16:30]OFD Sender: No OFD packet to send [12:16:35]OFD Sender: No OFD packet to send [12:16:40]OFD Sender: No OFD packet to send [12:16:45]OFD Sender: No OFD packet to send [12:16:50]OFD Sender: No OFD packet to send [12:16:55]OFD Sender: No OFD packet to send [12:17:00]OFD Sender: No OFD packet to send [12:17:05]OFD Sender: No OFD packet to send [12:17:10]OFD Sender: No OFD packet to send [12:17:15]OFD Sender: No OFD packet to send [12:17:20]OFD Sender: No OFD packet to send [12:17:25]OFD Sender: No OFD packet to send [12:17:30]OFD Sender: No OFD packet to send [12:17:32]accept exits with 9 [12:17:32]New connection [12:17:32]New thread 3066658148 created [12:17:32]Thread 3066801508 joined [12:17:32]Waiting for new connection... [12:17:32] Sock 9.Parse request [12:17:32]Sock 9.Check first char [12:17:32]Sock 9.First char is OK [12:17:32]request: POST /json_proto HTTP/1.0 [12:17:32]Method: POST [12:17:32]URL: /json_proto [12:17:32]Method is POST - this is cgi request [12:17:32]url: /json_proto [12:17:32]query_string will be loaded in cgi processing [12:17:32]execute_cgi json_proto POST (null) [12:17:32]execute_cgi path=json_proto method=POST [12:17:32]POST find Content-Length [12:17:32]Host: 172.17.57.71:8080 [12:17:32]Content-Length: 3227 [12:17:32]Content-Type: application/json [12:17:32] [12:17:32]POST finish read [12:17:32]Found Content-Length = 3227 [12:17:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127488", "tax_sys" : 0, "items" : [ { "code": "4870001150402", "name": "\u0421\u043E\u043A Da-Da 1\u043B \u0442\u0440\u043E\u043F\u0438\u043A", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001150389", "name": "\u0421\u043E\u043A DaDa 0,95\u043B \u0412\u0438\u0448\u043D\u044F", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001150099", "name": "\u0421\u043E\u043A Da-Da 1\u043B \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 2.000, "sum" : 220.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001339", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,33\u043B \u0441\u0442", "price" : 87.00, "quantity" : 1.000, "sum" : 87.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607014820462", "name": "\u041B\u044E\u0431\u0438\u043C\u044B\u0439 \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u042F\u0431\u043B\u0412\u0438\u0448\u0427\u0435\u0440\u0435\u0448 0.95\u043B", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1504.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:32]execute_script... [12:17:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127488", "tax_sys" : 0, "items" : [ { "code": "4870001150402", "name": "\u0421\u043E\u043A Da-Da 1\u043B \u0442\u0440\u043E\u043F\u0438\u043A", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001150389", "name": "\u0421\u043E\u043A DaDa 0,95\u043B \u0412\u0438\u0448\u043D\u044F", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001150099", "name": "\u0421\u043E\u043A Da-Da 1\u043B \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 2.000, "sum" : 220.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001339", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,33\u043B \u0441\u0442", "price" : 87.00, "quantity" : 1.000, "sum" : 87.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607014820462", "name": "\u041B\u044E\u0431\u0438\u043C\u044B\u0439 \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u042F\u0431\u043B\u0412\u0438\u0448\u0427\u0435\u0440\u0435\u0448 0.95\u043B", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1504.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:32]POST & json_proto [12:17:32]process_json_proto [12:17:32]json parsed OK: [12:17:32]protocol is kg_v1.0 [12:17:32]action value=close_receipt [12:17:32]process_action close_receipt [12:17:32]cmd_close_receipt [12:17:32]MH_GetDate [12:17:32]Write to MH i2c: F0 00 00 31 4A 6A [12:17:32]Write i2c OK [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: F0 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: F0 09 00 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: F0 09 00 31 4A 00 64 D0 E6 66 33 3A A4 66 6A [12:17:32]GetLastDocTimeStamp 1726402461 [12:17:32]current date 1726402660 [12:17:32]FM_GetShiftState [12:17:32]SAM_PROTO_GetShiftState [12:17:32]wFMCommunicate request_size=4 [12:17:32]MH_SAM_APDU [12:17:32]CAPDU: 80 13 01 00 [12:17:32]Write to MH i2c: E2 08 00 32 4A 80 13 01 00 00 00 00 00 F9 [12:17:32]Write i2c OK [12:17:32]MH_I2C_Read... [12:17:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:32]Read from MH i2c: E2 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: E2 0E 00 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: E2 0E 00 32 4A 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 7B [12:17:32]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [12:17:32]wFMCommunicate OK [12:17:32]SAM_PROTO_GetShiftState done [12:17:32]FM_GetShiftState done [12:17:32]opened in 1726359809 [12:17:32]opened+sec_in_day 1726446209 [12:17:32]quantity*price = 15000 [12:17:32]sum+1 = 15001 [12:17:32]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001150389 Сок DaDa 0,95л Вишня 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001150099 Сок Da-Da 1л персик 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 2.000 * 105.00 = 210.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 2.000 * 110.00 = 220.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000006271 Напиток Фанта 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160204 Вода Легенда 1,5л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 2.000 * 50.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000005489 Вода Бонаква 1л б/г 1.000 * 42.00 = 42.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4860019001339 Вода Боржоми 0,33л ст 1.000 * 87.00 = 87.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607014820462 Любимый напиток ЯблВишЧереш 0.95л 2.000 * 115.00 = 230.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1504.00 НСП 1% : 13.31 НДС 12% : 159.71 Наличными: 1504.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 42 15.09.2024 12:17 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92594 ФПД: 156117762872317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T121741&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92594&fm=156117762872317&tin=02508201610067®Number=0000000000091423&sum=150400 0 [12:17:34]StoreToDocumentArchive [12:17:34]shift 507 fd 92594 [12:17:34]save to /storage/0507/doc_00092594 [12:17:34]save last doc name /storage/0507/doc_00092594 to /storage/kkm_last_doc_name [12:17:34]save OK [12:17:34]Clear old archive folders... [12:17:34]ProcessDocumentItem done err = 0, tmpTLVsize=1321 [12:17:34]tlvbuf is 00FA17C0 [12:17:34]SAM_PROTO_ClearQueue [12:17:34]wFMCommunicate request_size=4 [12:17:34]MH_SAM_APDU [12:17:34]CAPDU: 80 09 00 00 [12:17:34]Write to MH i2c: E2 08 00 3F 4A 80 09 00 00 00 00 00 00 FB [12:17:34]Write i2c OK [12:17:34]MH_I2C_Read... [12:17:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:34]Read from MH i2c: E2 [12:17:34]MH_I2C_Read... [12:17:34]Read from MH i2c: E2 03 00 [12:17:34]MH_I2C_Read... [12:17:34]Read from MH i2c: E2 03 00 3F 4A 00 90 00 FD [12:17:34]RAPDU: 90 00 [12:17:34]wFMCommunicate OK [12:17:34]SAM_PROTO_ClearQueue done [12:17:34]KKMCreateOFDPacket [12:17:34]OFDProtocolAddRootSTLVToBuf [12:17:34]FM_MakeSignedData [12:17:34]FM_MakeSignedData [12:17:34]SAM_PROTO_SignData [12:17:34]wFMCommunicate request_size=4 [12:17:34]MH_SAM_APDU [12:17:34]CAPDU: 80 0D 01 02 [12:17:34]Write to MH i2c: E2 08 00 40 4A 80 0D 01 02 00 00 00 00 03 [12:17:34]Write i2c OK [12:17:34]MH_I2C_Read... [12:17:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:34]Read from MH i2c: E2 [12:17:34]MH_I2C_Read... [12:17:34]Read from MH i2c: E2 03 00 [12:17:34]MH_I2C_Read... [12:17:34]Read from MH i2c: E2 03 00 40 4A 00 90 00 FE [12:17:34]RAPDU: 90 00 [12:17:34]wFMCommunicate OK [12:17:34]wFMCommunicate request_size=255 [12:17:34]MH_SAM_APDU [12:17:34]CAPDU: 80 0D 02 02 FA 03 00 29 05 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 34 30 32 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 33 38 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 44 61 20 30 2C 39 35 D0 BB 20 D0 92 D0 B8 D1 88 D0 BD D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 39 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 [12:17:34]Write to MH i2c: E2 02 01 41 4A 80 0D 02 02 FA 00 03 00 29 05 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 34 30 32 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 33 38 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 44 61 20 30 2C 39 35 D0 BB 20 D0 92 D0 B8 D1 88 D0 BD D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 39 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 00 00 6B [12:17:34]Write i2c OK [12:17:34]MH_I2C_Read... [12:17:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:34]Read from MH i2c: E2 [12:17:34]MH_I2C_Read... [12:17:34]Read from MH i2c: E2 03 00 [12:17:34]MH_I2C_Read... [12:17:34]Read from MH i2c: E2 03 00 41 4A 00 90 00 FF [12:17:34]RAPDU: 90 00 [12:17:34]wFMCommunicate OK [12:17:34]wFMCommunicate request_size=255 [12:17:34]MH_SAM_APDU [12:17:34]CAPDU: 80 0D 02 02 FA D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 [12:17:34]Write to MH i2c: E2 02 01 42 4A 80 0D 02 02 FA 00 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 00 00 16 [12:17:34]Write i2c OK [12:17:34]MH_I2C_Read... [12:17:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:35]Read from MH i2c: E2 [12:17:35]MH_I2C_Read... [12:17:35]Read from MH i2c: E2 03 00 [12:17:35]MH_I2C_Read... [12:17:35]Read from MH i2c: E2 03 00 42 4A 00 90 00 00 [12:17:35]RAPDU: 90 00 [12:17:35]wFMCommunicate OK [12:17:35]wFMCommunicate request_size=255 [12:17:35]MH_SAM_APDU [12:17:35]CAPDU: 80 0D 02 02 FA 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 [12:17:35]Write to MH i2c: E2 02 01 43 4A 80 0D 02 02 FA 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 00 00 93 [12:17:35]Write i2c OK [12:17:35]MH_I2C_Read... [12:17:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:35]Read from MH i2c: E2 [12:17:35]MH_I2C_Read... [12:17:35]Read from MH i2c: E2 03 00 [12:17:35]MH_I2C_Read... [12:17:35]Read from MH i2c: E2 03 00 43 4A 00 90 00 01 [12:17:35]RAPDU: 90 00 [12:17:35]wFMCommunicate OK [12:17:35]wFMCommunicate request_size=255 [12:17:35]MH_SAM_APDU [12:17:35]CAPDU: 80 0D 02 02 FA B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 [12:17:35]Write to MH i2c: E2 02 01 44 4A 80 0D 02 02 FA 00 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 A7 [12:17:35]Write i2c OK [12:17:35]MH_I2C_Read... [12:17:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:35]Read from MH i2c: E2 [12:17:35]MH_I2C_Read... [12:17:35]Read from MH i2c: E2 03 00 [12:17:35]MH_I2C_Read... [12:17:35]Read from MH i2c: E2 03 00 44 4A 00 90 00 02 [12:17:35]RAPDU: 90 00 [12:17:35]wFMCommunicate OK [12:17:35]wFMCommunicate request_size=255 [12:17:35]MH_SAM_APDU [12:17:35]CAPDU: 80 0D 02 02 FA 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 36 30 37 30 31 34 38 32 30 34 36 32 06 04 3B 00 D0 9B D1 8E D0 B1 D0 B8 D0 BC D1 8B D0 B9 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 AF D0 B1 D0 BB D0 92 D0 B8 D1 88 D0 A7 D0 B5 D1 80 D0 B5 D1 88 20 30 2E 39 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 4B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 3E 00 00 00 00 07 04 06 00 80 4B 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 [12:17:35]Write to MH i2c: E2 02 01 45 4A 80 0D 02 02 FA 00 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 36 30 37 30 31 34 38 32 30 34 36 32 06 04 3B 00 D0 9B D1 8E D0 B1 D0 B8 D0 BC D1 8B D0 B9 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 AF D0 B1 D0 BB D0 92 D0 B8 D1 88 D0 A7 D0 B5 D1 80 D0 B5 D1 88 20 30 2E 39 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 4B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 3E 00 00 00 00 07 04 06 00 80 4B 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 00 00 04 [12:17:35]Write i2c OK [12:17:35]MH_I2C_Read... [12:17:35]OFD Sender: No OFD packet to send [12:17:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:36]Read from MH i2c: E2 [12:17:36]MH_I2C_Read... [12:17:36]Read from MH i2c: E2 03 00 [12:17:36]MH_I2C_Read... [12:17:36]Read from MH i2c: E2 03 00 45 4A 00 90 00 03 [12:17:36]RAPDU: 90 00 [12:17:36]wFMCommunicate OK [12:17:36]wFMCommunicate request_size=80 [12:17:36]MH_SAM_APDU [12:17:36]CAPDU: 80 0D 02 02 4B 65 D0 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B2 69 01 00 35 04 06 00 8D FC FF CC 93 FD [12:17:36]Write to MH i2c: E2 53 00 46 4A 80 0D 02 02 4B 00 65 D0 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B2 69 01 00 35 04 06 00 8D FC FF CC 93 FD 00 00 C6 [12:17:36]Write i2c OK [12:17:36]MH_I2C_Read... [12:17:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:36]Read from MH i2c: E2 [12:17:36]MH_I2C_Read... [12:17:36]Read from MH i2c: E2 03 00 [12:17:36]MH_I2C_Read... [12:17:36]Read from MH i2c: E2 03 00 46 4A 00 90 00 04 [12:17:36]RAPDU: 90 00 [12:17:36]wFMCommunicate OK [12:17:36]wFMCommunicate request_size=4 [12:17:36]MH_SAM_APDU [12:17:36]CAPDU: 80 0D 03 02 [12:17:36]Write to MH i2c: E2 08 00 47 4A 80 0D 03 02 00 00 00 00 0C [12:17:36]Write i2c OK [12:17:36]MH_I2C_Read... [12:17:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:36]Read from MH i2c: E2 [12:17:36]MH_I2C_Read... [12:17:36]Read from MH i2c: E2 0B 00 [12:17:36]MH_I2C_Read... [12:17:36]Read from MH i2c: E2 0B 00 47 4A 00 A5 95 92 72 C1 3C 3A E8 90 00 6A [12:17:36]RAPDU: A5 95 92 72 C1 3C 3A E8 90 00 [12:17:36]wFMCommunicate OK [12:17:36]SAM_PROTO_SignData done [12:17:36]FM_MakeSignedData done [12:17:36]CreateOFDProtocolMessage [12:17:36]wFMCommunicate request_size=4 [12:17:36]MH_SAM_APDU [12:17:36]CAPDU: 80 11 00 00 [12:17:36]Write to MH i2c: E2 08 00 48 4A 80 11 00 00 00 00 00 00 0C [12:17:36]Write i2c OK [12:17:36]MH_I2C_Read... [12:17:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:36]Read from MH i2c: E2 [12:17:36]MH_I2C_Read... [12:17:36]Read from MH i2c: E2 17 00 [12:17:36]MH_I2C_Read... [12:17:36]Read from MH i2c: E2 17 00 48 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 63 [12:17:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:17:36]wFMCommunicate OK [12:17:36]CreateOFDProtocolMessage done [12:17:36]OFDSenderStorePacket 92594 [12:17:36]StoreOFDPacket docnum=92594 [12:17:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3D 05 00 00 14 53 35 05 24 3C 5A 03 01 00 03 00 29 05 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 34 30 32 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 33 38 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 44 61 20 30 2C 39 35 D0 BB 20 D0 92 D0 B8 D1 88 D0 BD D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 39 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 36 30 37 30 31 34 38 32 30 34 36 32 06 04 3B 00 D0 9B D1 8E D0 B1 D0 B8 D0 BC D1 8B D0 B9 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 AF D0 B1 D0 BB D0 92 D0 B8 D1 88 D0 A7 D0 B5 D1 80 D0 B5 D1 88 20 30 2E 39 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 4B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 3E 00 00 00 00 07 04 06 00 80 4B 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 65 D0 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B2 69 01 00 35 04 06 00 8D FC FF CC 93 FD A5 95 92 72 C1 3C 3A E8 [12:17:36]CheckFolder [12:17:36]dirname=/storage/ofd_packets [12:17:36]CheckFolder done [12:17:36]ProducePacketName [12:17:36]name=ofd_packets/00092594 [12:17:36]NVStorageSaveData ofd_packets/00092594 [12:17:36]File name is /storage/ofd_packets/00092594 [12:17:36]Write 1371 bytes [12:17:36]NVStorageSaveData done [12:17:36]OFDSenderStorePacket done [12:17:36]KKMCreateOFDPacket done [12:17:36]NVStorageSaveData kkm_last_timestamp [12:17:36]File name is /storage/kkm_last_timestamp [12:17:36]Write 4 bytes [12:17:36]NVStorageSaveData done [12:17:36]ExternCall_PrintAddStr [12:17:36]wPrintStart [12:17:36]Write to MH i2c: 01 00 00 49 4A 93 [12:17:36]Write i2c OK [12:17:36]MH_I2C_Read... [12:17:36]Read from MH i2c: 01 [12:17:36]MH_I2C_Read... [12:17:36]Read from MH i2c: 01 07 00 [12:17:36]MH_I2C_Read... [12:17:36]Read from MH i2c: 01 07 00 49 4A 00 00 00 00 00 FF 0F A8 [12:17:36]RasterBufferAndPrint [12:17:36]line Счет N : (3)127488 [12:17:36]line ИНН: 02508201610067 [12:17:36]line Контрольно-Кассовый Чек [12:17:36]line ПРОДАЖА [12:17:36]line Товар: 4870001150402 [12:17:36]line Сок Da-Da 1л тропик [12:17:36]line 1.000 * 150.00 [12:17:36]line = 150.00 [12:17:36]line НДС 12% НСП 1% [12:17:36]line > о реализуемом товаре [12:17:36]line Товар: 4870001150389 [12:17:36]line Сок DaDa 0,95л Вишня [12:17:36]line 1.000 * 150.00 [12:17:36]line = 150.00 [12:17:36]line НДС 12% НСП 1% [12:17:36]line > о реализуемом товаре [12:17:36]line Товар: 4870001150099 [12:17:36]line Сок Da-Da 1л персик [12:17:36]line 1.000 * 150.00 [12:17:36]line = 150.00 [12:17:36]line НДС 12% НСП 1% [12:17:36]line > о реализуемом товаре [12:17:36]line Товар: 5449000054227 [12:17:36]line Напиток Кока-Кола 1л [12:17:36]line 2.000 * 105.00 [12:17:36]line = 210.00 [12:17:36]line НДС 12% НСП 1% [12:17:36]line > о реализуемом товаре [12:17:36]line Товар: 4870001570071 [12:17:36]line Напиток Pepsi 1л [12:17:36]line 2.000 * 110.00 [12:17:36]line = 220.00 [12:17:36]line НДС 12% НСП 1% [12:17:36]line > о реализуемом товаре [12:17:36]line Товар: 5449000006271 [12:17:36]line Напиток Фанта 1л [12:17:36]line 1.000 * 105.00 [12:17:36]line = 105.00 [12:17:36]line НДС 12% НСП 1% [12:17:36]line > о реализуемом товаре [12:17:36]line Товар: 4700000160204 [12:17:36]line Вода Легенда 1,5л [12:17:36]line 1.000 * 60.00 [12:17:36]line = 60.00 [12:17:36]line НДС 12% НСП 1% [12:17:36]line > о реализуемом товаре [12:17:36]line Товар: 4700000160358 [12:17:36]line Вода Легенда 1л [12:17:36]line 2.000 * 50.00 [12:17:36]line = 100.00 [12:17:36]line НДС 12% НСП 1% [12:17:36]line > о реализуемом товаре [12:17:36]line Товар: 5449000005489 [12:17:36]line Вода Бонаква 1л б/г [12:17:36]line 1.000 * 42.00 [12:17:36]line = 42.00 [12:17:36]line НДС 12% НСП 1% [12:17:36]line > о реализуемом товаре [12:17:36]line Товар: 4860019001339 [12:17:36]line Вода Боржоми 0,33л ст [12:17:36]line 1.000 * 87.00 [12:17:36]line = 87.00 [12:17:36]line НДС 12% НСП 1% [12:17:36]line > о реализуемом товаре [12:17:36]line Товар: 4607014820462 [12:17:36]line Любимый напиток ЯблВишЧереш 0.95л [12:17:36]line 2.000 * 115.00 [12:17:36]line = 230.00 [12:17:36]line НДС 12% НСП 1% [12:17:36]line > о реализуемом товаре [12:17:36]line ИТОГО: 1504.00 [12:17:36]line НСП 1% : 13.31 [12:17:36]line НДС 12% : 159.71 [12:17:36]line Наличными: 1504.00 [12:17:36]line Безнал.: 0.00 [12:17:36]line Место: АЗС № 5 "Партнер Нефть" [12:17:36]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:17:36]line СНО: Общий режим [12:17:36]line Чек 42 15.09.2024 12:17 [12:17:36]line Смена: 507 ФФД: 1.0 [12:17:36]line ЗНМ: 03000000022 [12:17:36]line РНМ: 0000000000091423 [12:17:36]line Версия ККМ: 001 [12:17:36]line ФМ: 0000000000874692 [12:17:36]line ФД: 92594 [12:17:36]line ФПД: 156117762872317 [12:17:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T121741&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92594&fm=156117762872317&tin=02508201610067®Number=0000000000091423&sum=150400 [12:17:36]line 0 [12:17:36]written 0, free lines is 4095 [12:17:36]OFD Sender: Processing packet 92594 [packets to send 63, broken 62] [12:17:36]ProducePacketName [12:17:36]name=ofd_packets/00092594 [12:17:36]OFD Sender: To server: pG, [12:17:36]CommunicateWithHost lk.salyk.kg:30040 [12:17:36]ConnectInit lk.salyk.kg [12:17:36]Connected sock=10 [12:17:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3D 05 00 00 14 53 35 05 24 3C 5A 03 01 00 03 00 29 05 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 34 30 32 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 33 38 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 44 61 20 30 2C 39 35 D0 BB 20 D0 92 D0 B8 D1 88 D0 BD D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 39 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 36 30 37 30 31 34 38 32 30 34 36 32 06 04 3B 00 D0 9B D1 8E D0 B1 D0 B8 D0 BC D1 8B D0 B9 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 AF D0 B1 D0 BB D0 92 D0 B8 D1 88 D0 A7 D0 B5 D1 80 D0 B5 D1 88 20 30 2E 39 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 4B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 3E 00 00 00 00 07 04 06 00 80 4B 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 65 D0 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B2 69 01 00 35 04 06 00 8D FC FF CC 93 FD A5 95 92 72 C1 3C 3A E8 [12:17:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 16 68 47 00 AF 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B2 69 01 00 F4 03 04 00 DF 78 E6 66 B6 04 01 00 00 4F 79 83 E0 80 C0 41 B5 [12:17:37]CommunicateWithHost err = 0 [12:17:37]CheckOFDResponse [12:17:37]1017 (14) - 77093643461234 [12:17:37]1041 (16) - 0000000000874692 [12:17:37]1040 (4) - 92594 [12:17:37]1012 (4) - 15.09.2024 06:04 [12:17:37]1206 (1) - 0 [12:17:37]OFD Sender: Remove packet 92594 [12:17:37]ProducePacketName [12:17:37]name=ofd_packets/00092594 [12:17:37]NVStorageDeleteData [12:17:37]Write to MH i2c: 01 00 00 AE 4A F8 [12:17:37]Write i2c OK [12:17:37]MH_I2C_Read... [12:17:37]Read from MH i2c: 01 [12:17:37]MH_I2C_Read... [12:17:37]Read from MH i2c: 01 07 00 [12:17:37]MH_I2C_Read... [12:17:37]Read from MH i2c: 01 07 00 AE 4A 00 00 00 00 00 11 0A 1A [12:17:37]RasterBufferAndPrint [12:17:37]line [12:17:37]line [12:17:37]line [12:17:37]line [12:17:37]line [12:17:37]written 0, free lines is 2593 [12:17:37]MH_Cut [12:17:37]Write to MH i2c: D1 01 00 B5 4A 01 D1 [12:17:37]Write i2c OK [12:17:37]MH_I2C_Read... [12:17:37]Read from MH i2c: D1 [12:17:37]MH_I2C_Read... [12:17:37]Read from MH i2c: D1 01 00 [12:17:37]MH_I2C_Read... [12:17:37]Read from MH i2c: D1 01 00 B5 4A 00 D0 [12:17:37]Write to MH i2c: 01 00 00 B6 4A 00 [12:17:37]Write i2c OK [12:17:37]MH_I2C_Read... [12:17:37]OFD Sender: No OFD packet to send [12:17:38]*** Cut start [12:17:38]*** Purtial cut [12:17:38]*** Stage 1: CUTSNS_PIN = 1 [12:17:40]Read from MH i2c: 01 [12:17:40]MH_I2C_Read... [12:17:40]*** Stop cut motor [12:17:40]*** Cut end [12:17:40]Read from MH i2c: 01 07 00 [12:17:40]MH_I2C_Read... [12:17:40]Read from MH i2c: 01 07 00 B6 4A 00 00 00 00 00 FF 0F 15 [12:17:40]process_action close_receipt done [12:17:40]requested_data is exist [12:17:40]produce_requested_data [12:17:40]requested_item fm.sn is exist - process it [12:17:40]wFMCommunicate request_size=4 [12:17:40]MH_SAM_APDU [12:17:40]CAPDU: 80 11 00 00 [12:17:40]Write to MH i2c: E2 08 00 B7 4A 80 11 00 00 00 00 00 00 7B [12:17:40]Write i2c OK [12:17:40]MH_I2C_Read... [12:17:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:40]Read from MH i2c: E2 [12:17:40]MH_I2C_Read... [12:17:40]Read from MH i2c: E2 17 00 [12:17:40]MH_I2C_Read... [12:17:40]Read from MH i2c: E2 17 00 B7 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D2 [12:17:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:17:41]wFMCommunicate OK [12:17:41]requested_item fd.num is exist - process it [12:17:41]SAM_PROTO_GetFieldsCounters [12:17:41]wFMCommunicate request_size=4 [12:17:41]MH_SAM_APDU [12:17:41]CAPDU: 80 13 00 00 [12:17:41]Write to MH i2c: E2 08 00 B8 4A 80 13 00 00 00 00 00 00 7E [12:17:41]Write i2c OK [12:17:41]MH_I2C_Read... [12:17:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:41]Read from MH i2c: E2 [12:17:41]MH_I2C_Read... [12:17:41]Read from MH i2c: E2 62 00 [12:17:41]MH_I2C_Read... [12:17:41]Read from MH i2c: E2 62 00 B8 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B2 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [12:17:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B2 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:41]wFMCommunicate OK [12:17:41]SAM_PROTO_GetFieldsCounters done [12:17:41]requested_item shift.num is exist - process it [12:17:41]requested_item shift.opened is exist - process it [12:17:41]req_shift_opened [12:17:41]FM_GetShiftState [12:17:41]SAM_PROTO_GetShiftState [12:17:41]wFMCommunicate request_size=4 [12:17:41]MH_SAM_APDU [12:17:41]CAPDU: 80 13 01 00 [12:17:41]Write to MH i2c: E2 08 00 B9 4A 80 13 01 00 00 00 00 00 80 [12:17:41]Write i2c OK [12:17:41]MH_I2C_Read... [12:17:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:41]Read from MH i2c: E2 [12:17:41]MH_I2C_Read... [12:17:41]Read from MH i2c: E2 0E 00 [12:17:41]MH_I2C_Read... [12:17:41]Read from MH i2c: E2 0E 00 B9 4A 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 02 [12:17:41]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [12:17:41]wFMCommunicate OK [12:17:41]SAM_PROTO_GetShiftState done [12:17:41]FM_GetShiftState done [12:17:41]req_shift_opened done [12:17:41]requested_item shift.open_date is exist - process it [12:17:41]req_shift_open_date [12:17:41]req_shift_open_date done [12:17:41]produce_requested_data done [12:17:41]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92594,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [12:17:41]process_action_free close_receipt [12:17:41]json_value_free [12:17:41]json_value_free done [12:17:41]process_json_proto returns [12:17:41]Send response to host [12:17:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92594,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [12:17:41]free response buf [12:17:41]execute_script done [12:17:41]execute_script returns [12:17:41]free content buf [12:17:41]Sock 9.Close socket [12:17:41]Sock 9.Thread stoped [12:17:42]OFD Sender: No OFD packet to send [12:17:47]OFD Sender: No OFD packet to send [12:17:52]OFD Sender: No OFD packet to send [12:17:57]OFD Sender: No OFD packet to send [12:18:02]OFD Sender: No OFD packet to send [12:18:03]accept exits with 8 [12:18:03]New connection [12:18:03]New thread 3066801508 created [12:18:03]Thread 3066658148 joined [12:18:03]Waiting for new connection... [12:18:03] Sock 8.Parse request [12:18:03]Sock 8.Check first char [12:18:03]Sock 8.First char is OK [12:18:03]request: POST /json_proto HTTP/1.0 [12:18:03]Method: POST [12:18:03]URL: /json_proto [12:18:03]Method is POST - this is cgi request [12:18:03]url: /json_proto [12:18:03]query_string will be loaded in cgi processing [12:18:03]execute_cgi json_proto POST (null) [12:18:03]execute_cgi path=json_proto method=POST [12:18:03]POST find Content-Length [12:18:03]Host: 172.17.57.71:8080 [12:18:03]Content-Length: 613 [12:18:03]Content-Type: application/json [12:18:03] [12:18:03]POST finish read [12:18:03]Found Content-Length = 613 [12:18:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127489", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:03]execute_script... [12:18:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127489", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:03]POST & json_proto [12:18:03]process_json_proto [12:18:03]json parsed OK: [12:18:03]protocol is kg_v1.0 [12:18:03]action value=close_receipt [12:18:03]process_action close_receipt [12:18:03]cmd_close_receipt [12:18:03]MH_GetDate [12:18:03]Write to MH i2c: F0 00 00 BA 4A F3 [12:18:03]Write i2c OK [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: F0 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: F0 09 00 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: F0 09 00 BA 4A 00 84 D0 E6 66 33 3A A4 66 13 [12:18:03]GetLastDocTimeStamp 1726402661 [12:18:03]current date 1726402692 [12:18:03]FM_GetShiftState [12:18:03]SAM_PROTO_GetShiftState [12:18:03]wFMCommunicate request_size=4 [12:18:03]MH_SAM_APDU [12:18:03]CAPDU: 80 13 01 00 [12:18:03]Write to MH i2c: E2 08 00 BB 4A 80 13 01 00 00 00 00 00 82 [12:18:03]Write i2c OK [12:18:03]MH_I2C_Read... [12:18:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:03]Read from MH i2c: E2 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: E2 0E 00 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: E2 0E 00 BB 4A 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 04 [12:18:03]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [12:18:03]wFMCommunicate OK [12:18:03]SAM_PROTO_GetShiftState done [12:18:03]FM_GetShiftState done [12:18:03]opened in 1726359809 [12:18:03]opened+sec_in_day 1726446209 [12:18:03]quantity*price = 8000 [12:18:03]sum+1 = 8001 [12:18:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 43 15.09.2024 12:18 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92595 ФПД: 107124333081496 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T121812&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92595&fm=107124333081496&tin=02508201610067®Number=0000000000091423&sum=8000 0 [12:18:05]StoreToDocumentArchive [12:18:05]shift 507 fd 92595 [12:18:05]save to /storage/0507/doc_00092595 [12:18:05]save last doc name /storage/0507/doc_00092595 to /storage/kkm_last_doc_name [12:18:05]save OK [12:18:05]Clear old archive folders... [12:18:05]ProcessDocumentItem done err = 0, tmpTLVsize=268 [12:18:05]tlvbuf is 00FB8F10 [12:18:05]SAM_PROTO_ClearQueue [12:18:05]wFMCommunicate request_size=4 [12:18:05]MH_SAM_APDU [12:18:05]CAPDU: 80 09 00 00 [12:18:05]Write to MH i2c: E2 08 00 C8 4A 80 09 00 00 00 00 00 00 84 [12:18:05]Write i2c OK [12:18:05]MH_I2C_Read... [12:18:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:05]Read from MH i2c: E2 [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: E2 03 00 [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: E2 03 00 C8 4A 00 90 00 86 [12:18:05]RAPDU: 90 00 [12:18:05]wFMCommunicate OK [12:18:05]SAM_PROTO_ClearQueue done [12:18:05]KKMCreateOFDPacket [12:18:05]OFDProtocolAddRootSTLVToBuf [12:18:05]FM_MakeSignedData [12:18:05]FM_MakeSignedData [12:18:05]SAM_PROTO_SignData [12:18:05]wFMCommunicate request_size=4 [12:18:05]MH_SAM_APDU [12:18:05]CAPDU: 80 0D 01 02 [12:18:05]Write to MH i2c: E2 08 00 C9 4A 80 0D 01 02 00 00 00 00 8C [12:18:05]Write i2c OK [12:18:05]MH_I2C_Read... [12:18:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:05]Read from MH i2c: E2 [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: E2 03 00 [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: E2 03 00 C9 4A 00 90 00 87 [12:18:05]RAPDU: 90 00 [12:18:05]wFMCommunicate OK [12:18:05]wFMCommunicate request_size=255 [12:18:05]MH_SAM_APDU [12:18:05]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 84 D0 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [12:18:05]Write to MH i2c: E2 02 01 CA 4A 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 84 D0 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 60 [12:18:05]Write i2c OK [12:18:05]MH_I2C_Read... [12:18:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:05]Read from MH i2c: E2 [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: E2 03 00 [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: E2 03 00 CA 4A 00 90 00 88 [12:18:05]RAPDU: 90 00 [12:18:05]wFMCommunicate OK [12:18:05]wFMCommunicate request_size=27 [12:18:05]MH_SAM_APDU [12:18:05]CAPDU: 80 0D 02 02 16 34 36 39 32 10 04 04 00 B3 69 01 00 35 04 06 00 61 6D D3 D1 F3 98 [12:18:05]Write to MH i2c: E2 1E 00 CB 4A 80 0D 02 02 16 00 34 36 39 32 10 04 04 00 B3 69 01 00 35 04 06 00 61 6D D3 D1 F3 98 00 00 01 [12:18:05]Write i2c OK [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: E2 [12:18:05]MH_I2C_Read... [12:18:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:05]Read from MH i2c: E2 03 00 [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: E2 03 00 CB 4A 00 90 00 89 [12:18:05]RAPDU: 90 00 [12:18:05]wFMCommunicate OK [12:18:05]wFMCommunicate request_size=4 [12:18:05]MH_SAM_APDU [12:18:05]CAPDU: 80 0D 03 02 [12:18:05]Write to MH i2c: E2 08 00 CC 4A 80 0D 03 02 00 00 00 00 91 [12:18:05]Write i2c OK [12:18:05]MH_I2C_Read... [12:18:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:05]Read from MH i2c: E2 [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: E2 0B 00 [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: E2 0B 00 CC 4A 00 B1 EB BA DC 9D 29 1E 2E 90 00 D6 [12:18:05]RAPDU: B1 EB BA DC 9D 29 1E 2E 90 00 [12:18:05]wFMCommunicate OK [12:18:05]SAM_PROTO_SignData done [12:18:05]FM_MakeSignedData done [12:18:05]CreateOFDProtocolMessage [12:18:05]wFMCommunicate request_size=4 [12:18:05]MH_SAM_APDU [12:18:05]CAPDU: 80 11 00 00 [12:18:05]Write to MH i2c: E2 08 00 CD 4A 80 11 00 00 00 00 00 00 91 [12:18:05]Write i2c OK [12:18:05]MH_I2C_Read... [12:18:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:05]Read from MH i2c: E2 [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: E2 17 00 [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: E2 17 00 CD 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E8 [12:18:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:18:05]wFMCommunicate OK [12:18:05]CreateOFDProtocolMessage done [12:18:05]OFDSenderStorePacket 92595 [12:18:05]StoreOFDPacket docnum=92595 [12:18:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 20 01 00 00 A7 2D 18 01 63 3D 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 84 D0 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B3 69 01 00 35 04 06 00 61 6D D3 D1 F3 98 B1 EB BA DC 9D 29 1E 2E [12:18:05]CheckFolder [12:18:05]dirname=/storage/ofd_packets [12:18:05]CheckFolder done [12:18:05]ProducePacketName [12:18:05]name=ofd_packets/00092595 [12:18:05]NVStorageSaveData ofd_packets/00092595 [12:18:05]File name is /storage/ofd_packets/00092595 [12:18:05]Write 318 bytes [12:18:05]NVStorageSaveData done [12:18:05]OFDSenderStorePacket done [12:18:05]KKMCreateOFDPacket done [12:18:05]NVStorageSaveData kkm_last_timestamp [12:18:05]File name is /storage/kkm_last_timestamp [12:18:05]Write 4 bytes [12:18:05]NVStorageSaveData done [12:18:05]ExternCall_PrintAddStr [12:18:05]wPrintStart [12:18:05]Write to MH i2c: 01 00 00 CE 4A 18 [12:18:05]Write i2c OK [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: 01 [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: 01 07 00 [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: 01 07 00 CE 4A 00 00 00 00 00 FF 0F 2D [12:18:05]RasterBufferAndPrint [12:18:05]line Счет N : (3)127489 [12:18:05]line ИНН: 02508201610067 [12:18:05]line Контрольно-Кассовый Чек [12:18:05]line ПРОДАЖА [12:18:05]line Товар: 4870001570057 [12:18:05]line Напиток Pepsi 0,5л [12:18:05]line 1.000 * 80.00 [12:18:05]line = 80.00 [12:18:05]line НДС 12% НСП 1% [12:18:05]line > о реализуемом товаре [12:18:05]line ИТОГО: 80.00 [12:18:05]line НСП 1% : 0.71 [12:18:05]line НДС 12% : 8.50 [12:18:05]line Наличными: 80.00 [12:18:05]line Безнал.: 0.00 [12:18:05]line Место: АЗС № 5 "Партнер Нефть" [12:18:05]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:18:05]line СНО: Общий режим [12:18:05]line Чек 43 15.09.2024 12:18 [12:18:05]line Смена: 507 ФФД: 1.0 [12:18:05]line ЗНМ: 03000000022 [12:18:05]line РНМ: 0000000000091423 [12:18:05]line Версия ККМ: 001 [12:18:05]line ФМ: 0000000000874692 [12:18:05]line ФД: 92595 [12:18:05]line ФПД: 107124333081496 [12:18:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T121812&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92595&fm=107124333081496&tin=02508201610067®Number=0000000000091423&sum=8000 [12:18:05]line 0 [12:18:05]written 0, free lines is 4095 [12:18:05]OFD Sender: Processing packet 92595 [packets to send 63, broken 62] [12:18:05]ProducePacketName [12:18:05]name=ofd_packets/00092595 [12:18:05]OFD Sender: To server: pG, [12:18:05]CommunicateWithHost lk.salyk.kg:30040 [12:18:05]ConnectInit lk.salyk.kg [12:18:05]Connected sock=10 [12:18:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 20 01 00 00 A7 2D 18 01 63 3D 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 84 D0 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B3 69 01 00 35 04 06 00 61 6D D3 D1 F3 98 B1 EB BA DC 9D 29 1E 2E [12:18:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 C6 72 47 00 B2 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B3 69 01 00 F4 03 04 00 FC 78 E6 66 B6 04 01 00 00 30 59 E8 E8 F0 F4 FE 96 [12:18:06]CommunicateWithHost err = 0 [12:18:06]CheckOFDResponse [12:18:06]1017 (14) - 77093643461234 [12:18:06]1041 (16) - 0000000000874692 [12:18:06]1040 (4) - 92595 [12:18:06]1012 (4) - 15.09.2024 06:04 [12:18:06]1206 (1) - 0 [12:18:06]OFD Sender: Remove packet 92595 [12:18:06]ProducePacketName [12:18:06]name=ofd_packets/00092595 [12:18:06]NVStorageDeleteData [12:18:06]Write to MH i2c: 01 00 00 F6 4A 40 [12:18:06]Write i2c OK [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: 01 [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: 01 07 00 [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: 01 07 00 F6 4A 00 00 00 00 00 26 0D 7A [12:18:06]RasterBufferAndPrint [12:18:06]line [12:18:06]line [12:18:06]line [12:18:06]line [12:18:06]line [12:18:06]written 0, free lines is 3374 [12:18:06]MH_Cut [12:18:06]Write to MH i2c: D1 01 00 FD 4A 01 19 [12:18:06]Write i2c OK [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: D1 [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: D1 01 00 [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: D1 01 00 FD 4A 00 18 [12:18:06]Write to MH i2c: 01 00 00 FE 4A 48 [12:18:06]Write i2c OK [12:18:06]MH_I2C_Read... [12:18:06]OFD Sender: No OFD packet to send [12:18:06]*** Cut start [12:18:06]*** Purtial cut [12:18:06]*** Stage 1: CUTSNS_PIN = 1 [12:18:08]Read from MH i2c: 01 [12:18:08]MH_I2C_Read... [12:18:08]*** Stop cut motor [12:18:08]*** Cut end [12:18:08]Read from MH i2c: 01 07 00 [12:18:08]MH_I2C_Read... [12:18:08]Read from MH i2c: 01 07 00 FE 4A 00 00 00 00 00 FF 0F 5D [12:18:08]process_action close_receipt done [12:18:08]requested_data is exist [12:18:08]produce_requested_data [12:18:08]requested_item fm.sn is exist - process it [12:18:08]wFMCommunicate request_size=4 [12:18:08]MH_SAM_APDU [12:18:08]CAPDU: 80 11 00 00 [12:18:08]Write to MH i2c: E2 08 00 FF 4A 80 11 00 00 00 00 00 00 C3 [12:18:08]Write i2c OK [12:18:08]MH_I2C_Read... [12:18:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:08]Read from MH i2c: E2 [12:18:08]MH_I2C_Read... [12:18:08]Read from MH i2c: E2 17 00 [12:18:08]MH_I2C_Read... [12:18:08]Read from MH i2c: E2 17 00 FF 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 1A [12:18:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:18:08]wFMCommunicate OK [12:18:08]requested_item fd.num is exist - process it [12:18:08]SAM_PROTO_GetFieldsCounters [12:18:08]wFMCommunicate request_size=4 [12:18:08]MH_SAM_APDU [12:18:08]CAPDU: 80 13 00 00 [12:18:08]Write to MH i2c: E2 08 00 00 4B 80 13 00 00 00 00 00 00 C7 [12:18:08]Write i2c OK [12:18:08]MH_I2C_Read... [12:18:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:08]Read from MH i2c: E2 [12:18:08]MH_I2C_Read... [12:18:08]Read from MH i2c: E2 62 00 [12:18:08]MH_I2C_Read... [12:18:08]Read from MH i2c: E2 62 00 00 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B3 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [12:18:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B3 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:08]wFMCommunicate OK [12:18:08]SAM_PROTO_GetFieldsCounters done [12:18:08]requested_item shift.num is exist - process it [12:18:08]requested_item shift.opened is exist - process it [12:18:08]req_shift_opened [12:18:08]FM_GetShiftState [12:18:08]SAM_PROTO_GetShiftState [12:18:08]wFMCommunicate request_size=4 [12:18:08]MH_SAM_APDU [12:18:08]CAPDU: 80 13 01 00 [12:18:09]Write to MH i2c: E2 08 00 01 4B 80 13 01 00 00 00 00 00 C9 [12:18:09]Write i2c OK [12:18:09]MH_I2C_Read... [12:18:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:09]Read from MH i2c: E2 [12:18:09]MH_I2C_Read... [12:18:09]Read from MH i2c: E2 0E 00 [12:18:09]MH_I2C_Read... [12:18:09]Read from MH i2c: E2 0E 00 01 4B 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 4B [12:18:09]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [12:18:09]wFMCommunicate OK [12:18:09]SAM_PROTO_GetShiftState done [12:18:09]FM_GetShiftState done [12:18:09]req_shift_opened done [12:18:09]requested_item shift.open_date is exist - process it [12:18:09]req_shift_open_date [12:18:09]req_shift_open_date done [12:18:09]produce_requested_data done [12:18:09]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92595,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [12:18:09]process_action_free close_receipt [12:18:09]json_value_free [12:18:09]json_value_free done [12:18:09]process_json_proto returns [12:18:09]Send response to host [12:18:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92595,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [12:18:09]free response buf [12:18:09]execute_script done [12:18:09]execute_script returns [12:18:09]free content buf [12:18:09]Sock 8.Close socket [12:18:09]Sock 8.Thread stoped [12:18:11]OFD Sender: No OFD packet to send [12:18:16]OFD Sender: No OFD packet to send [12:18:21]OFD Sender: No OFD packet to send [12:18:26]OFD Sender: No OFD packet to send [12:18:31]OFD Sender: No OFD packet to send [12:18:36]OFD Sender: No OFD packet to send [12:18:41]OFD Sender: No OFD packet to send [12:18:46]OFD Sender: No OFD packet to send [12:18:51]OFD Sender: No OFD packet to send [12:18:56]OFD Sender: No OFD packet to send [12:19:01]OFD Sender: No OFD packet to send [12:19:06]OFD Sender: No OFD packet to send [12:19:11]OFD Sender: No OFD packet to send [12:19:16]OFD Sender: No OFD packet to send [12:19:21]OFD Sender: No OFD packet to send [12:19:26]OFD Sender: No OFD packet to send [12:19:31]OFD Sender: No OFD packet to send [12:19:33]accept exits with 9 [12:19:33]New connection [12:19:33]New thread 3066658148 created [12:19:33]Thread 3066801508 joined [12:19:33]Waiting for new connection... [12:19:33] Sock 9.Parse request [12:19:33]Sock 9.Check first char [12:19:33]Sock 9.First char is OK [12:19:33]request: POST /json_proto HTTP/1.0 [12:19:33]Method: POST [12:19:33]URL: /json_proto [12:19:33]Method is POST - this is cgi request [12:19:33]url: /json_proto [12:19:33]query_string will be loaded in cgi processing [12:19:33]execute_cgi json_proto POST (null) [12:19:33]execute_cgi path=json_proto method=POST [12:19:33]POST find Content-Length [12:19:33]Host: 172.17.57.71:8080 [12:19:33]Content-Length: 621 [12:19:33]Content-Type: application/json [12:19:33] [12:19:33]POST finish read [12:19:33]Found Content-Length = 621 [12:19:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127490", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:33]execute_script... [12:19:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127490", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:33]POST & json_proto [12:19:33]process_json_proto [12:19:33]json parsed OK: [12:19:33]protocol is kg_v1.0 [12:19:33]action value=close_receipt [12:19:33]process_action close_receipt [12:19:33]cmd_close_receipt [12:19:33]MH_GetDate [12:19:33]Write to MH i2c: F0 00 00 02 4B 3C [12:19:33]Write i2c OK [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: F0 [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: F0 09 00 [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: F0 09 00 02 4B 00 DE D0 E6 66 33 3A A4 66 B6 [12:19:33]GetLastDocTimeStamp 1726402692 [12:19:33]current date 1726402782 [12:19:33]FM_GetShiftState [12:19:33]SAM_PROTO_GetShiftState [12:19:33]wFMCommunicate request_size=4 [12:19:33]MH_SAM_APDU [12:19:33]CAPDU: 80 13 01 00 [12:19:33]Write to MH i2c: E2 08 00 03 4B 80 13 01 00 00 00 00 00 CB [12:19:33]Write i2c OK [12:19:33]MH_I2C_Read... [12:19:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:33]Read from MH i2c: E2 [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: E2 0E 00 [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: E2 0E 00 03 4B 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 4D [12:19:33]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [12:19:33]wFMCommunicate OK [12:19:33]SAM_PROTO_GetShiftState done [12:19:33]FM_GetShiftState done [12:19:33]opened in 1726359809 [12:19:33]opened+sec_in_day 1726446209 [12:19:33]quantity*price = 14400 [12:19:33]sum+1 = 14401 [12:19:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 44 15.09.2024 12:19 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92596 ФПД: 182292591421571 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T121942&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92596&fm=182292591421571&tin=02508201610067®Number=0000000000091423&sum=14400 0 [12:19:35]StoreToDocumentArchive [12:19:35]shift 507 fd 92596 [12:19:35]save to /storage/0507/doc_00092596 [12:19:35]save last doc name /storage/0507/doc_00092596 to /storage/kkm_last_doc_name [12:19:35]save OK [12:19:35]Clear old archive folders... [12:19:35]ProcessDocumentItem done err = 0, tmpTLVsize=273 [12:19:35]tlvbuf is 00FD9030 [12:19:35]SAM_PROTO_ClearQueue [12:19:35]wFMCommunicate request_size=4 [12:19:35]MH_SAM_APDU [12:19:35]CAPDU: 80 09 00 00 [12:19:35]Write to MH i2c: E2 08 00 10 4B 80 09 00 00 00 00 00 00 CD [12:19:35]Write i2c OK [12:19:35]MH_I2C_Read... [12:19:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:35]Read from MH i2c: E2 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: E2 03 00 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: E2 03 00 10 4B 00 90 00 CF [12:19:35]RAPDU: 90 00 [12:19:35]wFMCommunicate OK [12:19:35]SAM_PROTO_ClearQueue done [12:19:35]KKMCreateOFDPacket [12:19:35]OFDProtocolAddRootSTLVToBuf [12:19:35]FM_MakeSignedData [12:19:35]FM_MakeSignedData [12:19:35]SAM_PROTO_SignData [12:19:35]wFMCommunicate request_size=4 [12:19:35]MH_SAM_APDU [12:19:35]CAPDU: 80 0D 01 02 [12:19:35]Write to MH i2c: E2 08 00 11 4B 80 0D 01 02 00 00 00 00 D5 [12:19:35]Write i2c OK [12:19:35]MH_I2C_Read... [12:19:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:35]Read from MH i2c: E2 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: E2 03 00 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: E2 03 00 11 4B 00 90 00 D0 [12:19:35]RAPDU: 90 00 [12:19:35]wFMCommunicate OK [12:19:35]wFMCommunicate request_size=255 [12:19:35]MH_SAM_APDU [12:19:35]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 DE D0 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 [12:19:35]Write to MH i2c: E2 02 01 12 4B 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 DE D0 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 00 00 47 [12:19:35]Write i2c OK [12:19:35]MH_I2C_Read... [12:19:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:35]Read from MH i2c: E2 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: E2 03 00 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: E2 03 00 12 4B 00 90 00 D1 [12:19:35]RAPDU: 90 00 [12:19:35]wFMCommunicate OK [12:19:35]wFMCommunicate request_size=32 [12:19:35]MH_SAM_APDU [12:19:35]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 39 32 10 04 04 00 B4 69 01 00 35 04 06 00 A5 CB 4D 28 28 83 [12:19:35]Write to MH i2c: E2 23 00 13 4B 80 0D 02 02 1B 00 30 30 30 38 37 34 36 39 32 10 04 04 00 B4 69 01 00 35 04 06 00 A5 CB 4D 28 28 83 00 00 E7 [12:19:35]Write i2c OK [12:19:35]MH_I2C_Read... [12:19:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:35]Read from MH i2c: E2 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: E2 03 00 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: E2 03 00 13 4B 00 90 00 D2 [12:19:35]RAPDU: 90 00 [12:19:35]wFMCommunicate OK [12:19:35]wFMCommunicate request_size=4 [12:19:35]MH_SAM_APDU [12:19:35]CAPDU: 80 0D 03 02 [12:19:35]Write to MH i2c: E2 08 00 14 4B 80 0D 03 02 00 00 00 00 DA [12:19:35]Write i2c OK [12:19:35]MH_I2C_Read... [12:19:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:35]Read from MH i2c: E2 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: E2 0B 00 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: E2 0B 00 14 4B 00 7E 2F 19 70 6D 67 47 70 90 00 9C [12:19:35]RAPDU: 7E 2F 19 70 6D 67 47 70 90 00 [12:19:35]wFMCommunicate OK [12:19:35]SAM_PROTO_SignData done [12:19:35]FM_MakeSignedData done [12:19:35]CreateOFDProtocolMessage [12:19:35]wFMCommunicate request_size=4 [12:19:35]MH_SAM_APDU [12:19:35]CAPDU: 80 11 00 00 [12:19:35]Write to MH i2c: E2 08 00 15 4B 80 11 00 00 00 00 00 00 DA [12:19:35]Write i2c OK [12:19:35]MH_I2C_Read... [12:19:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:35]Read from MH i2c: E2 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: E2 17 00 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: E2 17 00 15 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 31 [12:19:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:19:35]wFMCommunicate OK [12:19:35]CreateOFDProtocolMessage done [12:19:35]OFDSenderStorePacket 92596 [12:19:35]StoreOFDPacket docnum=92596 [12:19:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 25 01 00 00 87 61 1D 01 AB 13 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 DE D0 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B4 69 01 00 35 04 06 00 A5 CB 4D 28 28 83 7E 2F 19 70 6D 67 47 70 [12:19:35]CheckFolder [12:19:35]dirname=/storage/ofd_packets [12:19:35]CheckFolder done [12:19:35]ProducePacketName [12:19:35]name=ofd_packets/00092596 [12:19:35]NVStorageSaveData ofd_packets/00092596 [12:19:35]File name is /storage/ofd_packets/00092596 [12:19:35]Write 323 bytes [12:19:35]NVStorageSaveData done [12:19:35]OFDSenderStorePacket done [12:19:35]KKMCreateOFDPacket done [12:19:35]NVStorageSaveData kkm_last_timestamp [12:19:35]File name is /storage/kkm_last_timestamp [12:19:35]Write 4 bytes [12:19:35]NVStorageSaveData done [12:19:35]ExternCall_PrintAddStr [12:19:35]wPrintStart [12:19:35]Write to MH i2c: 01 00 00 16 4B 61 [12:19:35]Write i2c OK [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: 01 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: 01 07 00 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: 01 07 00 16 4B 00 00 00 00 00 FF 0F 76 [12:19:35]RasterBufferAndPrint [12:19:35]line Счет N : (3)127490 [12:19:35]line ИНН: 02508201610067 [12:19:35]line Контрольно-Кассовый Чек [12:19:35]line ПРОДАЖА [12:19:35]line Товар: 48747059 [12:19:35]line Сигареты Winston Legend Blue [12:19:35]line 1.000 * 144.00 [12:19:35]line = 144.00 [12:19:35]line НДС 12% НСП 1% [12:19:35]line > о реализуемом товаре [12:19:35]line ИТОГО: 144.00 [12:19:35]line НСП 1% : 1.27 [12:19:35]line НДС 12% : 15.29 [12:19:35]line Наличными: 144.00 [12:19:35]line Безнал.: 0.00 [12:19:35]line Место: АЗС № 5 "Партнер Нефть" [12:19:35]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:19:35]line СНО: Общий режим [12:19:35]line Чек 44 15.09.2024 12:19 [12:19:35]line Смена: 507 ФФД: 1.0 [12:19:35]line ЗНМ: 03000000022 [12:19:35]line РНМ: 0000000000091423 [12:19:35]line Версия ККМ: 001 [12:19:35]line ФМ: 0000000000874692 [12:19:35]line ФД: 92596 [12:19:35]line ФПД: 182292591421571 [12:19:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T121942&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92596&fm=182292591421571&tin=02508201610067®Number=0000000000091423&sum=14400 [12:19:35]line 0 [12:19:35]written 0, free lines is 4095 [12:19:35]OFD Sender: Processing packet 92596 [packets to send 63, broken 62] [12:19:35]ProducePacketName [12:19:35]name=ofd_packets/00092596 [12:19:35]OFD Sender: To server: pG, [12:19:35]CommunicateWithHost lk.salyk.kg:30040 [12:19:35]ConnectInit lk.salyk.kg [12:19:35]Connected sock=8 [12:19:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 25 01 00 00 87 61 1D 01 AB 13 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 DE D0 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B4 69 01 00 35 04 06 00 A5 CB 4D 28 28 83 7E 2F 19 70 6D 67 47 70 [12:19:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 5B 61 47 00 08 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B4 69 01 00 F4 03 04 00 56 79 E6 66 B6 04 01 00 00 1F 83 4C 45 7B 07 A3 E7 [12:19:36]CommunicateWithHost err = 0 [12:19:36]CheckOFDResponse [12:19:36]1017 (14) - 77093643461234 [12:19:36]1041 (16) - 0000000000874692 [12:19:36]1040 (4) - 92596 [12:19:36]1012 (4) - 15.09.2024 06:06 [12:19:36]1206 (1) - 0 [12:19:36]OFD Sender: Remove packet 92596 [12:19:36]ProducePacketName [12:19:36]name=ofd_packets/00092596 [12:19:36]NVStorageDeleteData [12:19:36]Write to MH i2c: 01 00 00 3F 4B 8A [12:19:36]Write i2c OK [12:19:36]MH_I2C_Read... [12:19:36]Read from MH i2c: 01 [12:19:36]MH_I2C_Read... [12:19:36]Read from MH i2c: 01 07 00 [12:19:36]MH_I2C_Read... [12:19:36]Read from MH i2c: 01 07 00 3F 4B 00 00 00 00 00 08 0D A6 [12:19:36]RasterBufferAndPrint [12:19:36]line [12:19:36]line [12:19:36]line [12:19:36]line [12:19:36]line [12:19:36]written 0, free lines is 3344 [12:19:36]MH_Cut [12:19:36]Write to MH i2c: D1 01 00 46 4B 01 63 [12:19:36]Write i2c OK [12:19:36]MH_I2C_Read... [12:19:36]Read from MH i2c: D1 [12:19:36]MH_I2C_Read... [12:19:36]Read from MH i2c: D1 01 00 [12:19:36]MH_I2C_Read... [12:19:36]Read from MH i2c: D1 01 00 46 4B 00 62 [12:19:36]Write to MH i2c: 01 00 00 47 4B 92 [12:19:36]Write i2c OK [12:19:36]MH_I2C_Read... [12:19:36]OFD Sender: No OFD packet to send [12:19:36]*** Cut start [12:19:36]*** Purtial cut [12:19:36]*** Stage 1: CUTSNS_PIN = 1 [12:19:38]Read from MH i2c: 01 [12:19:39]MH_I2C_Read... [12:19:39]*** Stop cut motor [12:19:39]*** Cut end [12:19:39]Read from MH i2c: 01 07 00 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: 01 07 00 47 4B 00 00 00 00 00 FF 0F A7 [12:19:39]process_action close_receipt done [12:19:39]requested_data is exist [12:19:39]produce_requested_data [12:19:39]requested_item fm.sn is exist - process it [12:19:39]wFMCommunicate request_size=4 [12:19:39]MH_SAM_APDU [12:19:39]CAPDU: 80 11 00 00 [12:19:39]Write to MH i2c: E2 08 00 48 4B 80 11 00 00 00 00 00 00 0D [12:19:39]Write i2c OK [12:19:39]MH_I2C_Read... [12:19:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:39]Read from MH i2c: E2 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: E2 17 00 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: E2 17 00 48 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 64 [12:19:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:19:39]wFMCommunicate OK [12:19:39]requested_item fd.num is exist - process it [12:19:39]SAM_PROTO_GetFieldsCounters [12:19:39]wFMCommunicate request_size=4 [12:19:39]MH_SAM_APDU [12:19:39]CAPDU: 80 13 00 00 [12:19:39]Write to MH i2c: E2 08 00 49 4B 80 13 00 00 00 00 00 00 10 [12:19:39]Write i2c OK [12:19:39]MH_I2C_Read... [12:19:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:39]Read from MH i2c: E2 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: E2 62 00 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: E2 62 00 49 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B4 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [12:19:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B4 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:19:39]wFMCommunicate OK [12:19:39]SAM_PROTO_GetFieldsCounters done [12:19:39]requested_item shift.num is exist - process it [12:19:39]requested_item shift.opened is exist - process it [12:19:39]req_shift_opened [12:19:39]FM_GetShiftState [12:19:39]SAM_PROTO_GetShiftState [12:19:39]wFMCommunicate request_size=4 [12:19:39]MH_SAM_APDU [12:19:39]CAPDU: 80 13 01 00 [12:19:39]Write to MH i2c: E2 08 00 4A 4B 80 13 01 00 00 00 00 00 12 [12:19:39]Write i2c OK [12:19:39]MH_I2C_Read... [12:19:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:39]Read from MH i2c: E2 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: E2 0E 00 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: E2 0E 00 4A 4B 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 94 [12:19:39]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [12:19:39]wFMCommunicate OK [12:19:39]SAM_PROTO_GetShiftState done [12:19:39]FM_GetShiftState done [12:19:39]req_shift_opened done [12:19:39]requested_item shift.open_date is exist - process it [12:19:39]req_shift_open_date [12:19:39]req_shift_open_date done [12:19:39]produce_requested_data done [12:19:39]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92596,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [12:19:39]process_action_free close_receipt [12:19:39]json_value_free [12:19:39]json_value_free done [12:19:39]process_json_proto returns [12:19:39]Send response to host [12:19:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92596,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [12:19:39]free response buf [12:19:39]execute_script done [12:19:39]execute_script returns [12:19:39]free content buf [12:19:39]Sock 9.Close socket [12:19:39]Sock 9.Thread stoped [12:19:41]OFD Sender: No OFD packet to send [12:19:46]OFD Sender: No OFD packet to send [12:19:51]OFD Sender: No OFD packet to send [12:19:56]OFD Sender: No OFD packet to send [12:20:01]OFD Sender: No OFD packet to send [12:20:06]OFD Sender: No OFD packet to send [12:20:11]OFD Sender: No OFD packet to send [12:20:16]OFD Sender: No OFD packet to send [12:20:21]OFD Sender: No OFD packet to send [12:20:26]OFD Sender: No OFD packet to send [12:20:31]OFD Sender: No OFD packet to send [12:20:36]OFD Sender: No OFD packet to send [12:20:41]OFD Sender: No OFD packet to send [12:20:46]OFD Sender: No OFD packet to send [12:20:48]accept exits with 10 [12:20:48]New connection [12:20:48]New thread 3066801508 created [12:20:48]Thread 3066658148 joined [12:20:48]Waiting for new connection... [12:20:48] Sock 10.Parse request [12:20:48]Sock 10.Check first char [12:20:48]Sock 10.First char is OK [12:20:48]request: POST /json_proto HTTP/1.0 [12:20:48]Method: POST [12:20:48]URL: /json_proto [12:20:48]Method is POST - this is cgi request [12:20:48]url: /json_proto [12:20:48]query_string will be loaded in cgi processing [12:20:48]execute_cgi json_proto POST (null) [12:20:48]execute_cgi path=json_proto method=POST [12:20:48]POST find Content-Length [12:20:48]Host: 172.17.57.71:8080 [12:20:48]Content-Length: 911 [12:20:48]Content-Type: application/json [12:20:48] [12:20:48]POST finish read [12:20:48]Found Content-Length = 911 [12:20:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127491", "tax_sys" : 0, "items" : [ { "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 425.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:48]execute_script... [12:20:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127491", "tax_sys" : 0, "items" : [ { "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 425.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:48]POST & json_proto [12:20:48]process_json_proto [12:20:48]json parsed OK: [12:20:48]protocol is kg_v1.0 [12:20:48]action value=close_receipt [12:20:48]process_action close_receipt [12:20:48]cmd_close_receipt [12:20:48]MH_GetDate [12:20:48]Write to MH i2c: F0 00 00 4B 4B 85 [12:20:48]Write i2c OK [12:20:48]MH_I2C_Read... [12:20:48]Read from MH i2c: F0 [12:20:48]MH_I2C_Read... [12:20:48]Read from MH i2c: F0 09 00 [12:20:48]MH_I2C_Read... [12:20:48]Read from MH i2c: F0 09 00 4B 4B 00 28 D1 E6 66 33 3A A4 66 4A [12:20:48]GetLastDocTimeStamp 1726402782 [12:20:48]current date 1726402856 [12:20:48]FM_GetShiftState [12:20:48]SAM_PROTO_GetShiftState [12:20:48]wFMCommunicate request_size=4 [12:20:48]MH_SAM_APDU [12:20:48]CAPDU: 80 13 01 00 [12:20:48]Write to MH i2c: E2 08 00 4C 4B 80 13 01 00 00 00 00 00 14 [12:20:48]Write i2c OK [12:20:48]MH_I2C_Read... [12:20:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:48]Read from MH i2c: E2 [12:20:48]MH_I2C_Read... [12:20:48]Read from MH i2c: E2 0E 00 [12:20:48]MH_I2C_Read... [12:20:48]Read from MH i2c: E2 0E 00 4C 4B 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 96 [12:20:48]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [12:20:48]wFMCommunicate OK [12:20:48]SAM_PROTO_GetShiftState done [12:20:48]FM_GetShiftState done [12:20:48]opened in 1726359809 [12:20:48]opened+sec_in_day 1726446209 [12:20:48]quantity*price = 16000 [12:20:48]sum+1 = 16001 [12:20:48]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 90448300 Энерг напиток Red Bull 0,355л 1.000 * 265.00 = 265.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 425.00 НСП 1% : 3.76 НДС 12% : 45.13 Наличными: 425.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 45 15.09.2024 12:20 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92597 ФПД: 107092513394505 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T122056&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92597&fm=107092513394505&tin=02508201610067®Number=0000000000091423&sum=42500 0 [12:20:49]StoreToDocumentArchive [12:20:49]shift 507 fd 92597 [12:20:49]save to /storage/0507/doc_00092597 [12:20:49]save last doc name /storage/0507/doc_00092597 to /storage/kkm_last_doc_name [12:20:49]save OK [12:20:49]Clear old archive folders... [12:20:49]ProcessDocumentItem done err = 0, tmpTLVsize=385 [12:20:49]tlvbuf is 010AD030 [12:20:49]SAM_PROTO_ClearQueue [12:20:49]wFMCommunicate request_size=4 [12:20:49]MH_SAM_APDU [12:20:49]CAPDU: 80 09 00 00 [12:20:49]Write to MH i2c: E2 08 00 59 4B 80 09 00 00 00 00 00 00 16 [12:20:49]Write i2c OK [12:20:49]MH_I2C_Read... [12:20:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:49]Read from MH i2c: E2 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: E2 03 00 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: E2 03 00 59 4B 00 90 00 18 [12:20:49]RAPDU: 90 00 [12:20:49]wFMCommunicate OK [12:20:49]SAM_PROTO_ClearQueue done [12:20:49]KKMCreateOFDPacket [12:20:49]OFDProtocolAddRootSTLVToBuf [12:20:49]FM_MakeSignedData [12:20:49]FM_MakeSignedData [12:20:49]SAM_PROTO_SignData [12:20:49]wFMCommunicate request_size=4 [12:20:49]MH_SAM_APDU [12:20:49]CAPDU: 80 0D 01 02 [12:20:49]Write to MH i2c: E2 08 00 5A 4B 80 0D 01 02 00 00 00 00 1E [12:20:49]Write i2c OK [12:20:49]MH_I2C_Read... [12:20:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:49]Read from MH i2c: E2 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: E2 03 00 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: E2 03 00 5A 4B 00 90 00 19 [12:20:49]RAPDU: 90 00 [12:20:49]wFMCommunicate OK [12:20:49]wFMCommunicate request_size=255 [12:20:49]MH_SAM_APDU [12:20:49]CAPDU: 80 0D 02 02 FA 03 00 81 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 [12:20:49]Write to MH i2c: E2 02 01 5B 4B 80 0D 02 02 FA 00 03 00 81 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 E4 [12:20:49]Write i2c OK [12:20:49]MH_I2C_Read... [12:20:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:49]Read from MH i2c: E2 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: E2 03 00 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: E2 03 00 5B 4B 00 90 00 1A [12:20:49]RAPDU: 90 00 [12:20:49]wFMCommunicate OK [12:20:49]wFMCommunicate request_size=144 [12:20:49]MH_SAM_APDU [12:20:49]CAPDU: 80 0D 02 02 8B 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 28 D1 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B5 69 01 00 35 04 06 00 61 66 6B 38 0F 49 [12:20:49]Write to MH i2c: E2 93 00 5C 4B 80 0D 02 02 8B 00 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 28 D1 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B5 69 01 00 35 04 06 00 61 66 6B 38 0F 49 00 00 86 [12:20:49]Write i2c OK [12:20:49]MH_I2C_Read... [12:20:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:49]Read from MH i2c: E2 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: E2 03 00 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: E2 03 00 5C 4B 00 90 00 1B [12:20:49]RAPDU: 90 00 [12:20:49]wFMCommunicate OK [12:20:49]wFMCommunicate request_size=4 [12:20:49]MH_SAM_APDU [12:20:49]CAPDU: 80 0D 03 02 [12:20:49]Write to MH i2c: E2 08 00 5D 4B 80 0D 03 02 00 00 00 00 23 [12:20:49]Write i2c OK [12:20:49]MH_I2C_Read... [12:20:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:49]Read from MH i2c: E2 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: E2 0B 00 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: E2 0B 00 5D 4B 00 22 2A D5 30 53 92 6B 3C 90 00 01 [12:20:49]RAPDU: 22 2A D5 30 53 92 6B 3C 90 00 [12:20:49]wFMCommunicate OK [12:20:49]SAM_PROTO_SignData done [12:20:49]FM_MakeSignedData done [12:20:49]CreateOFDProtocolMessage [12:20:49]wFMCommunicate request_size=4 [12:20:49]MH_SAM_APDU [12:20:49]CAPDU: 80 11 00 00 [12:20:49]Write to MH i2c: E2 08 00 5E 4B 80 11 00 00 00 00 00 00 23 [12:20:49]Write i2c OK [12:20:49]MH_I2C_Read... [12:20:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:49]Read from MH i2c: E2 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: E2 17 00 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: E2 17 00 5E 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 7A [12:20:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:20:49]wFMCommunicate OK [12:20:49]CreateOFDProtocolMessage done [12:20:49]OFDSenderStorePacket 92597 [12:20:49]StoreOFDPacket docnum=92597 [12:20:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 95 01 00 00 DD 78 8D 01 F1 48 5A 03 01 00 03 00 81 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 28 D1 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B5 69 01 00 35 04 06 00 61 66 6B 38 0F 49 22 2A D5 30 53 92 6B 3C [12:20:49]CheckFolder [12:20:49]dirname=/storage/ofd_packets [12:20:49]CheckFolder done [12:20:49]ProducePacketName [12:20:49]name=ofd_packets/00092597 [12:20:49]NVStorageSaveData ofd_packets/00092597 [12:20:49]File name is /storage/ofd_packets/00092597 [12:20:49]Write 435 bytes [12:20:49]NVStorageSaveData done [12:20:49]OFDSenderStorePacket done [12:20:49]KKMCreateOFDPacket done [12:20:49]NVStorageSaveData kkm_last_timestamp [12:20:49]File name is /storage/kkm_last_timestamp [12:20:49]Write 4 bytes [12:20:49]NVStorageSaveData done [12:20:49]ExternCall_PrintAddStr [12:20:49]wPrintStart [12:20:49]Write to MH i2c: 01 00 00 5F 4B AA [12:20:49]Write i2c OK [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: 01 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: 01 07 00 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: 01 07 00 5F 4B 00 00 00 00 00 FF 0F BF [12:20:49]RasterBufferAndPrint [12:20:49]line Счет N : (3)127491 [12:20:49]line ИНН: 02508201610067 [12:20:49]line Контрольно-Кассовый Чек [12:20:49]line ПРОДАЖА [12:20:49]line Товар: 4860019001346 [12:20:49]line Вода Боржоми 0,5л ст [12:20:49]line 1.000 * 160.00 [12:20:49]line = 160.00 [12:20:49]line НДС 12% НСП 1% [12:20:50]line > о реализуемом товаре [12:20:50]line Товар: 90448300 [12:20:50]line Энерг напиток Red Bull 0,355л [12:20:50]line 1.000 * 265.00 [12:20:50]line = 265.00 [12:20:50]line НДС 12% НСП 1% [12:20:50]line > о реализуемом товаре [12:20:50]line ИТОГО: 425.00 [12:20:50]line НСП 1% : 3.76 [12:20:50]line НДС 12% : 45.13 [12:20:50]line Наличными: 425.00 [12:20:50]line Безнал.: 0.00 [12:20:50]line Место: АЗС № 5 "Партнер Нефть" [12:20:50]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:20:50]line СНО: Общий режим [12:20:50]line Чек 45 15.09.2024 12:20 [12:20:50]line Смена: 507 ФФД: 1.0 [12:20:50]line ЗНМ: 03000000022 [12:20:50]line РНМ: 0000000000091423 [12:20:50]line Версия ККМ: 001 [12:20:50]line ФМ: 0000000000874692 [12:20:50]line ФД: 92597 [12:20:50]line ФПД: 107092513394505 [12:20:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T122056&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92597&fm=107092513394505&tin=02508201610067®Number=0000000000091423&sum=42500 [12:20:50]line 0 [12:20:50]OFD Sender: Processing packet 92597 [packets to send 63, broken 62] [12:20:50]ProducePacketName [12:20:50]name=ofd_packets/00092597 [12:20:50]OFD Sender: To server: pG, [12:20:50]CommunicateWithHost lk.salyk.kg:30040 [12:20:50]ConnectInit lk.salyk.kg [12:20:50]written 0, free lines is 4095 [12:20:50]Connected sock=9 [12:20:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 95 01 00 00 DD 78 8D 01 F1 48 5A 03 01 00 03 00 81 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 28 D1 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B5 69 01 00 35 04 06 00 61 66 6B 38 0F 49 22 2A D5 30 53 92 6B 3C [12:20:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 9F 69 47 00 8B FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B5 69 01 00 F4 03 04 00 A0 79 E6 66 B6 04 01 00 00 35 DF 74 FC 7E 10 96 E1 [12:20:50]CommunicateWithHost err = 0 [12:20:50]CheckOFDResponse [12:20:50]1017 (14) - 77093643461234 [12:20:50]1041 (16) - 0000000000874692 [12:20:50]1040 (4) - 92597 [12:20:50]1012 (4) - 15.09.2024 06:07 [12:20:50]1206 (1) - 0 [12:20:50]OFD Sender: Remove packet 92597 [12:20:50]ProducePacketName [12:20:50]name=ofd_packets/00092597 [12:20:50]NVStorageDeleteData [12:20:50]Write to MH i2c: 01 00 00 8D 4B D8 [12:20:50]Write i2c OK [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: 01 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: 01 07 00 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: 01 07 00 8D 4B 00 00 00 00 00 DE 0C C9 [12:20:50]RasterBufferAndPrint [12:20:50]line [12:20:50]line [12:20:50]line [12:20:50]line [12:20:50]line [12:20:50]written 0, free lines is 3302 [12:20:50]MH_Cut [12:20:50]Write to MH i2c: D1 01 00 94 4B 01 B1 [12:20:50]Write i2c OK [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: D1 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: D1 01 00 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: D1 01 00 94 4B 00 B0 [12:20:50]Write to MH i2c: 01 00 00 95 4B E0 [12:20:50]Write i2c OK [12:20:50]MH_I2C_Read... [12:20:51]OFD Sender: No OFD packet to send [12:20:51]*** Cut start [12:20:51]*** Purtial cut [12:20:51]*** Stage 1: CUTSNS_PIN = 1 [12:20:53]Read from MH i2c: 01 [12:20:53]MH_I2C_Read... [12:20:53]*** Stop cut motor [12:20:53]*** Cut end [12:20:53]Read from MH i2c: 01 07 00 [12:20:53]MH_I2C_Read... [12:20:53]Read from MH i2c: 01 07 00 95 4B 00 00 00 00 00 FF 0F F5 [12:20:53]process_action close_receipt done [12:20:53]requested_data is exist [12:20:53]produce_requested_data [12:20:53]requested_item fm.sn is exist - process it [12:20:53]wFMCommunicate request_size=4 [12:20:53]MH_SAM_APDU [12:20:53]CAPDU: 80 11 00 00 [12:20:53]Write to MH i2c: E2 08 00 96 4B 80 11 00 00 00 00 00 00 5B [12:20:53]Write i2c OK [12:20:53]MH_I2C_Read... [12:20:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:53]Read from MH i2c: E2 [12:20:53]MH_I2C_Read... [12:20:53]Read from MH i2c: E2 17 00 [12:20:53]MH_I2C_Read... [12:20:53]Read from MH i2c: E2 17 00 96 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B2 [12:20:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:20:53]wFMCommunicate OK [12:20:53]requested_item fd.num is exist - process it [12:20:53]SAM_PROTO_GetFieldsCounters [12:20:53]wFMCommunicate request_size=4 [12:20:53]MH_SAM_APDU [12:20:53]CAPDU: 80 13 00 00 [12:20:53]Write to MH i2c: E2 08 00 97 4B 80 13 00 00 00 00 00 00 5E [12:20:53]Write i2c OK [12:20:53]MH_I2C_Read... [12:20:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:53]Read from MH i2c: E2 [12:20:53]MH_I2C_Read... [12:20:53]Read from MH i2c: E2 62 00 [12:20:53]MH_I2C_Read... [12:20:53]Read from MH i2c: E2 62 00 97 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B5 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [12:20:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B5 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:53]wFMCommunicate OK [12:20:53]SAM_PROTO_GetFieldsCounters done [12:20:53]requested_item shift.num is exist - process it [12:20:53]requested_item shift.opened is exist - process it [12:20:53]req_shift_opened [12:20:53]FM_GetShiftState [12:20:53]SAM_PROTO_GetShiftState [12:20:53]wFMCommunicate request_size=4 [12:20:53]MH_SAM_APDU [12:20:53]CAPDU: 80 13 01 00 [12:20:53]Write to MH i2c: E2 08 00 98 4B 80 13 01 00 00 00 00 00 60 [12:20:53]Write i2c OK [12:20:53]MH_I2C_Read... [12:20:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:53]Read from MH i2c: E2 [12:20:53]MH_I2C_Read... [12:20:53]Read from MH i2c: E2 0E 00 [12:20:53]MH_I2C_Read... [12:20:53]Read from MH i2c: E2 0E 00 98 4B 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 E2 [12:20:53]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [12:20:53]wFMCommunicate OK [12:20:53]SAM_PROTO_GetShiftState done [12:20:53]FM_GetShiftState done [12:20:53]req_shift_opened done [12:20:53]requested_item shift.open_date is exist - process it [12:20:53]req_shift_open_date [12:20:53]req_shift_open_date done [12:20:53]produce_requested_data done [12:20:53]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92597,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [12:20:53]process_action_free close_receipt [12:20:53]json_value_free [12:20:53]json_value_free done [12:20:53]process_json_proto returns [12:20:53]Send response to host [12:20:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92597,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [12:20:53]free response buf [12:20:53]execute_script done [12:20:53]execute_script returns [12:20:53]free content buf [12:20:53]Sock 10.Close socket [12:20:53]Sock 10.Thread stoped [12:20:56]OFD Sender: No OFD packet to send [12:21:01]OFD Sender: No OFD packet to send [12:21:06]OFD Sender: No OFD packet to send [12:21:11]OFD Sender: No OFD packet to send [12:21:16]OFD Sender: No OFD packet to send [12:21:21]OFD Sender: No OFD packet to send [12:21:26]OFD Sender: No OFD packet to send [12:21:31]OFD Sender: No OFD packet to send [12:21:36]OFD Sender: No OFD packet to send [12:21:41]OFD Sender: No OFD packet to send [12:21:46]OFD Sender: No OFD packet to send [12:21:51]OFD Sender: No OFD packet to send [12:21:56]OFD Sender: No OFD packet to send [12:22:01]OFD Sender: No OFD packet to send [12:22:06]OFD Sender: No OFD packet to send [12:22:11]OFD Sender: No OFD packet to send [12:22:16]OFD Sender: No OFD packet to send [12:22:21]OFD Sender: No OFD packet to send [12:22:26]OFD Sender: No OFD packet to send [12:22:31]OFD Sender: No OFD packet to send [12:22:36]OFD Sender: No OFD packet to send [12:22:41]OFD Sender: No OFD packet to send [12:22:46]OFD Sender: No OFD packet to send [12:22:51]OFD Sender: No OFD packet to send [12:22:56]OFD Sender: No OFD packet to send [12:23:01]OFD Sender: No OFD packet to send [12:23:06]OFD Sender: No OFD packet to send [12:23:11]OFD Sender: No OFD packet to send [12:23:16]OFD Sender: No OFD packet to send [12:23:21]OFD Sender: No OFD packet to send [12:23:26]OFD Sender: No OFD packet to send [12:23:31]OFD Sender: No OFD packet to send [12:23:36]OFD Sender: No OFD packet to send [12:23:41]OFD Sender: No OFD packet to send [12:23:46]OFD Sender: No OFD packet to send [12:23:51]OFD Sender: No OFD packet to send [12:23:56]OFD Sender: No OFD packet to send [12:24:01]OFD Sender: No OFD packet to send [12:24:06]OFD Sender: No OFD packet to send [12:24:11]OFD Sender: No OFD packet to send [12:24:16]OFD Sender: No OFD packet to send [12:24:21]OFD Sender: No OFD packet to send [12:24:26]OFD Sender: No OFD packet to send [12:24:31]OFD Sender: No OFD packet to send [12:24:36]OFD Sender: No OFD packet to send [12:24:41]OFD Sender: No OFD packet to send [12:24:46]OFD Sender: No OFD packet to send [12:24:51]OFD Sender: No OFD packet to send [12:24:56]OFD Sender: No OFD packet to send [12:25:01]OFD Sender: No OFD packet to send [12:25:06]OFD Sender: No OFD packet to send [12:25:11]OFD Sender: No OFD packet to send [12:25:16]OFD Sender: No OFD packet to send [12:25:21]OFD Sender: No OFD packet to send [12:25:26]OFD Sender: No OFD packet to send [12:25:31]OFD Sender: No OFD packet to send [12:25:36]OFD Sender: No OFD packet to send [12:25:38]accept exits with 8 [12:25:38]New connection [12:25:38]New thread 3066658148 created [12:25:38]Thread 3066801508 joined [12:25:38]Waiting for new connection... [12:25:38] Sock 8.Parse request [12:25:38]Sock 8.Check first char [12:25:38]Sock 8.First char is OK [12:25:38]request: POST /json_proto HTTP/1.0 [12:25:38]Method: POST [12:25:38]URL: /json_proto [12:25:38]Method is POST - this is cgi request [12:25:38]url: /json_proto [12:25:38]query_string will be loaded in cgi processing [12:25:38]execute_cgi json_proto POST (null) [12:25:38]execute_cgi path=json_proto method=POST [12:25:38]POST find Content-Length [12:25:38]Host: 172.17.57.71:8080 [12:25:38]Content-Length: 654 [12:25:38]Content-Type: application/json [12:25:38] [12:25:38]POST finish read [12:25:38]Found Content-Length = 654 [12:25:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127492", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:38]execute_script... [12:25:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127492", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:38]POST & json_proto [12:25:38]process_json_proto [12:25:38]json parsed OK: [12:25:38]protocol is kg_v1.0 [12:25:38]action value=close_receipt [12:25:38]process_action close_receipt [12:25:38]cmd_close_receipt [12:25:38]MH_GetDate [12:25:38]Write to MH i2c: F0 00 00 99 4B D3 [12:25:38]Write i2c OK [12:25:38]MH_I2C_Read... [12:25:38]Read from MH i2c: F0 [12:25:38]MH_I2C_Read... [12:25:38]Read from MH i2c: F0 09 00 [12:25:38]MH_I2C_Read... [12:25:38]Read from MH i2c: F0 09 00 99 4B 00 4B D2 E6 66 33 3A A4 66 BC [12:25:38]GetLastDocTimeStamp 1726402856 [12:25:38]current date 1726403147 [12:25:38]FM_GetShiftState [12:25:38]SAM_PROTO_GetShiftState [12:25:38]wFMCommunicate request_size=4 [12:25:38]MH_SAM_APDU [12:25:38]CAPDU: 80 13 01 00 [12:25:38]Write to MH i2c: E2 08 00 9A 4B 80 13 01 00 00 00 00 00 62 [12:25:38]Write i2c OK [12:25:38]MH_I2C_Read... [12:25:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:38]Read from MH i2c: E2 [12:25:38]MH_I2C_Read... [12:25:38]Read from MH i2c: E2 0E 00 [12:25:38]MH_I2C_Read... [12:25:38]Read from MH i2c: E2 0E 00 9A 4B 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 E4 [12:25:38]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [12:25:38]wFMCommunicate OK [12:25:38]SAM_PROTO_GetShiftState done [12:25:38]FM_GetShiftState done [12:25:38]opened in 1726359809 [12:25:38]opened+sec_in_day 1726446209 [12:25:38]quantity*price = 15000 [12:25:38]sum+1 = 15001 [12:25:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 46 15.09.2024 12:25 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92598 ФПД: 198443633771960 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T122547&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92598&fm=198443633771960&tin=02508201610067®Number=0000000000091423&sum=15000 0 [12:25:39]StoreToDocumentArchive [12:25:39]shift 507 fd 92598 [12:25:39]save to /storage/0507/doc_00092598 [12:25:39]save last doc name /storage/0507/doc_00092598 to /storage/kkm_last_doc_name [12:25:39]save OK [12:25:39]Clear old archive folders... [12:25:39]ProcessDocumentItem done err = 0, tmpTLVsize=275 [12:25:39]tlvbuf is 00FEB7F0 [12:25:39]SAM_PROTO_ClearQueue [12:25:39]wFMCommunicate request_size=4 [12:25:39]MH_SAM_APDU [12:25:39]CAPDU: 80 09 00 00 [12:25:39]Write to MH i2c: E2 08 00 A7 4B 80 09 00 00 00 00 00 00 64 [12:25:39]Write i2c OK [12:25:39]MH_I2C_Read... [12:25:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:40]Read from MH i2c: E2 [12:25:40]MH_I2C_Read... [12:25:40]Read from MH i2c: E2 03 00 [12:25:40]MH_I2C_Read... [12:25:40]Read from MH i2c: E2 03 00 A7 4B 00 90 00 66 [12:25:40]RAPDU: 90 00 [12:25:40]wFMCommunicate OK [12:25:40]SAM_PROTO_ClearQueue done [12:25:40]KKMCreateOFDPacket [12:25:40]OFDProtocolAddRootSTLVToBuf [12:25:40]FM_MakeSignedData [12:25:40]FM_MakeSignedData [12:25:40]SAM_PROTO_SignData [12:25:40]wFMCommunicate request_size=4 [12:25:40]MH_SAM_APDU [12:25:40]CAPDU: 80 0D 01 02 [12:25:40]Write to MH i2c: E2 08 00 A8 4B 80 0D 01 02 00 00 00 00 6C [12:25:40]Write i2c OK [12:25:40]MH_I2C_Read... [12:25:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:40]Read from MH i2c: E2 [12:25:40]MH_I2C_Read... [12:25:40]Read from MH i2c: E2 03 00 [12:25:40]MH_I2C_Read... [12:25:40]Read from MH i2c: E2 03 00 A8 4B 00 90 00 67 [12:25:40]RAPDU: 90 00 [12:25:40]wFMCommunicate OK [12:25:40]wFMCommunicate request_size=255 [12:25:40]MH_SAM_APDU [12:25:40]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 4B D2 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 [12:25:40]Write to MH i2c: E2 02 01 A9 4B 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 4B D2 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 00 00 72 [12:25:40]Write i2c OK [12:25:40]MH_I2C_Read... [12:25:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:40]Read from MH i2c: E2 [12:25:40]MH_I2C_Read... [12:25:40]Read from MH i2c: E2 03 00 [12:25:40]MH_I2C_Read... [12:25:40]Read from MH i2c: E2 03 00 A9 4B 00 90 00 68 [12:25:40]RAPDU: 90 00 [12:25:40]wFMCommunicate OK [12:25:40]wFMCommunicate request_size=34 [12:25:40]MH_SAM_APDU [12:25:40]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B6 69 01 00 35 04 06 00 B4 7B C2 4C 85 B8 [12:25:40]Write to MH i2c: E2 25 00 AA 4B 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B6 69 01 00 35 04 06 00 B4 7B C2 4C 85 B8 00 00 CE [12:25:40]Write i2c OK [12:25:40]MH_I2C_Read... [12:25:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:40]Read from MH i2c: E2 [12:25:40]MH_I2C_Read... [12:25:40]Read from MH i2c: E2 03 00 [12:25:40]MH_I2C_Read... [12:25:40]Read from MH i2c: E2 03 00 AA 4B 00 90 00 69 [12:25:40]RAPDU: 90 00 [12:25:40]wFMCommunicate OK [12:25:40]wFMCommunicate request_size=4 [12:25:40]MH_SAM_APDU [12:25:40]CAPDU: 80 0D 03 02 [12:25:40]Write to MH i2c: E2 08 00 AB 4B 80 0D 03 02 00 00 00 00 71 [12:25:40]Write i2c OK [12:25:40]MH_I2C_Read... [12:25:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:40]Read from MH i2c: E2 [12:25:40]MH_I2C_Read... [12:25:40]Read from MH i2c: E2 0B 00 [12:25:40]MH_I2C_Read... [12:25:40]Read from MH i2c: E2 0B 00 AB 4B 00 52 E3 6D D9 6D C7 A4 57 90 00 1C [12:25:40]RAPDU: 52 E3 6D D9 6D C7 A4 57 90 00 [12:25:40]wFMCommunicate OK [12:25:40]SAM_PROTO_SignData done [12:25:40]FM_MakeSignedData done [12:25:40]CreateOFDProtocolMessage [12:25:40]wFMCommunicate request_size=4 [12:25:40]MH_SAM_APDU [12:25:40]CAPDU: 80 11 00 00 [12:25:40]Write to MH i2c: E2 08 00 AC 4B 80 11 00 00 00 00 00 00 71 [12:25:40]Write i2c OK [12:25:40]MH_I2C_Read... [12:25:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:40]Read from MH i2c: E2 [12:25:40]MH_I2C_Read... [12:25:40]Read from MH i2c: E2 17 00 [12:25:40]MH_I2C_Read... [12:25:40]Read from MH i2c: E2 17 00 AC 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C8 [12:25:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:25:40]wFMCommunicate OK [12:25:40]CreateOFDProtocolMessage done [12:25:40]OFDSenderStorePacket 92598 [12:25:40]StoreOFDPacket docnum=92598 [12:25:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 6C BB 1F 01 F3 94 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 4B D2 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B6 69 01 00 35 04 06 00 B4 7B C2 4C 85 B8 52 E3 6D D9 6D C7 A4 57 [12:25:40]CheckFolder [12:25:40]dirname=/storage/ofd_packets [12:25:40]CheckFolder done [12:25:40]ProducePacketName [12:25:40]name=ofd_packets/00092598 [12:25:40]NVStorageSaveData ofd_packets/00092598 [12:25:40]File name is /storage/ofd_packets/00092598 [12:25:40]Write 325 bytes [12:25:40]NVStorageSaveData done [12:25:40]OFDSenderStorePacket done [12:25:40]KKMCreateOFDPacket done [12:25:40]NVStorageSaveData kkm_last_timestamp [12:25:40]File name is /storage/kkm_last_timestamp [12:25:40]Write 4 bytes [12:25:40]NVStorageSaveData done [12:25:40]ExternCall_PrintAddStr [12:25:40]wPrintStart [12:25:40]Write to MH i2c: 01 00 00 AD 4B F8 [12:25:40]Write i2c OK [12:25:40]MH_I2C_Read... [12:25:40]Read from MH i2c: 01 [12:25:40]MH_I2C_Read... [12:25:40]Read from MH i2c: 01 07 00 [12:25:40]MH_I2C_Read... [12:25:40]Read from MH i2c: 01 07 00 AD 4B 00 00 00 00 00 FF 0F 0D [12:25:40]RasterBufferAndPrint [12:25:40]line Счет N : (3)127492 [12:25:40]line ИНН: 02508201610067 [12:25:40]line Контрольно-Кассовый Чек [12:25:40]line ПРОДАЖА [12:25:40]line Товар: 54491472 [12:25:40]line Напиток Кока-Кола 0,5л [12:25:40]line 2.000 * 75.00 [12:25:40]line = 150.00 [12:25:40]line НДС 12% НСП 1% [12:25:40]line > о реализуемом товаре [12:25:40]line ИТОГО: 150.00 [12:25:40]line НСП 1% : 1.33 [12:25:40]line НДС 12% : 15.93 [12:25:40]line Наличными: 150.00 [12:25:40]line Безнал.: 0.00 [12:25:40]line Место: АЗС № 5 "Партнер Нефть" [12:25:40]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:25:40]line СНО: Общий режим [12:25:40]line Чек 46 15.09.2024 12:25 [12:25:40]line Смена: 507 ФФД: 1.0 [12:25:40]line ЗНМ: 03000000022 [12:25:40]line РНМ: 0000000000091423 [12:25:40]line Версия ККМ: 001 [12:25:40]line ФМ: 0000000000874692 [12:25:40]line ФД: 92598 [12:25:40]line ФПД: 198443633771960 [12:25:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T122547&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92598&fm=198443633771960&tin=02508201610067®Number=0000000000091423&sum=15000 [12:25:40]line 0 [12:25:40]written 0, free lines is 4095 [12:25:40]OFD Sender: Processing packet 92598 [packets to send 63, broken 62] [12:25:40]ProducePacketName [12:25:40]name=ofd_packets/00092598 [12:25:40]OFD Sender: To server: pG, [12:25:40]CommunicateWithHost lk.salyk.kg:30040 [12:25:40]ConnectInit lk.salyk.kg [12:25:40]Connected sock=10 [12:25:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 6C BB 1F 01 F3 94 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 4B D2 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B6 69 01 00 35 04 06 00 B4 7B C2 4C 85 B8 52 E3 6D D9 6D C7 A4 57 [12:25:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 21 9C 47 00 0F 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B6 69 01 00 F4 03 04 00 C3 7A E6 66 B6 04 01 00 00 B4 81 86 7C 04 D8 DE 71 [12:25:41]CommunicateWithHost err = 0 [12:25:41]CheckOFDResponse [12:25:41]1017 (14) - 77093643461234 [12:25:41]1041 (16) - 0000000000874692 [12:25:41]1040 (4) - 92598 [12:25:41]1012 (4) - 15.09.2024 06:12 [12:25:41]1206 (1) - 0 [12:25:41]OFD Sender: Remove packet 92598 [12:25:41]ProducePacketName [12:25:41]name=ofd_packets/00092598 [12:25:41]NVStorageDeleteData [12:25:41]Write to MH i2c: 01 00 00 D5 4B 20 [12:25:41]Write i2c OK [12:25:41]MH_I2C_Read... [12:25:41]Read from MH i2c: 01 [12:25:41]MH_I2C_Read... [12:25:41]Read from MH i2c: 01 07 00 [12:25:41]MH_I2C_Read... [12:25:41]Read from MH i2c: 01 07 00 D5 4B 00 00 00 00 00 12 0D 46 [12:25:41]RasterBufferAndPrint [12:25:41]line [12:25:41]line [12:25:41]line [12:25:41]line [12:25:41]line [12:25:41]written 0, free lines is 3356 [12:25:41]MH_Cut [12:25:41]Write to MH i2c: D1 01 00 DC 4B 01 F9 [12:25:41]Write i2c OK [12:25:41]MH_I2C_Read... [12:25:41]Read from MH i2c: D1 [12:25:41]MH_I2C_Read... [12:25:41]Read from MH i2c: D1 01 00 [12:25:41]MH_I2C_Read... [12:25:41]Read from MH i2c: D1 01 00 DC 4B 00 F8 [12:25:41]Write to MH i2c: 01 00 00 DD 4B 28 [12:25:41]Write i2c OK [12:25:41]MH_I2C_Read... [12:25:41]OFD Sender: No OFD packet to send [12:25:41]*** Cut start [12:25:41]*** Purtial cut [12:25:41]*** Stage 1: CUTSNS_PIN = 1 [12:25:43]Read from MH i2c: 01 [12:25:43]MH_I2C_Read... [12:25:43]*** Stop cut motor [12:25:43]*** Cut end [12:25:43]Read from MH i2c: 01 07 00 [12:25:43]MH_I2C_Read... [12:25:43]Read from MH i2c: 01 07 00 DD 4B 00 00 00 00 00 FF 0F 3D [12:25:43]process_action close_receipt done [12:25:43]requested_data is exist [12:25:43]produce_requested_data [12:25:43]requested_item fm.sn is exist - process it [12:25:43]wFMCommunicate request_size=4 [12:25:43]MH_SAM_APDU [12:25:43]CAPDU: 80 11 00 00 [12:25:43]Write to MH i2c: E2 08 00 DE 4B 80 11 00 00 00 00 00 00 A3 [12:25:43]Write i2c OK [12:25:43]MH_I2C_Read... [12:25:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:44]Read from MH i2c: E2 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: E2 17 00 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: E2 17 00 DE 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 FA [12:25:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:25:44]wFMCommunicate OK [12:25:44]requested_item fd.num is exist - process it [12:25:44]SAM_PROTO_GetFieldsCounters [12:25:44]wFMCommunicate request_size=4 [12:25:44]MH_SAM_APDU [12:25:44]CAPDU: 80 13 00 00 [12:25:44]Write to MH i2c: E2 08 00 DF 4B 80 13 00 00 00 00 00 00 A6 [12:25:44]Write i2c OK [12:25:44]MH_I2C_Read... [12:25:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:44]Read from MH i2c: E2 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: E2 62 00 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: E2 62 00 DF 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B6 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [12:25:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B6 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:25:44]wFMCommunicate OK [12:25:44]SAM_PROTO_GetFieldsCounters done [12:25:44]requested_item shift.num is exist - process it [12:25:44]requested_item shift.opened is exist - process it [12:25:44]req_shift_opened [12:25:44]FM_GetShiftState [12:25:44]SAM_PROTO_GetShiftState [12:25:44]wFMCommunicate request_size=4 [12:25:44]MH_SAM_APDU [12:25:44]CAPDU: 80 13 01 00 [12:25:44]Write to MH i2c: E2 08 00 E0 4B 80 13 01 00 00 00 00 00 A8 [12:25:44]Write i2c OK [12:25:44]MH_I2C_Read... [12:25:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:44]Read from MH i2c: E2 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: E2 0E 00 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: E2 0E 00 E0 4B 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 2A [12:25:44]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [12:25:44]wFMCommunicate OK [12:25:44]SAM_PROTO_GetShiftState done [12:25:44]FM_GetShiftState done [12:25:44]req_shift_opened done [12:25:44]requested_item shift.open_date is exist - process it [12:25:44]req_shift_open_date [12:25:44]req_shift_open_date done [12:25:44]produce_requested_data done [12:25:44]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92598,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [12:25:44]process_action_free close_receipt [12:25:44]json_value_free [12:25:44]json_value_free done [12:25:44]process_json_proto returns [12:25:44]Send response to host [12:25:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92598,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [12:25:44]free response buf [12:25:44]execute_script done [12:25:44]execute_script returns [12:25:44]free content buf [12:25:44]Sock 8.Close socket [12:25:44]Sock 8.Thread stoped [12:25:46]OFD Sender: No OFD packet to send [12:25:51]OFD Sender: No OFD packet to send [12:25:56]OFD Sender: No OFD packet to send [12:26:01]OFD Sender: No OFD packet to send [12:26:06]OFD Sender: No OFD packet to send [12:26:11]OFD Sender: No OFD packet to send [12:26:16]OFD Sender: No OFD packet to send [12:26:21]OFD Sender: No OFD packet to send [12:26:26]OFD Sender: No OFD packet to send [12:26:31]OFD Sender: No OFD packet to send [12:26:36]OFD Sender: No OFD packet to send [12:26:41]OFD Sender: No OFD packet to send [12:26:46]OFD Sender: No OFD packet to send [12:26:51]OFD Sender: No OFD packet to send [12:26:56]OFD Sender: No OFD packet to send [12:27:01]OFD Sender: No OFD packet to send [12:27:06]OFD Sender: No OFD packet to send [12:27:11]OFD Sender: No OFD packet to send [12:27:16]OFD Sender: No OFD packet to send [12:27:21]OFD Sender: No OFD packet to send [12:27:26]OFD Sender: No OFD packet to send [12:27:31]OFD Sender: No OFD packet to send [12:27:36]OFD Sender: No OFD packet to send [12:27:41]OFD Sender: No OFD packet to send [12:27:46]OFD Sender: No OFD packet to send [12:27:51]OFD Sender: No OFD packet to send [12:27:56]OFD Sender: No OFD packet to send [12:28:01]OFD Sender: No OFD packet to send [12:28:06]OFD Sender: No OFD packet to send [12:28:11]OFD Sender: No OFD packet to send [12:28:16]OFD Sender: No OFD packet to send [12:28:21]OFD Sender: No OFD packet to send [12:28:26]OFD Sender: No OFD packet to send [12:28:31]OFD Sender: No OFD packet to send [12:28:36]OFD Sender: No OFD packet to send [12:28:41]OFD Sender: No OFD packet to send [12:28:46]OFD Sender: No OFD packet to send [12:28:51]OFD Sender: No OFD packet to send [12:28:52]accept exits with 9 [12:28:52]New connection [12:28:52]New thread 3066801508 created [12:28:52]Thread 3066658148 joined [12:28:52]Waiting for new connection... [12:28:52] Sock 9.Parse request [12:28:52]Sock 9.Check first char [12:28:52]Sock 9.First char is OK [12:28:52]request: POST /json_proto HTTP/1.0 [12:28:52]Method: POST [12:28:52]URL: /json_proto [12:28:52]Method is POST - this is cgi request [12:28:52]url: /json_proto [12:28:52]query_string will be loaded in cgi processing [12:28:52]execute_cgi json_proto POST (null) [12:28:52]execute_cgi path=json_proto method=POST [12:28:52]POST find Content-Length [12:28:52]Host: 172.17.57.71:8080 [12:28:52]Content-Length: 1383 [12:28:52]Content-Type: application/json [12:28:52] [12:28:52]POST finish read [12:28:52]Found Content-Length = 1383 [12:28:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127493", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46141538", "name": "\u0420/\u0436 Orbit Bubblemint 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 305.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:52]execute_script... [12:28:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127493", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46141538", "name": "\u0420/\u0436 Orbit Bubblemint 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 305.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:52]POST & json_proto [12:28:52]process_json_proto [12:28:52]json parsed OK: [12:28:52]protocol is kg_v1.0 [12:28:52]action value=close_receipt [12:28:52]process_action close_receipt [12:28:52]cmd_close_receipt [12:28:52]MH_GetDate [12:28:52]Write to MH i2c: F0 00 00 E1 4B 1B [12:28:52]Write i2c OK [12:28:52]MH_I2C_Read... [12:28:52]Read from MH i2c: F0 [12:28:52]MH_I2C_Read... [12:28:52]Read from MH i2c: F0 09 00 [12:28:52]MH_I2C_Read... [12:28:52]Read from MH i2c: F0 09 00 E1 4B 00 0C D3 E6 66 33 3A A4 66 C6 [12:28:52]GetLastDocTimeStamp 1726403147 [12:28:52]current date 1726403340 [12:28:52]FM_GetShiftState [12:28:52]SAM_PROTO_GetShiftState [12:28:52]wFMCommunicate request_size=4 [12:28:52]MH_SAM_APDU [12:28:52]CAPDU: 80 13 01 00 [12:28:52]Write to MH i2c: E2 08 00 E2 4B 80 13 01 00 00 00 00 00 AA [12:28:52]Write i2c OK [12:28:52]MH_I2C_Read... [12:28:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:52]Read from MH i2c: E2 [12:28:52]MH_I2C_Read... [12:28:52]Read from MH i2c: E2 0E 00 [12:28:52]MH_I2C_Read... [12:28:52]Read from MH i2c: E2 0E 00 E2 4B 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 2C [12:28:52]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [12:28:52]wFMCommunicate OK [12:28:52]SAM_PROTO_GetShiftState done [12:28:52]FM_GetShiftState done [12:28:52]opened in 1726359809 [12:28:52]opened+sec_in_day 1726446209 [12:28:52]quantity*price = 5000 [12:28:52]sum+1 = 5001 [12:28:52]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001571528 Вода ASU пит н.газ персик ПЭТ 1,0 л 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46141538 Р/ж Orbit Bubblemint 13,6г 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 305.00 НСП 1% : 2.69 НДС 12% : 32.39 Наличными: 305.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 47 15.09.2024 12:29 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92599 ФПД: 48816442232284 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T122901&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92599&fm=48816442232284&tin=02508201610067®Number=0000000000091423&sum=30500 0 [12:28:53]StoreToDocumentArchive [12:28:53]shift 507 fd 92599 [12:28:53]save to /storage/0507/doc_00092599 [12:28:53]save last doc name /storage/0507/doc_00092599 to /storage/kkm_last_doc_name [12:28:53]save OK [12:28:53]Clear old archive folders... [12:28:53]ProcessDocumentItem done err = 0, tmpTLVsize=589 [12:28:53]tlvbuf is 01037F20 [12:28:53]SAM_PROTO_ClearQueue [12:28:53]wFMCommunicate request_size=4 [12:28:53]MH_SAM_APDU [12:28:53]CAPDU: 80 09 00 00 [12:28:53]Write to MH i2c: E2 08 00 EF 4B 80 09 00 00 00 00 00 00 AC [12:28:53]Write i2c OK [12:28:53]MH_I2C_Read... [12:28:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:28:53]Read from MH i2c: E2 [12:28:53]MH_I2C_Read... [12:28:53]Read from MH i2c: E2 03 00 [12:28:53]MH_I2C_Read... [12:28:53]Read from MH i2c: E2 03 00 EF 4B 00 90 00 AE [12:28:53]RAPDU: 90 00 [12:28:53]wFMCommunicate OK [12:28:53]SAM_PROTO_ClearQueue done [12:28:53]KKMCreateOFDPacket [12:28:53]OFDProtocolAddRootSTLVToBuf [12:28:53]FM_MakeSignedData [12:28:53]FM_MakeSignedData [12:28:53]SAM_PROTO_SignData [12:28:53]wFMCommunicate request_size=4 [12:28:53]MH_SAM_APDU [12:28:53]CAPDU: 80 0D 01 02 [12:28:53]Write to MH i2c: E2 08 00 F0 4B 80 0D 01 02 00 00 00 00 B4 [12:28:53]Write i2c OK [12:28:53]MH_I2C_Read... [12:28:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:28:54]Read from MH i2c: E2 [12:28:54]MH_I2C_Read... [12:28:54]Read from MH i2c: E2 03 00 [12:28:54]MH_I2C_Read... [12:28:54]Read from MH i2c: E2 03 00 F0 4B 00 90 00 AF [12:28:54]RAPDU: 90 00 [12:28:54]wFMCommunicate OK [12:28:54]wFMCommunicate request_size=255 [12:28:54]MH_SAM_APDU [12:28:54]CAPDU: 80 0D 02 02 FA 03 00 4D 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 [12:28:54]Write to MH i2c: E2 02 01 F1 4B 80 0D 02 02 FA 00 03 00 4D 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 00 00 DB [12:28:54]Write i2c OK [12:28:54]MH_I2C_Read... [12:28:54]Read from MH i2c: E2 [12:28:54]MH_I2C_Read... [12:28:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:54]Read from MH i2c: E2 03 00 [12:28:54]MH_I2C_Read... [12:28:54]Read from MH i2c: E2 03 00 F1 4B 00 90 00 B0 [12:28:54]RAPDU: 90 00 [12:28:54]wFMCommunicate OK [12:28:54]wFMCommunicate request_size=255 [12:28:54]MH_SAM_APDU [12:28:54]CAPDU: 80 0D 02 02 FA BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0C 00 00 00 00 07 04 06 00 24 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 [12:28:54]Write to MH i2c: E2 02 01 F2 4B 80 0D 02 02 FA 00 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0C 00 00 00 00 07 04 06 00 24 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 00 00 B1 [12:28:54]Write i2c OK [12:28:54]MH_I2C_Read... [12:28:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:54]Read from MH i2c: E2 [12:28:54]MH_I2C_Read... [12:28:54]Read from MH i2c: E2 03 00 [12:28:54]MH_I2C_Read... [12:28:54]Read from MH i2c: E2 03 00 F2 4B 00 90 00 B1 [12:28:54]RAPDU: 90 00 [12:28:54]wFMCommunicate OK [12:28:54]wFMCommunicate request_size=98 [12:28:54]MH_SAM_APDU [12:28:54]CAPDU: 80 0D 02 02 5D 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 0D D3 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B7 69 01 00 35 04 06 00 2C 65 F6 B2 CD DC [12:28:54]Write to MH i2c: E2 65 00 F3 4B 80 0D 02 02 5D 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 0D D3 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B7 69 01 00 35 04 06 00 2C 65 F6 B2 CD DC 00 00 B0 [12:28:54]Write i2c OK [12:28:54]MH_I2C_Read... [12:28:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:54]Read from MH i2c: E2 [12:28:54]MH_I2C_Read... [12:28:54]Read from MH i2c: E2 03 00 [12:28:54]MH_I2C_Read... [12:28:54]Read from MH i2c: E2 03 00 F3 4B 00 90 00 B2 [12:28:54]RAPDU: 90 00 [12:28:54]wFMCommunicate OK [12:28:54]wFMCommunicate request_size=4 [12:28:54]MH_SAM_APDU [12:28:54]CAPDU: 80 0D 03 02 [12:28:54]Write to MH i2c: E2 08 00 F4 4B 80 0D 03 02 00 00 00 00 BA [12:28:54]Write i2c OK [12:28:54]MH_I2C_Read... [12:28:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:28:54]Read from MH i2c: E2 [12:28:54]MH_I2C_Read... [12:28:54]Read from MH i2c: E2 0B 00 [12:28:54]MH_I2C_Read... [12:28:54]Read from MH i2c: E2 0B 00 F4 4B 00 46 98 2A D4 D1 B8 83 EF 90 00 92 [12:28:54]RAPDU: 46 98 2A D4 D1 B8 83 EF 90 00 [12:28:54]wFMCommunicate OK [12:28:54]SAM_PROTO_SignData done [12:28:54]FM_MakeSignedData done [12:28:54]CreateOFDProtocolMessage [12:28:54]wFMCommunicate request_size=4 [12:28:54]MH_SAM_APDU [12:28:54]CAPDU: 80 11 00 00 [12:28:54]Write to MH i2c: E2 08 00 F5 4B 80 11 00 00 00 00 00 00 BA [12:28:54]Write i2c OK [12:28:54]MH_I2C_Read... [12:28:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:54]Read from MH i2c: E2 [12:28:54]MH_I2C_Read... [12:28:54]Read from MH i2c: E2 17 00 [12:28:54]MH_I2C_Read... [12:28:54]Read from MH i2c: E2 17 00 F5 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 11 [12:28:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:28:54]wFMCommunicate OK [12:28:54]CreateOFDProtocolMessage done [12:28:54]OFDSenderStorePacket 92599 [12:28:54]StoreOFDPacket docnum=92599 [12:28:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 61 02 00 00 2E 2A 59 02 29 C1 5A 03 01 00 03 00 4D 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0C 00 00 00 00 07 04 06 00 24 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 0D D3 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B7 69 01 00 35 04 06 00 2C 65 F6 B2 CD DC 46 98 2A D4 D1 B8 83 EF [12:28:54]CheckFolder [12:28:54]dirname=/storage/ofd_packets [12:28:54]CheckFolder done [12:28:54]ProducePacketName [12:28:54]name=ofd_packets/00092599 [12:28:54]NVStorageSaveData ofd_packets/00092599 [12:28:54]File name is /storage/ofd_packets/00092599 [12:28:54]Write 639 bytes [12:28:54]NVStorageSaveData done [12:28:54]OFDSenderStorePacket done [12:28:54]KKMCreateOFDPacket done [12:28:54]NVStorageSaveData kkm_last_timestamp [12:28:54]File name is /storage/kkm_last_timestamp [12:28:54]Write 4 bytes [12:28:54]NVStorageSaveData done [12:28:54]ExternCall_PrintAddStr [12:28:54]wPrintStart [12:28:54]Write to MH i2c: 01 00 00 F6 4B 41 [12:28:54]Write i2c OK [12:28:54]MH_I2C_Read... [12:28:54]Read from MH i2c: 01 [12:28:54]MH_I2C_Read... [12:28:54]Read from MH i2c: 01 07 00 [12:28:54]MH_I2C_Read... [12:28:54]Read from MH i2c: 01 07 00 F6 4B 00 00 00 00 00 FF 0F 56 [12:28:54]RasterBufferAndPrint [12:28:54]line Счет N : (3)127493 [12:28:54]line ИНН: 02508201610067 [12:28:54]line Контрольно-Кассовый Чек [12:28:54]line ПРОДАЖА [12:28:54]line Товар: 4700000160358 [12:28:54]line Вода Легенда 1л [12:28:54]line 1.000 * 50.00 [12:28:54]line = 50.00 [12:28:54]line НДС 12% НСП 1% [12:28:54]line > о реализуемом товаре [12:28:54]line Товар: 4870001570071 [12:28:54]line Напиток Pepsi 1л [12:28:54]line 1.000 * 110.00 [12:28:54]line = 110.00 [12:28:54]line НДС 12% НСП 1% [12:28:54]line > о реализуемом товаре [12:28:54]line Товар: 4870001571528 [12:28:54]line Вода ASU пит н.газ персик ПЭТ 1,0 л [12:28:54]line 1.000 * 100.00 [12:28:54]line = 100.00 [12:28:54]line НДС 12% НСП 1% [12:28:54]line > о реализуемом товаре [12:28:54]line Товар: 46141538 [12:28:54]line Р/ж Orbit Bubblemint 13,6г [12:28:54]line 1.000 * 45.00 [12:28:54]line = 45.00 [12:28:54]line НДС 12% НСП 1% [12:28:54]line > о реализуемом товаре [12:28:54]line ИТОГО: 305.00 [12:28:54]line НСП 1% : 2.69 [12:28:54]line НДС 12% : 32.39 [12:28:54]line Наличными: 305.00 [12:28:54]line Безнал.: 0.00 [12:28:54]line Место: АЗС № 5 "Партнер Нефть" [12:28:54]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:28:54]line СНО: Общий режим [12:28:54]line Чек 47 15.09.2024 12:29 [12:28:54]line Смена: 507 ФФД: 1.0 [12:28:54]line ЗНМ: 03000000022 [12:28:54]line РНМ: 0000000000091423 [12:28:54]line Версия ККМ: 001 [12:28:54]line ФМ: 0000000000874692 [12:28:54]line ФД: 92599 [12:28:54]line ФПД: 48816442232284 [12:28:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T122901&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92599&fm=48816442232284&tin=02508201610067®Number=0000000000091423&sum=30500 [12:28:55]line 0 [12:28:55]OFD Sender: Processing packet 92599 [packets to send 63, broken 62] [12:28:55]ProducePacketName [12:28:55]name=ofd_packets/00092599 [12:28:55]OFD Sender: To server: pG, [12:28:55]CommunicateWithHost lk.salyk.kg:30040 [12:28:55]ConnectInit lk.salyk.kg [12:28:55]written 0, free lines is 4095 [12:28:55]Connected sock=10 [12:28:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 61 02 00 00 2E 2A 59 02 29 C1 5A 03 01 00 03 00 4D 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0C 00 00 00 00 07 04 06 00 24 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 0D D3 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B7 69 01 00 35 04 06 00 2C 65 F6 B2 CD DC 46 98 2A D4 D1 B8 83 EF [12:28:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 1D 90 47 00 DB 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B7 69 01 00 F4 03 04 00 85 7B E6 66 B6 04 01 00 00 BF CB FC 94 21 C3 6E 1D [12:28:55]CommunicateWithHost err = 0 [12:28:55]CheckOFDResponse [12:28:55]1017 (14) - 77093643461234 [12:28:55]1041 (16) - 0000000000874692 [12:28:55]1040 (4) - 92599 [12:28:55]1012 (4) - 15.09.2024 06:15 [12:28:55]1206 (1) - 0 [12:28:55]OFD Sender: Remove packet 92599 [12:28:55]ProducePacketName [12:28:55]name=ofd_packets/00092599 [12:28:55]NVStorageDeleteData [12:28:55]Write to MH i2c: 01 00 00 31 4C 7D [12:28:55]Write i2c OK [12:28:55]MH_I2C_Read... [12:28:55]Read from MH i2c: 01 [12:28:55]MH_I2C_Read... [12:28:55]Read from MH i2c: 01 07 00 [12:28:55]MH_I2C_Read... [12:28:55]Read from MH i2c: 01 07 00 31 4C 00 00 00 00 00 24 0C B4 [12:28:55]RasterBufferAndPrint [12:28:55]line [12:28:55]line [12:28:55]line [12:28:55]line [12:28:55]line [12:28:55]written 0, free lines is 3117 [12:28:55]MH_Cut [12:28:55]Write to MH i2c: D1 01 00 38 4C 01 56 [12:28:55]Write i2c OK [12:28:55]MH_I2C_Read... [12:28:55]Read from MH i2c: D1 [12:28:55]MH_I2C_Read... [12:28:55]Read from MH i2c: D1 01 00 [12:28:55]MH_I2C_Read... [12:28:55]Read from MH i2c: D1 01 00 38 4C 00 55 [12:28:55]Write to MH i2c: 01 00 00 39 4C 85 [12:28:55]Write i2c OK [12:28:55]MH_I2C_Read... [12:28:55]OFD Sender: No OFD packet to send [12:28:56]*** Cut start [12:28:56]*** Purtial cut [12:28:56]*** Stage 1: CUTSNS_PIN = 1 [12:28:58]Read from MH i2c: 01 [12:28:58]MH_I2C_Read... [12:28:58]*** Stop cut motor [12:28:58]*** Cut end [12:28:58]Read from MH i2c: 01 07 00 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: 01 07 00 39 4C 00 00 00 00 00 FF 0F 9A [12:28:58]process_action close_receipt done [12:28:58]requested_data is exist [12:28:58]produce_requested_data [12:28:58]requested_item fm.sn is exist - process it [12:28:58]wFMCommunicate request_size=4 [12:28:58]MH_SAM_APDU [12:28:58]CAPDU: 80 11 00 00 [12:28:58]Write to MH i2c: E2 08 00 3A 4C 80 11 00 00 00 00 00 00 00 [12:28:58]Write i2c OK [12:28:58]MH_I2C_Read... [12:28:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:58]Read from MH i2c: E2 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: E2 17 00 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: E2 17 00 3A 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 57 [12:28:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:28:58]wFMCommunicate OK [12:28:58]requested_item fd.num is exist - process it [12:28:58]SAM_PROTO_GetFieldsCounters [12:28:58]wFMCommunicate request_size=4 [12:28:58]MH_SAM_APDU [12:28:58]CAPDU: 80 13 00 00 [12:28:58]Write to MH i2c: E2 08 00 3B 4C 80 13 00 00 00 00 00 00 03 [12:28:58]Write i2c OK [12:28:58]MH_I2C_Read... [12:28:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:58]Read from MH i2c: E2 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: E2 62 00 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: E2 62 00 3B 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B7 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [12:28:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B7 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:28:58]wFMCommunicate OK [12:28:58]SAM_PROTO_GetFieldsCounters done [12:28:58]requested_item shift.num is exist - process it [12:28:58]requested_item shift.opened is exist - process it [12:28:58]req_shift_opened [12:28:58]FM_GetShiftState [12:28:58]SAM_PROTO_GetShiftState [12:28:58]wFMCommunicate request_size=4 [12:28:58]MH_SAM_APDU [12:28:58]CAPDU: 80 13 01 00 [12:28:58]Write to MH i2c: E2 08 00 3C 4C 80 13 01 00 00 00 00 00 05 [12:28:58]Write i2c OK [12:28:58]MH_I2C_Read... [12:28:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:58]Read from MH i2c: E2 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: E2 0E 00 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: E2 0E 00 3C 4C 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 87 [12:28:58]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [12:28:58]wFMCommunicate OK [12:28:58]SAM_PROTO_GetShiftState done [12:28:58]FM_GetShiftState done [12:28:58]req_shift_opened done [12:28:58]requested_item shift.open_date is exist - process it [12:28:58]req_shift_open_date [12:28:58]req_shift_open_date done [12:28:58]produce_requested_data done [12:28:58]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92599,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [12:28:58]process_action_free close_receipt [12:28:58]json_value_free [12:28:58]json_value_free done [12:28:58]process_json_proto returns [12:28:58]Send response to host [12:28:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92599,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [12:28:58]free response buf [12:28:58]execute_script done [12:28:58]execute_script returns [12:28:58]free content buf [12:28:58]Sock 9.Close socket [12:28:58]Sock 9.Thread stoped [12:29:00]OFD Sender: No OFD packet to send [12:29:05]OFD Sender: No OFD packet to send [12:29:09]accept exits with 8 [12:29:09]New connection [12:29:09]New thread 3066658148 created [12:29:09]Thread 3066801508 joined [12:29:09]Waiting for new connection... [12:29:09] Sock 8.Parse request [12:29:09]Sock 8.Check first char [12:29:09]Sock 8.First char is OK [12:29:09]request: POST /json_proto HTTP/1.0 [12:29:09]Method: POST [12:29:09]URL: /json_proto [12:29:09]Method is POST - this is cgi request [12:29:09]url: /json_proto [12:29:09]query_string will be loaded in cgi processing [12:29:09]execute_cgi json_proto POST (null) [12:29:09]execute_cgi path=json_proto method=POST [12:29:09]POST find Content-Length [12:29:09]Host: 172.17.57.71:8080 [12:29:09]Content-Length: 642 [12:29:09]Content-Type: application/json [12:29:09] [12:29:09]POST finish read [12:29:09]Found Content-Length = 642 [12:29:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127494", "tax_sys" : 0, "items" : [ { "code": "2000032710015", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75\u0433", "price" : 35.00, "quantity" : 3.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:09]execute_script... [12:29:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127494", "tax_sys" : 0, "items" : [ { "code": "2000032710015", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75\u0433", "price" : 35.00, "quantity" : 3.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:09]POST & json_proto [12:29:09]process_json_proto [12:29:09]json parsed OK: [12:29:09]protocol is kg_v1.0 [12:29:09]action value=close_receipt [12:29:09]process_action close_receipt [12:29:09]cmd_close_receipt [12:29:09]MH_GetDate [12:29:09]Write to MH i2c: F0 00 00 3D 4C 78 [12:29:09]Write i2c OK [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: F0 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: F0 09 00 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: F0 09 00 3D 4C 00 1E D3 E6 66 33 3A A4 66 35 [12:29:09]GetLastDocTimeStamp 1726403341 [12:29:09]current date 1726403358 [12:29:09]FM_GetShiftState [12:29:09]SAM_PROTO_GetShiftState [12:29:09]wFMCommunicate request_size=4 [12:29:09]MH_SAM_APDU [12:29:09]CAPDU: 80 13 01 00 [12:29:09]Write to MH i2c: E2 08 00 3E 4C 80 13 01 00 00 00 00 00 07 [12:29:09]Write i2c OK [12:29:09]MH_I2C_Read... [12:29:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:09]Read from MH i2c: E2 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 0E 00 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 0E 00 3E 4C 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 89 [12:29:09]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [12:29:09]wFMCommunicate OK [12:29:09]SAM_PROTO_GetShiftState done [12:29:09]FM_GetShiftState done [12:29:09]opened in 1726359809 [12:29:09]opened+sec_in_day 1726446209 [12:29:09]quantity*price = 10500 [12:29:09]sum+1 = 10501 [12:29:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 48 15.09.2024 12:29 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92600 ФПД: 241555570954333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T122918&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92600&fm=241555570954333&tin=02508201610067®Number=0000000000091423&sum=10500 0 [12:29:11]StoreToDocumentArchive [12:29:11]shift 507 fd 92600 [12:29:11]save to /storage/0507/doc_00092600 [12:29:11]save last doc name /storage/0507/doc_00092600 to /storage/kkm_last_doc_name [12:29:11]save OK [12:29:11]Clear old archive folders... [12:29:11]ProcessDocumentItem done err = 0, tmpTLVsize=275 [12:29:11]tlvbuf is 010B13C0 [12:29:11]SAM_PROTO_ClearQueue [12:29:11]wFMCommunicate request_size=4 [12:29:11]MH_SAM_APDU [12:29:11]CAPDU: 80 09 00 00 [12:29:11]Write to MH i2c: E2 08 00 4B 4C 80 09 00 00 00 00 00 00 09 [12:29:11]Write i2c OK [12:29:11]MH_I2C_Read... [12:29:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:11]Read from MH i2c: E2 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 03 00 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 03 00 4B 4C 00 90 00 0B [12:29:11]RAPDU: 90 00 [12:29:11]wFMCommunicate OK [12:29:11]SAM_PROTO_ClearQueue done [12:29:11]KKMCreateOFDPacket [12:29:11]OFDProtocolAddRootSTLVToBuf [12:29:11]FM_MakeSignedData [12:29:11]FM_MakeSignedData [12:29:11]SAM_PROTO_SignData [12:29:11]wFMCommunicate request_size=4 [12:29:11]MH_SAM_APDU [12:29:11]CAPDU: 80 0D 01 02 [12:29:11]Write to MH i2c: E2 08 00 4C 4C 80 0D 01 02 00 00 00 00 11 [12:29:11]Write i2c OK [12:29:11]MH_I2C_Read... [12:29:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:11]Read from MH i2c: E2 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 03 00 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 03 00 4C 4C 00 90 00 0C [12:29:11]RAPDU: 90 00 [12:29:11]wFMCommunicate OK [12:29:11]wFMCommunicate request_size=255 [12:29:11]MH_SAM_APDU [12:29:11]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 1E D3 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 [12:29:11]Write to MH i2c: E2 02 01 4D 4C 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 1E D3 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 00 00 A7 [12:29:11]Write i2c OK [12:29:11]MH_I2C_Read... [12:29:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:11]Read from MH i2c: E2 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 03 00 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 03 00 4D 4C 00 90 00 0D [12:29:11]RAPDU: 90 00 [12:29:11]wFMCommunicate OK [12:29:11]wFMCommunicate request_size=34 [12:29:11]MH_SAM_APDU [12:29:11]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B8 69 01 00 35 04 06 00 DB B1 8A 00 10 5D [12:29:11]Write to MH i2c: E2 25 00 4E 4C 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B8 69 01 00 35 04 06 00 DB B1 8A 00 10 5D 00 00 7E [12:29:11]Write i2c OK [12:29:11]MH_I2C_Read... [12:29:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:11]Read from MH i2c: E2 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 03 00 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 03 00 4E 4C 00 90 00 0E [12:29:11]RAPDU: 90 00 [12:29:11]wFMCommunicate OK [12:29:11]wFMCommunicate request_size=4 [12:29:11]MH_SAM_APDU [12:29:11]CAPDU: 80 0D 03 02 [12:29:11]Write to MH i2c: E2 08 00 4F 4C 80 0D 03 02 00 00 00 00 16 [12:29:11]Write i2c OK [12:29:11]MH_I2C_Read... [12:29:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:11]Read from MH i2c: E2 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 0B 00 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 0B 00 4F 4C 00 58 2A 1C BB 53 E8 54 63 90 00 62 [12:29:11]RAPDU: 58 2A 1C BB 53 E8 54 63 90 00 [12:29:11]wFMCommunicate OK [12:29:11]SAM_PROTO_SignData done [12:29:11]FM_MakeSignedData done [12:29:11]CreateOFDProtocolMessage [12:29:11]wFMCommunicate request_size=4 [12:29:11]MH_SAM_APDU [12:29:11]CAPDU: 80 11 00 00 [12:29:11]Write to MH i2c: E2 08 00 50 4C 80 11 00 00 00 00 00 00 16 [12:29:11]Write i2c OK [12:29:11]MH_I2C_Read... [12:29:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:11]Read from MH i2c: E2 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 17 00 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 17 00 50 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 6D [12:29:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:29:11]wFMCommunicate OK [12:29:11]CreateOFDProtocolMessage done [12:29:11]OFDSenderStorePacket 92600 [12:29:11]StoreOFDPacket docnum=92600 [12:29:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 A6 A3 1F 01 DC 15 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 1E D3 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B8 69 01 00 35 04 06 00 DB B1 8A 00 10 5D 58 2A 1C BB 53 E8 54 63 [12:29:11]CheckFolder [12:29:11]dirname=/storage/ofd_packets [12:29:11]CheckFolder done [12:29:11]ProducePacketName [12:29:11]name=ofd_packets/00092600 [12:29:11]NVStorageSaveData ofd_packets/00092600 [12:29:11]File name is /storage/ofd_packets/00092600 [12:29:11]Write 325 bytes [12:29:11]NVStorageSaveData done [12:29:11]OFDSenderStorePacket done [12:29:11]KKMCreateOFDPacket done [12:29:11]NVStorageSaveData kkm_last_timestamp [12:29:11]File name is /storage/kkm_last_timestamp [12:29:11]Write 4 bytes [12:29:11]NVStorageSaveData done [12:29:11]ExternCall_PrintAddStr [12:29:11]wPrintStart [12:29:11]Write to MH i2c: 01 00 00 51 4C 9D [12:29:11]Write i2c OK [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: 01 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: 01 07 00 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: 01 07 00 51 4C 00 00 00 00 00 FF 0F B2 [12:29:11]RasterBufferAndPrint [12:29:11]line Счет N : (3)127494 [12:29:11]line ИНН: 02508201610067 [12:29:11]line Контрольно-Кассовый Чек [12:29:11]line ПРОДАЖА [12:29:11]line Товар: 2000032710015 [12:29:11]line Сочник DC творог 75г [12:29:11]line 3.000 * 35.00 [12:29:11]line = 105.00 [12:29:11]line НДС 12% НСП 1% [12:29:11]line > о реализуемом товаре [12:29:11]line ИТОГО: 105.00 [12:29:11]line НСП 1% : 0.93 [12:29:11]line НДС 12% : 11.15 [12:29:11]line Наличными: 105.00 [12:29:11]line Безнал.: 0.00 [12:29:11]line Место: АЗС № 5 "Партнер Нефть" [12:29:11]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:29:11]line СНО: Общий режим [12:29:11]line Чек 48 15.09.2024 12:29 [12:29:11]line Смена: 507 ФФД: 1.0 [12:29:11]line ЗНМ: 03000000022 [12:29:11]line РНМ: 0000000000091423 [12:29:11]line Версия ККМ: 001 [12:29:11]line ФМ: 0000000000874692 [12:29:11]line ФД: 92600 [12:29:11]line ФПД: 241555570954333 [12:29:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T122918&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92600&fm=241555570954333&tin=02508201610067®Number=0000000000091423&sum=10500 [12:29:11]OFD Sender: Processing packet 92600 [packets to send 63, broken 62] [12:29:11]ProducePacketName [12:29:11]name=ofd_packets/00092600 [12:29:11]OFD Sender: To server: pG, [12:29:11]CommunicateWithHost lk.salyk.kg:30040 [12:29:11]ConnectInit lk.salyk.kg [12:29:11]line 0 [12:29:11]written 0, free lines is 4095 [12:29:12]Connected sock=10 [12:29:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 A6 A3 1F 01 DC 15 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 1E D3 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B8 69 01 00 35 04 06 00 DB B1 8A 00 10 5D 58 2A 1C BB 53 E8 54 63 [12:29:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 8E 42 47 00 D4 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B8 69 01 00 F4 03 04 00 96 7B E6 66 B6 04 01 00 00 99 85 65 1B 92 D3 DA FB [12:29:12]CommunicateWithHost err = 0 [12:29:12]CheckOFDResponse [12:29:12]1017 (14) - 77093643461234 [12:29:12]1041 (16) - 0000000000874692 [12:29:12]1040 (4) - 92600 [12:29:12]1012 (4) - 15.09.2024 06:15 [12:29:12]1206 (1) - 0 [12:29:12]OFD Sender: Remove packet 92600 [12:29:12]ProducePacketName [12:29:12]name=ofd_packets/00092600 [12:29:12]NVStorageDeleteData [12:29:12]Write to MH i2c: 01 00 00 79 4C C5 [12:29:12]Write i2c OK [12:29:12]MH_I2C_Read... [12:29:12]Read from MH i2c: 01 [12:29:12]MH_I2C_Read... [12:29:12]Read from MH i2c: 01 07 00 [12:29:12]MH_I2C_Read... [12:29:12]Read from MH i2c: 01 07 00 79 4C 00 00 00 00 00 1D 0D F6 [12:29:12]RasterBufferAndPrint [12:29:12]line [12:29:12]line [12:29:12]line [12:29:12]line [12:29:12]line [12:29:12]written 0, free lines is 3364 [12:29:12]MH_Cut [12:29:12]Write to MH i2c: D1 01 00 80 4C 01 9E [12:29:12]Write i2c OK [12:29:12]MH_I2C_Read... [12:29:12]Read from MH i2c: D1 [12:29:12]MH_I2C_Read... [12:29:12]Read from MH i2c: D1 01 00 [12:29:12]MH_I2C_Read... [12:29:12]Read from MH i2c: D1 01 00 80 4C 00 9D [12:29:12]Write to MH i2c: 01 00 00 81 4C CD [12:29:12]Write i2c OK [12:29:12]MH_I2C_Read... [12:29:12]OFD Sender: No OFD packet to send [12:29:12]*** Cut start [12:29:12]*** Purtial cut [12:29:12]*** Stage 1: CUTSNS_PIN = 1 [12:29:14]Read from MH i2c: 01 [12:29:15]MH_I2C_Read... [12:29:15]*** Stop cut motor [12:29:15]*** Cut end [12:29:15]Read from MH i2c: 01 07 00 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: 01 07 00 81 4C 00 00 00 00 00 FF 0F E2 [12:29:15]process_action close_receipt done [12:29:15]requested_data is exist [12:29:15]produce_requested_data [12:29:15]requested_item fm.sn is exist - process it [12:29:15]wFMCommunicate request_size=4 [12:29:15]MH_SAM_APDU [12:29:15]CAPDU: 80 11 00 00 [12:29:15]Write to MH i2c: E2 08 00 82 4C 80 11 00 00 00 00 00 00 48 [12:29:15]Write i2c OK [12:29:15]MH_I2C_Read... [12:29:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:15]Read from MH i2c: E2 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: E2 17 00 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: E2 17 00 82 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 9F [12:29:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:29:15]wFMCommunicate OK [12:29:15]requested_item fd.num is exist - process it [12:29:15]SAM_PROTO_GetFieldsCounters [12:29:15]wFMCommunicate request_size=4 [12:29:15]MH_SAM_APDU [12:29:15]CAPDU: 80 13 00 00 [12:29:15]Write to MH i2c: E2 08 00 83 4C 80 13 00 00 00 00 00 00 4B [12:29:15]Write i2c OK [12:29:15]MH_I2C_Read... [12:29:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:15]Read from MH i2c: E2 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: E2 62 00 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: E2 62 00 83 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B8 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [12:29:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B8 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:15]wFMCommunicate OK [12:29:15]SAM_PROTO_GetFieldsCounters done [12:29:15]requested_item shift.num is exist - process it [12:29:15]requested_item shift.opened is exist - process it [12:29:15]req_shift_opened [12:29:15]FM_GetShiftState [12:29:15]SAM_PROTO_GetShiftState [12:29:15]wFMCommunicate request_size=4 [12:29:15]MH_SAM_APDU [12:29:15]CAPDU: 80 13 01 00 [12:29:15]Write to MH i2c: E2 08 00 84 4C 80 13 01 00 00 00 00 00 4D [12:29:15]Write i2c OK [12:29:15]MH_I2C_Read... [12:29:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:15]Read from MH i2c: E2 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: E2 0E 00 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: E2 0E 00 84 4C 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 CF [12:29:15]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [12:29:15]wFMCommunicate OK [12:29:15]SAM_PROTO_GetShiftState done [12:29:15]FM_GetShiftState done [12:29:15]req_shift_opened done [12:29:15]requested_item shift.open_date is exist - process it [12:29:15]req_shift_open_date [12:29:15]req_shift_open_date done [12:29:15]produce_requested_data done [12:29:15]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92600,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [12:29:15]process_action_free close_receipt [12:29:15]json_value_free [12:29:15]json_value_free done [12:29:15]process_json_proto returns [12:29:15]Send response to host [12:29:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92600,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [12:29:15]free response buf [12:29:15]execute_script done [12:29:15]execute_script returns [12:29:15]free content buf [12:29:15]Sock 8.Close socket [12:29:15]Sock 8.Thread stoped [12:29:17]OFD Sender: No OFD packet to send [12:29:22]OFD Sender: No OFD packet to send [12:29:27]OFD Sender: No OFD packet to send [12:29:32]OFD Sender: No OFD packet to send [12:29:37]OFD Sender: No OFD packet to send [12:29:42]OFD Sender: No OFD packet to send [12:29:47]OFD Sender: No OFD packet to send [12:29:52]OFD Sender: No OFD packet to send [12:29:57]OFD Sender: No OFD packet to send [12:30:02]OFD Sender: No OFD packet to send [12:30:07]OFD Sender: No OFD packet to send [12:30:12]OFD Sender: No OFD packet to send [12:30:17]OFD Sender: No OFD packet to send [12:30:22]OFD Sender: No OFD packet to send [12:30:27]OFD Sender: No OFD packet to send [12:30:32]OFD Sender: No OFD packet to send [12:30:37]OFD Sender: No OFD packet to send [12:30:42]OFD Sender: No OFD packet to send [12:30:47]OFD Sender: No OFD packet to send [12:30:52]OFD Sender: No OFD packet to send [12:30:57]OFD Sender: No OFD packet to send [12:31:02]OFD Sender: No OFD packet to send [12:31:07]OFD Sender: No OFD packet to send [12:31:12]OFD Sender: No OFD packet to send [12:31:17]OFD Sender: No OFD packet to send [12:31:22]OFD Sender: No OFD packet to send [12:31:27]OFD Sender: No OFD packet to send [12:31:32]OFD Sender: No OFD packet to send [12:31:37]OFD Sender: No OFD packet to send [12:31:42]OFD Sender: No OFD packet to send [12:31:47]OFD Sender: No OFD packet to send [12:31:52]OFD Sender: No OFD packet to send [12:31:57]OFD Sender: No OFD packet to send [12:32:02]OFD Sender: No OFD packet to send [12:32:07]OFD Sender: No OFD packet to send [12:32:12]OFD Sender: No OFD packet to send [12:32:17]OFD Sender: No OFD packet to send [12:32:22]OFD Sender: No OFD packet to send [12:32:27]OFD Sender: No OFD packet to send [12:32:32]OFD Sender: No OFD packet to send [12:32:37]OFD Sender: No OFD packet to send [12:32:42]OFD Sender: No OFD packet to send [12:32:47]OFD Sender: No OFD packet to send [12:32:52]OFD Sender: No OFD packet to send [12:32:57]OFD Sender: No OFD packet to send [12:33:02]OFD Sender: No OFD packet to send [12:33:07]OFD Sender: No OFD packet to send [12:33:12]OFD Sender: No OFD packet to send [12:33:17]OFD Sender: No OFD packet to send [12:33:22]OFD Sender: No OFD packet to send [12:33:27]OFD Sender: No OFD packet to send [12:33:32]OFD Sender: No OFD packet to send [12:33:37]OFD Sender: No OFD packet to send [12:33:42]OFD Sender: No OFD packet to send [12:33:47]OFD Sender: No OFD packet to send [12:33:52]OFD Sender: No OFD packet to send [12:33:57]OFD Sender: No OFD packet to send [12:34:02]OFD Sender: No OFD packet to send [12:34:07]OFD Sender: No OFD packet to send [12:34:13]OFD Sender: No OFD packet to send [12:34:18]OFD Sender: No OFD packet to send [12:34:23]OFD Sender: No OFD packet to send [12:34:28]OFD Sender: No OFD packet to send [12:34:33]OFD Sender: No OFD packet to send [12:34:38]OFD Sender: No OFD packet to send [12:34:43]OFD Sender: No OFD packet to send [12:34:48]OFD Sender: No OFD packet to send [12:34:53]OFD Sender: No OFD packet to send [12:34:58]OFD Sender: No OFD packet to send [12:35:03]OFD Sender: No OFD packet to send [12:35:08]OFD Sender: No OFD packet to send [12:35:13]OFD Sender: No OFD packet to send [12:35:18]OFD Sender: No OFD packet to send [12:35:23]OFD Sender: No OFD packet to send [12:35:28]OFD Sender: No OFD packet to send [12:35:33]OFD Sender: No OFD packet to send [12:35:38]OFD Sender: No OFD packet to send [12:35:43]OFD Sender: No OFD packet to send [12:35:48]OFD Sender: No OFD packet to send [12:35:53]OFD Sender: No OFD packet to send [12:35:58]OFD Sender: No OFD packet to send [12:36:03]OFD Sender: No OFD packet to send [12:36:08]OFD Sender: No OFD packet to send [12:36:13]OFD Sender: No OFD packet to send [12:36:18]OFD Sender: No OFD packet to send [12:36:23]OFD Sender: No OFD packet to send [12:36:28]OFD Sender: No OFD packet to send [12:36:33]OFD Sender: No OFD packet to send [12:36:38]OFD Sender: No OFD packet to send [12:36:43]OFD Sender: No OFD packet to send [12:36:48]OFD Sender: No OFD packet to send [12:36:53]OFD Sender: No OFD packet to send [12:36:58]OFD Sender: No OFD packet to send [12:37:03]OFD Sender: No OFD packet to send [12:37:08]OFD Sender: No OFD packet to send [12:37:13]OFD Sender: No OFD packet to send [12:37:18]OFD Sender: No OFD packet to send [12:37:23]OFD Sender: No OFD packet to send [12:37:28]OFD Sender: No OFD packet to send [12:37:33]OFD Sender: No OFD packet to send [12:37:38]OFD Sender: No OFD packet to send [12:37:43]OFD Sender: No OFD packet to send [12:37:48]OFD Sender: No OFD packet to send [12:37:53]OFD Sender: No OFD packet to send [12:37:58]OFD Sender: No OFD packet to send [12:38:03]OFD Sender: No OFD packet to send [12:38:08]OFD Sender: No OFD packet to send [12:38:13]OFD Sender: No OFD packet to send [12:38:18]OFD Sender: No OFD packet to send [12:38:23]OFD Sender: No OFD packet to send [12:38:28]OFD Sender: No OFD packet to send [12:38:33]OFD Sender: No OFD packet to send [12:38:38]OFD Sender: No OFD packet to send [12:38:43]OFD Sender: No OFD packet to send [12:38:48]OFD Sender: No OFD packet to send [12:38:53]OFD Sender: No OFD packet to send [12:38:58]OFD Sender: No OFD packet to send [12:39:03]OFD Sender: No OFD packet to send [12:39:08]OFD Sender: No OFD packet to send [12:39:13]OFD Sender: No OFD packet to send [12:39:18]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:58]OFD Sender: No OFD packet to send [12:40:03]OFD Sender: No OFD packet to send [12:40:08]OFD Sender: No OFD packet to send [12:40:13]OFD Sender: No OFD packet to send [12:40:18]OFD Sender: No OFD packet to send [12:40:23]OFD Sender: No OFD packet to send [12:40:28]OFD Sender: No OFD packet to send [12:40:33]OFD Sender: No OFD packet to send [12:40:38]OFD Sender: No OFD packet to send [12:40:43]OFD Sender: No OFD packet to send [12:40:48]OFD Sender: No OFD packet to send [12:40:53]OFD Sender: No OFD packet to send [12:40:58]OFD Sender: No OFD packet to send [12:41:03]OFD Sender: No OFD packet to send [12:41:08]OFD Sender: No OFD packet to send [12:41:13]OFD Sender: No OFD packet to send [12:41:18]OFD Sender: No OFD packet to send [12:41:23]OFD Sender: No OFD packet to send [12:41:28]OFD Sender: No OFD packet to send [12:41:33]OFD Sender: No OFD packet to send [12:41:38]OFD Sender: No OFD packet to send [12:41:43]OFD Sender: No OFD packet to send [12:41:48]OFD Sender: No OFD packet to send [12:41:53]OFD Sender: No OFD packet to send [12:41:58]OFD Sender: No OFD packet to send [12:42:03]OFD Sender: No OFD packet to send [12:42:08]OFD Sender: No OFD packet to send [12:42:13]OFD Sender: No OFD packet to send [12:42:18]OFD Sender: No OFD packet to send [12:42:23]OFD Sender: No OFD packet to send [12:42:28]OFD Sender: No OFD packet to send [12:42:33]OFD Sender: No OFD packet to send [12:42:38]OFD Sender: No OFD packet to send [12:42:43]OFD Sender: No OFD packet to send [12:42:48]OFD Sender: No OFD packet to send [12:42:53]OFD Sender: No OFD packet to send [12:42:58]OFD Sender: No OFD packet to send [12:43:03]OFD Sender: No OFD packet to send [12:43:08]OFD Sender: No OFD packet to send [12:43:13]OFD Sender: No OFD packet to send [12:43:18]OFD Sender: No OFD packet to send [12:43:23]OFD Sender: No OFD packet to send [12:43:28]OFD Sender: No OFD packet to send [12:43:33]OFD Sender: No OFD packet to send [12:43:38]OFD Sender: No OFD packet to send [12:43:43]OFD Sender: No OFD packet to send [12:43:48]OFD Sender: No OFD packet to send [12:43:49]accept exits with 9 [12:43:49]New connection [12:43:49]New thread 3066801508 created [12:43:49]Thread 3066658148 joined [12:43:49]Waiting for new connection... [12:43:49] Sock 9.Parse request [12:43:49]Sock 9.Check first char [12:43:49]Sock 9.First char is OK [12:43:49]request: POST /json_proto HTTP/1.0 [12:43:49]Method: POST [12:43:49]URL: /json_proto [12:43:49]Method is POST - this is cgi request [12:43:49]url: /json_proto [12:43:49]query_string will be loaded in cgi processing [12:43:49]execute_cgi json_proto POST (null) [12:43:49]execute_cgi path=json_proto method=POST [12:43:49]POST find Content-Length [12:43:49]Host: 172.17.57.71:8080 [12:43:49]Content-Length: 1070 [12:43:49]Content-Type: application/json [12:43:49] [12:43:49]POST finish read [12:43:49]Found Content-Length = 1070 [12:43:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127495", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 185.00, "quantity" : 1.000, "sum" : 185.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 235.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:49]execute_script... [12:43:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127495", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 185.00, "quantity" : 1.000, "sum" : 185.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 235.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:49]POST & json_proto [12:43:49]process_json_proto [12:43:49]json parsed OK: [12:43:49]protocol is kg_v1.0 [12:43:49]action value=close_receipt [12:43:49]process_action close_receipt [12:43:49]cmd_close_receipt [12:43:49]MH_GetDate [12:43:49]Write to MH i2c: F0 00 00 85 4C C0 [12:43:49]Write i2c OK [12:43:49]MH_I2C_Read... [12:43:49]Read from MH i2c: F0 [12:43:49]MH_I2C_Read... [12:43:49]Read from MH i2c: F0 09 00 [12:43:49]MH_I2C_Read... [12:43:49]Read from MH i2c: F0 09 00 85 4C 00 8E D6 E6 66 33 3A A4 66 F0 [12:43:49]GetLastDocTimeStamp 1726403358 [12:43:49]current date 1726404238 [12:43:49]FM_GetShiftState [12:43:49]SAM_PROTO_GetShiftState [12:43:49]wFMCommunicate request_size=4 [12:43:49]MH_SAM_APDU [12:43:49]CAPDU: 80 13 01 00 [12:43:49]Write to MH i2c: E2 08 00 86 4C 80 13 01 00 00 00 00 00 4F [12:43:49]Write i2c OK [12:43:49]MH_I2C_Read... [12:43:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:49]Read from MH i2c: E2 [12:43:49]MH_I2C_Read... [12:43:49]Read from MH i2c: E2 0E 00 [12:43:49]MH_I2C_Read... [12:43:49]Read from MH i2c: E2 0E 00 86 4C 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 D1 [12:43:49]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [12:43:49]wFMCommunicate OK [12:43:49]SAM_PROTO_GetShiftState done [12:43:49]FM_GetShiftState done [12:43:49]opened in 1726359809 [12:43:49]opened+sec_in_day 1726446209 [12:43:49]quantity*price = 18500 [12:43:49]sum+1 = 18501 [12:43:49]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 235.00 НСП 1% : 2.08 НДС 12% : 24.96 Наличными: 0.00 Безнал.: 235.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 49 15.09.2024 12:43 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92601 ФПД: 186173481920239 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T124358&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92601&fm=186173481920239&tin=02508201610067®Number=0000000000091423&sum=23500 0 [12:43:51]StoreToDocumentArchive [12:43:51]shift 507 fd 92601 [12:43:51]save to /storage/0507/doc_00092601 [12:43:51]save last doc name /storage/0507/doc_00092601 to /storage/kkm_last_doc_name [12:43:51]save OK [12:43:51]Clear old archive folders... [12:43:51]ProcessDocumentItem done err = 0, tmpTLVsize=377 [12:43:51]tlvbuf is 01053470 [12:43:51]SAM_PROTO_ClearQueue [12:43:51]wFMCommunicate request_size=4 [12:43:51]MH_SAM_APDU [12:43:51]CAPDU: 80 09 00 00 [12:43:51]Write to MH i2c: E2 08 00 93 4C 80 09 00 00 00 00 00 00 51 [12:43:51]Write i2c OK [12:43:51]MH_I2C_Read... [12:43:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:51]Read from MH i2c: E2 [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: E2 03 00 [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: E2 03 00 93 4C 00 90 00 53 [12:43:51]RAPDU: 90 00 [12:43:51]wFMCommunicate OK [12:43:51]SAM_PROTO_ClearQueue done [12:43:51]KKMCreateOFDPacket [12:43:51]OFDProtocolAddRootSTLVToBuf [12:43:51]FM_MakeSignedData [12:43:51]FM_MakeSignedData [12:43:51]SAM_PROTO_SignData [12:43:51]wFMCommunicate request_size=4 [12:43:51]MH_SAM_APDU [12:43:51]CAPDU: 80 0D 01 02 [12:43:51]Write to MH i2c: E2 08 00 94 4C 80 0D 01 02 00 00 00 00 59 [12:43:51]Write i2c OK [12:43:51]MH_I2C_Read... [12:43:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:51]Read from MH i2c: E2 [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: E2 03 00 [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: E2 03 00 94 4C 00 90 00 54 [12:43:51]RAPDU: 90 00 [12:43:51]wFMCommunicate OK [12:43:51]wFMCommunicate request_size=255 [12:43:51]MH_SAM_APDU [12:43:51]CAPDU: 80 0D 02 02 FA 03 00 79 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 00 00 00 00 00 EE [12:43:51]Write to MH i2c: E2 02 01 95 4C 80 0D 02 02 FA 00 03 00 79 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 00 00 00 00 00 EE 00 00 1A [12:43:51]Write i2c OK [12:43:51]MH_I2C_Read... [12:43:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:51]Read from MH i2c: E2 [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: E2 03 00 [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: E2 03 00 95 4C 00 90 00 55 [12:43:51]RAPDU: 90 00 [12:43:51]wFMCommunicate OK [12:43:51]wFMCommunicate request_size=136 [12:43:51]MH_SAM_APDU [12:43:51]CAPDU: 80 0D 02 02 83 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 5B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 8E D6 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B9 69 01 00 35 04 06 00 A9 52 E4 41 A6 EF [12:43:51]Write to MH i2c: E2 8B 00 96 4C 80 0D 02 02 83 00 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 5B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 8E D6 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B9 69 01 00 35 04 06 00 A9 52 E4 41 A6 EF 00 00 44 [12:43:51]Write i2c OK [12:43:51]MH_I2C_Read... [12:43:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:51]Read from MH i2c: E2 [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: E2 03 00 [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: E2 03 00 96 4C 00 90 00 56 [12:43:51]RAPDU: 90 00 [12:43:51]wFMCommunicate OK [12:43:51]wFMCommunicate request_size=4 [12:43:51]MH_SAM_APDU [12:43:51]CAPDU: 80 0D 03 02 [12:43:51]Write to MH i2c: E2 08 00 97 4C 80 0D 03 02 00 00 00 00 5E [12:43:51]Write i2c OK [12:43:51]MH_I2C_Read... [12:43:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:51]Read from MH i2c: E2 [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: E2 0B 00 [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: E2 0B 00 97 4C 00 B7 9B A4 77 20 BB 67 A5 90 00 B3 [12:43:51]RAPDU: B7 9B A4 77 20 BB 67 A5 90 00 [12:43:51]wFMCommunicate OK [12:43:51]SAM_PROTO_SignData done [12:43:51]FM_MakeSignedData done [12:43:51]CreateOFDProtocolMessage [12:43:51]wFMCommunicate request_size=4 [12:43:51]MH_SAM_APDU [12:43:51]CAPDU: 80 11 00 00 [12:43:51]Write to MH i2c: E2 08 00 98 4C 80 11 00 00 00 00 00 00 5E [12:43:51]Write i2c OK [12:43:51]MH_I2C_Read... [12:43:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:51]Read from MH i2c: E2 [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: E2 17 00 [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: E2 17 00 98 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B5 [12:43:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:43:51]wFMCommunicate OK [12:43:51]CreateOFDProtocolMessage done [12:43:51]OFDSenderStorePacket 92601 [12:43:51]StoreOFDPacket docnum=92601 [12:43:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 8D 01 00 00 F2 E9 85 01 DF 0A 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 5B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 8E D6 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B9 69 01 00 35 04 06 00 A9 52 E4 41 A6 EF B7 9B A4 77 20 BB 67 A5 [12:43:51]CheckFolder [12:43:51]dirname=/storage/ofd_packets [12:43:51]CheckFolder done [12:43:51]ProducePacketName [12:43:51]name=ofd_packets/00092601 [12:43:51]NVStorageSaveData ofd_packets/00092601 [12:43:51]File name is /storage/ofd_packets/00092601 [12:43:51]Write 427 bytes [12:43:51]NVStorageSaveData done [12:43:51]OFDSenderStorePacket done [12:43:51]KKMCreateOFDPacket done [12:43:51]NVStorageSaveData kkm_last_timestamp [12:43:51]File name is /storage/kkm_last_timestamp [12:43:51]Write 4 bytes [12:43:51]NVStorageSaveData done [12:43:51]ExternCall_PrintAddStr [12:43:52]wPrintStart [12:43:52]Write to MH i2c: 01 00 00 99 4C E5 [12:43:52]OFD Sender: Processing packet 92601 [packets to send 63, broken 62] [12:43:52]ProducePacketName [12:43:52]name=ofd_packets/00092601 [12:43:52]Write i2c OK [12:43:52]MH_I2C_Read... [12:43:52]OFD Sender: To server: pG, [12:43:52]CommunicateWithHost lk.salyk.kg:30040 [12:43:52]ConnectInit lk.salyk.kg [12:43:52]Read from MH i2c: 01 [12:43:52]MH_I2C_Read... [12:43:52]Read from MH i2c: 01 07 00 [12:43:52]MH_I2C_Read... [12:43:52]Read from MH i2c: 01 07 00 99 4C 00 00 00 00 00 FF 0F FA [12:43:52]RasterBufferAndPrint [12:43:52]line Счет N : (3)127495 [12:43:52]line ИНН: 02508201610067 [12:43:52]line Контрольно-Кассовый Чек [12:43:52]line ПРОДАЖА [12:43:52]line Товар: 90162602 [12:43:52]line Энерг напиток Red bull 0,25л [12:43:52]line 1.000 * 185.00 [12:43:52]line = 185.00 [12:43:52]line НДС 12% НСП 1% [12:43:52]line > о реализуемом товаре [12:43:52]line Товар: 4700000160358 [12:43:52]line Вода Легенда 1л [12:43:52]line 1.000 * 50.00 [12:43:52]line = 50.00 [12:43:52]line НДС 12% НСП 1% [12:43:52]line > о реализуемом товаре [12:43:52]line ИТОГО: 235.00 [12:43:52]line НСП 1% : 2.08 [12:43:52]line НДС 12% : 24.96 [12:43:52]line Наличными: 0.00 [12:43:52]line Безнал.: 235.00 [12:43:52]line Место: АЗС № 5 "Партнер Нефть" [12:43:52]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:43:52]line СНО: Общий режим [12:43:52]line Чек 49 15.09.2024 12:43 [12:43:52]line Смена: 507 ФФД: 1.0 [12:43:52]line ЗНМ: 03000000022 [12:43:52]line РНМ: 0000000000091423 [12:43:52]line Версия ККМ: 001 [12:43:52]line Платежная система: Бакай Банк [12:43:52]line ФМ: 0000000000874692 [12:43:52]line ФД: 92601 [12:43:52]line ФПД: 186173481920239 [12:43:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T124358&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92601&fm=186173481920239&tin=02508201610067®Number=0000000000091423&sum=23500 [12:43:52]line 0 [12:43:52]written 0, free lines is 4095 [12:43:52]Connected sock=10 [12:43:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 8D 01 00 00 F2 E9 85 01 DF 0A 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 5B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 8E D6 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B9 69 01 00 35 04 06 00 A9 52 E4 41 A6 EF B7 9B A4 77 20 BB 67 A5 [12:43:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 FB FE 47 00 40 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B9 69 01 00 F4 03 04 00 06 7F E6 66 B6 04 01 00 00 CA B6 88 89 0D E3 86 41 [12:43:52]CommunicateWithHost err = 0 [12:43:52]CheckOFDResponse [12:43:52]1017 (14) - 77093643461234 [12:43:52]1041 (16) - 0000000000874692 [12:43:52]1040 (4) - 92601 [12:43:52]1012 (4) - 15.09.2024 06:30 [12:43:52]1206 (1) - 0 [12:43:52]OFD Sender: Remove packet 92601 [12:43:52]ProducePacketName [12:43:52]name=ofd_packets/00092601 [12:43:52]NVStorageDeleteData [12:43:52]Write to MH i2c: 01 00 00 C9 4C 15 [12:43:52]Write i2c OK [12:43:52]MH_I2C_Read... [12:43:52]Read from MH i2c: 01 [12:43:52]MH_I2C_Read... [12:43:52]Read from MH i2c: 01 07 00 [12:43:52]MH_I2C_Read... [12:43:52]Read from MH i2c: 01 07 00 C9 4C 00 00 00 00 00 C7 0C EF [12:43:52]RasterBufferAndPrint [12:43:52]line [12:43:52]line [12:43:52]line [12:43:52]line [12:43:52]line [12:43:52]written 0, free lines is 3277 [12:43:52]MH_Cut [12:43:52]Write to MH i2c: D1 01 00 D0 4C 01 EE [12:43:52]Write i2c OK [12:43:52]MH_I2C_Read... [12:43:52]Read from MH i2c: D1 [12:43:52]MH_I2C_Read... [12:43:52]Read from MH i2c: D1 01 00 [12:43:52]MH_I2C_Read... [12:43:52]Read from MH i2c: D1 01 00 D0 4C 00 ED [12:43:52]Write to MH i2c: 01 00 00 D1 4C 1D [12:43:52]Write i2c OK [12:43:52]MH_I2C_Read... [12:43:52]OFD Sender: No OFD packet to send [12:43:53]*** Cut start [12:43:53]*** Purtial cut [12:43:53]*** Stage 1: CUTSNS_PIN = 1 [12:43:55]Read from MH i2c: 01 [12:43:55]MH_I2C_Read... [12:43:55]*** Stop cut motor [12:43:55]*** Cut end [12:43:55]Read from MH i2c: 01 07 00 [12:43:55]MH_I2C_Read... [12:43:55]Read from MH i2c: 01 07 00 D1 4C 00 00 00 00 00 FF 0F 32 [12:43:55]process_action close_receipt done [12:43:55]requested_data is exist [12:43:55]produce_requested_data [12:43:55]requested_item fm.sn is exist - process it [12:43:55]wFMCommunicate request_size=4 [12:43:55]MH_SAM_APDU [12:43:55]CAPDU: 80 11 00 00 [12:43:55]Write to MH i2c: E2 08 00 D2 4C 80 11 00 00 00 00 00 00 98 [12:43:55]Write i2c OK [12:43:55]MH_I2C_Read... [12:43:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:55]Read from MH i2c: E2 [12:43:55]MH_I2C_Read... [12:43:55]Read from MH i2c: E2 17 00 [12:43:55]MH_I2C_Read... [12:43:55]Read from MH i2c: E2 17 00 D2 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 EF [12:43:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:43:55]wFMCommunicate OK [12:43:55]requested_item fd.num is exist - process it [12:43:55]SAM_PROTO_GetFieldsCounters [12:43:55]wFMCommunicate request_size=4 [12:43:55]MH_SAM_APDU [12:43:55]CAPDU: 80 13 00 00 [12:43:55]Write to MH i2c: E2 08 00 D3 4C 80 13 00 00 00 00 00 00 9B [12:43:55]Write i2c OK [12:43:55]MH_I2C_Read... [12:43:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:55]Read from MH i2c: E2 [12:43:55]MH_I2C_Read... [12:43:55]Read from MH i2c: E2 62 00 [12:43:55]MH_I2C_Read... [12:43:55]Read from MH i2c: E2 62 00 D3 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B9 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [12:43:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B9 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:43:55]wFMCommunicate OK [12:43:55]SAM_PROTO_GetFieldsCounters done [12:43:55]requested_item shift.num is exist - process it [12:43:55]requested_item shift.opened is exist - process it [12:43:55]req_shift_opened [12:43:55]FM_GetShiftState [12:43:55]SAM_PROTO_GetShiftState [12:43:55]wFMCommunicate request_size=4 [12:43:55]MH_SAM_APDU [12:43:55]CAPDU: 80 13 01 00 [12:43:55]Write to MH i2c: E2 08 00 D4 4C 80 13 01 00 00 00 00 00 9D [12:43:55]Write i2c OK [12:43:55]MH_I2C_Read... [12:43:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:55]Read from MH i2c: E2 [12:43:55]MH_I2C_Read... [12:43:55]Read from MH i2c: E2 0E 00 [12:43:55]MH_I2C_Read... [12:43:55]Read from MH i2c: E2 0E 00 D4 4C 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 1F [12:43:55]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [12:43:55]wFMCommunicate OK [12:43:55]SAM_PROTO_GetShiftState done [12:43:55]FM_GetShiftState done [12:43:55]req_shift_opened done [12:43:55]requested_item shift.open_date is exist - process it [12:43:55]req_shift_open_date [12:43:55]req_shift_open_date done [12:43:55]produce_requested_data done [12:43:55]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92601,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [12:43:55]process_action_free close_receipt [12:43:55]json_value_free [12:43:55]json_value_free done [12:43:55]process_json_proto returns [12:43:55]Send response to host [12:43:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92601,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [12:43:55]free response buf [12:43:55]execute_script done [12:43:55]execute_script returns [12:43:55]free content buf [12:43:55]Sock 9.Close socket [12:43:55]Sock 9.Thread stoped [12:43:57]OFD Sender: No OFD packet to send [12:44:02]OFD Sender: No OFD packet to send [12:44:07]OFD Sender: No OFD packet to send [12:44:12]OFD Sender: No OFD packet to send [12:44:16]accept exits with 8 [12:44:16]New connection [12:44:16]New thread 3066658148 created [12:44:16]Thread 3066801508 joined [12:44:16]Waiting for new connection... [12:44:16] Sock 8.Parse request [12:44:16]Sock 8.Check first char [12:44:16]Sock 8.First char is OK [12:44:16]request: POST /json_proto HTTP/1.0 [12:44:16]Method: POST [12:44:16]URL: /json_proto [12:44:16]Method is POST - this is cgi request [12:44:16]url: /json_proto [12:44:16]query_string will be loaded in cgi processing [12:44:16]execute_cgi json_proto POST (null) [12:44:16]execute_cgi path=json_proto method=POST [12:44:16]POST find Content-Length [12:44:16]Host: 172.17.57.71:8080 [12:44:16]Content-Length: 677 [12:44:16]Content-Type: application/json [12:44:16] [12:44:16]POST finish read [12:44:16]Found Content-Length = 677 [12:44:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:16]execute_script... [12:44:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:16]POST & json_proto [12:44:16]process_json_proto [12:44:16]json parsed OK: [12:44:16]protocol is kg_v1.0 [12:44:16]action value=close_receipt [12:44:16]process_action close_receipt [12:44:16]cmd_close_receipt [12:44:16]MH_GetDate [12:44:16]Write to MH i2c: F0 00 00 D5 4C 10 [12:44:16]Write i2c OK [12:44:16]MH_I2C_Read... [12:44:16]Read from MH i2c: F0 [12:44:16]MH_I2C_Read... [12:44:16]Read from MH i2c: F0 09 00 [12:44:16]MH_I2C_Read... [12:44:16]Read from MH i2c: F0 09 00 D5 4C 00 A9 D6 E6 66 33 3A A4 66 5B [12:44:16]GetLastDocTimeStamp 1726404238 [12:44:16]current date 1726404265 [12:44:16]FM_GetShiftState [12:44:16]SAM_PROTO_GetShiftState [12:44:16]wFMCommunicate request_size=4 [12:44:16]MH_SAM_APDU [12:44:16]CAPDU: 80 13 01 00 [12:44:16]Write to MH i2c: E2 08 00 D6 4C 80 13 01 00 00 00 00 00 9F [12:44:16]Write i2c OK [12:44:16]MH_I2C_Read... [12:44:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:16]Read from MH i2c: E2 [12:44:16]MH_I2C_Read... [12:44:16]Read from MH i2c: E2 0E 00 [12:44:16]MH_I2C_Read... [12:44:16]Read from MH i2c: E2 0E 00 D6 4C 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 21 [12:44:16]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [12:44:16]wFMCommunicate OK [12:44:16]SAM_PROTO_GetShiftState done [12:44:16]FM_GetShiftState done [12:44:16]opened in 1726359809 [12:44:16]opened+sec_in_day 1726446209 [12:44:16]quantity*price = 20003 [12:44:16]sum+1 = 20004 [12:44:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 50 15.09.2024 12:44 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92602 ФПД: 100260863482445 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T124425&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92602&fm=100260863482445&tin=02508201610067®Number=0000000000091423&sum=20000 [12:44:17]StoreToDocumentArchive [12:44:17]shift 507 fd 92602 [12:44:17]save to /storage/0507/doc_00092602 [12:44:17]save last doc name /storage/0507/doc_00092602 to /storage/kkm_last_doc_name [12:44:17]save OK [12:44:17]Clear old archive folders... [12:44:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:44:17]tlvbuf is 00FD6130 [12:44:17]SAM_PROTO_ClearQueue [12:44:17]wFMCommunicate request_size=4 [12:44:17]MH_SAM_APDU [12:44:17]CAPDU: 80 09 00 00 [12:44:17]Write to MH i2c: E2 08 00 E3 4C 80 09 00 00 00 00 00 00 A1 [12:44:17]Write i2c OK [12:44:17]MH_I2C_Read... [12:44:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:44:18]Read from MH i2c: E2 [12:44:18]MH_I2C_Read... [12:44:18]Read from MH i2c: E2 03 00 [12:44:18]MH_I2C_Read... [12:44:18]Read from MH i2c: E2 03 00 E3 4C 00 90 00 A3 [12:44:18]RAPDU: 90 00 [12:44:18]wFMCommunicate OK [12:44:18]SAM_PROTO_ClearQueue done [12:44:18]KKMCreateOFDPacket [12:44:18]OFDProtocolAddRootSTLVToBuf [12:44:18]FM_MakeSignedData [12:44:18]FM_MakeSignedData [12:44:18]SAM_PROTO_SignData [12:44:18]wFMCommunicate request_size=4 [12:44:18]MH_SAM_APDU [12:44:18]CAPDU: 80 0D 01 02 [12:44:18]Write to MH i2c: E2 08 00 E4 4C 80 0D 01 02 00 00 00 00 A9 [12:44:18]Write i2c OK [12:44:18]MH_I2C_Read... [12:44:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:44:18]Read from MH i2c: E2 [12:44:18]MH_I2C_Read... [12:44:18]Read from MH i2c: E2 03 00 [12:44:18]MH_I2C_Read... [12:44:18]Read from MH i2c: E2 03 00 E4 4C 00 90 00 A4 [12:44:18]RAPDU: 90 00 [12:44:18]wFMCommunicate OK [12:44:18]wFMCommunicate request_size=255 [12:44:18]MH_SAM_APDU [12:44:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 A9 D6 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BA 69 01 00 35 04 06 00 5B [12:44:18]Write to MH i2c: E2 02 01 E5 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 A9 D6 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BA 69 01 00 35 04 06 00 5B 00 00 70 [12:44:18]Write i2c OK [12:44:18]MH_I2C_Read... [12:44:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:18]Read from MH i2c: E2 [12:44:18]MH_I2C_Read... [12:44:18]Read from MH i2c: E2 03 00 [12:44:18]MH_I2C_Read... [12:44:18]Read from MH i2c: E2 03 00 E5 4C 00 90 00 A5 [12:44:18]RAPDU: 90 00 [12:44:18]wFMCommunicate OK [12:44:18]wFMCommunicate request_size=10 [12:44:18]MH_SAM_APDU [12:44:18]CAPDU: 80 0D 02 02 05 2F CD 27 1A 4D [12:44:18]Write to MH i2c: E2 0D 00 E6 4C 80 0D 02 02 05 00 2F CD 27 1A 4D 00 00 40 [12:44:18]Write i2c OK [12:44:18]MH_I2C_Read... [12:44:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:18]Read from MH i2c: E2 [12:44:18]MH_I2C_Read... [12:44:18]Read from MH i2c: E2 03 00 [12:44:18]MH_I2C_Read... [12:44:18]Read from MH i2c: E2 03 00 E6 4C 00 90 00 A6 [12:44:18]RAPDU: 90 00 [12:44:18]wFMCommunicate OK [12:44:18]wFMCommunicate request_size=4 [12:44:18]MH_SAM_APDU [12:44:18]CAPDU: 80 0D 03 02 [12:44:18]Write to MH i2c: E2 08 00 E7 4C 80 0D 03 02 00 00 00 00 AE [12:44:18]Write i2c OK [12:44:18]MH_I2C_Read... [12:44:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:44:18]Read from MH i2c: E2 [12:44:18]MH_I2C_Read... [12:44:18]Read from MH i2c: E2 0B 00 [12:44:18]MH_I2C_Read... [12:44:18]Read from MH i2c: E2 0B 00 E7 4C 00 CD E0 01 8F 7B 65 C6 86 90 00 18 [12:44:18]RAPDU: CD E0 01 8F 7B 65 C6 86 90 00 [12:44:18]wFMCommunicate OK [12:44:18]SAM_PROTO_SignData done [12:44:18]FM_MakeSignedData done [12:44:18]CreateOFDProtocolMessage [12:44:18]wFMCommunicate request_size=4 [12:44:18]MH_SAM_APDU [12:44:18]CAPDU: 80 11 00 00 [12:44:18]Write to MH i2c: E2 08 00 E8 4C 80 11 00 00 00 00 00 00 AE [12:44:18]Write i2c OK [12:44:18]MH_I2C_Read... [12:44:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:18]Read from MH i2c: E2 [12:44:18]MH_I2C_Read... [12:44:18]Read from MH i2c: E2 17 00 [12:44:18]MH_I2C_Read... [12:44:18]Read from MH i2c: E2 17 00 E8 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 05 [12:44:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:44:18]wFMCommunicate OK [12:44:18]CreateOFDProtocolMessage done [12:44:18]OFDSenderStorePacket 92602 [12:44:18]StoreOFDPacket docnum=92602 [12:44:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 64 FB 07 01 6E CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 A9 D6 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BA 69 01 00 35 04 06 00 5B 2F CD 27 1A 4D CD E0 01 8F 7B 65 C6 86 [12:44:18]CheckFolder [12:44:18]dirname=/storage/ofd_packets [12:44:18]CheckFolder done [12:44:18]ProducePacketName [12:44:18]name=ofd_packets/00092602 [12:44:18]NVStorageSaveData ofd_packets/00092602 [12:44:18]File name is /storage/ofd_packets/00092602 [12:44:18]Write 301 bytes [12:44:18]NVStorageSaveData done [12:44:18]OFDSenderStorePacket done [12:44:18]KKMCreateOFDPacket done [12:44:18]NVStorageSaveData kkm_last_timestamp [12:44:18]File name is /storage/kkm_last_timestamp [12:44:18]Write 4 bytes [12:44:18]NVStorageSaveData done [12:44:18]ExternCall_PrintAddStr [12:44:18]wPrintStart [12:44:18]Write to MH i2c: 01 00 00 E9 4C 35 [12:44:18]Write i2c OK [12:44:18]MH_I2C_Read... [12:44:18]Read from MH i2c: 01 [12:44:18]MH_I2C_Read... [12:44:18]Read from MH i2c: 01 07 00 [12:44:18]MH_I2C_Read... [12:44:18]Read from MH i2c: 01 07 00 E9 4C 00 00 00 00 00 FF 0F 4A [12:44:18]RasterBufferAndPrint [12:44:18]line Счет N : (1)648376 [12:44:18]line ИНН: 02508201610067 [12:44:18]line Контрольно-Кассовый Чек [12:44:18]line ПРОДАЖА [12:44:18]line ТРК (МРК, ГНК) : 23 [12:44:18]line Товар: 2710124130 [12:44:18]line Аи-92-К-5 [12:44:18]line 2.990 * 66.90 [12:44:18]line = 200.03 [12:44:18]line НДС 12% НСП 1% [12:44:18]line > о реализуемом товаре [12:44:18]line ОКРУГЛЕНИЕ: -0.03 [12:44:18]line ИТОГО: 200.00 [12:44:18]line Внесено: 200.00 [12:44:18]line СДАЧА: 0.00 [12:44:18]line НСП 1% : 1.77 [12:44:18]line НДС 12% : 21.24 [12:44:18]line Наличными: 200.00 [12:44:18]line Безнал.: 0.00 [12:44:18]line Место: АЗС № 5 "Партнер Нефть" [12:44:18]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:44:18]line СНО: Общий режим [12:44:18]line Чек 50 15.09.2024 12:44 [12:44:18]line Смена: 507 ФФД: 1.0 [12:44:18]line ЗНМ: 03000000022 [12:44:18]line РНМ: 0000000000091423 [12:44:18]line Версия ККМ: 001 [12:44:18]line ФМ: 0000000000874692 [12:44:18]line ФД: 92602 [12:44:18]line ФПД: 100260863482445 [12:44:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T124425&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92602&fm=100260863482445&tin=02508201610067®Number=0000000000091423&sum=20000 [12:44:18]written 0, free lines is 4095 [12:44:18]OFD Sender: Processing packet 92602 [packets to send 63, broken 62] [12:44:18]ProducePacketName [12:44:18]name=ofd_packets/00092602 [12:44:18]OFD Sender: To server: pG, [12:44:18]CommunicateWithHost lk.salyk.kg:30040 [12:44:18]ConnectInit lk.salyk.kg [12:44:18]Connected sock=10 [12:44:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 64 FB 07 01 6E CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 A9 D6 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BA 69 01 00 35 04 06 00 5B 2F CD 27 1A 4D CD E0 01 8F 7B 65 C6 86 [12:44:19]Write to MH i2c: 01 00 00 14 4D 61 [12:44:19]Write i2c OK [12:44:19]MH_I2C_Read... [12:44:19]Read from MH i2c: 01 [12:44:19]MH_I2C_Read... [12:44:19]Read from MH i2c: 01 07 00 [12:44:19]MH_I2C_Read... [12:44:19]Read from MH i2c: 01 07 00 14 4D 00 00 00 00 00 FB 0C 6F [12:44:19]RasterBufferAndPrint [12:44:19]line [12:44:19]line [12:44:19]line [12:44:19]line [12:44:19]line [12:44:19]written 0, free lines is 3331 [12:44:19]MH_Cut [12:44:19]Write to MH i2c: D1 01 00 1B 4D 01 3A [12:44:19]Write i2c OK [12:44:19]MH_I2C_Read... [12:44:19]Read from MH i2c: D1 [12:44:19]MH_I2C_Read... [12:44:19]Read from MH i2c: D1 01 00 [12:44:19]MH_I2C_Read... [12:44:19]Read from MH i2c: D1 01 00 1B 4D 00 39 [12:44:19]Write to MH i2c: 01 00 00 1C 4D 69 [12:44:19]Write i2c OK [12:44:19]MH_I2C_Read... [12:44:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 3B C1 47 00 DD 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BA 69 01 00 F4 03 04 00 21 7F E6 66 B6 04 01 00 00 F8 F9 C4 FA CE 90 80 9F [12:44:19]CommunicateWithHost err = 0 [12:44:19]CheckOFDResponse [12:44:19]1017 (14) - 77093643461234 [12:44:19]1041 (16) - 0000000000874692 [12:44:19]1040 (4) - 92602 [12:44:19]1012 (4) - 15.09.2024 06:30 [12:44:19]1206 (1) - 0 [12:44:19]OFD Sender: Remove packet 92602 [12:44:19]ProducePacketName [12:44:19]name=ofd_packets/00092602 [12:44:19]NVStorageDeleteData [12:44:19]OFD Sender: No OFD packet to send [12:44:19]*** Cut start [12:44:19]*** Purtial cut [12:44:19]*** Stage 1: CUTSNS_PIN = 1 [12:44:21]Read from MH i2c: 01 [12:44:21]MH_I2C_Read... [12:44:21]*** Stop cut motor [12:44:21]*** Cut end [12:44:21]Read from MH i2c: 01 07 00 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: 01 07 00 1C 4D 00 00 00 00 00 FF 0F 7E [12:44:21]process_action close_receipt done [12:44:21]requested_data is exist [12:44:21]produce_requested_data [12:44:21]requested_item fm.sn is exist - process it [12:44:21]wFMCommunicate request_size=4 [12:44:21]MH_SAM_APDU [12:44:21]CAPDU: 80 11 00 00 [12:44:21]Write to MH i2c: E2 08 00 1D 4D 80 11 00 00 00 00 00 00 E4 [12:44:21]Write i2c OK [12:44:21]MH_I2C_Read... [12:44:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:21]Read from MH i2c: E2 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 17 00 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 17 00 1D 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 3B [12:44:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:44:21]wFMCommunicate OK [12:44:21]requested_item fd.num is exist - process it [12:44:21]SAM_PROTO_GetFieldsCounters [12:44:21]wFMCommunicate request_size=4 [12:44:21]MH_SAM_APDU [12:44:21]CAPDU: 80 13 00 00 [12:44:21]Write to MH i2c: E2 08 00 1E 4D 80 13 00 00 00 00 00 00 E7 [12:44:21]Write i2c OK [12:44:21]MH_I2C_Read... [12:44:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:44:21]Read from MH i2c: E2 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 62 00 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 62 00 1E 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BA 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [12:44:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BA 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:44:21]wFMCommunicate OK [12:44:21]SAM_PROTO_GetFieldsCounters done [12:44:21]requested_item shift.num is exist - process it [12:44:21]requested_item shift.opened is exist - process it [12:44:21]req_shift_opened [12:44:21]FM_GetShiftState [12:44:21]SAM_PROTO_GetShiftState [12:44:21]wFMCommunicate request_size=4 [12:44:21]MH_SAM_APDU [12:44:21]CAPDU: 80 13 01 00 [12:44:21]Write to MH i2c: E2 08 00 1F 4D 80 13 01 00 00 00 00 00 E9 [12:44:21]Write i2c OK [12:44:21]MH_I2C_Read... [12:44:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:21]Read from MH i2c: E2 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 0E 00 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 0E 00 1F 4D 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 6B [12:44:21]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [12:44:21]wFMCommunicate OK [12:44:21]SAM_PROTO_GetShiftState done [12:44:21]FM_GetShiftState done [12:44:21]req_shift_opened done [12:44:21]requested_item shift.open_date is exist - process it [12:44:21]req_shift_open_date [12:44:21]req_shift_open_date done [12:44:21]produce_requested_data done [12:44:21]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92602,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [12:44:21]process_action_free close_receipt [12:44:21]json_value_free [12:44:21]json_value_free done [12:44:21]process_json_proto returns [12:44:21]Send response to host [12:44:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92602,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [12:44:21]free response buf [12:44:21]execute_script done [12:44:21]execute_script returns [12:44:21]free content buf [12:44:21]Sock 8.Close socket [12:44:21]Sock 8.Thread stoped [12:44:24]OFD Sender: No OFD packet to send [12:44:29]OFD Sender: No OFD packet to send [12:44:34]OFD Sender: No OFD packet to send [12:44:39]OFD Sender: No OFD packet to send [12:44:44]OFD Sender: No OFD packet to send [12:44:49]OFD Sender: No OFD packet to send [12:44:54]OFD Sender: No OFD packet to send [12:44:59]OFD Sender: No OFD packet to send [12:45:04]OFD Sender: No OFD packet to send [12:45:09]OFD Sender: No OFD packet to send [12:45:14]OFD Sender: No OFD packet to send [12:45:19]OFD Sender: No OFD packet to send [12:45:24]OFD Sender: No OFD packet to send [12:45:29]OFD Sender: No OFD packet to send [12:45:34]OFD Sender: No OFD packet to send [12:45:39]OFD Sender: No OFD packet to send [12:45:44]OFD Sender: No OFD packet to send [12:45:49]OFD Sender: No OFD packet to send [12:45:54]OFD Sender: No OFD packet to send [12:45:59]OFD Sender: No OFD packet to send [12:46:04]OFD Sender: No OFD packet to send [12:46:09]OFD Sender: No OFD packet to send [12:46:14]OFD Sender: No OFD packet to send [12:46:19]OFD Sender: No OFD packet to send [12:46:24]OFD Sender: No OFD packet to send [12:46:29]OFD Sender: No OFD packet to send [12:46:34]OFD Sender: No OFD packet to send [12:46:39]OFD Sender: No OFD packet to send [12:46:44]OFD Sender: No OFD packet to send [12:46:49]OFD Sender: No OFD packet to send [12:46:54]OFD Sender: No OFD packet to send [12:46:59]OFD Sender: No OFD packet to send [12:47:04]OFD Sender: No OFD packet to send [12:47:09]OFD Sender: No OFD packet to send [12:47:14]OFD Sender: No OFD packet to send [12:47:19]OFD Sender: No OFD packet to send [12:47:24]OFD Sender: No OFD packet to send [12:47:29]OFD Sender: No OFD packet to send [12:47:34]OFD Sender: No OFD packet to send [12:47:39]OFD Sender: No OFD packet to send [12:47:44]OFD Sender: No OFD packet to send [12:47:49]OFD Sender: No OFD packet to send [12:47:54]OFD Sender: No OFD packet to send [12:47:59]OFD Sender: No OFD packet to send [12:48:04]OFD Sender: No OFD packet to send [12:48:09]OFD Sender: No OFD packet to send [12:48:14]OFD Sender: No OFD packet to send [12:48:19]OFD Sender: No OFD packet to send [12:48:24]OFD Sender: No OFD packet to send [12:48:29]OFD Sender: No OFD packet to send [12:48:34]OFD Sender: No OFD packet to send [12:48:39]OFD Sender: No OFD packet to send [12:48:44]OFD Sender: No OFD packet to send [12:48:49]OFD Sender: No OFD packet to send [12:48:54]OFD Sender: No OFD packet to send [12:48:59]OFD Sender: No OFD packet to send [12:49:04]OFD Sender: No OFD packet to send [12:49:09]OFD Sender: No OFD packet to send [12:49:14]OFD Sender: No OFD packet to send [12:49:19]OFD Sender: No OFD packet to send [12:49:24]OFD Sender: No OFD packet to send [12:49:29]OFD Sender: No OFD packet to send [12:49:34]OFD Sender: No OFD packet to send [12:49:39]OFD Sender: No OFD packet to send [12:49:44]OFD Sender: No OFD packet to send [12:49:49]OFD Sender: No OFD packet to send [12:49:54]OFD Sender: No OFD packet to send [12:49:59]OFD Sender: No OFD packet to send [12:50:04]OFD Sender: No OFD packet to send [12:50:09]OFD Sender: No OFD packet to send [12:50:15]OFD Sender: No OFD packet to send [12:50:20]OFD Sender: No OFD packet to send [12:50:25]OFD Sender: No OFD packet to send [12:50:30]OFD Sender: No OFD packet to send [12:50:35]OFD Sender: No OFD packet to send [12:50:40]OFD Sender: No OFD packet to send [12:50:45]OFD Sender: No OFD packet to send [12:50:50]OFD Sender: No OFD packet to send [12:50:55]OFD Sender: No OFD packet to send [12:51:00]OFD Sender: No OFD packet to send [12:51:05]OFD Sender: No OFD packet to send [12:51:10]OFD Sender: No OFD packet to send [12:51:15]OFD Sender: No OFD packet to send [12:51:20]OFD Sender: No OFD packet to send [12:51:25]OFD Sender: No OFD packet to send [12:51:30]OFD Sender: No OFD packet to send [12:51:35]OFD Sender: No OFD packet to send [12:51:40]OFD Sender: No OFD packet to send [12:51:45]OFD Sender: No OFD packet to send [12:51:50]OFD Sender: No OFD packet to send [12:51:55]OFD Sender: No OFD packet to send [12:52:00]OFD Sender: No OFD packet to send [12:52:05]OFD Sender: No OFD packet to send [12:52:10]OFD Sender: No OFD packet to send [12:52:15]OFD Sender: No OFD packet to send [12:52:20]OFD Sender: No OFD packet to send [12:52:25]OFD Sender: No OFD packet to send [12:52:30]OFD Sender: No OFD packet to send [12:52:34]accept exits with 9 [12:52:34]New connection [12:52:34]New thread 3066801508 created [12:52:34]Thread 3066658148 joined [12:52:34]Waiting for new connection... [12:52:34] Sock 9.Parse request [12:52:34]Sock 9.Check first char [12:52:34]Sock 9.First char is OK [12:52:34]request: POST /json_proto HTTP/1.0 [12:52:34]Method: POST [12:52:34]URL: /json_proto [12:52:34]Method is POST - this is cgi request [12:52:34]url: /json_proto [12:52:34]query_string will be loaded in cgi processing [12:52:34]execute_cgi json_proto POST (null) [12:52:34]execute_cgi path=json_proto method=POST [12:52:34]POST find Content-Length [12:52:34]Host: 172.17.57.71:8080 [12:52:34]Content-Length: 630 [12:52:34]Content-Type: application/json [12:52:34] [12:52:34]POST finish read [12:52:34]Found Content-Length = 630 [12:52:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127497", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:34]execute_script... [12:52:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127497", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:34]POST & json_proto [12:52:34]process_json_proto [12:52:34]json parsed OK: [12:52:34]protocol is kg_v1.0 [12:52:34]action value=close_receipt [12:52:34]process_action close_receipt [12:52:34]cmd_close_receipt [12:52:34]MH_GetDate [12:52:34]Write to MH i2c: F0 00 00 20 4D 5C [12:52:34]Write i2c OK [12:52:34]MH_I2C_Read... [12:52:34]Read from MH i2c: F0 [12:52:34]MH_I2C_Read... [12:52:34]Read from MH i2c: F0 09 00 [12:52:34]MH_I2C_Read... [12:52:34]Read from MH i2c: F0 09 00 20 4D 00 9B D8 E6 66 33 3A A4 66 9B [12:52:34]GetLastDocTimeStamp 1726404265 [12:52:34]current date 1726404763 [12:52:34]FM_GetShiftState [12:52:34]SAM_PROTO_GetShiftState [12:52:34]wFMCommunicate request_size=4 [12:52:34]MH_SAM_APDU [12:52:34]CAPDU: 80 13 01 00 [12:52:34]Write to MH i2c: E2 08 00 21 4D 80 13 01 00 00 00 00 00 EB [12:52:34]Write i2c OK [12:52:34]MH_I2C_Read... [12:52:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:34]Read from MH i2c: E2 [12:52:34]MH_I2C_Read... [12:52:34]Read from MH i2c: E2 0E 00 [12:52:34]MH_I2C_Read... [12:52:34]Read from MH i2c: E2 0E 00 21 4D 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 6D [12:52:34]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [12:52:34]wFMCommunicate OK [12:52:34]SAM_PROTO_GetShiftState done [12:52:34]FM_GetShiftState done [12:52:34]opened in 1726359809 [12:52:34]opened+sec_in_day 1726446209 [12:52:34]quantity*price = 5000 [12:52:34]sum+1 = 5001 [12:52:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 51 15.09.2024 12:52 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92603 ФПД: 40136824183601 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T125243&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92603&fm=40136824183601&tin=02508201610067®Number=0000000000091423&sum=5000 0 [12:52:35]StoreToDocumentArchive [12:52:35]shift 507 fd 92603 [12:52:35]save to /storage/0507/doc_00092603 [12:52:35]save last doc name /storage/0507/doc_00092603 to /storage/kkm_last_doc_name [12:52:35]save OK [12:52:35]Clear old archive folders... [12:52:35]ProcessDocumentItem done err = 0, tmpTLVsize=269 [12:52:35]tlvbuf is 00FA7820 [12:52:35]SAM_PROTO_ClearQueue [12:52:35]wFMCommunicate request_size=4 [12:52:35]MH_SAM_APDU [12:52:35]CAPDU: 80 09 00 00 [12:52:35]Write to MH i2c: E2 08 00 2E 4D 80 09 00 00 00 00 00 00 ED [12:52:35]Write i2c OK [12:52:35]MH_I2C_Read... [12:52:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:36]Read from MH i2c: E2 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: E2 03 00 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: E2 03 00 2E 4D 00 90 00 EF [12:52:36]RAPDU: 90 00 [12:52:36]wFMCommunicate OK [12:52:36]SAM_PROTO_ClearQueue done [12:52:36]KKMCreateOFDPacket [12:52:36]OFDProtocolAddRootSTLVToBuf [12:52:36]FM_MakeSignedData [12:52:36]FM_MakeSignedData [12:52:36]SAM_PROTO_SignData [12:52:36]wFMCommunicate request_size=4 [12:52:36]MH_SAM_APDU [12:52:36]CAPDU: 80 0D 01 02 [12:52:36]Write to MH i2c: E2 08 00 2F 4D 80 0D 01 02 00 00 00 00 F5 [12:52:36]Write i2c OK [12:52:36]MH_I2C_Read... [12:52:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:36]Read from MH i2c: E2 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: E2 03 00 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: E2 03 00 2F 4D 00 90 00 F0 [12:52:36]RAPDU: 90 00 [12:52:36]wFMCommunicate OK [12:52:36]wFMCommunicate request_size=255 [12:52:36]MH_SAM_APDU [12:52:36]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 9B D8 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [12:52:36]Write to MH i2c: E2 02 01 30 4D 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 9B D8 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 F4 [12:52:36]Write i2c OK [12:52:36]MH_I2C_Read... [12:52:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:36]Read from MH i2c: E2 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: E2 03 00 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: E2 03 00 30 4D 00 90 00 F1 [12:52:36]RAPDU: 90 00 [12:52:36]wFMCommunicate OK [12:52:36]wFMCommunicate request_size=28 [12:52:36]MH_SAM_APDU [12:52:36]CAPDU: 80 0D 02 02 17 37 34 36 39 32 10 04 04 00 BB 69 01 00 35 04 06 00 24 81 15 25 DB 31 [12:52:36]Write to MH i2c: E2 1F 00 31 4D 80 0D 02 02 17 00 37 34 36 39 32 10 04 04 00 BB 69 01 00 35 04 06 00 24 81 15 25 DB 31 00 00 99 [12:52:36]Write i2c OK [12:52:36]MH_I2C_Read... [12:52:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:36]Read from MH i2c: E2 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: E2 03 00 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: E2 03 00 31 4D 00 90 00 F2 [12:52:36]RAPDU: 90 00 [12:52:36]wFMCommunicate OK [12:52:36]wFMCommunicate request_size=4 [12:52:36]MH_SAM_APDU [12:52:36]CAPDU: 80 0D 03 02 [12:52:36]Write to MH i2c: E2 08 00 32 4D 80 0D 03 02 00 00 00 00 FA [12:52:36]Write i2c OK [12:52:36]MH_I2C_Read... [12:52:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:36]Read from MH i2c: E2 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: E2 0B 00 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: E2 0B 00 32 4D 00 A0 48 93 68 D6 0F F8 A8 90 00 63 [12:52:36]RAPDU: A0 48 93 68 D6 0F F8 A8 90 00 [12:52:36]wFMCommunicate OK [12:52:36]SAM_PROTO_SignData done [12:52:36]FM_MakeSignedData done [12:52:36]CreateOFDProtocolMessage [12:52:36]wFMCommunicate request_size=4 [12:52:36]MH_SAM_APDU [12:52:36]CAPDU: 80 11 00 00 [12:52:36]Write to MH i2c: E2 08 00 33 4D 80 11 00 00 00 00 00 00 FA [12:52:36]Write i2c OK [12:52:36]MH_I2C_Read... [12:52:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:36]Read from MH i2c: E2 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: E2 17 00 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: E2 17 00 33 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 51 [12:52:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:52:36]wFMCommunicate OK [12:52:36]CreateOFDProtocolMessage done [12:52:36]OFDSenderStorePacket 92603 [12:52:36]StoreOFDPacket docnum=92603 [12:52:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 21 01 00 00 87 8D 19 01 A5 DF 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 9B D8 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BB 69 01 00 35 04 06 00 24 81 15 25 DB 31 A0 48 93 68 D6 0F F8 A8 [12:52:36]CheckFolder [12:52:36]dirname=/storage/ofd_packets [12:52:36]CheckFolder done [12:52:36]ProducePacketName [12:52:36]name=ofd_packets/00092603 [12:52:36]NVStorageSaveData ofd_packets/00092603 [12:52:36]File name is /storage/ofd_packets/00092603 [12:52:36]Write 319 bytes [12:52:36]NVStorageSaveData done [12:52:36]OFDSenderStorePacket done [12:52:36]KKMCreateOFDPacket done [12:52:36]NVStorageSaveData kkm_last_timestamp [12:52:36]File name is /storage/kkm_last_timestamp [12:52:36]Write 4 bytes [12:52:36]NVStorageSaveData done [12:52:36]ExternCall_PrintAddStr [12:52:36]wPrintStart [12:52:36]Write to MH i2c: 01 00 00 34 4D 81 [12:52:36]Write i2c OK [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: 01 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: 01 07 00 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: 01 07 00 34 4D 00 00 00 00 00 FF 0F 96 [12:52:36]RasterBufferAndPrint [12:52:36]line Счет N : (3)127497 [12:52:36]line ИНН: 02508201610067 [12:52:36]line Контрольно-Кассовый Чек [12:52:36]line ПРОДАЖА [12:52:36]line Товар: 4700000160358 [12:52:36]line Вода Легенда 1л [12:52:36]line 1.000 * 50.00 [12:52:36]line = 50.00 [12:52:36]line НДС 12% НСП 1% [12:52:36]line > о реализуемом товаре [12:52:36]line ИТОГО: 50.00 [12:52:36]line НСП 1% : 0.44 [12:52:36]line НДС 12% : 5.31 [12:52:36]line Наличными: 50.00 [12:52:36]line Безнал.: 0.00 [12:52:36]line Место: АЗС № 5 "Партнер Нефть" [12:52:36]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:52:36]line СНО: Общий режим [12:52:36]line Чек 51 15.09.2024 12:52 [12:52:36]line Смена: 507 ФФД: 1.0 [12:52:36]line ЗНМ: 03000000022 [12:52:36]line РНМ: 0000000000091423 [12:52:36]line Версия ККМ: 001 [12:52:36]line ФМ: 0000000000874692 [12:52:36]line ФД: 92603 [12:52:36]line ФПД: 40136824183601 [12:52:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T125243&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92603&fm=40136824183601&tin=02508201610067®Number=0000000000091423&sum=5000 [12:52:36]line 0 [12:52:36]OFD Sender: Processing packet 92603 [packets to send 63, broken 62] [12:52:36]ProducePacketName [12:52:36]name=ofd_packets/00092603 [12:52:36]OFD Sender: To server: pG, [12:52:36]CommunicateWithHost lk.salyk.kg:30040 [12:52:36]ConnectInit lk.salyk.kg [12:52:36]written 0, free lines is 4095 [12:52:36]Connected sock=10 [12:52:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 21 01 00 00 87 8D 19 01 A5 DF 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 9B D8 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BB 69 01 00 35 04 06 00 24 81 15 25 DB 31 A0 48 93 68 D6 0F F8 A8 [12:52:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 E3 34 47 00 8F 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BB 69 01 00 F4 03 04 00 13 81 E6 66 B6 04 01 00 00 47 D3 0B B3 B9 B7 43 E9 [12:52:37]CommunicateWithHost err = 0 [12:52:37]CheckOFDResponse [12:52:37]1017 (14) - 77093643461234 [12:52:37]1041 (16) - 0000000000874692 [12:52:37]1040 (4) - 92603 [12:52:37]1012 (4) - 15.09.2024 06:39 [12:52:37]1206 (1) - 0 [12:52:37]OFD Sender: Remove packet 92603 [12:52:37]ProducePacketName [12:52:37]name=ofd_packets/00092603 [12:52:37]NVStorageDeleteData [12:52:37]Write to MH i2c: 01 00 00 5C 4D A9 [12:52:37]Write i2c OK [12:52:37]MH_I2C_Read... [12:52:37]Read from MH i2c: 01 [12:52:37]MH_I2C_Read... [12:52:37]Read from MH i2c: 01 07 00 [12:52:37]MH_I2C_Read... [12:52:37]Read from MH i2c: 01 07 00 5C 4D 00 00 00 00 00 1A 0D D7 [12:52:37]RasterBufferAndPrint [12:52:37]line [12:52:37]line [12:52:37]line [12:52:37]line [12:52:37]line [12:52:37]written 0, free lines is 3362 [12:52:37]MH_Cut [12:52:37]Write to MH i2c: D1 01 00 63 4D 01 82 [12:52:37]Write i2c OK [12:52:37]MH_I2C_Read... [12:52:37]Read from MH i2c: D1 [12:52:37]MH_I2C_Read... [12:52:37]Read from MH i2c: D1 01 00 [12:52:37]MH_I2C_Read... [12:52:37]Read from MH i2c: D1 01 00 63 4D 00 81 [12:52:37]Write to MH i2c: 01 00 00 64 4D B1 [12:52:37]Write i2c OK [12:52:37]MH_I2C_Read... [12:52:37]OFD Sender: No OFD packet to send [12:52:37]*** Cut start [12:52:37]*** Purtial cut [12:52:37]*** Stage 1: CUTSNS_PIN = 1 [12:52:39]Read from MH i2c: 01 [12:52:39]MH_I2C_Read... [12:52:39]*** Stop cut motor [12:52:39]*** Cut end [12:52:39]Read from MH i2c: 01 07 00 [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: 01 07 00 64 4D 00 00 00 00 00 FF 0F C6 [12:52:39]process_action close_receipt done [12:52:39]requested_data is exist [12:52:39]produce_requested_data [12:52:39]requested_item fm.sn is exist - process it [12:52:39]wFMCommunicate request_size=4 [12:52:39]MH_SAM_APDU [12:52:39]CAPDU: 80 11 00 00 [12:52:39]Write to MH i2c: E2 08 00 65 4D 80 11 00 00 00 00 00 00 2C [12:52:39]Write i2c OK [12:52:39]MH_I2C_Read... [12:52:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:39]Read from MH i2c: E2 [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: E2 17 00 [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: E2 17 00 65 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 83 [12:52:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:52:39]wFMCommunicate OK [12:52:39]requested_item fd.num is exist - process it [12:52:39]SAM_PROTO_GetFieldsCounters [12:52:39]wFMCommunicate request_size=4 [12:52:39]MH_SAM_APDU [12:52:39]CAPDU: 80 13 00 00 [12:52:39]Write to MH i2c: E2 08 00 66 4D 80 13 00 00 00 00 00 00 2F [12:52:39]Write i2c OK [12:52:39]MH_I2C_Read... [12:52:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:40]Read from MH i2c: E2 [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: E2 62 00 [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: E2 62 00 66 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BB 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [12:52:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BB 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:52:40]wFMCommunicate OK [12:52:40]SAM_PROTO_GetFieldsCounters done [12:52:40]requested_item shift.num is exist - process it [12:52:40]requested_item shift.opened is exist - process it [12:52:40]req_shift_opened [12:52:40]FM_GetShiftState [12:52:40]SAM_PROTO_GetShiftState [12:52:40]wFMCommunicate request_size=4 [12:52:40]MH_SAM_APDU [12:52:40]CAPDU: 80 13 01 00 [12:52:40]Write to MH i2c: E2 08 00 67 4D 80 13 01 00 00 00 00 00 31 [12:52:40]Write i2c OK [12:52:40]MH_I2C_Read... [12:52:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:40]Read from MH i2c: E2 [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: E2 0E 00 [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: E2 0E 00 67 4D 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 B3 [12:52:40]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [12:52:40]wFMCommunicate OK [12:52:40]SAM_PROTO_GetShiftState done [12:52:40]FM_GetShiftState done [12:52:40]req_shift_opened done [12:52:40]requested_item shift.open_date is exist - process it [12:52:40]req_shift_open_date [12:52:40]req_shift_open_date done [12:52:40]produce_requested_data done [12:52:40]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92603,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [12:52:40]process_action_free close_receipt [12:52:40]json_value_free [12:52:40]json_value_free done [12:52:40]process_json_proto returns [12:52:40]Send response to host [12:52:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92603,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [12:52:40]free response buf [12:52:40]execute_script done [12:52:40]execute_script returns [12:52:40]free content buf [12:52:40]Sock 9.Close socket [12:52:40]Sock 9.Thread stoped [12:52:42]OFD Sender: No OFD packet to send [12:52:46]accept exits with 8 [12:52:46]New connection [12:52:46]New thread 3066658148 created [12:52:46] Sock 8.Parse request [12:52:46]Sock 8.Check first char [12:52:46]Thread 3066801508 joined [12:52:46]Sock 8.First char is OK [12:52:46]Waiting for new connection... [12:52:46]request: POST /json_proto HTTP/1.0 [12:52:46]Method: POST [12:52:46]URL: /json_proto [12:52:46]Method is POST - this is cgi request [12:52:46]url: /json_proto [12:52:46]query_string will be loaded in cgi processing [12:52:46]execute_cgi json_proto POST (null) [12:52:46]execute_cgi path=json_proto method=POST [12:52:46]POST find Content-Length [12:52:46]Host: 172.17.57.71:8080 [12:52:46]Content-Length: 699 [12:52:46]Content-Type: application/json [12:52:46] [12:52:46]POST finish read [12:52:46]Found Content-Length = 699 [12:52:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127498", "tax_sys" : 0, "items" : [ { "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:46]execute_script... [12:52:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127498", "tax_sys" : 0, "items" : [ { "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:46]POST & json_proto [12:52:46]process_json_proto [12:52:46]json parsed OK: [12:52:46]protocol is kg_v1.0 [12:52:46]action value=close_receipt [12:52:46]process_action close_receipt [12:52:46]cmd_close_receipt [12:52:46]MH_GetDate [12:52:46]Write to MH i2c: F0 00 00 68 4D A4 [12:52:46]Write i2c OK [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: F0 [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: F0 09 00 [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: F0 09 00 68 4D 00 A7 D8 E6 66 33 3A A4 66 EF [12:52:46]GetLastDocTimeStamp 1726404763 [12:52:46]current date 1726404775 [12:52:46]FM_GetShiftState [12:52:46]SAM_PROTO_GetShiftState [12:52:46]wFMCommunicate request_size=4 [12:52:46]MH_SAM_APDU [12:52:46]CAPDU: 80 13 01 00 [12:52:46]Write to MH i2c: E2 08 00 69 4D 80 13 01 00 00 00 00 00 33 [12:52:46]Write i2c OK [12:52:46]MH_I2C_Read... [12:52:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:46]Read from MH i2c: E2 [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: E2 0E 00 [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: E2 0E 00 69 4D 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 B5 [12:52:46]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [12:52:46]wFMCommunicate OK [12:52:46]SAM_PROTO_GetShiftState done [12:52:46]FM_GetShiftState done [12:52:46]opened in 1726359809 [12:52:46]opened+sec_in_day 1726446209 [12:52:46]quantity*price = 8900 [12:52:46]sum+1 = 8901 [12:52:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 89.00 НСП 1% : 0.79 НДС 12% : 9.45 Наличными: 89.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 52 15.09.2024 12:52 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92604 ФПД: 200843840004578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T125255&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92604&fm=200843840004578&tin=02508201610067®Number=0000000000091423&sum=8900 0 [12:52:47]StoreToDocumentArchive [12:52:47]shift 507 fd 92604 [12:52:47]save to /storage/0507/doc_00092604 [12:52:47]save last doc name /storage/0507/doc_00092604 to /storage/kkm_last_doc_name [12:52:47]save OK [12:52:47]Clear old archive folders... [12:52:47]ProcessDocumentItem done err = 0, tmpTLVsize=294 [12:52:47]tlvbuf is 01032820 [12:52:47]SAM_PROTO_ClearQueue [12:52:47]wFMCommunicate request_size=4 [12:52:47]MH_SAM_APDU [12:52:47]CAPDU: 80 09 00 00 [12:52:47]Write to MH i2c: E2 08 00 76 4D 80 09 00 00 00 00 00 00 35 [12:52:47]Write i2c OK [12:52:47]MH_I2C_Read... [12:52:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:47]Read from MH i2c: E2 [12:52:47]MH_I2C_Read... [12:52:47]Read from MH i2c: E2 03 00 [12:52:47]MH_I2C_Read... [12:52:47]Read from MH i2c: E2 03 00 76 4D 00 90 00 37 [12:52:47]RAPDU: 90 00 [12:52:47]wFMCommunicate OK [12:52:47]SAM_PROTO_ClearQueue done [12:52:47]KKMCreateOFDPacket [12:52:47]OFDProtocolAddRootSTLVToBuf [12:52:47]FM_MakeSignedData [12:52:47]FM_MakeSignedData [12:52:47]SAM_PROTO_SignData [12:52:47]wFMCommunicate request_size=4 [12:52:47]MH_SAM_APDU [12:52:47]CAPDU: 80 0D 01 02 [12:52:47]Write to MH i2c: E2 08 00 77 4D 80 0D 01 02 00 00 00 00 3D [12:52:47]Write i2c OK [12:52:47]MH_I2C_Read... [12:52:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:48]Read from MH i2c: E2 [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: E2 03 00 [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: E2 03 00 77 4D 00 90 00 38 [12:52:48]RAPDU: 90 00 [12:52:48]wFMCommunicate OK [12:52:48]wFMCommunicate request_size=255 [12:52:48]MH_SAM_APDU [12:52:48]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 A7 D8 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [12:52:48]Write to MH i2c: E2 02 01 78 4D 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 A7 D8 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 74 [12:52:48]Write i2c OK [12:52:48]MH_I2C_Read... [12:52:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:48]Read from MH i2c: E2 [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: E2 03 00 [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: E2 03 00 78 4D 00 90 00 39 [12:52:48]RAPDU: 90 00 [12:52:48]wFMCommunicate OK [12:52:48]wFMCommunicate request_size=53 [12:52:48]MH_SAM_APDU [12:52:48]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BC 69 01 00 35 04 06 00 B6 AA 99 BD 21 E2 [12:52:48]Write to MH i2c: E2 38 00 79 4D 80 0D 02 02 30 00 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BC 69 01 00 35 04 06 00 B6 AA 99 BD 21 E2 00 00 12 [12:52:48]Write i2c OK [12:52:48]MH_I2C_Read... [12:52:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:48]Read from MH i2c: E2 [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: E2 03 00 [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: E2 03 00 79 4D 00 90 00 3A [12:52:48]RAPDU: 90 00 [12:52:48]wFMCommunicate OK [12:52:48]wFMCommunicate request_size=4 [12:52:48]MH_SAM_APDU [12:52:48]CAPDU: 80 0D 03 02 [12:52:48]Write to MH i2c: E2 08 00 7A 4D 80 0D 03 02 00 00 00 00 42 [12:52:48]Write i2c OK [12:52:48]MH_I2C_Read... [12:52:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:48]Read from MH i2c: E2 [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: E2 0B 00 [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: E2 0B 00 7A 4D 00 B4 97 0E F4 A4 D1 43 66 90 00 AE [12:52:48]RAPDU: B4 97 0E F4 A4 D1 43 66 90 00 [12:52:48]wFMCommunicate OK [12:52:48]SAM_PROTO_SignData done [12:52:48]FM_MakeSignedData done [12:52:48]CreateOFDProtocolMessage [12:52:48]wFMCommunicate request_size=4 [12:52:48]MH_SAM_APDU [12:52:48]CAPDU: 80 11 00 00 [12:52:48]Write to MH i2c: E2 08 00 7B 4D 80 11 00 00 00 00 00 00 42 [12:52:48]Write i2c OK [12:52:48]MH_I2C_Read... [12:52:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:48]Read from MH i2c: E2 [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: E2 17 00 [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: E2 17 00 7B 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 99 [12:52:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:52:48]wFMCommunicate OK [12:52:48]CreateOFDProtocolMessage done [12:52:48]OFDSenderStorePacket 92604 [12:52:48]StoreOFDPacket docnum=92604 [12:52:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3A 01 00 00 B7 E2 32 01 5C 4A 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 A7 D8 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BC 69 01 00 35 04 06 00 B6 AA 99 BD 21 E2 B4 97 0E F4 A4 D1 43 66 [12:52:48]CheckFolder [12:52:48]dirname=/storage/ofd_packets [12:52:48]CheckFolder done [12:52:48]ProducePacketName [12:52:48]name=ofd_packets/00092604 [12:52:48]NVStorageSaveData ofd_packets/00092604 [12:52:48]File name is /storage/ofd_packets/00092604 [12:52:48]Write 344 bytes [12:52:48]NVStorageSaveData done [12:52:48]OFDSenderStorePacket done [12:52:48]KKMCreateOFDPacket done [12:52:48]NVStorageSaveData kkm_last_timestamp [12:52:48]File name is /storage/kkm_last_timestamp [12:52:48]Write 4 bytes [12:52:48]NVStorageSaveData done [12:52:48]ExternCall_PrintAddStr [12:52:48]wPrintStart [12:52:48]Write to MH i2c: 01 00 00 7C 4D C9 [12:52:48]Write i2c OK [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: 01 [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: 01 07 00 [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: 01 07 00 7C 4D 00 00 00 00 00 FF 0F DE [12:52:48]RasterBufferAndPrint [12:52:48]line Счет N : (3)127498 [12:52:48]line ИНН: 02508201610067 [12:52:48]line Контрольно-Кассовый Чек [12:52:48]line ПРОДАЖА [12:52:48]line Товар: 5000159390729 [12:52:48]line Шок Батончик Твикс Экстра 82г [12:52:48]line 1.000 * 89.00 [12:52:48]line = 89.00 [12:52:48]line НДС 12% НСП 1% [12:52:48]line > о реализуемом товаре [12:52:48]line ИТОГО: 89.00 [12:52:48]line НСП 1% : 0.79 [12:52:48]line НДС 12% : 9.45 [12:52:48]line Наличными: 89.00 [12:52:48]line Безнал.: 0.00 [12:52:48]line Место: АЗС № 5 "Партнер Нефть" [12:52:48]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:52:48]line СНО: Общий режим [12:52:48]line Чек 52 15.09.2024 12:52 [12:52:48]line Смена: 507 ФФД: 1.0 [12:52:48]line ЗНМ: 03000000022 [12:52:48]line РНМ: 0000000000091423 [12:52:48]line Версия ККМ: 001 [12:52:48]line ФМ: 0000000000874692 [12:52:48]line ФД: 92604 [12:52:48]line ФПД: 200843840004578 [12:52:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T125255&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92604&fm=200843840004578&tin=02508201610067®Number=0000000000091423&sum=8900 [12:52:48]OFD Sender: Processing packet 92604 [packets to send 63, broken 62] [12:52:48]ProducePacketName [12:52:48]name=ofd_packets/00092604 [12:52:48]OFD Sender: To server: pG, [12:52:48]CommunicateWithHost lk.salyk.kg:30040 [12:52:48]ConnectInit lk.salyk.kg [12:52:48]line 0 [12:52:48]written 0, free lines is 4095 [12:52:48]Connected sock=10 [12:52:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3A 01 00 00 B7 E2 32 01 5C 4A 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 A7 D8 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BC 69 01 00 35 04 06 00 B6 AA 99 BD 21 E2 B4 97 0E F4 A4 D1 43 66 [12:52:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 37 5E 47 00 C2 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BC 69 01 00 F4 03 04 00 1F 81 E6 66 B6 04 01 00 00 72 E1 E2 52 6C 32 BD 9F [12:52:49]CommunicateWithHost err = 0 [12:52:49]CheckOFDResponse [12:52:49]1017 (14) - 77093643461234 [12:52:49]1041 (16) - 0000000000874692 [12:52:49]1040 (4) - 92604 [12:52:49]1012 (4) - 15.09.2024 06:39 [12:52:49]1206 (1) - 0 [12:52:49]OFD Sender: Remove packet 92604 [12:52:49]ProducePacketName [12:52:49]name=ofd_packets/00092604 [12:52:49]NVStorageDeleteData [12:52:49]Write to MH i2c: 01 00 00 A5 4D F2 [12:52:49]Write i2c OK [12:52:49]MH_I2C_Read... [12:52:49]Read from MH i2c: 01 [12:52:49]MH_I2C_Read... [12:52:49]Read from MH i2c: 01 07 00 [12:52:49]MH_I2C_Read... [12:52:49]Read from MH i2c: 01 07 00 A5 4D 00 00 00 00 00 0C 0D 12 [12:52:49]RasterBufferAndPrint [12:52:49]line [12:52:49]line [12:52:49]line [12:52:49]line [12:52:49]line [12:52:49]written 0, free lines is 3348 [12:52:49]MH_Cut [12:52:49]Write to MH i2c: D1 01 00 AC 4D 01 CB [12:52:49]Write i2c OK [12:52:49]MH_I2C_Read... [12:52:49]Read from MH i2c: D1 [12:52:49]MH_I2C_Read... [12:52:49]Read from MH i2c: D1 01 00 [12:52:49]MH_I2C_Read... [12:52:49]Read from MH i2c: D1 01 00 AC 4D 00 CA [12:52:49]Write to MH i2c: 01 00 00 AD 4D FA [12:52:49]Write i2c OK [12:52:49]MH_I2C_Read... [12:52:49]OFD Sender: No OFD packet to send [12:52:49]*** Cut start [12:52:49]*** Purtial cut [12:52:49]*** Stage 1: CUTSNS_PIN = 1 [12:52:51]Read from MH i2c: 01 [12:52:51]MH_I2C_Read... [12:52:51]*** Stop cut motor [12:52:51]*** Cut end [12:52:51]Read from MH i2c: 01 07 00 [12:52:51]MH_I2C_Read... [12:52:51]Read from MH i2c: 01 07 00 AD 4D 00 00 00 00 00 FF 0F 0F [12:52:51]process_action close_receipt done [12:52:51]requested_data is exist [12:52:51]produce_requested_data [12:52:51]requested_item fm.sn is exist - process it [12:52:51]wFMCommunicate request_size=4 [12:52:51]MH_SAM_APDU [12:52:51]CAPDU: 80 11 00 00 [12:52:51]Write to MH i2c: E2 08 00 AE 4D 80 11 00 00 00 00 00 00 75 [12:52:51]Write i2c OK [12:52:51]MH_I2C_Read... [12:52:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:51]Read from MH i2c: E2 [12:52:51]MH_I2C_Read... [12:52:51]Read from MH i2c: E2 17 00 [12:52:51]MH_I2C_Read... [12:52:51]Read from MH i2c: E2 17 00 AE 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 CC [12:52:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:52:51]wFMCommunicate OK [12:52:51]requested_item fd.num is exist - process it [12:52:51]SAM_PROTO_GetFieldsCounters [12:52:51]wFMCommunicate request_size=4 [12:52:51]MH_SAM_APDU [12:52:51]CAPDU: 80 13 00 00 [12:52:51]Write to MH i2c: E2 08 00 AF 4D 80 13 00 00 00 00 00 00 78 [12:52:51]Write i2c OK [12:52:51]MH_I2C_Read... [12:52:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:52]Read from MH i2c: E2 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: E2 62 00 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: E2 62 00 AF 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BC 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [12:52:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BC 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:52:52]wFMCommunicate OK [12:52:52]SAM_PROTO_GetFieldsCounters done [12:52:52]requested_item shift.num is exist - process it [12:52:52]requested_item shift.opened is exist - process it [12:52:52]req_shift_opened [12:52:52]FM_GetShiftState [12:52:52]SAM_PROTO_GetShiftState [12:52:52]wFMCommunicate request_size=4 [12:52:52]MH_SAM_APDU [12:52:52]CAPDU: 80 13 01 00 [12:52:52]Write to MH i2c: E2 08 00 B0 4D 80 13 01 00 00 00 00 00 7A [12:52:52]Write i2c OK [12:52:52]MH_I2C_Read... [12:52:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:52]Read from MH i2c: E2 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: E2 0E 00 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: E2 0E 00 B0 4D 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 FC [12:52:52]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [12:52:52]wFMCommunicate OK [12:52:52]SAM_PROTO_GetShiftState done [12:52:52]FM_GetShiftState done [12:52:52]req_shift_opened done [12:52:52]requested_item shift.open_date is exist - process it [12:52:52]req_shift_open_date [12:52:52]req_shift_open_date done [12:52:52]produce_requested_data done [12:52:52]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92604,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [12:52:52]process_action_free close_receipt [12:52:52]json_value_free [12:52:52]json_value_free done [12:52:52]process_json_proto returns [12:52:52]Send response to host [12:52:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92604,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [12:52:52]free response buf [12:52:52]execute_script done [12:52:52]execute_script returns [12:52:52]free content buf [12:52:52]Sock 8.Close socket [12:52:52]Sock 8.Thread stoped [12:52:54]OFD Sender: No OFD packet to send [12:52:59]OFD Sender: No OFD packet to send [12:53:04]OFD Sender: No OFD packet to send [12:53:09]OFD Sender: No OFD packet to send [12:53:14]OFD Sender: No OFD packet to send [12:53:19]OFD Sender: No OFD packet to send [12:53:24]OFD Sender: No OFD packet to send [12:53:29]OFD Sender: No OFD packet to send [12:53:34]OFD Sender: No OFD packet to send [12:53:39]OFD Sender: No OFD packet to send [12:53:44]OFD Sender: No OFD packet to send [12:53:49]OFD Sender: No OFD packet to send [12:53:54]OFD Sender: No OFD packet to send [12:53:59]OFD Sender: No OFD packet to send [12:54:04]OFD Sender: No OFD packet to send [12:54:09]OFD Sender: No OFD packet to send [12:54:14]OFD Sender: No OFD packet to send [12:54:19]OFD Sender: No OFD packet to send [12:54:24]OFD Sender: No OFD packet to send [12:54:29]OFD Sender: No OFD packet to send [12:54:34]OFD Sender: No OFD packet to send [12:54:39]OFD Sender: No OFD packet to send [12:54:44]OFD Sender: No OFD packet to send [12:54:49]OFD Sender: No OFD packet to send [12:54:54]OFD Sender: No OFD packet to send [12:54:59]OFD Sender: No OFD packet to send [12:55:04]OFD Sender: No OFD packet to send [12:55:09]OFD Sender: No OFD packet to send [12:55:14]OFD Sender: No OFD packet to send [12:55:19]OFD Sender: No OFD packet to send [12:55:24]OFD Sender: No OFD packet to send [12:55:29]OFD Sender: No OFD packet to send [12:55:34]OFD Sender: No OFD packet to send [12:55:39]OFD Sender: No OFD packet to send [12:55:44]OFD Sender: No OFD packet to send [12:55:49]OFD Sender: No OFD packet to send [12:55:54]OFD Sender: No OFD packet to send [12:55:59]OFD Sender: No OFD packet to send [12:56:04]OFD Sender: No OFD packet to send [12:56:09]OFD Sender: No OFD packet to send [12:56:14]OFD Sender: No OFD packet to send [12:56:19]OFD Sender: No OFD packet to send [12:56:24]OFD Sender: No OFD packet to send [12:56:29]OFD Sender: No OFD packet to send [12:56:34]OFD Sender: No OFD packet to send [12:56:39]OFD Sender: No OFD packet to send [12:56:44]OFD Sender: No OFD packet to send [12:56:49]OFD Sender: No OFD packet to send [12:56:54]OFD Sender: No OFD packet to send [12:56:59]OFD Sender: No OFD packet to send [12:57:04]OFD Sender: No OFD packet to send [12:57:09]OFD Sender: No OFD packet to send [12:57:14]OFD Sender: No OFD packet to send [12:57:19]OFD Sender: No OFD packet to send [12:57:24]OFD Sender: No OFD packet to send [12:57:29]OFD Sender: No OFD packet to send [12:57:34]OFD Sender: No OFD packet to send [12:57:39]OFD Sender: No OFD packet to send [12:57:44]OFD Sender: No OFD packet to send [12:57:49]OFD Sender: No OFD packet to send [12:57:54]OFD Sender: No OFD packet to send [12:57:59]OFD Sender: No OFD packet to send [12:58:04]OFD Sender: No OFD packet to send [12:58:09]OFD Sender: No OFD packet to send [12:58:14]OFD Sender: No OFD packet to send [12:58:19]OFD Sender: No OFD packet to send [12:58:24]OFD Sender: No OFD packet to send [12:58:29]OFD Sender: No OFD packet to send [12:58:34]OFD Sender: No OFD packet to send [12:58:39]OFD Sender: No OFD packet to send [12:58:44]OFD Sender: No OFD packet to send [12:58:49]OFD Sender: No OFD packet to send [12:58:54]OFD Sender: No OFD packet to send [12:58:59]OFD Sender: No OFD packet to send [12:59:04]OFD Sender: No OFD packet to send [12:59:09]OFD Sender: No OFD packet to send [12:59:15]OFD Sender: No OFD packet to send [12:59:20]OFD Sender: No OFD packet to send [12:59:25]OFD Sender: No OFD packet to send [12:59:30]OFD Sender: No OFD packet to send [12:59:35]OFD Sender: No OFD packet to send [12:59:40]OFD Sender: No OFD packet to send [12:59:45]OFD Sender: No OFD packet to send [12:59:50]OFD Sender: No OFD packet to send [12:59:55]OFD Sender: No OFD packet to send [13:00:00]OFD Sender: No OFD packet to send [13:00:05]OFD Sender: No OFD packet to send [13:00:10]OFD Sender: No OFD packet to send [13:00:15]OFD Sender: No OFD packet to send [13:00:20]OFD Sender: No OFD packet to send [13:00:25]OFD Sender: No OFD packet to send [13:00:30]OFD Sender: No OFD packet to send [13:00:35]OFD Sender: No OFD packet to send [13:00:40]OFD Sender: No OFD packet to send [13:00:45]OFD Sender: No OFD packet to send [13:00:50]OFD Sender: No OFD packet to send [13:00:55]OFD Sender: No OFD packet to send [13:01:00]OFD Sender: No OFD packet to send [13:01:05]OFD Sender: No OFD packet to send [13:01:10]OFD Sender: No OFD packet to send [13:01:15]OFD Sender: No OFD packet to send [13:01:20]OFD Sender: No OFD packet to send [13:01:25]OFD Sender: No OFD packet to send [13:01:30]OFD Sender: No OFD packet to send [13:01:35]OFD Sender: No OFD packet to send [13:01:40]OFD Sender: No OFD packet to send [13:01:45]OFD Sender: No OFD packet to send [13:01:50]OFD Sender: No OFD packet to send [13:01:55]OFD Sender: No OFD packet to send [13:02:00]OFD Sender: No OFD packet to send [13:02:05]OFD Sender: No OFD packet to send [13:02:10]OFD Sender: No OFD packet to send [13:02:15]OFD Sender: No OFD packet to send [13:02:20]OFD Sender: No OFD packet to send [13:02:25]OFD Sender: No OFD packet to send [13:02:30]OFD Sender: No OFD packet to send [13:02:35]OFD Sender: No OFD packet to send [13:02:40]OFD Sender: No OFD packet to send [13:02:45]OFD Sender: No OFD packet to send [13:02:50]OFD Sender: No OFD packet to send [13:02:55]OFD Sender: No OFD packet to send [13:03:00]OFD Sender: No OFD packet to send [13:03:05]OFD Sender: No OFD packet to send [13:03:10]OFD Sender: No OFD packet to send [13:03:15]OFD Sender: No OFD packet to send [13:03:20]OFD Sender: No OFD packet to send [13:03:25]OFD Sender: No OFD packet to send [13:03:30]OFD Sender: No OFD packet to send [13:03:35]OFD Sender: No OFD packet to send [13:03:40]OFD Sender: No OFD packet to send [13:03:45]OFD Sender: No OFD packet to send [13:03:50]OFD Sender: No OFD packet to send [13:03:55]OFD Sender: No OFD packet to send [13:04:00]OFD Sender: No OFD packet to send [13:04:05]OFD Sender: No OFD packet to send [13:04:10]OFD Sender: No OFD packet to send [13:04:15]OFD Sender: No OFD packet to send [13:04:20]OFD Sender: No OFD packet to send [13:04:25]OFD Sender: No OFD packet to send [13:04:28]accept exits with 9 [13:04:28]New connection [13:04:28]New thread 3066801508 created [13:04:28]Thread 3066658148 joined [13:04:28]Waiting for new connection... [13:04:28] Sock 9.Parse request [13:04:28]Sock 9.Check first char [13:04:28]Sock 9.First char is OK [13:04:28]request: POST /json_proto HTTP/1.0 [13:04:28]Method: POST [13:04:28]URL: /json_proto [13:04:28]Method is POST - this is cgi request [13:04:28]url: /json_proto [13:04:28]query_string will be loaded in cgi processing [13:04:28]execute_cgi json_proto POST (null) [13:04:28]execute_cgi path=json_proto method=POST [13:04:28]POST find Content-Length [13:04:28]Host: 172.17.57.71:8080 [13:04:28]Content-Length: 668 [13:04:28]Content-Type: application/json [13:04:28] [13:04:28]POST finish read [13:04:28]Found Content-Length = 668 [13:04:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127499", "tax_sys" : 0, "items" : [ { "code": "4870002329951", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u0437\u0435\u043B \u0447\u0430\u0439 Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:28]execute_script... [13:04:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127499", "tax_sys" : 0, "items" : [ { "code": "4870002329951", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u0437\u0435\u043B \u0447\u0430\u0439 Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:28]POST & json_proto [13:04:28]process_json_proto [13:04:28]json parsed OK: [13:04:28]protocol is kg_v1.0 [13:04:28]action value=close_receipt [13:04:28]process_action close_receipt [13:04:28]cmd_close_receipt [13:04:28]MH_GetDate [13:04:28]Write to MH i2c: F0 00 00 B1 4D ED [13:04:28]Write i2c OK [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: F0 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: F0 09 00 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: F0 09 00 B1 4D 00 65 DB E6 66 33 3A A4 66 F9 [13:04:28]GetLastDocTimeStamp 1726404775 [13:04:28]current date 1726405477 [13:04:28]FM_GetShiftState [13:04:28]SAM_PROTO_GetShiftState [13:04:28]wFMCommunicate request_size=4 [13:04:28]MH_SAM_APDU [13:04:28]CAPDU: 80 13 01 00 [13:04:28]Write to MH i2c: E2 08 00 B2 4D 80 13 01 00 00 00 00 00 7C [13:04:28]Write i2c OK [13:04:28]MH_I2C_Read... [13:04:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:28]Read from MH i2c: E2 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: E2 0E 00 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: E2 0E 00 B2 4D 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 FE [13:04:28]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:04:28]wFMCommunicate OK [13:04:28]SAM_PROTO_GetShiftState done [13:04:28]FM_GetShiftState done [13:04:28]opened in 1726359809 [13:04:28]opened+sec_in_day 1726446209 [13:04:28]quantity*price = 13000 [13:04:28]sum+1 = 13001 [13:04:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 53 15.09.2024 13:04 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92605 ФПД: 179674091243154 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T130437&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92605&fm=179674091243154&tin=02508201610067®Number=0000000000091423&sum=13000 0 [13:04:29]StoreToDocumentArchive [13:04:29]shift 507 fd 92605 [13:04:29]save to /storage/0507/doc_00092605 [13:04:29]save last doc name /storage/0507/doc_00092605 to /storage/kkm_last_doc_name [13:04:29]save OK [13:04:29]Clear old archive folders... [13:04:29]ProcessDocumentItem done err = 0, tmpTLVsize=296 [13:04:29]tlvbuf is 01032420 [13:04:29]SAM_PROTO_ClearQueue [13:04:29]wFMCommunicate request_size=4 [13:04:29]MH_SAM_APDU [13:04:29]CAPDU: 80 09 00 00 [13:04:29]Write to MH i2c: E2 08 00 BF 4D 80 09 00 00 00 00 00 00 7E [13:04:29]Write i2c OK [13:04:29]MH_I2C_Read... [13:04:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:29]Read from MH i2c: E2 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: E2 03 00 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: E2 03 00 BF 4D 00 90 00 80 [13:04:29]RAPDU: 90 00 [13:04:29]wFMCommunicate OK [13:04:29]SAM_PROTO_ClearQueue done [13:04:29]KKMCreateOFDPacket [13:04:29]OFDProtocolAddRootSTLVToBuf [13:04:29]FM_MakeSignedData [13:04:29]FM_MakeSignedData [13:04:29]SAM_PROTO_SignData [13:04:29]wFMCommunicate request_size=4 [13:04:29]MH_SAM_APDU [13:04:29]CAPDU: 80 0D 01 02 [13:04:29]Write to MH i2c: E2 08 00 C0 4D 80 0D 01 02 00 00 00 00 86 [13:04:29]Write i2c OK [13:04:29]MH_I2C_Read... [13:04:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:30]Read from MH i2c: E2 [13:04:30]MH_I2C_Read... [13:04:30]Read from MH i2c: E2 03 00 [13:04:30]MH_I2C_Read... [13:04:30]Read from MH i2c: E2 03 00 C0 4D 00 90 00 81 [13:04:30]RAPDU: 90 00 [13:04:30]wFMCommunicate OK [13:04:30]wFMCommunicate request_size=255 [13:04:30]MH_SAM_APDU [13:04:30]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 65 DB E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [13:04:30]Write to MH i2c: E2 02 01 C1 4D 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 65 DB E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 19 [13:04:30]Write i2c OK [13:04:30]MH_I2C_Read... [13:04:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:30]Read from MH i2c: E2 [13:04:30]MH_I2C_Read... [13:04:30]Read from MH i2c: E2 03 00 [13:04:30]MH_I2C_Read... [13:04:30]Read from MH i2c: E2 03 00 C1 4D 00 90 00 82 [13:04:30]RAPDU: 90 00 [13:04:30]wFMCommunicate OK [13:04:30]wFMCommunicate request_size=55 [13:04:30]MH_SAM_APDU [13:04:30]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BD 69 01 00 35 04 06 00 A3 69 A2 62 46 92 [13:04:30]Write to MH i2c: E2 3A 00 C2 4D 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BD 69 01 00 35 04 06 00 A3 69 A2 62 46 92 00 00 EF [13:04:30]Write i2c OK [13:04:30]MH_I2C_Read... [13:04:30]OFD Sender: No OFD packet to send [13:04:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:30]Read from MH i2c: E2 [13:04:30]MH_I2C_Read... [13:04:30]Read from MH i2c: E2 03 00 [13:04:30]MH_I2C_Read... [13:04:30]Read from MH i2c: E2 03 00 C2 4D 00 90 00 83 [13:04:30]RAPDU: 90 00 [13:04:30]wFMCommunicate OK [13:04:30]wFMCommunicate request_size=4 [13:04:30]MH_SAM_APDU [13:04:30]CAPDU: 80 0D 03 02 [13:04:30]Write to MH i2c: E2 08 00 C3 4D 80 0D 03 02 00 00 00 00 8B [13:04:30]Write i2c OK [13:04:30]MH_I2C_Read... [13:04:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:04:30]Read from MH i2c: E2 [13:04:30]MH_I2C_Read... [13:04:30]Read from MH i2c: E2 0B 00 [13:04:30]MH_I2C_Read... [13:04:30]Read from MH i2c: E2 0B 00 C3 4D 00 16 98 6C CE E2 16 9E E2 90 00 EC [13:04:30]RAPDU: 16 98 6C CE E2 16 9E E2 90 00 [13:04:30]wFMCommunicate OK [13:04:30]SAM_PROTO_SignData done [13:04:30]FM_MakeSignedData done [13:04:30]CreateOFDProtocolMessage [13:04:30]wFMCommunicate request_size=4 [13:04:30]MH_SAM_APDU [13:04:30]CAPDU: 80 11 00 00 [13:04:30]Write to MH i2c: E2 08 00 C4 4D 80 11 00 00 00 00 00 00 8B [13:04:30]Write i2c OK [13:04:30]MH_I2C_Read... [13:04:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:30]Read from MH i2c: E2 [13:04:30]MH_I2C_Read... [13:04:30]Read from MH i2c: E2 17 00 [13:04:30]MH_I2C_Read... [13:04:30]Read from MH i2c: E2 17 00 C4 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E2 [13:04:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:04:30]wFMCommunicate OK [13:04:30]CreateOFDProtocolMessage done [13:04:30]OFDSenderStorePacket 92605 [13:04:30]StoreOFDPacket docnum=92605 [13:04:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3C 01 00 00 1C 16 34 01 22 EC 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 65 DB E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BD 69 01 00 35 04 06 00 A3 69 A2 62 46 92 16 98 6C CE E2 16 9E E2 [13:04:30]CheckFolder [13:04:30]dirname=/storage/ofd_packets [13:04:30]CheckFolder done [13:04:30]ProducePacketName [13:04:30]name=ofd_packets/00092605 [13:04:30]NVStorageSaveData ofd_packets/00092605 [13:04:30]File name is /storage/ofd_packets/00092605 [13:04:30]Write 346 bytes [13:04:30]NVStorageSaveData done [13:04:30]OFDSenderStorePacket done [13:04:30]KKMCreateOFDPacket done [13:04:30]NVStorageSaveData kkm_last_timestamp [13:04:30]File name is /storage/kkm_last_timestamp [13:04:30]Write 4 bytes [13:04:30]NVStorageSaveData done [13:04:30]ExternCall_PrintAddStr [13:04:30]wPrintStart [13:04:30]Write to MH i2c: 01 00 00 C5 4D 12 [13:04:30]Write i2c OK [13:04:30]MH_I2C_Read... [13:04:30]Read from MH i2c: 01 [13:04:30]MH_I2C_Read... [13:04:30]Read from MH i2c: 01 07 00 [13:04:30]MH_I2C_Read... [13:04:30]Read from MH i2c: 01 07 00 C5 4D 00 00 00 00 00 FF 0F 27 [13:04:30]RasterBufferAndPrint [13:04:30]line Счет N : (3)127499 [13:04:30]line ИНН: 02508201610067 [13:04:30]line Контрольно-Кассовый Чек [13:04:30]line ПРОДАЖА [13:04:30]line Товар: 4870002329951 [13:04:30]line Напиток Lipton IceTea 1л зел чай Regular [13:04:30]line 1.000 * 130.00 [13:04:30]line = 130.00 [13:04:30]line НДС 12% НСП 1% [13:04:30]line > о реализуемом товаре [13:04:30]line ИТОГО: 130.00 [13:04:30]line НСП 1% : 1.15 [13:04:30]line НДС 12% : 13.80 [13:04:30]line Наличными: 130.00 [13:04:30]line Безнал.: 0.00 [13:04:30]line Место: АЗС № 5 "Партнер Нефть" [13:04:30]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [13:04:30]line СНО: Общий режим [13:04:30]line Чек 53 15.09.2024 13:04 [13:04:30]line Смена: 507 ФФД: 1.0 [13:04:30]line ЗНМ: 03000000022 [13:04:30]line РНМ: 0000000000091423 [13:04:30]line Версия ККМ: 001 [13:04:30]line ФМ: 0000000000874692 [13:04:30]line ФД: 92605 [13:04:30]line ФПД: 179674091243154 [13:04:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T130437&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92605&fm=179674091243154&tin=02508201610067®Number=0000000000091423&sum=13000 [13:04:30]line 0 [13:04:30]OFD Sender: Processing packet 92605 [packets to send 63, broken 62] [13:04:30]ProducePacketName [13:04:30]name=ofd_packets/00092605 [13:04:30]OFD Sender: To server: pG, [13:04:30]CommunicateWithHost lk.salyk.kg:30040 [13:04:30]ConnectInit lk.salyk.kg [13:04:30]written 0, free lines is 4095 [13:04:30]Connected sock=10 [13:04:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3C 01 00 00 1C 16 34 01 22 EC 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 65 DB E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BD 69 01 00 35 04 06 00 A3 69 A2 62 46 92 16 98 6C CE E2 16 9E E2 [13:04:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 05 42 47 00 64 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BD 69 01 00 F4 03 04 00 DD 83 E6 66 B6 04 01 00 00 14 59 16 60 0D FF DA 02 [13:04:31]CommunicateWithHost err = 0 [13:04:31]CheckOFDResponse [13:04:31]1017 (14) - 77093643461234 [13:04:31]1041 (16) - 0000000000874692 [13:04:31]1040 (4) - 92605 [13:04:31]1012 (4) - 15.09.2024 06:51 [13:04:31]1206 (1) - 0 [13:04:31]OFD Sender: Remove packet 92605 [13:04:31]ProducePacketName [13:04:31]name=ofd_packets/00092605 [13:04:31]NVStorageDeleteData [13:04:31]Write to MH i2c: 01 00 00 EE 4D 3B [13:04:31]Write i2c OK [13:04:31]MH_I2C_Read... [13:04:31]Read from MH i2c: 01 [13:04:31]MH_I2C_Read... [13:04:31]Read from MH i2c: 01 07 00 [13:04:31]MH_I2C_Read... [13:04:31]Read from MH i2c: 01 07 00 EE 4D 00 00 00 00 00 19 0D 68 [13:04:31]RasterBufferAndPrint [13:04:31]line [13:04:31]line [13:04:31]line [13:04:31]line [13:04:31]line [13:04:31]written 0, free lines is 3361 [13:04:31]MH_Cut [13:04:31]Write to MH i2c: D1 01 00 F5 4D 01 14 [13:04:31]Write i2c OK [13:04:31]MH_I2C_Read... [13:04:31]Read from MH i2c: D1 [13:04:31]MH_I2C_Read... [13:04:31]Read from MH i2c: D1 01 00 [13:04:31]MH_I2C_Read... [13:04:31]Read from MH i2c: D1 01 00 F5 4D 00 13 [13:04:31]Write to MH i2c: 01 00 00 F6 4D 43 [13:04:31]Write i2c OK [13:04:31]MH_I2C_Read... [13:04:31]OFD Sender: No OFD packet to send [13:04:31]*** Cut start [13:04:31]*** Purtial cut [13:04:31]*** Stage 1: CUTSNS_PIN = 1 [13:04:33]Read from MH i2c: 01 [13:04:33]MH_I2C_Read... [13:04:33]*** Stop cut motor [13:04:33]*** Cut end [13:04:33]Read from MH i2c: 01 07 00 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: 01 07 00 F6 4D 00 00 00 00 00 FF 0F 58 [13:04:33]process_action close_receipt done [13:04:33]requested_data is exist [13:04:33]produce_requested_data [13:04:33]requested_item fm.sn is exist - process it [13:04:33]wFMCommunicate request_size=4 [13:04:33]MH_SAM_APDU [13:04:33]CAPDU: 80 11 00 00 [13:04:33]Write to MH i2c: E2 08 00 F7 4D 80 11 00 00 00 00 00 00 BE [13:04:33]Write i2c OK [13:04:33]MH_I2C_Read... [13:04:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:33]Read from MH i2c: E2 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 17 00 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 17 00 F7 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 15 [13:04:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:04:33]wFMCommunicate OK [13:04:33]requested_item fd.num is exist - process it [13:04:33]SAM_PROTO_GetFieldsCounters [13:04:33]wFMCommunicate request_size=4 [13:04:33]MH_SAM_APDU [13:04:33]CAPDU: 80 13 00 00 [13:04:33]Write to MH i2c: E2 08 00 F8 4D 80 13 00 00 00 00 00 00 C1 [13:04:33]Write i2c OK [13:04:33]MH_I2C_Read... [13:04:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:34]Read from MH i2c: E2 [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: E2 62 00 [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: E2 62 00 F8 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BD 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [13:04:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BD 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:04:34]wFMCommunicate OK [13:04:34]SAM_PROTO_GetFieldsCounters done [13:04:34]requested_item shift.num is exist - process it [13:04:34]requested_item shift.opened is exist - process it [13:04:34]req_shift_opened [13:04:34]FM_GetShiftState [13:04:34]SAM_PROTO_GetShiftState [13:04:34]wFMCommunicate request_size=4 [13:04:34]MH_SAM_APDU [13:04:34]CAPDU: 80 13 01 00 [13:04:34]Write to MH i2c: E2 08 00 F9 4D 80 13 01 00 00 00 00 00 C3 [13:04:34]Write i2c OK [13:04:34]MH_I2C_Read... [13:04:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:34]Read from MH i2c: E2 [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: E2 0E 00 [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: E2 0E 00 F9 4D 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 45 [13:04:34]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:04:34]wFMCommunicate OK [13:04:34]SAM_PROTO_GetShiftState done [13:04:34]FM_GetShiftState done [13:04:34]req_shift_opened done [13:04:34]requested_item shift.open_date is exist - process it [13:04:34]req_shift_open_date [13:04:34]req_shift_open_date done [13:04:34]produce_requested_data done [13:04:34]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92605,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [13:04:34]process_action_free close_receipt [13:04:34]json_value_free [13:04:34]json_value_free done [13:04:34]process_json_proto returns [13:04:34]Send response to host [13:04:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92605,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [13:04:34]free response buf [13:04:34]execute_script done [13:04:34]execute_script returns [13:04:34]free content buf [13:04:34]Sock 9.Close socket [13:04:34]Sock 9.Thread stoped [13:04:36]OFD Sender: No OFD packet to send [13:04:41]OFD Sender: No OFD packet to send [13:04:46]OFD Sender: No OFD packet to send [13:04:51]OFD Sender: No OFD packet to send [13:04:53]accept exits with 8 [13:04:53]New connection [13:04:53]New thread 3066658148 created [13:04:53]Thread 3066801508 joined [13:04:53]Waiting for new connection... [13:04:53] Sock 8.Parse request [13:04:53]Sock 8.Check first char [13:04:53]Sock 8.First char is OK [13:04:53]request: POST /json_proto HTTP/1.0 [13:04:53]Method: POST [13:04:53]URL: /json_proto [13:04:53]Method is POST - this is cgi request [13:04:53]url: /json_proto [13:04:53]query_string will be loaded in cgi processing [13:04:53]execute_cgi json_proto POST (null) [13:04:53]execute_cgi path=json_proto method=POST [13:04:53]POST find Content-Length [13:04:53]Host: 172.17.57.71:8080 [13:04:53]Content-Length: 613 [13:04:53]Content-Type: application/json [13:04:53] [13:04:53]POST finish read [13:04:53]Found Content-Length = 613 [13:04:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127500", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:53]execute_script... [13:04:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127500", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:53]POST & json_proto [13:04:53]process_json_proto [13:04:53]json parsed OK: [13:04:53]protocol is kg_v1.0 [13:04:53]action value=close_receipt [13:04:53]process_action close_receipt [13:04:53]cmd_close_receipt [13:04:53]MH_GetDate [13:04:53]Write to MH i2c: F0 00 00 FA 4D 36 [13:04:53]Write i2c OK [13:04:53]MH_I2C_Read... [13:04:53]Read from MH i2c: F0 [13:04:53]MH_I2C_Read... [13:04:53]Read from MH i2c: F0 09 00 [13:04:53]MH_I2C_Read... [13:04:53]Read from MH i2c: F0 09 00 FA 4D 00 7E DB E6 66 33 3A A4 66 5B [13:04:53]GetLastDocTimeStamp 1726405477 [13:04:53]current date 1726405502 [13:04:53]FM_GetShiftState [13:04:53]SAM_PROTO_GetShiftState [13:04:53]wFMCommunicate request_size=4 [13:04:53]MH_SAM_APDU [13:04:53]CAPDU: 80 13 01 00 [13:04:53]Write to MH i2c: E2 08 00 FB 4D 80 13 01 00 00 00 00 00 C5 [13:04:53]Write i2c OK [13:04:53]MH_I2C_Read... [13:04:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:53]Read from MH i2c: E2 [13:04:53]MH_I2C_Read... [13:04:53]Read from MH i2c: E2 0E 00 [13:04:53]MH_I2C_Read... [13:04:53]Read from MH i2c: E2 0E 00 FB 4D 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 47 [13:04:53]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:04:53]wFMCommunicate OK [13:04:53]SAM_PROTO_GetShiftState done [13:04:53]FM_GetShiftState done [13:04:53]opened in 1726359809 [13:04:53]opened+sec_in_day 1726446209 [13:04:53]quantity*price = 15900 [13:04:53]sum+1 = 15901 [13:04:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 159.00 НСП 1% : 1.41 НДС 12% : 16.88 Наличными: 159.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 54 15.09.2024 13:05 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92606 ФПД: 58325034266099 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T130502&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92606&fm=58325034266099&tin=02508201610067®Number=0000000000091423&sum=15900 0 [13:04:54]StoreToDocumentArchive [13:04:54]shift 507 fd 92606 [13:04:54]save to /storage/0507/doc_00092606 [13:04:54]save last doc name /storage/0507/doc_00092606 to /storage/kkm_last_doc_name [13:04:54]save OK [13:04:54]Clear old archive folders... [13:04:54]ProcessDocumentItem done err = 0, tmpTLVsize=265 [13:04:54]tlvbuf is 010D6510 [13:04:54]SAM_PROTO_ClearQueue [13:04:54]wFMCommunicate request_size=4 [13:04:54]MH_SAM_APDU [13:04:54]CAPDU: 80 09 00 00 [13:04:54]Write to MH i2c: E2 08 00 08 4E 80 09 00 00 00 00 00 00 C8 [13:04:54]Write i2c OK [13:04:54]MH_I2C_Read... [13:04:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:54]Read from MH i2c: E2 [13:04:54]MH_I2C_Read... [13:04:54]Read from MH i2c: E2 03 00 [13:04:54]MH_I2C_Read... [13:04:54]Read from MH i2c: E2 03 00 08 4E 00 90 00 CA [13:04:54]RAPDU: 90 00 [13:04:54]wFMCommunicate OK [13:04:54]SAM_PROTO_ClearQueue done [13:04:54]KKMCreateOFDPacket [13:04:54]OFDProtocolAddRootSTLVToBuf [13:04:54]FM_MakeSignedData [13:04:54]FM_MakeSignedData [13:04:54]SAM_PROTO_SignData [13:04:54]wFMCommunicate request_size=4 [13:04:54]MH_SAM_APDU [13:04:54]CAPDU: 80 0D 01 02 [13:04:54]Write to MH i2c: E2 08 00 09 4E 80 0D 01 02 00 00 00 00 D0 [13:04:54]Write i2c OK [13:04:54]MH_I2C_Read... [13:04:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:54]Read from MH i2c: E2 [13:04:54]MH_I2C_Read... [13:04:54]Read from MH i2c: E2 03 00 [13:04:54]MH_I2C_Read... [13:04:54]Read from MH i2c: E2 03 00 09 4E 00 90 00 CB [13:04:54]RAPDU: 90 00 [13:04:54]wFMCommunicate OK [13:04:54]wFMCommunicate request_size=255 [13:04:54]MH_SAM_APDU [13:04:54]CAPDU: 80 0D 02 02 FA 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 7E DB E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 [13:04:54]Write to MH i2c: E2 02 01 0A 4E 80 0D 02 02 FA 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 7E DB E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 00 00 D5 [13:04:54]Write i2c OK [13:04:54]MH_I2C_Read... [13:04:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:55]Read from MH i2c: E2 [13:04:55]MH_I2C_Read... [13:04:55]Read from MH i2c: E2 03 00 [13:04:55]MH_I2C_Read... [13:04:55]Read from MH i2c: E2 03 00 0A 4E 00 90 00 CC [13:04:55]RAPDU: 90 00 [13:04:55]wFMCommunicate OK [13:04:55]wFMCommunicate request_size=24 [13:04:55]MH_SAM_APDU [13:04:55]CAPDU: 80 0D 02 02 13 32 10 04 04 00 BE 69 01 00 35 04 06 00 35 0B DA F2 ED F3 [13:04:55]Write to MH i2c: E2 1B 00 0B 4E 80 0D 02 02 13 00 32 10 04 04 00 BE 69 01 00 35 04 06 00 35 0B DA F2 ED F3 00 00 96 [13:04:55]Write i2c OK [13:04:55]MH_I2C_Read... [13:04:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:55]Read from MH i2c: E2 [13:04:55]MH_I2C_Read... [13:04:55]Read from MH i2c: E2 03 00 [13:04:55]MH_I2C_Read... [13:04:55]Read from MH i2c: E2 03 00 0B 4E 00 90 00 CD [13:04:55]RAPDU: 90 00 [13:04:55]wFMCommunicate OK [13:04:55]wFMCommunicate request_size=4 [13:04:55]MH_SAM_APDU [13:04:55]CAPDU: 80 0D 03 02 [13:04:55]Write to MH i2c: E2 08 00 0C 4E 80 0D 03 02 00 00 00 00 D5 [13:04:55]Write i2c OK [13:04:55]MH_I2C_Read... [13:04:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:04:55]Read from MH i2c: E2 [13:04:55]MH_I2C_Read... [13:04:55]Read from MH i2c: E2 0B 00 [13:04:55]MH_I2C_Read... [13:04:55]Read from MH i2c: E2 0B 00 0C 4E 00 CF D0 F1 CB 98 BC F0 29 90 00 9E [13:04:55]RAPDU: CF D0 F1 CB 98 BC F0 29 90 00 [13:04:55]wFMCommunicate OK [13:04:55]SAM_PROTO_SignData done [13:04:55]FM_MakeSignedData done [13:04:55]CreateOFDProtocolMessage [13:04:55]wFMCommunicate request_size=4 [13:04:55]MH_SAM_APDU [13:04:55]CAPDU: 80 11 00 00 [13:04:55]Write to MH i2c: E2 08 00 0D 4E 80 11 00 00 00 00 00 00 D5 [13:04:55]Write i2c OK [13:04:55]MH_I2C_Read... [13:04:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:55]Read from MH i2c: E2 [13:04:55]MH_I2C_Read... [13:04:55]Read from MH i2c: E2 17 00 [13:04:55]MH_I2C_Read... [13:04:55]Read from MH i2c: E2 17 00 0D 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 2C [13:04:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:04:55]wFMCommunicate OK [13:04:55]CreateOFDProtocolMessage done [13:04:55]OFDSenderStorePacket 92606 [13:04:55]StoreOFDPacket docnum=92606 [13:04:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 1D 01 00 00 85 04 15 01 AF EA 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 7E DB E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BE 69 01 00 35 04 06 00 35 0B DA F2 ED F3 CF D0 F1 CB 98 BC F0 29 [13:04:55]CheckFolder [13:04:55]dirname=/storage/ofd_packets [13:04:55]CheckFolder done [13:04:55]ProducePacketName [13:04:55]name=ofd_packets/00092606 [13:04:55]NVStorageSaveData ofd_packets/00092606 [13:04:55]File name is /storage/ofd_packets/00092606 [13:04:55]Write 315 bytes [13:04:55]NVStorageSaveData done [13:04:55]OFDSenderStorePacket done [13:04:55]KKMCreateOFDPacket done [13:04:55]NVStorageSaveData kkm_last_timestamp [13:04:55]File name is /storage/kkm_last_timestamp [13:04:55]Write 4 bytes [13:04:55]NVStorageSaveData done [13:04:55]ExternCall_PrintAddStr [13:04:55]wPrintStart [13:04:55]Write to MH i2c: 01 00 00 0E 4E 5C [13:04:55]Write i2c OK [13:04:55]MH_I2C_Read... [13:04:55]Read from MH i2c: 01 [13:04:55]MH_I2C_Read... [13:04:55]Read from MH i2c: 01 07 00 [13:04:55]MH_I2C_Read... [13:04:55]Read from MH i2c: 01 07 00 0E 4E 00 00 00 00 00 FF 0F 71 [13:04:55]RasterBufferAndPrint [13:04:55]line Счет N : (3)127500 [13:04:55]line ИНН: 02508201610067 [13:04:55]line Контрольно-Кассовый Чек [13:04:55]line ПРОДАЖА [13:04:55]line Товар: 47803152 [13:04:55]line Сигареты Mevius Revo [13:04:55]line 1.000 * 159.00 [13:04:55]line = 159.00 [13:04:55]line НДС 12% НСП 1% [13:04:55]line > о реализуемом товаре [13:04:55]line ИТОГО: 159.00 [13:04:55]line НСП 1% : 1.41 [13:04:55]line НДС 12% : 16.88 [13:04:55]line Наличными: 159.00 [13:04:55]line Безнал.: 0.00 [13:04:55]line Место: АЗС № 5 "Партнер Нефть" [13:04:55]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [13:04:55]line СНО: Общий режим [13:04:55]line Чек 54 15.09.2024 13:05 [13:04:55]line Смена: 507 ФФД: 1.0 [13:04:55]line ЗНМ: 03000000022 [13:04:55]line РНМ: 0000000000091423 [13:04:55]line Версия ККМ: 001 [13:04:55]line ФМ: 0000000000874692 [13:04:55]line ФД: 92606 [13:04:55]line ФПД: 58325034266099 [13:04:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T130502&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92606&fm=58325034266099&tin=02508201610067®Number=0000000000091423&sum=15900 [13:04:55]line 0 [13:04:55]OFD Sender: Processing packet 92606 [packets to send 63, broken 62] [13:04:55]ProducePacketName [13:04:55]name=ofd_packets/00092606 [13:04:55]OFD Sender: To server: pG, [13:04:55]CommunicateWithHost lk.salyk.kg:30040 [13:04:55]ConnectInit lk.salyk.kg [13:04:55]written 0, free lines is 4095 [13:04:55]Connected sock=10 [13:04:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 1D 01 00 00 85 04 15 01 AF EA 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 7E DB E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BE 69 01 00 35 04 06 00 35 0B DA F2 ED F3 CF D0 F1 CB 98 BC F0 29 [13:04:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 0A 77 47 00 02 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BE 69 01 00 F4 03 04 00 F6 83 E6 66 B6 04 01 00 00 10 5F B1 62 B1 65 2D 47 [13:04:55]CommunicateWithHost err = 0 [13:04:55]CheckOFDResponse [13:04:55]1017 (14) - 77093643461234 [13:04:55]1041 (16) - 0000000000874692 [13:04:55]1040 (4) - 92606 [13:04:55]1012 (4) - 15.09.2024 06:51 [13:04:55]1206 (1) - 0 [13:04:55]OFD Sender: Remove packet 92606 [13:04:55]ProducePacketName [13:04:55]name=ofd_packets/00092606 [13:04:55]NVStorageDeleteData [13:04:56]Write to MH i2c: 01 00 00 36 4E 84 [13:04:56]Write i2c OK [13:04:56]MH_I2C_Read... [13:04:56]Read from MH i2c: 01 [13:04:56]MH_I2C_Read... [13:04:56]Read from MH i2c: 01 07 00 [13:04:56]MH_I2C_Read... [13:04:56]Read from MH i2c: 01 07 00 36 4E 00 00 00 00 00 17 0D AF [13:04:56]RasterBufferAndPrint [13:04:56]line [13:04:56]line [13:04:56]line [13:04:56]line [13:04:56]line [13:04:56]written 0, free lines is 3359 [13:04:56]MH_Cut [13:04:56]Write to MH i2c: D1 01 00 3D 4E 01 5D [13:04:56]Write i2c OK [13:04:56]MH_I2C_Read... [13:04:56]Read from MH i2c: D1 [13:04:56]MH_I2C_Read... [13:04:56]Read from MH i2c: D1 01 00 [13:04:56]MH_I2C_Read... [13:04:56]Read from MH i2c: D1 01 00 3D 4E 00 5C [13:04:56]Write to MH i2c: 01 00 00 3E 4E 8C [13:04:56]Write i2c OK [13:04:56]MH_I2C_Read... [13:04:56]OFD Sender: No OFD packet to send [13:04:56]*** Cut start [13:04:56]*** Purtial cut [13:04:56]*** Stage 1: CUTSNS_PIN = 1 [13:04:58]Read from MH i2c: 01 [13:04:58]MH_I2C_Read... [13:04:58]*** Stop cut motor [13:04:58]*** Cut end [13:04:58]Read from MH i2c: 01 07 00 [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: 01 07 00 3E 4E 00 00 00 00 00 FF 0F A1 [13:04:58]process_action close_receipt done [13:04:58]requested_data is exist [13:04:58]produce_requested_data [13:04:58]requested_item fm.sn is exist - process it [13:04:58]wFMCommunicate request_size=4 [13:04:58]MH_SAM_APDU [13:04:58]CAPDU: 80 11 00 00 [13:04:58]Write to MH i2c: E2 08 00 3F 4E 80 11 00 00 00 00 00 00 07 [13:04:58]Write i2c OK [13:04:58]MH_I2C_Read... [13:04:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:58]Read from MH i2c: E2 [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: E2 17 00 [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: E2 17 00 3F 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 5E [13:04:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:04:58]wFMCommunicate OK [13:04:58]requested_item fd.num is exist - process it [13:04:58]SAM_PROTO_GetFieldsCounters [13:04:58]wFMCommunicate request_size=4 [13:04:58]MH_SAM_APDU [13:04:58]CAPDU: 80 13 00 00 [13:04:58]Write to MH i2c: E2 08 00 40 4E 80 13 00 00 00 00 00 00 0A [13:04:58]Write i2c OK [13:04:58]MH_I2C_Read... [13:04:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:58]Read from MH i2c: E2 [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: E2 62 00 [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: E2 62 00 40 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BE 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [13:04:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BE 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:04:58]wFMCommunicate OK [13:04:58]SAM_PROTO_GetFieldsCounters done [13:04:58]requested_item shift.num is exist - process it [13:04:58]requested_item shift.opened is exist - process it [13:04:58]req_shift_opened [13:04:58]FM_GetShiftState [13:04:58]SAM_PROTO_GetShiftState [13:04:58]wFMCommunicate request_size=4 [13:04:58]MH_SAM_APDU [13:04:58]CAPDU: 80 13 01 00 [13:04:58]Write to MH i2c: E2 08 00 41 4E 80 13 01 00 00 00 00 00 0C [13:04:58]Write i2c OK [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: E2 [13:04:58]MH_I2C_Read... [13:04:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:58]Read from MH i2c: E2 0E 00 [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: E2 0E 00 41 4E 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 8E [13:04:58]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:04:58]wFMCommunicate OK [13:04:58]SAM_PROTO_GetShiftState done [13:04:58]FM_GetShiftState done [13:04:58]req_shift_opened done [13:04:58]requested_item shift.open_date is exist - process it [13:04:58]req_shift_open_date [13:04:58]req_shift_open_date done [13:04:58]produce_requested_data done [13:04:58]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92606,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [13:04:58]process_action_free close_receipt [13:04:58]json_value_free [13:04:58]json_value_free done [13:04:58]process_json_proto returns [13:04:58]Send response to host [13:04:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92606,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [13:04:58]free response buf [13:04:58]execute_script done [13:04:58]execute_script returns [13:04:58]free content buf [13:04:58]Sock 8.Close socket [13:04:58]Sock 8.Thread stoped [13:05:01]OFD Sender: No OFD packet to send [13:05:06]OFD Sender: No OFD packet to send [13:05:11]OFD Sender: No OFD packet to send [13:05:16]OFD Sender: No OFD packet to send [13:05:21]OFD Sender: No OFD packet to send [13:05:26]OFD Sender: No OFD packet to send [13:05:31]OFD Sender: No OFD packet to send [13:05:36]OFD Sender: No OFD packet to send [13:05:41]OFD Sender: No OFD packet to send [13:05:46]OFD Sender: No OFD packet to send [13:05:51]OFD Sender: No OFD packet to send [13:05:56]OFD Sender: No OFD packet to send [13:06:01]OFD Sender: No OFD packet to send [13:06:06]OFD Sender: No OFD packet to send [13:06:11]OFD Sender: No OFD packet to send [13:06:16]OFD Sender: No OFD packet to send [13:06:21]OFD Sender: No OFD packet to send [13:06:26]OFD Sender: No OFD packet to send [13:06:31]OFD Sender: No OFD packet to send [13:06:36]OFD Sender: No OFD packet to send [13:06:41]OFD Sender: No OFD packet to send [13:06:46]OFD Sender: No OFD packet to send [13:06:51]OFD Sender: No OFD packet to send [13:06:56]OFD Sender: No OFD packet to send [13:06:56]accept exits with 9 [13:06:56]New connection [13:06:56]New thread 3066801508 created [13:06:56]Thread 3066658148 joined [13:06:56]Waiting for new connection... [13:06:56] Sock 9.Parse request [13:06:56]Sock 9.Check first char [13:06:56]Sock 9.First char is OK [13:06:56]request: POST /json_proto HTTP/1.0 [13:06:56]Method: POST [13:06:56]URL: /json_proto [13:06:56]Method is POST - this is cgi request [13:06:56]url: /json_proto [13:06:56]query_string will be loaded in cgi processing [13:06:56]execute_cgi json_proto POST (null) [13:06:56]execute_cgi path=json_proto method=POST [13:06:56]POST find Content-Length [13:06:56]Host: 172.17.57.71:8080 [13:06:56]Content-Length: 728 [13:06:56]Content-Type: application/json [13:06:56] [13:06:56]POST finish read [13:06:56]Found Content-Length = 728 [13:06:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127501", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:56]execute_script... [13:06:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127501", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:56]POST & json_proto [13:06:56]process_json_proto [13:06:56]json parsed OK: [13:06:56]protocol is kg_v1.0 [13:06:56]action value=close_receipt [13:06:56]process_action close_receipt [13:06:56]cmd_close_receipt [13:06:56]MH_GetDate [13:06:56]Write to MH i2c: F0 00 00 42 4E 7F [13:06:56]Write i2c OK [13:06:56]MH_I2C_Read... [13:06:56]Read from MH i2c: F0 [13:06:56]MH_I2C_Read... [13:06:56]Read from MH i2c: F0 09 00 [13:06:56]MH_I2C_Read... [13:06:56]Read from MH i2c: F0 09 00 42 4E 00 F9 DB E6 66 33 3A A4 66 1F [13:06:56]GetLastDocTimeStamp 1726405502 [13:06:56]current date 1726405625 [13:06:56]FM_GetShiftState [13:06:56]SAM_PROTO_GetShiftState [13:06:56]wFMCommunicate request_size=4 [13:06:56]MH_SAM_APDU [13:06:56]CAPDU: 80 13 01 00 [13:06:56]Write to MH i2c: E2 08 00 43 4E 80 13 01 00 00 00 00 00 0E [13:06:56]Write i2c OK [13:06:56]MH_I2C_Read... [13:06:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:56]Read from MH i2c: E2 [13:06:56]MH_I2C_Read... [13:06:56]Read from MH i2c: E2 0E 00 [13:06:56]MH_I2C_Read... [13:06:56]Read from MH i2c: E2 0E 00 43 4E 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 90 [13:06:56]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:06:56]wFMCommunicate OK [13:06:56]SAM_PROTO_GetShiftState done [13:06:56]FM_GetShiftState done [13:06:56]opened in 1726359809 [13:06:56]opened+sec_in_day 1726446209 [13:06:56]quantity*price = 10500 [13:06:56]sum+1 = 10501 [13:06:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 55 15.09.2024 13:07 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92607 ФПД: 62709418737860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T130705&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92607&fm=62709418737860&tin=02508201610067®Number=0000000000091423&sum=10500 0 [13:06:57]StoreToDocumentArchive [13:06:57]shift 507 fd 92607 [13:06:57]save to /storage/0507/doc_00092607 [13:06:57]save last doc name /storage/0507/doc_00092607 to /storage/kkm_last_doc_name [13:06:57]save OK [13:06:57]Clear old archive folders... [13:06:57]ProcessDocumentItem done err = 0, tmpTLVsize=308 [13:06:57]tlvbuf is 010CA580 [13:06:57]SAM_PROTO_ClearQueue [13:06:57]wFMCommunicate request_size=4 [13:06:57]MH_SAM_APDU [13:06:57]CAPDU: 80 09 00 00 [13:06:57]Write to MH i2c: E2 08 00 50 4E 80 09 00 00 00 00 00 00 10 [13:06:57]Write i2c OK [13:06:57]MH_I2C_Read... [13:06:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:06:58]Read from MH i2c: E2 [13:06:58]MH_I2C_Read... [13:06:58]Read from MH i2c: E2 03 00 [13:06:58]MH_I2C_Read... [13:06:58]Read from MH i2c: E2 03 00 50 4E 00 90 00 12 [13:06:58]RAPDU: 90 00 [13:06:58]wFMCommunicate OK [13:06:58]SAM_PROTO_ClearQueue done [13:06:58]KKMCreateOFDPacket [13:06:58]OFDProtocolAddRootSTLVToBuf [13:06:58]FM_MakeSignedData [13:06:58]FM_MakeSignedData [13:06:58]SAM_PROTO_SignData [13:06:58]wFMCommunicate request_size=4 [13:06:58]MH_SAM_APDU [13:06:58]CAPDU: 80 0D 01 02 [13:06:58]Write to MH i2c: E2 08 00 51 4E 80 0D 01 02 00 00 00 00 18 [13:06:58]Write i2c OK [13:06:58]MH_I2C_Read... [13:06:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:06:58]Read from MH i2c: E2 [13:06:58]MH_I2C_Read... [13:06:58]Read from MH i2c: E2 03 00 [13:06:58]MH_I2C_Read... [13:06:58]Read from MH i2c: E2 03 00 51 4E 00 90 00 13 [13:06:58]RAPDU: 90 00 [13:06:58]wFMCommunicate OK [13:06:58]wFMCommunicate request_size=255 [13:06:58]MH_SAM_APDU [13:06:58]CAPDU: 80 0D 02 02 FA 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 F9 DB E6 66 0E 04 04 00 FB 01 00 00 B9 [13:06:58]Write to MH i2c: E2 02 01 52 4E 80 0D 02 02 FA 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 F9 DB E6 66 0E 04 04 00 FB 01 00 00 B9 00 00 6B [13:06:58]Write i2c OK [13:06:58]MH_I2C_Read... [13:06:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:58]Read from MH i2c: E2 [13:06:58]MH_I2C_Read... [13:06:58]Read from MH i2c: E2 03 00 [13:06:58]MH_I2C_Read... [13:06:58]Read from MH i2c: E2 03 00 52 4E 00 90 00 14 [13:06:58]RAPDU: 90 00 [13:06:58]wFMCommunicate OK [13:06:58]wFMCommunicate request_size=67 [13:06:58]MH_SAM_APDU [13:06:58]CAPDU: 80 0D 02 02 3E 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BF 69 01 00 35 04 06 00 39 08 AC A0 C0 C4 [13:06:58]Write to MH i2c: E2 46 00 53 4E 80 0D 02 02 3E 00 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BF 69 01 00 35 04 06 00 39 08 AC A0 C0 C4 00 00 AB [13:06:58]Write i2c OK [13:06:58]MH_I2C_Read... [13:06:58]Read from MH i2c: E2 [13:06:58]MH_I2C_Read... [13:06:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:58]Read from MH i2c: E2 03 00 [13:06:58]MH_I2C_Read... [13:06:58]Read from MH i2c: E2 03 00 53 4E 00 90 00 15 [13:06:58]RAPDU: 90 00 [13:06:58]wFMCommunicate OK [13:06:58]wFMCommunicate request_size=4 [13:06:58]MH_SAM_APDU [13:06:58]CAPDU: 80 0D 03 02 [13:06:58]Write to MH i2c: E2 08 00 54 4E 80 0D 03 02 00 00 00 00 1D [13:06:58]Write i2c OK [13:06:58]MH_I2C_Read... [13:06:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:06:58]Read from MH i2c: E2 [13:06:58]MH_I2C_Read... [13:06:58]Read from MH i2c: E2 0B 00 [13:06:58]MH_I2C_Read... [13:06:58]Read from MH i2c: E2 0B 00 54 4E 00 7F 27 AA EC 8F 5C 63 97 90 00 3F [13:06:58]RAPDU: 7F 27 AA EC 8F 5C 63 97 90 00 [13:06:58]wFMCommunicate OK [13:06:58]SAM_PROTO_SignData done [13:06:58]FM_MakeSignedData done [13:06:58]CreateOFDProtocolMessage [13:06:58]wFMCommunicate request_size=4 [13:06:58]MH_SAM_APDU [13:06:58]CAPDU: 80 11 00 00 [13:06:58]Write to MH i2c: E2 08 00 55 4E 80 11 00 00 00 00 00 00 1D [13:06:58]Write i2c OK [13:06:58]MH_I2C_Read... [13:06:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:58]Read from MH i2c: E2 [13:06:58]MH_I2C_Read... [13:06:58]Read from MH i2c: E2 17 00 [13:06:58]MH_I2C_Read... [13:06:58]Read from MH i2c: E2 17 00 55 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 74 [13:06:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:06:58]wFMCommunicate OK [13:06:58]CreateOFDProtocolMessage done [13:06:58]OFDSenderStorePacket 92607 [13:06:58]StoreOFDPacket docnum=92607 [13:06:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 48 01 00 00 FC 39 40 01 4E 50 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 F9 DB E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BF 69 01 00 35 04 06 00 39 08 AC A0 C0 C4 7F 27 AA EC 8F 5C 63 97 [13:06:58]CheckFolder [13:06:58]dirname=/storage/ofd_packets [13:06:58]CheckFolder done [13:06:58]ProducePacketName [13:06:58]name=ofd_packets/00092607 [13:06:58]NVStorageSaveData ofd_packets/00092607 [13:06:58]File name is /storage/ofd_packets/00092607 [13:06:58]Write 358 bytes [13:06:58]NVStorageSaveData done [13:06:58]OFDSenderStorePacket done [13:06:58]KKMCreateOFDPacket done [13:06:58]NVStorageSaveData kkm_last_timestamp [13:06:58]File name is /storage/kkm_last_timestamp [13:06:58]Write 4 bytes [13:06:58]NVStorageSaveData done [13:06:58]ExternCall_PrintAddStr [13:06:58]wPrintStart [13:06:58]Write to MH i2c: 01 00 00 56 4E A4 [13:06:58]Write i2c OK [13:06:58]MH_I2C_Read... [13:06:58]Read from MH i2c: 01 [13:06:58]MH_I2C_Read... [13:06:58]Read from MH i2c: 01 07 00 [13:06:58]MH_I2C_Read... [13:06:58]Read from MH i2c: 01 07 00 56 4E 00 00 00 00 00 FF 0F B9 [13:06:58]RasterBufferAndPrint [13:06:58]line Счет N : (3)127501 [13:06:58]line ИНН: 02508201610067 [13:06:58]line Контрольно-Кассовый Чек [13:06:58]line ПРОДАЖА [13:06:58]line Товар: 5449000027474 [13:06:58]line Напиток FuzeTea зел чай манго,ромашка 1л [13:06:58]line 1.000 * 105.00 [13:06:58]line = 105.00 [13:06:58]line НДС 12% НСП 1% [13:06:58]line > о реализуемом товаре [13:06:58]line ИТОГО: 105.00 [13:06:58]line НСП 1% : 0.93 [13:06:58]line НДС 12% : 11.15 [13:06:58]line Наличными: 105.00 [13:06:58]line Безнал.: 0.00 [13:06:58]line Место: АЗС № 5 "Партнер Нефть" [13:06:58]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [13:06:58]line СНО: Общий режим [13:06:58]line Чек 55 15.09.2024 13:07 [13:06:58]line Смена: 507 ФФД: 1.0 [13:06:58]line ЗНМ: 03000000022 [13:06:58]line РНМ: 0000000000091423 [13:06:58]line Версия ККМ: 001 [13:06:58]line ФМ: 0000000000874692 [13:06:58]line ФД: 92607 [13:06:58]line ФПД: 62709418737860 [13:06:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T130705&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92607&fm=62709418737860&tin=02508201610067®Number=0000000000091423&sum=10500 [13:06:58]line 0 [13:06:58]written 0, free lines is 4095 [13:06:58]OFD Sender: Processing packet 92607 [packets to send 63, broken 62] [13:06:58]ProducePacketName [13:06:58]name=ofd_packets/00092607 [13:06:58]OFD Sender: To server: pG, [13:06:58]CommunicateWithHost lk.salyk.kg:30040 [13:06:58]ConnectInit lk.salyk.kg [13:06:58]Connected sock=10 [13:06:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 48 01 00 00 FC 39 40 01 4E 50 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 F9 DB E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BF 69 01 00 35 04 06 00 39 08 AC A0 C0 C4 7F 27 AA EC 8F 5C 63 97 [13:06:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 CC DB 47 00 04 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BF 69 01 00 F4 03 04 00 71 84 E6 66 B6 04 01 00 00 FF 5E 64 B0 F8 FA 5B B1 [13:06:58]CommunicateWithHost err = 0 [13:06:58]CheckOFDResponse [13:06:58]1017 (14) - 77093643461234 [13:06:58]1041 (16) - 0000000000874692 [13:06:58]1040 (4) - 92607 [13:06:58]1012 (4) - 15.09.2024 06:53 [13:06:58]1206 (1) - 0 [13:06:58]OFD Sender: Remove packet 92607 [13:06:58]ProducePacketName [13:06:58]name=ofd_packets/00092607 [13:06:58]NVStorageDeleteData [13:06:59]Write to MH i2c: 01 00 00 7F 4E CD [13:06:59]Write i2c OK [13:06:59]MH_I2C_Read... [13:06:59]Read from MH i2c: 01 [13:06:59]MH_I2C_Read... [13:06:59]Read from MH i2c: 01 07 00 [13:06:59]MH_I2C_Read... [13:06:59]Read from MH i2c: 01 07 00 7F 4E 00 00 00 00 00 22 0D 03 [13:06:59]RasterBufferAndPrint [13:06:59]line [13:06:59]line [13:06:59]line [13:06:59]line [13:06:59]line [13:06:59]written 0, free lines is 3369 [13:06:59]MH_Cut [13:06:59]Write to MH i2c: D1 01 00 86 4E 01 A6 [13:06:59]Write i2c OK [13:06:59]MH_I2C_Read... [13:06:59]Read from MH i2c: D1 [13:06:59]MH_I2C_Read... [13:06:59]Read from MH i2c: D1 01 00 [13:06:59]MH_I2C_Read... [13:06:59]Read from MH i2c: D1 01 00 86 4E 00 A5 [13:06:59]Write to MH i2c: 01 00 00 87 4E D5 [13:06:59]Write i2c OK [13:06:59]MH_I2C_Read... [13:06:59]OFD Sender: No OFD packet to send [13:06:59]*** Cut start [13:06:59]*** Purtial cut [13:06:59]*** Stage 1: CUTSNS_PIN = 1 [13:07:01]Read from MH i2c: 01 [13:07:01]MH_I2C_Read... [13:07:01]*** Stop cut motor [13:07:01]*** Cut end [13:07:01]Read from MH i2c: 01 07 00 [13:07:01]MH_I2C_Read... [13:07:01]Read from MH i2c: 01 07 00 87 4E 00 00 00 00 00 FF 0F EA [13:07:01]process_action close_receipt done [13:07:01]requested_data is exist [13:07:01]produce_requested_data [13:07:01]requested_item fm.sn is exist - process it [13:07:01]wFMCommunicate request_size=4 [13:07:01]MH_SAM_APDU [13:07:01]CAPDU: 80 11 00 00 [13:07:01]Write to MH i2c: E2 08 00 88 4E 80 11 00 00 00 00 00 00 50 [13:07:01]Write i2c OK [13:07:01]MH_I2C_Read... [13:07:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:01]Read from MH i2c: E2 [13:07:01]MH_I2C_Read... [13:07:01]Read from MH i2c: E2 17 00 [13:07:01]MH_I2C_Read... [13:07:01]Read from MH i2c: E2 17 00 88 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A7 [13:07:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:07:01]wFMCommunicate OK [13:07:01]requested_item fd.num is exist - process it [13:07:01]SAM_PROTO_GetFieldsCounters [13:07:01]wFMCommunicate request_size=4 [13:07:01]MH_SAM_APDU [13:07:01]CAPDU: 80 13 00 00 [13:07:01]Write to MH i2c: E2 08 00 89 4E 80 13 00 00 00 00 00 00 53 [13:07:01]Write i2c OK [13:07:01]MH_I2C_Read... [13:07:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:01]Read from MH i2c: E2 [13:07:01]MH_I2C_Read... [13:07:01]Read from MH i2c: E2 62 00 [13:07:01]MH_I2C_Read... [13:07:01]Read from MH i2c: E2 62 00 89 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BF 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [13:07:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BF 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:07:01]wFMCommunicate OK [13:07:01]SAM_PROTO_GetFieldsCounters done [13:07:01]requested_item shift.num is exist - process it [13:07:01]requested_item shift.opened is exist - process it [13:07:01]req_shift_opened [13:07:01]FM_GetShiftState [13:07:01]SAM_PROTO_GetShiftState [13:07:01]wFMCommunicate request_size=4 [13:07:01]MH_SAM_APDU [13:07:01]CAPDU: 80 13 01 00 [13:07:01]Write to MH i2c: E2 08 00 8A 4E 80 13 01 00 00 00 00 00 55 [13:07:01]Write i2c OK [13:07:01]MH_I2C_Read... [13:07:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:01]Read from MH i2c: E2 [13:07:01]MH_I2C_Read... [13:07:01]Read from MH i2c: E2 0E 00 [13:07:01]MH_I2C_Read... [13:07:01]Read from MH i2c: E2 0E 00 8A 4E 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 D7 [13:07:01]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:07:01]wFMCommunicate OK [13:07:01]SAM_PROTO_GetShiftState done [13:07:01]FM_GetShiftState done [13:07:01]req_shift_opened done [13:07:01]requested_item shift.open_date is exist - process it [13:07:01]req_shift_open_date [13:07:01]req_shift_open_date done [13:07:01]produce_requested_data done [13:07:01]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92607,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [13:07:01]process_action_free close_receipt [13:07:01]json_value_free [13:07:01]json_value_free done [13:07:01]process_json_proto returns [13:07:01]Send response to host [13:07:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92607,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [13:07:01]free response buf [13:07:01]execute_script done [13:07:01]execute_script returns [13:07:01]free content buf [13:07:01]Sock 9.Close socket [13:07:01]Sock 9.Thread stoped [13:07:04]OFD Sender: No OFD packet to send [13:07:09]OFD Sender: No OFD packet to send [13:07:14]OFD Sender: No OFD packet to send [13:07:16]accept exits with 8 [13:07:16]New connection [13:07:16]New thread 3066658148 created [13:07:16]Thread 3066801508 joined [13:07:16]Waiting for new connection... [13:07:16] Sock 8.Parse request [13:07:16]Sock 8.Check first char [13:07:16]Sock 8.First char is OK [13:07:16]request: POST /json_proto HTTP/1.0 [13:07:16]Method: POST [13:07:16]URL: /json_proto [13:07:16]Method is POST - this is cgi request [13:07:16]url: /json_proto [13:07:16]query_string will be loaded in cgi processing [13:07:16]execute_cgi json_proto POST (null) [13:07:16]execute_cgi path=json_proto method=POST [13:07:16]POST find Content-Length [13:07:16]Host: 172.17.57.71:8080 [13:07:16]Content-Length: 709 [13:07:16]Content-Type: application/json [13:07:16] [13:07:16]POST finish read [13:07:16]Found Content-Length = 709 [13:07:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127502", "tax_sys" : 0, "items" : [ { "code": "4600338000183", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u044F\u0431\u043B\u043E\u043A\u043E \u043E\u0441\u0432\u0435\u0442 0,2\u043B", "price" : 65.00, "quantity" : 4.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:16]execute_script... [13:07:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127502", "tax_sys" : 0, "items" : [ { "code": "4600338000183", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u044F\u0431\u043B\u043E\u043A\u043E \u043E\u0441\u0432\u0435\u0442 0,2\u043B", "price" : 65.00, "quantity" : 4.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:16]POST & json_proto [13:07:16]process_json_proto [13:07:16]json parsed OK: [13:07:16]protocol is kg_v1.0 [13:07:16]action value=close_receipt [13:07:16]process_action close_receipt [13:07:16]cmd_close_receipt [13:07:16]MH_GetDate [13:07:16]Write to MH i2c: F0 00 00 8B 4E C8 [13:07:16]Write i2c OK [13:07:16]MH_I2C_Read... [13:07:16]Read from MH i2c: F0 [13:07:16]MH_I2C_Read... [13:07:16]Read from MH i2c: F0 09 00 [13:07:16]MH_I2C_Read... [13:07:16]Read from MH i2c: F0 09 00 8B 4E 00 0D DC E6 66 33 3A A4 66 7D [13:07:16]GetLastDocTimeStamp 1726405625 [13:07:16]current date 1726405645 [13:07:16]FM_GetShiftState [13:07:16]SAM_PROTO_GetShiftState [13:07:16]wFMCommunicate request_size=4 [13:07:16]MH_SAM_APDU [13:07:16]CAPDU: 80 13 01 00 [13:07:16]Write to MH i2c: E2 08 00 8C 4E 80 13 01 00 00 00 00 00 57 [13:07:16]Write i2c OK [13:07:16]MH_I2C_Read... [13:07:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:16]Read from MH i2c: E2 [13:07:16]MH_I2C_Read... [13:07:16]Read from MH i2c: E2 0E 00 [13:07:16]MH_I2C_Read... [13:07:16]Read from MH i2c: E2 0E 00 8C 4E 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 D9 [13:07:16]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:07:16]wFMCommunicate OK [13:07:16]SAM_PROTO_GetShiftState done [13:07:16]FM_GetShiftState done [13:07:16]opened in 1726359809 [13:07:16]opened+sec_in_day 1726446209 [13:07:16]quantity*price = 26000 [13:07:16]sum+1 = 26001 [13:07:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 56 15.09.2024 13:07 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92608 ФПД: 104726850464844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T130725&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92608&fm=104726850464844&tin=02508201610067®Number=0000000000091423&sum=26000 0 [13:07:17]StoreToDocumentArchive [13:07:17]shift 507 fd 92608 [13:07:17]save to /storage/0507/doc_00092608 [13:07:17]save last doc name /storage/0507/doc_00092608 to /storage/kkm_last_doc_name [13:07:17]save OK [13:07:17]Clear old archive folders... [13:07:17]ProcessDocumentItem done err = 0, tmpTLVsize=298 [13:07:17]tlvbuf is 010C8210 [13:07:17]SAM_PROTO_ClearQueue [13:07:17]wFMCommunicate request_size=4 [13:07:17]MH_SAM_APDU [13:07:17]CAPDU: 80 09 00 00 [13:07:17]Write to MH i2c: E2 08 00 99 4E 80 09 00 00 00 00 00 00 59 [13:07:17]Write i2c OK [13:07:17]MH_I2C_Read... [13:07:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:17]Read from MH i2c: E2 [13:07:17]MH_I2C_Read... [13:07:17]Read from MH i2c: E2 03 00 [13:07:17]MH_I2C_Read... [13:07:17]Read from MH i2c: E2 03 00 99 4E 00 90 00 5B [13:07:17]RAPDU: 90 00 [13:07:17]wFMCommunicate OK [13:07:17]SAM_PROTO_ClearQueue done [13:07:17]KKMCreateOFDPacket [13:07:17]OFDProtocolAddRootSTLVToBuf [13:07:17]FM_MakeSignedData [13:07:17]FM_MakeSignedData [13:07:17]SAM_PROTO_SignData [13:07:17]wFMCommunicate request_size=4 [13:07:17]MH_SAM_APDU [13:07:17]CAPDU: 80 0D 01 02 [13:07:17]Write to MH i2c: E2 08 00 9A 4E 80 0D 01 02 00 00 00 00 61 [13:07:17]Write i2c OK [13:07:17]MH_I2C_Read... [13:07:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:17]Read from MH i2c: E2 [13:07:17]MH_I2C_Read... [13:07:17]Read from MH i2c: E2 03 00 [13:07:17]MH_I2C_Read... [13:07:17]Read from MH i2c: E2 03 00 9A 4E 00 90 00 5C [13:07:17]RAPDU: 90 00 [13:07:17]wFMCommunicate OK [13:07:17]wFMCommunicate request_size=255 [13:07:17]MH_SAM_APDU [13:07:17]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 0D DC E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [13:07:18]Write to MH i2c: E2 02 01 9B 4E 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 0D DC E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 57 [13:07:18]Write i2c OK [13:07:18]MH_I2C_Read... [13:07:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:18]Read from MH i2c: E2 [13:07:18]MH_I2C_Read... [13:07:18]Read from MH i2c: E2 03 00 [13:07:18]MH_I2C_Read... [13:07:18]Read from MH i2c: E2 03 00 9B 4E 00 90 00 5D [13:07:18]RAPDU: 90 00 [13:07:18]wFMCommunicate OK [13:07:18]wFMCommunicate request_size=57 [13:07:18]MH_SAM_APDU [13:07:18]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C0 69 01 00 35 04 06 00 5F 3F 9E B8 6C 4C [13:07:18]Write to MH i2c: E2 3C 00 9C 4E 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C0 69 01 00 35 04 06 00 5F 3F 9E B8 6C 4C 00 00 F5 [13:07:18]Write i2c OK [13:07:18]MH_I2C_Read... [13:07:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:18]Read from MH i2c: E2 [13:07:18]MH_I2C_Read... [13:07:18]Read from MH i2c: E2 03 00 [13:07:18]MH_I2C_Read... [13:07:18]Read from MH i2c: E2 03 00 9C 4E 00 90 00 5E [13:07:18]RAPDU: 90 00 [13:07:18]wFMCommunicate OK [13:07:18]wFMCommunicate request_size=4 [13:07:18]MH_SAM_APDU [13:07:18]CAPDU: 80 0D 03 02 [13:07:18]Write to MH i2c: E2 08 00 9D 4E 80 0D 03 02 00 00 00 00 66 [13:07:18]Write i2c OK [13:07:18]MH_I2C_Read... [13:07:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:18]Read from MH i2c: E2 [13:07:18]MH_I2C_Read... [13:07:18]Read from MH i2c: E2 0B 00 [13:07:18]MH_I2C_Read... [13:07:18]Read from MH i2c: E2 0B 00 9D 4E 00 AC C5 FB 49 FE 02 93 1E 90 00 CD [13:07:18]RAPDU: AC C5 FB 49 FE 02 93 1E 90 00 [13:07:18]wFMCommunicate OK [13:07:18]SAM_PROTO_SignData done [13:07:18]FM_MakeSignedData done [13:07:18]CreateOFDProtocolMessage [13:07:18]wFMCommunicate request_size=4 [13:07:18]MH_SAM_APDU [13:07:18]CAPDU: 80 11 00 00 [13:07:18]Write to MH i2c: E2 08 00 9E 4E 80 11 00 00 00 00 00 00 66 [13:07:18]Write i2c OK [13:07:18]MH_I2C_Read... [13:07:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:18]Read from MH i2c: E2 [13:07:18]MH_I2C_Read... [13:07:18]Read from MH i2c: E2 17 00 [13:07:18]MH_I2C_Read... [13:07:18]Read from MH i2c: E2 17 00 9E 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 BD [13:07:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:07:18]wFMCommunicate OK [13:07:18]CreateOFDProtocolMessage done [13:07:18]OFDSenderStorePacket 92608 [13:07:18]StoreOFDPacket docnum=92608 [13:07:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3E 01 00 00 3E 30 36 01 CE 6E 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 0D DC E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C0 69 01 00 35 04 06 00 5F 3F 9E B8 6C 4C AC C5 FB 49 FE 02 93 1E [13:07:18]CheckFolder [13:07:18]dirname=/storage/ofd_packets [13:07:18]CheckFolder done [13:07:18]ProducePacketName [13:07:18]name=ofd_packets/00092608 [13:07:18]NVStorageSaveData ofd_packets/00092608 [13:07:18]File name is /storage/ofd_packets/00092608 [13:07:18]Write 348 bytes [13:07:18]NVStorageSaveData done [13:07:18]OFDSenderStorePacket done [13:07:18]KKMCreateOFDPacket done [13:07:18]NVStorageSaveData kkm_last_timestamp [13:07:18]File name is /storage/kkm_last_timestamp [13:07:18]Write 4 bytes [13:07:18]NVStorageSaveData done [13:07:18]ExternCall_PrintAddStr [13:07:18]wPrintStart [13:07:18]Write to MH i2c: 01 00 00 9F 4E ED [13:07:18]Write i2c OK [13:07:18]MH_I2C_Read... [13:07:18]Read from MH i2c: 01 [13:07:18]MH_I2C_Read... [13:07:18]Read from MH i2c: 01 07 00 [13:07:18]MH_I2C_Read... [13:07:18]Read from MH i2c: 01 07 00 9F 4E 00 00 00 00 00 FF 0F 02 [13:07:18]RasterBufferAndPrint [13:07:18]line Счет N : (3)127502 [13:07:18]line ИНН: 02508201610067 [13:07:18]line Контрольно-Кассовый Чек [13:07:18]line ПРОДАЖА [13:07:18]line Товар: 4600338000183 [13:07:18]line Сок Фруто НЯНЯ яблоко освет 0,2л [13:07:18]line 4.000 * 65.00 [13:07:18]line = 260.00 [13:07:18]line НДС 12% НСП 1% [13:07:18]line > о реализуемом товаре [13:07:18]line ИТОГО: 260.00 [13:07:18]line НСП 1% : 2.30 [13:07:18]line НДС 12% : 27.61 [13:07:18]line Наличными: 260.00 [13:07:18]line Безнал.: 0.00 [13:07:18]line Место: АЗС № 5 "Партнер Нефть" [13:07:18]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [13:07:18]line СНО: Общий режим [13:07:18]line Чек 56 15.09.2024 13:07 [13:07:18]line Смена: 507 ФФД: 1.0 [13:07:18]line ЗНМ: 03000000022 [13:07:18]line РНМ: 0000000000091423 [13:07:18]line Версия ККМ: 001 [13:07:18]line ФМ: 0000000000874692 [13:07:18]line ФД: 92608 [13:07:18]line ФПД: 104726850464844 [13:07:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T130725&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92608&fm=104726850464844&tin=02508201610067®Number=0000000000091423&sum=26000 [13:07:18]line 0 [13:07:18]OFD Sender: Processing packet 92608 [packets to send 63, broken 62] [13:07:18]ProducePacketName [13:07:18]name=ofd_packets/00092608 [13:07:18]OFD Sender: To server: pG, [13:07:18]CommunicateWithHost lk.salyk.kg:30040 [13:07:18]ConnectInit lk.salyk.kg [13:07:18]written 0, free lines is 4095 [13:07:18]Connected sock=10 [13:07:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3E 01 00 00 3E 30 36 01 CE 6E 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 0D DC E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C0 69 01 00 35 04 06 00 5F 3F 9E B8 6C 4C AC C5 FB 49 FE 02 93 1E [13:07:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 4F E6 47 00 AD 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C0 69 01 00 F4 03 04 00 85 84 E6 66 B6 04 01 00 00 5A 8E 94 BD 10 22 29 78 [13:07:19]CommunicateWithHost err = 0 [13:07:19]CheckOFDResponse [13:07:19]1017 (14) - 77093643461234 [13:07:19]1041 (16) - 0000000000874692 [13:07:19]1040 (4) - 92608 [13:07:19]1012 (4) - 15.09.2024 06:53 [13:07:19]1206 (1) - 0 [13:07:19]OFD Sender: Remove packet 92608 [13:07:19]ProducePacketName [13:07:19]name=ofd_packets/00092608 [13:07:19]NVStorageDeleteData [13:07:19]Write to MH i2c: 01 00 00 C8 4E 16 [13:07:19]Write i2c OK [13:07:19]MH_I2C_Read... [13:07:19]Read from MH i2c: 01 [13:07:19]MH_I2C_Read... [13:07:19]Read from MH i2c: 01 07 00 [13:07:19]MH_I2C_Read... [13:07:19]Read from MH i2c: 01 07 00 C8 4E 00 00 00 00 00 20 0D 4A [13:07:19]RasterBufferAndPrint [13:07:19]line [13:07:19]line [13:07:19]line [13:07:19]line [13:07:19]line [13:07:19]written 0, free lines is 3366 [13:07:19]MH_Cut [13:07:19]Write to MH i2c: D1 01 00 CF 4E 01 EF [13:07:19]Write i2c OK [13:07:19]MH_I2C_Read... [13:07:19]Read from MH i2c: D1 [13:07:19]MH_I2C_Read... [13:07:19]Read from MH i2c: D1 01 00 [13:07:19]MH_I2C_Read... [13:07:19]Read from MH i2c: D1 01 00 CF 4E 00 EE [13:07:19]Write to MH i2c: 01 00 00 D0 4E 1E [13:07:19]Write i2c OK [13:07:19]MH_I2C_Read... [13:07:19]OFD Sender: No OFD packet to send [13:07:19]*** Cut start [13:07:19]*** Purtial cut [13:07:19]*** Stage 1: CUTSNS_PIN = 1 [13:07:21]Read from MH i2c: 01 [13:07:21]MH_I2C_Read... [13:07:21]*** Stop cut motor [13:07:21]*** Cut end [13:07:21]Read from MH i2c: 01 07 00 [13:07:21]MH_I2C_Read... [13:07:21]Read from MH i2c: 01 07 00 D0 4E 00 00 00 00 00 FF 0F 33 [13:07:21]process_action close_receipt done [13:07:21]requested_data is exist [13:07:21]produce_requested_data [13:07:21]requested_item fm.sn is exist - process it [13:07:21]wFMCommunicate request_size=4 [13:07:21]MH_SAM_APDU [13:07:21]CAPDU: 80 11 00 00 [13:07:21]Write to MH i2c: E2 08 00 D1 4E 80 11 00 00 00 00 00 00 99 [13:07:21]Write i2c OK [13:07:21]MH_I2C_Read... [13:07:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:21]Read from MH i2c: E2 [13:07:21]MH_I2C_Read... [13:07:21]Read from MH i2c: E2 17 00 [13:07:21]MH_I2C_Read... [13:07:21]Read from MH i2c: E2 17 00 D1 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F0 [13:07:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:07:21]wFMCommunicate OK [13:07:21]requested_item fd.num is exist - process it [13:07:21]SAM_PROTO_GetFieldsCounters [13:07:21]wFMCommunicate request_size=4 [13:07:21]MH_SAM_APDU [13:07:21]CAPDU: 80 13 00 00 [13:07:21]Write to MH i2c: E2 08 00 D2 4E 80 13 00 00 00 00 00 00 9C [13:07:21]Write i2c OK [13:07:21]MH_I2C_Read... [13:07:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:22]Read from MH i2c: E2 [13:07:22]MH_I2C_Read... [13:07:22]Read from MH i2c: E2 62 00 [13:07:22]MH_I2C_Read... [13:07:22]Read from MH i2c: E2 62 00 D2 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C0 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [13:07:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C0 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:07:22]wFMCommunicate OK [13:07:22]SAM_PROTO_GetFieldsCounters done [13:07:22]requested_item shift.num is exist - process it [13:07:22]requested_item shift.opened is exist - process it [13:07:22]req_shift_opened [13:07:22]FM_GetShiftState [13:07:22]SAM_PROTO_GetShiftState [13:07:22]wFMCommunicate request_size=4 [13:07:22]MH_SAM_APDU [13:07:22]CAPDU: 80 13 01 00 [13:07:22]Write to MH i2c: E2 08 00 D3 4E 80 13 01 00 00 00 00 00 9E [13:07:22]Write i2c OK [13:07:22]MH_I2C_Read... [13:07:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:22]Read from MH i2c: E2 [13:07:22]MH_I2C_Read... [13:07:22]Read from MH i2c: E2 0E 00 [13:07:22]MH_I2C_Read... [13:07:22]Read from MH i2c: E2 0E 00 D3 4E 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 20 [13:07:22]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:07:22]wFMCommunicate OK [13:07:22]SAM_PROTO_GetShiftState done [13:07:22]FM_GetShiftState done [13:07:22]req_shift_opened done [13:07:22]requested_item shift.open_date is exist - process it [13:07:22]req_shift_open_date [13:07:22]req_shift_open_date done [13:07:22]produce_requested_data done [13:07:22]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92608,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [13:07:22]process_action_free close_receipt [13:07:22]json_value_free [13:07:22]json_value_free done [13:07:22]process_json_proto returns [13:07:22]Send response to host [13:07:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92608,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [13:07:22]free response buf [13:07:22]execute_script done [13:07:22]execute_script returns [13:07:22]free content buf [13:07:22]Sock 8.Close socket [13:07:22]Sock 8.Thread stoped [13:07:24]OFD Sender: No OFD packet to send [13:07:29]OFD Sender: No OFD packet to send [13:07:34]OFD Sender: No OFD packet to send [13:07:39]OFD Sender: No OFD packet to send [13:07:44]OFD Sender: No OFD packet to send [13:07:49]OFD Sender: No OFD packet to send [13:07:54]OFD Sender: No OFD packet to send [13:07:59]OFD Sender: No OFD packet to send [13:08:04]OFD Sender: No OFD packet to send [13:08:09]OFD Sender: No OFD packet to send [13:08:14]OFD Sender: No OFD packet to send [13:08:19]OFD Sender: No OFD packet to send [13:08:24]OFD Sender: No OFD packet to send [13:08:29]OFD Sender: No OFD packet to send [13:08:33]accept exits with 9 [13:08:33]New connection [13:08:33]New thread 3066801508 created [13:08:33]Thread 3066658148 joined [13:08:33]Waiting for new connection... [13:08:33] Sock 9.Parse request [13:08:33]Sock 9.Check first char [13:08:33]Sock 9.First char is OK [13:08:33]request: POST /json_proto HTTP/1.0 [13:08:33]Method: POST [13:08:33]URL: /json_proto [13:08:33]Method is POST - this is cgi request [13:08:33]url: /json_proto [13:08:33]query_string will be loaded in cgi processing [13:08:33]execute_cgi json_proto POST (null) [13:08:33]execute_cgi path=json_proto method=POST [13:08:33]POST find Content-Length [13:08:33]Host: 172.17.57.71:8080 [13:08:33]Content-Length: 632 [13:08:33]Content-Type: application/json [13:08:33] [13:08:33]POST finish read [13:08:33]Found Content-Length = 632 [13:08:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127503", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:33]execute_script... [13:08:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127503", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:33]POST & json_proto [13:08:33]process_json_proto [13:08:33]json parsed OK: [13:08:33]protocol is kg_v1.0 [13:08:33]action value=close_receipt [13:08:33]process_action close_receipt [13:08:33]cmd_close_receipt [13:08:33]MH_GetDate [13:08:33]Write to MH i2c: F0 00 00 D4 4E 11 [13:08:33]Write i2c OK [13:08:33]MH_I2C_Read... [13:08:33]Read from MH i2c: F0 [13:08:33]MH_I2C_Read... [13:08:33]Read from MH i2c: F0 09 00 [13:08:33]MH_I2C_Read... [13:08:33]Read from MH i2c: F0 09 00 D4 4E 00 5A DC E6 66 33 3A A4 66 13 [13:08:33]GetLastDocTimeStamp 1726405645 [13:08:33]current date 1726405722 [13:08:33]FM_GetShiftState [13:08:33]SAM_PROTO_GetShiftState [13:08:33]wFMCommunicate request_size=4 [13:08:33]MH_SAM_APDU [13:08:33]CAPDU: 80 13 01 00 [13:08:33]Write to MH i2c: E2 08 00 D5 4E 80 13 01 00 00 00 00 00 A0 [13:08:33]Write i2c OK [13:08:33]MH_I2C_Read... [13:08:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:33]Read from MH i2c: E2 [13:08:33]MH_I2C_Read... [13:08:33]Read from MH i2c: E2 0E 00 [13:08:33]MH_I2C_Read... [13:08:33]Read from MH i2c: E2 0E 00 D5 4E 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 22 [13:08:33]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:08:33]wFMCommunicate OK [13:08:33]SAM_PROTO_GetShiftState done [13:08:33]FM_GetShiftState done [13:08:33]opened in 1726359809 [13:08:33]opened+sec_in_day 1726446209 [13:08:33]quantity*price = 6000 [13:08:33]sum+1 = 6001 [13:08:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 57 15.09.2024 13:08 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92609 ФПД: 200942254888855 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T130842&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92609&fm=200942254888855&tin=02508201610067®Number=0000000000091423&sum=6000 0 [13:08:35]StoreToDocumentArchive [13:08:35]shift 507 fd 92609 [13:08:35]save to /storage/0507/doc_00092609 [13:08:35]save last doc name /storage/0507/doc_00092609 to /storage/kkm_last_doc_name [13:08:35]save OK [13:08:35]Clear old archive folders... [13:08:35]ProcessDocumentItem done err = 0, tmpTLVsize=271 [13:08:35]tlvbuf is 011130D0 [13:08:35]SAM_PROTO_ClearQueue [13:08:35]wFMCommunicate request_size=4 [13:08:35]MH_SAM_APDU [13:08:35]CAPDU: 80 09 00 00 [13:08:35]Write to MH i2c: E2 08 00 E2 4E 80 09 00 00 00 00 00 00 A2 [13:08:35]Write i2c OK [13:08:35]MH_I2C_Read... [13:08:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:08:35]Read from MH i2c: E2 [13:08:35]MH_I2C_Read... [13:08:35]Read from MH i2c: E2 03 00 [13:08:35]MH_I2C_Read... [13:08:35]Read from MH i2c: E2 03 00 E2 4E 00 90 00 A4 [13:08:35]RAPDU: 90 00 [13:08:35]wFMCommunicate OK [13:08:35]SAM_PROTO_ClearQueue done [13:08:35]KKMCreateOFDPacket [13:08:35]OFDProtocolAddRootSTLVToBuf [13:08:35]FM_MakeSignedData [13:08:35]FM_MakeSignedData [13:08:35]SAM_PROTO_SignData [13:08:35]wFMCommunicate request_size=4 [13:08:35]MH_SAM_APDU [13:08:35]CAPDU: 80 0D 01 02 [13:08:35]Write to MH i2c: E2 08 00 E3 4E 80 0D 01 02 00 00 00 00 AA [13:08:35]Write i2c OK [13:08:35]MH_I2C_Read... [13:08:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:08:35]Read from MH i2c: E2 [13:08:35]MH_I2C_Read... [13:08:35]Read from MH i2c: E2 03 00 [13:08:35]MH_I2C_Read... [13:08:35]Read from MH i2c: E2 03 00 E3 4E 00 90 00 A5 [13:08:35]RAPDU: 90 00 [13:08:35]wFMCommunicate OK [13:08:35]wFMCommunicate request_size=255 [13:08:35]MH_SAM_APDU [13:08:35]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 5A DC E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 [13:08:35]Write to MH i2c: E2 02 01 E4 4E 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 5A DC E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 8A [13:08:35]Write i2c OK [13:08:35]MH_I2C_Read... [13:08:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:35]Read from MH i2c: E2 [13:08:35]MH_I2C_Read... [13:08:35]Read from MH i2c: E2 03 00 [13:08:35]MH_I2C_Read... [13:08:35]Read from MH i2c: E2 03 00 E4 4E 00 90 00 A6 [13:08:35]RAPDU: 90 00 [13:08:35]wFMCommunicate OK [13:08:35]wFMCommunicate request_size=30 [13:08:35]MH_SAM_APDU [13:08:35]CAPDU: 80 0D 02 02 19 30 38 37 34 36 39 32 10 04 04 00 C1 69 01 00 35 04 06 00 B6 C1 83 B9 17 97 [13:08:35]Write to MH i2c: E2 21 00 E5 4E 80 0D 02 02 19 00 30 38 37 34 36 39 32 10 04 04 00 C1 69 01 00 35 04 06 00 B6 C1 83 B9 17 97 00 00 36 [13:08:35]Write i2c OK [13:08:35]MH_I2C_Read... [13:08:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:35]Read from MH i2c: E2 [13:08:35]MH_I2C_Read... [13:08:35]Read from MH i2c: E2 03 00 [13:08:35]MH_I2C_Read... [13:08:35]Read from MH i2c: E2 03 00 E5 4E 00 90 00 A7 [13:08:35]RAPDU: 90 00 [13:08:35]wFMCommunicate OK [13:08:35]wFMCommunicate request_size=4 [13:08:35]MH_SAM_APDU [13:08:35]CAPDU: 80 0D 03 02 [13:08:35]Write to MH i2c: E2 08 00 E6 4E 80 0D 03 02 00 00 00 00 AF [13:08:35]Write i2c OK [13:08:35]MH_I2C_Read... [13:08:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:08:35]Read from MH i2c: E2 [13:08:35]MH_I2C_Read... [13:08:35]Read from MH i2c: E2 0B 00 [13:08:35]MH_I2C_Read... [13:08:35]Read from MH i2c: E2 0B 00 E6 4E 00 6C DB B6 C3 F4 19 D3 DB 90 00 2B [13:08:35]RAPDU: 6C DB B6 C3 F4 19 D3 DB 90 00 [13:08:35]wFMCommunicate OK [13:08:35]SAM_PROTO_SignData done [13:08:35]FM_MakeSignedData done [13:08:35]CreateOFDProtocolMessage [13:08:35]wFMCommunicate request_size=4 [13:08:35]MH_SAM_APDU [13:08:35]CAPDU: 80 11 00 00 [13:08:35]Write to MH i2c: E2 08 00 E7 4E 80 11 00 00 00 00 00 00 AF [13:08:35]Write i2c OK [13:08:35]MH_I2C_Read... [13:08:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:35]Read from MH i2c: E2 [13:08:35]MH_I2C_Read... [13:08:35]Read from MH i2c: E2 17 00 [13:08:35]MH_I2C_Read... [13:08:35]Read from MH i2c: E2 17 00 E7 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 06 [13:08:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:08:35]wFMCommunicate OK [13:08:35]CreateOFDProtocolMessage done [13:08:35]OFDSenderStorePacket 92609 [13:08:35]StoreOFDPacket docnum=92609 [13:08:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 6A BA 1B 01 24 57 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 5A DC E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C1 69 01 00 35 04 06 00 B6 C1 83 B9 17 97 6C DB B6 C3 F4 19 D3 DB [13:08:35]CheckFolder [13:08:35]dirname=/storage/ofd_packets [13:08:35]CheckFolder done [13:08:35]ProducePacketName [13:08:35]name=ofd_packets/00092609 [13:08:35]NVStorageSaveData ofd_packets/00092609 [13:08:35]File name is /storage/ofd_packets/00092609 [13:08:35]Write 321 bytes [13:08:35]NVStorageSaveData done [13:08:35]OFDSenderStorePacket done [13:08:35]KKMCreateOFDPacket done [13:08:35]NVStorageSaveData kkm_last_timestamp [13:08:35]File name is /storage/kkm_last_timestamp [13:08:35]Write 4 bytes [13:08:35]NVStorageSaveData done [13:08:35]ExternCall_PrintAddStr [13:08:35]wPrintStart [13:08:35]Write to MH i2c: 01 00 00 E8 4E 36 [13:08:35]Write i2c OK [13:08:35]MH_I2C_Read... [13:08:35]Read from MH i2c: 01 [13:08:35]MH_I2C_Read... [13:08:35]Read from MH i2c: 01 07 00 [13:08:35]MH_I2C_Read... [13:08:35]Read from MH i2c: 01 07 00 E8 4E 00 00 00 00 00 FF 0F 4B [13:08:35]RasterBufferAndPrint [13:08:35]line Счет N : (3)127503 [13:08:35]line ИНН: 02508201610067 [13:08:35]line Контрольно-Кассовый Чек [13:08:35]line ПРОДАЖА [13:08:35]line Товар: 4700000160204 [13:08:35]line Вода Легенда 1,5л [13:08:35]line 1.000 * 60.00 [13:08:35]line = 60.00 [13:08:35]line НДС 12% НСП 1% [13:08:35]line > о реализуемом товаре [13:08:35]line ИТОГО: 60.00 [13:08:35]line НСП 1% : 0.53 [13:08:35]line НДС 12% : 6.37 [13:08:35]line Наличными: 60.00 [13:08:35]line Безнал.: 0.00 [13:08:35]line Место: АЗС № 5 "Партнер Нефть" [13:08:35]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [13:08:35]line СНО: Общий режим [13:08:35]line Чек 57 15.09.2024 13:08 [13:08:35]line Смена: 507 ФФД: 1.0 [13:08:35]line ЗНМ: 03000000022 [13:08:35]line РНМ: 0000000000091423 [13:08:35]line Версия ККМ: 001 [13:08:35]line ФМ: 0000000000874692 [13:08:35]line ФД: 92609 [13:08:35]line ФПД: 200942254888855 [13:08:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T130842&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92609&fm=200942254888855&tin=02508201610067®Number=0000000000091423&sum=6000 [13:08:35]line 0 [13:08:35]written 0, free lines is 4095 [13:08:35]OFD Sender: Processing packet 92609 [packets to send 63, broken 62] [13:08:35]ProducePacketName [13:08:35]name=ofd_packets/00092609 [13:08:35]OFD Sender: To server: pG, [13:08:35]CommunicateWithHost lk.salyk.kg:30040 [13:08:35]ConnectInit lk.salyk.kg [13:08:35]Connected sock=11 [13:08:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 6A BA 1B 01 24 57 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 5A DC E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C1 69 01 00 35 04 06 00 B6 C1 83 B9 17 97 6C DB B6 C3 F4 19 D3 DB [13:08:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 80 C7 47 00 BE B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C1 69 01 00 F4 03 04 00 D2 84 E6 66 B6 04 01 00 00 17 31 F8 B5 FB EF 50 3D [13:08:35]CommunicateWithHost err = 0 [13:08:35]CheckOFDResponse [13:08:35]1017 (14) - 77093643461234 [13:08:35]1041 (16) - 0000000000874692 [13:08:35]1040 (4) - 92609 [13:08:35]1012 (4) - 15.09.2024 06:55 [13:08:35]1206 (1) - 0 [13:08:35]OFD Sender: Remove packet 92609 [13:08:35]ProducePacketName [13:08:35]name=ofd_packets/00092609 [13:08:35]NVStorageDeleteData [13:08:36]Write to MH i2c: 01 00 00 10 4F 5F [13:08:36]Write i2c OK [13:08:36]MH_I2C_Read... [13:08:36]Read from MH i2c: 01 [13:08:36]MH_I2C_Read... [13:08:36]Read from MH i2c: 01 07 00 [13:08:36]MH_I2C_Read... [13:08:36]Read from MH i2c: 01 07 00 10 4F 00 00 00 00 00 26 0D 99 [13:08:36]RasterBufferAndPrint [13:08:36]line [13:08:36]line [13:08:36]line [13:08:36]line [13:08:36]line [13:08:36]written 0, free lines is 3371 [13:08:36]MH_Cut [13:08:36]Write to MH i2c: D1 01 00 17 4F 01 38 [13:08:36]Write i2c OK [13:08:36]MH_I2C_Read... [13:08:36]Read from MH i2c: D1 [13:08:36]MH_I2C_Read... [13:08:36]Read from MH i2c: D1 01 00 [13:08:36]MH_I2C_Read... [13:08:36]Read from MH i2c: D1 01 00 17 4F 00 37 [13:08:36]Write to MH i2c: 01 00 00 18 4F 67 [13:08:36]Write i2c OK [13:08:36]MH_I2C_Read... [13:08:36]OFD Sender: No OFD packet to send [13:08:36]*** Cut start [13:08:36]*** Purtial cut [13:08:36]*** Stage 1: CUTSNS_PIN = 1 [13:08:38]Read from MH i2c: 01 [13:08:38]MH_I2C_Read... [13:08:38]*** Stop cut motor [13:08:38]*** Cut end [13:08:38]Read from MH i2c: 01 07 00 [13:08:38]MH_I2C_Read... [13:08:38]Read from MH i2c: 01 07 00 18 4F 00 00 00 00 00 FF 0F 7C [13:08:38]process_action close_receipt done [13:08:38]requested_data is exist [13:08:38]produce_requested_data [13:08:38]requested_item fm.sn is exist - process it [13:08:38]wFMCommunicate request_size=4 [13:08:38]MH_SAM_APDU [13:08:38]CAPDU: 80 11 00 00 [13:08:38]Write to MH i2c: E2 08 00 19 4F 80 11 00 00 00 00 00 00 E2 [13:08:38]Write i2c OK [13:08:38]MH_I2C_Read... [13:08:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:38]Read from MH i2c: E2 [13:08:38]MH_I2C_Read... [13:08:38]Read from MH i2c: E2 17 00 [13:08:38]MH_I2C_Read... [13:08:38]Read from MH i2c: E2 17 00 19 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 39 [13:08:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:08:38]wFMCommunicate OK [13:08:38]requested_item fd.num is exist - process it [13:08:38]SAM_PROTO_GetFieldsCounters [13:08:38]wFMCommunicate request_size=4 [13:08:38]MH_SAM_APDU [13:08:38]CAPDU: 80 13 00 00 [13:08:38]Write to MH i2c: E2 08 00 1A 4F 80 13 00 00 00 00 00 00 E5 [13:08:38]Write i2c OK [13:08:38]MH_I2C_Read... [13:08:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:08:38]Read from MH i2c: E2 [13:08:38]MH_I2C_Read... [13:08:38]Read from MH i2c: E2 62 00 [13:08:38]MH_I2C_Read... [13:08:38]Read from MH i2c: E2 62 00 1A 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C1 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [13:08:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C1 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:08:38]wFMCommunicate OK [13:08:38]SAM_PROTO_GetFieldsCounters done [13:08:38]requested_item shift.num is exist - process it [13:08:38]requested_item shift.opened is exist - process it [13:08:38]req_shift_opened [13:08:38]FM_GetShiftState [13:08:38]SAM_PROTO_GetShiftState [13:08:38]wFMCommunicate request_size=4 [13:08:38]MH_SAM_APDU [13:08:38]CAPDU: 80 13 01 00 [13:08:38]Write to MH i2c: E2 08 00 1B 4F 80 13 01 00 00 00 00 00 E7 [13:08:38]Write i2c OK [13:08:38]MH_I2C_Read... [13:08:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:38]Read from MH i2c: E2 [13:08:38]MH_I2C_Read... [13:08:38]Read from MH i2c: E2 0E 00 [13:08:38]MH_I2C_Read... [13:08:38]Read from MH i2c: E2 0E 00 1B 4F 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 69 [13:08:38]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:08:38]wFMCommunicate OK [13:08:38]SAM_PROTO_GetShiftState done [13:08:38]FM_GetShiftState done [13:08:38]req_shift_opened done [13:08:38]requested_item shift.open_date is exist - process it [13:08:38]req_shift_open_date [13:08:38]req_shift_open_date done [13:08:38]produce_requested_data done [13:08:38]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92609,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [13:08:38]process_action_free close_receipt [13:08:38]json_value_free [13:08:38]json_value_free done [13:08:38]process_json_proto returns [13:08:38]Send response to host [13:08:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92609,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [13:08:38]free response buf [13:08:38]execute_script done [13:08:38]execute_script returns [13:08:38]free content buf [13:08:38]Sock 9.Close socket [13:08:38]Sock 9.Thread stoped [13:08:41]OFD Sender: No OFD packet to send [13:08:46]OFD Sender: No OFD packet to send [13:08:51]OFD Sender: No OFD packet to send [13:08:56]OFD Sender: No OFD packet to send [13:09:01]OFD Sender: No OFD packet to send [13:09:06]OFD Sender: No OFD packet to send [13:09:07]accept exits with 8 [13:09:07]New connection [13:09:07]New thread 3066658148 created [13:09:07]Thread 3066801508 joined [13:09:07]Waiting for new connection... [13:09:07] Sock 8.Parse request [13:09:07]Sock 8.Check first char [13:09:07]Sock 8.First char is OK [13:09:07]request: POST /json_proto HTTP/1.0 [13:09:07]Method: POST [13:09:07]URL: /json_proto [13:09:07]Method is POST - this is cgi request [13:09:07]url: /json_proto [13:09:07]query_string will be loaded in cgi processing [13:09:07]execute_cgi json_proto POST (null) [13:09:07]execute_cgi path=json_proto method=POST [13:09:07]POST find Content-Length [13:09:07]Host: 172.17.57.71:8080 [13:09:07]Content-Length: 1402 [13:09:07]Content-Type: application/json [13:09:07] [13:09:07]POST finish read [13:09:07]Found Content-Length = 1402 [13:09:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127504", "tax_sys" : 0, "items" : [ { "code": "4870001570903", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A DADA \u044F\u0431\u043B,\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 \u041F\u042D\u0422 1\u043B", "price" : 165.00, "quantity" : 1.000, "sum" : 165.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 2.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 430.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:07]execute_script... [13:09:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127504", "tax_sys" : 0, "items" : [ { "code": "4870001570903", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A DADA \u044F\u0431\u043B,\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 \u041F\u042D\u0422 1\u043B", "price" : 165.00, "quantity" : 1.000, "sum" : 165.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 2.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 430.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:07]POST & json_proto [13:09:07]process_json_proto [13:09:07]json parsed OK: [13:09:07]protocol is kg_v1.0 [13:09:07]action value=close_receipt [13:09:07]process_action close_receipt [13:09:07]cmd_close_receipt [13:09:07]MH_GetDate [13:09:07]Write to MH i2c: F0 00 00 1C 4F 5A [13:09:07]Write i2c OK [13:09:07]MH_I2C_Read... [13:09:07]Read from MH i2c: F0 [13:09:07]MH_I2C_Read... [13:09:07]Read from MH i2c: F0 09 00 [13:09:07]MH_I2C_Read... [13:09:07]Read from MH i2c: F0 09 00 1C 4F 00 7C DC E6 66 33 3A A4 66 7E [13:09:07]GetLastDocTimeStamp 1726405722 [13:09:07]current date 1726405756 [13:09:07]FM_GetShiftState [13:09:07]SAM_PROTO_GetShiftState [13:09:07]wFMCommunicate request_size=4 [13:09:07]MH_SAM_APDU [13:09:07]CAPDU: 80 13 01 00 [13:09:07]Write to MH i2c: E2 08 00 1D 4F 80 13 01 00 00 00 00 00 E9 [13:09:07]Write i2c OK [13:09:07]MH_I2C_Read... [13:09:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:07]Read from MH i2c: E2 [13:09:07]MH_I2C_Read... [13:09:07]Read from MH i2c: E2 0E 00 [13:09:07]MH_I2C_Read... [13:09:07]Read from MH i2c: E2 0E 00 1D 4F 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 6B [13:09:07]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:09:07]wFMCommunicate OK [13:09:07]SAM_PROTO_GetShiftState done [13:09:07]FM_GetShiftState done [13:09:07]opened in 1726359809 [13:09:07]opened+sec_in_day 1726446209 [13:09:07]quantity*price = 16500 [13:09:07]sum+1 = 16501 [13:09:07]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570057 Напиток Pepsi 0,5л 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 40822938 Напиток Фанта 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870112003925 Конд ULKER-Albeni 40gr (6*24) 2.000 * 55.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 430.00 НСП 1% : 3.80 НДС 12% : 45.66 Наличными: 430.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 58 15.09.2024 13:09 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92610 ФПД: 89557185044685 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T130916&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92610&fm=89557185044685&tin=02508201610067®Number=0000000000091423&sum=43000 0 [13:09:08]StoreToDocumentArchive [13:09:08]shift 507 fd 92610 [13:09:08]save to /storage/0507/doc_00092610 [13:09:08]save last doc name /storage/0507/doc_00092610 to /storage/kkm_last_doc_name [13:09:08]save OK [13:09:08]Clear old archive folders... [13:09:08]ProcessDocumentItem done err = 0, tmpTLVsize=597 [13:09:08]tlvbuf is B6F30B10 [13:09:08]SAM_PROTO_ClearQueue [13:09:08]wFMCommunicate request_size=4 [13:09:08]MH_SAM_APDU [13:09:08]CAPDU: 80 09 00 00 [13:09:08]Write to MH i2c: E2 08 00 2A 4F 80 09 00 00 00 00 00 00 EB [13:09:08]Write i2c OK [13:09:08]MH_I2C_Read... [13:09:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:08]Read from MH i2c: E2 [13:09:08]MH_I2C_Read... [13:09:08]Read from MH i2c: E2 03 00 [13:09:08]MH_I2C_Read... [13:09:08]Read from MH i2c: E2 03 00 2A 4F 00 90 00 ED [13:09:08]RAPDU: 90 00 [13:09:08]wFMCommunicate OK [13:09:08]SAM_PROTO_ClearQueue done [13:09:08]KKMCreateOFDPacket [13:09:08]OFDProtocolAddRootSTLVToBuf [13:09:08]FM_MakeSignedData [13:09:08]FM_MakeSignedData [13:09:08]SAM_PROTO_SignData [13:09:08]wFMCommunicate request_size=4 [13:09:08]MH_SAM_APDU [13:09:08]CAPDU: 80 0D 01 02 [13:09:08]Write to MH i2c: E2 08 00 2B 4F 80 0D 01 02 00 00 00 00 F3 [13:09:08]Write i2c OK [13:09:08]MH_I2C_Read... [13:09:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:09]Read from MH i2c: E2 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: E2 03 00 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: E2 03 00 2B 4F 00 90 00 EE [13:09:09]RAPDU: 90 00 [13:09:09]wFMCommunicate OK [13:09:09]wFMCommunicate request_size=255 [13:09:09]MH_SAM_APDU [13:09:09]CAPDU: 80 0D 02 02 FA 03 00 55 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 39 30 33 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D1 8F D0 B1 D0 BB 2C D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 [13:09:09]Write to MH i2c: E2 02 01 2C 4F 80 0D 02 02 FA 00 03 00 55 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 39 30 33 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D1 8F D0 B1 D0 BB 2C D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 00 00 DF [13:09:09]Write i2c OK [13:09:09]MH_I2C_Read... [13:09:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:09]Read from MH i2c: E2 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: E2 03 00 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: E2 03 00 2C 4F 00 90 00 EF [13:09:09]RAPDU: 90 00 [13:09:09]wFMCommunicate OK [13:09:09]wFMCommunicate request_size=255 [13:09:09]MH_SAM_APDU [13:09:09]CAPDU: 80 0D 02 02 FA 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 11 00 00 00 00 07 04 06 00 F8 A7 00 00 00 00 39 04 [13:09:09]Write to MH i2c: E2 02 01 2D 4F 80 0D 02 02 FA 00 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 11 00 00 00 00 07 04 06 00 F8 A7 00 00 00 00 39 04 00 00 4E [13:09:09]Write i2c OK [13:09:09]MH_I2C_Read... [13:09:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:09]Read from MH i2c: E2 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: E2 03 00 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: E2 03 00 2D 4F 00 90 00 F0 [13:09:09]RAPDU: 90 00 [13:09:09]wFMCommunicate OK [13:09:09]wFMCommunicate request_size=106 [13:09:09]MH_SAM_APDU [13:09:09]CAPDU: 80 0D 02 02 65 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 7C DC E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C2 69 01 00 35 04 06 00 51 73 A8 33 A0 CD [13:09:09]Write to MH i2c: E2 6D 00 2E 4F 80 0D 02 02 65 00 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 7C DC E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C2 69 01 00 35 04 06 00 51 73 A8 33 A0 CD 00 00 BD [13:09:09]Write i2c OK [13:09:09]MH_I2C_Read... [13:09:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:09]Read from MH i2c: E2 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: E2 03 00 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: E2 03 00 2E 4F 00 90 00 F1 [13:09:09]RAPDU: 90 00 [13:09:09]wFMCommunicate OK [13:09:09]wFMCommunicate request_size=4 [13:09:09]MH_SAM_APDU [13:09:09]CAPDU: 80 0D 03 02 [13:09:09]Write to MH i2c: E2 08 00 2F 4F 80 0D 03 02 00 00 00 00 F9 [13:09:09]Write i2c OK [13:09:09]MH_I2C_Read... [13:09:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:09]Read from MH i2c: E2 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: E2 0B 00 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: E2 0B 00 2F 4F 00 A0 9B 2C 3A 6B 31 F1 42 90 00 6A [13:09:09]RAPDU: A0 9B 2C 3A 6B 31 F1 42 90 00 [13:09:09]wFMCommunicate OK [13:09:09]SAM_PROTO_SignData done [13:09:09]FM_MakeSignedData done [13:09:09]CreateOFDProtocolMessage [13:09:09]wFMCommunicate request_size=4 [13:09:09]MH_SAM_APDU [13:09:09]CAPDU: 80 11 00 00 [13:09:09]Write to MH i2c: E2 08 00 30 4F 80 11 00 00 00 00 00 00 F9 [13:09:09]Write i2c OK [13:09:09]MH_I2C_Read... [13:09:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:09]Read from MH i2c: E2 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: E2 17 00 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: E2 17 00 30 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 50 [13:09:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:09:09]wFMCommunicate OK [13:09:09]CreateOFDProtocolMessage done [13:09:09]OFDSenderStorePacket 92610 [13:09:09]StoreOFDPacket docnum=92610 [13:09:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 69 02 00 00 32 E6 61 02 D7 E5 5A 03 01 00 03 00 55 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 39 30 33 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D1 8F D0 B1 D0 BB 2C D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 11 00 00 00 00 07 04 06 00 F8 A7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 7C DC E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C2 69 01 00 35 04 06 00 51 73 A8 33 A0 CD A0 9B 2C 3A 6B 31 F1 42 [13:09:09]CheckFolder [13:09:09]dirname=/storage/ofd_packets [13:09:09]CheckFolder done [13:09:09]ProducePacketName [13:09:09]name=ofd_packets/00092610 [13:09:09]NVStorageSaveData ofd_packets/00092610 [13:09:09]File name is /storage/ofd_packets/00092610 [13:09:09]Write 647 bytes [13:09:09]NVStorageSaveData done [13:09:09]OFDSenderStorePacket done [13:09:09]KKMCreateOFDPacket done [13:09:09]NVStorageSaveData kkm_last_timestamp [13:09:09]File name is /storage/kkm_last_timestamp [13:09:09]Write 4 bytes [13:09:09]NVStorageSaveData done [13:09:09]ExternCall_PrintAddStr [13:09:09]wPrintStart [13:09:09]Write to MH i2c: 01 00 00 31 4F 80 [13:09:09]Write i2c OK [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: 01 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: 01 07 00 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: 01 07 00 31 4F 00 00 00 00 00 FF 0F 95 [13:09:09]RasterBufferAndPrint [13:09:09]line Счет N : (3)127504 [13:09:09]line ИНН: 02508201610067 [13:09:09]line Контрольно-Кассовый Чек [13:09:09]line ПРОДАЖА [13:09:09]line Товар: 4870001570903 [13:09:09]line Напиток DADA ябл,клубника ПЭТ 1л [13:09:09]line 1.000 * 165.00 [13:09:09]line = 165.00 [13:09:09]line НДС 12% НСП 1% [13:09:09]line > о реализуемом товаре [13:09:09]line Товар: 4870001570057 [13:09:09]line Напиток Pepsi 0,5л [13:09:09]line 1.000 * 80.00 [13:09:09]line = 80.00 [13:09:09]line НДС 12% НСП 1% [13:09:10]line > о реализуемом товаре [13:09:10]line Товар: 40822938 [13:09:10]line Напиток Фанта 0,5л [13:09:10]line 1.000 * 75.00 [13:09:10]line = 75.00 [13:09:10]line НДС 12% НСП 1% [13:09:10]line > о реализуемом товаре [13:09:10]line Товар: 4870112003925 [13:09:10]line Конд ULKER-Albeni 40gr (6*24) [13:09:10]line 2.000 * 55.00 [13:09:10]line = 110.00 [13:09:10]line НДС 12% НСП 1% [13:09:10]line > о реализуемом товаре [13:09:10]line ИТОГО: 430.00 [13:09:10]line НСП 1% : 3.80 [13:09:10]line НДС 12% : 45.66 [13:09:10]line Наличными: 430.00 [13:09:10]line Безнал.: 0.00 [13:09:10]line Место: АЗС № 5 "Партнер Нефть" [13:09:10]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [13:09:10]line СНО: Общий режим [13:09:10]line Чек 58 15.09.2024 13:09 [13:09:10]line Смена: 507 ФФД: 1.0 [13:09:10]line ЗНМ: 03000000022 [13:09:10]line РНМ: 0000000000091423 [13:09:10]line Версия ККМ: 001 [13:09:10]line ФМ: 0000000000874692 [13:09:10]line ФД: 92610 [13:09:10]line ФПД: 89557185044685 [13:09:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T130916&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92610&fm=89557185044685&tin=02508201610067®Number=0000000000091423&sum=43000 [13:09:10]line 0 [13:09:10]OFD Sender: Processing packet 92610 [packets to send 63, broken 62] [13:09:10]ProducePacketName [13:09:10]name=ofd_packets/00092610 [13:09:10]OFD Sender: To server: pG, [13:09:10]CommunicateWithHost lk.salyk.kg:30040 [13:09:10]ConnectInit lk.salyk.kg [13:09:10]written 0, free lines is 4095 [13:09:10]Connected sock=10 [13:09:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 69 02 00 00 32 E6 61 02 D7 E5 5A 03 01 00 03 00 55 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 39 30 33 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D1 8F D0 B1 D0 BB 2C D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 11 00 00 00 00 07 04 06 00 F8 A7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 7C DC E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C2 69 01 00 35 04 06 00 51 73 A8 33 A0 CD A0 9B 2C 3A 6B 31 F1 42 [13:09:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 10 C7 47 00 05 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C2 69 01 00 F4 03 04 00 F4 84 E6 66 B6 04 01 00 00 67 0F 8C B1 64 3F DC 50 [13:09:10]CommunicateWithHost err = 0 [13:09:10]CheckOFDResponse [13:09:10]1017 (14) - 77093643461234 [13:09:10]1041 (16) - 0000000000874692 [13:09:10]1040 (4) - 92610 [13:09:10]1012 (4) - 15.09.2024 06:55 [13:09:10]1206 (1) - 0 [13:09:10]OFD Sender: Remove packet 92610 [13:09:10]ProducePacketName [13:09:10]name=ofd_packets/00092610 [13:09:10]NVStorageDeleteData [13:09:10]Write to MH i2c: 01 00 00 6C 4F BB [13:09:10]Write i2c OK [13:09:10]MH_I2C_Read... [13:09:10]Read from MH i2c: 01 [13:09:10]MH_I2C_Read... [13:09:10]Read from MH i2c: 01 07 00 [13:09:10]MH_I2C_Read... [13:09:10]Read from MH i2c: 01 07 00 6C 4F 00 00 00 00 00 38 0C 06 [13:09:10]RasterBufferAndPrint [13:09:10]line [13:09:10]line [13:09:10]line [13:09:10]line [13:09:10]line [13:09:10]written 0, free lines is 3139 [13:09:10]MH_Cut [13:09:10]Write to MH i2c: D1 01 00 73 4F 01 94 [13:09:10]Write i2c OK [13:09:10]MH_I2C_Read... [13:09:10]Read from MH i2c: D1 [13:09:10]MH_I2C_Read... [13:09:10]Read from MH i2c: D1 01 00 [13:09:10]MH_I2C_Read... [13:09:10]Read from MH i2c: D1 01 00 73 4F 00 93 [13:09:10]Write to MH i2c: 01 00 00 74 4F C3 [13:09:10]Write i2c OK [13:09:10]MH_I2C_Read... [13:09:10]OFD Sender: No OFD packet to send [13:09:11]*** Cut start [13:09:11]*** Purtial cut [13:09:11]*** Stage 1: CUTSNS_PIN = 1 [13:09:13]Read from MH i2c: 01 [13:09:13]MH_I2C_Read... [13:09:13]*** Stop cut motor [13:09:13]*** Cut end [13:09:13]Read from MH i2c: 01 07 00 [13:09:13]MH_I2C_Read... [13:09:13]Read from MH i2c: 01 07 00 74 4F 00 00 00 00 00 FF 0F D8 [13:09:13]process_action close_receipt done [13:09:13]requested_data is exist [13:09:13]produce_requested_data [13:09:13]requested_item fm.sn is exist - process it [13:09:13]wFMCommunicate request_size=4 [13:09:13]MH_SAM_APDU [13:09:13]CAPDU: 80 11 00 00 [13:09:13]Write to MH i2c: E2 08 00 75 4F 80 11 00 00 00 00 00 00 3E [13:09:13]Write i2c OK [13:09:13]MH_I2C_Read... [13:09:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:13]Read from MH i2c: E2 [13:09:13]MH_I2C_Read... [13:09:13]Read from MH i2c: E2 17 00 [13:09:13]MH_I2C_Read... [13:09:13]Read from MH i2c: E2 17 00 75 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 95 [13:09:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:09:13]wFMCommunicate OK [13:09:13]requested_item fd.num is exist - process it [13:09:13]SAM_PROTO_GetFieldsCounters [13:09:13]wFMCommunicate request_size=4 [13:09:13]MH_SAM_APDU [13:09:13]CAPDU: 80 13 00 00 [13:09:13]Write to MH i2c: E2 08 00 76 4F 80 13 00 00 00 00 00 00 41 [13:09:13]Write i2c OK [13:09:13]MH_I2C_Read... [13:09:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:13]Read from MH i2c: E2 [13:09:13]MH_I2C_Read... [13:09:13]Read from MH i2c: E2 62 00 [13:09:13]MH_I2C_Read... [13:09:13]Read from MH i2c: E2 62 00 76 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C2 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [13:09:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C2 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:09:13]wFMCommunicate OK [13:09:13]SAM_PROTO_GetFieldsCounters done [13:09:13]requested_item shift.num is exist - process it [13:09:13]requested_item shift.opened is exist - process it [13:09:13]req_shift_opened [13:09:13]FM_GetShiftState [13:09:13]SAM_PROTO_GetShiftState [13:09:13]wFMCommunicate request_size=4 [13:09:13]MH_SAM_APDU [13:09:13]CAPDU: 80 13 01 00 [13:09:13]Write to MH i2c: E2 08 00 77 4F 80 13 01 00 00 00 00 00 43 [13:09:13]Write i2c OK [13:09:13]MH_I2C_Read... [13:09:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:13]Read from MH i2c: E2 [13:09:13]MH_I2C_Read... [13:09:13]Read from MH i2c: E2 0E 00 [13:09:13]MH_I2C_Read... [13:09:13]Read from MH i2c: E2 0E 00 77 4F 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 C5 [13:09:13]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:09:13]wFMCommunicate OK [13:09:13]SAM_PROTO_GetShiftState done [13:09:13]FM_GetShiftState done [13:09:13]req_shift_opened done [13:09:13]requested_item shift.open_date is exist - process it [13:09:13]req_shift_open_date [13:09:13]req_shift_open_date done [13:09:13]produce_requested_data done [13:09:13]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92610,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [13:09:13]process_action_free close_receipt [13:09:13]json_value_free [13:09:13]json_value_free done [13:09:13]process_json_proto returns [13:09:13]Send response to host [13:09:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92610,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [13:09:13]free response buf [13:09:13]execute_script done [13:09:13]execute_script returns [13:09:13]free content buf [13:09:13]Sock 8.Close socket [13:09:13]Sock 8.Thread stoped [13:09:15]OFD Sender: No OFD packet to send [13:09:20]OFD Sender: No OFD packet to send [13:09:25]OFD Sender: No OFD packet to send [13:09:30]OFD Sender: No OFD packet to send [13:09:35]OFD Sender: No OFD packet to send [13:09:40]OFD Sender: No OFD packet to send [13:09:45]OFD Sender: No OFD packet to send [13:09:50]OFD Sender: No OFD packet to send [13:09:52]accept exits with 9 [13:09:52]New connection [13:09:52]New thread 3066801508 created [13:09:52]Thread 3066658148 joined [13:09:52]Waiting for new connection... [13:09:52] Sock 9.Parse request [13:09:52]Sock 9.Check first char [13:09:52]Sock 9.First char is OK [13:09:52]request: POST /json_proto HTTP/1.0 [13:09:52]Method: POST [13:09:52]URL: /json_proto [13:09:52]Method is POST - this is cgi request [13:09:52]url: /json_proto [13:09:52]query_string will be loaded in cgi processing [13:09:52]execute_cgi json_proto POST (null) [13:09:52]execute_cgi path=json_proto method=POST [13:09:52]POST find Content-Length [13:09:52]Host: 172.17.57.71:8080 [13:09:52]Content-Length: 682 [13:09:52]Content-Type: application/json [13:09:52] [13:09:52]POST finish read [13:09:52]Found Content-Length = 682 [13:09:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:52]execute_script... [13:09:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:52]POST & json_proto [13:09:52]process_json_proto [13:09:52]json parsed OK: [13:09:52]protocol is kg_v1.0 [13:09:52]action value=close_receipt [13:09:52]process_action close_receipt [13:09:52]cmd_close_receipt [13:09:52]MH_GetDate [13:09:52]Write to MH i2c: F0 00 00 78 4F B6 [13:09:52]Write i2c OK [13:09:52]MH_I2C_Read... [13:09:52]Read from MH i2c: F0 [13:09:52]MH_I2C_Read... [13:09:52]Read from MH i2c: F0 09 00 [13:09:52]MH_I2C_Read... [13:09:52]Read from MH i2c: F0 09 00 78 4F 00 A9 DC E6 66 33 3A A4 66 07 [13:09:52]GetLastDocTimeStamp 1726405756 [13:09:52]current date 1726405801 [13:09:52]FM_GetShiftState [13:09:52]SAM_PROTO_GetShiftState [13:09:52]wFMCommunicate request_size=4 [13:09:52]MH_SAM_APDU [13:09:52]CAPDU: 80 13 01 00 [13:09:52]Write to MH i2c: E2 08 00 79 4F 80 13 01 00 00 00 00 00 45 [13:09:52]Write i2c OK [13:09:52]MH_I2C_Read... [13:09:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:52]Read from MH i2c: E2 [13:09:52]MH_I2C_Read... [13:09:52]Read from MH i2c: E2 0E 00 [13:09:52]MH_I2C_Read... [13:09:52]Read from MH i2c: E2 0E 00 79 4F 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 C7 [13:09:52]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:09:52]wFMCommunicate OK [13:09:52]SAM_PROTO_GetShiftState done [13:09:52]FM_GetShiftState done [13:09:52]opened in 1726359809 [13:09:52]opened+sec_in_day 1726446209 [13:09:52]quantity*price = 200047 [13:09:52]sum+1 = 200048 [13:09:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 59 15.09.2024 13:10 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92611 ФПД: 112335610817565 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T131001&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92611&fm=112335610817565&tin=02508201610067®Number=0000000000091423&sum=200000 [13:09:53]StoreToDocumentArchive [13:09:53]shift 507 fd 92611 [13:09:53]save to /storage/0507/doc_00092611 [13:09:53]save last doc name /storage/0507/doc_00092611 to /storage/kkm_last_doc_name [13:09:53]save OK [13:09:53]Clear old archive folders... [13:09:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:09:53]tlvbuf is 0101EE40 [13:09:53]SAM_PROTO_ClearQueue [13:09:53]wFMCommunicate request_size=4 [13:09:53]MH_SAM_APDU [13:09:53]CAPDU: 80 09 00 00 [13:09:53]Write to MH i2c: E2 08 00 86 4F 80 09 00 00 00 00 00 00 47 [13:09:53]Write i2c OK [13:09:53]MH_I2C_Read... [13:09:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:54]Read from MH i2c: E2 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 03 00 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 03 00 86 4F 00 90 00 49 [13:09:54]RAPDU: 90 00 [13:09:54]wFMCommunicate OK [13:09:54]SAM_PROTO_ClearQueue done [13:09:54]KKMCreateOFDPacket [13:09:54]OFDProtocolAddRootSTLVToBuf [13:09:54]FM_MakeSignedData [13:09:54]FM_MakeSignedData [13:09:54]SAM_PROTO_SignData [13:09:54]wFMCommunicate request_size=4 [13:09:54]MH_SAM_APDU [13:09:54]CAPDU: 80 0D 01 02 [13:09:54]Write to MH i2c: E2 08 00 87 4F 80 0D 01 02 00 00 00 00 4F [13:09:54]Write i2c OK [13:09:54]MH_I2C_Read... [13:09:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:54]Read from MH i2c: E2 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 03 00 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 03 00 87 4F 00 90 00 4A [13:09:54]RAPDU: 90 00 [13:09:54]wFMCommunicate OK [13:09:54]wFMCommunicate request_size=255 [13:09:54]MH_SAM_APDU [13:09:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A9 DC E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C3 69 01 00 35 04 06 00 66 [13:09:54]Write to MH i2c: E2 02 01 88 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A9 DC E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C3 69 01 00 35 04 06 00 66 00 00 74 [13:09:54]Write i2c OK [13:09:54]MH_I2C_Read... [13:09:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:54]Read from MH i2c: E2 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 03 00 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 03 00 88 4F 00 90 00 4B [13:09:54]RAPDU: 90 00 [13:09:54]wFMCommunicate OK [13:09:54]wFMCommunicate request_size=10 [13:09:54]MH_SAM_APDU [13:09:54]CAPDU: 80 0D 02 02 05 2B 2C 2D AC 1D [13:09:54]Write to MH i2c: E2 0D 00 89 4F 80 0D 02 02 05 00 2B 2C 2D AC 1D 00 00 A9 [13:09:54]Write i2c OK [13:09:54]MH_I2C_Read... [13:09:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:54]Read from MH i2c: E2 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 03 00 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 03 00 89 4F 00 90 00 4C [13:09:54]RAPDU: 90 00 [13:09:54]wFMCommunicate OK [13:09:54]wFMCommunicate request_size=4 [13:09:54]MH_SAM_APDU [13:09:54]CAPDU: 80 0D 03 02 [13:09:54]Write to MH i2c: E2 08 00 8A 4F 80 0D 03 02 00 00 00 00 54 [13:09:54]Write i2c OK [13:09:54]MH_I2C_Read... [13:09:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:54]Read from MH i2c: E2 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 0B 00 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 0B 00 8A 4F 00 CA 77 32 08 4A 0F 7F 04 90 00 AC [13:09:54]RAPDU: CA 77 32 08 4A 0F 7F 04 90 00 [13:09:54]wFMCommunicate OK [13:09:54]SAM_PROTO_SignData done [13:09:54]FM_MakeSignedData done [13:09:54]CreateOFDProtocolMessage [13:09:54]wFMCommunicate request_size=4 [13:09:54]MH_SAM_APDU [13:09:54]CAPDU: 80 11 00 00 [13:09:54]Write to MH i2c: E2 08 00 8B 4F 80 11 00 00 00 00 00 00 54 [13:09:54]Write i2c OK [13:09:54]MH_I2C_Read... [13:09:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:54]Read from MH i2c: E2 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 17 00 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 17 00 8B 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 AB [13:09:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:09:54]wFMCommunicate OK [13:09:54]CreateOFDProtocolMessage done [13:09:54]OFDSenderStorePacket 92611 [13:09:54]StoreOFDPacket docnum=92611 [13:09:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 EC B6 07 01 11 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A9 DC E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C3 69 01 00 35 04 06 00 66 2B 2C 2D AC 1D CA 77 32 08 4A 0F 7F 04 [13:09:54]CheckFolder [13:09:54]dirname=/storage/ofd_packets [13:09:54]CheckFolder done [13:09:54]ProducePacketName [13:09:54]name=ofd_packets/00092611 [13:09:54]NVStorageSaveData ofd_packets/00092611 [13:09:54]File name is /storage/ofd_packets/00092611 [13:09:54]Write 301 bytes [13:09:54]NVStorageSaveData done [13:09:54]OFDSenderStorePacket done [13:09:54]KKMCreateOFDPacket done [13:09:54]NVStorageSaveData kkm_last_timestamp [13:09:54]File name is /storage/kkm_last_timestamp [13:09:54]Write 4 bytes [13:09:54]NVStorageSaveData done [13:09:54]ExternCall_PrintAddStr [13:09:54]wPrintStart [13:09:54]Write to MH i2c: 01 00 00 8C 4F DB [13:09:54]Write i2c OK [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: 01 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: 01 07 00 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: 01 07 00 8C 4F 00 00 00 00 00 FF 0F F0 [13:09:54]RasterBufferAndPrint [13:09:54]line Счет N : (1)648402 [13:09:54]line ИНН: 02508201610067 [13:09:54]line Контрольно-Кассовый Чек [13:09:54]line ПРОДАЖА [13:09:54]line ТРК (МРК, ГНК) : 12 [13:09:54]line Товар: 2710124500 [13:09:54]line Аи-95-К-5 [13:09:54]line 27.070 * 73.90 [13:09:54]line = 2000.47 [13:09:54]line НДС 12% НСП 1% [13:09:54]line > о реализуемом товаре [13:09:54]line ОКРУГЛЕНИЕ: -0.47 [13:09:54]line ИТОГО: 2000.00 [13:09:54]line Внесено: 2000.00 [13:09:54]line СДАЧА: 0.00 [13:09:54]line НСП 1% : 17.70 [13:09:54]line НДС 12% : 212.44 [13:09:54]line Наличными: 2000.00 [13:09:54]line Безнал.: 0.00 [13:09:54]line Место: АЗС № 5 "Партнер Нефть" [13:09:54]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [13:09:54]line СНО: Общий режим [13:09:54]line Чек 59 15.09.2024 13:10 [13:09:54]line Смена: 507 ФФД: 1.0 [13:09:54]line ЗНМ: 03000000022 [13:09:54]line РНМ: 0000000000091423 [13:09:54]line Версия ККМ: 001 [13:09:54]line ФМ: 0000000000874692 [13:09:54]line ФД: 92611 [13:09:54]line ФПД: 112335610817565 [13:09:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T131001&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92611&fm=112335610817565&tin=02508201610067®Number=0000000000091423&sum=200000 [13:09:54]written 0, free lines is 4095 [13:09:54]OFD Sender: Processing packet 92611 [packets to send 63, broken 62] [13:09:54]ProducePacketName [13:09:54]name=ofd_packets/00092611 [13:09:54]OFD Sender: To server: pG, [13:09:54]CommunicateWithHost lk.salyk.kg:30040 [13:09:54]ConnectInit lk.salyk.kg [13:09:54]Write to MH i2c: 01 00 00 B7 4F 06 [13:09:54]Write i2c OK [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: 01 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: 01 07 00 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: 01 07 00 B7 4F 00 00 00 00 00 F4 0C 0D [13:09:54]RasterBufferAndPrint [13:09:54]line [13:09:54]line [13:09:54]line [13:09:54]line [13:09:54]line [13:09:54]written 0, free lines is 3321 [13:09:54]MH_Cut [13:09:54]Write to MH i2c: D1 01 00 BE 4F 01 DF [13:09:54]Write i2c OK [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: D1 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: D1 01 00 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: D1 01 00 BE 4F 00 DE [13:09:54]Write to MH i2c: 01 00 00 BF 4F 0E [13:09:54]Write i2c OK [13:09:54]MH_I2C_Read... [13:09:55]*** Cut start [13:09:55]*** Purtial cut [13:09:55]*** Stage 1: CUTSNS_PIN = 1 [13:09:57]Read from MH i2c: 01 [13:09:57]MH_I2C_Read... [13:09:57]*** Stop cut motor [13:09:57]*** Cut end [13:09:57]Read from MH i2c: 01 07 00 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: 01 07 00 BF 4F 00 00 00 00 00 FF 0F 23 [13:09:57]process_action close_receipt done [13:09:57]requested_data is exist [13:09:57]produce_requested_data [13:09:57]requested_item fm.sn is exist - process it [13:09:57]wFMCommunicate request_size=4 [13:09:57]MH_SAM_APDU [13:09:57]CAPDU: 80 11 00 00 [13:09:57]Write to MH i2c: E2 08 00 C0 4F 80 11 00 00 00 00 00 00 89 [13:09:57]Write i2c OK [13:09:57]MH_I2C_Read... [13:09:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:57]Read from MH i2c: E2 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: E2 17 00 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: E2 17 00 C0 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E0 [13:09:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:09:57]wFMCommunicate OK [13:09:57]requested_item fd.num is exist - process it [13:09:57]SAM_PROTO_GetFieldsCounters [13:09:57]wFMCommunicate request_size=4 [13:09:57]MH_SAM_APDU [13:09:57]CAPDU: 80 13 00 00 [13:09:57]Write to MH i2c: E2 08 00 C1 4F 80 13 00 00 00 00 00 00 8C [13:09:57]Write i2c OK [13:09:57]MH_I2C_Read... [13:09:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:57]Read from MH i2c: E2 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: E2 62 00 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: E2 62 00 C1 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C3 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [13:09:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C3 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:09:57]wFMCommunicate OK [13:09:57]SAM_PROTO_GetFieldsCounters done [13:09:57]requested_item shift.num is exist - process it [13:09:57]requested_item shift.opened is exist - process it [13:09:57]req_shift_opened [13:09:57]FM_GetShiftState [13:09:57]SAM_PROTO_GetShiftState [13:09:57]wFMCommunicate request_size=4 [13:09:57]MH_SAM_APDU [13:09:57]CAPDU: 80 13 01 00 [13:09:57]Write to MH i2c: E2 08 00 C2 4F 80 13 01 00 00 00 00 00 8E [13:09:57]Write i2c OK [13:09:57]MH_I2C_Read... [13:09:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:57]Read from MH i2c: E2 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: E2 0E 00 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: E2 0E 00 C2 4F 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 10 [13:09:57]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:09:57]wFMCommunicate OK [13:09:57]SAM_PROTO_GetShiftState done [13:09:57]FM_GetShiftState done [13:09:57]req_shift_opened done [13:09:57]requested_item shift.open_date is exist - process it [13:09:57]req_shift_open_date [13:09:57]req_shift_open_date done [13:09:57]produce_requested_data done [13:09:57]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92611,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [13:09:57]process_action_free close_receipt [13:09:57]json_value_free [13:09:57]json_value_free done [13:09:57]process_json_proto returns [13:09:57]Send response to host [13:09:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92611,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [13:09:57]free response buf [13:09:57]execute_script done [13:09:57]execute_script returns [13:09:57]free content buf [13:09:57]Sock 9.Close socket [13:09:57]Sock 9.Thread stoped [13:11:33]accept exits with 8 [13:11:33]New connection [13:11:33]New thread 3066658148 created [13:11:33]Thread 3066801508 joined [13:11:33]Waiting for new connection... [13:11:33] Sock 8.Parse request [13:11:33]Sock 8.Check first char [13:11:33]Sock 8.First char is OK [13:11:33]request: POST /json_proto HTTP/1.0 [13:11:33]Method: POST [13:11:33]URL: /json_proto [13:11:33]Method is POST - this is cgi request [13:11:33]url: /json_proto [13:11:33]query_string will be loaded in cgi processing [13:11:33]execute_cgi json_proto POST (null) [13:11:33]execute_cgi path=json_proto method=POST [13:11:33]POST find Content-Length [13:11:33]Host: 172.17.57.71:8080 [13:11:33]Content-Length: 962 [13:11:33]Content-Type: application/json [13:11:33] [13:11:33]POST finish read [13:11:33]Found Content-Length = 962 [13:11:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127505", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46227720", "name": "\u0420/\u0436 mentos pure fresh \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u0440\u043E\u043B\u043B 15,5", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 124.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:33]execute_script... [13:11:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127505", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46227720", "name": "\u0420/\u0436 mentos pure fresh \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u0440\u043E\u043B\u043B 15,5", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 124.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:33]POST & json_proto [13:11:33]process_json_proto [13:11:33]json parsed OK: [13:11:33]protocol is kg_v1.0 [13:11:33]action value=close_receipt [13:11:33]process_action close_receipt [13:11:33]cmd_close_receipt [13:11:33]MH_GetDate [13:11:33]Write to MH i2c: F0 00 00 C3 4F 01 [13:11:33]Write i2c OK [13:11:33]MH_I2C_Read... [13:11:33]Read from MH i2c: F0 [13:11:33]MH_I2C_Read... [13:11:33]Read from MH i2c: F0 09 00 [13:11:33]MH_I2C_Read... [13:11:33]Read from MH i2c: F0 09 00 C3 4F 00 0E DD E6 66 33 3A A4 66 B8 [13:11:33]GetLastDocTimeStamp 1726405801 [13:11:33]current date 1726405902 [13:11:33]FM_GetShiftState [13:11:33]SAM_PROTO_GetShiftState [13:11:33]wFMCommunicate request_size=4 [13:11:33]MH_SAM_APDU [13:11:33]CAPDU: 80 13 01 00 [13:11:33]Write to MH i2c: E2 08 00 C4 4F 80 13 01 00 00 00 00 00 90 [13:11:33]Write i2c OK [13:11:33]MH_I2C_Read... [13:11:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:33]Read from MH i2c: E2 [13:11:33]MH_I2C_Read... [13:11:33]Read from MH i2c: E2 0E 00 [13:11:33]MH_I2C_Read... [13:11:33]Read from MH i2c: E2 0E 00 C4 4F 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 12 [13:11:33]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:11:33]wFMCommunicate OK [13:11:33]SAM_PROTO_GetShiftState done [13:11:33]FM_GetShiftState done [13:11:33]opened in 1726359809 [13:11:33]opened+sec_in_day 1726446209 [13:11:33]quantity*price = 7500 [13:11:33]sum+1 = 7501 [13:11:33]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46227720 Р/ж mentos pure fresh виноград ролл 15,5 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 124.00 НСП 1% : 1.09 НДС 12% : 13.16 Наличными: 124.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 60 15.09.2024 13:11 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92612 ФПД: 21530654025412 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T131142&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92612&fm=21530654025412&tin=02508201610067®Number=0000000000091423&sum=12400 0 [13:11:34]StoreToDocumentArchive [13:11:34]shift 507 fd 92612 [13:11:34]save to /storage/0507/doc_00092612 [13:11:34]save last doc name /storage/0507/doc_00092612 to /storage/kkm_last_doc_name [13:11:34]save OK [13:11:34]Clear old archive folders... [13:11:34]ProcessDocumentItem done err = 0, tmpTLVsize=416 [13:11:34]tlvbuf is 00FF8F10 [13:11:34]SAM_PROTO_ClearQueue [13:11:34]wFMCommunicate request_size=4 [13:11:34]MH_SAM_APDU [13:11:34]CAPDU: 80 09 00 00 [13:11:34]Write to MH i2c: E2 08 00 D1 4F 80 09 00 00 00 00 00 00 92 [13:11:34]Write i2c OK [13:11:34]MH_I2C_Read... [13:11:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:34]Read from MH i2c: E2 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 03 00 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 03 00 D1 4F 00 90 00 94 [13:11:34]RAPDU: 90 00 [13:11:34]wFMCommunicate OK [13:11:34]SAM_PROTO_ClearQueue done [13:11:34]KKMCreateOFDPacket [13:11:34]OFDProtocolAddRootSTLVToBuf [13:11:34]FM_MakeSignedData [13:11:34]FM_MakeSignedData [13:11:34]SAM_PROTO_SignData [13:11:34]wFMCommunicate request_size=4 [13:11:34]MH_SAM_APDU [13:11:34]CAPDU: 80 0D 01 02 [13:11:34]Write to MH i2c: E2 08 00 D2 4F 80 0D 01 02 00 00 00 00 9A [13:11:34]Write i2c OK [13:11:34]MH_I2C_Read... [13:11:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:34]Read from MH i2c: E2 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 03 00 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 03 00 D2 4F 00 90 00 95 [13:11:34]RAPDU: 90 00 [13:11:34]wFMCommunicate OK [13:11:34]wFMCommunicate request_size=255 [13:11:34]MH_SAM_APDU [13:11:34]CAPDU: 80 0D 02 02 FA 03 00 A0 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 [13:11:34]Write to MH i2c: E2 02 01 D3 4F 80 0D 02 02 FA 00 03 00 A0 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 00 00 76 [13:11:34]Write i2c OK [13:11:34]MH_I2C_Read... [13:11:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:35]Read from MH i2c: E2 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: E2 03 00 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: E2 03 00 D3 4F 00 90 00 96 [13:11:35]RAPDU: 90 00 [13:11:35]wFMCommunicate OK [13:11:35]wFMCommunicate request_size=175 [13:11:35]MH_SAM_APDU [13:11:35]CAPDU: 80 0D 02 02 AA BC 04 01 00 01 FC 03 06 00 70 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 05 00 00 00 00 07 04 06 00 70 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 0E DD E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C4 69 01 00 35 04 06 00 13 94 FE FC 26 C4 [13:11:35]Write to MH i2c: E2 B2 00 D4 4F 80 0D 02 02 AA 00 BC 04 01 00 01 FC 03 06 00 70 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 05 00 00 00 00 07 04 06 00 70 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 0E DD E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C4 69 01 00 35 04 06 00 13 94 FE FC 26 C4 00 00 F1 [13:11:35]Write i2c OK [13:11:35]MH_I2C_Read... [13:11:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:35]Read from MH i2c: E2 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: E2 03 00 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: E2 03 00 D4 4F 00 90 00 97 [13:11:35]RAPDU: 90 00 [13:11:35]wFMCommunicate OK [13:11:35]wFMCommunicate request_size=4 [13:11:35]MH_SAM_APDU [13:11:35]CAPDU: 80 0D 03 02 [13:11:35]Write to MH i2c: E2 08 00 D5 4F 80 0D 03 02 00 00 00 00 9F [13:11:35]Write i2c OK [13:11:35]MH_I2C_Read... [13:11:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:35]Read from MH i2c: E2 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: E2 0B 00 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: E2 0B 00 D5 4F 00 7B 14 96 5A 3C 9B 6C 4B 90 00 AD [13:11:35]RAPDU: 7B 14 96 5A 3C 9B 6C 4B 90 00 [13:11:35]wFMCommunicate OK [13:11:35]SAM_PROTO_SignData done [13:11:35]FM_MakeSignedData done [13:11:35]CreateOFDProtocolMessage [13:11:35]wFMCommunicate request_size=4 [13:11:35]MH_SAM_APDU [13:11:35]CAPDU: 80 11 00 00 [13:11:35]Write to MH i2c: E2 08 00 D6 4F 80 11 00 00 00 00 00 00 9F [13:11:35]Write i2c OK [13:11:35]MH_I2C_Read... [13:11:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:35]Read from MH i2c: E2 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: E2 17 00 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: E2 17 00 D6 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F6 [13:11:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:11:35]wFMCommunicate OK [13:11:35]CreateOFDProtocolMessage done [13:11:35]OFDSenderStorePacket 92612 [13:11:35]StoreOFDPacket docnum=92612 [13:11:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 B4 01 00 00 77 00 AC 01 34 96 5A 03 01 00 03 00 A0 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 05 00 00 00 00 07 04 06 00 70 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 0E DD E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C4 69 01 00 35 04 06 00 13 94 FE FC 26 C4 7B 14 96 5A 3C 9B 6C 4B [13:11:35]CheckFolder [13:11:35]dirname=/storage/ofd_packets [13:11:35]CheckFolder done [13:11:35]ProducePacketName [13:11:35]name=ofd_packets/00092612 [13:11:35]NVStorageSaveData ofd_packets/00092612 [13:11:35]File name is /storage/ofd_packets/00092612 [13:11:35]Write 466 bytes [13:11:35]NVStorageSaveData done [13:11:35]OFDSenderStorePacket done [13:11:35]KKMCreateOFDPacket done [13:11:35]NVStorageSaveData kkm_last_timestamp [13:11:35]File name is /storage/kkm_last_timestamp [13:11:35]Write 4 bytes [13:11:35]NVStorageSaveData done [13:11:35]ExternCall_PrintAddStr [13:11:35]wPrintStart [13:11:35]Write to MH i2c: 01 00 00 D7 4F 26 [13:11:35]Write i2c OK [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: 01 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: 01 07 00 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: 01 07 00 D7 4F 00 00 00 00 00 FF 0F 3B [13:11:35]RasterBufferAndPrint [13:11:35]line Счет N : (3)127505 [13:11:35]line ИНН: 02508201610067 [13:11:35]line Контрольно-Кассовый Чек [13:11:35]line ПРОДАЖА [13:11:35]line Товар: 5449000027450 [13:11:35]line Напиток FuzeTea чай манго,ром 0,5л [13:11:35]line 1.000 * 75.00 [13:11:35]line = 75.00 [13:11:35]line НДС 12% НСП 1% [13:11:35]line > о реализуемом товаре [13:11:35]line Товар: 46227720 [13:11:35]line Р/ж mentos pure fresh виноград ролл 15,5 [13:11:35]line 1.000 * 49.00 [13:11:35]line = 49.00 [13:11:35]line НДС 12% НСП 1% [13:11:35]line > о реализуемом товаре [13:11:35]line ИТОГО: 124.00 [13:11:35]line НСП 1% : 1.09 [13:11:35]line НДС 12% : 13.16 [13:11:35]line Наличными: 124.00 [13:11:35]line Безнал.: 0.00 [13:11:35]line Место: АЗС № 5 "Партнер Нефть" [13:11:35]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [13:11:35]line СНО: Общий режим [13:11:35]line Чек 60 15.09.2024 13:11 [13:11:35]line Смена: 507 ФФД: 1.0 [13:11:35]line ЗНМ: 03000000022 [13:11:35]line РНМ: 0000000000091423 [13:11:35]line Версия ККМ: 001 [13:11:35]line ФМ: 0000000000874692 [13:11:35]line ФД: 92612 [13:11:35]line ФПД: 21530654025412 [13:11:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T131142&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92612&fm=21530654025412&tin=02508201610067®Number=0000000000091423&sum=12400 [13:11:35]line 0 [13:11:35]written 0, free lines is 4095 [13:11:36]Write to MH i2c: 01 00 00 07 50 57 [13:11:36]Write i2c OK [13:11:36]MH_I2C_Read... [13:11:36]Read from MH i2c: 01 [13:11:36]MH_I2C_Read... [13:11:36]Read from MH i2c: 01 07 00 [13:11:36]MH_I2C_Read... [13:11:36]Read from MH i2c: 01 07 00 07 50 00 00 00 00 00 A8 0C 12 [13:11:36]RasterBufferAndPrint [13:11:36]line [13:11:36]line [13:11:36]line [13:11:36]line [13:11:36]line [13:11:36]written 0, free lines is 3247 [13:11:36]MH_Cut [13:11:36]Write to MH i2c: D1 01 00 0E 50 01 30 [13:11:36]Write i2c OK [13:11:36]MH_I2C_Read... [13:11:36]Read from MH i2c: D1 [13:11:36]MH_I2C_Read... [13:11:36]Read from MH i2c: D1 01 00 [13:11:36]MH_I2C_Read... [13:11:36]Read from MH i2c: D1 01 00 0E 50 00 2F [13:11:36]Write to MH i2c: 01 00 00 0F 50 5F [13:11:36]Write i2c OK [13:11:36]MH_I2C_Read... [13:11:37]*** Cut start [13:11:37]*** Purtial cut [13:11:37]*** Stage 1: CUTSNS_PIN = 1 [13:11:39]Read from MH i2c: 01 [13:11:39]MH_I2C_Read... [13:11:39]*** Stop cut motor [13:11:39]*** Cut end [13:11:39]Read from MH i2c: 01 07 00 [13:11:39]MH_I2C_Read... [13:11:39]Read from MH i2c: 01 07 00 0F 50 00 00 00 00 00 FF 0F 74 [13:11:39]process_action close_receipt done [13:11:39]requested_data is exist [13:11:39]produce_requested_data [13:11:39]requested_item fm.sn is exist - process it [13:11:39]wFMCommunicate request_size=4 [13:11:39]MH_SAM_APDU [13:11:39]CAPDU: 80 11 00 00 [13:11:39]Write to MH i2c: E2 08 00 10 50 80 11 00 00 00 00 00 00 DA [13:11:39]Write i2c OK [13:11:39]MH_I2C_Read... [13:11:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:39]Read from MH i2c: E2 [13:11:39]MH_I2C_Read... [13:11:39]Read from MH i2c: E2 17 00 [13:11:39]MH_I2C_Read... [13:11:39]Read from MH i2c: E2 17 00 10 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 31 [13:11:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:11:39]wFMCommunicate OK [13:11:39]requested_item fd.num is exist - process it [13:11:39]SAM_PROTO_GetFieldsCounters [13:11:39]wFMCommunicate request_size=4 [13:11:39]MH_SAM_APDU [13:11:39]CAPDU: 80 13 00 00 [13:11:39]Write to MH i2c: E2 08 00 11 50 80 13 00 00 00 00 00 00 DD [13:11:39]Write i2c OK [13:11:39]MH_I2C_Read... [13:11:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:39]Read from MH i2c: E2 [13:11:39]MH_I2C_Read... [13:11:39]Read from MH i2c: E2 62 00 [13:11:39]MH_I2C_Read... [13:11:39]Read from MH i2c: E2 62 00 11 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C4 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [13:11:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C4 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:11:39]wFMCommunicate OK [13:11:39]SAM_PROTO_GetFieldsCounters done [13:11:39]requested_item shift.num is exist - process it [13:11:39]requested_item shift.opened is exist - process it [13:11:39]req_shift_opened [13:11:39]FM_GetShiftState [13:11:39]SAM_PROTO_GetShiftState [13:11:39]wFMCommunicate request_size=4 [13:11:39]MH_SAM_APDU [13:11:39]CAPDU: 80 13 01 00 [13:11:39]Write to MH i2c: E2 08 00 12 50 80 13 01 00 00 00 00 00 DF [13:11:39]Write i2c OK [13:11:39]MH_I2C_Read... [13:11:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:39]Read from MH i2c: E2 [13:11:39]MH_I2C_Read... [13:11:39]Read from MH i2c: E2 0E 00 [13:11:39]MH_I2C_Read... [13:11:39]Read from MH i2c: E2 0E 00 12 50 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 61 [13:11:39]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:11:39]wFMCommunicate OK [13:11:39]SAM_PROTO_GetShiftState done [13:11:39]FM_GetShiftState done [13:11:39]req_shift_opened done [13:11:39]requested_item shift.open_date is exist - process it [13:11:39]req_shift_open_date [13:11:39]req_shift_open_date done [13:11:39]produce_requested_data done [13:11:39]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92612,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [13:11:39]process_action_free close_receipt [13:11:39]json_value_free [13:11:39]json_value_free done [13:11:39]process_json_proto returns [13:11:39]Send response to host [13:11:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92612,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [13:11:39]free response buf [13:11:39]execute_script done [13:11:39]execute_script returns [13:11:39]free content buf [13:11:39]Sock 8.Close socket [13:11:39]Sock 8.Thread stoped [13:11:46]accept exits with 9 [13:11:46]New connection [13:11:46]New thread 3066801508 created [13:11:46]Thread 3066658148 joined [13:11:46]Waiting for new connection... [13:11:46] Sock 9.Parse request [13:11:46]Sock 9.Check first char [13:11:46]Sock 9.First char is OK [13:11:46]request: POST /json_proto HTTP/1.0 [13:11:46]Method: POST [13:11:46]URL: /json_proto [13:11:46]Method is POST - this is cgi request [13:11:46]url: /json_proto [13:11:46]query_string will be loaded in cgi processing [13:11:46]execute_cgi json_proto POST (null) [13:11:46]execute_cgi path=json_proto method=POST [13:11:46]POST find Content-Length [13:11:46]Host: 172.17.57.71:8080 [13:11:46]Content-Length: 679 [13:11:46]Content-Type: application/json [13:11:46] [13:11:46]POST finish read [13:11:46]Found Content-Length = 679 [13:11:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:46]execute_script... [13:11:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:46]POST & json_proto [13:11:46]process_json_proto [13:11:46]json parsed OK: [13:11:46]protocol is kg_v1.0 [13:11:46]action value=close_receipt [13:11:46]process_action close_receipt [13:11:46]cmd_close_receipt [13:11:46]MH_GetDate [13:11:46]Write to MH i2c: F0 00 00 13 50 52 [13:11:46]Write i2c OK [13:11:46]MH_I2C_Read... [13:11:46]Read from MH i2c: F0 [13:11:46]MH_I2C_Read... [13:11:46]Read from MH i2c: F0 09 00 [13:11:46]MH_I2C_Read... [13:11:46]Read from MH i2c: F0 09 00 13 50 00 1A DD E6 66 33 3A A4 66 15 [13:11:46]GetLastDocTimeStamp 1726405902 [13:11:46]current date 1726405914 [13:11:46]FM_GetShiftState [13:11:46]SAM_PROTO_GetShiftState [13:11:46]wFMCommunicate request_size=4 [13:11:46]MH_SAM_APDU [13:11:46]CAPDU: 80 13 01 00 [13:11:46]Write to MH i2c: E2 08 00 14 50 80 13 01 00 00 00 00 00 E1 [13:11:46]Write i2c OK [13:11:46]MH_I2C_Read... [13:11:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:46]Read from MH i2c: E2 [13:11:46]MH_I2C_Read... [13:11:46]Read from MH i2c: E2 0E 00 [13:11:46]MH_I2C_Read... [13:11:46]Read from MH i2c: E2 0E 00 14 50 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 63 [13:11:46]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:11:46]wFMCommunicate OK [13:11:46]SAM_PROTO_GetShiftState done [13:11:46]FM_GetShiftState done [13:11:46]opened in 1726359809 [13:11:46]opened+sec_in_day 1726446209 [13:11:46]quantity*price = 100068 [13:11:46]sum+1 = 100069 [13:11:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.86 НДС 12% : 106.27 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 61 15.09.2024 13:11 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92613 ФПД: 79555459483737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T131154&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92613&fm=79555459483737&tin=02508201610067®Number=0000000000091423&sum=100000 [13:11:47]StoreToDocumentArchive [13:11:47]shift 507 fd 92613 [13:11:47]save to /storage/0507/doc_00092613 [13:11:47]save last doc name /storage/0507/doc_00092613 to /storage/kkm_last_doc_name [13:11:47]save OK [13:11:47]Clear old archive folders... [13:11:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:11:47]tlvbuf is 011380B0 [13:11:47]SAM_PROTO_ClearQueue [13:11:47]wFMCommunicate request_size=4 [13:11:47]MH_SAM_APDU [13:11:47]CAPDU: 80 09 00 00 [13:11:47]Write to MH i2c: E2 08 00 21 50 80 09 00 00 00 00 00 00 E3 [13:11:47]Write i2c OK [13:11:47]MH_I2C_Read... [13:11:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:47]Read from MH i2c: E2 [13:11:47]MH_I2C_Read... [13:11:47]Read from MH i2c: E2 03 00 [13:11:47]MH_I2C_Read... [13:11:47]Read from MH i2c: E2 03 00 21 50 00 90 00 E5 [13:11:47]RAPDU: 90 00 [13:11:47]wFMCommunicate OK [13:11:47]SAM_PROTO_ClearQueue done [13:11:47]KKMCreateOFDPacket [13:11:47]OFDProtocolAddRootSTLVToBuf [13:11:47]FM_MakeSignedData [13:11:47]FM_MakeSignedData [13:11:47]SAM_PROTO_SignData [13:11:47]wFMCommunicate request_size=4 [13:11:47]MH_SAM_APDU [13:11:47]CAPDU: 80 0D 01 02 [13:11:47]Write to MH i2c: E2 08 00 22 50 80 0D 01 02 00 00 00 00 EB [13:11:47]Write i2c OK [13:11:47]MH_I2C_Read... [13:11:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:47]Read from MH i2c: E2 [13:11:47]MH_I2C_Read... [13:11:47]Read from MH i2c: E2 03 00 [13:11:47]MH_I2C_Read... [13:11:47]Read from MH i2c: E2 03 00 22 50 00 90 00 E6 [13:11:47]RAPDU: 90 00 [13:11:47]wFMCommunicate OK [13:11:47]wFMCommunicate request_size=255 [13:11:47]MH_SAM_APDU [13:11:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 1A DD E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C5 69 01 00 35 04 06 00 48 5A F2 E7 [13:11:47]Write to MH i2c: E2 02 01 23 50 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 1A DD E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C5 69 01 00 35 04 06 00 48 5A F2 E7 00 00 35 [13:11:47]Write i2c OK [13:11:47]MH_I2C_Read... [13:11:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:47]Read from MH i2c: E2 [13:11:47]MH_I2C_Read... [13:11:47]Read from MH i2c: E2 03 00 [13:11:47]MH_I2C_Read... [13:11:47]Read from MH i2c: E2 03 00 23 50 00 90 00 E7 [13:11:47]RAPDU: 90 00 [13:11:47]wFMCommunicate OK [13:11:47]wFMCommunicate request_size=7 [13:11:47]MH_SAM_APDU [13:11:47]CAPDU: 80 0D 02 02 02 08 59 [13:11:47]Write to MH i2c: E2 0A 00 24 50 80 0D 02 02 02 00 08 59 00 00 53 [13:11:47]Write i2c OK [13:11:47]MH_I2C_Read... [13:11:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:47]Read from MH i2c: E2 [13:11:47]MH_I2C_Read... [13:11:47]Read from MH i2c: E2 03 00 [13:11:47]MH_I2C_Read... [13:11:47]Read from MH i2c: E2 03 00 24 50 00 90 00 E8 [13:11:47]RAPDU: 90 00 [13:11:47]wFMCommunicate OK [13:11:47]wFMCommunicate request_size=4 [13:11:47]MH_SAM_APDU [13:11:47]CAPDU: 80 0D 03 02 [13:11:47]Write to MH i2c: E2 08 00 25 50 80 0D 03 02 00 00 00 00 F0 [13:11:47]Write i2c OK [13:11:47]MH_I2C_Read... [13:11:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:47]Read from MH i2c: E2 [13:11:47]MH_I2C_Read... [13:11:47]Read from MH i2c: E2 0B 00 [13:11:47]MH_I2C_Read... [13:11:47]Read from MH i2c: E2 0B 00 25 50 00 3E 18 67 74 DD 56 38 A3 90 00 30 [13:11:47]RAPDU: 3E 18 67 74 DD 56 38 A3 90 00 [13:11:47]wFMCommunicate OK [13:11:47]SAM_PROTO_SignData done [13:11:47]FM_MakeSignedData done [13:11:47]CreateOFDProtocolMessage [13:11:47]wFMCommunicate request_size=4 [13:11:47]MH_SAM_APDU [13:11:47]CAPDU: 80 11 00 00 [13:11:47]Write to MH i2c: E2 08 00 26 50 80 11 00 00 00 00 00 00 F0 [13:11:47]Write i2c OK [13:11:47]MH_I2C_Read... [13:11:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:47]Read from MH i2c: E2 [13:11:47]MH_I2C_Read... [13:11:47]Read from MH i2c: E2 17 00 [13:11:47]MH_I2C_Read... [13:11:47]Read from MH i2c: E2 17 00 26 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 47 [13:11:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:11:47]wFMCommunicate OK [13:11:47]CreateOFDProtocolMessage done [13:11:47]OFDSenderStorePacket 92613 [13:11:47]StoreOFDPacket docnum=92613 [13:11:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0C 01 00 00 F2 AD 04 01 EE B1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 1A DD E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C5 69 01 00 35 04 06 00 48 5A F2 E7 08 59 3E 18 67 74 DD 56 38 A3 [13:11:47]CheckFolder [13:11:47]dirname=/storage/ofd_packets [13:11:47]CheckFolder done [13:11:47]ProducePacketName [13:11:47]name=ofd_packets/00092613 [13:11:47]NVStorageSaveData ofd_packets/00092613 [13:11:47]File name is /storage/ofd_packets/00092613 [13:11:47]Write 298 bytes [13:11:47]NVStorageSaveData done [13:11:47]OFDSenderStorePacket done [13:11:47]KKMCreateOFDPacket done [13:11:47]NVStorageSaveData kkm_last_timestamp [13:11:47]File name is /storage/kkm_last_timestamp [13:11:47]Write 4 bytes [13:11:47]NVStorageSaveData done [13:11:47]ExternCall_PrintAddStr [13:11:47]wPrintStart [13:11:47]Write to MH i2c: 01 00 00 27 50 77 [13:11:47]Write i2c OK [13:11:47]MH_I2C_Read... [13:11:47]Read from MH i2c: 01 [13:11:47]MH_I2C_Read... [13:11:47]Read from MH i2c: 01 07 00 [13:11:47]MH_I2C_Read... [13:11:47]Read from MH i2c: 01 07 00 27 50 00 00 00 00 00 FF 0F 8C [13:11:47]RasterBufferAndPrint [13:11:47]line Счет N : (1)648404 [13:11:47]line ИНН: 02508201610067 [13:11:47]line Контрольно-Кассовый Чек [13:11:47]line ПРОДАЖА [13:11:47]line ТРК (МРК, ГНК) : 44 [13:11:47]line Товар: 2710194210 [13:11:47]line ДТ-К-5 [13:11:47]line 13.450 * 74.40 [13:11:47]line = 1000.68 [13:11:47]line НДС 12% НСП 1% [13:11:47]line > о реализуемом товаре [13:11:47]line ОКРУГЛЕНИЕ: -0.68 [13:11:47]line ИТОГО: 1000.00 [13:11:47]line Внесено: 1000.00 [13:11:47]line СДАЧА: 0.00 [13:11:47]line НСП 1% : 8.86 [13:11:47]line НДС 12% : 106.27 [13:11:47]line Наличными: 1000.00 [13:11:47]line Безнал.: 0.00 [13:11:47]line Место: АЗС № 5 "Партнер Нефть" [13:11:47]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [13:11:47]line СНО: Общий режим [13:11:47]line Чек 61 15.09.2024 13:11 [13:11:47]line Смена: 507 ФФД: 1.0 [13:11:47]line ЗНМ: 03000000022 [13:11:47]line РНМ: 0000000000091423 [13:11:47]line Версия ККМ: 001 [13:11:47]line ФМ: 0000000000874692 [13:11:47]line ФД: 92613 [13:11:47]line ФПД: 79555459483737 [13:11:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T131154&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92613&fm=79555459483737&tin=02508201610067®Number=0000000000091423&sum=100000 [13:11:48]written 0, free lines is 4095 [13:11:48]Write to MH i2c: 01 00 00 52 50 A2 [13:11:48]Write i2c OK [13:11:48]MH_I2C_Read... [13:11:48]Read from MH i2c: 01 [13:11:48]MH_I2C_Read... [13:11:48]Read from MH i2c: 01 07 00 [13:11:48]MH_I2C_Read... [13:11:48]Read from MH i2c: 01 07 00 52 50 00 00 00 00 00 EA 0C 9F [13:11:48]RasterBufferAndPrint [13:11:48]line [13:11:48]line [13:11:48]line [13:11:48]line [13:11:48]line [13:11:48]written 0, free lines is 3314 [13:11:48]MH_Cut [13:11:48]Write to MH i2c: D1 01 00 59 50 01 7B [13:11:48]Write i2c OK [13:11:48]MH_I2C_Read... [13:11:48]Read from MH i2c: D1 [13:11:48]MH_I2C_Read... [13:11:48]Read from MH i2c: D1 01 00 [13:11:48]MH_I2C_Read... [13:11:48]Read from MH i2c: D1 01 00 59 50 00 7A [13:11:48]Write to MH i2c: 01 00 00 5A 50 AA [13:11:48]Write i2c OK [13:11:48]MH_I2C_Read... [13:11:49]*** Cut start [13:11:49]*** Purtial cut [13:11:49]*** Stage 1: CUTSNS_PIN = 1 [13:11:51]Read from MH i2c: 01 [13:11:51]MH_I2C_Read... [13:11:51]*** Stop cut motor [13:11:51]*** Cut end [13:11:51]Read from MH i2c: 01 07 00 [13:11:51]MH_I2C_Read... [13:11:51]Read from MH i2c: 01 07 00 5A 50 00 00 00 00 00 FF 0F BF [13:11:51]process_action close_receipt done [13:11:51]requested_data is exist [13:11:51]produce_requested_data [13:11:51]requested_item fm.sn is exist - process it [13:11:51]wFMCommunicate request_size=4 [13:11:51]MH_SAM_APDU [13:11:51]CAPDU: 80 11 00 00 [13:11:51]Write to MH i2c: E2 08 00 5B 50 80 11 00 00 00 00 00 00 25 [13:11:51]Write i2c OK [13:11:51]MH_I2C_Read... [13:11:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:51]Read from MH i2c: E2 [13:11:51]MH_I2C_Read... [13:11:51]Read from MH i2c: E2 17 00 [13:11:51]MH_I2C_Read... [13:11:51]Read from MH i2c: E2 17 00 5B 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 7C [13:11:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:11:51]wFMCommunicate OK [13:11:51]requested_item fd.num is exist - process it [13:11:51]SAM_PROTO_GetFieldsCounters [13:11:51]wFMCommunicate request_size=4 [13:11:51]MH_SAM_APDU [13:11:51]CAPDU: 80 13 00 00 [13:11:51]Write to MH i2c: E2 08 00 5C 50 80 13 00 00 00 00 00 00 28 [13:11:51]Write i2c OK [13:11:51]MH_I2C_Read... [13:11:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:51]Read from MH i2c: E2 [13:11:51]MH_I2C_Read... [13:11:51]Read from MH i2c: E2 62 00 [13:11:51]MH_I2C_Read... [13:11:51]Read from MH i2c: E2 62 00 5C 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C5 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [13:11:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C5 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:11:51]wFMCommunicate OK [13:11:51]SAM_PROTO_GetFieldsCounters done [13:11:51]requested_item shift.num is exist - process it [13:11:51]requested_item shift.opened is exist - process it [13:11:51]req_shift_opened [13:11:51]FM_GetShiftState [13:11:51]SAM_PROTO_GetShiftState [13:11:51]wFMCommunicate request_size=4 [13:11:51]MH_SAM_APDU [13:11:51]CAPDU: 80 13 01 00 [13:11:51]Write to MH i2c: E2 08 00 5D 50 80 13 01 00 00 00 00 00 2A [13:11:51]Write i2c OK [13:11:51]MH_I2C_Read... [13:11:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:51]Read from MH i2c: E2 [13:11:51]MH_I2C_Read... [13:11:51]Read from MH i2c: E2 0E 00 [13:11:51]MH_I2C_Read... [13:11:51]Read from MH i2c: E2 0E 00 5D 50 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 AC [13:11:51]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:11:51]wFMCommunicate OK [13:11:51]SAM_PROTO_GetShiftState done [13:11:51]FM_GetShiftState done [13:11:51]req_shift_opened done [13:11:51]requested_item shift.open_date is exist - process it [13:11:51]req_shift_open_date [13:11:51]req_shift_open_date done [13:11:51]produce_requested_data done [13:11:51]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92613,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [13:11:51]process_action_free close_receipt [13:11:51]json_value_free [13:11:51]json_value_free done [13:11:51]process_json_proto returns [13:11:51]Send response to host [13:11:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92613,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [13:11:51]free response buf [13:11:51]execute_script done [13:11:51]execute_script returns [13:11:51]free content buf [13:11:51]Sock 9.Close socket [13:11:51]Sock 9.Thread stoped [13:11:55]accept exits with 11 [13:11:55]New connection [13:11:55]New thread 3066658148 created [13:11:55]Thread 3066801508 joined [13:11:55]Waiting for new connection... [13:11:55] Sock 11.Parse request [13:11:55]Sock 11.Check first char [13:11:55]Sock 11.First char is OK [13:11:55]request: POST /json_proto HTTP/1.0 [13:11:55]Method: POST [13:11:55]URL: /json_proto [13:11:55]Method is POST - this is cgi request [13:11:55]url: /json_proto [13:11:55]query_string will be loaded in cgi processing [13:11:55]execute_cgi json_proto POST (null) [13:11:55]execute_cgi path=json_proto method=POST [13:11:55]POST find Content-Length [13:11:55]Host: 172.17.57.71:8080 [13:11:55]Content-Length: 682 [13:11:55]Content-Type: application/json [13:11:55] [13:11:55]POST finish read [13:11:55]Found Content-Length = 682 [13:11:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 20.300, "sum" : 1500.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:55]execute_script... [13:11:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 20.300, "sum" : 1500.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:55]POST & json_proto [13:11:55]process_json_proto [13:11:55]json parsed OK: [13:11:55]protocol is kg_v1.0 [13:11:55]action value=close_receipt [13:11:55]process_action close_receipt [13:11:55]cmd_close_receipt [13:11:55]MH_GetDate [13:11:55]Write to MH i2c: F0 00 00 5E 50 9D [13:11:55]Write i2c OK [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: F0 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: F0 09 00 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: F0 09 00 5E 50 00 24 DD E6 66 33 3A A4 66 6A [13:11:55]GetLastDocTimeStamp 1726405914 [13:11:55]current date 1726405924 [13:11:55]FM_GetShiftState [13:11:55]SAM_PROTO_GetShiftState [13:11:55]wFMCommunicate request_size=4 [13:11:55]MH_SAM_APDU [13:11:55]CAPDU: 80 13 01 00 [13:11:55]Write to MH i2c: E2 08 00 5F 50 80 13 01 00 00 00 00 00 2C [13:11:55]Write i2c OK [13:11:55]MH_I2C_Read... [13:11:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:55]Read from MH i2c: E2 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: E2 0E 00 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: E2 0E 00 5F 50 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 AE [13:11:55]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:11:55]wFMCommunicate OK [13:11:55]SAM_PROTO_GetShiftState done [13:11:55]FM_GetShiftState done [13:11:55]opened in 1726359809 [13:11:55]opened+sec_in_day 1726446209 [13:11:55]quantity*price = 150017 [13:11:55]sum+1 = 150018 [13:11:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.31 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 62 15.09.2024 13:12 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92614 ФПД: 149366256713085 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T131204&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92614&fm=149366256713085&tin=02508201610067®Number=0000000000091423&sum=150000 [13:11:57]StoreToDocumentArchive [13:11:57]shift 507 fd 92614 [13:11:57]save to /storage/0507/doc_00092614 [13:11:57]save last doc name /storage/0507/doc_00092614 to /storage/kkm_last_doc_name [13:11:57]save OK [13:11:57]Clear old archive folders... [13:11:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:11:57]tlvbuf is 010622F0 [13:11:57]SAM_PROTO_ClearQueue [13:11:57]wFMCommunicate request_size=4 [13:11:57]MH_SAM_APDU [13:11:57]CAPDU: 80 09 00 00 [13:11:57]Write to MH i2c: E2 08 00 6C 50 80 09 00 00 00 00 00 00 2E [13:11:57]Write i2c OK [13:11:57]MH_I2C_Read... [13:11:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:57]Read from MH i2c: E2 [13:11:57]MH_I2C_Read... [13:11:57]Read from MH i2c: E2 03 00 [13:11:57]MH_I2C_Read... [13:11:57]Read from MH i2c: E2 03 00 6C 50 00 90 00 30 [13:11:57]RAPDU: 90 00 [13:11:57]wFMCommunicate OK [13:11:57]SAM_PROTO_ClearQueue done [13:11:57]KKMCreateOFDPacket [13:11:57]OFDProtocolAddRootSTLVToBuf [13:11:57]FM_MakeSignedData [13:11:57]FM_MakeSignedData [13:11:57]SAM_PROTO_SignData [13:11:57]wFMCommunicate request_size=4 [13:11:57]MH_SAM_APDU [13:11:57]CAPDU: 80 0D 01 02 [13:11:57]Write to MH i2c: E2 08 00 6D 50 80 0D 01 02 00 00 00 00 36 [13:11:57]Write i2c OK [13:11:57]MH_I2C_Read... [13:11:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:57]Read from MH i2c: E2 [13:11:57]MH_I2C_Read... [13:11:57]Read from MH i2c: E2 03 00 [13:11:57]MH_I2C_Read... [13:11:57]Read from MH i2c: E2 03 00 6D 50 00 90 00 31 [13:11:57]RAPDU: 90 00 [13:11:57]wFMCommunicate OK [13:11:57]wFMCommunicate request_size=255 [13:11:57]MH_SAM_APDU [13:11:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 24 DD E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C6 69 01 00 35 04 06 00 87 [13:11:57]Write to MH i2c: E2 02 01 6E 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 24 DD E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C6 69 01 00 35 04 06 00 87 00 00 86 [13:11:57]Write i2c OK [13:11:57]MH_I2C_Read... [13:11:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:57]Read from MH i2c: E2 [13:11:57]MH_I2C_Read... [13:11:57]Read from MH i2c: E2 03 00 [13:11:57]MH_I2C_Read... [13:11:57]Read from MH i2c: E2 03 00 6E 50 00 90 00 32 [13:11:57]RAPDU: 90 00 [13:11:57]wFMCommunicate OK [13:11:57]wFMCommunicate request_size=10 [13:11:57]MH_SAM_APDU [13:11:57]CAPDU: 80 0D 02 02 05 D9 0A AC 3D 7D [13:11:57]Write to MH i2c: E2 0D 00 6F 50 80 0D 02 02 05 00 D9 0A AC 3D 7D 00 00 8C [13:11:57]Write i2c OK [13:11:57]MH_I2C_Read... [13:11:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:57]Read from MH i2c: E2 [13:11:57]MH_I2C_Read... [13:11:57]Read from MH i2c: E2 03 00 [13:11:57]MH_I2C_Read... [13:11:57]Read from MH i2c: E2 03 00 6F 50 00 90 00 33 [13:11:57]RAPDU: 90 00 [13:11:57]wFMCommunicate OK [13:11:57]wFMCommunicate request_size=4 [13:11:57]MH_SAM_APDU [13:11:57]CAPDU: 80 0D 03 02 [13:11:57]Write to MH i2c: E2 08 00 70 50 80 0D 03 02 00 00 00 00 3B [13:11:57]Write i2c OK [13:11:57]MH_I2C_Read... [13:11:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:57]Read from MH i2c: E2 [13:11:57]MH_I2C_Read... [13:11:57]Read from MH i2c: E2 0B 00 [13:11:57]MH_I2C_Read... [13:11:57]Read from MH i2c: E2 0B 00 70 50 00 3C 73 48 45 3E 95 F0 B9 90 00 F4 [13:11:57]RAPDU: 3C 73 48 45 3E 95 F0 B9 90 00 [13:11:57]wFMCommunicate OK [13:11:57]SAM_PROTO_SignData done [13:11:57]FM_MakeSignedData done [13:11:57]CreateOFDProtocolMessage [13:11:57]wFMCommunicate request_size=4 [13:11:57]MH_SAM_APDU [13:11:57]CAPDU: 80 11 00 00 [13:11:57]Write to MH i2c: E2 08 00 71 50 80 11 00 00 00 00 00 00 3B [13:11:57]Write i2c OK [13:11:57]MH_I2C_Read... [13:11:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:57]Read from MH i2c: E2 [13:11:57]MH_I2C_Read... [13:11:57]Read from MH i2c: E2 17 00 [13:11:57]MH_I2C_Read... [13:11:57]Read from MH i2c: E2 17 00 71 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 92 [13:11:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:11:57]wFMCommunicate OK [13:11:57]CreateOFDProtocolMessage done [13:11:57]OFDSenderStorePacket 92614 [13:11:57]StoreOFDPacket docnum=92614 [13:11:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 2B 14 07 01 E5 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 24 DD E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C6 69 01 00 35 04 06 00 87 D9 0A AC 3D 7D 3C 73 48 45 3E 95 F0 B9 [13:11:57]CheckFolder [13:11:57]dirname=/storage/ofd_packets [13:11:57]CheckFolder done [13:11:57]ProducePacketName [13:11:57]name=ofd_packets/00092614 [13:11:57]NVStorageSaveData ofd_packets/00092614 [13:11:57]File name is /storage/ofd_packets/00092614 [13:11:57]Write 301 bytes [13:11:57]NVStorageSaveData done [13:11:57]OFDSenderStorePacket done [13:11:57]KKMCreateOFDPacket done [13:11:57]NVStorageSaveData kkm_last_timestamp [13:11:57]File name is /storage/kkm_last_timestamp [13:11:57]Write 4 bytes [13:11:57]NVStorageSaveData done [13:11:57]ExternCall_PrintAddStr [13:11:57]wPrintStart [13:11:57]Write to MH i2c: 01 00 00 72 50 C2 [13:11:57]Write i2c OK [13:11:57]MH_I2C_Read... [13:11:57]Read from MH i2c: 01 [13:11:57]MH_I2C_Read... [13:11:57]Read from MH i2c: 01 07 00 [13:11:57]MH_I2C_Read... [13:11:57]Read from MH i2c: 01 07 00 72 50 00 00 00 00 00 FF 0F D7 [13:11:57]RasterBufferAndPrint [13:11:57]line Счет N : (1)648405 [13:11:57]line ИНН: 02508201610067 [13:11:57]line Контрольно-Кассовый Чек [13:11:57]line ПРОДАЖА [13:11:57]line ТРК (МРК, ГНК) : 52 [13:11:57]line Товар: 2710124500 [13:11:57]line Аи-95-К-5 [13:11:57]line 20.300 * 73.90 [13:11:57]line = 1500.17 [13:11:57]line НДС 12% НСП 1% [13:11:57]line > о реализуемом товаре [13:11:57]line ОКРУГЛЕНИЕ: -0.17 [13:11:57]line ИТОГО: 1500.00 [13:11:57]line Внесено: 1500.00 [13:11:57]line СДАЧА: 0.00 [13:11:57]line НСП 1% : 13.28 [13:11:57]line НДС 12% : 159.31 [13:11:57]line Наличными: 1500.00 [13:11:57]line Безнал.: 0.00 [13:11:57]line Место: АЗС № 5 "Партнер Нефть" [13:11:57]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [13:11:57]line СНО: Общий режим [13:11:57]line Чек 62 15.09.2024 13:12 [13:11:57]line Смена: 507 ФФД: 1.0 [13:11:57]line ЗНМ: 03000000022 [13:11:57]line РНМ: 0000000000091423 [13:11:57]line Версия ККМ: 001 [13:11:57]line ФМ: 0000000000874692 [13:11:57]line ФД: 92614 [13:11:57]line ФПД: 149366256713085 [13:11:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T131204&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92614&fm=149366256713085&tin=02508201610067®Number=0000000000091423&sum=150000 [13:11:57]written 0, free lines is 4095 [13:11:58]Write to MH i2c: 01 00 00 9D 50 ED [13:11:58]Write i2c OK [13:11:58]MH_I2C_Read... [13:11:58]Read from MH i2c: 01 [13:11:58]MH_I2C_Read... [13:11:58]Read from MH i2c: 01 07 00 [13:11:58]MH_I2C_Read... [13:11:58]Read from MH i2c: 01 07 00 9D 50 00 00 00 00 00 ED 0C ED [13:11:58]RasterBufferAndPrint [13:11:58]line [13:11:58]line [13:11:58]line [13:11:58]line [13:11:58]line [13:11:58]written 0, free lines is 3318 [13:11:58]MH_Cut [13:11:58]Write to MH i2c: D1 01 00 A4 50 01 C6 [13:11:58]Write i2c OK [13:11:58]MH_I2C_Read... [13:11:58]Read from MH i2c: D1 [13:11:58]MH_I2C_Read... [13:11:58]Read from MH i2c: D1 01 00 [13:11:58]MH_I2C_Read... [13:11:58]Read from MH i2c: D1 01 00 A4 50 00 C5 [13:11:58]Write to MH i2c: 01 00 00 A5 50 F5 [13:11:58]Write i2c OK [13:11:58]MH_I2C_Read... [13:11:58]*** Cut start [13:11:58]*** Purtial cut [13:11:58]*** Stage 1: CUTSNS_PIN = 1 [13:12:00]Read from MH i2c: 01 [13:12:00]MH_I2C_Read... [13:12:00]*** Stop cut motor [13:12:00]*** Cut end [13:12:00]Read from MH i2c: 01 07 00 [13:12:00]MH_I2C_Read... [13:12:00]Read from MH i2c: 01 07 00 A5 50 00 00 00 00 00 FF 0F 0A [13:12:00]process_action close_receipt done [13:12:00]requested_data is exist [13:12:00]produce_requested_data [13:12:00]requested_item fm.sn is exist - process it [13:12:00]wFMCommunicate request_size=4 [13:12:00]MH_SAM_APDU [13:12:00]CAPDU: 80 11 00 00 [13:12:00]Write to MH i2c: E2 08 00 A6 50 80 11 00 00 00 00 00 00 70 [13:12:00]Write i2c OK [13:12:00]MH_I2C_Read... [13:12:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:00]Read from MH i2c: E2 [13:12:00]MH_I2C_Read... [13:12:00]Read from MH i2c: E2 17 00 [13:12:00]MH_I2C_Read... [13:12:00]Read from MH i2c: E2 17 00 A6 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C7 [13:12:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:12:00]wFMCommunicate OK [13:12:00]requested_item fd.num is exist - process it [13:12:00]SAM_PROTO_GetFieldsCounters [13:12:00]wFMCommunicate request_size=4 [13:12:00]MH_SAM_APDU [13:12:00]CAPDU: 80 13 00 00 [13:12:00]Write to MH i2c: E2 08 00 A7 50 80 13 00 00 00 00 00 00 73 [13:12:00]Write i2c OK [13:12:00]MH_I2C_Read... [13:12:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:00]Read from MH i2c: E2 [13:12:00]MH_I2C_Read... [13:12:00]Read from MH i2c: E2 62 00 [13:12:00]MH_I2C_Read... [13:12:00]Read from MH i2c: E2 62 00 A7 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C6 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [13:12:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C6 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:12:00]wFMCommunicate OK [13:12:00]SAM_PROTO_GetFieldsCounters done [13:12:00]requested_item shift.num is exist - process it [13:12:00]requested_item shift.opened is exist - process it [13:12:00]req_shift_opened [13:12:00]FM_GetShiftState [13:12:00]SAM_PROTO_GetShiftState [13:12:00]wFMCommunicate request_size=4 [13:12:00]MH_SAM_APDU [13:12:00]CAPDU: 80 13 01 00 [13:12:00]Write to MH i2c: E2 08 00 A8 50 80 13 01 00 00 00 00 00 75 [13:12:00]Write i2c OK [13:12:00]MH_I2C_Read... [13:12:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:01]Read from MH i2c: E2 [13:12:01]MH_I2C_Read... [13:12:01]Read from MH i2c: E2 0E 00 [13:12:01]MH_I2C_Read... [13:12:01]Read from MH i2c: E2 0E 00 A8 50 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 F7 [13:12:01]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:12:01]wFMCommunicate OK [13:12:01]SAM_PROTO_GetShiftState done [13:12:01]FM_GetShiftState done [13:12:01]req_shift_opened done [13:12:01]requested_item shift.open_date is exist - process it [13:12:01]req_shift_open_date [13:12:01]req_shift_open_date done [13:12:01]produce_requested_data done [13:12:01]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92614,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [13:12:01]process_action_free close_receipt [13:12:01]json_value_free [13:12:01]json_value_free done [13:12:01]process_json_proto returns [13:12:01]Send response to host [13:12:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92614,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [13:12:01]free response buf [13:12:01]execute_script done [13:12:01]execute_script returns [13:12:01]free content buf [13:12:01]Sock 11.Close socket [13:12:01]Sock 11.Thread stoped [13:12:07]ConnectInit Can't connect to host [13:12:07]CommunicateWithHost connect error [13:12:07]CommunicateWithHost err = -1 [13:12:07]OFD Sender: Server communicate error [13:12:07]OFD Sender: Processing packet 92611 [packets to send 66, broken 62] [13:12:07]ProducePacketName [13:12:07]name=ofd_packets/00092611 [13:12:07]OFD Sender: To server: pG, [13:12:07]CommunicateWithHost lk.salyk.kg:30040 [13:12:07]ConnectInit lk.salyk.kg [13:12:07]Connected sock=9 [13:12:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 EC B6 07 01 11 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A9 DC E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C3 69 01 00 35 04 06 00 66 2B 2C 2D AC 1D CA 77 32 08 4A 0F 7F 04 [13:12:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 96 E7 47 00 2C E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C3 69 01 00 F4 03 04 00 A6 85 E6 66 B6 04 01 00 00 9B C4 15 27 5F FF 2B FC [13:12:08]CommunicateWithHost err = 0 [13:12:08]CheckOFDResponse [13:12:08]1017 (14) - 77093643461234 [13:12:08]1041 (16) - 0000000000874692 [13:12:08]1040 (4) - 92611 [13:12:08]1012 (4) - 15.09.2024 06:58 [13:12:08]1206 (1) - 0 [13:12:08]OFD Sender: Remove packet 92611 [13:12:08]ProducePacketName [13:12:08]name=ofd_packets/00092611 [13:12:08]NVStorageDeleteData [13:12:08]OFD Sender: Processing packet 92612 [packets to send 65, broken 62] [13:12:08]ProducePacketName [13:12:08]name=ofd_packets/00092612 [13:12:08]OFD Sender: To server: pG, [13:12:08]CommunicateWithHost lk.salyk.kg:30040 [13:12:08]ConnectInit lk.salyk.kg [13:12:08]Connected sock=9 [13:12:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 B4 01 00 00 77 00 AC 01 34 96 5A 03 01 00 03 00 A0 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 05 00 00 00 00 07 04 06 00 70 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 0E DD E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C4 69 01 00 35 04 06 00 13 94 FE FC 26 C4 7B 14 96 5A 3C 9B 6C 4B [13:12:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 80 B3 47 00 0D F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C4 69 01 00 F4 03 04 00 A7 85 E6 66 B6 04 01 00 00 BE 00 08 A7 81 C1 FF 54 [13:12:08]CommunicateWithHost err = 0 [13:12:08]CheckOFDResponse [13:12:08]1017 (14) - 77093643461234 [13:12:08]1041 (16) - 0000000000874692 [13:12:08]1040 (4) - 92612 [13:12:08]1012 (4) - 15.09.2024 06:58 [13:12:08]1206 (1) - 0 [13:12:08]OFD Sender: Remove packet 92612 [13:12:08]ProducePacketName [13:12:08]name=ofd_packets/00092612 [13:12:08]NVStorageDeleteData [13:12:09]OFD Sender: Processing packet 92613 [packets to send 64, broken 62] [13:12:09]ProducePacketName [13:12:09]name=ofd_packets/00092613 [13:12:09]OFD Sender: To server: pG, [13:12:09]CommunicateWithHost lk.salyk.kg:30040 [13:12:09]ConnectInit lk.salyk.kg [13:12:09]Connected sock=9 [13:12:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0C 01 00 00 F2 AD 04 01 EE B1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 1A DD E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C5 69 01 00 35 04 06 00 48 5A F2 E7 08 59 3E 18 67 74 DD 56 38 A3 [13:12:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 4C 7F 47 00 4C 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C5 69 01 00 F4 03 04 00 A7 85 E6 66 B6 04 01 00 00 4D 4E CF 95 DA 32 71 14 [13:12:09]CommunicateWithHost err = 0 [13:12:09]CheckOFDResponse [13:12:09]1017 (14) - 77093643461234 [13:12:09]1041 (16) - 0000000000874692 [13:12:09]1040 (4) - 92613 [13:12:09]1012 (4) - 15.09.2024 06:58 [13:12:09]1206 (1) - 0 [13:12:09]OFD Sender: Remove packet 92613 [13:12:09]ProducePacketName [13:12:09]name=ofd_packets/00092613 [13:12:09]NVStorageDeleteData [13:12:10]OFD Sender: Processing packet 92614 [packets to send 63, broken 62] [13:12:10]ProducePacketName [13:12:10]name=ofd_packets/00092614 [13:12:10]OFD Sender: To server: pG, [13:12:10]CommunicateWithHost lk.salyk.kg:30040 [13:12:10]ConnectInit lk.salyk.kg [13:12:10]Connected sock=9 [13:12:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 2B 14 07 01 E5 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 24 DD E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C6 69 01 00 35 04 06 00 87 D9 0A AC 3D 7D 3C 73 48 45 3E 95 F0 B9 [13:12:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 8C 34 47 00 07 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C6 69 01 00 F4 03 04 00 A8 85 E6 66 B6 04 01 00 00 72 8D F5 85 BE 8B 3A F5 [13:12:10]CommunicateWithHost err = 0 [13:12:10]CheckOFDResponse [13:12:10]1017 (14) - 77093643461234 [13:12:10]1041 (16) - 0000000000874692 [13:12:10]1040 (4) - 92614 [13:12:10]1012 (4) - 15.09.2024 06:58 [13:12:10]1206 (1) - 0 [13:12:10]OFD Sender: Remove packet 92614 [13:12:10]ProducePacketName [13:12:10]name=ofd_packets/00092614 [13:12:10]NVStorageDeleteData [13:12:10]OFD Sender: No OFD packet to send [13:12:15]OFD Sender: No OFD packet to send [13:12:17]accept exits with 8 [13:12:17]New connection [13:12:17]New thread 3066801508 created [13:12:17]Thread 3066658148 joined [13:12:17]Waiting for new connection... [13:12:17] Sock 8.Parse request [13:12:17]Sock 8.Check first char [13:12:17]Sock 8.First char is OK [13:12:17]request: POST /json_proto HTTP/1.0 [13:12:17]Method: POST [13:12:17]URL: /json_proto [13:12:17]Method is POST - this is cgi request [13:12:17]url: /json_proto [13:12:17]query_string will be loaded in cgi processing [13:12:17]execute_cgi json_proto POST (null) [13:12:17]execute_cgi path=json_proto method=POST [13:12:17]POST find Content-Length [13:12:17]Host: 172.17.57.71:8080 [13:12:17]Content-Length: 215 [13:12:17]Content-Type: application/json [13:12:17] [13:12:17]POST finish read [13:12:17]Found Content-Length = 215 [13:12:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:17]execute_script... [13:12:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:17]POST & json_proto [13:12:17]process_json_proto [13:12:17]json parsed OK: [13:12:17]protocol is kg_v1.0 [13:12:17]action value=get_value [13:12:17]process_action get_value [13:12:17]cmd_get_value [13:12:17]process_action get_value done [13:12:17]requested_data is exist [13:12:17]produce_requested_data [13:12:17]requested_item kkm.sn is exist - process it [13:12:17]requested_item kkm.ver is exist - process it [13:12:17]requested_item fm.sn is exist - process it [13:12:17]wFMCommunicate request_size=4 [13:12:17]MH_SAM_APDU [13:12:17]CAPDU: 80 11 00 00 [13:12:17]Write to MH i2c: E2 08 00 A9 50 80 11 00 00 00 00 00 00 73 [13:12:17]Write i2c OK [13:12:17]MH_I2C_Read... [13:12:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:17]Read from MH i2c: E2 [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: E2 17 00 [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: E2 17 00 A9 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 CA [13:12:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:12:17]wFMCommunicate OK [13:12:17]requested_item fd.num is exist - process it [13:12:17]SAM_PROTO_GetFieldsCounters [13:12:17]wFMCommunicate request_size=4 [13:12:17]MH_SAM_APDU [13:12:17]CAPDU: 80 13 00 00 [13:12:17]Write to MH i2c: E2 08 00 AA 50 80 13 00 00 00 00 00 00 76 [13:12:17]Write i2c OK [13:12:17]MH_I2C_Read... [13:12:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:18]Read from MH i2c: E2 [13:12:18]MH_I2C_Read... [13:12:18]Read from MH i2c: E2 62 00 [13:12:18]MH_I2C_Read... [13:12:18]Read from MH i2c: E2 62 00 AA 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C6 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [13:12:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C6 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:12:18]wFMCommunicate OK [13:12:18]SAM_PROTO_GetFieldsCounters done [13:12:18]requested_item shift.num is exist - process it [13:12:18]requested_item shift.opened is exist - process it [13:12:18]req_shift_opened [13:12:18]FM_GetShiftState [13:12:18]SAM_PROTO_GetShiftState [13:12:18]wFMCommunicate request_size=4 [13:12:18]MH_SAM_APDU [13:12:18]CAPDU: 80 13 01 00 [13:12:18]Write to MH i2c: E2 08 00 AB 50 80 13 01 00 00 00 00 00 78 [13:12:18]Write i2c OK [13:12:18]MH_I2C_Read... [13:12:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:18]Read from MH i2c: E2 [13:12:18]MH_I2C_Read... [13:12:18]Read from MH i2c: E2 0E 00 [13:12:18]MH_I2C_Read... [13:12:18]Read from MH i2c: E2 0E 00 AB 50 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 FA [13:12:18]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:12:18]wFMCommunicate OK [13:12:18]SAM_PROTO_GetShiftState done [13:12:18]FM_GetShiftState done [13:12:18]req_shift_opened done [13:12:18]requested_item shift.open_date is exist - process it [13:12:18]req_shift_open_date [13:12:18]req_shift_open_date done [13:12:18]produce_requested_data done [13:12:18]produce_requested_data return {"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92614,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [13:12:18]process_action_free get_value [13:12:18]json_value_free [13:12:18]json_value_free done [13:12:18]process_json_proto returns [13:12:18]Send response to host [13:12:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92614,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [13:12:18]free response buf [13:12:18]execute_script done [13:12:18]execute_script returns [13:12:18]free content buf [13:12:18]Sock 8.Close socket [13:12:18]Sock 8.Thread stoped [13:12:18]accept exits with 9 [13:12:18]New connection [13:12:18]New thread 3066658148 created [13:12:18]Thread 3066801508 joined [13:12:18]Waiting for new connection... [13:12:18] Sock 9.Parse request [13:12:18]Sock 9.Check first char [13:12:18]Sock 9.First char is OK [13:12:18]request: POST /json_proto HTTP/1.0 [13:12:18]Method: POST [13:12:18]URL: /json_proto [13:12:18]Method is POST - this is cgi request [13:12:18]url: /json_proto [13:12:18]query_string will be loaded in cgi processing [13:12:18]execute_cgi json_proto POST (null) [13:12:18]execute_cgi path=json_proto method=POST [13:12:18]POST find Content-Length [13:12:18]Host: 172.17.57.71:8080 [13:12:18]Content-Length: 331 [13:12:18]Content-Type: application/json [13:12:18] [13:12:18]POST finish read [13:12:18]Found Content-Length = 331 [13:12:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:12:18]execute_script... [13:12:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:12:18]POST & json_proto [13:12:18]process_json_proto [13:12:18]json parsed OK: [13:12:18]protocol is kg_v1.0 [13:12:18]action value=get_value [13:12:18]process_action get_value [13:12:18]cmd_get_value [13:12:18]process_action get_value done [13:12:18]requested_data is exist [13:12:18]produce_requested_data [13:12:18]requested_item fm.sale.total is exist - process it [13:12:18]SAM_PROTO_GetFMData [13:12:18]wFMCommunicate request_size=4 [13:12:18]MH_SAM_APDU [13:12:18]CAPDU: 80 13 03 00 [13:12:18]Write to MH i2c: E2 08 00 AC 50 80 13 03 00 00 00 00 00 7B [13:12:18]Write i2c OK [13:12:18]MH_I2C_Read... [13:12:18]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:12:18]Read from MH i2c: E2 [13:12:18]MH_I2C_Read... [13:12:18]Read from MH i2c: E2 FD 00 [13:12:18]MH_I2C_Read... [13:12:18]Read from MH i2c: E2 FD 00 AC 50 00 C5 04 85 04 C1 04 6E 04 04 00 D0 65 01 00 69 04 A1 00 6F 04 04 00 7E 62 01 00 B1 04 04 00 B6 BA EC B2 70 04 04 00 C4 E0 6D 83 72 04 04 00 F2 D9 7E 2F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 8C 00 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 8A 3A 95 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 52 03 00 00 B1 04 04 00 70 E1 77 04 70 04 04 00 1C 00 3F 04 72 04 03 00 54 E1 38 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1A 7E 79 EF 03 09 90 00 76 [13:12:18]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 D0 65 01 00 69 04 A1 00 6F 04 04 00 7E 62 01 00 B1 04 04 00 B6 BA EC B2 70 04 04 00 C4 E0 6D 83 72 04 04 00 F2 D9 7E 2F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 8C 00 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 8A 3A 95 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 52 03 00 00 B1 04 04 00 70 E1 77 04 70 04 04 00 1C 00 3F 04 72 04 03 00 54 E1 38 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1A 7E 79 EF 03 09 90 00 [13:12:18]wFMCommunicate OK [13:12:18]wFMCommunicate request_size=4 [13:12:18]MH_SAM_APDU [13:12:18]CAPDU: 80 17 00 00 [13:12:18]Write to MH i2c: E2 08 00 AD 50 80 17 00 00 00 00 00 00 7D [13:12:18]Write i2c OK [13:12:18]MH_I2C_Read... [13:12:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:12:19]Read from MH i2c: E2 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 FD 00 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 FD 00 AD 50 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 81 1F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 DD [13:12:19]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 81 1F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [13:12:19]wFMCommunicate OK [13:12:19]wFMCommunicate request_size=4 [13:12:19]MH_SAM_APDU [13:12:19]CAPDU: 80 17 00 00 [13:12:19]Write to MH i2c: E2 08 00 AE 50 80 17 00 00 00 00 00 00 7E [13:12:19]Write i2c OK [13:12:19]MH_I2C_Read... [13:12:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:12:19]Read from MH i2c: E2 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 FD 00 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 FD 00 AE 50 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 90 [13:12:19]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [13:12:19]wFMCommunicate OK [13:12:19]wFMCommunicate request_size=4 [13:12:19]MH_SAM_APDU [13:12:19]CAPDU: 80 17 00 00 [13:12:19]Write to MH i2c: E2 08 00 AF 50 80 17 00 00 00 00 00 00 7F [13:12:19]Write i2c OK [13:12:19]MH_I2C_Read... [13:12:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:12:19]Read from MH i2c: E2 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 FD 00 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 FD 00 AF 50 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 0B [13:12:19]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [13:12:19]wFMCommunicate OK [13:12:19]wFMCommunicate request_size=4 [13:12:19]MH_SAM_APDU [13:12:19]CAPDU: 80 17 00 00 [13:12:19]Write to MH i2c: E2 08 00 B0 50 80 17 00 00 00 00 00 00 80 [13:12:19]Write i2c OK [13:12:19]MH_I2C_Read... [13:12:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [13:12:20]Read from MH i2c: E2 [13:12:20]MH_I2C_Read... [13:12:20]Read from MH i2c: E2 E2 00 [13:12:20]MH_I2C_Read... [13:12:20]Read from MH i2c: E2 E2 00 B0 50 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5E [13:12:20]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:12:20]wFMCommunicate OK [13:12:20]SAM_PROTO_GetFMData done [13:12:20]requested_item fm.sale_refund.total is exist - process it [13:12:20]requested_item fm.buy.total is exist - process it [13:12:20]requested_item shift.sale.total is exist - process it [13:12:20]SAM_PROTO_GetShiftData [13:12:20]wFMCommunicate request_size=4 [13:12:20]MH_SAM_APDU [13:12:20]CAPDU: 80 13 02 00 [13:12:20]Write to MH i2c: E2 08 00 B1 50 80 13 02 00 00 00 00 00 7F [13:12:20]Write i2c OK [13:12:20]MH_I2C_Read... [13:12:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:12:20]Read from MH i2c: E2 [13:12:20]MH_I2C_Read... [13:12:20]Read from MH i2c: E2 FD 00 [13:12:20]MH_I2C_Read... [13:12:20]Read from MH i2c: E2 FD 00 B1 50 00 AE 04 AA 04 AA 04 6E 04 04 00 3E 00 00 00 69 04 9B 00 6F 04 04 00 3E 00 00 00 B1 04 03 00 7D 39 1F 70 04 03 00 78 AE 1A 72 04 03 00 05 8B 04 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F4 50 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B7 46 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 A9 [13:12:20]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 3E 00 00 00 69 04 9B 00 6F 04 04 00 3E 00 00 00 B1 04 03 00 7D 39 1F 70 04 03 00 78 AE 1A 72 04 03 00 05 8B 04 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F4 50 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B7 46 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [13:12:20]wFMCommunicate OK [13:12:20]wFMCommunicate request_size=4 [13:12:20]MH_SAM_APDU [13:12:20]CAPDU: 80 17 00 00 [13:12:20]Write to MH i2c: E2 08 00 B2 50 80 17 00 00 00 00 00 00 82 [13:12:20]Write i2c OK [13:12:20]MH_I2C_Read... [13:12:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:12:20]Read from MH i2c: E2 [13:12:20]MH_I2C_Read... [13:12:20]Read from MH i2c: E2 FD 00 [13:12:20]MH_I2C_Read... [13:12:20]Read from MH i2c: E2 FD 00 B2 50 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 A4 [13:12:20]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [13:12:20]wFMCommunicate OK [13:12:20]wFMCommunicate request_size=4 [13:12:20]MH_SAM_APDU [13:12:20]CAPDU: 80 17 00 00 [13:12:20]Write to MH i2c: E2 08 00 B3 50 80 17 00 00 00 00 00 00 83 [13:12:20]Write i2c OK [13:12:20]MH_I2C_Read... [13:12:21]OFD Sender: No OFD packet to send [13:12:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:12:21]Read from MH i2c: E2 [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: E2 FD 00 [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: E2 FD 00 B3 50 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 3A [13:12:21]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [13:12:21]wFMCommunicate OK [13:12:21]wFMCommunicate request_size=4 [13:12:21]MH_SAM_APDU [13:12:21]CAPDU: 80 17 00 00 [13:12:21]Write to MH i2c: E2 08 00 B4 50 80 17 00 00 00 00 00 00 84 [13:12:21]Write i2c OK [13:12:21]MH_I2C_Read... [13:12:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:12:21]Read from MH i2c: E2 [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: E2 FD 00 [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: E2 FD 00 B4 50 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 F6 [13:12:21]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [13:12:21]wFMCommunicate OK [13:12:21]wFMCommunicate request_size=4 [13:12:21]MH_SAM_APDU [13:12:21]CAPDU: 80 17 00 00 [13:12:21]Write to MH i2c: E2 08 00 B5 50 80 17 00 00 00 00 00 00 85 [13:12:21]Write i2c OK [13:12:21]MH_I2C_Read... [13:12:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [13:12:21]Read from MH i2c: E2 [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: E2 CB 00 [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: E2 CB 00 B5 50 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 6E [13:12:21]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:12:22]wFMCommunicate OK [13:12:22]SAM_PROTO_GetShiftData done [13:12:22]requested_item shift.sale.total_cash is exist - process it [13:12:22]requested_item shift.sale_refund.total is exist - process it [13:12:22]requested_item shift.sale_refund.total_cash is exist - process it [13:12:22]requested_item shift.buy.total is exist - process it [13:12:22]requested_item shift.buy.total_cash is exist - process it [13:12:22]produce_requested_data done [13:12:22]produce_requested_data return {"fm.sale.total":30018587.42,"fm.sale_refund.total":749653.60,"fm.buy.total":0.00,"shift.sale.total":20463.33,"shift.sale.total_cash":17486.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [13:12:22]process_action_free get_value [13:12:22]json_value_free [13:12:22]json_value_free done [13:12:22]process_json_proto returns [13:12:22]Send response to host [13:12:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":30018587.42,"fm.sale_refund.total":749653.60,"fm.buy.total":0.00,"shift.sale.total":20463.33,"shift.sale.total_cash":17486.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [13:12:22]free response buf [13:12:22]execute_script done [13:12:22]execute_script returns [13:12:22]free content buf [13:12:22]Sock 9.Close socket [13:12:22]Sock 9.Thread stoped [13:12:26]OFD Sender: No OFD packet to send [13:12:31]OFD Sender: No OFD packet to send [13:12:36]OFD Sender: No OFD packet to send [13:12:41]OFD Sender: No OFD packet to send [13:12:46]OFD Sender: No OFD packet to send [13:12:51]OFD Sender: No OFD packet to send [13:12:56]OFD Sender: No OFD packet to send [13:13:01]OFD Sender: No OFD packet to send [13:13:06]OFD Sender: No OFD packet to send [13:13:11]OFD Sender: No OFD packet to send [13:13:16]OFD Sender: No OFD packet to send [13:13:21]OFD Sender: No OFD packet to send [13:13:26]OFD Sender: No OFD packet to send [13:13:31]OFD Sender: No OFD packet to send [13:13:36]OFD Sender: No OFD packet to send [13:13:41]OFD Sender: No OFD packet to send [13:13:46]OFD Sender: No OFD packet to send [13:13:50]accept exits with 8 [13:13:50]New connection [13:13:50]New thread 3066801508 created [13:13:50]Thread 3066658148 joined [13:13:50]Waiting for new connection... [13:13:50] Sock 8.Parse request [13:13:50]Sock 8.Check first char [13:13:50]Sock 8.First char is OK [13:13:50]request: POST /json_proto HTTP/1.0 [13:13:50]Method: POST [13:13:50]URL: /json_proto [13:13:50]Method is POST - this is cgi request [13:13:50]url: /json_proto [13:13:50]query_string will be loaded in cgi processing [13:13:50]execute_cgi json_proto POST (null) [13:13:50]execute_cgi path=json_proto method=POST [13:13:50]POST find Content-Length [13:13:50]Host: 172.17.57.71:8080 [13:13:50]Content-Length: 2848 [13:13:50]Content-Type: application/json [13:13:50] [13:13:50]POST finish read [13:13:50]Found Content-Length = 2848 [13:13:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127507", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40099484", "name": "\u0416\u0435\u0432 Orbit White \u043F\u043E\u0434", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000868", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176431", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42203100", "name": "\u0416\u0435\u0432 Orbit \u0431\u0430\u043D\u0430\u043D-\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 783.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:50]execute_script... [13:13:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127507", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40099484", "name": "\u0416\u0435\u0432 Orbit White \u043F\u043E\u0434", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000868", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176431", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42203100", "name": "\u0416\u0435\u0432 Orbit \u0431\u0430\u043D\u0430\u043D-\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 783.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:50]POST & json_proto [13:13:50]process_json_proto [13:13:50]json parsed OK: [13:13:50]protocol is kg_v1.0 [13:13:50]action value=close_receipt [13:13:50]process_action close_receipt [13:13:50]cmd_close_receipt [13:13:50]MH_GetDate [13:13:50]Write to MH i2c: F0 00 00 B6 50 F5 [13:13:50]Write i2c OK [13:13:50]MH_I2C_Read... [13:13:50]Read from MH i2c: F0 [13:13:50]MH_I2C_Read... [13:13:50]Read from MH i2c: F0 09 00 [13:13:50]MH_I2C_Read... [13:13:50]Read from MH i2c: F0 09 00 B6 50 00 97 DD E6 66 33 3A A4 66 35 [13:13:50]GetLastDocTimeStamp 1726405924 [13:13:50]current date 1726406039 [13:13:50]FM_GetShiftState [13:13:50]SAM_PROTO_GetShiftState [13:13:50]wFMCommunicate request_size=4 [13:13:50]MH_SAM_APDU [13:13:50]CAPDU: 80 13 01 00 [13:13:50]Write to MH i2c: E2 08 00 B7 50 80 13 01 00 00 00 00 00 84 [13:13:50]Write i2c OK [13:13:50]MH_I2C_Read... [13:13:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:50]Read from MH i2c: E2 [13:13:50]MH_I2C_Read... [13:13:50]Read from MH i2c: E2 0E 00 [13:13:50]MH_I2C_Read... [13:13:50]Read from MH i2c: E2 0E 00 B7 50 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 06 [13:13:50]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:13:50]wFMCommunicate OK [13:13:50]SAM_PROTO_GetShiftState done [13:13:50]FM_GetShiftState done [13:13:50]opened in 1726359809 [13:13:50]opened+sec_in_day 1726446209 [13:13:50]quantity*price = 4000 [13:13:50]sum+1 = 4001 [13:13:50]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189349 Холодный чай Fuse манго ананас 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 40099484 Жев Orbit White под 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065000868 Шок M&M`s с шоколадом 45г 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5000159390729 Шок Батончик Твикс Экстра 82г 1.000 * 89.00 = 89.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000176448 Сок Piko Pulpy апельсин ПЭТ 1л 1.000 * 170.00 = 170.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000176431 Сок Piko Pulpy апельсин ПЭТ 0,5л 2.000 * 95.00 = 190.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 42203100 Жев Orbit банан-клубника 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 783.00 НСП 1% : 6.92 НДС 12% : 83.14 Наличными: 783.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 63 15.09.2024 13:13 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92615 ФПД: 30924074279660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T131359&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92615&fm=30924074279660&tin=02508201610067®Number=0000000000091423&sum=78300 0 [13:13:52]StoreToDocumentArchive [13:13:52]shift 507 fd 92615 [13:13:52]save to /storage/0507/doc_00092615 [13:13:52]save last doc name /storage/0507/doc_00092615 to /storage/kkm_last_doc_name [13:13:52]save OK [13:13:52]Clear old archive folders... [13:13:52]ProcessDocumentItem done err = 0, tmpTLVsize=1182 [13:13:52]tlvbuf is 01048350 [13:13:52]SAM_PROTO_ClearQueue [13:13:52]wFMCommunicate request_size=4 [13:13:52]MH_SAM_APDU [13:13:52]CAPDU: 80 09 00 00 [13:13:52]Write to MH i2c: E2 08 00 C4 50 80 09 00 00 00 00 00 00 86 [13:13:52]Write i2c OK [13:13:52]MH_I2C_Read... [13:13:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:52]Read from MH i2c: E2 [13:13:52]MH_I2C_Read... [13:13:52]Read from MH i2c: E2 03 00 [13:13:52]MH_I2C_Read... [13:13:52]Read from MH i2c: E2 03 00 C4 50 00 90 00 88 [13:13:52]RAPDU: 90 00 [13:13:52]wFMCommunicate OK [13:13:52]SAM_PROTO_ClearQueue done [13:13:52]KKMCreateOFDPacket [13:13:52]OFDProtocolAddRootSTLVToBuf [13:13:52]FM_MakeSignedData [13:13:52]FM_MakeSignedData [13:13:52]SAM_PROTO_SignData [13:13:52]wFMCommunicate request_size=4 [13:13:52]MH_SAM_APDU [13:13:52]CAPDU: 80 0D 01 02 [13:13:52]Write to MH i2c: E2 08 00 C5 50 80 0D 01 02 00 00 00 00 8E [13:13:52]Write i2c OK [13:13:52]MH_I2C_Read... [13:13:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:52]Read from MH i2c: E2 [13:13:52]MH_I2C_Read... [13:13:52]Read from MH i2c: E2 03 00 [13:13:52]MH_I2C_Read... [13:13:52]Read from MH i2c: E2 03 00 C5 50 00 90 00 89 [13:13:52]RAPDU: 90 00 [13:13:52]wFMCommunicate OK [13:13:52]wFMCommunicate request_size=255 [13:13:52]MH_SAM_APDU [13:13:52]CAPDU: 80 0D 02 02 FA 03 00 9E 04 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 58 00 8A 04 08 00 34 30 [13:13:52]Write to MH i2c: E2 02 01 C6 50 80 0D 02 02 FA 00 03 00 9E 04 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 58 00 8A 04 08 00 34 30 00 00 38 [13:13:52]Write i2c OK [13:13:52]MH_I2C_Read... [13:13:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:53]Read from MH i2c: E2 [13:13:53]MH_I2C_Read... [13:13:53]Read from MH i2c: E2 03 00 [13:13:53]MH_I2C_Read... [13:13:53]Read from MH i2c: E2 03 00 C6 50 00 90 00 8A [13:13:53]RAPDU: 90 00 [13:13:53]wFMCommunicate OK [13:13:53]wFMCommunicate request_size=255 [13:13:53]MH_SAM_APDU [13:13:53]CAPDU: 80 0D 02 02 FA 30 39 39 34 38 34 06 04 19 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA [13:13:53]Write to MH i2c: E2 02 01 C7 50 80 0D 02 02 FA 00 30 39 39 34 38 34 06 04 19 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA 00 00 D0 [13:13:53]Write i2c OK [13:13:53]MH_I2C_Read... [13:13:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:53]Read from MH i2c: E2 [13:13:53]MH_I2C_Read... [13:13:53]Read from MH i2c: E2 03 00 [13:13:53]MH_I2C_Read... [13:13:53]Read from MH i2c: E2 03 00 C7 50 00 90 00 8B [13:13:53]RAPDU: 90 00 [13:13:53]wFMCommunicate OK [13:13:53]wFMCommunicate request_size=255 [13:13:53]MH_SAM_APDU [13:13:53]CAPDU: 80 0D 02 02 FA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 [13:13:53]Write to MH i2c: E2 02 01 C8 50 80 0D 02 02 FA 00 D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 00 00 D8 [13:13:53]Write i2c OK [13:13:53]MH_I2C_Read... [13:13:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:53]Read from MH i2c: E2 [13:13:53]MH_I2C_Read... [13:13:53]Read from MH i2c: E2 03 00 [13:13:53]MH_I2C_Read... [13:13:53]Read from MH i2c: E2 03 00 C8 50 00 90 00 8C [13:13:53]RAPDU: 90 00 [13:13:53]wFMCommunicate OK [13:13:53]wFMCommunicate request_size=255 [13:13:53]MH_SAM_APDU [13:13:53]CAPDU: 80 0D 02 02 FA 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 [13:13:53]Write to MH i2c: E2 02 01 C9 50 80 0D 02 02 FA 00 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 00 00 35 [13:13:53]Write i2c OK [13:13:53]MH_I2C_Read... [13:13:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:53]Read from MH i2c: E2 [13:13:53]MH_I2C_Read... [13:13:53]Read from MH i2c: E2 03 00 [13:13:53]MH_I2C_Read... [13:13:53]Read from MH i2c: E2 03 00 C9 50 00 90 00 8D [13:13:53]RAPDU: 90 00 [13:13:53]wFMCommunicate OK [13:13:53]wFMCommunicate request_size=191 [13:13:53]MH_SAM_APDU [13:13:53]CAPDU: 80 0D 02 02 BA 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 31 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 20 00 00 00 00 07 04 06 00 DC 31 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 97 DD E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C7 69 01 00 35 04 06 00 1C 20 12 76 62 EC [13:13:53]Write to MH i2c: E2 C2 00 CA 50 80 0D 02 02 BA 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 31 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 20 00 00 00 00 07 04 06 00 DC 31 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 97 DD E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C7 69 01 00 35 04 06 00 1C 20 12 76 62 EC 00 00 4B [13:13:53]Write i2c OK [13:13:53]MH_I2C_Read... [13:13:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:54]Read from MH i2c: E2 [13:13:54]MH_I2C_Read... [13:13:54]Read from MH i2c: E2 03 00 [13:13:54]MH_I2C_Read... [13:13:54]Read from MH i2c: E2 03 00 CA 50 00 90 00 8E [13:13:54]RAPDU: 90 00 [13:13:54]wFMCommunicate OK [13:13:54]wFMCommunicate request_size=4 [13:13:54]MH_SAM_APDU [13:13:54]CAPDU: 80 0D 03 02 [13:13:54]Write to MH i2c: E2 08 00 CB 50 80 0D 03 02 00 00 00 00 96 [13:13:54]Write i2c OK [13:13:54]MH_I2C_Read... [13:13:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:54]Read from MH i2c: E2 [13:13:54]MH_I2C_Read... [13:13:54]Read from MH i2c: E2 0B 00 [13:13:54]MH_I2C_Read... [13:13:54]Read from MH i2c: E2 0B 00 CB 50 00 E6 E9 CD C6 A1 5D 65 99 90 00 F5 [13:13:54]RAPDU: E6 E9 CD C6 A1 5D 65 99 90 00 [13:13:54]wFMCommunicate OK [13:13:54]SAM_PROTO_SignData done [13:13:54]FM_MakeSignedData done [13:13:54]CreateOFDProtocolMessage [13:13:54]wFMCommunicate request_size=4 [13:13:54]MH_SAM_APDU [13:13:54]CAPDU: 80 11 00 00 [13:13:54]Write to MH i2c: E2 08 00 CC 50 80 11 00 00 00 00 00 00 96 [13:13:54]Write i2c OK [13:13:54]MH_I2C_Read... [13:13:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:54]Read from MH i2c: E2 [13:13:54]MH_I2C_Read... [13:13:54]Read from MH i2c: E2 17 00 [13:13:54]MH_I2C_Read... [13:13:54]Read from MH i2c: E2 17 00 CC 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 ED [13:13:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:13:54]wFMCommunicate OK [13:13:54]CreateOFDProtocolMessage done [13:13:54]OFDSenderStorePacket 92615 [13:13:54]StoreOFDPacket docnum=92615 [13:13:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 B2 04 00 00 FE E6 AA 04 C3 96 5A 03 01 00 03 00 9E 04 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 58 00 8A 04 08 00 34 30 30 39 39 34 38 34 06 04 19 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 31 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 20 00 00 00 00 07 04 06 00 DC 31 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 97 DD E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C7 69 01 00 35 04 06 00 1C 20 12 76 62 EC E6 E9 CD C6 A1 5D 65 99 [13:13:54]CheckFolder [13:13:54]dirname=/storage/ofd_packets [13:13:54]CheckFolder done [13:13:54]ProducePacketName [13:13:54]name=ofd_packets/00092615 [13:13:54]NVStorageSaveData ofd_packets/00092615 [13:13:54]File name is /storage/ofd_packets/00092615 [13:13:54]Write 1232 bytes [13:13:54]NVStorageSaveData done [13:13:54]OFDSenderStorePacket done [13:13:54]KKMCreateOFDPacket done [13:13:54]NVStorageSaveData kkm_last_timestamp [13:13:54]File name is /storage/kkm_last_timestamp [13:13:54]Write 4 bytes [13:13:54]NVStorageSaveData done [13:13:54]ExternCall_PrintAddStr [13:13:54]wPrintStart [13:13:54]Write to MH i2c: 01 00 00 CD 50 1D [13:13:54]OFD Sender: Processing packet 92615 [packets to send 63, broken 62] [13:13:54]ProducePacketName [13:13:54]name=ofd_packets/00092615 [13:13:54]OFD Sender: To server: pG, [13:13:54]CommunicateWithHost lk.salyk.kg:30040 [13:13:54]ConnectInit lk.salyk.kg [13:13:54]Write i2c OK [13:13:54]MH_I2C_Read... [13:13:54]Read from MH i2c: 01 [13:13:54]MH_I2C_Read... [13:13:54]Read from MH i2c: 01 07 00 [13:13:54]MH_I2C_Read... [13:13:54]Read from MH i2c: 01 07 00 CD 50 00 00 00 00 00 FF 0F 32 [13:13:54]RasterBufferAndPrint [13:13:54]line Счет N : (3)127507 [13:13:54]line ИНН: 02508201610067 [13:13:54]line Контрольно-Кассовый Чек [13:13:54]line ПРОДАЖА [13:13:54]line Товар: 4700000160211 [13:13:54]line Вода Легенда 0,5л [13:13:54]line 1.000 * 40.00 [13:13:54]line = 40.00 [13:13:54]line НДС 12% НСП 1% [13:13:54]line > о реализуемом товаре [13:13:54]line Товар: 5449000189349 [13:13:54]line Холодный чай Fuse манго ананас 0,5л [13:13:54]line 1.000 * 75.00 [13:13:54]line = 75.00 [13:13:54]line НДС 12% НСП 1% [13:13:54]line > о реализуемом товаре [13:13:54]line Товар: 40099484 [13:13:54]line Жев Orbit White под [13:13:54]line 1.000 * 45.00 [13:13:54]line = 45.00 [13:13:54]line НДС 12% НСП 1% [13:13:54]line > о реализуемом товаре [13:13:54]line Товар: 4607065000868 [13:13:54]line Шок M&M`s с шоколадом 45г [13:13:54]line 1.000 * 70.00 [13:13:54]line = 70.00 [13:13:54]line НДС 12% НСП 1% [13:13:54]line > о реализуемом товаре [13:13:54]line Товар: 5000159390729 [13:13:54]line Шок Батончик Твикс Экстра 82г [13:13:54]line 1.000 * 89.00 [13:13:54]line = 89.00 [13:13:54]line НДС 12% НСП 1% [13:13:54]line > о реализуемом товаре [13:13:54]line Товар: 4607065001445 [13:13:54]line Шок батончик Snickers 50,5г [13:13:54]line 1.000 * 59.00 [13:13:54]line = 59.00 [13:13:54]line НДС 12% НСП 1% [13:13:54]line > о реализуемом товаре [13:13:54]line Товар: 5449000176448 [13:13:54]line Сок Piko Pulpy апельсин ПЭТ 1л [13:13:54]line 1.000 * 170.00 [13:13:54]line = 170.00 [13:13:54]line НДС 12% НСП 1% [13:13:54]line > о реализуемом товаре [13:13:54]line Товар: 5449000176431 [13:13:54]line Сок Piko Pulpy апельсин ПЭТ 0,5л [13:13:54]line 2.000 * 95.00 [13:13:54]line = 190.00 [13:13:54]line НДС 12% НСП 1% [13:13:54]line > о реализуемом товаре [13:13:54]line Товар: 42203100 [13:13:54]line Жев Orbit банан-клубника [13:13:54]line 1.000 * 45.00 [13:13:54]line = 45.00 [13:13:54]line НДС 12% НСП 1% [13:13:54]line > о реализуемом товаре [13:13:54]line ИТОГО: 783.00 [13:13:54]line НСП 1% : 6.92 [13:13:54]line НДС 12% : 83.14 [13:13:54]line Наличными: 783.00 [13:13:54]line Безнал.: 0.00 [13:13:54]line Место: АЗС № 5 "Партнер Нефть" [13:13:54]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [13:13:54]line СНО: Общий режим [13:13:54]line Чек 63 15.09.2024 13:13 [13:13:54]line Смена: 507 ФФД: 1.0 [13:13:54]line ЗНМ: 03000000022 [13:13:54]line РНМ: 0000000000091423 [13:13:54]line Версия ККМ: 001 [13:13:54]line ФМ: 0000000000874692 [13:13:54]line ФД: 92615 [13:13:54]line ФПД: 30924074279660 [13:13:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T131359&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92615&fm=30924074279660&tin=02508201610067®Number=0000000000091423&sum=78300 [13:13:54]line 0 [13:13:54]written 0, free lines is 4095 [13:13:54]Connected sock=10 [13:13:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 B2 04 00 00 FE E6 AA 04 C3 96 5A 03 01 00 03 00 9E 04 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 58 00 8A 04 08 00 34 30 30 39 39 34 38 34 06 04 19 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 31 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 20 00 00 00 00 07 04 06 00 DC 31 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 97 DD E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C7 69 01 00 35 04 06 00 1C 20 12 76 62 EC E6 E9 CD C6 A1 5D 65 99 [13:13:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 65 60 47 00 15 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C7 69 01 00 F4 03 04 00 11 86 E6 66 B6 04 01 00 00 E5 88 3B 98 6E 09 6C 98 [13:13:55]CommunicateWithHost err = 0 [13:13:55]CheckOFDResponse [13:13:55]1017 (14) - 77093643461234 [13:13:55]1041 (16) - 0000000000874692 [13:13:55]1040 (4) - 92615 [13:13:55]1012 (4) - 15.09.2024 07:00 [13:13:55]1206 (1) - 0 [13:13:55]OFD Sender: Remove packet 92615 [13:13:55]ProducePacketName [13:13:55]name=ofd_packets/00092615 [13:13:55]NVStorageDeleteData [13:13:55]Write to MH i2c: 01 00 00 29 51 7A [13:13:55]Write i2c OK [13:13:55]MH_I2C_Read... [13:13:55]Read from MH i2c: 01 [13:13:55]MH_I2C_Read... [13:13:55]Read from MH i2c: 01 07 00 [13:13:55]MH_I2C_Read... [13:13:55]Read from MH i2c: 01 07 00 29 51 00 00 00 00 00 8D 0A 18 [13:13:55]RasterBufferAndPrint [13:13:55]line [13:13:55]line [13:13:55]line [13:13:55]line [13:13:55]line [13:13:55]written 0, free lines is 2718 [13:13:55]OFD Sender: No OFD packet to send [13:13:55]MH_Cut [13:13:55]Write to MH i2c: D1 01 00 30 51 01 53 [13:13:55]Write i2c OK [13:13:55]MH_I2C_Read... [13:13:55]Read from MH i2c: D1 [13:13:55]MH_I2C_Read... [13:13:55]Read from MH i2c: D1 01 00 [13:13:55]MH_I2C_Read... [13:13:55]Read from MH i2c: D1 01 00 30 51 00 52 [13:13:55]Write to MH i2c: 01 00 00 31 51 82 [13:13:55]Write i2c OK [13:13:55]MH_I2C_Read... [13:13:56]*** Cut start [13:13:56]*** Purtial cut [13:13:56]*** Stage 1: CUTSNS_PIN = 1 [13:13:58]Read from MH i2c: 01 [13:13:58]MH_I2C_Read... [13:13:58]*** Stop cut motor [13:13:58]*** Cut end [13:13:58]Read from MH i2c: 01 07 00 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: 01 07 00 31 51 00 00 00 00 00 FF 0F 97 [13:13:58]process_action close_receipt done [13:13:58]requested_data is exist [13:13:58]produce_requested_data [13:13:58]requested_item fm.sn is exist - process it [13:13:58]wFMCommunicate request_size=4 [13:13:58]MH_SAM_APDU [13:13:58]CAPDU: 80 11 00 00 [13:13:58]Write to MH i2c: E2 08 00 32 51 80 11 00 00 00 00 00 00 FD [13:13:58]Write i2c OK [13:13:58]MH_I2C_Read... [13:13:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:58]Read from MH i2c: E2 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: E2 17 00 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: E2 17 00 32 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 54 [13:13:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:13:58]wFMCommunicate OK [13:13:58]requested_item fd.num is exist - process it [13:13:58]SAM_PROTO_GetFieldsCounters [13:13:58]wFMCommunicate request_size=4 [13:13:58]MH_SAM_APDU [13:13:58]CAPDU: 80 13 00 00 [13:13:58]Write to MH i2c: E2 08 00 33 51 80 13 00 00 00 00 00 00 00 [13:13:58]Write i2c OK [13:13:58]MH_I2C_Read... [13:13:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:58]Read from MH i2c: E2 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: E2 62 00 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: E2 62 00 33 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C7 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [13:13:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C7 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:13:58]wFMCommunicate OK [13:13:58]SAM_PROTO_GetFieldsCounters done [13:13:58]requested_item shift.num is exist - process it [13:13:58]requested_item shift.opened is exist - process it [13:13:58]req_shift_opened [13:13:58]FM_GetShiftState [13:13:58]SAM_PROTO_GetShiftState [13:13:58]wFMCommunicate request_size=4 [13:13:58]MH_SAM_APDU [13:13:58]CAPDU: 80 13 01 00 [13:13:58]Write to MH i2c: E2 08 00 34 51 80 13 01 00 00 00 00 00 02 [13:13:58]Write i2c OK [13:13:58]MH_I2C_Read... [13:13:59]Read from MH i2c: E2 [13:13:59]MH_I2C_Read... [13:13:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:59]Read from MH i2c: E2 0E 00 [13:13:59]MH_I2C_Read... [13:13:59]Read from MH i2c: E2 0E 00 34 51 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 84 [13:13:59]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:13:59]wFMCommunicate OK [13:13:59]SAM_PROTO_GetShiftState done [13:13:59]FM_GetShiftState done [13:13:59]req_shift_opened done [13:13:59]requested_item shift.open_date is exist - process it [13:13:59]req_shift_open_date [13:13:59]req_shift_open_date done [13:13:59]produce_requested_data done [13:13:59]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92615,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [13:13:59]process_action_free close_receipt [13:13:59]json_value_free [13:13:59]json_value_free done [13:13:59]process_json_proto returns [13:13:59]Send response to host [13:13:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92615,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [13:13:59]free response buf [13:13:59]execute_script done [13:13:59]execute_script returns [13:13:59]free content buf [13:13:59]Sock 8.Close socket [13:13:59]Sock 8.Thread stoped [13:14:00]OFD Sender: No OFD packet to send [13:14:05]OFD Sender: No OFD packet to send [13:14:10]OFD Sender: No OFD packet to send [13:14:15]OFD Sender: No OFD packet to send [13:14:20]OFD Sender: No OFD packet to send [13:14:25]OFD Sender: No OFD packet to send [13:14:30]OFD Sender: No OFD packet to send [13:14:35]OFD Sender: No OFD packet to send [13:14:40]OFD Sender: No OFD packet to send [13:14:45]accept exits with 9 [13:14:45]New connection [13:14:45]New thread 3066658148 created [13:14:45]Thread 3066801508 joined [13:14:45]Waiting for new connection... [13:14:45] Sock 9.Parse request [13:14:45]Sock 9.Check first char [13:14:45]Sock 9.First char is OK [13:14:45]request: POST /json_proto HTTP/1.0 [13:14:45]Method: POST [13:14:45]URL: /json_proto [13:14:45]Method is POST - this is cgi request [13:14:45]url: /json_proto [13:14:45]query_string will be loaded in cgi processing [13:14:45]execute_cgi json_proto POST (null) [13:14:45]execute_cgi path=json_proto method=POST [13:14:45]POST find Content-Length [13:14:45]Host: 172.17.57.71:8080 [13:14:45]Content-Length: 2908 [13:14:45]Content-Type: application/json [13:14:45] [13:14:45]POST finish read [13:14:45]Found Content-Length = 2908 [13:14:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 92615, "base_FM": "0000000000874692", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127507", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40099484", "name": "\u0416\u0435\u0432 Orbit White \u043F\u043E\u0434", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000868", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176431", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42203100", "name": "\u0416\u0435\u0432 Orbit \u0431\u0430\u043D\u0430\u043D-\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 783.00 } ], "post_footer_text": "92615" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:45]execute_script... [13:14:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 92615, "base_FM": "0000000000874692", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127507", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40099484", "name": "\u0416\u0435\u0432 Orbit White \u043F\u043E\u0434", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000868", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176431", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42203100", "name": "\u0416\u0435\u0432 Orbit \u0431\u0430\u043D\u0430\u043D-\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 783.00 } ], "post_footer_text": "92615" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:45]POST & json_proto [13:14:45]process_json_proto [13:14:45]json parsed OK: [13:14:45]protocol is kg_v1.0 [13:14:45]action value=close_receipt [13:14:45]process_action close_receipt [13:14:45]cmd_close_receipt [13:14:45]MH_GetDate [13:14:45]Write to MH i2c: F0 00 00 35 51 75 [13:14:45]OFD Sender: No OFD packet to send [13:14:45]Write i2c OK [13:14:45]MH_I2C_Read... [13:14:45]Read from MH i2c: F0 [13:14:45]MH_I2C_Read... [13:14:45]Read from MH i2c: F0 09 00 [13:14:45]MH_I2C_Read... [13:14:45]Read from MH i2c: F0 09 00 35 51 00 CE DD E6 66 33 3A A4 66 EC [13:14:45]GetLastDocTimeStamp 1726406039 [13:14:45]current date 1726406094 [13:14:45]FM_GetShiftState [13:14:45]SAM_PROTO_GetShiftState [13:14:45]wFMCommunicate request_size=4 [13:14:45]MH_SAM_APDU [13:14:45]CAPDU: 80 13 01 00 [13:14:45]Write to MH i2c: E2 08 00 36 51 80 13 01 00 00 00 00 00 04 [13:14:45]Write i2c OK [13:14:45]MH_I2C_Read... [13:14:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:45]Read from MH i2c: E2 [13:14:45]MH_I2C_Read... [13:14:45]Read from MH i2c: E2 0E 00 [13:14:45]MH_I2C_Read... [13:14:45]Read from MH i2c: E2 0E 00 36 51 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 86 [13:14:45]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:14:45]wFMCommunicate OK [13:14:45]SAM_PROTO_GetShiftState done [13:14:45]FM_GetShiftState done [13:14:45]opened in 1726359809 [13:14:45]opened+sec_in_day 1726446209 [13:14:45]quantity*price = 4000 [13:14:45]sum+1 = 4001 [13:14:45]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189349 Холодный чай Fuse манго ананас 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 40099484 Жев Orbit White под 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065000868 Шок M&M`s с шоколадом 45г 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5000159390729 Шок Батончик Твикс Экстра 82г 1.000 * 89.00 = 89.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000176448 Сок Piko Pulpy апельсин ПЭТ 1л 1.000 * 170.00 = 170.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000176431 Сок Piko Pulpy апельсин ПЭТ 0,5л 2.000 * 95.00 = 190.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 42203100 Жев Orbit банан-клубника 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 783.00 НСП 1% : 6.92 НДС 12% : 83.14 Наличными: 783.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 64 15.09.2024 13:14 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФД осн.: 92615 ФМ осн.: 0000000000874692 ФМ: 0000000000874692 ФД: 92616 ФПД: 222568035315893 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T131454&type=2&operation_type=1&fn_number=0000000000874692&fd_number=92616&fm=222568035315893&tin=02508201610067®Number=0000000000091423&sum=78300 92615 [13:14:47]StoreToDocumentArchive [13:14:47]shift 507 fd 92616 [13:14:47]save to /storage/0507/doc_00092616 [13:14:47]save last doc name /storage/0507/doc_00092616 to /storage/kkm_last_doc_name [13:14:47]save OK [13:14:47]Clear old archive folders... [13:14:47]ProcessDocumentItem done err = 0, tmpTLVsize=1210 [13:14:47]tlvbuf is 0107E0C0 [13:14:47]SAM_PROTO_ClearQueue [13:14:47]wFMCommunicate request_size=4 [13:14:47]MH_SAM_APDU [13:14:47]CAPDU: 80 09 00 00 [13:14:47]Write to MH i2c: E2 08 00 45 51 80 09 00 00 00 00 00 00 08 [13:14:47]Write i2c OK [13:14:47]MH_I2C_Read... [13:14:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:14:47]Read from MH i2c: E2 [13:14:47]MH_I2C_Read... [13:14:47]Read from MH i2c: E2 03 00 [13:14:47]MH_I2C_Read... [13:14:47]Read from MH i2c: E2 03 00 45 51 00 90 00 0A [13:14:47]RAPDU: 90 00 [13:14:47]wFMCommunicate OK [13:14:47]SAM_PROTO_ClearQueue done [13:14:47]KKMCreateOFDPacket [13:14:47]OFDProtocolAddRootSTLVToBuf [13:14:47]FM_MakeSignedData [13:14:47]FM_MakeSignedData [13:14:47]SAM_PROTO_SignData [13:14:47]wFMCommunicate request_size=4 [13:14:47]MH_SAM_APDU [13:14:47]CAPDU: 80 0D 01 02 [13:14:47]Write to MH i2c: E2 08 00 46 51 80 0D 01 02 00 00 00 00 10 [13:14:47]Write i2c OK [13:14:47]MH_I2C_Read... [13:14:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:14:47]Read from MH i2c: E2 [13:14:47]MH_I2C_Read... [13:14:47]Read from MH i2c: E2 03 00 [13:14:47]MH_I2C_Read... [13:14:47]Read from MH i2c: E2 03 00 46 51 00 90 00 0B [13:14:47]RAPDU: 90 00 [13:14:47]wFMCommunicate OK [13:14:47]wFMCommunicate request_size=255 [13:14:47]MH_SAM_APDU [13:14:47]CAPDU: 80 0D 02 02 FA 03 00 BA 04 1E 04 01 00 02 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 58 00 8A 04 08 00 34 30 [13:14:47]Write to MH i2c: E2 02 01 47 51 80 0D 02 02 FA 00 03 00 BA 04 1E 04 01 00 02 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 58 00 8A 04 08 00 34 30 00 00 D7 [13:14:47]Write i2c OK [13:14:47]MH_I2C_Read... [13:14:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:48]Read from MH i2c: E2 [13:14:48]MH_I2C_Read... [13:14:48]Read from MH i2c: E2 03 00 [13:14:48]MH_I2C_Read... [13:14:48]Read from MH i2c: E2 03 00 47 51 00 90 00 0C [13:14:48]RAPDU: 90 00 [13:14:48]wFMCommunicate OK [13:14:48]wFMCommunicate request_size=255 [13:14:48]MH_SAM_APDU [13:14:48]CAPDU: 80 0D 02 02 FA 30 39 39 34 38 34 06 04 19 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA [13:14:48]Write to MH i2c: E2 02 01 48 51 80 0D 02 02 FA 00 30 39 39 34 38 34 06 04 19 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA 00 00 52 [13:14:48]Write i2c OK [13:14:48]MH_I2C_Read... [13:14:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:48]Read from MH i2c: E2 [13:14:48]MH_I2C_Read... [13:14:48]Read from MH i2c: E2 03 00 [13:14:48]MH_I2C_Read... [13:14:48]Read from MH i2c: E2 03 00 48 51 00 90 00 0D [13:14:48]RAPDU: 90 00 [13:14:48]wFMCommunicate OK [13:14:48]wFMCommunicate request_size=255 [13:14:48]MH_SAM_APDU [13:14:48]CAPDU: 80 0D 02 02 FA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 [13:14:48]Write to MH i2c: E2 02 01 49 51 80 0D 02 02 FA 00 D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 00 00 5A [13:14:48]Write i2c OK [13:14:48]MH_I2C_Read... [13:14:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:48]Read from MH i2c: E2 [13:14:48]MH_I2C_Read... [13:14:48]Read from MH i2c: E2 03 00 [13:14:48]MH_I2C_Read... [13:14:48]Read from MH i2c: E2 03 00 49 51 00 90 00 0E [13:14:48]RAPDU: 90 00 [13:14:48]wFMCommunicate OK [13:14:48]wFMCommunicate request_size=255 [13:14:48]MH_SAM_APDU [13:14:48]CAPDU: 80 0D 02 02 FA 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 [13:14:48]Write to MH i2c: E2 02 01 4A 51 80 0D 02 02 FA 00 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 00 00 B7 [13:14:48]Write i2c OK [13:14:48]MH_I2C_Read... [13:14:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:49]Read from MH i2c: E2 [13:14:49]MH_I2C_Read... [13:14:49]Read from MH i2c: E2 03 00 [13:14:49]MH_I2C_Read... [13:14:49]Read from MH i2c: E2 03 00 4A 51 00 90 00 0F [13:14:49]RAPDU: 90 00 [13:14:49]wFMCommunicate OK [13:14:49]wFMCommunicate request_size=219 [13:14:49]MH_SAM_APDU [13:14:49]CAPDU: 80 0D 02 02 D6 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 31 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 20 00 00 00 00 07 04 06 00 DC 31 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 CE DD E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 27 04 04 00 C7 69 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C8 69 01 00 35 04 06 00 CA 6C A8 AE F0 B5 [13:14:49]Write to MH i2c: E2 DE 00 4B 51 80 0D 02 02 D6 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 31 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 20 00 00 00 00 07 04 06 00 DC 31 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 CE DD E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 27 04 04 00 C7 69 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C8 69 01 00 35 04 06 00 CA 6C A8 AE F0 B5 00 00 1D [13:14:49]Write i2c OK [13:14:49]MH_I2C_Read... [13:14:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:49]Read from MH i2c: E2 [13:14:49]MH_I2C_Read... [13:14:49]Read from MH i2c: E2 03 00 [13:14:49]MH_I2C_Read... [13:14:49]Read from MH i2c: E2 03 00 4B 51 00 90 00 10 [13:14:49]RAPDU: 90 00 [13:14:49]wFMCommunicate OK [13:14:49]wFMCommunicate request_size=4 [13:14:49]MH_SAM_APDU [13:14:49]CAPDU: 80 0D 03 02 [13:14:49]Write to MH i2c: E2 08 00 4C 51 80 0D 03 02 00 00 00 00 18 [13:14:49]Write i2c OK [13:14:49]MH_I2C_Read... [13:14:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:14:49]Read from MH i2c: E2 [13:14:49]MH_I2C_Read... [13:14:49]Read from MH i2c: E2 0B 00 [13:14:49]MH_I2C_Read... [13:14:49]Read from MH i2c: E2 0B 00 4C 51 00 32 69 2D 05 DE 1E 12 03 90 00 F7 [13:14:49]RAPDU: 32 69 2D 05 DE 1E 12 03 90 00 [13:14:49]wFMCommunicate OK [13:14:49]SAM_PROTO_SignData done [13:14:49]FM_MakeSignedData done [13:14:49]CreateOFDProtocolMessage [13:14:49]wFMCommunicate request_size=4 [13:14:49]MH_SAM_APDU [13:14:49]CAPDU: 80 11 00 00 [13:14:49]Write to MH i2c: E2 08 00 4D 51 80 11 00 00 00 00 00 00 18 [13:14:49]Write i2c OK [13:14:49]MH_I2C_Read... [13:14:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:49]Read from MH i2c: E2 [13:14:49]MH_I2C_Read... [13:14:49]Read from MH i2c: E2 17 00 [13:14:49]MH_I2C_Read... [13:14:49]Read from MH i2c: E2 17 00 4D 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 6F [13:14:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:14:49]wFMCommunicate OK [13:14:49]CreateOFDProtocolMessage done [13:14:49]OFDSenderStorePacket 92616 [13:14:49]StoreOFDPacket docnum=92616 [13:14:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 CE 04 00 00 89 8E C6 04 03 51 5A 03 01 00 03 00 BA 04 1E 04 01 00 02 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 58 00 8A 04 08 00 34 30 30 39 39 34 38 34 06 04 19 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 31 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 20 00 00 00 00 07 04 06 00 DC 31 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 CE DD E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 27 04 04 00 C7 69 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C8 69 01 00 35 04 06 00 CA 6C A8 AE F0 B5 32 69 2D 05 DE 1E 12 03 [13:14:49]CheckFolder [13:14:49]dirname=/storage/ofd_packets [13:14:49]CheckFolder done [13:14:49]ProducePacketName [13:14:49]name=ofd_packets/00092616 [13:14:49]NVStorageSaveData ofd_packets/00092616 [13:14:49]File name is /storage/ofd_packets/00092616 [13:14:49]Write 1260 bytes [13:14:49]NVStorageSaveData done [13:14:49]OFDSenderStorePacket done [13:14:49]KKMCreateOFDPacket done [13:14:49]NVStorageSaveData kkm_last_timestamp [13:14:49]File name is /storage/kkm_last_timestamp [13:14:49]Write 4 bytes [13:14:49]NVStorageSaveData done [13:14:49]ExternCall_PrintAddStr [13:14:49]wPrintStart [13:14:49]Write to MH i2c: 01 00 00 4E 51 9F [13:14:49]Write i2c OK [13:14:49]MH_I2C_Read... [13:14:49]Read from MH i2c: 01 [13:14:49]MH_I2C_Read... [13:14:49]Read from MH i2c: 01 07 00 [13:14:49]MH_I2C_Read... [13:14:49]Read from MH i2c: 01 07 00 4E 51 00 00 00 00 00 FF 0F B4 [13:14:49]RasterBufferAndPrint [13:14:49]line Счет N : (3)127507 [13:14:49]line ИНН: 02508201610067 [13:14:49]line Контрольно-Кассовый Чек [13:14:49]line ВОЗВРАТ ПРОДАЖИ [13:14:49]line Товар: 4700000160211 [13:14:49]line Вода Легенда 0,5л [13:14:49]line 1.000 * 40.00 [13:14:49]line = 40.00 [13:14:49]line НДС 12% НСП 1% [13:14:49]line > о реализуемом товаре [13:14:49]line Товар: 5449000189349 [13:14:49]line Холодный чай Fuse манго ананас 0,5л [13:14:49]line 1.000 * 75.00 [13:14:49]line = 75.00 [13:14:49]line НДС 12% НСП 1% [13:14:49]line > о реализуемом товаре [13:14:49]line Товар: 40099484 [13:14:49]line Жев Orbit White под [13:14:49]line 1.000 * 45.00 [13:14:49]line = 45.00 [13:14:49]line НДС 12% НСП 1% [13:14:49]line > о реализуемом товаре [13:14:49]line Товар: 4607065000868 [13:14:49]line Шок M&M`s с шоколадом 45г [13:14:49]line 1.000 * 70.00 [13:14:49]line = 70.00 [13:14:49]line НДС 12% НСП 1% [13:14:49]line > о реализуемом товаре [13:14:49]line Товар: 5000159390729 [13:14:49]line Шок Батончик Твикс Экстра 82г [13:14:49]line 1.000 * 89.00 [13:14:49]line = 89.00 [13:14:49]line НДС 12% НСП 1% [13:14:49]line > о реализуемом товаре [13:14:49]line Товар: 4607065001445 [13:14:49]line Шок батончик Snickers 50,5г [13:14:49]line 1.000 * 59.00 [13:14:49]line = 59.00 [13:14:49]line НДС 12% НСП 1% [13:14:49]line > о реализуемом товаре [13:14:49]line Товар: 5449000176448 [13:14:49]line Сок Piko Pulpy апельсин ПЭТ 1л [13:14:49]line 1.000 * 170.00 [13:14:49]line = 170.00 [13:14:49]line НДС 12% НСП 1% [13:14:49]line > о реализуемом товаре [13:14:49]line Товар: 5449000176431 [13:14:49]line Сок Piko Pulpy апельсин ПЭТ 0,5л [13:14:49]line 2.000 * 95.00 [13:14:49]line = 190.00 [13:14:49]line НДС 12% НСП 1% [13:14:49]line > о реализуемом товаре [13:14:49]line Товар: 42203100 [13:14:49]line Жев Orbit банан-клубника [13:14:49]line 1.000 * 45.00 [13:14:49]line = 45.00 [13:14:49]line НДС 12% НСП 1% [13:14:49]line > о реализуемом товаре [13:14:49]line ИТОГО: 783.00 [13:14:49]line НСП 1% : 6.92 [13:14:49]line НДС 12% : 83.14 [13:14:49]line Наличными: 783.00 [13:14:49]line Безнал.: 0.00 [13:14:49]line Место: АЗС № 5 "Партнер Нефть" [13:14:49]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [13:14:49]line СНО: Общий режим [13:14:49]line Чек 64 15.09.2024 13:14 [13:14:49]line Смена: 507 ФФД: 1.0 [13:14:49]line ЗНМ: 03000000022 [13:14:49]line РНМ: 0000000000091423 [13:14:49]line Версия ККМ: 001 [13:14:49]line ФД осн.: 92615 [13:14:49]line ФМ осн.: 0000000000874692 [13:14:49]line ФМ: 0000000000874692 [13:14:49]line ФД: 92616 [13:14:49]line ФПД: 222568035315893 [13:14:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T131454&type=2&operation_type=1&fn_number=0000000000874692&fd_number=92616&fm=222568035315893&tin=02508201610067®Number=0000000000091423&sum=78300 [13:14:49]line 92615 [13:14:49]written 0, free lines is 4095 [13:14:49]OFD Sender: Processing packet 92616 [packets to send 63, broken 62] [13:14:49]ProducePacketName [13:14:49]name=ofd_packets/00092616 [13:14:49]OFD Sender: To server: pG, [13:14:49]CommunicateWithHost lk.salyk.kg:30040 [13:14:49]ConnectInit lk.salyk.kg [13:14:49]Connected sock=10 [13:14:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 CE 04 00 00 89 8E C6 04 03 51 5A 03 01 00 03 00 BA 04 1E 04 01 00 02 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 58 00 8A 04 08 00 34 30 30 39 39 34 38 34 06 04 19 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 31 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 20 00 00 00 00 07 04 06 00 DC 31 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 CE DD E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 27 04 04 00 C7 69 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C8 69 01 00 35 04 06 00 CA 6C A8 AE F0 B5 32 69 2D 05 DE 1E 12 03 [13:14:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 23 9E 47 00 0A C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C8 69 01 00 F4 03 04 00 48 86 E6 66 B6 04 01 00 00 33 24 17 7D CD 19 B1 1F [13:14:50]CommunicateWithHost err = 0 [13:14:50]CheckOFDResponse [13:14:50]1017 (14) - 77093643461234 [13:14:50]1041 (16) - 0000000000874692 [13:14:50]1040 (4) - 92616 [13:14:50]1012 (4) - 15.09.2024 07:01 [13:14:50]1206 (1) - 0 [13:14:50]OFD Sender: Remove packet 92616 [13:14:50]ProducePacketName [13:14:50]name=ofd_packets/00092616 [13:14:50]NVStorageDeleteData [13:14:50]Write to MH i2c: 01 00 00 AC 51 FD [13:14:50]Write i2c OK [13:14:50]MH_I2C_Read... [13:14:50]Read from MH i2c: 01 [13:14:50]MH_I2C_Read... [13:14:50]Read from MH i2c: 01 07 00 [13:14:50]MH_I2C_Read... [13:14:50]Read from MH i2c: 01 07 00 AC 51 00 00 00 00 00 83 0A 91 [13:14:50]RasterBufferAndPrint [13:14:50]line [13:14:50]line [13:14:50]line [13:14:50]line [13:14:50]line [13:14:50]written 0, free lines is 2709 [13:14:50]MH_Cut [13:14:50]Write to MH i2c: D1 01 00 B3 51 01 D6 [13:14:50]Write i2c OK [13:14:50]MH_I2C_Read... [13:14:50]Read from MH i2c: D1 [13:14:50]MH_I2C_Read... [13:14:50]Read from MH i2c: D1 01 00 [13:14:50]MH_I2C_Read... [13:14:50]Read from MH i2c: D1 01 00 B3 51 00 D5 [13:14:50]Write to MH i2c: 01 00 00 B4 51 05 [13:14:50]Write i2c OK [13:14:50]MH_I2C_Read... [13:14:50]OFD Sender: No OFD packet to send [13:14:51]*** Cut start [13:14:51]*** Purtial cut [13:14:51]*** Stage 1: CUTSNS_PIN = 1 [13:14:53]Read from MH i2c: 01 [13:14:53]MH_I2C_Read... [13:14:53]*** Stop cut motor [13:14:53]*** Cut end [13:14:53]Read from MH i2c: 01 07 00 [13:14:53]MH_I2C_Read... [13:14:53]Read from MH i2c: 01 07 00 B4 51 00 00 00 00 00 FF 0F 1A [13:14:53]process_action close_receipt done [13:14:53]requested_data is exist [13:14:53]produce_requested_data [13:14:53]requested_item fm.sn is exist - process it [13:14:53]wFMCommunicate request_size=4 [13:14:53]MH_SAM_APDU [13:14:53]CAPDU: 80 11 00 00 [13:14:53]Write to MH i2c: E2 08 00 B5 51 80 11 00 00 00 00 00 00 80 [13:14:53]Write i2c OK [13:14:53]MH_I2C_Read... [13:14:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:53]Read from MH i2c: E2 [13:14:53]MH_I2C_Read... [13:14:53]Read from MH i2c: E2 17 00 [13:14:53]MH_I2C_Read... [13:14:53]Read from MH i2c: E2 17 00 B5 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D7 [13:14:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:14:54]wFMCommunicate OK [13:14:54]requested_item fd.num is exist - process it [13:14:54]SAM_PROTO_GetFieldsCounters [13:14:54]wFMCommunicate request_size=4 [13:14:54]MH_SAM_APDU [13:14:54]CAPDU: 80 13 00 00 [13:14:54]Write to MH i2c: E2 08 00 B6 51 80 13 00 00 00 00 00 00 83 [13:14:54]Write i2c OK [13:14:54]MH_I2C_Read... [13:14:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:14:54]Read from MH i2c: E2 [13:14:54]MH_I2C_Read... [13:14:54]Read from MH i2c: E2 62 00 [13:14:54]MH_I2C_Read... [13:14:54]Read from MH i2c: E2 62 00 B6 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C8 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [13:14:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C8 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:14:54]wFMCommunicate OK [13:14:54]SAM_PROTO_GetFieldsCounters done [13:14:54]requested_item shift.num is exist - process it [13:14:54]requested_item shift.opened is exist - process it [13:14:54]req_shift_opened [13:14:54]FM_GetShiftState [13:14:54]SAM_PROTO_GetShiftState [13:14:54]wFMCommunicate request_size=4 [13:14:54]MH_SAM_APDU [13:14:54]CAPDU: 80 13 01 00 [13:14:54]Write to MH i2c: E2 08 00 B7 51 80 13 01 00 00 00 00 00 85 [13:14:54]Write i2c OK [13:14:54]MH_I2C_Read... [13:14:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:54]Read from MH i2c: E2 [13:14:54]MH_I2C_Read... [13:14:54]Read from MH i2c: E2 0E 00 [13:14:54]MH_I2C_Read... [13:14:54]Read from MH i2c: E2 0E 00 B7 51 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 07 [13:14:54]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:14:54]wFMCommunicate OK [13:14:54]SAM_PROTO_GetShiftState done [13:14:54]FM_GetShiftState done [13:14:54]req_shift_opened done [13:14:54]requested_item shift.open_date is exist - process it [13:14:54]req_shift_open_date [13:14:54]req_shift_open_date done [13:14:54]produce_requested_data done [13:14:54]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92616,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [13:14:54]process_action_free close_receipt [13:14:54]json_value_free [13:14:54]json_value_free done [13:14:54]process_json_proto returns [13:14:54]Send response to host [13:14:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92616,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [13:14:54]free response buf [13:14:54]execute_script done [13:14:54]execute_script returns [13:14:54]free content buf [13:14:54]Sock 9.Close socket [13:14:54]Sock 9.Thread stoped [13:14:55]OFD Sender: No OFD packet to send [13:14:57]accept exits with 8 [13:14:57]New connection [13:14:57]New thread 3066801508 created [13:14:57]Thread 3066658148 joined [13:14:57]Waiting for new connection... [13:14:57] Sock 8.Parse request [13:14:57]Sock 8.Check first char [13:14:57]Sock 8.First char is OK [13:14:57]request: POST /json_proto HTTP/1.0 [13:14:57]Method: POST [13:14:57]URL: /json_proto [13:14:57]Method is POST - this is cgi request [13:14:57]url: /json_proto [13:14:57]query_string will be loaded in cgi processing [13:14:57]execute_cgi json_proto POST (null) [13:14:57]execute_cgi path=json_proto method=POST [13:14:57]POST find Content-Length [13:14:57]Host: 172.17.57.71:8080 [13:14:57]Content-Length: 2569 [13:14:57]Content-Type: application/json [13:14:57] [13:14:57]POST finish read [13:14:57]Found Content-Length = 2569 [13:14:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127509", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40099484", "name": "\u0416\u0435\u0432 Orbit White \u043F\u043E\u0434", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000868", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176431", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 95.00, "quantity" : 5.000, "sum" : 475.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42203100", "name": "\u0416\u0435\u0432 Orbit \u0431\u0430\u043D\u0430\u043D-\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 898.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:57]execute_script... [13:14:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127509", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40099484", "name": "\u0416\u0435\u0432 Orbit White \u043F\u043E\u0434", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000868", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176431", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 95.00, "quantity" : 5.000, "sum" : 475.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42203100", "name": "\u0416\u0435\u0432 Orbit \u0431\u0430\u043D\u0430\u043D-\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 898.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:57]POST & json_proto [13:14:57]process_json_proto [13:14:57]json parsed OK: [13:14:57]protocol is kg_v1.0 [13:14:57]action value=close_receipt [13:14:57]process_action close_receipt [13:14:57]cmd_close_receipt [13:14:57]MH_GetDate [13:14:57]Write to MH i2c: F0 00 00 B8 51 F8 [13:14:57]Write i2c OK [13:14:57]MH_I2C_Read... [13:14:57]Read from MH i2c: F0 [13:14:57]MH_I2C_Read... [13:14:57]Read from MH i2c: F0 09 00 [13:14:57]MH_I2C_Read... [13:14:57]Read from MH i2c: F0 09 00 B8 51 00 DA DD E6 66 33 3A A4 66 7B [13:14:57]GetLastDocTimeStamp 1726406094 [13:14:57]current date 1726406106 [13:14:57]FM_GetShiftState [13:14:57]SAM_PROTO_GetShiftState [13:14:57]wFMCommunicate request_size=4 [13:14:57]MH_SAM_APDU [13:14:57]CAPDU: 80 13 01 00 [13:14:57]Write to MH i2c: E2 08 00 B9 51 80 13 01 00 00 00 00 00 87 [13:14:57]Write i2c OK [13:14:57]MH_I2C_Read... [13:14:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:57]Read from MH i2c: E2 [13:14:57]MH_I2C_Read... [13:14:57]Read from MH i2c: E2 0E 00 [13:14:57]MH_I2C_Read... [13:14:57]Read from MH i2c: E2 0E 00 B9 51 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 09 [13:14:57]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:14:57]wFMCommunicate OK [13:14:57]SAM_PROTO_GetShiftState done [13:14:57]FM_GetShiftState done [13:14:57]opened in 1726359809 [13:14:57]opened+sec_in_day 1726446209 [13:14:57]quantity*price = 4000 [13:14:57]sum+1 = 4001 [13:14:57]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189349 Холодный чай Fuse манго ананас 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 40099484 Жев Orbit White под 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065000868 Шок M&M`s с шоколадом 45г 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5000159390729 Шок Батончик Твикс Экстра 82г 1.000 * 89.00 = 89.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000176431 Сок Piko Pulpy апельсин ПЭТ 0,5л 5.000 * 95.00 = 475.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 42203100 Жев Orbit банан-клубника 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 898.00 НСП 1% : 7.94 НДС 12% : 95.35 Наличными: 898.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 65 15.09.2024 13:15 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92617 ФПД: 258114916317877 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T131506&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92617&fm=258114916317877&tin=02508201610067®Number=0000000000091423&sum=89800 0 [13:14:59]StoreToDocumentArchive [13:14:59]shift 507 fd 92617 [13:14:59]save to /storage/0507/doc_00092617 [13:14:59]save last doc name /storage/0507/doc_00092617 to /storage/kkm_last_doc_name [13:14:59]save OK [13:14:59]Clear old archive folders... [13:14:59]ProcessDocumentItem done err = 0, tmpTLVsize=1065 [13:14:59]tlvbuf is 01022490 [13:14:59]SAM_PROTO_ClearQueue [13:14:59]wFMCommunicate request_size=4 [13:14:59]MH_SAM_APDU [13:14:59]CAPDU: 80 09 00 00 [13:14:59]Write to MH i2c: E2 08 00 C6 51 80 09 00 00 00 00 00 00 89 [13:14:59]Write i2c OK [13:14:59]MH_I2C_Read... [13:14:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:14:59]Read from MH i2c: E2 [13:14:59]MH_I2C_Read... [13:14:59]Read from MH i2c: E2 03 00 [13:14:59]MH_I2C_Read... [13:14:59]Read from MH i2c: E2 03 00 C6 51 00 90 00 8B [13:14:59]RAPDU: 90 00 [13:14:59]wFMCommunicate OK [13:14:59]SAM_PROTO_ClearQueue done [13:14:59]KKMCreateOFDPacket [13:14:59]OFDProtocolAddRootSTLVToBuf [13:14:59]FM_MakeSignedData [13:14:59]FM_MakeSignedData [13:14:59]SAM_PROTO_SignData [13:14:59]wFMCommunicate request_size=4 [13:14:59]MH_SAM_APDU [13:14:59]CAPDU: 80 0D 01 02 [13:14:59]Write to MH i2c: E2 08 00 C7 51 80 0D 01 02 00 00 00 00 91 [13:14:59]Write i2c OK [13:14:59]MH_I2C_Read... [13:14:59]Read from MH i2c: E2 [13:14:59]MH_I2C_Read... [13:14:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:14:59]Read from MH i2c: E2 03 00 [13:14:59]MH_I2C_Read... [13:14:59]Read from MH i2c: E2 03 00 C7 51 00 90 00 8C [13:14:59]RAPDU: 90 00 [13:14:59]wFMCommunicate OK [13:14:59]wFMCommunicate request_size=255 [13:14:59]MH_SAM_APDU [13:14:59]CAPDU: 80 0D 02 02 FA 03 00 29 04 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 58 00 8A 04 08 00 34 30 [13:14:59]Write to MH i2c: E2 02 01 C8 51 80 0D 02 02 FA 00 03 00 29 04 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 58 00 8A 04 08 00 34 30 00 00 C6 [13:14:59]Write i2c OK [13:14:59]MH_I2C_Read... [13:15:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:00]Read from MH i2c: E2 [13:15:00]MH_I2C_Read... [13:15:00]Read from MH i2c: E2 03 00 [13:15:00]MH_I2C_Read... [13:15:00]Read from MH i2c: E2 03 00 C8 51 00 90 00 8D [13:15:00]RAPDU: 90 00 [13:15:00]wFMCommunicate OK [13:15:00]wFMCommunicate request_size=255 [13:15:00]MH_SAM_APDU [13:15:00]CAPDU: 80 0D 02 02 FA 30 39 39 34 38 34 06 04 19 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA [13:15:00]Write to MH i2c: E2 02 01 C9 51 80 0D 02 02 FA 00 30 39 39 34 38 34 06 04 19 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA 00 00 D3 [13:15:00]Write i2c OK [13:15:00]MH_I2C_Read... [13:15:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:00]Read from MH i2c: E2 [13:15:00]MH_I2C_Read... [13:15:00]Read from MH i2c: E2 03 00 [13:15:00]MH_I2C_Read... [13:15:00]Read from MH i2c: E2 03 00 C9 51 00 90 00 8E [13:15:00]RAPDU: 90 00 [13:15:00]wFMCommunicate OK [13:15:00]wFMCommunicate request_size=255 [13:15:00]MH_SAM_APDU [13:15:00]CAPDU: 80 0D 02 02 FA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB [13:15:00]Write to MH i2c: E2 02 01 CA 51 80 0D 02 02 FA 00 D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB 00 00 35 [13:15:00]Write i2c OK [13:15:00]MH_I2C_Read... [13:15:01]OFD Sender: No OFD packet to send [13:15:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:01]Read from MH i2c: E2 [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: E2 03 00 [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: E2 03 00 CA 51 00 90 00 8F [13:15:01]RAPDU: 90 00 [13:15:01]wFMCommunicate OK [13:15:01]wFMCommunicate request_size=255 [13:15:01]MH_SAM_APDU [13:15:01]CAPDU: 80 0D 02 02 FA FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 8C B9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 5E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 25 00 00 00 00 07 04 06 00 C8 5E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 DA DD E6 66 0E 04 [13:15:01]Write to MH i2c: E2 02 01 CB 51 80 0D 02 02 FA 00 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 8C B9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 5E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 25 00 00 00 00 07 04 06 00 C8 5E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 DA DD E6 66 0E 04 00 00 3B [13:15:01]Write i2c OK [13:15:01]MH_I2C_Read... [13:15:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:01]Read from MH i2c: E2 [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: E2 03 00 [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: E2 03 00 CB 51 00 90 00 90 [13:15:01]RAPDU: 90 00 [13:15:01]wFMCommunicate OK [13:15:01]wFMCommunicate request_size=74 [13:15:01]MH_SAM_APDU [13:15:01]CAPDU: 80 0D 02 02 45 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C9 69 01 00 35 04 06 00 EA C1 0F E5 FA B5 [13:15:01]Write to MH i2c: E2 4D 00 CC 51 80 0D 02 02 45 00 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C9 69 01 00 35 04 06 00 EA C1 0F E5 FA B5 00 00 35 [13:15:01]Write i2c OK [13:15:01]MH_I2C_Read... [13:15:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:01]Read from MH i2c: E2 [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: E2 03 00 [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: E2 03 00 CC 51 00 90 00 91 [13:15:01]RAPDU: 90 00 [13:15:01]wFMCommunicate OK [13:15:01]wFMCommunicate request_size=4 [13:15:01]MH_SAM_APDU [13:15:01]CAPDU: 80 0D 03 02 [13:15:01]Write to MH i2c: E2 08 00 CD 51 80 0D 03 02 00 00 00 00 99 [13:15:01]Write i2c OK [13:15:01]MH_I2C_Read... [13:15:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:01]Read from MH i2c: E2 [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: E2 0B 00 [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: E2 0B 00 CD 51 00 25 9E 62 55 E2 2E 9A D1 90 00 8F [13:15:01]RAPDU: 25 9E 62 55 E2 2E 9A D1 90 00 [13:15:01]wFMCommunicate OK [13:15:01]SAM_PROTO_SignData done [13:15:01]FM_MakeSignedData done [13:15:01]CreateOFDProtocolMessage [13:15:01]wFMCommunicate request_size=4 [13:15:01]MH_SAM_APDU [13:15:01]CAPDU: 80 11 00 00 [13:15:01]Write to MH i2c: E2 08 00 CE 51 80 11 00 00 00 00 00 00 99 [13:15:01]Write i2c OK [13:15:01]MH_I2C_Read... [13:15:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:02]Read from MH i2c: E2 [13:15:02]MH_I2C_Read... [13:15:02]Read from MH i2c: E2 17 00 [13:15:02]MH_I2C_Read... [13:15:02]Read from MH i2c: E2 17 00 CE 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F0 [13:15:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:15:02]wFMCommunicate OK [13:15:02]CreateOFDProtocolMessage done [13:15:02]OFDSenderStorePacket 92617 [13:15:02]StoreOFDPacket docnum=92617 [13:15:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3D 04 00 00 0D 90 35 04 AD FB 5A 03 01 00 03 00 29 04 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 58 00 8A 04 08 00 34 30 30 39 39 34 38 34 06 04 19 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 8C B9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 5E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 25 00 00 00 00 07 04 06 00 C8 5E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 DA DD E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C9 69 01 00 35 04 06 00 EA C1 0F E5 FA B5 25 9E 62 55 E2 2E 9A D1 [13:15:02]CheckFolder [13:15:02]dirname=/storage/ofd_packets [13:15:02]CheckFolder done [13:15:02]ProducePacketName [13:15:02]name=ofd_packets/00092617 [13:15:02]NVStorageSaveData ofd_packets/00092617 [13:15:02]File name is /storage/ofd_packets/00092617 [13:15:02]Write 1115 bytes [13:15:02]NVStorageSaveData done [13:15:02]OFDSenderStorePacket done [13:15:02]KKMCreateOFDPacket done [13:15:02]NVStorageSaveData kkm_last_timestamp [13:15:02]File name is /storage/kkm_last_timestamp [13:15:02]Write 4 bytes [13:15:02]NVStorageSaveData done [13:15:02]ExternCall_PrintAddStr [13:15:02]wPrintStart [13:15:02]Write to MH i2c: 01 00 00 CF 51 20 [13:15:02]Write i2c OK [13:15:02]MH_I2C_Read... [13:15:02]Read from MH i2c: 01 [13:15:02]MH_I2C_Read... [13:15:02]Read from MH i2c: 01 07 00 [13:15:02]MH_I2C_Read... [13:15:02]Read from MH i2c: 01 07 00 CF 51 00 00 00 00 00 FF 0F 35 [13:15:02]RasterBufferAndPrint [13:15:02]line Счет N : (3)127509 [13:15:02]line ИНН: 02508201610067 [13:15:02]line Контрольно-Кассовый Чек [13:15:02]line ПРОДАЖА [13:15:02]line Товар: 4700000160211 [13:15:02]line Вода Легенда 0,5л [13:15:02]line 1.000 * 40.00 [13:15:02]line = 40.00 [13:15:02]line НДС 12% НСП 1% [13:15:02]line > о реализуемом товаре [13:15:02]line Товар: 5449000189349 [13:15:02]line Холодный чай Fuse манго ананас 0,5л [13:15:02]line 1.000 * 75.00 [13:15:02]line = 75.00 [13:15:02]line НДС 12% НСП 1% [13:15:02]line > о реализуемом товаре [13:15:02]line Товар: 40099484 [13:15:02]line Жев Orbit White под [13:15:02]line 1.000 * 45.00 [13:15:02]line = 45.00 [13:15:02]line НДС 12% НСП 1% [13:15:02]line > о реализуемом товаре [13:15:02]line Товар: 4607065000868 [13:15:02]line Шок M&M`s с шоколадом 45г [13:15:02]line 1.000 * 70.00 [13:15:02]line = 70.00 [13:15:02]line НДС 12% НСП 1% [13:15:02]line > о реализуемом товаре [13:15:02]line Товар: 5000159390729 [13:15:02]line Шок Батончик Твикс Экстра 82г [13:15:02]line 1.000 * 89.00 [13:15:02]line = 89.00 [13:15:02]line НДС 12% НСП 1% [13:15:02]line > о реализуемом товаре [13:15:02]line Товар: 4607065001445 [13:15:02]line Шок батончик Snickers 50,5г [13:15:02]line 1.000 * 59.00 [13:15:02]line = 59.00 [13:15:02]line НДС 12% НСП 1% [13:15:02]line > о реализуемом товаре [13:15:02]line Товар: 5449000176431 [13:15:02]line Сок Piko Pulpy апельсин ПЭТ 0,5л [13:15:02]line 5.000 * 95.00 [13:15:02]line = 475.00 [13:15:02]line НДС 12% НСП 1% [13:15:02]line > о реализуемом товаре [13:15:02]line Товар: 42203100 [13:15:02]line Жев Orbit банан-клубника [13:15:02]line 1.000 * 45.00 [13:15:02]line = 45.00 [13:15:02]line НДС 12% НСП 1% [13:15:02]line > о реализуемом товаре [13:15:02]line ИТОГО: 898.00 [13:15:02]line НСП 1% : 7.94 [13:15:02]line НДС 12% : 95.35 [13:15:02]line Наличными: 898.00 [13:15:02]line Безнал.: 0.00 [13:15:02]line Место: АЗС № 5 "Партнер Нефть" [13:15:02]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [13:15:02]line СНО: Общий режим [13:15:02]line Чек 65 15.09.2024 13:15 [13:15:02]line Смена: 507 ФФД: 1.0 [13:15:02]line ЗНМ: 03000000022 [13:15:02]line РНМ: 0000000000091423 [13:15:02]line Версия ККМ: 001 [13:15:02]line ФМ: 0000000000874692 [13:15:02]line ФД: 92617 [13:15:02]line ФПД: 258114916317877 [13:15:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T131506&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92617&fm=258114916317877&tin=02508201610067®Number=0000000000091423&sum=89800 [13:15:02]OFD Sender: Processing packet 92617 [packets to send 63, broken 62] [13:15:02]ProducePacketName [13:15:02]name=ofd_packets/00092617 [13:15:02]OFD Sender: To server: pG, [13:15:02]CommunicateWithHost lk.salyk.kg:30040 [13:15:02]ConnectInit lk.salyk.kg [13:15:02]line 0 [13:15:02]written 0, free lines is 4095 [13:15:02]Connected sock=10 [13:15:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3D 04 00 00 0D 90 35 04 AD FB 5A 03 01 00 03 00 29 04 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 58 00 8A 04 08 00 34 30 30 39 39 34 38 34 06 04 19 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 8C B9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 5E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 25 00 00 00 00 07 04 06 00 C8 5E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 DA DD E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C9 69 01 00 35 04 06 00 EA C1 0F E5 FA B5 25 9E 62 55 E2 2E 9A D1 [13:15:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 60 90 47 00 06 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C9 69 01 00 F4 03 04 00 55 86 E6 66 B6 04 01 00 00 BF 18 08 F8 A7 25 30 F6 [13:15:03]CommunicateWithHost err = 0 [13:15:03]CheckOFDResponse [13:15:03]1017 (14) - 77093643461234 [13:15:03]1041 (16) - 0000000000874692 [13:15:03]1040 (4) - 92617 [13:15:03]1012 (4) - 15.09.2024 07:01 [13:15:03]1206 (1) - 0 [13:15:03]OFD Sender: Remove packet 92617 [13:15:03]ProducePacketName [13:15:03]name=ofd_packets/00092617 [13:15:03]NVStorageDeleteData [13:15:03]Write to MH i2c: 01 00 00 24 52 76 [13:15:03]Write i2c OK [13:15:03]MH_I2C_Read... [13:15:03]Read from MH i2c: 01 [13:15:03]MH_I2C_Read... [13:15:03]Read from MH i2c: 01 07 00 [13:15:03]MH_I2C_Read... [13:15:03]Read from MH i2c: 01 07 00 24 52 00 00 00 00 00 DC 0B 64 [13:15:03]RasterBufferAndPrint [13:15:03]line [13:15:03]line [13:15:03]line [13:15:03]line [13:15:03]line [13:15:03]written 0, free lines is 3068 [13:15:03]MH_Cut [13:15:03]Write to MH i2c: D1 01 00 2B 52 01 4F [13:15:03]Write i2c OK [13:15:03]MH_I2C_Read... [13:15:03]Read from MH i2c: D1 [13:15:03]MH_I2C_Read... [13:15:03]Read from MH i2c: D1 01 00 [13:15:03]MH_I2C_Read... [13:15:03]Read from MH i2c: D1 01 00 2B 52 00 4E [13:15:03]Write to MH i2c: 01 00 00 2C 52 7E [13:15:03]Write i2c OK [13:15:03]MH_I2C_Read... [13:15:04]OFD Sender: No OFD packet to send [13:15:04]*** Cut start [13:15:04]*** Purtial cut [13:15:04]*** Stage 1: CUTSNS_PIN = 1 [13:15:06]Read from MH i2c: 01 [13:15:06]MH_I2C_Read... [13:15:06]*** Stop cut motor [13:15:06]*** Cut end [13:15:06]Read from MH i2c: 01 07 00 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: 01 07 00 2C 52 00 00 00 00 00 FF 0F 93 [13:15:06]process_action close_receipt done [13:15:06]requested_data is exist [13:15:06]produce_requested_data [13:15:06]requested_item fm.sn is exist - process it [13:15:06]wFMCommunicate request_size=4 [13:15:06]MH_SAM_APDU [13:15:06]CAPDU: 80 11 00 00 [13:15:06]Write to MH i2c: E2 08 00 2D 52 80 11 00 00 00 00 00 00 F9 [13:15:06]Write i2c OK [13:15:06]MH_I2C_Read... [13:15:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:06]Read from MH i2c: E2 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 17 00 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 17 00 2D 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 50 [13:15:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:15:06]wFMCommunicate OK [13:15:06]requested_item fd.num is exist - process it [13:15:06]SAM_PROTO_GetFieldsCounters [13:15:06]wFMCommunicate request_size=4 [13:15:06]MH_SAM_APDU [13:15:06]CAPDU: 80 13 00 00 [13:15:06]Write to MH i2c: E2 08 00 2E 52 80 13 00 00 00 00 00 00 FC [13:15:06]Write i2c OK [13:15:06]MH_I2C_Read... [13:15:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:06]Read from MH i2c: E2 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 62 00 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 62 00 2E 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C9 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [13:15:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C9 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:15:06]wFMCommunicate OK [13:15:06]SAM_PROTO_GetFieldsCounters done [13:15:06]requested_item shift.num is exist - process it [13:15:06]requested_item shift.opened is exist - process it [13:15:06]req_shift_opened [13:15:06]FM_GetShiftState [13:15:06]SAM_PROTO_GetShiftState [13:15:06]wFMCommunicate request_size=4 [13:15:06]MH_SAM_APDU [13:15:06]CAPDU: 80 13 01 00 [13:15:06]Write to MH i2c: E2 08 00 2F 52 80 13 01 00 00 00 00 00 FE [13:15:06]Write i2c OK [13:15:06]MH_I2C_Read... [13:15:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:06]Read from MH i2c: E2 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 0E 00 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 0E 00 2F 52 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 80 [13:15:06]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:15:06]wFMCommunicate OK [13:15:06]SAM_PROTO_GetShiftState done [13:15:06]FM_GetShiftState done [13:15:06]req_shift_opened done [13:15:06]requested_item shift.open_date is exist - process it [13:15:06]req_shift_open_date [13:15:06]req_shift_open_date done [13:15:06]produce_requested_data done [13:15:06]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92617,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [13:15:06]process_action_free close_receipt [13:15:06]json_value_free [13:15:06]json_value_free done [13:15:06]process_json_proto returns [13:15:06]Send response to host [13:15:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92617,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [13:15:06]free response buf [13:15:06]execute_script done [13:15:06]execute_script returns [13:15:06]free content buf [13:15:06]Sock 8.Close socket [13:15:06]Sock 8.Thread stoped [13:15:09]OFD Sender: No OFD packet to send [13:15:14]OFD Sender: No OFD packet to send [13:15:19]OFD Sender: No OFD packet to send [13:15:24]OFD Sender: No OFD packet to send [13:15:29]OFD Sender: No OFD packet to send [13:15:34]OFD Sender: No OFD packet to send [13:15:39]OFD Sender: No OFD packet to send [13:15:44]OFD Sender: No OFD packet to send [13:15:49]OFD Sender: No OFD packet to send [13:15:54]OFD Sender: No OFD packet to send [13:15:59]OFD Sender: No OFD packet to send [13:16:04]OFD Sender: No OFD packet to send [13:16:09]OFD Sender: No OFD packet to send [13:16:14]OFD Sender: No OFD packet to send [13:16:19]OFD Sender: No OFD packet to send [13:16:24]OFD Sender: No OFD packet to send [13:16:29]OFD Sender: No OFD packet to send [13:16:34]OFD Sender: No OFD packet to send [13:16:39]OFD Sender: No OFD packet to send [13:16:44]OFD Sender: No OFD packet to send [13:16:49]OFD Sender: No OFD packet to send [13:16:54]OFD Sender: No OFD packet to send [13:16:59]OFD Sender: No OFD packet to send [13:17:04]OFD Sender: No OFD packet to send [13:17:09]OFD Sender: No OFD packet to send [13:17:14]OFD Sender: No OFD packet to send [13:17:19]OFD Sender: No OFD packet to send [13:17:24]OFD Sender: No OFD packet to send [13:17:29]OFD Sender: No OFD packet to send [13:17:34]OFD Sender: No OFD packet to send [13:17:39]OFD Sender: No OFD packet to send [13:17:44]OFD Sender: No OFD packet to send [13:17:49]OFD Sender: No OFD packet to send [13:17:54]OFD Sender: No OFD packet to send [13:17:59]OFD Sender: No OFD packet to send [13:18:04]OFD Sender: No OFD packet to send [13:18:09]OFD Sender: No OFD packet to send [13:18:14]OFD Sender: No OFD packet to send [13:18:19]OFD Sender: No OFD packet to send [13:18:24]OFD Sender: No OFD packet to send [13:18:29]OFD Sender: No OFD packet to send [13:18:34]OFD Sender: No OFD packet to send [13:18:39]OFD Sender: No OFD packet to send [13:18:44]OFD Sender: No OFD packet to send [13:18:49]OFD Sender: No OFD packet to send [13:18:54]OFD Sender: No OFD packet to send [13:18:59]OFD Sender: No OFD packet to send [13:19:04]OFD Sender: No OFD packet to send [13:19:09]OFD Sender: No OFD packet to send [13:19:14]OFD Sender: No OFD packet to send [13:19:19]OFD Sender: No OFD packet to send [13:19:24]OFD Sender: No OFD packet to send [13:19:29]OFD Sender: No OFD packet to send [13:19:34]OFD Sender: No OFD packet to send [13:19:39]OFD Sender: No OFD packet to send [13:19:44]OFD Sender: No OFD packet to send [13:19:49]OFD Sender: No OFD packet to send [13:19:54]OFD Sender: No OFD packet to send [13:19:59]OFD Sender: No OFD packet to send [13:20:04]OFD Sender: No OFD packet to send [13:20:09]OFD Sender: No OFD packet to send [13:20:14]OFD Sender: No OFD packet to send [13:20:19]OFD Sender: No OFD packet to send [13:20:24]OFD Sender: No OFD packet to send [13:20:29]OFD Sender: No OFD packet to send [13:20:34]OFD Sender: No OFD packet to send [13:20:39]OFD Sender: No OFD packet to send [13:20:44]OFD Sender: No OFD packet to send [13:20:49]OFD Sender: No OFD packet to send [13:20:54]OFD Sender: No OFD packet to send [13:20:59]OFD Sender: No OFD packet to send [13:21:04]OFD Sender: No OFD packet to send [13:21:09]OFD Sender: No OFD packet to send [13:21:14]OFD Sender: No OFD packet to send [13:21:19]OFD Sender: No OFD packet to send [13:21:24]OFD Sender: No OFD packet to send [13:21:29]OFD Sender: No OFD packet to send [13:21:34]OFD Sender: No OFD packet to send [13:21:39]OFD Sender: No OFD packet to send [13:21:44]OFD Sender: No OFD packet to send [13:21:49]OFD Sender: No OFD packet to send [13:21:49]accept exits with 9 [13:21:49]New connection [13:21:49]New thread 3066658148 created [13:21:49]Thread 3066801508 joined [13:21:49]Waiting for new connection... [13:21:49] Sock 9.Parse request [13:21:49]Sock 9.Check first char [13:21:49]Sock 9.First char is OK [13:21:49]request: POST /json_proto HTTP/1.0 [13:21:49]Method: POST [13:21:49]URL: /json_proto [13:21:49]Method is POST - this is cgi request [13:21:49]url: /json_proto [13:21:49]query_string will be loaded in cgi processing [13:21:49]execute_cgi json_proto POST (null) [13:21:49]execute_cgi path=json_proto method=POST [13:21:49]POST find Content-Length [13:21:49]Host: 172.17.57.71:8080 [13:21:49]Content-Length: 621 [13:21:49]Content-Type: application/json [13:21:49] [13:21:49]POST finish read [13:21:49]Found Content-Length = 621 [13:21:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127510", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:49]execute_script... [13:21:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127510", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:49]POST & json_proto [13:21:49]process_json_proto [13:21:49]json parsed OK: [13:21:49]protocol is kg_v1.0 [13:21:49]action value=close_receipt [13:21:49]process_action close_receipt [13:21:49]cmd_close_receipt [13:21:49]MH_GetDate [13:21:49]Write to MH i2c: F0 00 00 30 52 71 [13:21:49]Write i2c OK [13:21:49]MH_I2C_Read... [13:21:49]Read from MH i2c: F0 [13:21:49]MH_I2C_Read... [13:21:49]Read from MH i2c: F0 09 00 [13:21:49]MH_I2C_Read... [13:21:49]Read from MH i2c: F0 09 00 30 52 00 76 DF E6 66 33 3A A4 66 92 [13:21:49]GetLastDocTimeStamp 1726406106 [13:21:49]current date 1726406518 [13:21:49]FM_GetShiftState [13:21:49]SAM_PROTO_GetShiftState [13:21:49]wFMCommunicate request_size=4 [13:21:49]MH_SAM_APDU [13:21:49]CAPDU: 80 13 01 00 [13:21:49]Write to MH i2c: E2 08 00 31 52 80 13 01 00 00 00 00 00 00 [13:21:49]Write i2c OK [13:21:49]MH_I2C_Read... [13:21:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:49]Read from MH i2c: E2 [13:21:49]MH_I2C_Read... [13:21:49]Read from MH i2c: E2 0E 00 [13:21:49]MH_I2C_Read... [13:21:49]Read from MH i2c: E2 0E 00 31 52 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 82 [13:21:49]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:21:49]wFMCommunicate OK [13:21:49]SAM_PROTO_GetShiftState done [13:21:49]FM_GetShiftState done [13:21:49]opened in 1726359809 [13:21:49]opened+sec_in_day 1726446209 [13:21:49]quantity*price = 28800 [13:21:49]sum+1 = 28801 [13:21:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 288.00 НСП 1% : 2.55 НДС 12% : 30.58 Наличными: 288.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 66 15.09.2024 13:21 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92618 ФПД: 207863514833705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T132158&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92618&fm=207863514833705&tin=02508201610067®Number=0000000000091423&sum=28800 0 [13:21:50]StoreToDocumentArchive [13:21:50]shift 507 fd 92618 [13:21:50]save to /storage/0507/doc_00092618 [13:21:50]save last doc name /storage/0507/doc_00092618 to /storage/kkm_last_doc_name [13:21:50]save OK [13:21:50]Clear old archive folders... [13:21:50]ProcessDocumentItem done err = 0, tmpTLVsize=273 [13:21:50]tlvbuf is 010B1470 [13:21:50]SAM_PROTO_ClearQueue [13:21:50]wFMCommunicate request_size=4 [13:21:50]MH_SAM_APDU [13:21:50]CAPDU: 80 09 00 00 [13:21:50]Write to MH i2c: E2 08 00 3E 52 80 09 00 00 00 00 00 00 02 [13:21:50]Write i2c OK [13:21:50]MH_I2C_Read... [13:21:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:51]Read from MH i2c: E2 [13:21:51]MH_I2C_Read... [13:21:51]Read from MH i2c: E2 03 00 [13:21:51]MH_I2C_Read... [13:21:51]Read from MH i2c: E2 03 00 3E 52 00 90 00 04 [13:21:51]RAPDU: 90 00 [13:21:51]wFMCommunicate OK [13:21:51]SAM_PROTO_ClearQueue done [13:21:51]KKMCreateOFDPacket [13:21:51]OFDProtocolAddRootSTLVToBuf [13:21:51]FM_MakeSignedData [13:21:51]FM_MakeSignedData [13:21:51]SAM_PROTO_SignData [13:21:51]wFMCommunicate request_size=4 [13:21:51]MH_SAM_APDU [13:21:51]CAPDU: 80 0D 01 02 [13:21:51]Write to MH i2c: E2 08 00 3F 52 80 0D 01 02 00 00 00 00 0A [13:21:51]Write i2c OK [13:21:51]MH_I2C_Read... [13:21:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:51]Read from MH i2c: E2 [13:21:51]MH_I2C_Read... [13:21:51]Read from MH i2c: E2 03 00 [13:21:51]MH_I2C_Read... [13:21:51]Read from MH i2c: E2 03 00 3F 52 00 90 00 05 [13:21:51]RAPDU: 90 00 [13:21:51]wFMCommunicate OK [13:21:51]wFMCommunicate request_size=255 [13:21:51]MH_SAM_APDU [13:21:51]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 76 DF E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 [13:21:51]Write to MH i2c: E2 02 01 40 52 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 76 DF E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 00 00 0C [13:21:51]Write i2c OK [13:21:51]MH_I2C_Read... [13:21:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:51]Read from MH i2c: E2 [13:21:51]MH_I2C_Read... [13:21:51]Read from MH i2c: E2 03 00 [13:21:51]MH_I2C_Read... [13:21:51]Read from MH i2c: E2 03 00 40 52 00 90 00 06 [13:21:51]RAPDU: 90 00 [13:21:51]wFMCommunicate OK [13:21:51]wFMCommunicate request_size=32 [13:21:51]MH_SAM_APDU [13:21:51]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 39 32 10 04 04 00 CA 69 01 00 35 04 06 00 BD 0C FE F6 A3 29 [13:21:51]Write to MH i2c: E2 23 00 41 52 80 0D 02 02 1B 00 30 30 30 38 37 34 36 39 32 10 04 04 00 CA 69 01 00 35 04 06 00 BD 0C FE F6 A3 29 00 00 2B [13:21:51]Write i2c OK [13:21:51]MH_I2C_Read... [13:21:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:51]Read from MH i2c: E2 [13:21:51]MH_I2C_Read... [13:21:51]Read from MH i2c: E2 03 00 [13:21:51]MH_I2C_Read... [13:21:51]Read from MH i2c: E2 03 00 41 52 00 90 00 07 [13:21:51]RAPDU: 90 00 [13:21:51]wFMCommunicate OK [13:21:51]wFMCommunicate request_size=4 [13:21:51]MH_SAM_APDU [13:21:51]CAPDU: 80 0D 03 02 [13:21:51]Write to MH i2c: E2 08 00 42 52 80 0D 03 02 00 00 00 00 0F [13:21:51]Write i2c OK [13:21:51]MH_I2C_Read... [13:21:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:51]Read from MH i2c: E2 [13:21:51]MH_I2C_Read... [13:21:51]Read from MH i2c: E2 0B 00 [13:21:51]MH_I2C_Read... [13:21:51]Read from MH i2c: E2 0B 00 42 52 00 11 CB 69 77 B5 A7 75 BD 90 00 5A [13:21:51]RAPDU: 11 CB 69 77 B5 A7 75 BD 90 00 [13:21:51]wFMCommunicate OK [13:21:51]SAM_PROTO_SignData done [13:21:51]FM_MakeSignedData done [13:21:51]CreateOFDProtocolMessage [13:21:51]wFMCommunicate request_size=4 [13:21:51]MH_SAM_APDU [13:21:51]CAPDU: 80 11 00 00 [13:21:51]Write to MH i2c: E2 08 00 43 52 80 11 00 00 00 00 00 00 0F [13:21:51]Write i2c OK [13:21:51]MH_I2C_Read... [13:21:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:51]Read from MH i2c: E2 [13:21:51]MH_I2C_Read... [13:21:51]Read from MH i2c: E2 17 00 [13:21:51]MH_I2C_Read... [13:21:51]Read from MH i2c: E2 17 00 43 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 66 [13:21:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:21:51]wFMCommunicate OK [13:21:51]CreateOFDProtocolMessage done [13:21:51]OFDSenderStorePacket 92618 [13:21:51]StoreOFDPacket docnum=92618 [13:21:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 25 01 00 00 C1 A3 1D 01 E0 DD 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 76 DF E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CA 69 01 00 35 04 06 00 BD 0C FE F6 A3 29 11 CB 69 77 B5 A7 75 BD [13:21:51]CheckFolder [13:21:51]dirname=/storage/ofd_packets [13:21:51]CheckFolder done [13:21:51]ProducePacketName [13:21:51]name=ofd_packets/00092618 [13:21:51]NVStorageSaveData ofd_packets/00092618 [13:21:51]File name is /storage/ofd_packets/00092618 [13:21:51]Write 323 bytes [13:21:51]NVStorageSaveData done [13:21:51]OFDSenderStorePacket done [13:21:51]KKMCreateOFDPacket done [13:21:51]NVStorageSaveData kkm_last_timestamp [13:21:51]File name is /storage/kkm_last_timestamp [13:21:51]Write 4 bytes [13:21:51]NVStorageSaveData done [13:21:51]ExternCall_PrintAddStr [13:21:51]wPrintStart [13:21:51]Write to MH i2c: 01 00 00 44 52 96 [13:21:51]Write i2c OK [13:21:51]MH_I2C_Read... [13:21:51]Read from MH i2c: 01 [13:21:51]MH_I2C_Read... [13:21:51]Read from MH i2c: 01 07 00 [13:21:51]MH_I2C_Read... [13:21:51]Read from MH i2c: 01 07 00 44 52 00 00 00 00 00 FF 0F AB [13:21:51]RasterBufferAndPrint [13:21:51]line Счет N : (3)127510 [13:21:51]line ИНН: 02508201610067 [13:21:51]line Контрольно-Кассовый Чек [13:21:51]line ПРОДАЖА [13:21:51]line Товар: 48747059 [13:21:51]line Сигареты Winston Legend Blue [13:21:51]line 2.000 * 144.00 [13:21:51]line = 288.00 [13:21:51]line НДС 12% НСП 1% [13:21:51]line > о реализуемом товаре [13:21:51]line ИТОГО: 288.00 [13:21:51]line НСП 1% : 2.55 [13:21:51]line НДС 12% : 30.58 [13:21:51]line Наличными: 288.00 [13:21:51]line Безнал.: 0.00 [13:21:51]line Место: АЗС № 5 "Партнер Нефть" [13:21:51]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [13:21:51]line СНО: Общий режим [13:21:51]line Чек 66 15.09.2024 13:21 [13:21:51]line Смена: 507 ФФД: 1.0 [13:21:51]line ЗНМ: 03000000022 [13:21:51]line РНМ: 0000000000091423 [13:21:51]line Версия ККМ: 001 [13:21:51]line ФМ: 0000000000874692 [13:21:51]line ФД: 92618 [13:21:51]line ФПД: 207863514833705 [13:21:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T132158&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92618&fm=207863514833705&tin=02508201610067®Number=0000000000091423&sum=28800 [13:21:51]line 0 [13:21:51]written 0, free lines is 4095 [13:21:51]OFD Sender: Processing packet 92618 [packets to send 63, broken 62] [13:21:51]ProducePacketName [13:21:51]name=ofd_packets/00092618 [13:21:51]OFD Sender: To server: pG, [13:21:51]CommunicateWithHost lk.salyk.kg:30040 [13:21:51]ConnectInit lk.salyk.kg [13:21:51]Connected sock=10 [13:21:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 25 01 00 00 C1 A3 1D 01 E0 DD 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 76 DF E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CA 69 01 00 35 04 06 00 BD 0C FE F6 A3 29 11 CB 69 77 B5 A7 75 BD [13:21:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 4A 6D 47 00 A4 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CA 69 01 00 F4 03 04 00 EE 87 E6 66 B6 04 01 00 00 38 D4 E3 A5 87 7B F8 16 [13:21:52]CommunicateWithHost err = 0 [13:21:52]CheckOFDResponse [13:21:52]1017 (14) - 77093643461234 [13:21:52]1041 (16) - 0000000000874692 [13:21:52]1040 (4) - 92618 [13:21:52]1012 (4) - 15.09.2024 07:08 [13:21:52]1206 (1) - 0 [13:21:52]OFD Sender: Remove packet 92618 [13:21:52]ProducePacketName [13:21:52]name=ofd_packets/00092618 [13:21:52]NVStorageDeleteData [13:21:52]Write to MH i2c: 01 00 00 6D 52 BF [13:21:52]Write i2c OK [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: 01 [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: 01 07 00 [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: 01 07 00 6D 52 00 00 00 00 00 1A 0D ED [13:21:52]RasterBufferAndPrint [13:21:52]line [13:21:52]line [13:21:52]line [13:21:52]line [13:21:52]line [13:21:52]written 0, free lines is 3362 [13:21:52]MH_Cut [13:21:52]Write to MH i2c: D1 01 00 74 52 01 98 [13:21:52]Write i2c OK [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: D1 [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: D1 01 00 [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: D1 01 00 74 52 00 97 [13:21:52]Write to MH i2c: 01 00 00 75 52 C7 [13:21:52]Write i2c OK [13:21:52]MH_I2C_Read... [13:21:52]OFD Sender: No OFD packet to send [13:21:52]*** Cut start [13:21:52]*** Purtial cut [13:21:52]*** Stage 1: CUTSNS_PIN = 1 [13:21:54]Read from MH i2c: 01 [13:21:54]MH_I2C_Read... [13:21:54]*** Stop cut motor [13:21:54]*** Cut end [13:21:54]Read from MH i2c: 01 07 00 [13:21:54]MH_I2C_Read... [13:21:54]Read from MH i2c: 01 07 00 75 52 00 00 00 00 00 FF 0F DC [13:21:54]process_action close_receipt done [13:21:54]requested_data is exist [13:21:54]produce_requested_data [13:21:54]requested_item fm.sn is exist - process it [13:21:54]wFMCommunicate request_size=4 [13:21:54]MH_SAM_APDU [13:21:54]CAPDU: 80 11 00 00 [13:21:54]Write to MH i2c: E2 08 00 76 52 80 11 00 00 00 00 00 00 42 [13:21:54]Write i2c OK [13:21:54]MH_I2C_Read... [13:21:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:54]Read from MH i2c: E2 [13:21:54]MH_I2C_Read... [13:21:54]Read from MH i2c: E2 17 00 [13:21:54]MH_I2C_Read... [13:21:54]Read from MH i2c: E2 17 00 76 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 99 [13:21:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:21:54]wFMCommunicate OK [13:21:54]requested_item fd.num is exist - process it [13:21:54]SAM_PROTO_GetFieldsCounters [13:21:54]wFMCommunicate request_size=4 [13:21:54]MH_SAM_APDU [13:21:54]CAPDU: 80 13 00 00 [13:21:54]Write to MH i2c: E2 08 00 77 52 80 13 00 00 00 00 00 00 45 [13:21:54]Write i2c OK [13:21:54]MH_I2C_Read... [13:21:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:55]Read from MH i2c: E2 [13:21:55]MH_I2C_Read... [13:21:55]Read from MH i2c: E2 62 00 [13:21:55]MH_I2C_Read... [13:21:55]Read from MH i2c: E2 62 00 77 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 CA 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [13:21:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 CA 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:21:55]wFMCommunicate OK [13:21:55]SAM_PROTO_GetFieldsCounters done [13:21:55]requested_item shift.num is exist - process it [13:21:55]requested_item shift.opened is exist - process it [13:21:55]req_shift_opened [13:21:55]FM_GetShiftState [13:21:55]SAM_PROTO_GetShiftState [13:21:55]wFMCommunicate request_size=4 [13:21:55]MH_SAM_APDU [13:21:55]CAPDU: 80 13 01 00 [13:21:55]Write to MH i2c: E2 08 00 78 52 80 13 01 00 00 00 00 00 47 [13:21:55]Write i2c OK [13:21:55]MH_I2C_Read... [13:21:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:55]Read from MH i2c: E2 [13:21:55]MH_I2C_Read... [13:21:55]Read from MH i2c: E2 0E 00 [13:21:55]MH_I2C_Read... [13:21:55]Read from MH i2c: E2 0E 00 78 52 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 C9 [13:21:55]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:21:55]wFMCommunicate OK [13:21:55]SAM_PROTO_GetShiftState done [13:21:55]FM_GetShiftState done [13:21:55]req_shift_opened done [13:21:55]requested_item shift.open_date is exist - process it [13:21:55]req_shift_open_date [13:21:55]req_shift_open_date done [13:21:55]produce_requested_data done [13:21:55]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92618,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [13:21:55]process_action_free close_receipt [13:21:55]json_value_free [13:21:55]json_value_free done [13:21:55]process_json_proto returns [13:21:55]Send response to host [13:21:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92618,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [13:21:55]free response buf [13:21:55]execute_script done [13:21:55]execute_script returns [13:21:55]free content buf [13:21:55]Sock 9.Close socket [13:21:55]Sock 9.Thread stoped [13:21:57]OFD Sender: No OFD packet to send [13:22:02]OFD Sender: No OFD packet to send [13:22:07]OFD Sender: No OFD packet to send [13:22:12]OFD Sender: No OFD packet to send [13:22:17]OFD Sender: No OFD packet to send [13:22:22]OFD Sender: No OFD packet to send [13:22:27]OFD Sender: No OFD packet to send [13:22:32]OFD Sender: No OFD packet to send [13:22:37]OFD Sender: No OFD packet to send [13:22:42]OFD Sender: No OFD packet to send [13:22:47]OFD Sender: No OFD packet to send [13:22:52]OFD Sender: No OFD packet to send [13:22:57]OFD Sender: No OFD packet to send [13:23:02]OFD Sender: No OFD packet to send [13:23:07]OFD Sender: No OFD packet to send [13:23:12]OFD Sender: No OFD packet to send [13:23:17]OFD Sender: No OFD packet to send [13:23:22]OFD Sender: No OFD packet to send [13:23:27]OFD Sender: No OFD packet to send [13:23:32]OFD Sender: No OFD packet to send [13:23:37]OFD Sender: No OFD packet to send [13:23:42]OFD Sender: No OFD packet to send [13:23:47]OFD Sender: No OFD packet to send [13:23:52]OFD Sender: No OFD packet to send [13:23:57]OFD Sender: No OFD packet to send [13:24:02]OFD Sender: No OFD packet to send [13:24:07]OFD Sender: No OFD packet to send [13:24:12]OFD Sender: No OFD packet to send [13:24:17]OFD Sender: No OFD packet to send [13:24:22]OFD Sender: No OFD packet to send [13:24:27]OFD Sender: No OFD packet to send [13:24:32]OFD Sender: No OFD packet to send [13:24:37]OFD Sender: No OFD packet to send [13:24:42]OFD Sender: No OFD packet to send [13:24:47]OFD Sender: No OFD packet to send [13:24:52]OFD Sender: No OFD packet to send [13:24:57]OFD Sender: No OFD packet to send [13:25:02]OFD Sender: No OFD packet to send [13:25:07]OFD Sender: No OFD packet to send [13:25:12]OFD Sender: No OFD packet to send [13:25:17]OFD Sender: No OFD packet to send [13:25:22]OFD Sender: No OFD packet to send [13:25:23]accept exits with 8 [13:25:23]New connection [13:25:23]New thread 3066801508 created [13:25:23]Thread 3066658148 joined [13:25:23]Waiting for new connection... [13:25:23] Sock 8.Parse request [13:25:23]Sock 8.Check first char [13:25:23]Sock 8.First char is OK [13:25:23]request: POST /json_proto HTTP/1.0 [13:25:23]Method: POST [13:25:23]URL: /json_proto [13:25:23]Method is POST - this is cgi request [13:25:23]url: /json_proto [13:25:23]query_string will be loaded in cgi processing [13:25:23]execute_cgi json_proto POST (null) [13:25:23]execute_cgi path=json_proto method=POST [13:25:23]POST find Content-Length [13:25:23]Host: 172.17.57.71:8080 [13:25:23]Content-Length: 632 [13:25:23]Content-Type: application/json [13:25:23] [13:25:23]POST finish read [13:25:23]Found Content-Length = 632 [13:25:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127511", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:23]execute_script... [13:25:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127511", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:23]POST & json_proto [13:25:23]process_json_proto [13:25:23]json parsed OK: [13:25:23]protocol is kg_v1.0 [13:25:23]action value=close_receipt [13:25:23]process_action close_receipt [13:25:23]cmd_close_receipt [13:25:23]MH_GetDate [13:25:23]Write to MH i2c: F0 00 00 79 52 BA [13:25:23]Write i2c OK [13:25:23]MH_I2C_Read... [13:25:23]Read from MH i2c: F0 [13:25:23]MH_I2C_Read... [13:25:23]Read from MH i2c: F0 09 00 [13:25:23]MH_I2C_Read... [13:25:23]Read from MH i2c: F0 09 00 79 52 00 4C E0 E6 66 33 3A A4 66 B2 [13:25:23]GetLastDocTimeStamp 1726406518 [13:25:23]current date 1726406732 [13:25:23]FM_GetShiftState [13:25:23]SAM_PROTO_GetShiftState [13:25:23]wFMCommunicate request_size=4 [13:25:23]MH_SAM_APDU [13:25:23]CAPDU: 80 13 01 00 [13:25:23]Write to MH i2c: E2 08 00 7A 52 80 13 01 00 00 00 00 00 49 [13:25:23]Write i2c OK [13:25:23]MH_I2C_Read... [13:25:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:23]Read from MH i2c: E2 [13:25:23]MH_I2C_Read... [13:25:23]Read from MH i2c: E2 0E 00 [13:25:23]MH_I2C_Read... [13:25:23]Read from MH i2c: E2 0E 00 7A 52 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 CB [13:25:23]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:25:23]wFMCommunicate OK [13:25:23]SAM_PROTO_GetShiftState done [13:25:23]FM_GetShiftState done [13:25:23]opened in 1726359809 [13:25:23]opened+sec_in_day 1726446209 [13:25:23]quantity*price = 6000 [13:25:23]sum+1 = 6001 [13:25:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 67 15.09.2024 13:25 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92619 ФПД: 53972016676300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T132532&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92619&fm=53972016676300&tin=02508201610067®Number=0000000000091423&sum=6000 0 [13:25:24]StoreToDocumentArchive [13:25:24]shift 507 fd 92619 [13:25:24]save to /storage/0507/doc_00092619 [13:25:24]save last doc name /storage/0507/doc_00092619 to /storage/kkm_last_doc_name [13:25:24]save OK [13:25:24]Clear old archive folders... [13:25:24]ProcessDocumentItem done err = 0, tmpTLVsize=271 [13:25:24]tlvbuf is 010B1350 [13:25:24]SAM_PROTO_ClearQueue [13:25:24]wFMCommunicate request_size=4 [13:25:24]MH_SAM_APDU [13:25:24]CAPDU: 80 09 00 00 [13:25:24]Write to MH i2c: E2 08 00 87 52 80 09 00 00 00 00 00 00 4B [13:25:24]Write i2c OK [13:25:24]MH_I2C_Read... [13:25:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:25:24]Read from MH i2c: E2 [13:25:24]MH_I2C_Read... [13:25:24]Read from MH i2c: E2 03 00 [13:25:24]MH_I2C_Read... [13:25:24]Read from MH i2c: E2 03 00 87 52 00 90 00 4D [13:25:24]RAPDU: 90 00 [13:25:24]wFMCommunicate OK [13:25:24]SAM_PROTO_ClearQueue done [13:25:24]KKMCreateOFDPacket [13:25:24]OFDProtocolAddRootSTLVToBuf [13:25:24]FM_MakeSignedData [13:25:24]FM_MakeSignedData [13:25:24]SAM_PROTO_SignData [13:25:24]wFMCommunicate request_size=4 [13:25:24]MH_SAM_APDU [13:25:24]CAPDU: 80 0D 01 02 [13:25:24]Write to MH i2c: E2 08 00 88 52 80 0D 01 02 00 00 00 00 53 [13:25:24]Write i2c OK [13:25:24]MH_I2C_Read... [13:25:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:25:25]Read from MH i2c: E2 [13:25:25]MH_I2C_Read... [13:25:25]Read from MH i2c: E2 03 00 [13:25:25]MH_I2C_Read... [13:25:25]Read from MH i2c: E2 03 00 88 52 00 90 00 4E [13:25:25]RAPDU: 90 00 [13:25:25]wFMCommunicate OK [13:25:25]wFMCommunicate request_size=255 [13:25:25]MH_SAM_APDU [13:25:25]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 4C E0 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 [13:25:25]Write to MH i2c: E2 02 01 89 52 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 4C E0 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 33 [13:25:25]Write i2c OK [13:25:25]MH_I2C_Read... [13:25:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:25]Read from MH i2c: E2 [13:25:25]MH_I2C_Read... [13:25:25]Read from MH i2c: E2 03 00 [13:25:25]MH_I2C_Read... [13:25:25]Read from MH i2c: E2 03 00 89 52 00 90 00 4F [13:25:25]RAPDU: 90 00 [13:25:25]wFMCommunicate OK [13:25:25]wFMCommunicate request_size=30 [13:25:25]MH_SAM_APDU [13:25:25]CAPDU: 80 0D 02 02 19 30 38 37 34 36 39 32 10 04 04 00 CB 69 01 00 35 04 06 00 31 16 56 E1 BD CC [13:25:25]Write to MH i2c: E2 21 00 8A 52 80 0D 02 02 19 00 30 38 37 34 36 39 32 10 04 04 00 CB 69 01 00 35 04 06 00 31 16 56 E1 BD CC 00 00 8F [13:25:25]Write i2c OK [13:25:25]MH_I2C_Read... [13:25:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:25]Read from MH i2c: E2 [13:25:25]MH_I2C_Read... [13:25:25]Read from MH i2c: E2 03 00 [13:25:25]MH_I2C_Read... [13:25:25]Read from MH i2c: E2 03 00 8A 52 00 90 00 50 [13:25:25]RAPDU: 90 00 [13:25:25]wFMCommunicate OK [13:25:25]wFMCommunicate request_size=4 [13:25:25]MH_SAM_APDU [13:25:25]CAPDU: 80 0D 03 02 [13:25:25]Write to MH i2c: E2 08 00 8B 52 80 0D 03 02 00 00 00 00 58 [13:25:25]Write i2c OK [13:25:25]MH_I2C_Read... [13:25:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:25:25]Read from MH i2c: E2 [13:25:25]MH_I2C_Read... [13:25:25]Read from MH i2c: E2 0B 00 [13:25:25]MH_I2C_Read... [13:25:25]Read from MH i2c: E2 0B 00 8B 52 00 58 13 03 53 C0 EF 15 09 90 00 E7 [13:25:25]RAPDU: 58 13 03 53 C0 EF 15 09 90 00 [13:25:25]wFMCommunicate OK [13:25:25]SAM_PROTO_SignData done [13:25:25]FM_MakeSignedData done [13:25:25]CreateOFDProtocolMessage [13:25:25]wFMCommunicate request_size=4 [13:25:25]MH_SAM_APDU [13:25:25]CAPDU: 80 11 00 00 [13:25:25]Write to MH i2c: E2 08 00 8C 52 80 11 00 00 00 00 00 00 58 [13:25:25]Write i2c OK [13:25:25]MH_I2C_Read... [13:25:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:25]Read from MH i2c: E2 [13:25:25]MH_I2C_Read... [13:25:25]Read from MH i2c: E2 17 00 [13:25:25]MH_I2C_Read... [13:25:25]Read from MH i2c: E2 17 00 8C 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 AF [13:25:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:25:25]wFMCommunicate OK [13:25:25]CreateOFDProtocolMessage done [13:25:25]OFDSenderStorePacket 92619 [13:25:25]StoreOFDPacket docnum=92619 [13:25:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 26 88 1B 01 A3 FC 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 4C E0 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CB 69 01 00 35 04 06 00 31 16 56 E1 BD CC 58 13 03 53 C0 EF 15 09 [13:25:25]CheckFolder [13:25:25]dirname=/storage/ofd_packets [13:25:25]CheckFolder done [13:25:25]ProducePacketName [13:25:25]name=ofd_packets/00092619 [13:25:25]NVStorageSaveData ofd_packets/00092619 [13:25:25]File name is /storage/ofd_packets/00092619 [13:25:25]Write 321 bytes [13:25:25]NVStorageSaveData done [13:25:25]OFDSenderStorePacket done [13:25:25]KKMCreateOFDPacket done [13:25:25]NVStorageSaveData kkm_last_timestamp [13:25:25]File name is /storage/kkm_last_timestamp [13:25:25]Write 4 bytes [13:25:25]NVStorageSaveData done [13:25:25]ExternCall_PrintAddStr [13:25:25]wPrintStart [13:25:25]Write to MH i2c: 01 00 00 8D 52 DF [13:25:25]Write i2c OK [13:25:25]MH_I2C_Read... [13:25:25]Read from MH i2c: 01 [13:25:25]MH_I2C_Read... [13:25:25]Read from MH i2c: 01 07 00 [13:25:25]MH_I2C_Read... [13:25:25]Read from MH i2c: 01 07 00 8D 52 00 00 00 00 00 FF 0F F4 [13:25:25]RasterBufferAndPrint [13:25:25]line Счет N : (3)127511 [13:25:25]line ИНН: 02508201610067 [13:25:25]line Контрольно-Кассовый Чек [13:25:25]line ПРОДАЖА [13:25:25]line Товар: 4700000160204 [13:25:25]line Вода Легенда 1,5л [13:25:25]line 1.000 * 60.00 [13:25:25]line = 60.00 [13:25:25]line НДС 12% НСП 1% [13:25:25]line > о реализуемом товаре [13:25:25]line ИТОГО: 60.00 [13:25:25]line НСП 1% : 0.53 [13:25:25]line НДС 12% : 6.37 [13:25:25]line Наличными: 60.00 [13:25:25]line Безнал.: 0.00 [13:25:25]line Место: АЗС № 5 "Партнер Нефть" [13:25:25]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [13:25:25]line СНО: Общий режим [13:25:25]line Чек 67 15.09.2024 13:25 [13:25:25]line Смена: 507 ФФД: 1.0 [13:25:25]line ЗНМ: 03000000022 [13:25:25]line РНМ: 0000000000091423 [13:25:25]line Версия ККМ: 001 [13:25:25]line ФМ: 0000000000874692 [13:25:25]line ФД: 92619 [13:25:25]line ФПД: 53972016676300 [13:25:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T132532&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92619&fm=53972016676300&tin=02508201610067®Number=0000000000091423&sum=6000 [13:25:25]line 0 [13:25:25]written 0, free lines is 4095 [13:25:25]OFD Sender: Processing packet 92619 [packets to send 63, broken 62] [13:25:25]ProducePacketName [13:25:25]name=ofd_packets/00092619 [13:25:25]OFD Sender: To server: pG, [13:25:25]CommunicateWithHost lk.salyk.kg:30040 [13:25:25]ConnectInit lk.salyk.kg [13:25:25]Connected sock=10 [13:25:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 26 88 1B 01 A3 FC 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 4C E0 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CB 69 01 00 35 04 06 00 31 16 56 E1 BD CC 58 13 03 53 C0 EF 15 09 [13:25:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 27 EE 47 00 5A D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CB 69 01 00 F4 03 04 00 C4 88 E6 66 B6 04 01 00 00 43 E6 CF 9B 46 A8 51 47 [13:25:25]CommunicateWithHost err = 0 [13:25:25]CheckOFDResponse [13:25:25]1017 (14) - 77093643461234 [13:25:25]1041 (16) - 0000000000874692 [13:25:25]1040 (4) - 92619 [13:25:25]1012 (4) - 15.09.2024 07:12 [13:25:25]1206 (1) - 0 [13:25:25]OFD Sender: Remove packet 92619 [13:25:25]ProducePacketName [13:25:25]name=ofd_packets/00092619 [13:25:25]NVStorageDeleteData [13:25:25]Write to MH i2c: 01 00 00 B5 52 07 [13:25:25]Write i2c OK [13:25:25]MH_I2C_Read... [13:25:25]Read from MH i2c: 01 [13:25:25]MH_I2C_Read... [13:25:25]Read from MH i2c: 01 07 00 [13:25:25]MH_I2C_Read... [13:25:25]Read from MH i2c: 01 07 00 B5 52 00 00 00 00 00 2E 0D 49 [13:25:25]RasterBufferAndPrint [13:25:25]line [13:25:25]line [13:25:25]line [13:25:25]line [13:25:25]line [13:25:25]written 0, free lines is 3382 [13:25:25]MH_Cut [13:25:25]Write to MH i2c: D1 01 00 BC 52 01 E0 [13:25:25]Write i2c OK [13:25:25]MH_I2C_Read... [13:25:25]Read from MH i2c: D1 [13:25:25]MH_I2C_Read... [13:25:25]Read from MH i2c: D1 01 00 [13:25:25]MH_I2C_Read... [13:25:25]Read from MH i2c: D1 01 00 BC 52 00 DF [13:25:25]Write to MH i2c: 01 00 00 BD 52 0F [13:25:25]Write i2c OK [13:25:25]MH_I2C_Read... [13:25:26]OFD Sender: No OFD packet to send [13:25:26]*** Cut start [13:25:26]*** Purtial cut [13:25:26]*** Stage 1: CUTSNS_PIN = 1 [13:25:28]Read from MH i2c: 01 [13:25:28]MH_I2C_Read... [13:25:28]*** Stop cut motor [13:25:28]*** Cut end [13:25:28]Read from MH i2c: 01 07 00 [13:25:28]MH_I2C_Read... [13:25:28]Read from MH i2c: 01 07 00 BD 52 00 00 00 00 00 FF 0F 24 [13:25:28]process_action close_receipt done [13:25:28]requested_data is exist [13:25:28]produce_requested_data [13:25:28]requested_item fm.sn is exist - process it [13:25:28]wFMCommunicate request_size=4 [13:25:28]MH_SAM_APDU [13:25:28]CAPDU: 80 11 00 00 [13:25:28]Write to MH i2c: E2 08 00 BE 52 80 11 00 00 00 00 00 00 8A [13:25:28]Write i2c OK [13:25:28]MH_I2C_Read... [13:25:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:28]Read from MH i2c: E2 [13:25:28]MH_I2C_Read... [13:25:28]Read from MH i2c: E2 17 00 [13:25:28]MH_I2C_Read... [13:25:28]Read from MH i2c: E2 17 00 BE 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E1 [13:25:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:25:28]wFMCommunicate OK [13:25:28]requested_item fd.num is exist - process it [13:25:28]SAM_PROTO_GetFieldsCounters [13:25:28]wFMCommunicate request_size=4 [13:25:28]MH_SAM_APDU [13:25:28]CAPDU: 80 13 00 00 [13:25:28]Write to MH i2c: E2 08 00 BF 52 80 13 00 00 00 00 00 00 8D [13:25:28]Write i2c OK [13:25:28]MH_I2C_Read... [13:25:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:28]Read from MH i2c: E2 [13:25:28]MH_I2C_Read... [13:25:28]Read from MH i2c: E2 62 00 [13:25:28]MH_I2C_Read... [13:25:28]Read from MH i2c: E2 62 00 BF 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 CB 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [13:25:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 CB 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:25:28]wFMCommunicate OK [13:25:28]SAM_PROTO_GetFieldsCounters done [13:25:28]requested_item shift.num is exist - process it [13:25:28]requested_item shift.opened is exist - process it [13:25:28]req_shift_opened [13:25:28]FM_GetShiftState [13:25:28]SAM_PROTO_GetShiftState [13:25:28]wFMCommunicate request_size=4 [13:25:28]MH_SAM_APDU [13:25:28]CAPDU: 80 13 01 00 [13:25:28]Write to MH i2c: E2 08 00 C0 52 80 13 01 00 00 00 00 00 8F [13:25:28]Write i2c OK [13:25:28]MH_I2C_Read... [13:25:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:28]Read from MH i2c: E2 [13:25:28]MH_I2C_Read... [13:25:28]Read from MH i2c: E2 0E 00 [13:25:28]MH_I2C_Read... [13:25:28]Read from MH i2c: E2 0E 00 C0 52 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 11 [13:25:28]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:25:28]wFMCommunicate OK [13:25:28]SAM_PROTO_GetShiftState done [13:25:28]FM_GetShiftState done [13:25:28]req_shift_opened done [13:25:28]requested_item shift.open_date is exist - process it [13:25:28]req_shift_open_date [13:25:28]req_shift_open_date done [13:25:28]produce_requested_data done [13:25:28]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92619,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [13:25:28]process_action_free close_receipt [13:25:28]json_value_free [13:25:28]json_value_free done [13:25:28]process_json_proto returns [13:25:28]Send response to host [13:25:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92619,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [13:25:28]free response buf [13:25:28]execute_script done [13:25:28]execute_script returns [13:25:28]free content buf [13:25:28]Sock 8.Close socket [13:25:28]Sock 8.Thread stoped [13:25:31]OFD Sender: No OFD packet to send [13:25:36]OFD Sender: No OFD packet to send [13:25:41]OFD Sender: No OFD packet to send [13:25:46]OFD Sender: No OFD packet to send [13:25:51]OFD Sender: No OFD packet to send [13:25:56]OFD Sender: No OFD packet to send [13:26:01]OFD Sender: No OFD packet to send [13:26:04]accept exits with 9 [13:26:04]New connection [13:26:04]New thread 3066658148 created [13:26:04]Thread 3066801508 joined [13:26:04]Waiting for new connection... [13:26:04] Sock 9.Parse request [13:26:04]Sock 9.Check first char [13:26:04]Sock 9.First char is OK [13:26:04]request: POST /json_proto HTTP/1.0 [13:26:04]Method: POST [13:26:04]URL: /json_proto [13:26:04]Method is POST - this is cgi request [13:26:04]url: /json_proto [13:26:04]query_string will be loaded in cgi processing [13:26:04]execute_cgi json_proto POST (null) [13:26:04]execute_cgi path=json_proto method=POST [13:26:04]POST find Content-Length [13:26:04]Host: 172.17.57.71:8080 [13:26:04]Content-Length: 884 [13:26:04]Content-Type: application/json [13:26:04] [13:26:04]POST finish read [13:26:04]Found Content-Length = 884 [13:26:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127512", "tax_sys" : 0, "items" : [ { "code": "4860019001353", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u041F\u042D\u0422", "price" : 87.00, "quantity" : 1.000, "sum" : 87.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091522", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Blue", "price" : 148.00, "quantity" : 1.000, "sum" : 148.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 235.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:04]execute_script... [13:26:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127512", "tax_sys" : 0, "items" : [ { "code": "4860019001353", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u041F\u042D\u0422", "price" : 87.00, "quantity" : 1.000, "sum" : 87.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091522", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Blue", "price" : 148.00, "quantity" : 1.000, "sum" : 148.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 235.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:04]POST & json_proto [13:26:04]process_json_proto [13:26:04]json parsed OK: [13:26:04]protocol is kg_v1.0 [13:26:04]action value=close_receipt [13:26:04]process_action close_receipt [13:26:04]cmd_close_receipt [13:26:04]MH_GetDate [13:26:04]Write to MH i2c: F0 00 00 C1 52 02 [13:26:04]Write i2c OK [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: F0 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: F0 09 00 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: F0 09 00 C1 52 00 75 E0 E6 66 33 3A A4 66 23 [13:26:04]GetLastDocTimeStamp 1726406732 [13:26:04]current date 1726406773 [13:26:04]FM_GetShiftState [13:26:04]SAM_PROTO_GetShiftState [13:26:04]wFMCommunicate request_size=4 [13:26:04]MH_SAM_APDU [13:26:04]CAPDU: 80 13 01 00 [13:26:04]Write to MH i2c: E2 08 00 C2 52 80 13 01 00 00 00 00 00 91 [13:26:04]Write i2c OK [13:26:04]MH_I2C_Read... [13:26:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:04]Read from MH i2c: E2 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 0E 00 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 0E 00 C2 52 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 13 [13:26:04]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:26:04]wFMCommunicate OK [13:26:04]SAM_PROTO_GetShiftState done [13:26:04]FM_GetShiftState done [13:26:04]opened in 1726359809 [13:26:04]opened+sec_in_day 1726446209 [13:26:04]quantity*price = 8700 [13:26:04]sum+1 = 8701 [13:26:04]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030091522 Сигареты Esse Blue 1.000 * 148.00 = 148.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 235.00 НСП 1% : 2.08 НДС 12% : 24.96 Наличными: 235.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 68 15.09.2024 13:26 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92620 ФПД: 275844402952022 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T132613&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92620&fm=275844402952022&tin=02508201610067®Number=0000000000091423&sum=23500 0 [13:26:06]StoreToDocumentArchive [13:26:06]shift 507 fd 92620 [13:26:06]save to /storage/0507/doc_00092620 [13:26:06]save last doc name /storage/0507/doc_00092620 to /storage/kkm_last_doc_name [13:26:06]save OK [13:26:06]Clear old archive folders... [13:26:06]ProcessDocumentItem done err = 0, tmpTLVsize=376 [13:26:06]tlvbuf is 00FB94D0 [13:26:06]SAM_PROTO_ClearQueue [13:26:06]wFMCommunicate request_size=4 [13:26:06]MH_SAM_APDU [13:26:06]CAPDU: 80 09 00 00 [13:26:06]Write to MH i2c: E2 08 00 CF 52 80 09 00 00 00 00 00 00 93 [13:26:06]Write i2c OK [13:26:06]MH_I2C_Read... [13:26:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:06]Read from MH i2c: E2 [13:26:06]MH_I2C_Read... [13:26:06]Read from MH i2c: E2 03 00 [13:26:06]MH_I2C_Read... [13:26:06]Read from MH i2c: E2 03 00 CF 52 00 90 00 95 [13:26:06]RAPDU: 90 00 [13:26:06]wFMCommunicate OK [13:26:06]SAM_PROTO_ClearQueue done [13:26:06]KKMCreateOFDPacket [13:26:06]OFDProtocolAddRootSTLVToBuf [13:26:06]FM_MakeSignedData [13:26:06]FM_MakeSignedData [13:26:06]SAM_PROTO_SignData [13:26:06]wFMCommunicate request_size=4 [13:26:06]MH_SAM_APDU [13:26:06]CAPDU: 80 0D 01 02 [13:26:06]Write to MH i2c: E2 08 00 D0 52 80 0D 01 02 00 00 00 00 9B [13:26:06]Write i2c OK [13:26:06]MH_I2C_Read... [13:26:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:06]Read from MH i2c: E2 [13:26:06]MH_I2C_Read... [13:26:06]Read from MH i2c: E2 03 00 [13:26:06]MH_I2C_Read... [13:26:06]Read from MH i2c: E2 03 00 D0 52 00 90 00 96 [13:26:06]RAPDU: 90 00 [13:26:06]wFMCommunicate OK [13:26:06]wFMCommunicate request_size=255 [13:26:06]MH_SAM_APDU [13:26:06]CAPDU: 80 0D 02 02 FA 03 00 78 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 32 32 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 39 00 00 00 00 13 04 06 00 D0 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 00 00 00 00 00 EE 03 [13:26:06]Write to MH i2c: E2 02 01 D1 52 80 0D 02 02 FA 00 03 00 78 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 32 32 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 39 00 00 00 00 13 04 06 00 D0 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 00 00 00 00 00 EE 03 00 00 66 [13:26:06]Write i2c OK [13:26:06]MH_I2C_Read... [13:26:06]OFD Sender: No OFD packet to send [13:26:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:06]Read from MH i2c: E2 [13:26:06]MH_I2C_Read... [13:26:06]Read from MH i2c: E2 03 00 [13:26:06]MH_I2C_Read... [13:26:06]Read from MH i2c: E2 03 00 D1 52 00 90 00 97 [13:26:06]RAPDU: 90 00 [13:26:06]wFMCommunicate OK [13:26:06]wFMCommunicate request_size=135 [13:26:06]MH_SAM_APDU [13:26:06]CAPDU: 80 0D 02 02 82 0F 00 F2 03 01 00 01 F3 03 06 00 C0 09 00 00 00 00 07 04 06 00 CC 5B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 75 E0 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CC 69 01 00 35 04 06 00 FA E1 07 A6 B7 56 [13:26:06]Write to MH i2c: E2 8A 00 D2 52 80 0D 02 02 82 00 0F 00 F2 03 01 00 01 F3 03 06 00 C0 09 00 00 00 00 07 04 06 00 CC 5B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 75 E0 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CC 69 01 00 35 04 06 00 FA E1 07 A6 B7 56 00 00 78 [13:26:06]Write i2c OK [13:26:06]MH_I2C_Read... [13:26:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:06]Read from MH i2c: E2 [13:26:06]MH_I2C_Read... [13:26:06]Read from MH i2c: E2 03 00 [13:26:06]MH_I2C_Read... [13:26:06]Read from MH i2c: E2 03 00 D2 52 00 90 00 98 [13:26:06]RAPDU: 90 00 [13:26:06]wFMCommunicate OK [13:26:06]wFMCommunicate request_size=4 [13:26:06]MH_SAM_APDU [13:26:06]CAPDU: 80 0D 03 02 [13:26:06]Write to MH i2c: E2 08 00 D3 52 80 0D 03 02 00 00 00 00 A0 [13:26:06]Write i2c OK [13:26:06]MH_I2C_Read... [13:26:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:06]Read from MH i2c: E2 [13:26:06]MH_I2C_Read... [13:26:06]Read from MH i2c: E2 0B 00 [13:26:06]MH_I2C_Read... [13:26:06]Read from MH i2c: E2 0B 00 D3 52 00 B4 9C BB 93 1E A7 FF E9 90 00 EC [13:26:06]RAPDU: B4 9C BB 93 1E A7 FF E9 90 00 [13:26:06]wFMCommunicate OK [13:26:06]SAM_PROTO_SignData done [13:26:06]FM_MakeSignedData done [13:26:06]CreateOFDProtocolMessage [13:26:06]wFMCommunicate request_size=4 [13:26:06]MH_SAM_APDU [13:26:06]CAPDU: 80 11 00 00 [13:26:06]Write to MH i2c: E2 08 00 D4 52 80 11 00 00 00 00 00 00 A0 [13:26:06]Write i2c OK [13:26:06]MH_I2C_Read... [13:26:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:06]Read from MH i2c: E2 [13:26:06]MH_I2C_Read... [13:26:06]Read from MH i2c: E2 17 00 [13:26:06]MH_I2C_Read... [13:26:06]Read from MH i2c: E2 17 00 D4 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F7 [13:26:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:26:06]wFMCommunicate OK [13:26:06]CreateOFDProtocolMessage done [13:26:06]OFDSenderStorePacket 92620 [13:26:06]StoreOFDPacket docnum=92620 [13:26:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 8C 01 00 00 77 51 84 01 2E 3C 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 32 32 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 39 00 00 00 00 13 04 06 00 D0 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 09 00 00 00 00 07 04 06 00 CC 5B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 75 E0 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CC 69 01 00 35 04 06 00 FA E1 07 A6 B7 56 B4 9C BB 93 1E A7 FF E9 [13:26:06]CheckFolder [13:26:06]dirname=/storage/ofd_packets [13:26:06]CheckFolder done [13:26:06]ProducePacketName [13:26:06]name=ofd_packets/00092620 [13:26:06]NVStorageSaveData ofd_packets/00092620 [13:26:06]File name is /storage/ofd_packets/00092620 [13:26:06]Write 426 bytes [13:26:06]NVStorageSaveData done [13:26:06]OFDSenderStorePacket done [13:26:06]KKMCreateOFDPacket done [13:26:06]NVStorageSaveData kkm_last_timestamp [13:26:06]File name is /storage/kkm_last_timestamp [13:26:06]Write 4 bytes [13:26:06]NVStorageSaveData done [13:26:06]ExternCall_PrintAddStr [13:26:06]wPrintStart [13:26:06]Write to MH i2c: 01 00 00 D5 52 27 [13:26:06]Write i2c OK [13:26:06]MH_I2C_Read... [13:26:06]Read from MH i2c: 01 [13:26:06]MH_I2C_Read... [13:26:06]Read from MH i2c: 01 07 00 [13:26:06]MH_I2C_Read... [13:26:06]Read from MH i2c: 01 07 00 D5 52 00 00 00 00 00 FF 0F 3C [13:26:06]RasterBufferAndPrint [13:26:06]line Счет N : (3)127512 [13:26:06]line ИНН: 02508201610067 [13:26:06]line Контрольно-Кассовый Чек [13:26:06]line ПРОДАЖА [13:26:06]line Товар: 4860019001353 [13:26:06]line Вода Боржоми 0,5л ПЭТ [13:26:06]line 1.000 * 87.00 [13:26:06]line = 87.00 [13:26:06]line НДС 12% НСП 1% [13:26:06]line > о реализуемом товаре [13:26:06]line Товар: 4640030091522 [13:26:06]line Сигареты Esse Blue [13:26:07]line 1.000 * 148.00 [13:26:07]line = 148.00 [13:26:07]line НДС 12% НСП 1% [13:26:07]line > о реализуемом товаре [13:26:07]line ИТОГО: 235.00 [13:26:07]line НСП 1% : 2.08 [13:26:07]line НДС 12% : 24.96 [13:26:07]line Наличными: 235.00 [13:26:07]line Безнал.: 0.00 [13:26:07]line Место: АЗС № 5 "Партнер Нефть" [13:26:07]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [13:26:07]line СНО: Общий режим [13:26:07]line Чек 68 15.09.2024 13:26 [13:26:07]line Смена: 507 ФФД: 1.0 [13:26:07]line ЗНМ: 03000000022 [13:26:07]line РНМ: 0000000000091423 [13:26:07]line Версия ККМ: 001 [13:26:07]line ФМ: 0000000000874692 [13:26:07]line ФД: 92620 [13:26:07]line ФПД: 275844402952022 [13:26:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T132613&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92620&fm=275844402952022&tin=02508201610067®Number=0000000000091423&sum=23500 [13:26:07]line 0 [13:26:07]OFD Sender: Processing packet 92620 [packets to send 63, broken 62] [13:26:07]ProducePacketName [13:26:07]name=ofd_packets/00092620 [13:26:07]OFD Sender: To server: pG, [13:26:07]CommunicateWithHost lk.salyk.kg:30040 [13:26:07]ConnectInit lk.salyk.kg [13:26:07]written 0, free lines is 4095 [13:26:07]Connected sock=10 [13:26:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 8C 01 00 00 77 51 84 01 2E 3C 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 32 32 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 39 00 00 00 00 13 04 06 00 D0 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 09 00 00 00 00 07 04 06 00 CC 5B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 75 E0 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CC 69 01 00 35 04 06 00 FA E1 07 A6 B7 56 B4 9C BB 93 1E A7 FF E9 [13:26:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 1E 1E 47 00 C0 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CC 69 01 00 F4 03 04 00 ED 88 E6 66 B6 04 01 00 00 45 7E F7 2F 2B 36 6F 88 [13:26:07]CommunicateWithHost err = 0 [13:26:07]CheckOFDResponse [13:26:07]1017 (14) - 77093643461234 [13:26:07]1041 (16) - 0000000000874692 [13:26:07]1040 (4) - 92620 [13:26:07]1012 (4) - 15.09.2024 07:12 [13:26:07]1206 (1) - 0 [13:26:07]OFD Sender: Remove packet 92620 [13:26:07]ProducePacketName [13:26:07]name=ofd_packets/00092620 [13:26:07]NVStorageDeleteData [13:26:07]Write to MH i2c: 01 00 00 03 53 56 [13:26:07]Write i2c OK [13:26:07]MH_I2C_Read... [13:26:07]Read from MH i2c: 01 [13:26:07]MH_I2C_Read... [13:26:07]Read from MH i2c: 01 07 00 [13:26:07]MH_I2C_Read... [13:26:07]Read from MH i2c: 01 07 00 03 53 00 00 00 00 00 EB 0C 54 [13:26:07]RasterBufferAndPrint [13:26:07]line [13:26:07]line [13:26:07]line [13:26:07]line [13:26:07]line [13:26:07]written 0, free lines is 3314 [13:26:07]MH_Cut [13:26:07]Write to MH i2c: D1 01 00 0A 53 01 2F [13:26:07]Write i2c OK [13:26:07]MH_I2C_Read... [13:26:07]Read from MH i2c: D1 [13:26:07]MH_I2C_Read... [13:26:07]Read from MH i2c: D1 01 00 [13:26:07]MH_I2C_Read... [13:26:07]Read from MH i2c: D1 01 00 0A 53 00 2E [13:26:07]Write to MH i2c: 01 00 00 0B 53 5E [13:26:07]Write i2c OK [13:26:07]MH_I2C_Read... [13:26:07]OFD Sender: No OFD packet to send [13:26:08]*** Cut start [13:26:08]*** Purtial cut [13:26:08]*** Stage 1: CUTSNS_PIN = 1 [13:26:10]Read from MH i2c: 01 [13:26:10]MH_I2C_Read... [13:26:10]*** Stop cut motor [13:26:10]*** Cut end [13:26:10]Read from MH i2c: 01 07 00 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: 01 07 00 0B 53 00 00 00 00 00 FF 0F 73 [13:26:10]process_action close_receipt done [13:26:10]requested_data is exist [13:26:10]produce_requested_data [13:26:10]requested_item fm.sn is exist - process it [13:26:10]wFMCommunicate request_size=4 [13:26:10]MH_SAM_APDU [13:26:10]CAPDU: 80 11 00 00 [13:26:10]Write to MH i2c: E2 08 00 0C 53 80 11 00 00 00 00 00 00 D9 [13:26:10]Write i2c OK [13:26:10]MH_I2C_Read... [13:26:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:10]Read from MH i2c: E2 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: E2 17 00 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: E2 17 00 0C 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 30 [13:26:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:26:10]wFMCommunicate OK [13:26:10]requested_item fd.num is exist - process it [13:26:10]SAM_PROTO_GetFieldsCounters [13:26:10]wFMCommunicate request_size=4 [13:26:10]MH_SAM_APDU [13:26:10]CAPDU: 80 13 00 00 [13:26:10]Write to MH i2c: E2 08 00 0D 53 80 13 00 00 00 00 00 00 DC [13:26:10]Write i2c OK [13:26:10]MH_I2C_Read... [13:26:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:10]Read from MH i2c: E2 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: E2 62 00 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: E2 62 00 0D 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 CC 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [13:26:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 CC 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:26:10]wFMCommunicate OK [13:26:10]SAM_PROTO_GetFieldsCounters done [13:26:10]requested_item shift.num is exist - process it [13:26:10]requested_item shift.opened is exist - process it [13:26:10]req_shift_opened [13:26:10]FM_GetShiftState [13:26:10]SAM_PROTO_GetShiftState [13:26:10]wFMCommunicate request_size=4 [13:26:10]MH_SAM_APDU [13:26:10]CAPDU: 80 13 01 00 [13:26:10]Write to MH i2c: E2 08 00 0E 53 80 13 01 00 00 00 00 00 DE [13:26:10]Write i2c OK [13:26:10]MH_I2C_Read... [13:26:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:10]Read from MH i2c: E2 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: E2 0E 00 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: E2 0E 00 0E 53 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 60 [13:26:10]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:26:10]wFMCommunicate OK [13:26:10]SAM_PROTO_GetShiftState done [13:26:10]FM_GetShiftState done [13:26:10]req_shift_opened done [13:26:10]requested_item shift.open_date is exist - process it [13:26:10]req_shift_open_date [13:26:10]req_shift_open_date done [13:26:10]produce_requested_data done [13:26:10]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92620,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [13:26:10]process_action_free close_receipt [13:26:10]json_value_free [13:26:10]json_value_free done [13:26:10]process_json_proto returns [13:26:10]Send response to host [13:26:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92620,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [13:26:10]free response buf [13:26:10]execute_script done [13:26:10]execute_script returns [13:26:10]free content buf [13:26:10]Sock 9.Close socket [13:26:10]Sock 9.Thread stoped [13:26:12]OFD Sender: No OFD packet to send [13:26:17]OFD Sender: No OFD packet to send [13:26:22]OFD Sender: No OFD packet to send [13:26:27]OFD Sender: No OFD packet to send [13:26:32]OFD Sender: No OFD packet to send [13:26:37]OFD Sender: No OFD packet to send [13:26:42]OFD Sender: No OFD packet to send [13:26:47]OFD Sender: No OFD packet to send [13:26:52]OFD Sender: No OFD packet to send [13:26:57]OFD Sender: No OFD packet to send [13:27:02]OFD Sender: No OFD packet to send [13:27:07]OFD Sender: No OFD packet to send [13:27:12]OFD Sender: No OFD packet to send [13:27:17]OFD Sender: No OFD packet to send [13:27:22]OFD Sender: No OFD packet to send [13:27:25]accept exits with 8 [13:27:25]New connection [13:27:25]New thread 3066801508 created [13:27:25]Thread 3066658148 joined [13:27:25]Waiting for new connection... [13:27:25] Sock 8.Parse request [13:27:25]Sock 8.Check first char [13:27:25]Sock 8.First char is OK [13:27:25]request: POST /json_proto HTTP/1.0 [13:27:25]Method: POST [13:27:25]URL: /json_proto [13:27:25]Method is POST - this is cgi request [13:27:25]url: /json_proto [13:27:25]query_string will be loaded in cgi processing [13:27:25]execute_cgi json_proto POST (null) [13:27:25]execute_cgi path=json_proto method=POST [13:27:25]POST find Content-Length [13:27:25]Host: 172.17.57.71:8080 [13:27:25]Content-Length: 1123 [13:27:25]Content-Type: application/json [13:27:25] [13:27:25]POST finish read [13:27:25]Found Content-Length = 1123 [13:27:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127513", "tax_sys" : 0, "items" : [ { "code": "4610080727818", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Pamperino kids 8\u0448\u0442", "price" : 25.00, "quantity" : 2.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46177872", "name": "\u0416\u0435\u0432 Orbit \u043F\u043E\u0434\u0443\u0448\u043A\u0438 Citrus", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:25]execute_script... [13:27:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127513", "tax_sys" : 0, "items" : [ { "code": "4610080727818", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Pamperino kids 8\u0448\u0442", "price" : 25.00, "quantity" : 2.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46177872", "name": "\u0416\u0435\u0432 Orbit \u043F\u043E\u0434\u0443\u0448\u043A\u0438 Citrus", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:25]POST & json_proto [13:27:25]process_json_proto [13:27:25]json parsed OK: [13:27:25]protocol is kg_v1.0 [13:27:25]action value=close_receipt [13:27:25]process_action close_receipt [13:27:25]cmd_close_receipt [13:27:25]MH_GetDate [13:27:25]Write to MH i2c: F0 00 00 0F 53 51 [13:27:25]Write i2c OK [13:27:25]MH_I2C_Read... [13:27:25]Read from MH i2c: F0 [13:27:25]MH_I2C_Read... [13:27:25]Read from MH i2c: F0 09 00 [13:27:25]MH_I2C_Read... [13:27:25]Read from MH i2c: F0 09 00 0F 53 00 C5 E0 E6 66 33 3A A4 66 C2 [13:27:25]GetLastDocTimeStamp 1726406773 [13:27:25]current date 1726406853 [13:27:25]FM_GetShiftState [13:27:25]SAM_PROTO_GetShiftState [13:27:25]wFMCommunicate request_size=4 [13:27:25]MH_SAM_APDU [13:27:25]CAPDU: 80 13 01 00 [13:27:25]Write to MH i2c: E2 08 00 10 53 80 13 01 00 00 00 00 00 E0 [13:27:25]Write i2c OK [13:27:25]MH_I2C_Read... [13:27:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:25]Read from MH i2c: E2 [13:27:25]MH_I2C_Read... [13:27:25]Read from MH i2c: E2 0E 00 [13:27:25]MH_I2C_Read... [13:27:25]Read from MH i2c: E2 0E 00 10 53 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 62 [13:27:25]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:27:25]wFMCommunicate OK [13:27:25]SAM_PROTO_GetShiftState done [13:27:25]FM_GetShiftState done [13:27:25]opened in 1726359809 [13:27:25]opened+sec_in_day 1726446209 [13:27:25]quantity*price = 5000 [13:27:25]sum+1 = 5001 [13:27:25]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46177872 Жев Orbit подушки Citrus 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.14 НДС 12% : 13.81 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 69 15.09.2024 13:27 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92621 ФПД: 191199892969985 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T132733&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92621&fm=191199892969985&tin=02508201610067®Number=0000000000091423&sum=13000 0 [13:27:26]StoreToDocumentArchive [13:27:26]shift 507 fd 92621 [13:27:26]save to /storage/0507/doc_00092621 [13:27:26]save last doc name /storage/0507/doc_00092621 to /storage/kkm_last_doc_name [13:27:26]save OK [13:27:26]Clear old archive folders... [13:27:26]ProcessDocumentItem done err = 0, tmpTLVsize=481 [13:27:26]tlvbuf is 01032600 [13:27:26]SAM_PROTO_ClearQueue [13:27:26]wFMCommunicate request_size=4 [13:27:26]MH_SAM_APDU [13:27:26]CAPDU: 80 09 00 00 [13:27:26]Write to MH i2c: E2 08 00 1D 53 80 09 00 00 00 00 00 00 E2 [13:27:26]Write i2c OK [13:27:26]MH_I2C_Read... [13:27:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:27:26]Read from MH i2c: E2 [13:27:26]MH_I2C_Read... [13:27:26]Read from MH i2c: E2 03 00 [13:27:26]MH_I2C_Read... [13:27:26]Read from MH i2c: E2 03 00 1D 53 00 90 00 E4 [13:27:26]RAPDU: 90 00 [13:27:26]wFMCommunicate OK [13:27:26]SAM_PROTO_ClearQueue done [13:27:26]KKMCreateOFDPacket [13:27:26]OFDProtocolAddRootSTLVToBuf [13:27:26]FM_MakeSignedData [13:27:26]FM_MakeSignedData [13:27:26]SAM_PROTO_SignData [13:27:26]wFMCommunicate request_size=4 [13:27:26]MH_SAM_APDU [13:27:26]CAPDU: 80 0D 01 02 [13:27:26]Write to MH i2c: E2 08 00 1E 53 80 0D 01 02 00 00 00 00 EA [13:27:26]Write i2c OK [13:27:26]MH_I2C_Read... [13:27:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:27:26]Read from MH i2c: E2 [13:27:26]MH_I2C_Read... [13:27:26]Read from MH i2c: E2 03 00 [13:27:26]MH_I2C_Read... [13:27:26]Read from MH i2c: E2 03 00 1E 53 00 90 00 E5 [13:27:26]RAPDU: 90 00 [13:27:26]wFMCommunicate OK [13:27:26]wFMCommunicate request_size=255 [13:27:26]MH_SAM_APDU [13:27:26]CAPDU: 80 0D 02 02 FA 03 00 E1 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 31 30 30 38 30 37 32 37 38 31 38 06 04 25 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 50 61 6D 70 65 72 69 6E 6F 20 6B 69 64 73 20 38 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 08 00 34 36 31 37 37 38 37 32 06 04 22 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 [13:27:26]Write to MH i2c: E2 02 01 1F 53 80 0D 02 02 FA 00 03 00 E1 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 31 30 30 38 30 37 32 37 38 31 38 06 04 25 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 50 61 6D 70 65 72 69 6E 6F 20 6B 69 64 73 20 38 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 08 00 34 36 31 37 37 38 37 32 06 04 22 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 00 00 B9 [13:27:26]Write i2c OK [13:27:26]MH_I2C_Read... [13:27:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:27]Read from MH i2c: E2 [13:27:27]MH_I2C_Read... [13:27:27]Read from MH i2c: E2 03 00 [13:27:27]MH_I2C_Read... [13:27:27]Read from MH i2c: E2 03 00 1F 53 00 90 00 E6 [13:27:27]RAPDU: 90 00 [13:27:27]wFMCommunicate OK [13:27:27]wFMCommunicate request_size=240 [13:27:27]MH_SAM_APDU [13:27:27]CAPDU: 80 0D 02 02 EB 74 20 D0 BF D0 BE D0 B4 D1 83 D1 88 D0 BA D0 B8 20 43 69 74 72 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 C5 E0 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CD 69 01 00 35 04 06 00 AD E5 31 B3 9A 01 [13:27:27]Write to MH i2c: E2 F3 00 20 53 80 0D 02 02 EB 00 74 20 D0 BF D0 BE D0 B4 D1 83 D1 88 D0 BA D0 B8 20 43 69 74 72 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 C5 E0 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CD 69 01 00 35 04 06 00 AD E5 31 B3 9A 01 00 00 43 [13:27:27]Write i2c OK [13:27:27]MH_I2C_Read... [13:27:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:27]Read from MH i2c: E2 [13:27:27]MH_I2C_Read... [13:27:27]Read from MH i2c: E2 03 00 [13:27:27]MH_I2C_Read... [13:27:27]Read from MH i2c: E2 03 00 20 53 00 90 00 E7 [13:27:27]RAPDU: 90 00 [13:27:27]wFMCommunicate OK [13:27:27]wFMCommunicate request_size=4 [13:27:27]MH_SAM_APDU [13:27:27]CAPDU: 80 0D 03 02 [13:27:27]Write to MH i2c: E2 08 00 21 53 80 0D 03 02 00 00 00 00 EF [13:27:27]Write i2c OK [13:27:27]MH_I2C_Read... [13:27:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:27]Read from MH i2c: E2 [13:27:27]MH_I2C_Read... [13:27:27]Read from MH i2c: E2 0B 00 [13:27:27]MH_I2C_Read... [13:27:27]Read from MH i2c: E2 0B 00 21 53 00 2A 04 6B 8F 9E CD 89 B5 90 00 C1 [13:27:27]RAPDU: 2A 04 6B 8F 9E CD 89 B5 90 00 [13:27:27]wFMCommunicate OK [13:27:27]SAM_PROTO_SignData done [13:27:27]FM_MakeSignedData done [13:27:27]CreateOFDProtocolMessage [13:27:27]wFMCommunicate request_size=4 [13:27:27]MH_SAM_APDU [13:27:27]CAPDU: 80 11 00 00 [13:27:27]Write to MH i2c: E2 08 00 22 53 80 11 00 00 00 00 00 00 EF [13:27:27]Write i2c OK [13:27:27]MH_I2C_Read... [13:27:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:27]Read from MH i2c: E2 [13:27:27]MH_I2C_Read... [13:27:27]Read from MH i2c: E2 17 00 [13:27:27]MH_I2C_Read... [13:27:27]Read from MH i2c: E2 17 00 22 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 46 [13:27:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:27:27]wFMCommunicate OK [13:27:27]CreateOFDProtocolMessage done [13:27:27]OFDSenderStorePacket 92621 [13:27:27]StoreOFDPacket docnum=92621 [13:27:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 F5 01 00 00 21 5F ED 01 43 38 5A 03 01 00 03 00 E1 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 31 30 30 38 30 37 32 37 38 31 38 06 04 25 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 50 61 6D 70 65 72 69 6E 6F 20 6B 69 64 73 20 38 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 08 00 34 36 31 37 37 38 37 32 06 04 22 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 BF D0 BE D0 B4 D1 83 D1 88 D0 BA D0 B8 20 43 69 74 72 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 C5 E0 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CD 69 01 00 35 04 06 00 AD E5 31 B3 9A 01 2A 04 6B 8F 9E CD 89 B5 [13:27:27]CheckFolder [13:27:27]dirname=/storage/ofd_packets [13:27:27]CheckFolder done [13:27:27]ProducePacketName [13:27:27]name=ofd_packets/00092621 [13:27:27]NVStorageSaveData ofd_packets/00092621 [13:27:27]File name is /storage/ofd_packets/00092621 [13:27:27]Write 531 bytes [13:27:27]NVStorageSaveData done [13:27:27]OFDSenderStorePacket done [13:27:27]KKMCreateOFDPacket done [13:27:27]NVStorageSaveData kkm_last_timestamp [13:27:27]File name is /storage/kkm_last_timestamp [13:27:27]Write 4 bytes [13:27:27]NVStorageSaveData done [13:27:27]ExternCall_PrintAddStr [13:27:27]wPrintStart [13:27:27]Write to MH i2c: 01 00 00 23 53 76 [13:27:27]Write i2c OK [13:27:27]MH_I2C_Read... [13:27:27]Read from MH i2c: 01 [13:27:27]MH_I2C_Read... [13:27:27]Read from MH i2c: 01 07 00 [13:27:27]MH_I2C_Read... [13:27:27]Read from MH i2c: 01 07 00 23 53 00 00 00 00 00 FF 0F 8B [13:27:27]RasterBufferAndPrint [13:27:27]line Счет N : (3)127513 [13:27:27]line ИНН: 02508201610067 [13:27:27]line Контрольно-Кассовый Чек [13:27:27]line ПРОДАЖА [13:27:27]line Товар: 4610080727818 [13:27:27]line Салфетки Pamperino kids 8шт [13:27:27]line 2.000 * 25.00 [13:27:27]line = 50.00 [13:27:27]line НДС 12% НСП 1% [13:27:27]line > о реализуемом товаре [13:27:27]line Товар: 4700000160211 [13:27:27]line Вода Легенда 0,5л [13:27:27]line 1.000 * 40.00 [13:27:27]line = 40.00 [13:27:27]line НДС 12% НСП 1% [13:27:27]line > о реализуемом товаре [13:27:27]line Товар: 46177872 [13:27:27]line Жев Orbit подушки Citrus [13:27:27]line 1.000 * 40.00 [13:27:27]line = 40.00 [13:27:27]line НДС 12% НСП 1% [13:27:27]line > о реализуемом товаре [13:27:27]line ИТОГО: 130.00 [13:27:27]line НСП 1% : 1.14 [13:27:27]line НДС 12% : 13.81 [13:27:27]line Наличными: 130.00 [13:27:27]line Безнал.: 0.00 [13:27:27]line Место: АЗС № 5 "Партнер Нефть" [13:27:27]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [13:27:27]line СНО: Общий режим [13:27:27]line Чек 69 15.09.2024 13:27 [13:27:27]line Смена: 507 ФФД: 1.0 [13:27:27]line ЗНМ: 03000000022 [13:27:27]line РНМ: 0000000000091423 [13:27:27]line Версия ККМ: 001 [13:27:27]line ФМ: 0000000000874692 [13:27:27]line ФД: 92621 [13:27:27]line ФПД: 191199892969985 [13:27:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T132733&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92621&fm=191199892969985&tin=02508201610067®Number=0000000000091423&sum=13000 [13:27:27]line 0 [13:27:27]written 0, free lines is 4095 [13:27:27]OFD Sender: Processing packet 92621 [packets to send 63, broken 62] [13:27:27]ProducePacketName [13:27:27]name=ofd_packets/00092621 [13:27:27]OFD Sender: To server: pG, [13:27:27]CommunicateWithHost lk.salyk.kg:30040 [13:27:27]ConnectInit lk.salyk.kg [13:27:27]Connected sock=10 [13:27:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 F5 01 00 00 21 5F ED 01 43 38 5A 03 01 00 03 00 E1 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 31 30 30 38 30 37 32 37 38 31 38 06 04 25 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 50 61 6D 70 65 72 69 6E 6F 20 6B 69 64 73 20 38 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 08 00 34 36 31 37 37 38 37 32 06 04 22 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 BF D0 BE D0 B4 D1 83 D1 88 D0 BA D0 B8 20 43 69 74 72 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 C5 E0 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CD 69 01 00 35 04 06 00 AD E5 31 B3 9A 01 2A 04 6B 8F 9E CD 89 B5 [13:27:27]Write to MH i2c: 01 00 00 57 53 AA [13:27:27]Write i2c OK [13:27:27]MH_I2C_Read... [13:27:27]Read from MH i2c: 01 [13:27:27]MH_I2C_Read... [13:27:27]Read from MH i2c: 01 07 00 [13:27:27]MH_I2C_Read... [13:27:27]Read from MH i2c: 01 07 00 57 53 00 00 00 00 00 93 0C 50 [13:27:27]RasterBufferAndPrint [13:27:27]line [13:27:27]line [13:27:27]line [13:27:27]line [13:27:27]line [13:27:27]written 0, free lines is 3227 [13:27:27]MH_Cut [13:27:27]Write to MH i2c: D1 01 00 5E 53 01 83 [13:27:27]Write i2c OK [13:27:27]MH_I2C_Read... [13:27:27]Read from MH i2c: D1 [13:27:27]MH_I2C_Read... [13:27:27]Read from MH i2c: D1 01 00 [13:27:27]MH_I2C_Read... [13:27:27]Read from MH i2c: D1 01 00 5E 53 00 82 [13:27:27]Write to MH i2c: 01 00 00 5F 53 B2 [13:27:27]Write i2c OK [13:27:27]MH_I2C_Read... [13:27:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 0B 6D 47 00 95 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CD 69 01 00 F4 03 04 00 3E 89 E6 66 B6 04 01 00 00 2F 35 2E 58 E0 BE C2 E1 [13:27:28]CommunicateWithHost err = 0 [13:27:28]CheckOFDResponse [13:27:28]1017 (14) - 77093643461234 [13:27:28]1041 (16) - 0000000000874692 [13:27:28]1040 (4) - 92621 [13:27:28]1012 (4) - 15.09.2024 07:14 [13:27:28]1206 (1) - 0 [13:27:28]OFD Sender: Remove packet 92621 [13:27:28]ProducePacketName [13:27:28]name=ofd_packets/00092621 [13:27:28]NVStorageDeleteData [13:27:28]OFD Sender: No OFD packet to send [13:27:28]*** Cut start [13:27:28]*** Purtial cut [13:27:28]*** Stage 1: CUTSNS_PIN = 1 [13:27:30]Read from MH i2c: 01 [13:27:30]MH_I2C_Read... [13:27:30]*** Stop cut motor [13:27:30]*** Cut end [13:27:30]Read from MH i2c: 01 07 00 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: 01 07 00 5F 53 00 00 00 00 00 FF 0F C7 [13:27:30]process_action close_receipt done [13:27:30]requested_data is exist [13:27:30]produce_requested_data [13:27:30]requested_item fm.sn is exist - process it [13:27:30]wFMCommunicate request_size=4 [13:27:30]MH_SAM_APDU [13:27:30]CAPDU: 80 11 00 00 [13:27:30]Write to MH i2c: E2 08 00 60 53 80 11 00 00 00 00 00 00 2D [13:27:30]Write i2c OK [13:27:30]MH_I2C_Read... [13:27:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:30]Read from MH i2c: E2 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: E2 17 00 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: E2 17 00 60 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 84 [13:27:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:27:30]wFMCommunicate OK [13:27:30]requested_item fd.num is exist - process it [13:27:30]SAM_PROTO_GetFieldsCounters [13:27:30]wFMCommunicate request_size=4 [13:27:30]MH_SAM_APDU [13:27:30]CAPDU: 80 13 00 00 [13:27:30]Write to MH i2c: E2 08 00 61 53 80 13 00 00 00 00 00 00 30 [13:27:30]Write i2c OK [13:27:30]MH_I2C_Read... [13:27:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:30]Read from MH i2c: E2 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: E2 62 00 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: E2 62 00 61 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 CD 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [13:27:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 CD 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:27:30]wFMCommunicate OK [13:27:30]SAM_PROTO_GetFieldsCounters done [13:27:30]requested_item shift.num is exist - process it [13:27:30]requested_item shift.opened is exist - process it [13:27:30]req_shift_opened [13:27:30]FM_GetShiftState [13:27:30]SAM_PROTO_GetShiftState [13:27:30]wFMCommunicate request_size=4 [13:27:30]MH_SAM_APDU [13:27:30]CAPDU: 80 13 01 00 [13:27:30]Write to MH i2c: E2 08 00 62 53 80 13 01 00 00 00 00 00 32 [13:27:30]Write i2c OK [13:27:30]MH_I2C_Read... [13:27:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:30]Read from MH i2c: E2 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: E2 0E 00 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: E2 0E 00 62 53 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 B4 [13:27:30]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:27:30]wFMCommunicate OK [13:27:30]SAM_PROTO_GetShiftState done [13:27:30]FM_GetShiftState done [13:27:30]req_shift_opened done [13:27:30]requested_item shift.open_date is exist - process it [13:27:30]req_shift_open_date [13:27:30]req_shift_open_date done [13:27:30]produce_requested_data done [13:27:30]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92621,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [13:27:30]process_action_free close_receipt [13:27:30]json_value_free [13:27:30]json_value_free done [13:27:30]process_json_proto returns [13:27:30]Send response to host [13:27:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92621,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [13:27:30]free response buf [13:27:30]execute_script done [13:27:30]execute_script returns [13:27:30]free content buf [13:27:30]Sock 8.Close socket [13:27:30]Sock 8.Thread stoped [13:27:33]OFD Sender: No OFD packet to send [13:27:38]OFD Sender: No OFD packet to send [13:27:38]accept exits with 9 [13:27:38]New connection [13:27:38]New thread 3066658148 created [13:27:38]Thread 3066801508 joined [13:27:38]Waiting for new connection... [13:27:38] Sock 9.Parse request [13:27:38]Sock 9.Check first char [13:27:38]Sock 9.First char is OK [13:27:38]request: POST /json_proto HTTP/1.0 [13:27:38]Method: POST [13:27:38]URL: /json_proto [13:27:38]Method is POST - this is cgi request [13:27:38]url: /json_proto [13:27:38]query_string will be loaded in cgi processing [13:27:38]execute_cgi json_proto POST (null) [13:27:38]execute_cgi path=json_proto method=POST [13:27:38]POST find Content-Length [13:27:38]Host: 172.17.57.71:8080 [13:27:38]Content-Length: 632 [13:27:38]Content-Type: application/json [13:27:38] [13:27:38]POST finish read [13:27:38]Found Content-Length = 632 [13:27:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127514", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:38]execute_script... [13:27:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127514", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:38]POST & json_proto [13:27:38]process_json_proto [13:27:38]json parsed OK: [13:27:38]protocol is kg_v1.0 [13:27:38]action value=close_receipt [13:27:38]process_action close_receipt [13:27:38]cmd_close_receipt [13:27:38]MH_GetDate [13:27:38]Write to MH i2c: F0 00 00 63 53 A5 [13:27:38]Write i2c OK [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: F0 [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: F0 09 00 [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: F0 09 00 63 53 00 D3 E0 E6 66 33 3A A4 66 24 [13:27:38]GetLastDocTimeStamp 1726406853 [13:27:38]current date 1726406867 [13:27:38]FM_GetShiftState [13:27:38]SAM_PROTO_GetShiftState [13:27:38]wFMCommunicate request_size=4 [13:27:38]MH_SAM_APDU [13:27:38]CAPDU: 80 13 01 00 [13:27:38]Write to MH i2c: E2 08 00 64 53 80 13 01 00 00 00 00 00 34 [13:27:38]Write i2c OK [13:27:38]MH_I2C_Read... [13:27:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:38]Read from MH i2c: E2 [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: E2 0E 00 [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: E2 0E 00 64 53 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 B6 [13:27:38]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:27:38]wFMCommunicate OK [13:27:38]SAM_PROTO_GetShiftState done [13:27:38]FM_GetShiftState done [13:27:38]opened in 1726359809 [13:27:38]opened+sec_in_day 1726446209 [13:27:38]quantity*price = 6000 [13:27:38]sum+1 = 6001 [13:27:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 70 15.09.2024 13:27 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92622 ФПД: 45218573939203 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T132747&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92622&fm=45218573939203&tin=02508201610067®Number=0000000000091423&sum=6000 0 [13:27:40]StoreToDocumentArchive [13:27:40]shift 507 fd 92622 [13:27:40]save to /storage/0507/doc_00092622 [13:27:40]save last doc name /storage/0507/doc_00092622 to /storage/kkm_last_doc_name [13:27:40]save OK [13:27:40]Clear old archive folders... [13:27:40]ProcessDocumentItem done err = 0, tmpTLVsize=271 [13:27:40]tlvbuf is 01014360 [13:27:40]SAM_PROTO_ClearQueue [13:27:40]wFMCommunicate request_size=4 [13:27:40]MH_SAM_APDU [13:27:40]CAPDU: 80 09 00 00 [13:27:40]Write to MH i2c: E2 08 00 71 53 80 09 00 00 00 00 00 00 36 [13:27:40]Write i2c OK [13:27:40]MH_I2C_Read... [13:27:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:27:40]Read from MH i2c: E2 [13:27:40]MH_I2C_Read... [13:27:40]Read from MH i2c: E2 03 00 [13:27:40]MH_I2C_Read... [13:27:40]Read from MH i2c: E2 03 00 71 53 00 90 00 38 [13:27:40]RAPDU: 90 00 [13:27:40]wFMCommunicate OK [13:27:40]SAM_PROTO_ClearQueue done [13:27:40]KKMCreateOFDPacket [13:27:40]OFDProtocolAddRootSTLVToBuf [13:27:40]FM_MakeSignedData [13:27:40]FM_MakeSignedData [13:27:40]SAM_PROTO_SignData [13:27:40]wFMCommunicate request_size=4 [13:27:40]MH_SAM_APDU [13:27:40]CAPDU: 80 0D 01 02 [13:27:40]Write to MH i2c: E2 08 00 72 53 80 0D 01 02 00 00 00 00 3E [13:27:40]Write i2c OK [13:27:40]MH_I2C_Read... [13:27:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:27:40]Read from MH i2c: E2 [13:27:40]MH_I2C_Read... [13:27:40]Read from MH i2c: E2 03 00 [13:27:40]MH_I2C_Read... [13:27:40]Read from MH i2c: E2 03 00 72 53 00 90 00 39 [13:27:40]RAPDU: 90 00 [13:27:40]wFMCommunicate OK [13:27:40]wFMCommunicate request_size=255 [13:27:40]MH_SAM_APDU [13:27:40]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 D3 E0 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 [13:27:40]Write to MH i2c: E2 02 01 73 53 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 D3 E0 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 A8 [13:27:40]Write i2c OK [13:27:40]MH_I2C_Read... [13:27:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:40]Read from MH i2c: E2 [13:27:40]MH_I2C_Read... [13:27:40]Read from MH i2c: E2 03 00 [13:27:40]MH_I2C_Read... [13:27:40]Read from MH i2c: E2 03 00 73 53 00 90 00 3A [13:27:40]RAPDU: 90 00 [13:27:40]wFMCommunicate OK [13:27:40]wFMCommunicate request_size=30 [13:27:40]MH_SAM_APDU [13:27:40]CAPDU: 80 0D 02 02 19 30 38 37 34 36 39 32 10 04 04 00 CE 69 01 00 35 04 06 00 29 20 45 09 72 03 [13:27:40]Write to MH i2c: E2 21 00 74 53 80 0D 02 02 19 00 30 38 37 34 36 39 32 10 04 04 00 CE 69 01 00 35 04 06 00 29 20 45 09 72 03 00 00 82 [13:27:40]Write i2c OK [13:27:40]MH_I2C_Read... [13:27:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:40]Read from MH i2c: E2 [13:27:40]MH_I2C_Read... [13:27:40]Read from MH i2c: E2 03 00 [13:27:40]MH_I2C_Read... [13:27:40]Read from MH i2c: E2 03 00 74 53 00 90 00 3B [13:27:40]RAPDU: 90 00 [13:27:40]wFMCommunicate OK [13:27:40]wFMCommunicate request_size=4 [13:27:40]MH_SAM_APDU [13:27:40]CAPDU: 80 0D 03 02 [13:27:40]Write to MH i2c: E2 08 00 75 53 80 0D 03 02 00 00 00 00 43 [13:27:40]Write i2c OK [13:27:40]MH_I2C_Read... [13:27:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:40]Read from MH i2c: E2 [13:27:40]MH_I2C_Read... [13:27:40]Read from MH i2c: E2 0B 00 [13:27:40]MH_I2C_Read... [13:27:40]Read from MH i2c: E2 0B 00 75 53 00 71 56 B8 1B 3E 53 9A D2 90 00 DB [13:27:40]RAPDU: 71 56 B8 1B 3E 53 9A D2 90 00 [13:27:40]wFMCommunicate OK [13:27:40]SAM_PROTO_SignData done [13:27:40]FM_MakeSignedData done [13:27:40]CreateOFDProtocolMessage [13:27:40]wFMCommunicate request_size=4 [13:27:40]MH_SAM_APDU [13:27:40]CAPDU: 80 11 00 00 [13:27:40]Write to MH i2c: E2 08 00 76 53 80 11 00 00 00 00 00 00 43 [13:27:40]Write i2c OK [13:27:40]MH_I2C_Read... [13:27:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:40]Read from MH i2c: E2 [13:27:40]MH_I2C_Read... [13:27:40]Read from MH i2c: E2 17 00 [13:27:40]MH_I2C_Read... [13:27:40]Read from MH i2c: E2 17 00 76 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 9A [13:27:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:27:40]wFMCommunicate OK [13:27:40]CreateOFDProtocolMessage done [13:27:40]OFDSenderStorePacket 92622 [13:27:40]StoreOFDPacket docnum=92622 [13:27:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 75 FF 1B 01 AF DE 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 D3 E0 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CE 69 01 00 35 04 06 00 29 20 45 09 72 03 71 56 B8 1B 3E 53 9A D2 [13:27:40]CheckFolder [13:27:40]dirname=/storage/ofd_packets [13:27:40]CheckFolder done [13:27:40]ProducePacketName [13:27:40]name=ofd_packets/00092622 [13:27:40]NVStorageSaveData ofd_packets/00092622 [13:27:40]File name is /storage/ofd_packets/00092622 [13:27:40]Write 321 bytes [13:27:40]NVStorageSaveData done [13:27:40]OFDSenderStorePacket done [13:27:40]KKMCreateOFDPacket done [13:27:40]NVStorageSaveData kkm_last_timestamp [13:27:40]File name is /storage/kkm_last_timestamp [13:27:40]Write 4 bytes [13:27:40]NVStorageSaveData done [13:27:40]ExternCall_PrintAddStr [13:27:40]wPrintStart [13:27:40]Write to MH i2c: 01 00 00 77 53 CA [13:27:40]Write i2c OK [13:27:40]MH_I2C_Read... [13:27:40]Read from MH i2c: 01 [13:27:40]MH_I2C_Read... [13:27:40]Read from MH i2c: 01 07 00 [13:27:40]MH_I2C_Read... [13:27:40]Read from MH i2c: 01 07 00 77 53 00 00 00 00 00 FF 0F DF [13:27:40]RasterBufferAndPrint [13:27:40]line Счет N : (3)127514 [13:27:40]line ИНН: 02508201610067 [13:27:40]line Контрольно-Кассовый Чек [13:27:40]line ПРОДАЖА [13:27:40]line Товар: 4700000160204 [13:27:40]line Вода Легенда 1,5л [13:27:40]line 1.000 * 60.00 [13:27:40]line = 60.00 [13:27:40]line НДС 12% НСП 1% [13:27:40]line > о реализуемом товаре [13:27:40]line ИТОГО: 60.00 [13:27:40]line НСП 1% : 0.53 [13:27:40]line НДС 12% : 6.37 [13:27:40]line Наличными: 60.00 [13:27:40]line Безнал.: 0.00 [13:27:40]line Место: АЗС № 5 "Партнер Нефть" [13:27:40]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [13:27:40]line СНО: Общий режим [13:27:40]line Чек 70 15.09.2024 13:27 [13:27:40]line Смена: 507 ФФД: 1.0 [13:27:40]line ЗНМ: 03000000022 [13:27:40]line РНМ: 0000000000091423 [13:27:40]line Версия ККМ: 001 [13:27:40]line ФМ: 0000000000874692 [13:27:40]line ФД: 92622 [13:27:40]line ФПД: 45218573939203 [13:27:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T132747&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92622&fm=45218573939203&tin=02508201610067®Number=0000000000091423&sum=6000 [13:27:40]line 0 [13:27:40]written 0, free lines is 4095 [13:27:40]OFD Sender: Processing packet 92622 [packets to send 63, broken 62] [13:27:40]ProducePacketName [13:27:40]name=ofd_packets/00092622 [13:27:40]OFD Sender: To server: pG, [13:27:40]CommunicateWithHost lk.salyk.kg:30040 [13:27:40]ConnectInit lk.salyk.kg [13:27:40]Connected sock=11 [13:27:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 75 FF 1B 01 AF DE 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 D3 E0 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CE 69 01 00 35 04 06 00 29 20 45 09 72 03 71 56 B8 1B 3E 53 9A D2 [13:27:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 BA 43 47 00 75 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CE 69 01 00 F4 03 04 00 4B 89 E6 66 B6 04 01 00 00 DD E3 0C 97 39 52 EF 81 [13:27:40]CommunicateWithHost err = 0 [13:27:40]CheckOFDResponse [13:27:40]1017 (14) - 77093643461234 [13:27:40]1041 (16) - 0000000000874692 [13:27:40]1040 (4) - 92622 [13:27:40]1012 (4) - 15.09.2024 07:14 [13:27:40]1206 (1) - 0 [13:27:40]OFD Sender: Remove packet 92622 [13:27:40]ProducePacketName [13:27:40]name=ofd_packets/00092622 [13:27:40]NVStorageDeleteData [13:27:41]Write to MH i2c: 01 00 00 9F 53 F2 [13:27:41]Write i2c OK [13:27:41]MH_I2C_Read... [13:27:41]Read from MH i2c: 01 [13:27:41]MH_I2C_Read... [13:27:41]Read from MH i2c: 01 07 00 [13:27:41]MH_I2C_Read... [13:27:41]Read from MH i2c: 01 07 00 9F 53 00 00 00 00 00 2B 0D 31 [13:27:41]RasterBufferAndPrint [13:27:41]line [13:27:41]line [13:27:41]line [13:27:41]line [13:27:41]line [13:27:41]written 0, free lines is 3382 [13:27:41]MH_Cut [13:27:41]Write to MH i2c: D1 01 00 A6 53 01 CB [13:27:41]Write i2c OK [13:27:41]MH_I2C_Read... [13:27:41]Read from MH i2c: D1 [13:27:41]MH_I2C_Read... [13:27:41]Read from MH i2c: D1 01 00 [13:27:41]MH_I2C_Read... [13:27:41]Read from MH i2c: D1 01 00 A6 53 00 CA [13:27:41]Write to MH i2c: 01 00 00 A7 53 FA [13:27:41]Write i2c OK [13:27:41]MH_I2C_Read... [13:27:41]OFD Sender: No OFD packet to send [13:27:41]*** Cut start [13:27:41]*** Purtial cut [13:27:41]*** Stage 1: CUTSNS_PIN = 1 [13:27:43]Read from MH i2c: 01 [13:27:43]MH_I2C_Read... [13:27:43]*** Stop cut motor [13:27:43]*** Cut end [13:27:43]Read from MH i2c: 01 07 00 [13:27:43]MH_I2C_Read... [13:27:43]Read from MH i2c: 01 07 00 A7 53 00 00 00 00 00 FF 0F 0F [13:27:43]process_action close_receipt done [13:27:43]requested_data is exist [13:27:43]produce_requested_data [13:27:43]requested_item fm.sn is exist - process it [13:27:43]wFMCommunicate request_size=4 [13:27:43]MH_SAM_APDU [13:27:43]CAPDU: 80 11 00 00 [13:27:43]Write to MH i2c: E2 08 00 A8 53 80 11 00 00 00 00 00 00 75 [13:27:43]Write i2c OK [13:27:43]MH_I2C_Read... [13:27:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:43]Read from MH i2c: E2 [13:27:43]MH_I2C_Read... [13:27:43]Read from MH i2c: E2 17 00 [13:27:43]MH_I2C_Read... [13:27:43]Read from MH i2c: E2 17 00 A8 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 CC [13:27:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:27:43]wFMCommunicate OK [13:27:43]requested_item fd.num is exist - process it [13:27:43]SAM_PROTO_GetFieldsCounters [13:27:43]wFMCommunicate request_size=4 [13:27:43]MH_SAM_APDU [13:27:43]CAPDU: 80 13 00 00 [13:27:43]Write to MH i2c: E2 08 00 A9 53 80 13 00 00 00 00 00 00 78 [13:27:43]Write i2c OK [13:27:43]MH_I2C_Read... [13:27:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:43]Read from MH i2c: E2 [13:27:43]MH_I2C_Read... [13:27:43]Read from MH i2c: E2 62 00 [13:27:43]MH_I2C_Read... [13:27:43]Read from MH i2c: E2 62 00 A9 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 CE 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [13:27:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 CE 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:27:43]wFMCommunicate OK [13:27:43]SAM_PROTO_GetFieldsCounters done [13:27:43]requested_item shift.num is exist - process it [13:27:43]requested_item shift.opened is exist - process it [13:27:43]req_shift_opened [13:27:43]FM_GetShiftState [13:27:43]SAM_PROTO_GetShiftState [13:27:43]wFMCommunicate request_size=4 [13:27:43]MH_SAM_APDU [13:27:43]CAPDU: 80 13 01 00 [13:27:43]Write to MH i2c: E2 08 00 AA 53 80 13 01 00 00 00 00 00 7A [13:27:43]Write i2c OK [13:27:43]MH_I2C_Read... [13:27:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:44]Read from MH i2c: E2 [13:27:44]MH_I2C_Read... [13:27:44]Read from MH i2c: E2 0E 00 [13:27:44]MH_I2C_Read... [13:27:44]Read from MH i2c: E2 0E 00 AA 53 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 FC [13:27:44]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:27:44]wFMCommunicate OK [13:27:44]SAM_PROTO_GetShiftState done [13:27:44]FM_GetShiftState done [13:27:44]req_shift_opened done [13:27:44]requested_item shift.open_date is exist - process it [13:27:44]req_shift_open_date [13:27:44]req_shift_open_date done [13:27:44]produce_requested_data done [13:27:44]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92622,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [13:27:44]process_action_free close_receipt [13:27:44]json_value_free [13:27:44]json_value_free done [13:27:44]process_json_proto returns [13:27:44]Send response to host [13:27:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92622,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [13:27:44]free response buf [13:27:44]execute_script done [13:27:44]execute_script returns [13:27:44]free content buf [13:27:44]Sock 9.Close socket [13:27:44]Sock 9.Thread stoped [13:27:46]OFD Sender: No OFD packet to send [13:27:51]OFD Sender: No OFD packet to send [13:27:56]OFD Sender: No OFD packet to send [13:28:01]OFD Sender: No OFD packet to send [13:28:06]OFD Sender: No OFD packet to send [13:28:11]OFD Sender: No OFD packet to send [13:28:16]OFD Sender: No OFD packet to send [13:28:21]OFD Sender: No OFD packet to send [13:28:26]OFD Sender: No OFD packet to send [13:28:31]OFD Sender: No OFD packet to send [13:28:36]OFD Sender: No OFD packet to send [13:28:41]OFD Sender: No OFD packet to send [13:28:46]OFD Sender: No OFD packet to send [13:28:50]accept exits with 8 [13:28:50]New connection [13:28:50]New thread 3066801508 created [13:28:50]Thread 3066658148 joined [13:28:50]Waiting for new connection... [13:28:50] Sock 8.Parse request [13:28:50]Sock 8.Check first char [13:28:50]Sock 8.First char is OK [13:28:50]request: POST /json_proto HTTP/1.0 [13:28:50]Method: POST [13:28:50]URL: /json_proto [13:28:50]Method is POST - this is cgi request [13:28:50]url: /json_proto [13:28:50]query_string will be loaded in cgi processing [13:28:50]execute_cgi json_proto POST (null) [13:28:50]execute_cgi path=json_proto method=POST [13:28:50]POST find Content-Length [13:28:50]Host: 172.17.57.71:8080 [13:28:50]Content-Length: 1128 [13:28:50]Content-Type: application/json [13:28:50] [13:28:50]POST finish read [13:28:50]Found Content-Length = 1128 [13:28:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127515", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000790", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 309.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:50]execute_script... [13:28:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127515", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000790", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 309.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:50]POST & json_proto [13:28:50]process_json_proto [13:28:50]json parsed OK: [13:28:50]protocol is kg_v1.0 [13:28:50]action value=close_receipt [13:28:50]process_action close_receipt [13:28:50]cmd_close_receipt [13:28:50]MH_GetDate [13:28:50]Write to MH i2c: F0 00 00 AB 53 ED [13:28:50]Write i2c OK [13:28:50]MH_I2C_Read... [13:28:50]Read from MH i2c: F0 [13:28:50]MH_I2C_Read... [13:28:50]Read from MH i2c: F0 09 00 [13:28:50]MH_I2C_Read... [13:28:50]Read from MH i2c: F0 09 00 AB 53 00 1B E1 E6 66 33 3A A4 66 B5 [13:28:50]GetLastDocTimeStamp 1726406867 [13:28:50]current date 1726406939 [13:28:50]FM_GetShiftState [13:28:50]SAM_PROTO_GetShiftState [13:28:50]wFMCommunicate request_size=4 [13:28:50]MH_SAM_APDU [13:28:50]CAPDU: 80 13 01 00 [13:28:50]Write to MH i2c: E2 08 00 AC 53 80 13 01 00 00 00 00 00 7C [13:28:50]Write i2c OK [13:28:50]MH_I2C_Read... [13:28:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:50]Read from MH i2c: E2 [13:28:50]MH_I2C_Read... [13:28:50]Read from MH i2c: E2 0E 00 [13:28:50]MH_I2C_Read... [13:28:50]Read from MH i2c: E2 0E 00 AC 53 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 FE [13:28:50]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:28:50]wFMCommunicate OK [13:28:50]SAM_PROTO_GetShiftState done [13:28:50]FM_GetShiftState done [13:28:50]opened in 1726359809 [13:28:50]opened+sec_in_day 1726446209 [13:28:50]quantity*price = 8000 [13:28:50]sum+1 = 8001 [13:28:50]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 47803152 Сигареты Mevius Revo 1.000 * 159.00 = 159.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065000790 Шок M&M`s с арахисом 45г 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 309.00 НСП 1% : 2.74 НДС 12% : 32.81 Наличными: 309.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 71 15.09.2024 13:28 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92623 ФПД: 241339161280266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T132859&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92623&fm=241339161280266&tin=02508201610067®Number=0000000000091423&sum=30900 0 [13:28:51]StoreToDocumentArchive [13:28:51]shift 507 fd 92623 [13:28:51]save to /storage/0507/doc_00092623 [13:28:51]save last doc name /storage/0507/doc_00092623 to /storage/kkm_last_doc_name [13:28:51]save OK [13:28:51]Clear old archive folders... [13:28:51]ProcessDocumentItem done err = 0, tmpTLVsize=475 [13:28:51]tlvbuf is 00F9FA30 [13:28:51]SAM_PROTO_ClearQueue [13:28:51]wFMCommunicate request_size=4 [13:28:51]MH_SAM_APDU [13:28:51]CAPDU: 80 09 00 00 [13:28:51]Write to MH i2c: E2 08 00 B9 53 80 09 00 00 00 00 00 00 7E [13:28:51]Write i2c OK [13:28:51]MH_I2C_Read... [13:28:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:28:51]Read from MH i2c: E2 [13:28:51]MH_I2C_Read... [13:28:51]Read from MH i2c: E2 03 00 [13:28:51]MH_I2C_Read... [13:28:51]Read from MH i2c: E2 03 00 B9 53 00 90 00 80 [13:28:51]RAPDU: 90 00 [13:28:51]wFMCommunicate OK [13:28:51]SAM_PROTO_ClearQueue done [13:28:51]KKMCreateOFDPacket [13:28:51]OFDProtocolAddRootSTLVToBuf [13:28:51]FM_MakeSignedData [13:28:51]FM_MakeSignedData [13:28:51]SAM_PROTO_SignData [13:28:51]wFMCommunicate request_size=4 [13:28:51]MH_SAM_APDU [13:28:51]CAPDU: 80 0D 01 02 [13:28:51]Write to MH i2c: E2 08 00 BA 53 80 0D 01 02 00 00 00 00 86 [13:28:51]Write i2c OK [13:28:51]MH_I2C_Read... [13:28:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:28:51]Read from MH i2c: E2 [13:28:51]MH_I2C_Read... [13:28:51]Read from MH i2c: E2 03 00 [13:28:51]MH_I2C_Read... [13:28:51]Read from MH i2c: E2 03 00 BA 53 00 90 00 81 [13:28:51]RAPDU: 90 00 [13:28:51]wFMCommunicate OK [13:28:51]wFMCommunicate request_size=255 [13:28:51]MH_SAM_APDU [13:28:51]CAPDU: 80 0D 02 02 FA 03 00 DB 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 [13:28:51]Write to MH i2c: E2 02 01 BB 53 80 0D 02 02 FA 00 03 00 DB 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 00 00 39 [13:28:52]Write i2c OK [13:28:52]MH_I2C_Read... [13:28:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:52]Read from MH i2c: E2 [13:28:52]MH_I2C_Read... [13:28:52]Read from MH i2c: E2 03 00 [13:28:52]MH_I2C_Read... [13:28:52]Read from MH i2c: E2 03 00 BB 53 00 90 00 82 [13:28:52]RAPDU: 90 00 [13:28:52]wFMCommunicate OK [13:28:52]wFMCommunicate request_size=234 [13:28:52]MH_SAM_APDU [13:28:52]CAPDU: 80 0D 02 02 E5 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 78 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 0C 00 00 00 00 07 04 06 00 B4 78 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 1B E1 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CF 69 01 00 35 04 06 00 DB 7F 26 FA 7F 0A [13:28:52]Write to MH i2c: E2 ED 00 BC 53 80 0D 02 02 E5 00 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 78 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 0C 00 00 00 00 07 04 06 00 B4 78 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 1B E1 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CF 69 01 00 35 04 06 00 DB 7F 26 FA 7F 0A 00 00 68 [13:28:52]Write i2c OK [13:28:52]MH_I2C_Read... [13:28:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:52]Read from MH i2c: E2 [13:28:52]MH_I2C_Read... [13:28:52]Read from MH i2c: E2 03 00 [13:28:52]MH_I2C_Read... [13:28:52]Read from MH i2c: E2 03 00 BC 53 00 90 00 83 [13:28:52]RAPDU: 90 00 [13:28:52]wFMCommunicate OK [13:28:52]wFMCommunicate request_size=4 [13:28:52]MH_SAM_APDU [13:28:52]CAPDU: 80 0D 03 02 [13:28:52]Write to MH i2c: E2 08 00 BD 53 80 0D 03 02 00 00 00 00 8B [13:28:52]Write i2c OK [13:28:52]MH_I2C_Read... [13:28:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:28:52]Read from MH i2c: E2 [13:28:52]MH_I2C_Read... [13:28:52]Read from MH i2c: E2 0B 00 [13:28:52]MH_I2C_Read... [13:28:52]Read from MH i2c: E2 0B 00 BD 53 00 8F 4B B2 71 1A 8B DD 41 90 00 4C [13:28:52]RAPDU: 8F 4B B2 71 1A 8B DD 41 90 00 [13:28:52]wFMCommunicate OK [13:28:52]SAM_PROTO_SignData done [13:28:52]FM_MakeSignedData done [13:28:52]CreateOFDProtocolMessage [13:28:52]wFMCommunicate request_size=4 [13:28:52]MH_SAM_APDU [13:28:52]CAPDU: 80 11 00 00 [13:28:52]Write to MH i2c: E2 08 00 BE 53 80 11 00 00 00 00 00 00 8B [13:28:52]Write i2c OK [13:28:52]MH_I2C_Read... [13:28:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:52]Read from MH i2c: E2 [13:28:52]MH_I2C_Read... [13:28:52]Read from MH i2c: E2 17 00 [13:28:52]MH_I2C_Read... [13:28:52]Read from MH i2c: E2 17 00 BE 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E2 [13:28:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:28:52]wFMCommunicate OK [13:28:52]CreateOFDProtocolMessage done [13:28:52]OFDSenderStorePacket 92623 [13:28:52]StoreOFDPacket docnum=92623 [13:28:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 EF 01 00 00 1B 4F E7 01 17 2F 5A 03 01 00 03 00 DB 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 78 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 0C 00 00 00 00 07 04 06 00 B4 78 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 1B E1 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CF 69 01 00 35 04 06 00 DB 7F 26 FA 7F 0A 8F 4B B2 71 1A 8B DD 41 [13:28:52]CheckFolder [13:28:52]dirname=/storage/ofd_packets [13:28:52]CheckFolder done [13:28:52]ProducePacketName [13:28:52]name=ofd_packets/00092623 [13:28:52]NVStorageSaveData ofd_packets/00092623 [13:28:52]File name is /storage/ofd_packets/00092623 [13:28:52]Write 525 bytes [13:28:52]NVStorageSaveData done [13:28:52]OFDSenderStorePacket done [13:28:52]KKMCreateOFDPacket done [13:28:52]NVStorageSaveData kkm_last_timestamp [13:28:52]File name is /storage/kkm_last_timestamp [13:28:52]Write 4 bytes [13:28:52]NVStorageSaveData done [13:28:52]ExternCall_PrintAddStr [13:28:52]wPrintStart [13:28:52]Write to MH i2c: 01 00 00 BF 53 12 [13:28:52]Write i2c OK [13:28:52]MH_I2C_Read... [13:28:52]Read from MH i2c: 01 [13:28:52]MH_I2C_Read... [13:28:52]Read from MH i2c: 01 07 00 [13:28:52]MH_I2C_Read... [13:28:52]Read from MH i2c: 01 07 00 BF 53 00 00 00 00 00 FF 0F 27 [13:28:52]RasterBufferAndPrint [13:28:52]line Счет N : (3)127515 [13:28:52]line ИНН: 02508201610067 [13:28:52]line Контрольно-Кассовый Чек [13:28:52]line ПРОДАЖА [13:28:52]line Товар: 4700000160211 [13:28:52]line Вода Легенда 0,5л [13:28:52]line 2.000 * 40.00 [13:28:52]line = 80.00 [13:28:52]line НДС 12% НСП 1% [13:28:52]line > о реализуемом товаре [13:28:52]line Товар: 47803152 [13:28:52]line Сигареты Mevius Revo [13:28:52]line 1.000 * 159.00 [13:28:52]line = 159.00 [13:28:52]line НДС 12% НСП 1% [13:28:52]line > о реализуемом товаре [13:28:52]line Товар: 4607065000790 [13:28:52]line Шок M&M`s с арахисом 45г [13:28:52]line 1.000 * 70.00 [13:28:52]line = 70.00 [13:28:52]line НДС 12% НСП 1% [13:28:52]line > о реализуемом товаре [13:28:52]line ИТОГО: 309.00 [13:28:52]line НСП 1% : 2.74 [13:28:52]line НДС 12% : 32.81 [13:28:52]line Наличными: 309.00 [13:28:52]line Безнал.: 0.00 [13:28:52]line Место: АЗС № 5 "Партнер Нефть" [13:28:52]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [13:28:52]line СНО: Общий режим [13:28:52]line Чек 71 15.09.2024 13:28 [13:28:52]line Смена: 507 ФФД: 1.0 [13:28:52]line ЗНМ: 03000000022 [13:28:52]line РНМ: 0000000000091423 [13:28:52]line Версия ККМ: 001 [13:28:52]line ФМ: 0000000000874692 [13:28:52]line ФД: 92623 [13:28:52]line ФПД: 241339161280266 [13:28:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T132859&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92623&fm=241339161280266&tin=02508201610067®Number=0000000000091423&sum=30900 [13:28:52]line 0 [13:28:52]written 0, free lines is 4095 [13:28:52]OFD Sender: Processing packet 92623 [packets to send 63, broken 62] [13:28:52]ProducePacketName [13:28:52]name=ofd_packets/00092623 [13:28:52]OFD Sender: To server: pG, [13:28:52]CommunicateWithHost lk.salyk.kg:30040 [13:28:52]ConnectInit lk.salyk.kg [13:28:52]Connected sock=10 [13:28:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 EF 01 00 00 1B 4F E7 01 17 2F 5A 03 01 00 03 00 DB 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 78 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 0C 00 00 00 00 07 04 06 00 B4 78 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 1B E1 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CF 69 01 00 35 04 06 00 DB 7F 26 FA 7F 0A 8F 4B B2 71 1A 8B DD 41 [13:28:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 8B 53 47 00 2A 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CF 69 01 00 F4 03 04 00 93 89 E6 66 B6 04 01 00 00 CA 93 B5 B7 21 4E EB 82 [13:28:53]CommunicateWithHost err = 0 [13:28:53]CheckOFDResponse [13:28:53]1017 (14) - 77093643461234 [13:28:53]1041 (16) - 0000000000874692 [13:28:53]1040 (4) - 92623 [13:28:53]1012 (4) - 15.09.2024 07:15 [13:28:53]1206 (1) - 0 [13:28:53]OFD Sender: Remove packet 92623 [13:28:53]ProducePacketName [13:28:53]name=ofd_packets/00092623 [13:28:53]NVStorageDeleteData [13:28:53]Write to MH i2c: 01 00 00 F3 53 46 [13:28:53]Write i2c OK [13:28:53]MH_I2C_Read... [13:28:53]Read from MH i2c: 01 [13:28:53]MH_I2C_Read... [13:28:53]Read from MH i2c: 01 07 00 [13:28:53]MH_I2C_Read... [13:28:53]Read from MH i2c: 01 07 00 F3 53 00 00 00 00 00 95 0C EE [13:28:53]RasterBufferAndPrint [13:28:53]line [13:28:53]line [13:28:53]line [13:28:53]line [13:28:53]line [13:28:53]written 0, free lines is 3229 [13:28:53]MH_Cut [13:28:53]Write to MH i2c: D1 01 00 FA 53 01 1F [13:28:53]Write i2c OK [13:28:53]MH_I2C_Read... [13:28:53]Read from MH i2c: D1 [13:28:53]MH_I2C_Read... [13:28:53]Read from MH i2c: D1 01 00 [13:28:53]MH_I2C_Read... [13:28:53]Read from MH i2c: D1 01 00 FA 53 00 1E [13:28:53]Write to MH i2c: 01 00 00 FB 53 4E [13:28:53]Write i2c OK [13:28:53]MH_I2C_Read... [13:28:53]OFD Sender: No OFD packet to send [13:28:53]*** Cut start [13:28:53]*** Purtial cut [13:28:53]*** Stage 1: CUTSNS_PIN = 1 [13:28:55]Read from MH i2c: 01 [13:28:55]MH_I2C_Read... [13:28:55]*** Stop cut motor [13:28:55]*** Cut end [13:28:55]Read from MH i2c: 01 07 00 [13:28:55]MH_I2C_Read... [13:28:55]Read from MH i2c: 01 07 00 FB 53 00 00 00 00 00 FF 0F 63 [13:28:55]process_action close_receipt done [13:28:55]requested_data is exist [13:28:55]produce_requested_data [13:28:55]requested_item fm.sn is exist - process it [13:28:55]wFMCommunicate request_size=4 [13:28:55]MH_SAM_APDU [13:28:55]CAPDU: 80 11 00 00 [13:28:55]Write to MH i2c: E2 08 00 FC 53 80 11 00 00 00 00 00 00 C9 [13:28:55]Write i2c OK [13:28:55]MH_I2C_Read... [13:28:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:56]Read from MH i2c: E2 [13:28:56]MH_I2C_Read... [13:28:56]Read from MH i2c: E2 17 00 [13:28:56]MH_I2C_Read... [13:28:56]Read from MH i2c: E2 17 00 FC 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 20 [13:28:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:28:56]wFMCommunicate OK [13:28:56]requested_item fd.num is exist - process it [13:28:56]SAM_PROTO_GetFieldsCounters [13:28:56]wFMCommunicate request_size=4 [13:28:56]MH_SAM_APDU [13:28:56]CAPDU: 80 13 00 00 [13:28:56]Write to MH i2c: E2 08 00 FD 53 80 13 00 00 00 00 00 00 CC [13:28:56]Write i2c OK [13:28:56]MH_I2C_Read... [13:28:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:28:56]Read from MH i2c: E2 [13:28:56]MH_I2C_Read... [13:28:56]Read from MH i2c: E2 62 00 [13:28:56]MH_I2C_Read... [13:28:56]Read from MH i2c: E2 62 00 FD 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 CF 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [13:28:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 CF 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:28:56]wFMCommunicate OK [13:28:56]SAM_PROTO_GetFieldsCounters done [13:28:56]requested_item shift.num is exist - process it [13:28:56]requested_item shift.opened is exist - process it [13:28:56]req_shift_opened [13:28:56]FM_GetShiftState [13:28:56]SAM_PROTO_GetShiftState [13:28:56]wFMCommunicate request_size=4 [13:28:56]MH_SAM_APDU [13:28:56]CAPDU: 80 13 01 00 [13:28:56]Write to MH i2c: E2 08 00 FE 53 80 13 01 00 00 00 00 00 CE [13:28:56]Write i2c OK [13:28:56]MH_I2C_Read... [13:28:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:56]Read from MH i2c: E2 [13:28:56]MH_I2C_Read... [13:28:56]Read from MH i2c: E2 0E 00 [13:28:56]MH_I2C_Read... [13:28:56]Read from MH i2c: E2 0E 00 FE 53 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 50 [13:28:56]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:28:56]wFMCommunicate OK [13:28:56]SAM_PROTO_GetShiftState done [13:28:56]FM_GetShiftState done [13:28:56]req_shift_opened done [13:28:56]requested_item shift.open_date is exist - process it [13:28:56]req_shift_open_date [13:28:56]req_shift_open_date done [13:28:56]produce_requested_data done [13:28:56]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92623,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [13:28:56]process_action_free close_receipt [13:28:56]json_value_free [13:28:56]json_value_free done [13:28:56]process_json_proto returns [13:28:56]Send response to host [13:28:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92623,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [13:28:56]free response buf [13:28:56]execute_script done [13:28:56]execute_script returns [13:28:56]free content buf [13:28:56]Sock 8.Close socket [13:28:56]Sock 8.Thread stoped [13:28:58]OFD Sender: No OFD packet to send [13:29:03]OFD Sender: No OFD packet to send [13:29:08]OFD Sender: No OFD packet to send [13:29:13]OFD Sender: No OFD packet to send [13:29:18]OFD Sender: No OFD packet to send [13:29:23]OFD Sender: No OFD packet to send [13:29:28]OFD Sender: No OFD packet to send [13:29:33]OFD Sender: No OFD packet to send [13:29:38]OFD Sender: No OFD packet to send [13:29:43]OFD Sender: No OFD packet to send [13:29:48]OFD Sender: No OFD packet to send [13:29:53]OFD Sender: No OFD packet to send [13:29:58]OFD Sender: No OFD packet to send [13:30:03]OFD Sender: No OFD packet to send [13:30:08]OFD Sender: No OFD packet to send [13:30:13]OFD Sender: No OFD packet to send [13:30:18]OFD Sender: No OFD packet to send [13:30:23]OFD Sender: No OFD packet to send [13:30:28]OFD Sender: No OFD packet to send [13:30:33]OFD Sender: No OFD packet to send [13:30:38]OFD Sender: No OFD packet to send [13:30:43]OFD Sender: No OFD packet to send [13:30:48]OFD Sender: No OFD packet to send [13:30:53]OFD Sender: No OFD packet to send [13:30:58]OFD Sender: No OFD packet to send [13:31:03]OFD Sender: No OFD packet to send [13:31:08]OFD Sender: No OFD packet to send [13:31:13]OFD Sender: No OFD packet to send [13:31:18]OFD Sender: No OFD packet to send [13:31:23]OFD Sender: No OFD packet to send [13:31:28]OFD Sender: No OFD packet to send [13:31:33]OFD Sender: No OFD packet to send [13:31:38]OFD Sender: No OFD packet to send [13:31:43]OFD Sender: No OFD packet to send [13:31:48]OFD Sender: No OFD packet to send [13:31:53]OFD Sender: No OFD packet to send [13:31:58]OFD Sender: No OFD packet to send [13:32:03]OFD Sender: No OFD packet to send [13:32:08]OFD Sender: No OFD packet to send [13:32:13]OFD Sender: No OFD packet to send [13:32:18]OFD Sender: No OFD packet to send [13:32:23]OFD Sender: No OFD packet to send [13:32:28]OFD Sender: No OFD packet to send [13:32:33]OFD Sender: No OFD packet to send [13:32:38]OFD Sender: No OFD packet to send [13:32:43]OFD Sender: No OFD packet to send [13:32:48]OFD Sender: No OFD packet to send [13:32:53]OFD Sender: No OFD packet to send [13:32:58]OFD Sender: No OFD packet to send [13:33:03]OFD Sender: No OFD packet to send [13:33:08]OFD Sender: No OFD packet to send [13:33:13]OFD Sender: No OFD packet to send [13:33:18]OFD Sender: No OFD packet to send [13:33:23]OFD Sender: No OFD packet to send [13:33:28]OFD Sender: No OFD packet to send [13:33:33]OFD Sender: No OFD packet to send [13:33:38]OFD Sender: No OFD packet to send [13:33:43]OFD Sender: No OFD packet to send [13:33:48]OFD Sender: No OFD packet to send [13:33:53]OFD Sender: No OFD packet to send [13:33:58]OFD Sender: No OFD packet to send [13:34:03]OFD Sender: No OFD packet to send [13:34:08]OFD Sender: No OFD packet to send [13:34:13]OFD Sender: No OFD packet to send [13:34:18]OFD Sender: No OFD packet to send [13:34:23]OFD Sender: No OFD packet to send [13:34:28]OFD Sender: No OFD packet to send [13:34:33]OFD Sender: No OFD packet to send [13:34:38]OFD Sender: No OFD packet to send [13:34:43]OFD Sender: No OFD packet to send [13:34:48]OFD Sender: No OFD packet to send [13:34:53]OFD Sender: No OFD packet to send [13:34:58]OFD Sender: No OFD packet to send [13:35:03]OFD Sender: No OFD packet to send [13:35:08]OFD Sender: No OFD packet to send [13:35:13]OFD Sender: No OFD packet to send [13:35:18]OFD Sender: No OFD packet to send [13:35:23]OFD Sender: No OFD packet to send [13:35:28]OFD Sender: No OFD packet to send [13:35:33]OFD Sender: No OFD packet to send [13:35:38]OFD Sender: No OFD packet to send [13:35:43]OFD Sender: No OFD packet to send [13:35:48]OFD Sender: No OFD packet to send [13:35:53]OFD Sender: No OFD packet to send [13:35:58]OFD Sender: No OFD packet to send [13:36:03]OFD Sender: No OFD packet to send [13:36:08]OFD Sender: No OFD packet to send [13:36:13]OFD Sender: No OFD packet to send [13:36:18]OFD Sender: No OFD packet to send [13:36:23]OFD Sender: No OFD packet to send [13:36:28]OFD Sender: No OFD packet to send [13:36:33]OFD Sender: No OFD packet to send [13:36:38]OFD Sender: No OFD packet to send [13:36:44]OFD Sender: No OFD packet to send [13:36:49]OFD Sender: No OFD packet to send [13:36:54]OFD Sender: No OFD packet to send [13:36:59]OFD Sender: No OFD packet to send [13:37:04]OFD Sender: No OFD packet to send [13:37:09]OFD Sender: No OFD packet to send [13:37:14]OFD Sender: No OFD packet to send [13:37:19]OFD Sender: No OFD packet to send [13:37:24]OFD Sender: No OFD packet to send [13:37:29]OFD Sender: No OFD packet to send [13:37:34]OFD Sender: No OFD packet to send [13:37:39]OFD Sender: No OFD packet to send [13:37:44]OFD Sender: No OFD packet to send [13:37:49]OFD Sender: No OFD packet to send [13:37:54]OFD Sender: No OFD packet to send [13:37:59]OFD Sender: No OFD packet to send [13:38:04]OFD Sender: No OFD packet to send [13:38:09]OFD Sender: No OFD packet to send [13:38:14]OFD Sender: No OFD packet to send [13:38:19]OFD Sender: No OFD packet to send [13:38:24]OFD Sender: No OFD packet to send [13:38:29]OFD Sender: No OFD packet to send [13:38:34]OFD Sender: No OFD packet to send [13:38:39]OFD Sender: No OFD packet to send [13:38:44]OFD Sender: No OFD packet to send [13:38:49]OFD Sender: No OFD packet to send [13:38:54]OFD Sender: No OFD packet to send [13:38:59]OFD Sender: No OFD packet to send [13:39:04]OFD Sender: No OFD packet to send [13:39:09]OFD Sender: No OFD packet to send [13:39:14]OFD Sender: No OFD packet to send [13:39:19]OFD Sender: No OFD packet to send [13:39:24]OFD Sender: No OFD packet to send [13:39:29]OFD Sender: No OFD packet to send [13:39:34]OFD Sender: No OFD packet to send [13:39:39]OFD Sender: No OFD packet to send [13:39:44]OFD Sender: No OFD packet to send [13:39:49]OFD Sender: No OFD packet to send [13:39:54]OFD Sender: No OFD packet to send [13:39:59]OFD Sender: No OFD packet to send [13:40:04]OFD Sender: No OFD packet to send [13:40:09]OFD Sender: No OFD packet to send [13:40:14]OFD Sender: No OFD packet to send [13:40:19]OFD Sender: No OFD packet to send [13:40:24]OFD Sender: No OFD packet to send [13:40:29]OFD Sender: No OFD packet to send [13:40:34]OFD Sender: No OFD packet to send [13:40:39]OFD Sender: No OFD packet to send [13:40:44]OFD Sender: No OFD packet to send [13:40:49]OFD Sender: No OFD packet to send [13:40:54]OFD Sender: No OFD packet to send [13:40:59]OFD Sender: No OFD packet to send [13:41:04]OFD Sender: No OFD packet to send [13:41:09]OFD Sender: No OFD packet to send [13:41:14]OFD Sender: No OFD packet to send [13:41:19]OFD Sender: No OFD packet to send [13:41:24]OFD Sender: No OFD packet to send [13:41:29]OFD Sender: No OFD packet to send [13:41:34]OFD Sender: No OFD packet to send [13:41:39]OFD Sender: No OFD packet to send [13:41:44]OFD Sender: No OFD packet to send [13:41:49]OFD Sender: No OFD packet to send [13:41:54]OFD Sender: No OFD packet to send [13:41:59]OFD Sender: No OFD packet to send [13:42:04]OFD Sender: No OFD packet to send [13:42:09]OFD Sender: No OFD packet to send [13:42:14]OFD Sender: No OFD packet to send [13:42:19]OFD Sender: No OFD packet to send [13:42:24]OFD Sender: No OFD packet to send [13:42:29]OFD Sender: No OFD packet to send [13:42:34]OFD Sender: No OFD packet to send [13:42:39]OFD Sender: No OFD packet to send [13:42:44]OFD Sender: No OFD packet to send [13:42:49]OFD Sender: No OFD packet to send [13:42:54]OFD Sender: No OFD packet to send [13:42:59]OFD Sender: No OFD packet to send [13:43:04]OFD Sender: No OFD packet to send [13:43:09]OFD Sender: No OFD packet to send [13:43:14]OFD Sender: No OFD packet to send [13:43:19]OFD Sender: No OFD packet to send [13:43:24]OFD Sender: No OFD packet to send [13:43:29]OFD Sender: No OFD packet to send [13:43:34]OFD Sender: No OFD packet to send [13:43:39]OFD Sender: No OFD packet to send [13:43:44]OFD Sender: No OFD packet to send [13:43:49]OFD Sender: No OFD packet to send [13:43:54]OFD Sender: No OFD packet to send [13:43:59]OFD Sender: No OFD packet to send [13:44:04]OFD Sender: No OFD packet to send [13:44:09]OFD Sender: No OFD packet to send [13:44:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:29]OFD Sender: No OFD packet to send [13:44:34]OFD Sender: No OFD packet to send [13:44:39]OFD Sender: No OFD packet to send [13:44:44]OFD Sender: No OFD packet to send [13:44:49]OFD Sender: No OFD packet to send [13:44:54]OFD Sender: No OFD packet to send [13:44:59]OFD Sender: No OFD packet to send [13:45:04]OFD Sender: No OFD packet to send [13:45:09]OFD Sender: No OFD packet to send [13:45:14]OFD Sender: No OFD packet to send [13:45:19]OFD Sender: No OFD packet to send [13:45:24]OFD Sender: No OFD packet to send [13:45:29]OFD Sender: No OFD packet to send [13:45:34]OFD Sender: No OFD packet to send [13:45:39]OFD Sender: No OFD packet to send [13:45:44]OFD Sender: No OFD packet to send [13:45:49]OFD Sender: No OFD packet to send [13:45:54]OFD Sender: No OFD packet to send [13:45:59]OFD Sender: No OFD packet to send [13:46:04]OFD Sender: No OFD packet to send [13:46:09]OFD Sender: No OFD packet to send [13:46:14]OFD Sender: No OFD packet to send [13:46:19]OFD Sender: No OFD packet to send [13:46:24]OFD Sender: No OFD packet to send [13:46:29]OFD Sender: No OFD packet to send [13:46:34]OFD Sender: No OFD packet to send [13:46:39]OFD Sender: No OFD packet to send [13:46:44]OFD Sender: No OFD packet to send [13:46:49]OFD Sender: No OFD packet to send [13:46:54]OFD Sender: No OFD packet to send [13:46:59]OFD Sender: No OFD packet to send [13:47:04]OFD Sender: No OFD packet to send [13:47:09]OFD Sender: No OFD packet to send [13:47:14]OFD Sender: No OFD packet to send [13:47:19]OFD Sender: No OFD packet to send [13:47:24]OFD Sender: No OFD packet to send [13:47:29]OFD Sender: No OFD packet to send [13:47:34]OFD Sender: No OFD packet to send [13:47:39]OFD Sender: No OFD packet to send [13:47:44]OFD Sender: No OFD packet to send [13:47:49]OFD Sender: No OFD packet to send [13:47:54]OFD Sender: No OFD packet to send [13:47:59]OFD Sender: No OFD packet to send [13:48:04]OFD Sender: No OFD packet to send [13:48:09]OFD Sender: No OFD packet to send [13:48:14]OFD Sender: No OFD packet to send [13:48:19]OFD Sender: No OFD packet to send [13:48:24]OFD Sender: No OFD packet to send [13:48:29]OFD Sender: No OFD packet to send [13:48:34]OFD Sender: No OFD packet to send [13:48:39]OFD Sender: No OFD packet to send [13:48:44]OFD Sender: No OFD packet to send [13:48:49]OFD Sender: No OFD packet to send [13:48:54]OFD Sender: No OFD packet to send [13:48:59]OFD Sender: No OFD packet to send [13:49:04]OFD Sender: No OFD packet to send [13:49:09]OFD Sender: No OFD packet to send [13:49:14]OFD Sender: No OFD packet to send [13:49:19]OFD Sender: No OFD packet to send [13:49:24]OFD Sender: No OFD packet to send [13:49:24]accept exits with 9 [13:49:24]New connection [13:49:24]New thread 3066658148 created [13:49:24]Thread 3066801508 joined [13:49:24]Waiting for new connection... [13:49:24] Sock 9.Parse request [13:49:24]Sock 9.Check first char [13:49:24]Sock 9.First char is OK [13:49:24]request: POST /json_proto HTTP/1.0 [13:49:24]Method: POST [13:49:24]URL: /json_proto [13:49:24]Method is POST - this is cgi request [13:49:24]url: /json_proto [13:49:24]query_string will be loaded in cgi processing [13:49:24]execute_cgi json_proto POST (null) [13:49:24]execute_cgi path=json_proto method=POST [13:49:24]POST find Content-Length [13:49:24]Host: 172.17.57.71:8080 [13:49:24]Content-Length: 1051 [13:49:24]Content-Type: application/json [13:49:24] [13:49:24]POST finish read [13:49:24]Found Content-Length = 1051 [13:49:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127516", "tax_sys" : 0, "items" : [ { "code": "4680036914937", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F 0,275\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 144.000, "sum" : 576.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 666.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:24]execute_script... [13:49:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127516", "tax_sys" : 0, "items" : [ { "code": "4680036914937", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F 0,275\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 144.000, "sum" : 576.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 666.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:24]POST & json_proto [13:49:24]process_json_proto [13:49:24]json parsed OK: [13:49:24]protocol is kg_v1.0 [13:49:24]action value=close_receipt [13:49:24]process_action close_receipt [13:49:24]cmd_close_receipt [13:49:24]MH_GetDate [13:49:24]Write to MH i2c: F0 00 00 FF 53 41 [13:49:24]Write i2c OK [13:49:24]MH_I2C_Read... [13:49:24]Read from MH i2c: F0 [13:49:24]MH_I2C_Read... [13:49:24]Read from MH i2c: F0 09 00 [13:49:24]MH_I2C_Read... [13:49:24]Read from MH i2c: F0 09 00 FF 53 00 ED E5 E6 66 33 3A A4 66 DF [13:49:24]GetLastDocTimeStamp 1726406939 [13:49:24]current date 1726408173 [13:49:24]FM_GetShiftState [13:49:24]SAM_PROTO_GetShiftState [13:49:24]wFMCommunicate request_size=4 [13:49:24]MH_SAM_APDU [13:49:24]CAPDU: 80 13 01 00 [13:49:24]Write to MH i2c: E2 08 00 00 54 80 13 01 00 00 00 00 00 D1 [13:49:24]Write i2c OK [13:49:24]MH_I2C_Read... [13:49:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:25]Read from MH i2c: E2 [13:49:25]MH_I2C_Read... [13:49:25]Read from MH i2c: E2 0E 00 [13:49:25]MH_I2C_Read... [13:49:25]Read from MH i2c: E2 0E 00 00 54 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 53 [13:49:25]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:49:25]wFMCommunicate OK [13:49:25]SAM_PROTO_GetShiftState done [13:49:25]FM_GetShiftState done [13:49:25]opened in 1726359809 [13:49:25]opened+sec_in_day 1726446209 [13:49:25]quantity*price = 9000 [13:49:25]sum+1 = 9001 [13:49:25]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 144.000 * 4.00 = 576.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 666.00 НСП 1% : 5.90 НДС 12% : 70.73 Наличными: 0.00 Безнал.: 666.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 72 15.09.2024 13:49 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92624 ФПД: 178788266462382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T134933&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92624&fm=178788266462382&tin=02508201610067®Number=0000000000091423&sum=66600 0 [13:49:26]StoreToDocumentArchive [13:49:26]shift 507 fd 92624 [13:49:26]save to /storage/0507/doc_00092624 [13:49:26]save last doc name /storage/0507/doc_00092624 to /storage/kkm_last_doc_name [13:49:26]save OK [13:49:26]Clear old archive folders... [13:49:26]ProcessDocumentItem done err = 0, tmpTLVsize=377 [13:49:26]tlvbuf is 00FA1DB0 [13:49:26]SAM_PROTO_ClearQueue [13:49:26]wFMCommunicate request_size=4 [13:49:26]MH_SAM_APDU [13:49:26]CAPDU: 80 09 00 00 [13:49:26]Write to MH i2c: E2 08 00 0D 54 80 09 00 00 00 00 00 00 D3 [13:49:26]Write i2c OK [13:49:26]MH_I2C_Read... [13:49:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:49:26]Read from MH i2c: E2 [13:49:26]MH_I2C_Read... [13:49:26]Read from MH i2c: E2 03 00 [13:49:26]MH_I2C_Read... [13:49:26]Read from MH i2c: E2 03 00 0D 54 00 90 00 D5 [13:49:26]RAPDU: 90 00 [13:49:26]wFMCommunicate OK [13:49:26]SAM_PROTO_ClearQueue done [13:49:26]KKMCreateOFDPacket [13:49:26]OFDProtocolAddRootSTLVToBuf [13:49:26]FM_MakeSignedData [13:49:26]FM_MakeSignedData [13:49:26]SAM_PROTO_SignData [13:49:26]wFMCommunicate request_size=4 [13:49:26]MH_SAM_APDU [13:49:26]CAPDU: 80 0D 01 02 [13:49:26]Write to MH i2c: E2 08 00 0E 54 80 0D 01 02 00 00 00 00 DB [13:49:26]Write i2c OK [13:49:26]MH_I2C_Read... [13:49:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:49:26]Read from MH i2c: E2 [13:49:26]MH_I2C_Read... [13:49:26]Read from MH i2c: E2 03 00 [13:49:26]MH_I2C_Read... [13:49:26]Read from MH i2c: E2 03 00 0E 54 00 90 00 D6 [13:49:26]RAPDU: 90 00 [13:49:26]wFMCommunicate OK [13:49:26]wFMCommunicate request_size=255 [13:49:26]MH_SAM_APDU [13:49:26]CAPDU: 80 0D 02 02 FA 03 00 79 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 38 30 30 33 36 39 31 34 39 33 37 06 04 1B 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 30 2C 32 37 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 80 32 02 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 00 E1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 04 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 02 00 00 00 00 EE [13:49:26]Write to MH i2c: E2 02 01 0F 54 80 0D 02 02 FA 00 03 00 79 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 38 30 30 33 36 39 31 34 39 33 37 06 04 1B 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 30 2C 32 37 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 80 32 02 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 00 E1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 04 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 02 00 00 00 00 EE 00 00 62 [13:49:26]Write i2c OK [13:49:26]MH_I2C_Read... [13:49:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:26]Read from MH i2c: E2 [13:49:26]MH_I2C_Read... [13:49:26]Read from MH i2c: E2 03 00 [13:49:26]MH_I2C_Read... [13:49:26]Read from MH i2c: E2 03 00 0F 54 00 90 00 D7 [13:49:26]RAPDU: 90 00 [13:49:26]wFMCommunicate OK [13:49:26]wFMCommunicate request_size=136 [13:49:26]MH_SAM_APDU [13:49:26]CAPDU: 80 0D 02 02 83 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 04 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 ED E5 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D0 69 01 00 35 04 06 00 A2 9B 63 1C CC AE [13:49:26]Write to MH i2c: E2 8B 00 10 54 80 0D 02 02 83 00 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 04 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 ED E5 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D0 69 01 00 35 04 06 00 A2 9B 63 1C CC AE 00 00 DC [13:49:26]Write i2c OK [13:49:26]MH_I2C_Read... [13:49:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:26]Read from MH i2c: E2 [13:49:26]MH_I2C_Read... [13:49:26]Read from MH i2c: E2 03 00 [13:49:26]MH_I2C_Read... [13:49:26]Read from MH i2c: E2 03 00 10 54 00 90 00 D8 [13:49:26]RAPDU: 90 00 [13:49:26]wFMCommunicate OK [13:49:26]wFMCommunicate request_size=4 [13:49:26]MH_SAM_APDU [13:49:26]CAPDU: 80 0D 03 02 [13:49:26]Write to MH i2c: E2 08 00 11 54 80 0D 03 02 00 00 00 00 E0 [13:49:26]Write i2c OK [13:49:26]MH_I2C_Read... [13:49:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:49:26]Read from MH i2c: E2 [13:49:26]MH_I2C_Read... [13:49:26]Read from MH i2c: E2 0B 00 [13:49:26]MH_I2C_Read... [13:49:26]Read from MH i2c: E2 0B 00 11 54 00 5F 95 CD A0 50 26 8C A8 90 00 EC [13:49:26]RAPDU: 5F 95 CD A0 50 26 8C A8 90 00 [13:49:26]wFMCommunicate OK [13:49:26]SAM_PROTO_SignData done [13:49:26]FM_MakeSignedData done [13:49:26]CreateOFDProtocolMessage [13:49:26]wFMCommunicate request_size=4 [13:49:26]MH_SAM_APDU [13:49:26]CAPDU: 80 11 00 00 [13:49:26]Write to MH i2c: E2 08 00 12 54 80 11 00 00 00 00 00 00 E0 [13:49:26]Write i2c OK [13:49:26]MH_I2C_Read... [13:49:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:26]Read from MH i2c: E2 [13:49:26]MH_I2C_Read... [13:49:26]Read from MH i2c: E2 17 00 [13:49:26]MH_I2C_Read... [13:49:26]Read from MH i2c: E2 17 00 12 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 37 [13:49:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:49:26]wFMCommunicate OK [13:49:26]CreateOFDProtocolMessage done [13:49:26]OFDSenderStorePacket 92624 [13:49:26]StoreOFDPacket docnum=92624 [13:49:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 8D 01 00 00 C0 C0 85 01 FB D0 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 38 30 30 33 36 39 31 34 39 33 37 06 04 1B 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 30 2C 32 37 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 80 32 02 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 00 E1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 04 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 04 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 ED E5 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D0 69 01 00 35 04 06 00 A2 9B 63 1C CC AE 5F 95 CD A0 50 26 8C A8 [13:49:26]CheckFolder [13:49:26]dirname=/storage/ofd_packets [13:49:26]CheckFolder done [13:49:26]ProducePacketName [13:49:26]name=ofd_packets/00092624 [13:49:26]NVStorageSaveData ofd_packets/00092624 [13:49:26]File name is /storage/ofd_packets/00092624 [13:49:26]Write 427 bytes [13:49:26]NVStorageSaveData done [13:49:26]OFDSenderStorePacket done [13:49:26]KKMCreateOFDPacket done [13:49:26]NVStorageSaveData kkm_last_timestamp [13:49:26]File name is /storage/kkm_last_timestamp [13:49:26]Write 4 bytes [13:49:26]NVStorageSaveData done [13:49:26]ExternCall_PrintAddStr [13:49:26]wPrintStart [13:49:26]Write to MH i2c: 01 00 00 13 54 67 [13:49:27]OFD Sender: Processing packet 92624 [packets to send 63, broken 62] [13:49:27]ProducePacketName [13:49:27]name=ofd_packets/00092624 [13:49:27]Write i2c OK [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: 01 [13:49:27]MH_I2C_Read... [13:49:27]OFD Sender: To server: pG, [13:49:27]CommunicateWithHost lk.salyk.kg:30040 [13:49:27]ConnectInit lk.salyk.kg [13:49:27]Read from MH i2c: 01 07 00 [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: 01 07 00 13 54 00 00 00 00 00 FF 0F 7C [13:49:27]RasterBufferAndPrint [13:49:27]line Счет N : (3)127516 [13:49:27]line ИНН: 02508201610067 [13:49:27]line Контрольно-Кассовый Чек [13:49:27]line ПРОДАЖА [13:49:27]line Товар: 4680036914937 [13:49:27]line Gorilla эн нап 0,275л [13:49:27]line 1.000 * 90.00 [13:49:27]line = 90.00 [13:49:27]line НДС 12% НСП 1% [13:49:27]line > о реализуемом товаре [13:49:27]line Товар: 2000031750019 [13:49:27]line Пакет Партнер Нефть [13:49:27]line 144.000 * 4.00 [13:49:27]line = 576.00 [13:49:27]line НДС 12% НСП 1% [13:49:27]line > о реализуемом товаре [13:49:27]line ИТОГО: 666.00 [13:49:27]line НСП 1% : 5.90 [13:49:27]line НДС 12% : 70.73 [13:49:27]line Наличными: 0.00 [13:49:27]line Безнал.: 666.00 [13:49:27]line Место: АЗС № 5 "Партнер Нефть" [13:49:27]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [13:49:27]line СНО: Общий режим [13:49:27]line Чек 72 15.09.2024 13:49 [13:49:27]line Смена: 507 ФФД: 1.0 [13:49:27]line ЗНМ: 03000000022 [13:49:27]line РНМ: 0000000000091423 [13:49:27]line Версия ККМ: 001 [13:49:27]line Платежная система: О! деньги [13:49:27]line ФМ: 0000000000874692 [13:49:27]line ФД: 92624 [13:49:27]line ФПД: 178788266462382 [13:49:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T134933&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92624&fm=178788266462382&tin=02508201610067®Number=0000000000091423&sum=66600 [13:49:27]line 0 [13:49:27]written 0, free lines is 4095 [13:49:27]Connected sock=10 [13:49:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 8D 01 00 00 C0 C0 85 01 FB D0 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 38 30 30 33 36 39 31 34 39 33 37 06 04 1B 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 30 2C 32 37 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 80 32 02 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 00 E1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 04 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 04 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 ED E5 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D0 69 01 00 35 04 06 00 A2 9B 63 1C CC AE 5F 95 CD A0 50 26 8C A8 [13:49:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 49 B3 47 00 6E 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D0 69 01 00 F4 03 04 00 65 8E E6 66 B6 04 01 00 00 E9 BB 05 BC EE 5B 44 72 [13:49:27]CommunicateWithHost err = 0 [13:49:27]CheckOFDResponse [13:49:27]1017 (14) - 77093643461234 [13:49:27]1041 (16) - 0000000000874692 [13:49:27]1040 (4) - 92624 [13:49:27]1012 (4) - 15.09.2024 07:36 [13:49:27]1206 (1) - 0 [13:49:27]OFD Sender: Remove packet 92624 [13:49:27]ProducePacketName [13:49:27]name=ofd_packets/00092624 [13:49:27]NVStorageDeleteData [13:49:27]Write to MH i2c: 01 00 00 43 54 97 [13:49:27]Write i2c OK [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: 01 [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: 01 07 00 [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: 01 07 00 43 54 00 00 00 00 00 C0 0C 6A [13:49:27]RasterBufferAndPrint [13:49:27]line [13:49:27]line [13:49:27]line [13:49:27]line [13:49:27]line [13:49:27]written 0, free lines is 3271 [13:49:27]MH_Cut [13:49:27]Write to MH i2c: D1 01 00 4A 54 01 70 [13:49:27]Write i2c OK [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: D1 [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: D1 01 00 [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: D1 01 00 4A 54 00 6F [13:49:27]Write to MH i2c: 01 00 00 4B 54 9F [13:49:27]Write i2c OK [13:49:27]MH_I2C_Read... [13:49:27]OFD Sender: No OFD packet to send [13:49:28]*** Cut start [13:49:28]*** Purtial cut [13:49:28]*** Stage 1: CUTSNS_PIN = 1 [13:49:30]Read from MH i2c: 01 [13:49:30]MH_I2C_Read... [13:49:30]*** Stop cut motor [13:49:30]*** Cut end [13:49:30]Read from MH i2c: 01 07 00 [13:49:30]MH_I2C_Read... [13:49:30]Read from MH i2c: 01 07 00 4B 54 00 00 00 00 00 FF 0F B4 [13:49:30]process_action close_receipt done [13:49:30]requested_data is exist [13:49:30]produce_requested_data [13:49:30]requested_item fm.sn is exist - process it [13:49:30]wFMCommunicate request_size=4 [13:49:30]MH_SAM_APDU [13:49:30]CAPDU: 80 11 00 00 [13:49:30]Write to MH i2c: E2 08 00 4C 54 80 11 00 00 00 00 00 00 1A [13:49:30]Write i2c OK [13:49:30]MH_I2C_Read... [13:49:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:30]Read from MH i2c: E2 [13:49:30]MH_I2C_Read... [13:49:30]Read from MH i2c: E2 17 00 [13:49:30]MH_I2C_Read... [13:49:30]Read from MH i2c: E2 17 00 4C 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 71 [13:49:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:49:30]wFMCommunicate OK [13:49:30]requested_item fd.num is exist - process it [13:49:30]SAM_PROTO_GetFieldsCounters [13:49:30]wFMCommunicate request_size=4 [13:49:30]MH_SAM_APDU [13:49:30]CAPDU: 80 13 00 00 [13:49:30]Write to MH i2c: E2 08 00 4D 54 80 13 00 00 00 00 00 00 1D [13:49:30]Write i2c OK [13:49:30]MH_I2C_Read... [13:49:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:49:30]Read from MH i2c: E2 [13:49:30]MH_I2C_Read... [13:49:30]Read from MH i2c: E2 62 00 [13:49:30]MH_I2C_Read... [13:49:30]Read from MH i2c: E2 62 00 4D 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D0 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [13:49:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D0 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:49:30]wFMCommunicate OK [13:49:30]SAM_PROTO_GetFieldsCounters done [13:49:30]requested_item shift.num is exist - process it [13:49:30]requested_item shift.opened is exist - process it [13:49:30]req_shift_opened [13:49:30]FM_GetShiftState [13:49:30]SAM_PROTO_GetShiftState [13:49:30]wFMCommunicate request_size=4 [13:49:30]MH_SAM_APDU [13:49:30]CAPDU: 80 13 01 00 [13:49:30]Write to MH i2c: E2 08 00 4E 54 80 13 01 00 00 00 00 00 1F [13:49:30]Write i2c OK [13:49:30]MH_I2C_Read... [13:49:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:30]Read from MH i2c: E2 [13:49:30]MH_I2C_Read... [13:49:30]Read from MH i2c: E2 0E 00 [13:49:30]MH_I2C_Read... [13:49:30]Read from MH i2c: E2 0E 00 4E 54 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 A1 [13:49:30]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:49:30]wFMCommunicate OK [13:49:30]SAM_PROTO_GetShiftState done [13:49:30]FM_GetShiftState done [13:49:30]req_shift_opened done [13:49:30]requested_item shift.open_date is exist - process it [13:49:30]req_shift_open_date [13:49:30]req_shift_open_date done [13:49:30]produce_requested_data done [13:49:30]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92624,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [13:49:30]process_action_free close_receipt [13:49:30]json_value_free [13:49:30]json_value_free done [13:49:30]process_json_proto returns [13:49:30]Send response to host [13:49:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92624,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [13:49:30]free response buf [13:49:30]execute_script done [13:49:30]execute_script returns [13:49:30]free content buf [13:49:30]Sock 9.Close socket [13:49:30]Sock 9.Thread stoped [13:49:32]OFD Sender: No OFD packet to send [13:49:37]OFD Sender: No OFD packet to send [13:49:42]OFD Sender: No OFD packet to send [13:49:47]OFD Sender: No OFD packet to send [13:49:52]OFD Sender: No OFD packet to send [13:49:57]OFD Sender: No OFD packet to send [13:50:02]OFD Sender: No OFD packet to send [13:50:07]OFD Sender: No OFD packet to send [13:50:12]OFD Sender: No OFD packet to send [13:50:17]OFD Sender: No OFD packet to send [13:50:22]OFD Sender: No OFD packet to send [13:50:27]OFD Sender: No OFD packet to send [13:50:32]OFD Sender: No OFD packet to send [13:50:37]OFD Sender: No OFD packet to send [13:50:42]OFD Sender: No OFD packet to send [13:50:48]OFD Sender: No OFD packet to send [13:50:53]OFD Sender: No OFD packet to send [13:50:58]OFD Sender: No OFD packet to send [13:51:03]OFD Sender: No OFD packet to send [13:51:08]OFD Sender: No OFD packet to send [13:51:13]OFD Sender: No OFD packet to send [13:51:18]OFD Sender: No OFD packet to send [13:51:23]OFD Sender: No OFD packet to send [13:51:28]OFD Sender: No OFD packet to send [13:51:33]OFD Sender: No OFD packet to send [13:51:38]OFD Sender: No OFD packet to send [13:51:43]OFD Sender: No OFD packet to send [13:51:48]OFD Sender: No OFD packet to send [13:51:53]OFD Sender: No OFD packet to send [13:51:58]OFD Sender: No OFD packet to send [13:52:03]OFD Sender: No OFD packet to send [13:52:08]OFD Sender: No OFD packet to send [13:52:13]OFD Sender: No OFD packet to send [13:52:18]OFD Sender: No OFD packet to send [13:52:23]OFD Sender: No OFD packet to send [13:52:28]OFD Sender: No OFD packet to send [13:52:33]OFD Sender: No OFD packet to send [13:52:38]OFD Sender: No OFD packet to send [13:52:43]OFD Sender: No OFD packet to send [13:52:48]OFD Sender: No OFD packet to send [13:52:53]OFD Sender: No OFD packet to send [13:52:58]OFD Sender: No OFD packet to send [13:53:03]OFD Sender: No OFD packet to send [13:53:08]OFD Sender: No OFD packet to send [13:53:13]OFD Sender: No OFD packet to send [13:53:18]OFD Sender: No OFD packet to send [13:53:23]OFD Sender: No OFD packet to send [13:53:28]OFD Sender: No OFD packet to send [13:53:33]OFD Sender: No OFD packet to send [13:53:38]OFD Sender: No OFD packet to send [13:53:43]OFD Sender: No OFD packet to send [13:53:48]OFD Sender: No OFD packet to send [13:53:53]OFD Sender: No OFD packet to send [13:53:58]OFD Sender: No OFD packet to send [13:54:03]OFD Sender: No OFD packet to send [13:54:08]OFD Sender: No OFD packet to send [13:54:13]OFD Sender: No OFD packet to send [13:54:18]OFD Sender: No OFD packet to send [13:54:23]OFD Sender: No OFD packet to send [13:54:28]OFD Sender: No OFD packet to send [13:54:33]OFD Sender: No OFD packet to send [13:54:38]OFD Sender: No OFD packet to send [13:54:43]OFD Sender: No OFD packet to send [13:54:48]OFD Sender: No OFD packet to send [13:54:53]OFD Sender: No OFD packet to send [13:54:58]OFD Sender: No OFD packet to send [13:55:03]OFD Sender: No OFD packet to send [13:55:08]OFD Sender: No OFD packet to send [13:55:13]OFD Sender: No OFD packet to send [13:55:18]OFD Sender: No OFD packet to send [13:55:23]OFD Sender: No OFD packet to send [13:55:28]OFD Sender: No OFD packet to send [13:55:33]OFD Sender: No OFD packet to send [13:55:38]OFD Sender: No OFD packet to send [13:55:43]OFD Sender: No OFD packet to send [13:55:48]OFD Sender: No OFD packet to send [13:55:53]OFD Sender: No OFD packet to send [13:55:58]OFD Sender: No OFD packet to send [13:56:03]OFD Sender: No OFD packet to send [13:56:08]OFD Sender: No OFD packet to send [13:56:13]OFD Sender: No OFD packet to send [13:56:18]OFD Sender: No OFD packet to send [13:56:23]OFD Sender: No OFD packet to send [13:56:28]OFD Sender: No OFD packet to send [13:56:33]OFD Sender: No OFD packet to send [13:56:38]OFD Sender: No OFD packet to send [13:56:43]OFD Sender: No OFD packet to send [13:56:48]OFD Sender: No OFD packet to send [13:56:53]OFD Sender: No OFD packet to send [13:56:58]OFD Sender: No OFD packet to send [13:57:03]OFD Sender: No OFD packet to send [13:57:08]OFD Sender: No OFD packet to send [13:57:13]OFD Sender: No OFD packet to send [13:57:18]OFD Sender: No OFD packet to send [13:57:23]OFD Sender: No OFD packet to send [13:57:28]OFD Sender: No OFD packet to send [13:57:33]OFD Sender: No OFD packet to send [13:57:38]OFD Sender: No OFD packet to send [13:57:43]OFD Sender: No OFD packet to send [13:57:48]OFD Sender: No OFD packet to send [13:57:53]OFD Sender: No OFD packet to send [13:57:58]OFD Sender: No OFD packet to send [13:58:03]OFD Sender: No OFD packet to send [13:58:08]OFD Sender: No OFD packet to send [13:58:13]OFD Sender: No OFD packet to send [13:58:18]OFD Sender: No OFD packet to send [13:58:23]OFD Sender: No OFD packet to send [13:58:28]OFD Sender: No OFD packet to send [13:58:33]OFD Sender: No OFD packet to send [13:58:38]OFD Sender: No OFD packet to send [13:58:43]OFD Sender: No OFD packet to send [13:58:48]OFD Sender: No OFD packet to send [13:58:53]OFD Sender: No OFD packet to send [13:58:58]OFD Sender: No OFD packet to send [13:59:03]OFD Sender: No OFD packet to send [13:59:08]OFD Sender: No OFD packet to send [13:59:13]OFD Sender: No OFD packet to send [13:59:18]OFD Sender: No OFD packet to send [13:59:21]accept exits with 8 [13:59:21]New connection [13:59:21]New thread 3066801508 created [13:59:21]Thread 3066658148 joined [13:59:21]Waiting for new connection... [13:59:21] Sock 8.Parse request [13:59:21]Sock 8.Check first char [13:59:21]Sock 8.First char is OK [13:59:21]request: POST /json_proto HTTP/1.0 [13:59:21]Method: POST [13:59:21]URL: /json_proto [13:59:21]Method is POST - this is cgi request [13:59:21]url: /json_proto [13:59:21]query_string will be loaded in cgi processing [13:59:21]execute_cgi json_proto POST (null) [13:59:21]execute_cgi path=json_proto method=POST [13:59:21]POST find Content-Length [13:59:21]Host: 172.17.57.71:8080 [13:59:21]Content-Length: 1099 [13:59:21]Content-Type: application/json [13:59:21] [13:59:21]POST finish read [13:59:21]Found Content-Length = 1099 [13:59:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127517", "tax_sys" : 0, "items" : [ { "code": "4870202522695", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 0,450", "price" : 70.00, "quantity" : 3.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 290.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:21]execute_script... [13:59:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127517", "tax_sys" : 0, "items" : [ { "code": "4870202522695", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 0,450", "price" : 70.00, "quantity" : 3.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 290.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:21]POST & json_proto [13:59:21]process_json_proto [13:59:21]json parsed OK: [13:59:21]protocol is kg_v1.0 [13:59:21]action value=close_receipt [13:59:21]process_action close_receipt [13:59:21]cmd_close_receipt [13:59:21]MH_GetDate [13:59:21]Write to MH i2c: F0 00 00 4F 54 92 [13:59:21]Write i2c OK [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: F0 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: F0 09 00 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: F0 09 00 4F 54 00 42 E8 E6 66 33 3A A4 66 88 [13:59:21]GetLastDocTimeStamp 1726408173 [13:59:21]current date 1726408770 [13:59:21]FM_GetShiftState [13:59:21]SAM_PROTO_GetShiftState [13:59:21]wFMCommunicate request_size=4 [13:59:21]MH_SAM_APDU [13:59:21]CAPDU: 80 13 01 00 [13:59:21]Write to MH i2c: E2 08 00 50 54 80 13 01 00 00 00 00 00 21 [13:59:21]Write i2c OK [13:59:21]MH_I2C_Read... [13:59:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:22]Read from MH i2c: E2 [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: E2 0E 00 [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: E2 0E 00 50 54 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 A3 [13:59:22]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:59:22]wFMCommunicate OK [13:59:22]SAM_PROTO_GetShiftState done [13:59:22]FM_GetShiftState done [13:59:22]opened in 1726359809 [13:59:22]opened+sec_in_day 1726446209 [13:59:22]quantity*price = 21000 [13:59:22]sum+1 = 21001 [13:59:22]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570057 Напиток Pepsi 0,5л 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 290.00 НСП 1% : 2.57 НДС 12% : 30.80 Наличными: 0.00 Безнал.: 290.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 73 15.09.2024 13:59 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92625 ФПД: 218319208032492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T135930&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92625&fm=218319208032492&tin=02508201610067®Number=0000000000091423&sum=29000 0 [13:59:23]StoreToDocumentArchive [13:59:23]shift 507 fd 92625 [13:59:23]save to /storage/0507/doc_00092625 [13:59:23]save last doc name /storage/0507/doc_00092625 to /storage/kkm_last_doc_name [13:59:23]save OK [13:59:23]Clear old archive folders... [13:59:23]ProcessDocumentItem done err = 0, tmpTLVsize=398 [13:59:23]tlvbuf is 0117A300 [13:59:23]SAM_PROTO_ClearQueue [13:59:23]wFMCommunicate request_size=4 [13:59:23]MH_SAM_APDU [13:59:23]CAPDU: 80 09 00 00 [13:59:23]Write to MH i2c: E2 08 00 5D 54 80 09 00 00 00 00 00 00 23 [13:59:23]Write i2c OK [13:59:23]MH_I2C_Read... [13:59:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:23]Read from MH i2c: E2 [13:59:23]MH_I2C_Read... [13:59:23]Read from MH i2c: E2 03 00 [13:59:23]MH_I2C_Read... [13:59:23]Read from MH i2c: E2 03 00 5D 54 00 90 00 25 [13:59:23]RAPDU: 90 00 [13:59:23]wFMCommunicate OK [13:59:23]SAM_PROTO_ClearQueue done [13:59:23]KKMCreateOFDPacket [13:59:23]OFDProtocolAddRootSTLVToBuf [13:59:23]FM_MakeSignedData [13:59:23]FM_MakeSignedData [13:59:23]SAM_PROTO_SignData [13:59:23]wFMCommunicate request_size=4 [13:59:23]MH_SAM_APDU [13:59:23]CAPDU: 80 0D 01 02 [13:59:23]Write to MH i2c: E2 08 00 5E 54 80 0D 01 02 00 00 00 00 2B [13:59:23]Write i2c OK [13:59:23]MH_I2C_Read... [13:59:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:23]Read from MH i2c: E2 [13:59:23]MH_I2C_Read... [13:59:23]Read from MH i2c: E2 03 00 [13:59:23]MH_I2C_Read... [13:59:23]Read from MH i2c: E2 03 00 5E 54 00 90 00 26 [13:59:23]RAPDU: 90 00 [13:59:23]wFMCommunicate OK [13:59:23]wFMCommunicate request_size=255 [13:59:23]MH_SAM_APDU [13:59:23]CAPDU: 80 0D 02 02 FA 03 00 8E 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 39 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 34 35 30 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 [13:59:23]Write to MH i2c: E2 02 01 5F 54 80 0D 02 02 FA 00 03 00 8E 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 39 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 34 35 30 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 00 B4 [13:59:23]Write i2c OK [13:59:23]MH_I2C_Read... [13:59:23]OFD Sender: No OFD packet to send [13:59:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:23]Read from MH i2c: E2 [13:59:23]MH_I2C_Read... [13:59:23]Read from MH i2c: E2 03 00 [13:59:23]MH_I2C_Read... [13:59:23]Read from MH i2c: E2 03 00 5F 54 00 90 00 27 [13:59:23]RAPDU: 90 00 [13:59:23]wFMCommunicate OK [13:59:23]wFMCommunicate request_size=157 [13:59:23]MH_SAM_APDU [13:59:23]CAPDU: 80 0D 02 02 98 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 71 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 42 E8 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D1 69 01 00 35 04 06 00 C6 8F 66 D7 A8 EC [13:59:23]Write to MH i2c: E2 A0 00 60 54 80 0D 02 02 98 00 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 71 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 42 E8 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D1 69 01 00 35 04 06 00 C6 8F 66 D7 A8 EC 00 00 70 [13:59:23]Write i2c OK [13:59:23]MH_I2C_Read... [13:59:23]Read from MH i2c: E2 [13:59:23]MH_I2C_Read... [13:59:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:23]Read from MH i2c: E2 03 00 [13:59:23]MH_I2C_Read... [13:59:23]Read from MH i2c: E2 03 00 60 54 00 90 00 28 [13:59:23]RAPDU: 90 00 [13:59:23]wFMCommunicate OK [13:59:23]wFMCommunicate request_size=4 [13:59:23]MH_SAM_APDU [13:59:23]CAPDU: 80 0D 03 02 [13:59:23]Write to MH i2c: E2 08 00 61 54 80 0D 03 02 00 00 00 00 30 [13:59:23]Write i2c OK [13:59:23]MH_I2C_Read... [13:59:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:23]Read from MH i2c: E2 [13:59:23]MH_I2C_Read... [13:59:23]Read from MH i2c: E2 0B 00 [13:59:23]MH_I2C_Read... [13:59:23]Read from MH i2c: E2 0B 00 61 54 00 60 DB 34 E9 A7 E2 A5 7D 90 00 34 [13:59:23]RAPDU: 60 DB 34 E9 A7 E2 A5 7D 90 00 [13:59:23]wFMCommunicate OK [13:59:23]SAM_PROTO_SignData done [13:59:23]FM_MakeSignedData done [13:59:23]CreateOFDProtocolMessage [13:59:23]wFMCommunicate request_size=4 [13:59:23]MH_SAM_APDU [13:59:23]CAPDU: 80 11 00 00 [13:59:23]Write to MH i2c: E2 08 00 62 54 80 11 00 00 00 00 00 00 30 [13:59:23]Write i2c OK [13:59:23]MH_I2C_Read... [13:59:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:23]Read from MH i2c: E2 [13:59:23]MH_I2C_Read... [13:59:23]Read from MH i2c: E2 17 00 [13:59:23]MH_I2C_Read... [13:59:23]Read from MH i2c: E2 17 00 62 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 87 [13:59:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:59:23]wFMCommunicate OK [13:59:23]CreateOFDProtocolMessage done [13:59:23]OFDSenderStorePacket 92625 [13:59:23]StoreOFDPacket docnum=92625 [13:59:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A2 01 00 00 BD 94 9A 01 C6 E5 5A 03 01 00 03 00 8E 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 39 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 34 35 30 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 71 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 42 E8 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D1 69 01 00 35 04 06 00 C6 8F 66 D7 A8 EC 60 DB 34 E9 A7 E2 A5 7D [13:59:23]CheckFolder [13:59:23]dirname=/storage/ofd_packets [13:59:23]CheckFolder done [13:59:23]ProducePacketName [13:59:23]name=ofd_packets/00092625 [13:59:23]NVStorageSaveData ofd_packets/00092625 [13:59:23]File name is /storage/ofd_packets/00092625 [13:59:23]Write 448 bytes [13:59:23]NVStorageSaveData done [13:59:23]OFDSenderStorePacket done [13:59:24]KKMCreateOFDPacket done [13:59:24]NVStorageSaveData kkm_last_timestamp [13:59:24]File name is /storage/kkm_last_timestamp [13:59:24]Write 4 bytes [13:59:24]NVStorageSaveData done [13:59:24]ExternCall_PrintAddStr [13:59:24]wPrintStart [13:59:24]Write to MH i2c: 01 00 00 63 54 B7 [13:59:24]OFD Sender: Processing packet 92625 [packets to send 63, broken 62] [13:59:24]ProducePacketName [13:59:24]name=ofd_packets/00092625 [13:59:24]OFD Sender: To server: pG, [13:59:24]CommunicateWithHost lk.salyk.kg:30040 [13:59:24]ConnectInit lk.salyk.kg [13:59:24]Write i2c OK [13:59:24]MH_I2C_Read... [13:59:24]Read from MH i2c: 01 [13:59:24]MH_I2C_Read... [13:59:24]Read from MH i2c: 01 07 00 [13:59:24]MH_I2C_Read... [13:59:24]Read from MH i2c: 01 07 00 63 54 00 00 00 00 00 FF 0F CC [13:59:24]RasterBufferAndPrint [13:59:24]line Счет N : (3)127517 [13:59:24]line ИНН: 02508201610067 [13:59:24]line Контрольно-Кассовый Чек [13:59:24]line ПРОДАЖА [13:59:24]line Товар: 4870202522695 [13:59:24]line Напиток Maxi Чай черный Малина 0,450 [13:59:24]line 3.000 * 70.00 [13:59:24]line = 210.00 [13:59:24]line НДС 12% НСП 1% [13:59:24]line > о реализуемом товаре [13:59:24]line Товар: 4870001570057 [13:59:24]line Напиток Pepsi 0,5л [13:59:24]line 1.000 * 80.00 [13:59:24]line = 80.00 [13:59:24]line НДС 12% НСП 1% [13:59:24]line > о реализуемом товаре [13:59:24]line ИТОГО: 290.00 [13:59:24]line НСП 1% : 2.57 [13:59:24]line НДС 12% : 30.80 [13:59:24]line Наличными: 0.00 [13:59:24]line Безнал.: 290.00 [13:59:24]line Место: АЗС № 5 "Партнер Нефть" [13:59:24]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [13:59:24]line СНО: Общий режим [13:59:24]line Чек 73 15.09.2024 13:59 [13:59:24]line Смена: 507 ФФД: 1.0 [13:59:24]line ЗНМ: 03000000022 [13:59:24]line РНМ: 0000000000091423 [13:59:24]line Версия ККМ: 001 [13:59:24]line Платежная система: О! деньги [13:59:24]line ФМ: 0000000000874692 [13:59:24]line ФД: 92625 [13:59:24]line ФПД: 218319208032492 [13:59:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T135930&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92625&fm=218319208032492&tin=02508201610067®Number=0000000000091423&sum=29000 [13:59:24]line 0 [13:59:24]written 0, free lines is 4095 [13:59:24]Connected sock=11 [13:59:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A2 01 00 00 BD 94 9A 01 C6 E5 5A 03 01 00 03 00 8E 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 39 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 34 35 30 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 71 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 42 E8 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D1 69 01 00 35 04 06 00 C6 8F 66 D7 A8 EC 60 DB 34 E9 A7 E2 A5 7D [13:59:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 08 94 47 00 AC B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D1 69 01 00 F4 03 04 00 BA 90 E6 66 B6 04 01 00 00 77 A6 4C B9 21 40 6A 41 [13:59:24]CommunicateWithHost err = 0 [13:59:24]CheckOFDResponse [13:59:24]1017 (14) - 77093643461234 [13:59:24]1041 (16) - 0000000000874692 [13:59:24]1040 (4) - 92625 [13:59:24]1012 (4) - 15.09.2024 07:46 [13:59:24]1206 (1) - 0 [13:59:24]OFD Sender: Remove packet 92625 [13:59:24]ProducePacketName [13:59:24]name=ofd_packets/00092625 [13:59:24]NVStorageDeleteData [13:59:24]Write to MH i2c: 01 00 00 94 54 E8 [13:59:24]Write i2c OK [13:59:24]MH_I2C_Read... [13:59:24]Read from MH i2c: 01 [13:59:24]MH_I2C_Read... [13:59:24]Read from MH i2c: 01 07 00 [13:59:24]MH_I2C_Read... [13:59:24]Read from MH i2c: 01 07 00 94 54 00 00 00 00 00 B2 0C AD [13:59:24]RasterBufferAndPrint [13:59:24]line [13:59:24]line [13:59:24]line [13:59:24]line [13:59:24]line [13:59:24]written 0, free lines is 3257 [13:59:24]MH_Cut [13:59:24]Write to MH i2c: D1 01 00 9B 54 01 C1 [13:59:24]Write i2c OK [13:59:24]MH_I2C_Read... [13:59:24]Read from MH i2c: D1 [13:59:24]MH_I2C_Read... [13:59:24]Read from MH i2c: D1 01 00 [13:59:24]MH_I2C_Read... [13:59:24]Read from MH i2c: D1 01 00 9B 54 00 C0 [13:59:24]Write to MH i2c: 01 00 00 9C 54 F0 [13:59:24]Write i2c OK [13:59:24]MH_I2C_Read... [13:59:24]OFD Sender: No OFD packet to send [13:59:25]*** Cut start [13:59:25]*** Purtial cut [13:59:25]*** Stage 1: CUTSNS_PIN = 1 [13:59:27]Read from MH i2c: 01 [13:59:27]MH_I2C_Read... [13:59:27]*** Stop cut motor [13:59:27]*** Cut end [13:59:27]Read from MH i2c: 01 07 00 [13:59:27]MH_I2C_Read... [13:59:27]Read from MH i2c: 01 07 00 9C 54 00 00 00 00 00 FF 0F 05 [13:59:27]process_action close_receipt done [13:59:27]requested_data is exist [13:59:27]produce_requested_data [13:59:27]requested_item fm.sn is exist - process it [13:59:27]wFMCommunicate request_size=4 [13:59:27]MH_SAM_APDU [13:59:27]CAPDU: 80 11 00 00 [13:59:27]Write to MH i2c: E2 08 00 9D 54 80 11 00 00 00 00 00 00 6B [13:59:27]Write i2c OK [13:59:27]MH_I2C_Read... [13:59:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:27]Read from MH i2c: E2 [13:59:27]MH_I2C_Read... [13:59:27]Read from MH i2c: E2 17 00 [13:59:27]MH_I2C_Read... [13:59:27]Read from MH i2c: E2 17 00 9D 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C2 [13:59:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:59:27]wFMCommunicate OK [13:59:27]requested_item fd.num is exist - process it [13:59:27]SAM_PROTO_GetFieldsCounters [13:59:27]wFMCommunicate request_size=4 [13:59:27]MH_SAM_APDU [13:59:27]CAPDU: 80 13 00 00 [13:59:27]Write to MH i2c: E2 08 00 9E 54 80 13 00 00 00 00 00 00 6E [13:59:27]Write i2c OK [13:59:27]MH_I2C_Read... [13:59:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:27]Read from MH i2c: E2 [13:59:27]MH_I2C_Read... [13:59:27]Read from MH i2c: E2 62 00 [13:59:27]MH_I2C_Read... [13:59:27]Read from MH i2c: E2 62 00 9E 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D1 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [13:59:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D1 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:59:27]wFMCommunicate OK [13:59:27]SAM_PROTO_GetFieldsCounters done [13:59:27]requested_item shift.num is exist - process it [13:59:27]requested_item shift.opened is exist - process it [13:59:27]req_shift_opened [13:59:27]FM_GetShiftState [13:59:27]SAM_PROTO_GetShiftState [13:59:27]wFMCommunicate request_size=4 [13:59:27]MH_SAM_APDU [13:59:27]CAPDU: 80 13 01 00 [13:59:27]Write to MH i2c: E2 08 00 9F 54 80 13 01 00 00 00 00 00 70 [13:59:27]Write i2c OK [13:59:27]MH_I2C_Read... [13:59:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:27]Read from MH i2c: E2 [13:59:27]MH_I2C_Read... [13:59:27]Read from MH i2c: E2 0E 00 [13:59:27]MH_I2C_Read... [13:59:27]Read from MH i2c: E2 0E 00 9F 54 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 F2 [13:59:27]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [13:59:27]wFMCommunicate OK [13:59:27]SAM_PROTO_GetShiftState done [13:59:27]FM_GetShiftState done [13:59:27]req_shift_opened done [13:59:27]requested_item shift.open_date is exist - process it [13:59:27]req_shift_open_date [13:59:27]req_shift_open_date done [13:59:27]produce_requested_data done [13:59:27]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92625,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [13:59:27]process_action_free close_receipt [13:59:27]json_value_free [13:59:27]json_value_free done [13:59:27]process_json_proto returns [13:59:27]Send response to host [13:59:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92625,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [13:59:27]free response buf [13:59:27]execute_script done [13:59:27]execute_script returns [13:59:27]free content buf [13:59:27]Sock 8.Close socket [13:59:27]Sock 8.Thread stoped [13:59:29]OFD Sender: No OFD packet to send [13:59:34]OFD Sender: No OFD packet to send [13:59:39]OFD Sender: No OFD packet to send [13:59:44]OFD Sender: No OFD packet to send [13:59:49]OFD Sender: No OFD packet to send [13:59:54]OFD Sender: No OFD packet to send [13:59:59]OFD Sender: No OFD packet to send [14:00:04]OFD Sender: No OFD packet to send [14:00:10]OFD Sender: No OFD packet to send [14:00:15]OFD Sender: No OFD packet to send [14:00:20]OFD Sender: No OFD packet to send [14:00:25]OFD Sender: No OFD packet to send [14:00:30]OFD Sender: No OFD packet to send [14:00:35]OFD Sender: No OFD packet to send [14:00:40]OFD Sender: No OFD packet to send [14:00:45]OFD Sender: No OFD packet to send [14:00:50]OFD Sender: No OFD packet to send [14:00:55]OFD Sender: No OFD packet to send [14:01:00]OFD Sender: No OFD packet to send [14:01:05]OFD Sender: No OFD packet to send [14:01:10]OFD Sender: No OFD packet to send [14:01:15]OFD Sender: No OFD packet to send [14:01:20]OFD Sender: No OFD packet to send [14:01:25]OFD Sender: No OFD packet to send [14:01:30]OFD Sender: No OFD packet to send [14:01:35]OFD Sender: No OFD packet to send [14:01:40]OFD Sender: No OFD packet to send [14:01:45]OFD Sender: No OFD packet to send [14:01:49]accept exits with 9 [14:01:49]New connection [14:01:49]New thread 3066658148 created [14:01:49]Thread 3066801508 joined [14:01:49]Waiting for new connection... [14:01:49] Sock 9.Parse request [14:01:49]Sock 9.Check first char [14:01:49]Sock 9.First char is OK [14:01:49]request: POST /json_proto HTTP/1.0 [14:01:49]Method: POST [14:01:49]URL: /json_proto [14:01:49]Method is POST - this is cgi request [14:01:49]url: /json_proto [14:01:49]query_string will be loaded in cgi processing [14:01:49]execute_cgi json_proto POST (null) [14:01:49]execute_cgi path=json_proto method=POST [14:01:49]POST find Content-Length [14:01:49]Host: 172.17.57.71:8080 [14:01:49]Content-Length: 782 [14:01:49]Content-Type: application/json [14:01:49] [14:01:49]POST finish read [14:01:49]Found Content-Length = 782 [14:01:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4218601", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:49]execute_script... [14:01:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4218601", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:49]POST & json_proto [14:01:49]process_json_proto [14:01:49]json parsed OK: [14:01:49]protocol is kg_v1.0 [14:01:49]action value=close_receipt [14:01:49]process_action close_receipt [14:01:49]cmd_close_receipt [14:01:49]MH_GetDate [14:01:49]Write to MH i2c: F0 00 00 A0 54 E3 [14:01:49]Write i2c OK [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: F0 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: F0 09 00 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: F0 09 00 A0 54 00 D6 E8 E6 66 33 3A A4 66 6D [14:01:49]GetLastDocTimeStamp 1726408770 [14:01:49]current date 1726408918 [14:01:49]FM_GetShiftState [14:01:49]SAM_PROTO_GetShiftState [14:01:49]wFMCommunicate request_size=4 [14:01:49]MH_SAM_APDU [14:01:49]CAPDU: 80 13 01 00 [14:01:49]Write to MH i2c: E2 08 00 A1 54 80 13 01 00 00 00 00 00 72 [14:01:49]Write i2c OK [14:01:49]MH_I2C_Read... [14:01:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:49]Read from MH i2c: E2 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: E2 0E 00 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: E2 0E 00 A1 54 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 F4 [14:01:49]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [14:01:49]wFMCommunicate OK [14:01:49]SAM_PROTO_GetShiftState done [14:01:49]FM_GetShiftState done [14:01:49]opened in 1726359809 [14:01:49]opened+sec_in_day 1726446209 [14:01:49]quantity*price = 0 [14:01:49]sum+1 = 1 [14:01:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 74 15.09.2024 14:01 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Талоны: Партнер нефть 4218601 ФМ: 0000000000874692 ФД: 92626 ФПД: 18109147265323 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T140158&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92626&fm=18109147265323&tin=02508201610067®Number=0000000000091423&sum=0 [14:01:51]StoreToDocumentArchive [14:01:51]shift 507 fd 92626 [14:01:51]save to /storage/0507/doc_00092626 [14:01:51]save last doc name /storage/0507/doc_00092626 to /storage/kkm_last_doc_name [14:01:51]save OK [14:01:51]Clear old archive folders... [14:01:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:01:51]tlvbuf is 01040F90 [14:01:51]SAM_PROTO_ClearQueue [14:01:51]wFMCommunicate request_size=4 [14:01:51]MH_SAM_APDU [14:01:51]CAPDU: 80 09 00 00 [14:01:51]Write to MH i2c: E2 08 00 AE 54 80 09 00 00 00 00 00 00 74 [14:01:51]Write i2c OK [14:01:51]MH_I2C_Read... [14:01:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:01:51]Read from MH i2c: E2 [14:01:51]MH_I2C_Read... [14:01:51]Read from MH i2c: E2 03 00 [14:01:51]MH_I2C_Read... [14:01:51]Read from MH i2c: E2 03 00 AE 54 00 90 00 76 [14:01:51]RAPDU: 90 00 [14:01:51]wFMCommunicate OK [14:01:51]SAM_PROTO_ClearQueue done [14:01:51]KKMCreateOFDPacket [14:01:51]OFDProtocolAddRootSTLVToBuf [14:01:51]FM_MakeSignedData [14:01:51]FM_MakeSignedData [14:01:51]SAM_PROTO_SignData [14:01:51]wFMCommunicate request_size=4 [14:01:51]MH_SAM_APDU [14:01:51]CAPDU: 80 0D 01 02 [14:01:51]Write to MH i2c: E2 08 00 AF 54 80 0D 01 02 00 00 00 00 7C [14:01:51]Write i2c OK [14:01:51]MH_I2C_Read... [14:01:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:01:51]Read from MH i2c: E2 [14:01:51]MH_I2C_Read... [14:01:51]Read from MH i2c: E2 03 00 [14:01:51]MH_I2C_Read... [14:01:51]Read from MH i2c: E2 03 00 AF 54 00 90 00 77 [14:01:51]RAPDU: 90 00 [14:01:51]wFMCommunicate OK [14:01:51]wFMCommunicate request_size=255 [14:01:51]MH_SAM_APDU [14:01:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 D6 E8 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D2 69 01 00 35 04 06 00 10 [14:01:51]Write to MH i2c: E2 02 01 B0 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 D6 E8 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D2 69 01 00 35 04 06 00 10 00 00 57 [14:01:51]Write i2c OK [14:01:51]MH_I2C_Read... [14:01:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:51]Read from MH i2c: E2 [14:01:51]MH_I2C_Read... [14:01:51]Read from MH i2c: E2 03 00 [14:01:51]MH_I2C_Read... [14:01:51]Read from MH i2c: E2 03 00 B0 54 00 90 00 78 [14:01:51]RAPDU: 90 00 [14:01:51]wFMCommunicate OK [14:01:51]wFMCommunicate request_size=10 [14:01:51]MH_SAM_APDU [14:01:51]CAPDU: 80 0D 02 02 05 78 5D 4A 39 2B [14:01:51]Write to MH i2c: E2 0D 00 B1 54 80 0D 02 02 05 00 78 5D 4A 39 2B 00 00 0C [14:01:51]Write i2c OK [14:01:51]MH_I2C_Read... [14:01:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:51]Read from MH i2c: E2 [14:01:51]MH_I2C_Read... [14:01:51]Read from MH i2c: E2 03 00 [14:01:51]MH_I2C_Read... [14:01:51]Read from MH i2c: E2 03 00 B1 54 00 90 00 79 [14:01:51]RAPDU: 90 00 [14:01:51]wFMCommunicate OK [14:01:51]wFMCommunicate request_size=4 [14:01:51]MH_SAM_APDU [14:01:51]CAPDU: 80 0D 03 02 [14:01:51]Write to MH i2c: E2 08 00 B2 54 80 0D 03 02 00 00 00 00 81 [14:01:51]Write i2c OK [14:01:51]MH_I2C_Read... [14:01:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:01:51]Read from MH i2c: E2 [14:01:51]MH_I2C_Read... [14:01:51]Read from MH i2c: E2 0B 00 [14:01:51]MH_I2C_Read... [14:01:51]Read from MH i2c: E2 0B 00 B2 54 00 BF BB A2 19 39 81 5D 14 90 00 E2 [14:01:51]RAPDU: BF BB A2 19 39 81 5D 14 90 00 [14:01:51]wFMCommunicate OK [14:01:51]SAM_PROTO_SignData done [14:01:51]FM_MakeSignedData done [14:01:51]CreateOFDProtocolMessage [14:01:51]wFMCommunicate request_size=4 [14:01:51]MH_SAM_APDU [14:01:51]CAPDU: 80 11 00 00 [14:01:51]Write to MH i2c: E2 08 00 B3 54 80 11 00 00 00 00 00 00 81 [14:01:51]Write i2c OK [14:01:51]MH_I2C_Read... [14:01:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:51]Read from MH i2c: E2 [14:01:51]MH_I2C_Read... [14:01:51]Read from MH i2c: E2 17 00 [14:01:51]MH_I2C_Read... [14:01:51]Read from MH i2c: E2 17 00 B3 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D8 [14:01:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:01:51]wFMCommunicate OK [14:01:51]CreateOFDProtocolMessage done [14:01:51]OFDSenderStorePacket 92626 [14:01:51]StoreOFDPacket docnum=92626 [14:01:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 28 12 07 01 22 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 D6 E8 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D2 69 01 00 35 04 06 00 10 78 5D 4A 39 2B BF BB A2 19 39 81 5D 14 [14:01:51]CheckFolder [14:01:51]dirname=/storage/ofd_packets [14:01:51]CheckFolder done [14:01:51]ProducePacketName [14:01:51]name=ofd_packets/00092626 [14:01:51]NVStorageSaveData ofd_packets/00092626 [14:01:51]File name is /storage/ofd_packets/00092626 [14:01:51]Write 301 bytes [14:01:51]NVStorageSaveData done [14:01:51]OFDSenderStorePacket done [14:01:51]KKMCreateOFDPacket done [14:01:51]NVStorageSaveData kkm_last_timestamp [14:01:51]File name is /storage/kkm_last_timestamp [14:01:51]Write 4 bytes [14:01:51]NVStorageSaveData done [14:01:51]ExternCall_PrintAddStr [14:01:51]wPrintStart [14:01:51]Write to MH i2c: 01 00 00 B4 54 08 [14:01:51]Write i2c OK [14:01:51]MH_I2C_Read... [14:01:51]Read from MH i2c: 01 [14:01:51]MH_I2C_Read... [14:01:51]Read from MH i2c: 01 07 00 [14:01:51]MH_I2C_Read... [14:01:51]Read from MH i2c: 01 07 00 B4 54 00 00 00 00 00 FF 0F 1D [14:01:51]RasterBufferAndPrint [14:01:51]line Счет N : (1)648441 [14:01:51]line ИНН: 02508201610067 [14:01:51]line Контрольно-Кассовый Чек [14:01:51]line ПРОДАЖА [14:01:51]line ТРК (МРК, ГНК) : 33 [14:01:51]line Товар: 2710124130 [14:01:51]line Аи-92-К-5 [14:01:51]line 10.000 * 0.00 [14:01:51]line = 0.00 [14:01:51]line НДС 12% НСП 1% [14:01:51]line > о реализуемом товаре [14:01:51]line ИТОГО: 0.00 [14:01:51]line НСП 1% : 0.00 [14:01:51]line НДС 12% : 0.00 [14:01:51]line Наличными: 0.00 [14:01:51]line Безнал.: 0.00 [14:01:51]line Место: АЗС № 5 "Партнер Нефть" [14:01:51]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [14:01:51]line СНО: Общий режим [14:01:51]line Чек 74 15.09.2024 14:01 [14:01:51]line Смена: 507 ФФД: 1.0 [14:01:51]line ЗНМ: 03000000022 [14:01:51]line РНМ: 0000000000091423 [14:01:51]line Версия ККМ: 001 [14:01:51]line Талоны: Партнер нефть [14:01:51]line 4218601 [14:01:51]line ФМ: 0000000000874692 [14:01:51]line ФД: 92626 [14:01:51]line ФПД: 18109147265323 [14:01:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T140158&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92626&fm=18109147265323&tin=02508201610067®Number=0000000000091423&sum=0 [14:01:51]written 0, free lines is 4095 [14:01:51]OFD Sender: Processing packet 92626 [packets to send 63, broken 62] [14:01:51]ProducePacketName [14:01:51]name=ofd_packets/00092626 [14:01:51]OFD Sender: To server: pG, [14:01:51]CommunicateWithHost lk.salyk.kg:30040 [14:01:51]ConnectInit lk.salyk.kg [14:01:51]Connected sock=10 [14:01:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 28 12 07 01 22 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 D6 E8 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D2 69 01 00 35 04 06 00 10 78 5D 4A 39 2B BF BB A2 19 39 81 5D 14 [14:01:52]Write to MH i2c: 01 00 00 DE 54 32 [14:01:52]Write i2c OK [14:01:52]MH_I2C_Read... [14:01:52]Read from MH i2c: 01 [14:01:52]MH_I2C_Read... [14:01:52]Read from MH i2c: 01 07 00 [14:01:52]MH_I2C_Read... [14:01:52]Read from MH i2c: 01 07 00 DE 54 00 00 00 00 00 03 0D 49 [14:01:52]RasterBufferAndPrint [14:01:52]line [14:01:52]line [14:01:52]line [14:01:52]line [14:01:52]line [14:01:52]written 0, free lines is 3337 [14:01:52]MH_Cut [14:01:52]Write to MH i2c: D1 01 00 E5 54 01 0B [14:01:52]Write i2c OK [14:01:52]MH_I2C_Read... [14:01:52]Read from MH i2c: D1 [14:01:52]MH_I2C_Read... [14:01:52]Read from MH i2c: D1 01 00 [14:01:52]MH_I2C_Read... [14:01:52]Read from MH i2c: D1 01 00 E5 54 00 0A [14:01:52]Write to MH i2c: 01 00 00 E6 54 3A [14:01:52]Write i2c OK [14:01:52]MH_I2C_Read... [14:01:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 5B 4A 47 00 C3 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D2 69 01 00 F4 03 04 00 4E 91 E6 66 B6 04 01 00 00 CC DB 69 91 74 D2 43 05 [14:01:52]CommunicateWithHost err = 0 [14:01:52]CheckOFDResponse [14:01:52]1017 (14) - 77093643461234 [14:01:52]1041 (16) - 0000000000874692 [14:01:52]1040 (4) - 92626 [14:01:52]1012 (4) - 15.09.2024 07:48 [14:01:52]1206 (1) - 0 [14:01:52]OFD Sender: Remove packet 92626 [14:01:52]ProducePacketName [14:01:52]name=ofd_packets/00092626 [14:01:52]NVStorageDeleteData [14:01:52]*** Cut start [14:01:52]*** Purtial cut [14:01:52]*** Stage 1: CUTSNS_PIN = 1 [14:01:52]OFD Sender: No OFD packet to send [14:01:54]Read from MH i2c: 01 [14:01:54]MH_I2C_Read... [14:01:54]*** Stop cut motor [14:01:54]*** Cut end [14:01:54]Read from MH i2c: 01 07 00 [14:01:54]MH_I2C_Read... [14:01:54]Read from MH i2c: 01 07 00 E6 54 00 00 00 00 00 FF 0F 4F [14:01:54]process_action close_receipt done [14:01:54]requested_data is exist [14:01:54]produce_requested_data [14:01:54]requested_item fm.sn is exist - process it [14:01:54]wFMCommunicate request_size=4 [14:01:54]MH_SAM_APDU [14:01:54]CAPDU: 80 11 00 00 [14:01:54]Write to MH i2c: E2 08 00 E7 54 80 11 00 00 00 00 00 00 B5 [14:01:54]Write i2c OK [14:01:54]MH_I2C_Read... [14:01:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:54]Read from MH i2c: E2 [14:01:54]MH_I2C_Read... [14:01:54]Read from MH i2c: E2 17 00 [14:01:54]MH_I2C_Read... [14:01:54]Read from MH i2c: E2 17 00 E7 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 0C [14:01:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:01:54]wFMCommunicate OK [14:01:54]requested_item fd.num is exist - process it [14:01:54]SAM_PROTO_GetFieldsCounters [14:01:54]wFMCommunicate request_size=4 [14:01:54]MH_SAM_APDU [14:01:54]CAPDU: 80 13 00 00 [14:01:54]Write to MH i2c: E2 08 00 E8 54 80 13 00 00 00 00 00 00 B8 [14:01:54]Write i2c OK [14:01:54]MH_I2C_Read... [14:01:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:01:54]Read from MH i2c: E2 [14:01:54]MH_I2C_Read... [14:01:54]Read from MH i2c: E2 62 00 [14:01:54]MH_I2C_Read... [14:01:54]Read from MH i2c: E2 62 00 E8 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D2 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [14:01:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D2 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:01:54]wFMCommunicate OK [14:01:54]SAM_PROTO_GetFieldsCounters done [14:01:54]requested_item shift.num is exist - process it [14:01:54]requested_item shift.opened is exist - process it [14:01:54]req_shift_opened [14:01:54]FM_GetShiftState [14:01:54]SAM_PROTO_GetShiftState [14:01:54]wFMCommunicate request_size=4 [14:01:54]MH_SAM_APDU [14:01:54]CAPDU: 80 13 01 00 [14:01:54]Write to MH i2c: E2 08 00 E9 54 80 13 01 00 00 00 00 00 BA [14:01:54]Write i2c OK [14:01:54]MH_I2C_Read... [14:01:54]Read from MH i2c: E2 [14:01:54]MH_I2C_Read... [14:01:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:54]Read from MH i2c: E2 0E 00 [14:01:54]MH_I2C_Read... [14:01:54]Read from MH i2c: E2 0E 00 E9 54 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 3C [14:01:54]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [14:01:54]wFMCommunicate OK [14:01:54]SAM_PROTO_GetShiftState done [14:01:54]FM_GetShiftState done [14:01:54]req_shift_opened done [14:01:54]requested_item shift.open_date is exist - process it [14:01:54]req_shift_open_date [14:01:54]req_shift_open_date done [14:01:54]produce_requested_data done [14:01:54]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92626,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [14:01:54]process_action_free close_receipt [14:01:54]json_value_free [14:01:54]json_value_free done [14:01:54]process_json_proto returns [14:01:54]Send response to host [14:01:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92626,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [14:01:54]free response buf [14:01:54]execute_script done [14:01:54]execute_script returns [14:01:54]free content buf [14:01:54]Sock 9.Close socket [14:01:54]Sock 9.Thread stoped [14:01:57]OFD Sender: No OFD packet to send [14:02:02]OFD Sender: No OFD packet to send [14:02:07]OFD Sender: No OFD packet to send [14:02:12]OFD Sender: No OFD packet to send [14:02:17]OFD Sender: No OFD packet to send [14:02:22]OFD Sender: No OFD packet to send [14:02:27]OFD Sender: No OFD packet to send [14:02:32]OFD Sender: No OFD packet to send [14:02:37]OFD Sender: No OFD packet to send [14:02:42]OFD Sender: No OFD packet to send [14:02:47]OFD Sender: No OFD packet to send [14:02:52]OFD Sender: No OFD packet to send [14:02:57]OFD Sender: No OFD packet to send [14:03:02]OFD Sender: No OFD packet to send [14:03:07]OFD Sender: No OFD packet to send [14:03:12]OFD Sender: No OFD packet to send [14:03:17]OFD Sender: No OFD packet to send [14:03:22]OFD Sender: No OFD packet to send [14:03:27]OFD Sender: No OFD packet to send [14:03:32]OFD Sender: No OFD packet to send [14:03:37]OFD Sender: No OFD packet to send [14:03:42]OFD Sender: No OFD packet to send [14:03:47]OFD Sender: No OFD packet to send [14:03:52]OFD Sender: No OFD packet to send [14:03:57]OFD Sender: No OFD packet to send [14:04:02]OFD Sender: No OFD packet to send [14:04:07]OFD Sender: No OFD packet to send [14:04:12]OFD Sender: No OFD packet to send [14:04:17]OFD Sender: No OFD packet to send [14:04:22]OFD Sender: No OFD packet to send [14:04:27]OFD Sender: No OFD packet to send [14:04:32]OFD Sender: No OFD packet to send [14:04:37]OFD Sender: No OFD packet to send [14:04:42]OFD Sender: No OFD packet to send [14:04:47]OFD Sender: No OFD packet to send [14:04:52]OFD Sender: No OFD packet to send [14:04:54]accept exits with 8 [14:04:54]New connection [14:04:54]New thread 3066801508 created [14:04:54]Thread 3066658148 joined [14:04:54]Waiting for new connection... [14:04:54] Sock 8.Parse request [14:04:54]Sock 8.Check first char [14:04:54]Sock 8.First char is OK [14:04:54]request: POST /json_proto HTTP/1.0 [14:04:54]Method: POST [14:04:54]URL: /json_proto [14:04:54]Method is POST - this is cgi request [14:04:54]url: /json_proto [14:04:54]query_string will be loaded in cgi processing [14:04:54]execute_cgi json_proto POST (null) [14:04:54]execute_cgi path=json_proto method=POST [14:04:54]POST find Content-Length [14:04:54]Host: 172.17.57.71:8080 [14:04:54]Content-Length: 677 [14:04:54]Content-Type: application/json [14:04:54] [14:04:54]POST finish read [14:04:54]Found Content-Length = 677 [14:04:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.000, "sum" : 133.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 133.00, "total" : 133.00, "payments": [ { "type": 0, "sum" : 133.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:54]execute_script... [14:04:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.000, "sum" : 133.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 133.00, "total" : 133.00, "payments": [ { "type": 0, "sum" : 133.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:54]POST & json_proto [14:04:54]process_json_proto [14:04:54]json parsed OK: [14:04:54]protocol is kg_v1.0 [14:04:54]action value=close_receipt [14:04:54]process_action close_receipt [14:04:54]cmd_close_receipt [14:04:54]MH_GetDate [14:04:54]Write to MH i2c: F0 00 00 EA 54 2D [14:04:54]Write i2c OK [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: F0 [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: F0 09 00 [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: F0 09 00 EA 54 00 8F E9 E6 66 33 3A A4 66 71 [14:04:54]GetLastDocTimeStamp 1726408918 [14:04:54]current date 1726409103 [14:04:54]FM_GetShiftState [14:04:54]SAM_PROTO_GetShiftState [14:04:54]wFMCommunicate request_size=4 [14:04:54]MH_SAM_APDU [14:04:54]CAPDU: 80 13 01 00 [14:04:54]Write to MH i2c: E2 08 00 EB 54 80 13 01 00 00 00 00 00 BC [14:04:54]Write i2c OK [14:04:54]MH_I2C_Read... [14:04:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:54]Read from MH i2c: E2 [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: E2 0E 00 [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: E2 0E 00 EB 54 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 3E [14:04:54]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [14:04:54]wFMCommunicate OK [14:04:54]SAM_PROTO_GetShiftState done [14:04:54]FM_GetShiftState done [14:04:54]opened in 1726359809 [14:04:54]opened+sec_in_day 1726446209 [14:04:54]quantity*price = 13380 [14:04:54]sum+1 = 13381 [14:04:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.80 ИТОГО: 133.00 Внесено: 133.00 СДАЧА: 0.00 НСП 1% : 1.18 НДС 12% : 14.21 Наличными: 133.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 75 15.09.2024 14:05 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92627 ФПД: 186646497359298 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T140503&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92627&fm=186646497359298&tin=02508201610067®Number=0000000000091423&sum=13300 [14:04:55]StoreToDocumentArchive [14:04:55]shift 507 fd 92627 [14:04:55]save to /storage/0507/doc_00092627 [14:04:55]save last doc name /storage/0507/doc_00092627 to /storage/kkm_last_doc_name [14:04:55]save OK [14:04:55]Clear old archive folders... [14:04:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:04:55]tlvbuf is 00FB93E0 [14:04:55]SAM_PROTO_ClearQueue [14:04:55]wFMCommunicate request_size=4 [14:04:55]MH_SAM_APDU [14:04:55]CAPDU: 80 09 00 00 [14:04:55]Write to MH i2c: E2 08 00 F8 54 80 09 00 00 00 00 00 00 BE [14:04:55]Write i2c OK [14:04:55]MH_I2C_Read... [14:04:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:04:55]Read from MH i2c: E2 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: E2 03 00 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: E2 03 00 F8 54 00 90 00 C0 [14:04:55]RAPDU: 90 00 [14:04:55]wFMCommunicate OK [14:04:55]SAM_PROTO_ClearQueue done [14:04:55]KKMCreateOFDPacket [14:04:55]OFDProtocolAddRootSTLVToBuf [14:04:55]FM_MakeSignedData [14:04:55]FM_MakeSignedData [14:04:55]SAM_PROTO_SignData [14:04:55]wFMCommunicate request_size=4 [14:04:55]MH_SAM_APDU [14:04:55]CAPDU: 80 0D 01 02 [14:04:55]Write to MH i2c: E2 08 00 F9 54 80 0D 01 02 00 00 00 00 C6 [14:04:55]Write i2c OK [14:04:55]MH_I2C_Read... [14:04:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:04:55]Read from MH i2c: E2 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: E2 03 00 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: E2 03 00 F9 54 00 90 00 C1 [14:04:55]RAPDU: 90 00 [14:04:55]wFMCommunicate OK [14:04:55]wFMCommunicate request_size=255 [14:04:55]MH_SAM_APDU [14:04:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 44 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 05 00 00 00 00 07 04 06 00 F4 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 8F E9 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D3 69 01 00 35 04 06 00 A9 [14:04:55]Write to MH i2c: E2 02 01 FA 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 44 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 05 00 00 00 00 07 04 06 00 F4 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 8F E9 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D3 69 01 00 35 04 06 00 A9 00 00 A0 [14:04:55]Write i2c OK [14:04:55]MH_I2C_Read... [14:04:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:55]Read from MH i2c: E2 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: E2 03 00 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: E2 03 00 FA 54 00 90 00 C2 [14:04:55]RAPDU: 90 00 [14:04:55]wFMCommunicate OK [14:04:55]wFMCommunicate request_size=10 [14:04:55]MH_SAM_APDU [14:04:55]CAPDU: 80 0D 02 02 05 C1 06 2C 75 C2 [14:04:55]Write to MH i2c: E2 0D 00 FB 54 80 0D 02 02 05 00 C1 06 2C 75 C2 00 00 FD [14:04:55]Write i2c OK [14:04:55]MH_I2C_Read... [14:04:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:55]Read from MH i2c: E2 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: E2 03 00 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: E2 03 00 FB 54 00 90 00 C3 [14:04:55]RAPDU: 90 00 [14:04:55]wFMCommunicate OK [14:04:55]wFMCommunicate request_size=4 [14:04:55]MH_SAM_APDU [14:04:55]CAPDU: 80 0D 03 02 [14:04:55]Write to MH i2c: E2 08 00 FC 54 80 0D 03 02 00 00 00 00 CB [14:04:55]Write i2c OK [14:04:55]MH_I2C_Read... [14:04:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:04:55]Read from MH i2c: E2 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: E2 0B 00 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: E2 0B 00 FC 54 00 21 99 E0 BC C8 C4 3F B2 90 00 9F [14:04:55]RAPDU: 21 99 E0 BC C8 C4 3F B2 90 00 [14:04:55]wFMCommunicate OK [14:04:55]SAM_PROTO_SignData done [14:04:55]FM_MakeSignedData done [14:04:55]CreateOFDProtocolMessage [14:04:55]wFMCommunicate request_size=4 [14:04:55]MH_SAM_APDU [14:04:55]CAPDU: 80 11 00 00 [14:04:55]Write to MH i2c: E2 08 00 FD 54 80 11 00 00 00 00 00 00 CB [14:04:55]Write i2c OK [14:04:55]MH_I2C_Read... [14:04:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:55]Read from MH i2c: E2 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: E2 17 00 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: E2 17 00 FD 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 22 [14:04:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:04:55]wFMCommunicate OK [14:04:55]CreateOFDProtocolMessage done [14:04:55]OFDSenderStorePacket 92627 [14:04:55]StoreOFDPacket docnum=92627 [14:04:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 00 F3 07 01 08 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 44 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 05 00 00 00 00 07 04 06 00 F4 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 8F E9 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D3 69 01 00 35 04 06 00 A9 C1 06 2C 75 C2 21 99 E0 BC C8 C4 3F B2 [14:04:55]CheckFolder [14:04:55]dirname=/storage/ofd_packets [14:04:55]CheckFolder done [14:04:55]ProducePacketName [14:04:55]name=ofd_packets/00092627 [14:04:55]NVStorageSaveData ofd_packets/00092627 [14:04:55]File name is /storage/ofd_packets/00092627 [14:04:55]Write 301 bytes [14:04:55]NVStorageSaveData done [14:04:55]OFDSenderStorePacket done [14:04:55]KKMCreateOFDPacket done [14:04:55]NVStorageSaveData kkm_last_timestamp [14:04:55]File name is /storage/kkm_last_timestamp [14:04:55]Write 4 bytes [14:04:55]NVStorageSaveData done [14:04:55]ExternCall_PrintAddStr [14:04:55]wPrintStart [14:04:55]Write to MH i2c: 01 00 00 FE 54 52 [14:04:55]Write i2c OK [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: 01 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: 01 07 00 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: 01 07 00 FE 54 00 00 00 00 00 FF 0F 67 [14:04:55]RasterBufferAndPrint [14:04:55]line Счет N : (1)648442 [14:04:55]line ИНН: 02508201610067 [14:04:55]line Контрольно-Кассовый Чек [14:04:55]line ПРОДАЖА [14:04:55]line ТРК (МРК, ГНК) : 53 [14:04:55]line Товар: 2710124130 [14:04:55]line Аи-92-К-5 [14:04:55]line 2.000 * 66.90 [14:04:55]line = 133.80 [14:04:55]line НДС 12% НСП 1% [14:04:55]line > о реализуемом товаре [14:04:55]line ОКРУГЛЕНИЕ: -0.80 [14:04:55]line ИТОГО: 133.00 [14:04:55]line Внесено: 133.00 [14:04:55]line СДАЧА: 0.00 [14:04:55]line НСП 1% : 1.18 [14:04:55]line НДС 12% : 14.21 [14:04:55]line Наличными: 133.00 [14:04:55]line Безнал.: 0.00 [14:04:55]line Место: АЗС № 5 "Партнер Нефть" [14:04:55]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [14:04:55]line СНО: Общий режим [14:04:55]line Чек 75 15.09.2024 14:05 [14:04:55]line Смена: 507 ФФД: 1.0 [14:04:55]line ЗНМ: 03000000022 [14:04:55]line РНМ: 0000000000091423 [14:04:55]line Версия ККМ: 001 [14:04:55]line ФМ: 0000000000874692 [14:04:55]line ФД: 92627 [14:04:55]line ФПД: 186646497359298 [14:04:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T140503&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92627&fm=186646497359298&tin=02508201610067®Number=0000000000091423&sum=13300 [14:04:55]OFD Sender: Processing packet 92627 [packets to send 63, broken 62] [14:04:55]ProducePacketName [14:04:55]name=ofd_packets/00092627 [14:04:55]OFD Sender: To server: pG, [14:04:55]CommunicateWithHost lk.salyk.kg:30040 [14:04:55]ConnectInit lk.salyk.kg [14:04:55]written 0, free lines is 4095 [14:04:56]Connected sock=10 [14:04:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 00 F3 07 01 08 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 44 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 05 00 00 00 00 07 04 06 00 F4 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 8F E9 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D3 69 01 00 35 04 06 00 A9 C1 06 2C 75 C2 21 99 E0 BC C8 C4 3F B2 [14:04:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 02 80 47 00 3D 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D3 69 01 00 F4 03 04 00 06 92 E6 66 B6 04 01 00 00 C7 59 8F 62 A1 C9 7E 21 [14:04:56]CommunicateWithHost err = 0 [14:04:56]CheckOFDResponse [14:04:56]1017 (14) - 77093643461234 [14:04:56]1041 (16) - 0000000000874692 [14:04:56]1040 (4) - 92627 [14:04:56]1012 (4) - 15.09.2024 07:51 [14:04:56]1206 (1) - 0 [14:04:56]OFD Sender: Remove packet 92627 [14:04:56]ProducePacketName [14:04:56]name=ofd_packets/00092627 [14:04:56]NVStorageDeleteData [14:04:56]Write to MH i2c: 01 00 00 29 55 7E [14:04:56]Write i2c OK [14:04:56]MH_I2C_Read... [14:04:56]Read from MH i2c: 01 [14:04:56]MH_I2C_Read... [14:04:56]Read from MH i2c: 01 07 00 [14:04:56]MH_I2C_Read... [14:04:56]Read from MH i2c: 01 07 00 29 55 00 00 00 00 00 01 0D 93 [14:04:56]RasterBufferAndPrint [14:04:56]line [14:04:56]line [14:04:56]line [14:04:56]line [14:04:56]line [14:04:56]written 0, free lines is 3335 [14:04:56]MH_Cut [14:04:56]Write to MH i2c: D1 01 00 30 55 01 57 [14:04:56]Write i2c OK [14:04:56]MH_I2C_Read... [14:04:56]Read from MH i2c: D1 [14:04:56]MH_I2C_Read... [14:04:56]Read from MH i2c: D1 01 00 [14:04:56]MH_I2C_Read... [14:04:56]Read from MH i2c: D1 01 00 30 55 00 56 [14:04:56]Write to MH i2c: 01 00 00 31 55 86 [14:04:56]Write i2c OK [14:04:56]MH_I2C_Read... [14:04:56]OFD Sender: No OFD packet to send [14:04:57]*** Cut start [14:04:57]*** Purtial cut [14:04:57]*** Stage 1: CUTSNS_PIN = 1 [14:04:59]Read from MH i2c: 01 [14:04:59]MH_I2C_Read... [14:04:59]*** Stop cut motor [14:04:59]*** Cut end [14:04:59]Read from MH i2c: 01 07 00 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: 01 07 00 31 55 00 00 00 00 00 FF 0F 9B [14:04:59]process_action close_receipt done [14:04:59]requested_data is exist [14:04:59]produce_requested_data [14:04:59]requested_item fm.sn is exist - process it [14:04:59]wFMCommunicate request_size=4 [14:04:59]MH_SAM_APDU [14:04:59]CAPDU: 80 11 00 00 [14:04:59]Write to MH i2c: E2 08 00 32 55 80 11 00 00 00 00 00 00 01 [14:04:59]Write i2c OK [14:04:59]MH_I2C_Read... [14:04:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:59]Read from MH i2c: E2 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: E2 17 00 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: E2 17 00 32 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 58 [14:04:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:04:59]wFMCommunicate OK [14:04:59]requested_item fd.num is exist - process it [14:04:59]SAM_PROTO_GetFieldsCounters [14:04:59]wFMCommunicate request_size=4 [14:04:59]MH_SAM_APDU [14:04:59]CAPDU: 80 13 00 00 [14:04:59]Write to MH i2c: E2 08 00 33 55 80 13 00 00 00 00 00 00 04 [14:04:59]Write i2c OK [14:04:59]MH_I2C_Read... [14:04:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:04:59]Read from MH i2c: E2 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: E2 62 00 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: E2 62 00 33 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D3 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [14:04:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D3 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:04:59]wFMCommunicate OK [14:04:59]SAM_PROTO_GetFieldsCounters done [14:04:59]requested_item shift.num is exist - process it [14:04:59]requested_item shift.opened is exist - process it [14:04:59]req_shift_opened [14:04:59]FM_GetShiftState [14:04:59]SAM_PROTO_GetShiftState [14:04:59]wFMCommunicate request_size=4 [14:04:59]MH_SAM_APDU [14:04:59]CAPDU: 80 13 01 00 [14:04:59]Write to MH i2c: E2 08 00 34 55 80 13 01 00 00 00 00 00 06 [14:04:59]Write i2c OK [14:04:59]MH_I2C_Read... [14:04:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:59]Read from MH i2c: E2 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: E2 0E 00 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: E2 0E 00 34 55 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 88 [14:04:59]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [14:04:59]wFMCommunicate OK [14:04:59]SAM_PROTO_GetShiftState done [14:04:59]FM_GetShiftState done [14:04:59]req_shift_opened done [14:04:59]requested_item shift.open_date is exist - process it [14:04:59]req_shift_open_date [14:04:59]req_shift_open_date done [14:04:59]produce_requested_data done [14:04:59]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92627,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [14:04:59]process_action_free close_receipt [14:04:59]json_value_free [14:04:59]json_value_free done [14:04:59]process_json_proto returns [14:04:59]Send response to host [14:04:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92627,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [14:04:59]free response buf [14:04:59]execute_script done [14:04:59]execute_script returns [14:04:59]free content buf [14:04:59]Sock 8.Close socket [14:04:59]Sock 8.Thread stoped [14:05:01]OFD Sender: No OFD packet to send [14:05:06]OFD Sender: No OFD packet to send [14:05:11]OFD Sender: No OFD packet to send [14:05:16]OFD Sender: No OFD packet to send [14:05:21]OFD Sender: No OFD packet to send [14:05:26]OFD Sender: No OFD packet to send [14:05:31]OFD Sender: No OFD packet to send [14:05:36]OFD Sender: No OFD packet to send [14:05:41]accept exits with 9 [14:05:41]New connection [14:05:41]New thread 3066658148 created [14:05:41]Thread 3066801508 joined [14:05:41]Waiting for new connection... [14:05:41] Sock 9.Parse request [14:05:41]Sock 9.Check first char [14:05:41]Sock 9.First char is OK [14:05:41]request: POST /json_proto HTTP/1.0 [14:05:41]Method: POST [14:05:41]URL: /json_proto [14:05:41]Method is POST - this is cgi request [14:05:41]url: /json_proto [14:05:41]query_string will be loaded in cgi processing [14:05:41]execute_cgi json_proto POST (null) [14:05:41]execute_cgi path=json_proto method=POST [14:05:41]POST find Content-Length [14:05:41]Host: 172.17.57.71:8080 [14:05:41]Content-Length: 805 [14:05:41]Content-Type: application/json [14:05:41] [14:05:41]POST finish read [14:05:41]Found Content-Length = 805 [14:05:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:41]execute_script... [14:05:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:41]POST & json_proto [14:05:41]process_json_proto [14:05:41]json parsed OK: [14:05:41]protocol is kg_v1.0 [14:05:41]action value=close_receipt [14:05:41]process_action close_receipt [14:05:41]cmd_close_receipt [14:05:41]MH_GetDate [14:05:41]Write to MH i2c: F0 00 00 35 55 79 [14:05:41]Write i2c OK [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: F0 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: F0 09 00 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: F0 09 00 35 55 00 BE E9 E6 66 33 3A A4 66 EC [14:05:41]GetLastDocTimeStamp 1726409103 [14:05:41]current date 1726409150 [14:05:41]FM_GetShiftState [14:05:41]SAM_PROTO_GetShiftState [14:05:41]wFMCommunicate request_size=4 [14:05:41]MH_SAM_APDU [14:05:41]CAPDU: 80 13 01 00 [14:05:41]Write to MH i2c: E2 08 00 36 55 80 13 01 00 00 00 00 00 08 [14:05:41]Write i2c OK [14:05:41]MH_I2C_Read... [14:05:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:41]Read from MH i2c: E2 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: E2 0E 00 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: E2 0E 00 36 55 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 8A [14:05:41]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [14:05:41]wFMCommunicate OK [14:05:41]SAM_PROTO_GetShiftState done [14:05:41]FM_GetShiftState done [14:05:41]opened in 1726359809 [14:05:41]opened+sec_in_day 1726446209 [14:05:41]quantity*price = 100068 [14:05:41]sum+1 = 100069 [14:05:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.68 НСП 1% : 8.86 НДС 12% : 106.27 Наличными: 0.00 Безнал.: 1000.68 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 76 15.09.2024 14:05 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92628 ФПД: 209853946082693 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T140550&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92628&fm=209853946082693&tin=02508201610067®Number=0000000000091423&sum=100068 [14:05:42]StoreToDocumentArchive [14:05:42]shift 507 fd 92628 [14:05:42]save to /storage/0507/doc_00092628 [14:05:42]save last doc name /storage/0507/doc_00092628 to /storage/kkm_last_doc_name [14:05:42]save OK [14:05:42]Clear old archive folders... [14:05:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:05:42]tlvbuf is 00F83190 [14:05:42]SAM_PROTO_ClearQueue [14:05:42]wFMCommunicate request_size=4 [14:05:42]MH_SAM_APDU [14:05:42]CAPDU: 80 09 00 00 [14:05:42]Write to MH i2c: E2 08 00 43 55 80 09 00 00 00 00 00 00 0A [14:05:42]Write i2c OK [14:05:42]MH_I2C_Read... [14:05:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:42]Read from MH i2c: E2 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 03 00 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 03 00 43 55 00 90 00 0C [14:05:42]RAPDU: 90 00 [14:05:42]wFMCommunicate OK [14:05:42]SAM_PROTO_ClearQueue done [14:05:42]KKMCreateOFDPacket [14:05:42]OFDProtocolAddRootSTLVToBuf [14:05:42]FM_MakeSignedData [14:05:42]FM_MakeSignedData [14:05:42]SAM_PROTO_SignData [14:05:42]wFMCommunicate request_size=4 [14:05:42]MH_SAM_APDU [14:05:42]CAPDU: 80 0D 01 02 [14:05:42]Write to MH i2c: E2 08 00 44 55 80 0D 01 02 00 00 00 00 12 [14:05:42]Write i2c OK [14:05:42]MH_I2C_Read... [14:05:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:42]Read from MH i2c: E2 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 03 00 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 03 00 44 55 00 90 00 0D [14:05:42]RAPDU: 90 00 [14:05:42]wFMCommunicate OK [14:05:42]wFMCommunicate request_size=255 [14:05:42]MH_SAM_APDU [14:05:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 BE E9 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D4 69 01 00 35 04 06 00 BE DC 6D E9 [14:05:42]Write to MH i2c: E2 02 01 45 55 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 BE E9 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D4 69 01 00 35 04 06 00 BE DC 6D E9 00 00 27 [14:05:42]Write i2c OK [14:05:42]MH_I2C_Read... [14:05:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:43]Read from MH i2c: E2 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: E2 03 00 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: E2 03 00 45 55 00 90 00 0E [14:05:43]RAPDU: 90 00 [14:05:43]wFMCommunicate OK [14:05:43]wFMCommunicate request_size=7 [14:05:43]MH_SAM_APDU [14:05:43]CAPDU: 80 0D 02 02 02 35 85 [14:05:43]Write to MH i2c: E2 0A 00 46 55 80 0D 02 02 02 00 35 85 00 00 D3 [14:05:43]Write i2c OK [14:05:43]MH_I2C_Read... [14:05:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:43]Read from MH i2c: E2 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: E2 03 00 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: E2 03 00 46 55 00 90 00 0F [14:05:43]RAPDU: 90 00 [14:05:43]wFMCommunicate OK [14:05:43]wFMCommunicate request_size=4 [14:05:43]MH_SAM_APDU [14:05:43]CAPDU: 80 0D 03 02 [14:05:43]Write to MH i2c: E2 08 00 47 55 80 0D 03 02 00 00 00 00 17 [14:05:43]Write i2c OK [14:05:43]MH_I2C_Read... [14:05:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:43]Read from MH i2c: E2 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: E2 0B 00 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: E2 0B 00 47 55 00 4F 6E 86 3A DB 3B F8 0D 90 00 B0 [14:05:43]RAPDU: 4F 6E 86 3A DB 3B F8 0D 90 00 [14:05:43]wFMCommunicate OK [14:05:43]SAM_PROTO_SignData done [14:05:43]FM_MakeSignedData done [14:05:43]CreateOFDProtocolMessage [14:05:43]wFMCommunicate request_size=4 [14:05:43]MH_SAM_APDU [14:05:43]CAPDU: 80 11 00 00 [14:05:43]Write to MH i2c: E2 08 00 48 55 80 11 00 00 00 00 00 00 17 [14:05:43]Write i2c OK [14:05:43]MH_I2C_Read... [14:05:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:43]Read from MH i2c: E2 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: E2 17 00 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: E2 17 00 48 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 6E [14:05:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:05:43]wFMCommunicate OK [14:05:43]CreateOFDProtocolMessage done [14:05:43]OFDSenderStorePacket 92628 [14:05:43]StoreOFDPacket docnum=92628 [14:05:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0C 01 00 00 6A E1 04 01 35 23 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 BE E9 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D4 69 01 00 35 04 06 00 BE DC 6D E9 35 85 4F 6E 86 3A DB 3B F8 0D [14:05:43]CheckFolder [14:05:43]dirname=/storage/ofd_packets [14:05:43]CheckFolder done [14:05:43]ProducePacketName [14:05:43]name=ofd_packets/00092628 [14:05:43]NVStorageSaveData ofd_packets/00092628 [14:05:43]File name is /storage/ofd_packets/00092628 [14:05:43]Write 298 bytes [14:05:43]NVStorageSaveData done [14:05:43]OFDSenderStorePacket done [14:05:43]KKMCreateOFDPacket done [14:05:43]NVStorageSaveData kkm_last_timestamp [14:05:43]File name is /storage/kkm_last_timestamp [14:05:43]Write 4 bytes [14:05:43]NVStorageSaveData done [14:05:43]ExternCall_PrintAddStr [14:05:43]wPrintStart [14:05:43]Write to MH i2c: 01 00 00 49 55 9E [14:05:43]Write i2c OK [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: 01 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: 01 07 00 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: 01 07 00 49 55 00 00 00 00 00 FF 0F B3 [14:05:43]RasterBufferAndPrint [14:05:43]line Счет N : (1)648443 [14:05:43]line ИНН: 02508201610067 [14:05:43]line Контрольно-Кассовый Чек [14:05:43]line ПРОДАЖА [14:05:43]line ТРК (МРК, ГНК) : 14 [14:05:43]line Товар: 2710194210 [14:05:43]line ДТ-К-5 [14:05:43]line 13.450 * 74.40 [14:05:43]line = 1000.68 [14:05:43]line НДС 12% НСП 1% [14:05:43]line > о реализуемом товаре [14:05:43]line ИТОГО: 1000.68 [14:05:43]line НСП 1% : 8.86 [14:05:43]line НДС 12% : 106.27 [14:05:43]line Наличными: 0.00 [14:05:43]line Безнал.: 1000.68 [14:05:43]line Место: АЗС № 5 "Партнер Нефть" [14:05:43]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [14:05:43]line СНО: Общий режим [14:05:43]line Чек 76 15.09.2024 14:05 [14:05:43]line Смена: 507 ФФД: 1.0 [14:05:43]line ЗНМ: 03000000022 [14:05:43]line РНМ: 0000000000091423 [14:05:43]line Версия ККМ: 001 [14:05:43]line Платежная система: О! деньги [14:05:43]line ФМ: 0000000000874692 [14:05:43]line ФД: 92628 [14:05:43]line ФПД: 209853946082693 [14:05:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T140550&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92628&fm=209853946082693&tin=02508201610067®Number=0000000000091423&sum=100068 [14:05:43]OFD Sender: Processing packet 92628 [packets to send 63, broken 62] [14:05:43]ProducePacketName [14:05:43]name=ofd_packets/00092628 [14:05:43]OFD Sender: To server: pG, [14:05:43]CommunicateWithHost lk.salyk.kg:30040 [14:05:43]ConnectInit lk.salyk.kg [14:05:43]written 0, free lines is 4095 [14:05:43]Connected sock=11 [14:05:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0C 01 00 00 6A E1 04 01 35 23 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 BE E9 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D4 69 01 00 35 04 06 00 BE DC 6D E9 35 85 4F 6E 86 3A DB 3B F8 0D [14:05:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 91 5E 47 00 0A 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D4 69 01 00 F4 03 04 00 36 92 E6 66 B6 04 01 00 00 2E 24 0C 5F D5 6D 1E 43 [14:05:43]CommunicateWithHost err = 0 [14:05:43]CheckOFDResponse [14:05:43]1017 (14) - 77093643461234 [14:05:43]1041 (16) - 0000000000874692 [14:05:43]1040 (4) - 92628 [14:05:43]1012 (4) - 15.09.2024 07:52 [14:05:43]1206 (1) - 0 [14:05:43]OFD Sender: Remove packet 92628 [14:05:43]ProducePacketName [14:05:43]name=ofd_packets/00092628 [14:05:43]NVStorageDeleteData [14:05:44]Write to MH i2c: 01 00 00 73 55 C8 [14:05:44]Write i2c OK [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: 01 [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: 01 07 00 [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: 01 07 00 73 55 00 00 00 00 00 0F 0D EB [14:05:44]RasterBufferAndPrint [14:05:44]line [14:05:44]line [14:05:44]line [14:05:44]line [14:05:44]line [14:05:44]written 0, free lines is 3350 [14:05:44]MH_Cut [14:05:44]Write to MH i2c: D1 01 00 7A 55 01 A1 [14:05:44]Write i2c OK [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: D1 [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: D1 01 00 [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: D1 01 00 7A 55 00 A0 [14:05:44]Write to MH i2c: 01 00 00 7B 55 D0 [14:05:44]Write i2c OK [14:05:44]MH_I2C_Read... [14:05:44]OFD Sender: No OFD packet to send [14:05:44]*** Cut start [14:05:44]*** Purtial cut [14:05:44]*** Stage 1: CUTSNS_PIN = 1 [14:05:46]Read from MH i2c: 01 [14:05:46]MH_I2C_Read... [14:05:46]*** Stop cut motor [14:05:46]*** Cut end [14:05:46]Read from MH i2c: 01 07 00 [14:05:46]MH_I2C_Read... [14:05:46]Read from MH i2c: 01 07 00 7B 55 00 00 00 00 00 FF 0F E5 [14:05:46]process_action close_receipt done [14:05:46]requested_data is exist [14:05:46]produce_requested_data [14:05:46]requested_item fm.sn is exist - process it [14:05:46]wFMCommunicate request_size=4 [14:05:46]MH_SAM_APDU [14:05:46]CAPDU: 80 11 00 00 [14:05:46]Write to MH i2c: E2 08 00 7C 55 80 11 00 00 00 00 00 00 4B [14:05:46]Write i2c OK [14:05:46]MH_I2C_Read... [14:05:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:46]Read from MH i2c: E2 [14:05:46]MH_I2C_Read... [14:05:46]Read from MH i2c: E2 17 00 [14:05:46]MH_I2C_Read... [14:05:46]Read from MH i2c: E2 17 00 7C 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A2 [14:05:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:05:46]wFMCommunicate OK [14:05:46]requested_item fd.num is exist - process it [14:05:46]SAM_PROTO_GetFieldsCounters [14:05:46]wFMCommunicate request_size=4 [14:05:46]MH_SAM_APDU [14:05:46]CAPDU: 80 13 00 00 [14:05:46]Write to MH i2c: E2 08 00 7D 55 80 13 00 00 00 00 00 00 4E [14:05:46]Write i2c OK [14:05:46]MH_I2C_Read... [14:05:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:47]Read from MH i2c: E2 [14:05:47]MH_I2C_Read... [14:05:47]Read from MH i2c: E2 62 00 [14:05:47]MH_I2C_Read... [14:05:47]Read from MH i2c: E2 62 00 7D 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D4 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [14:05:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D4 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:05:47]wFMCommunicate OK [14:05:47]SAM_PROTO_GetFieldsCounters done [14:05:47]requested_item shift.num is exist - process it [14:05:47]requested_item shift.opened is exist - process it [14:05:47]req_shift_opened [14:05:47]FM_GetShiftState [14:05:47]SAM_PROTO_GetShiftState [14:05:47]wFMCommunicate request_size=4 [14:05:47]MH_SAM_APDU [14:05:47]CAPDU: 80 13 01 00 [14:05:47]Write to MH i2c: E2 08 00 7E 55 80 13 01 00 00 00 00 00 50 [14:05:47]Write i2c OK [14:05:47]MH_I2C_Read... [14:05:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:47]Read from MH i2c: E2 [14:05:47]MH_I2C_Read... [14:05:47]Read from MH i2c: E2 0E 00 [14:05:47]MH_I2C_Read... [14:05:47]Read from MH i2c: E2 0E 00 7E 55 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 D2 [14:05:47]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [14:05:47]wFMCommunicate OK [14:05:47]SAM_PROTO_GetShiftState done [14:05:47]FM_GetShiftState done [14:05:47]req_shift_opened done [14:05:47]requested_item shift.open_date is exist - process it [14:05:47]req_shift_open_date [14:05:47]req_shift_open_date done [14:05:47]produce_requested_data done [14:05:47]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92628,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [14:05:47]process_action_free close_receipt [14:05:47]json_value_free [14:05:47]json_value_free done [14:05:47]process_json_proto returns [14:05:47]Send response to host [14:05:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92628,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [14:05:47]free response buf [14:05:47]execute_script done [14:05:47]execute_script returns [14:05:47]free content buf [14:05:47]Sock 9.Close socket [14:05:47]Sock 9.Thread stoped [14:05:49]OFD Sender: No OFD packet to send [14:05:54]OFD Sender: No OFD packet to send [14:05:59]OFD Sender: No OFD packet to send [14:06:04]OFD Sender: No OFD packet to send [14:06:09]OFD Sender: No OFD packet to send [14:06:14]OFD Sender: No OFD packet to send [14:06:19]OFD Sender: No OFD packet to send [14:06:24]OFD Sender: No OFD packet to send [14:06:29]OFD Sender: No OFD packet to send [14:06:34]OFD Sender: No OFD packet to send [14:06:39]OFD Sender: No OFD packet to send [14:06:44]OFD Sender: No OFD packet to send [14:06:49]OFD Sender: No OFD packet to send [14:06:54]OFD Sender: No OFD packet to send [14:06:59]OFD Sender: No OFD packet to send [14:07:04]OFD Sender: No OFD packet to send [14:07:09]OFD Sender: No OFD packet to send [14:07:14]OFD Sender: No OFD packet to send [14:07:19]OFD Sender: No OFD packet to send [14:07:24]OFD Sender: No OFD packet to send [14:07:29]OFD Sender: No OFD packet to send [14:07:34]OFD Sender: No OFD packet to send [14:07:39]OFD Sender: No OFD packet to send [14:07:44]OFD Sender: No OFD packet to send [14:07:49]OFD Sender: No OFD packet to send [14:07:54]OFD Sender: No OFD packet to send [14:07:59]OFD Sender: No OFD packet to send [14:08:04]OFD Sender: No OFD packet to send [14:08:09]OFD Sender: No OFD packet to send [14:08:14]OFD Sender: No OFD packet to send [14:08:19]OFD Sender: No OFD packet to send [14:08:24]OFD Sender: No OFD packet to send [14:08:29]OFD Sender: No OFD packet to send [14:08:34]OFD Sender: No OFD packet to send [14:08:39]OFD Sender: No OFD packet to send [14:08:44]OFD Sender: No OFD packet to send [14:08:49]OFD Sender: No OFD packet to send [14:08:54]OFD Sender: No OFD packet to send [14:08:59]OFD Sender: No OFD packet to send [14:09:04]OFD Sender: No OFD packet to send [14:09:09]OFD Sender: No OFD packet to send [14:09:14]OFD Sender: No OFD packet to send [14:09:19]OFD Sender: No OFD packet to send [14:09:24]OFD Sender: No OFD packet to send [14:09:29]OFD Sender: No OFD packet to send [14:09:34]OFD Sender: No OFD packet to send [14:09:39]OFD Sender: No OFD packet to send [14:09:44]OFD Sender: No OFD packet to send [14:09:49]OFD Sender: No OFD packet to send [14:09:54]OFD Sender: No OFD packet to send [14:09:59]OFD Sender: No OFD packet to send [14:10:04]OFD Sender: No OFD packet to send [14:10:09]OFD Sender: No OFD packet to send [14:10:12]accept exits with 8 [14:10:12]New connection [14:10:12]New thread 3066801508 created [14:10:12]Thread 3066658148 joined [14:10:12]Waiting for new connection... [14:10:12] Sock 8.Parse request [14:10:12]Sock 8.Check first char [14:10:12]Sock 8.First char is OK [14:10:12]request: POST /json_proto HTTP/1.0 [14:10:12]Method: POST [14:10:12]URL: /json_proto [14:10:12]Method is POST - this is cgi request [14:10:12]url: /json_proto [14:10:12]query_string will be loaded in cgi processing [14:10:12]execute_cgi json_proto POST (null) [14:10:12]execute_cgi path=json_proto method=POST [14:10:12]POST find Content-Length [14:10:12]Host: 172.17.57.71:8080 [14:10:12]Content-Length: 684 [14:10:12]Content-Type: application/json [14:10:12] [14:10:12]POST finish read [14:10:12]Found Content-Length = 684 [14:10:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127518", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:12]execute_script... [14:10:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127518", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:12]POST & json_proto [14:10:12]process_json_proto [14:10:12]json parsed OK: [14:10:12]protocol is kg_v1.0 [14:10:12]action value=close_receipt [14:10:12]process_action close_receipt [14:10:12]cmd_close_receipt [14:10:12]MH_GetDate [14:10:12]Write to MH i2c: F0 00 00 7F 55 C3 [14:10:12]Write i2c OK [14:10:12]MH_I2C_Read... [14:10:12]Read from MH i2c: F0 [14:10:12]MH_I2C_Read... [14:10:12]Read from MH i2c: F0 09 00 [14:10:12]MH_I2C_Read... [14:10:12]Read from MH i2c: F0 09 00 7F 55 00 CD EA E6 66 33 3A A4 66 46 [14:10:12]GetLastDocTimeStamp 1726409150 [14:10:12]current date 1726409421 [14:10:12]FM_GetShiftState [14:10:12]SAM_PROTO_GetShiftState [14:10:12]wFMCommunicate request_size=4 [14:10:12]MH_SAM_APDU [14:10:12]CAPDU: 80 13 01 00 [14:10:12]Write to MH i2c: E2 08 00 80 55 80 13 01 00 00 00 00 00 52 [14:10:12]Write i2c OK [14:10:12]MH_I2C_Read... [14:10:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:12]Read from MH i2c: E2 [14:10:12]MH_I2C_Read... [14:10:12]Read from MH i2c: E2 0E 00 [14:10:12]MH_I2C_Read... [14:10:12]Read from MH i2c: E2 0E 00 80 55 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 D4 [14:10:12]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [14:10:12]wFMCommunicate OK [14:10:12]SAM_PROTO_GetShiftState done [14:10:12]FM_GetShiftState done [14:10:12]opened in 1726359809 [14:10:12]opened+sec_in_day 1726446209 [14:10:12]quantity*price = 7500 [14:10:12]sum+1 = 7501 [14:10:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 77 15.09.2024 14:10 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92629 ФПД: 243203544665332 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T141021&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92629&fm=243203544665332&tin=02508201610067®Number=0000000000091423&sum=7500 0 [14:10:13]StoreToDocumentArchive [14:10:13]shift 507 fd 92629 [14:10:13]save to /storage/0507/doc_00092629 [14:10:13]save last doc name /storage/0507/doc_00092629 to /storage/kkm_last_doc_name [14:10:13]save OK [14:10:13]Clear old archive folders... [14:10:13]ProcessDocumentItem done err = 0, tmpTLVsize=295 [14:10:13]tlvbuf is 01176430 [14:10:13]SAM_PROTO_ClearQueue [14:10:13]wFMCommunicate request_size=4 [14:10:13]MH_SAM_APDU [14:10:13]CAPDU: 80 09 00 00 [14:10:13]Write to MH i2c: E2 08 00 8D 55 80 09 00 00 00 00 00 00 54 [14:10:13]Write i2c OK [14:10:13]MH_I2C_Read... [14:10:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:10:13]Read from MH i2c: E2 [14:10:13]MH_I2C_Read... [14:10:13]Read from MH i2c: E2 03 00 [14:10:13]MH_I2C_Read... [14:10:13]Read from MH i2c: E2 03 00 8D 55 00 90 00 56 [14:10:13]RAPDU: 90 00 [14:10:13]wFMCommunicate OK [14:10:13]SAM_PROTO_ClearQueue done [14:10:13]KKMCreateOFDPacket [14:10:13]OFDProtocolAddRootSTLVToBuf [14:10:13]FM_MakeSignedData [14:10:13]FM_MakeSignedData [14:10:13]SAM_PROTO_SignData [14:10:13]wFMCommunicate request_size=4 [14:10:13]MH_SAM_APDU [14:10:13]CAPDU: 80 0D 01 02 [14:10:13]Write to MH i2c: E2 08 00 8E 55 80 0D 01 02 00 00 00 00 5C [14:10:13]Write i2c OK [14:10:13]MH_I2C_Read... [14:10:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:10:13]Read from MH i2c: E2 [14:10:13]MH_I2C_Read... [14:10:13]Read from MH i2c: E2 03 00 [14:10:13]MH_I2C_Read... [14:10:13]Read from MH i2c: E2 03 00 8E 55 00 90 00 57 [14:10:13]RAPDU: 90 00 [14:10:13]wFMCommunicate OK [14:10:13]wFMCommunicate request_size=255 [14:10:13]MH_SAM_APDU [14:10:13]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 CD EA E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [14:10:13]Write to MH i2c: E2 02 01 8F 55 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 CD EA E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 ED [14:10:13]Write i2c OK [14:10:13]MH_I2C_Read... [14:10:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:14]Read from MH i2c: E2 [14:10:14]MH_I2C_Read... [14:10:14]Read from MH i2c: E2 03 00 [14:10:14]MH_I2C_Read... [14:10:14]Read from MH i2c: E2 03 00 8F 55 00 90 00 58 [14:10:14]RAPDU: 90 00 [14:10:14]wFMCommunicate OK [14:10:14]wFMCommunicate request_size=54 [14:10:14]MH_SAM_APDU [14:10:14]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D5 69 01 00 35 04 06 00 DD 31 3C E3 4C F4 [14:10:14]Write to MH i2c: E2 39 00 90 55 80 0D 02 02 31 00 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D5 69 01 00 35 04 06 00 DD 31 3C E3 4C F4 00 00 30 [14:10:14]Write i2c OK [14:10:14]MH_I2C_Read... [14:10:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:14]Read from MH i2c: E2 [14:10:14]MH_I2C_Read... [14:10:14]Read from MH i2c: E2 03 00 [14:10:14]MH_I2C_Read... [14:10:14]Read from MH i2c: E2 03 00 90 55 00 90 00 59 [14:10:14]RAPDU: 90 00 [14:10:14]wFMCommunicate OK [14:10:14]wFMCommunicate request_size=4 [14:10:14]MH_SAM_APDU [14:10:14]CAPDU: 80 0D 03 02 [14:10:14]Write to MH i2c: E2 08 00 91 55 80 0D 03 02 00 00 00 00 61 [14:10:14]Write i2c OK [14:10:14]MH_I2C_Read... [14:10:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:10:14]Read from MH i2c: E2 [14:10:14]MH_I2C_Read... [14:10:14]Read from MH i2c: E2 0B 00 [14:10:14]MH_I2C_Read... [14:10:14]Read from MH i2c: E2 0B 00 91 55 00 BB 7A E3 3B C7 A7 05 6E 90 00 96 [14:10:14]RAPDU: BB 7A E3 3B C7 A7 05 6E 90 00 [14:10:14]wFMCommunicate OK [14:10:14]SAM_PROTO_SignData done [14:10:14]FM_MakeSignedData done [14:10:14]CreateOFDProtocolMessage [14:10:14]wFMCommunicate request_size=4 [14:10:14]MH_SAM_APDU [14:10:14]CAPDU: 80 11 00 00 [14:10:14]Write to MH i2c: E2 08 00 92 55 80 11 00 00 00 00 00 00 61 [14:10:14]Write i2c OK [14:10:14]MH_I2C_Read... [14:10:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:14]Read from MH i2c: E2 [14:10:14]MH_I2C_Read... [14:10:14]Read from MH i2c: E2 17 00 [14:10:14]MH_I2C_Read... [14:10:14]Read from MH i2c: E2 17 00 92 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B8 [14:10:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:10:14]wFMCommunicate OK [14:10:14]CreateOFDProtocolMessage done [14:10:14]OFDSenderStorePacket 92629 [14:10:14]StoreOFDPacket docnum=92629 [14:10:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3B 01 00 00 12 4F 33 01 22 8B 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 CD EA E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D5 69 01 00 35 04 06 00 DD 31 3C E3 4C F4 BB 7A E3 3B C7 A7 05 6E [14:10:14]CheckFolder [14:10:14]dirname=/storage/ofd_packets [14:10:14]CheckFolder done [14:10:14]ProducePacketName [14:10:14]name=ofd_packets/00092629 [14:10:14]NVStorageSaveData ofd_packets/00092629 [14:10:14]File name is /storage/ofd_packets/00092629 [14:10:14]Write 345 bytes [14:10:14]NVStorageSaveData done [14:10:14]OFDSenderStorePacket done [14:10:14]KKMCreateOFDPacket done [14:10:14]NVStorageSaveData kkm_last_timestamp [14:10:14]File name is /storage/kkm_last_timestamp [14:10:14]Write 4 bytes [14:10:14]NVStorageSaveData done [14:10:14]ExternCall_PrintAddStr [14:10:14]wPrintStart [14:10:14]Write to MH i2c: 01 00 00 93 55 E8 [14:10:14]Write i2c OK [14:10:14]MH_I2C_Read... [14:10:14]Read from MH i2c: 01 [14:10:14]MH_I2C_Read... [14:10:14]Read from MH i2c: 01 07 00 [14:10:14]MH_I2C_Read... [14:10:14]Read from MH i2c: 01 07 00 93 55 00 00 00 00 00 FF 0F FD [14:10:14]RasterBufferAndPrint [14:10:14]line Счет N : (3)127518 [14:10:14]line ИНН: 02508201610067 [14:10:14]line Контрольно-Кассовый Чек [14:10:14]line ПРОДАЖА [14:10:14]line Товар: 5449000027450 [14:10:14]line Напиток FuzeTea чай манго,ром 0,5л [14:10:14]line 1.000 * 75.00 [14:10:14]line = 75.00 [14:10:14]line НДС 12% НСП 1% [14:10:14]line > о реализуемом товаре [14:10:14]line ИТОГО: 75.00 [14:10:14]line НСП 1% : 0.66 [14:10:14]line НДС 12% : 7.96 [14:10:14]line Наличными: 75.00 [14:10:14]line Безнал.: 0.00 [14:10:14]line Место: АЗС № 5 "Партнер Нефть" [14:10:14]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [14:10:14]line СНО: Общий режим [14:10:14]line Чек 77 15.09.2024 14:10 [14:10:14]line Смена: 507 ФФД: 1.0 [14:10:14]line ЗНМ: 03000000022 [14:10:14]line РНМ: 0000000000091423 [14:10:14]line Версия ККМ: 001 [14:10:14]line ФМ: 0000000000874692 [14:10:14]line ФД: 92629 [14:10:14]line ФПД: 243203544665332 [14:10:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T141021&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92629&fm=243203544665332&tin=02508201610067®Number=0000000000091423&sum=7500 [14:10:14]OFD Sender: Processing packet 92629 [packets to send 63, broken 62] [14:10:14]ProducePacketName [14:10:14]name=ofd_packets/00092629 [14:10:14]OFD Sender: To server: pG, [14:10:14]CommunicateWithHost lk.salyk.kg:30040 [14:10:14]ConnectInit lk.salyk.kg [14:10:14]line 0 [14:10:14]written 0, free lines is 4095 [14:10:14]Connected sock=9 [14:10:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3B 01 00 00 12 4F 33 01 22 8B 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 CD EA E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D5 69 01 00 35 04 06 00 DD 31 3C E3 4C F4 BB 7A E3 3B C7 A7 05 6E [14:10:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 97 68 47 00 A3 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D5 69 01 00 F4 03 04 00 45 93 E6 66 B6 04 01 00 00 48 D8 B7 B1 E1 14 79 81 [14:10:14]CommunicateWithHost err = 0 [14:10:14]CheckOFDResponse [14:10:14]1017 (14) - 77093643461234 [14:10:14]1041 (16) - 0000000000874692 [14:10:14]1040 (4) - 92629 [14:10:14]1012 (4) - 15.09.2024 07:56 [14:10:14]1206 (1) - 0 [14:10:14]OFD Sender: Remove packet 92629 [14:10:14]ProducePacketName [14:10:14]name=ofd_packets/00092629 [14:10:14]NVStorageDeleteData [14:10:15]Write to MH i2c: 01 00 00 BC 55 11 [14:10:15]Write i2c OK [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: 01 [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: 01 07 00 [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: 01 07 00 BC 55 00 00 00 00 00 14 0D 39 [14:10:15]RasterBufferAndPrint [14:10:15]line [14:10:15]line [14:10:15]line [14:10:15]line [14:10:15]line [14:10:15]written 0, free lines is 3357 [14:10:15]MH_Cut [14:10:15]Write to MH i2c: D1 01 00 C3 55 01 EA [14:10:15]Write i2c OK [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: D1 [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: D1 01 00 [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: D1 01 00 C3 55 00 E9 [14:10:15]Write to MH i2c: 01 00 00 C4 55 19 [14:10:15]Write i2c OK [14:10:15]MH_I2C_Read... [14:10:15]OFD Sender: No OFD packet to send [14:10:15]*** Cut start [14:10:15]*** Purtial cut [14:10:15]*** Stage 1: CUTSNS_PIN = 1 [14:10:17]Read from MH i2c: 01 [14:10:17]MH_I2C_Read... [14:10:17]*** Stop cut motor [14:10:17]*** Cut end [14:10:17]Read from MH i2c: 01 07 00 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: 01 07 00 C4 55 00 00 00 00 00 FF 0F 2E [14:10:17]process_action close_receipt done [14:10:17]requested_data is exist [14:10:17]produce_requested_data [14:10:17]requested_item fm.sn is exist - process it [14:10:17]wFMCommunicate request_size=4 [14:10:17]MH_SAM_APDU [14:10:17]CAPDU: 80 11 00 00 [14:10:17]Write to MH i2c: E2 08 00 C5 55 80 11 00 00 00 00 00 00 94 [14:10:17]Write i2c OK [14:10:17]MH_I2C_Read... [14:10:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:17]Read from MH i2c: E2 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 17 00 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 17 00 C5 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 EB [14:10:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:10:17]wFMCommunicate OK [14:10:17]requested_item fd.num is exist - process it [14:10:17]SAM_PROTO_GetFieldsCounters [14:10:17]wFMCommunicate request_size=4 [14:10:17]MH_SAM_APDU [14:10:17]CAPDU: 80 13 00 00 [14:10:17]Write to MH i2c: E2 08 00 C6 55 80 13 00 00 00 00 00 00 97 [14:10:17]Write i2c OK [14:10:17]MH_I2C_Read... [14:10:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:10:17]Read from MH i2c: E2 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 62 00 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 62 00 C6 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D5 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [14:10:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D5 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:10:18]wFMCommunicate OK [14:10:18]SAM_PROTO_GetFieldsCounters done [14:10:18]requested_item shift.num is exist - process it [14:10:18]requested_item shift.opened is exist - process it [14:10:18]req_shift_opened [14:10:18]FM_GetShiftState [14:10:18]SAM_PROTO_GetShiftState [14:10:18]wFMCommunicate request_size=4 [14:10:18]MH_SAM_APDU [14:10:18]CAPDU: 80 13 01 00 [14:10:18]Write to MH i2c: E2 08 00 C7 55 80 13 01 00 00 00 00 00 99 [14:10:18]Write i2c OK [14:10:18]MH_I2C_Read... [14:10:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:18]Read from MH i2c: E2 [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: E2 0E 00 [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: E2 0E 00 C7 55 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 1B [14:10:18]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [14:10:18]wFMCommunicate OK [14:10:18]SAM_PROTO_GetShiftState done [14:10:18]FM_GetShiftState done [14:10:18]req_shift_opened done [14:10:18]requested_item shift.open_date is exist - process it [14:10:18]req_shift_open_date [14:10:18]req_shift_open_date done [14:10:18]produce_requested_data done [14:10:18]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92629,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [14:10:18]process_action_free close_receipt [14:10:18]json_value_free [14:10:18]json_value_free done [14:10:18]process_json_proto returns [14:10:18]Send response to host [14:10:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92629,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [14:10:18]free response buf [14:10:18]execute_script done [14:10:18]execute_script returns [14:10:18]free content buf [14:10:18]Sock 8.Close socket [14:10:18]Sock 8.Thread stoped [14:10:20]OFD Sender: No OFD packet to send [14:10:25]OFD Sender: No OFD packet to send [14:10:30]OFD Sender: No OFD packet to send [14:10:35]OFD Sender: No OFD packet to send [14:10:40]OFD Sender: No OFD packet to send [14:10:45]OFD Sender: No OFD packet to send [14:10:50]OFD Sender: No OFD packet to send [14:10:55]OFD Sender: No OFD packet to send [14:11:00]OFD Sender: No OFD packet to send [14:11:05]OFD Sender: No OFD packet to send [14:11:10]OFD Sender: No OFD packet to send [14:11:15]OFD Sender: No OFD packet to send [14:11:20]OFD Sender: No OFD packet to send [14:11:25]OFD Sender: No OFD packet to send [14:11:30]OFD Sender: No OFD packet to send [14:11:35]OFD Sender: No OFD packet to send [14:11:40]OFD Sender: No OFD packet to send [14:11:45]OFD Sender: No OFD packet to send [14:11:50]OFD Sender: No OFD packet to send [14:11:55]OFD Sender: No OFD packet to send [14:12:00]OFD Sender: No OFD packet to send [14:12:05]OFD Sender: No OFD packet to send [14:12:10]OFD Sender: No OFD packet to send [14:12:15]OFD Sender: No OFD packet to send [14:12:20]OFD Sender: No OFD packet to send [14:12:25]OFD Sender: No OFD packet to send [14:12:30]OFD Sender: No OFD packet to send [14:12:30]accept exits with 10 [14:12:30]New connection [14:12:30]New thread 3066658148 created [14:12:30]Thread 3066801508 joined [14:12:30]Waiting for new connection... [14:12:30] Sock 10.Parse request [14:12:30]Sock 10.Check first char [14:12:30]Sock 10.First char is OK [14:12:30]request: POST /json_proto HTTP/1.0 [14:12:30]Method: POST [14:12:30]URL: /json_proto [14:12:30]Method is POST - this is cgi request [14:12:30]url: /json_proto [14:12:30]query_string will be loaded in cgi processing [14:12:30]execute_cgi json_proto POST (null) [14:12:30]execute_cgi path=json_proto method=POST [14:12:30]POST find Content-Length [14:12:30]Host: 172.17.57.71:8080 [14:12:30]Content-Length: 619 [14:12:30]Content-Type: application/json [14:12:30] [14:12:30]POST finish read [14:12:30]Found Content-Length = 619 [14:12:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127519", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:30]execute_script... [14:12:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127519", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:30]POST & json_proto [14:12:30]process_json_proto [14:12:30]json parsed OK: [14:12:30]protocol is kg_v1.0 [14:12:30]action value=close_receipt [14:12:30]process_action close_receipt [14:12:30]cmd_close_receipt [14:12:30]MH_GetDate [14:12:30]Write to MH i2c: F0 00 00 C8 55 0C [14:12:30]Write i2c OK [14:12:30]MH_I2C_Read... [14:12:30]Read from MH i2c: F0 [14:12:30]MH_I2C_Read... [14:12:30]Read from MH i2c: F0 09 00 [14:12:30]MH_I2C_Read... [14:12:30]Read from MH i2c: F0 09 00 C8 55 00 57 EB E6 66 33 3A A4 66 1A [14:12:30]GetLastDocTimeStamp 1726409421 [14:12:30]current date 1726409559 [14:12:30]FM_GetShiftState [14:12:30]SAM_PROTO_GetShiftState [14:12:30]wFMCommunicate request_size=4 [14:12:30]MH_SAM_APDU [14:12:30]CAPDU: 80 13 01 00 [14:12:30]Write to MH i2c: E2 08 00 C9 55 80 13 01 00 00 00 00 00 9B [14:12:30]Write i2c OK [14:12:30]MH_I2C_Read... [14:12:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:30]Read from MH i2c: E2 [14:12:30]MH_I2C_Read... [14:12:30]Read from MH i2c: E2 0E 00 [14:12:30]MH_I2C_Read... [14:12:30]Read from MH i2c: E2 0E 00 C9 55 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 1D [14:12:30]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [14:12:30]wFMCommunicate OK [14:12:30]SAM_PROTO_GetShiftState done [14:12:30]FM_GetShiftState done [14:12:30]opened in 1726359809 [14:12:30]opened+sec_in_day 1726446209 [14:12:30]quantity*price = 14400 [14:12:30]sum+1 = 14401 [14:12:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 78 15.09.2024 14:12 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92630 ФПД: 182901885895519 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T141239&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92630&fm=182901885895519&tin=02508201610067®Number=0000000000091423&sum=14400 0 [14:12:31]StoreToDocumentArchive [14:12:31]shift 507 fd 92630 [14:12:31]save to /storage/0507/doc_00092630 [14:12:31]save last doc name /storage/0507/doc_00092630 to /storage/kkm_last_doc_name [14:12:31]save OK [14:12:31]Clear old archive folders... [14:12:31]ProcessDocumentItem done err = 0, tmpTLVsize=271 [14:12:31]tlvbuf is 01176300 [14:12:31]SAM_PROTO_ClearQueue [14:12:31]wFMCommunicate request_size=4 [14:12:31]MH_SAM_APDU [14:12:31]CAPDU: 80 09 00 00 [14:12:31]Write to MH i2c: E2 08 00 D6 55 80 09 00 00 00 00 00 00 9D [14:12:31]Write i2c OK [14:12:31]MH_I2C_Read... [14:12:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:12:32]Read from MH i2c: E2 [14:12:32]MH_I2C_Read... [14:12:32]Read from MH i2c: E2 03 00 [14:12:32]MH_I2C_Read... [14:12:32]Read from MH i2c: E2 03 00 D6 55 00 90 00 9F [14:12:32]RAPDU: 90 00 [14:12:32]wFMCommunicate OK [14:12:32]SAM_PROTO_ClearQueue done [14:12:32]KKMCreateOFDPacket [14:12:32]OFDProtocolAddRootSTLVToBuf [14:12:32]FM_MakeSignedData [14:12:32]FM_MakeSignedData [14:12:32]SAM_PROTO_SignData [14:12:32]wFMCommunicate request_size=4 [14:12:32]MH_SAM_APDU [14:12:32]CAPDU: 80 0D 01 02 [14:12:32]Write to MH i2c: E2 08 00 D7 55 80 0D 01 02 00 00 00 00 A5 [14:12:32]Write i2c OK [14:12:32]MH_I2C_Read... [14:12:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:12:32]Read from MH i2c: E2 [14:12:32]MH_I2C_Read... [14:12:32]Read from MH i2c: E2 03 00 [14:12:32]MH_I2C_Read... [14:12:32]Read from MH i2c: E2 03 00 D7 55 00 90 00 A0 [14:12:32]RAPDU: 90 00 [14:12:32]wFMCommunicate OK [14:12:32]wFMCommunicate request_size=255 [14:12:32]MH_SAM_APDU [14:12:32]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 57 EB E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 [14:12:32]Write to MH i2c: E2 02 01 D8 55 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 57 EB E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 70 [14:12:32]Write i2c OK [14:12:32]MH_I2C_Read... [14:12:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:32]Read from MH i2c: E2 [14:12:32]MH_I2C_Read... [14:12:32]Read from MH i2c: E2 03 00 [14:12:32]MH_I2C_Read... [14:12:32]Read from MH i2c: E2 03 00 D8 55 00 90 00 A1 [14:12:32]RAPDU: 90 00 [14:12:32]wFMCommunicate OK [14:12:32]wFMCommunicate request_size=30 [14:12:32]MH_SAM_APDU [14:12:32]CAPDU: 80 0D 02 02 19 30 38 37 34 36 39 32 10 04 04 00 D6 69 01 00 35 04 06 00 A6 59 29 F0 03 5F [14:12:32]Write to MH i2c: E2 21 00 D9 55 80 0D 02 02 19 00 30 38 37 34 36 39 32 10 04 04 00 D6 69 01 00 35 04 06 00 A6 59 29 F0 03 5F 00 00 5F [14:12:32]Write i2c OK [14:12:32]MH_I2C_Read... [14:12:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:32]Read from MH i2c: E2 [14:12:32]MH_I2C_Read... [14:12:32]Read from MH i2c: E2 03 00 [14:12:32]MH_I2C_Read... [14:12:32]Read from MH i2c: E2 03 00 D9 55 00 90 00 A2 [14:12:32]RAPDU: 90 00 [14:12:32]wFMCommunicate OK [14:12:32]wFMCommunicate request_size=4 [14:12:32]MH_SAM_APDU [14:12:32]CAPDU: 80 0D 03 02 [14:12:32]Write to MH i2c: E2 08 00 DA 55 80 0D 03 02 00 00 00 00 AA [14:12:32]Write i2c OK [14:12:32]MH_I2C_Read... [14:12:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:12:32]Read from MH i2c: E2 [14:12:32]MH_I2C_Read... [14:12:32]Read from MH i2c: E2 0B 00 [14:12:32]MH_I2C_Read... [14:12:32]Read from MH i2c: E2 0B 00 DA 55 00 BB 57 33 52 D0 86 26 D8 90 00 96 [14:12:32]RAPDU: BB 57 33 52 D0 86 26 D8 90 00 [14:12:32]wFMCommunicate OK [14:12:32]SAM_PROTO_SignData done [14:12:32]FM_MakeSignedData done [14:12:32]CreateOFDProtocolMessage [14:12:32]wFMCommunicate request_size=4 [14:12:32]MH_SAM_APDU [14:12:32]CAPDU: 80 11 00 00 [14:12:32]Write to MH i2c: E2 08 00 DB 55 80 11 00 00 00 00 00 00 AA [14:12:32]Write i2c OK [14:12:32]MH_I2C_Read... [14:12:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:32]Read from MH i2c: E2 [14:12:32]MH_I2C_Read... [14:12:32]Read from MH i2c: E2 17 00 [14:12:32]MH_I2C_Read... [14:12:32]Read from MH i2c: E2 17 00 DB 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 01 [14:12:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:12:32]wFMCommunicate OK [14:12:32]CreateOFDProtocolMessage done [14:12:32]OFDSenderStorePacket 92630 [14:12:32]StoreOFDPacket docnum=92630 [14:12:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 8F F6 1B 01 0C C2 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 57 EB E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D6 69 01 00 35 04 06 00 A6 59 29 F0 03 5F BB 57 33 52 D0 86 26 D8 [14:12:32]CheckFolder [14:12:32]dirname=/storage/ofd_packets [14:12:32]CheckFolder done [14:12:32]ProducePacketName [14:12:32]name=ofd_packets/00092630 [14:12:32]NVStorageSaveData ofd_packets/00092630 [14:12:32]File name is /storage/ofd_packets/00092630 [14:12:32]Write 321 bytes [14:12:32]NVStorageSaveData done [14:12:32]OFDSenderStorePacket done [14:12:32]KKMCreateOFDPacket done [14:12:32]NVStorageSaveData kkm_last_timestamp [14:12:32]File name is /storage/kkm_last_timestamp [14:12:32]Write 4 bytes [14:12:32]NVStorageSaveData done [14:12:32]ExternCall_PrintAddStr [14:12:32]wPrintStart [14:12:32]Write to MH i2c: 01 00 00 DC 55 31 [14:12:32]Write i2c OK [14:12:32]MH_I2C_Read... [14:12:32]Read from MH i2c: 01 [14:12:32]MH_I2C_Read... [14:12:32]Read from MH i2c: 01 07 00 [14:12:32]MH_I2C_Read... [14:12:32]Read from MH i2c: 01 07 00 DC 55 00 00 00 00 00 FF 0F 46 [14:12:32]RasterBufferAndPrint [14:12:32]line Счет N : (3)127519 [14:12:32]line ИНН: 02508201610067 [14:12:32]line Контрольно-Кассовый Чек [14:12:32]line ПРОДАЖА [14:12:32]line Товар: 47802995 [14:12:32]line Сигареты Winston XS Silver [14:12:32]line 1.000 * 144.00 [14:12:32]line = 144.00 [14:12:32]line НДС 12% НСП 1% [14:12:32]line > о реализуемом товаре [14:12:32]line ИТОГО: 144.00 [14:12:32]line НСП 1% : 1.27 [14:12:32]line НДС 12% : 15.29 [14:12:32]line Наличными: 144.00 [14:12:32]line Безнал.: 0.00 [14:12:32]line Место: АЗС № 5 "Партнер Нефть" [14:12:32]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [14:12:32]line СНО: Общий режим [14:12:32]line Чек 78 15.09.2024 14:12 [14:12:32]line Смена: 507 ФФД: 1.0 [14:12:32]line ЗНМ: 03000000022 [14:12:32]line РНМ: 0000000000091423 [14:12:32]line Версия ККМ: 001 [14:12:32]line ФМ: 0000000000874692 [14:12:32]line ФД: 92630 [14:12:32]line ФПД: 182901885895519 [14:12:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T141239&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92630&fm=182901885895519&tin=02508201610067®Number=0000000000091423&sum=14400 [14:12:32]line 0 [14:12:32]written 0, free lines is 4095 [14:12:32]OFD Sender: Processing packet 92630 [packets to send 63, broken 62] [14:12:32]ProducePacketName [14:12:32]name=ofd_packets/00092630 [14:12:32]OFD Sender: To server: pG, [14:12:32]CommunicateWithHost lk.salyk.kg:30040 [14:12:32]ConnectInit lk.salyk.kg [14:12:32]Connected sock=9 [14:12:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 8F F6 1B 01 0C C2 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 57 EB E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D6 69 01 00 35 04 06 00 A6 59 29 F0 03 5F BB 57 33 52 D0 86 26 D8 [14:12:32]Write to MH i2c: 01 00 00 04 56 5A [14:12:32]Write i2c OK [14:12:32]MH_I2C_Read... [14:12:32]Read from MH i2c: 01 [14:12:32]MH_I2C_Read... [14:12:32]Read from MH i2c: 01 07 00 [14:12:32]MH_I2C_Read... [14:12:32]Read from MH i2c: 01 07 00 04 56 00 00 00 00 00 32 0D A0 [14:12:32]RasterBufferAndPrint [14:12:32]line [14:12:32]line [14:12:32]line [14:12:32]line [14:12:32]line [14:12:32]written 0, free lines is 3385 [14:12:32]MH_Cut [14:12:32]Write to MH i2c: D1 01 00 0B 56 01 33 [14:12:32]Write i2c OK [14:12:32]MH_I2C_Read... [14:12:32]Read from MH i2c: D1 [14:12:32]MH_I2C_Read... [14:12:32]Read from MH i2c: D1 01 00 [14:12:32]MH_I2C_Read... [14:12:32]Read from MH i2c: D1 01 00 0B 56 00 32 [14:12:32]Write to MH i2c: 01 00 00 0C 56 62 [14:12:32]Write i2c OK [14:12:32]MH_I2C_Read... [14:12:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 B0 89 47 00 8A 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D6 69 01 00 F4 03 04 00 CF 93 E6 66 B6 04 01 00 00 73 84 42 7B CD CB 3A A8 [14:12:33]CommunicateWithHost err = 0 [14:12:33]CheckOFDResponse [14:12:33]1017 (14) - 77093643461234 [14:12:33]1041 (16) - 0000000000874692 [14:12:33]1040 (4) - 92630 [14:12:33]1012 (4) - 15.09.2024 07:59 [14:12:33]1206 (1) - 0 [14:12:33]OFD Sender: Remove packet 92630 [14:12:33]ProducePacketName [14:12:33]name=ofd_packets/00092630 [14:12:33]NVStorageDeleteData [14:12:33]*** Cut start [14:12:33]*** Purtial cut [14:12:33]*** Stage 1: CUTSNS_PIN = 1 [14:12:33]OFD Sender: No OFD packet to send [14:12:35]Read from MH i2c: 01 [14:12:35]MH_I2C_Read... [14:12:35]*** Stop cut motor [14:12:35]*** Cut end [14:12:35]Read from MH i2c: 01 07 00 [14:12:35]MH_I2C_Read... [14:12:35]Read from MH i2c: 01 07 00 0C 56 00 00 00 00 00 FF 0F 77 [14:12:35]process_action close_receipt done [14:12:35]requested_data is exist [14:12:35]produce_requested_data [14:12:35]requested_item fm.sn is exist - process it [14:12:35]wFMCommunicate request_size=4 [14:12:35]MH_SAM_APDU [14:12:35]CAPDU: 80 11 00 00 [14:12:35]Write to MH i2c: E2 08 00 0D 56 80 11 00 00 00 00 00 00 DD [14:12:35]Write i2c OK [14:12:35]MH_I2C_Read... [14:12:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:35]Read from MH i2c: E2 [14:12:35]MH_I2C_Read... [14:12:35]Read from MH i2c: E2 17 00 [14:12:35]MH_I2C_Read... [14:12:35]Read from MH i2c: E2 17 00 0D 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 34 [14:12:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:12:35]wFMCommunicate OK [14:12:35]requested_item fd.num is exist - process it [14:12:35]SAM_PROTO_GetFieldsCounters [14:12:35]wFMCommunicate request_size=4 [14:12:35]MH_SAM_APDU [14:12:35]CAPDU: 80 13 00 00 [14:12:35]Write to MH i2c: E2 08 00 0E 56 80 13 00 00 00 00 00 00 E0 [14:12:35]Write i2c OK [14:12:35]MH_I2C_Read... [14:12:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:12:35]Read from MH i2c: E2 [14:12:35]MH_I2C_Read... [14:12:35]Read from MH i2c: E2 62 00 [14:12:35]MH_I2C_Read... [14:12:35]Read from MH i2c: E2 62 00 0E 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D6 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [14:12:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D6 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:12:35]wFMCommunicate OK [14:12:35]SAM_PROTO_GetFieldsCounters done [14:12:35]requested_item shift.num is exist - process it [14:12:35]requested_item shift.opened is exist - process it [14:12:35]req_shift_opened [14:12:35]FM_GetShiftState [14:12:35]SAM_PROTO_GetShiftState [14:12:35]wFMCommunicate request_size=4 [14:12:35]MH_SAM_APDU [14:12:35]CAPDU: 80 13 01 00 [14:12:35]Write to MH i2c: E2 08 00 0F 56 80 13 01 00 00 00 00 00 E2 [14:12:35]Write i2c OK [14:12:35]MH_I2C_Read... [14:12:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:35]Read from MH i2c: E2 [14:12:35]MH_I2C_Read... [14:12:35]Read from MH i2c: E2 0E 00 [14:12:35]MH_I2C_Read... [14:12:35]Read from MH i2c: E2 0E 00 0F 56 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 64 [14:12:35]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [14:12:35]wFMCommunicate OK [14:12:35]SAM_PROTO_GetShiftState done [14:12:35]FM_GetShiftState done [14:12:35]req_shift_opened done [14:12:35]requested_item shift.open_date is exist - process it [14:12:35]req_shift_open_date [14:12:35]req_shift_open_date done [14:12:35]produce_requested_data done [14:12:35]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92630,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [14:12:35]process_action_free close_receipt [14:12:35]json_value_free [14:12:35]json_value_free done [14:12:35]process_json_proto returns [14:12:35]Send response to host [14:12:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92630,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [14:12:35]free response buf [14:12:35]execute_script done [14:12:35]execute_script returns [14:12:35]free content buf [14:12:35]Sock 10.Close socket [14:12:35]Sock 10.Thread stoped [14:12:38]OFD Sender: No OFD packet to send [14:12:43]OFD Sender: No OFD packet to send [14:12:48]OFD Sender: No OFD packet to send [14:12:53]OFD Sender: No OFD packet to send [14:12:58]OFD Sender: No OFD packet to send [14:13:03]OFD Sender: No OFD packet to send [14:13:08]OFD Sender: No OFD packet to send [14:13:13]OFD Sender: No OFD packet to send [14:13:18]OFD Sender: No OFD packet to send [14:13:23]OFD Sender: No OFD packet to send [14:13:28]OFD Sender: No OFD packet to send [14:13:33]OFD Sender: No OFD packet to send [14:13:38]OFD Sender: No OFD packet to send [14:13:43]OFD Sender: No OFD packet to send [14:13:48]OFD Sender: No OFD packet to send [14:13:53]OFD Sender: No OFD packet to send [14:13:58]OFD Sender: No OFD packet to send [14:14:03]OFD Sender: No OFD packet to send [14:14:08]OFD Sender: No OFD packet to send [14:14:13]OFD Sender: No OFD packet to send [14:14:18]OFD Sender: No OFD packet to send [14:14:23]OFD Sender: No OFD packet to send [14:14:28]OFD Sender: No OFD packet to send [14:14:33]OFD Sender: No OFD packet to send [14:14:38]OFD Sender: No OFD packet to send [14:14:43]OFD Sender: No OFD packet to send [14:14:48]OFD Sender: No OFD packet to send [14:14:53]OFD Sender: No OFD packet to send [14:14:58]OFD Sender: No OFD packet to send [14:15:03]OFD Sender: No OFD packet to send [14:15:08]OFD Sender: No OFD packet to send [14:15:13]OFD Sender: No OFD packet to send [14:15:18]OFD Sender: No OFD packet to send [14:15:23]OFD Sender: No OFD packet to send [14:15:28]OFD Sender: No OFD packet to send [14:15:33]OFD Sender: No OFD packet to send [14:15:38]OFD Sender: No OFD packet to send [14:15:43]OFD Sender: No OFD packet to send [14:15:48]OFD Sender: No OFD packet to send [14:15:53]OFD Sender: No OFD packet to send [14:15:58]OFD Sender: No OFD packet to send [14:16:03]OFD Sender: No OFD packet to send [14:16:08]OFD Sender: No OFD packet to send [14:16:13]OFD Sender: No OFD packet to send [14:16:18]OFD Sender: No OFD packet to send [14:16:23]OFD Sender: No OFD packet to send [14:16:28]OFD Sender: No OFD packet to send [14:16:33]OFD Sender: No OFD packet to send [14:16:38]OFD Sender: No OFD packet to send [14:16:43]OFD Sender: No OFD packet to send [14:16:48]OFD Sender: No OFD packet to send [14:16:53]OFD Sender: No OFD packet to send [14:16:58]OFD Sender: No OFD packet to send [14:17:03]OFD Sender: No OFD packet to send [14:17:08]OFD Sender: No OFD packet to send [14:17:13]OFD Sender: No OFD packet to send [14:17:18]OFD Sender: No OFD packet to send [14:17:23]OFD Sender: No OFD packet to send [14:17:28]OFD Sender: No OFD packet to send [14:17:33]OFD Sender: No OFD packet to send [14:17:38]OFD Sender: No OFD packet to send [14:17:43]OFD Sender: No OFD packet to send [14:17:48]OFD Sender: No OFD packet to send [14:17:53]OFD Sender: No OFD packet to send [14:17:57]accept exits with 8 [14:17:57]New connection [14:17:57]New thread 3066801508 created [14:17:57]Thread 3066658148 joined [14:17:57]Waiting for new connection... [14:17:57] Sock 8.Parse request [14:17:57]Sock 8.Check first char [14:17:57]Sock 8.First char is OK [14:17:57]request: POST /json_proto HTTP/1.0 [14:17:57]Method: POST [14:17:57]URL: /json_proto [14:17:57]Method is POST - this is cgi request [14:17:57]url: /json_proto [14:17:57]query_string will be loaded in cgi processing [14:17:57]execute_cgi json_proto POST (null) [14:17:57]execute_cgi path=json_proto method=POST [14:17:57]POST find Content-Length [14:17:57]Host: 172.17.57.71:8080 [14:17:57]Content-Length: 1628 [14:17:57]Content-Type: application/json [14:17:57] [14:17:57]POST finish read [14:17:57]Found Content-Length = 1628 [14:17:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127520", "tax_sys" : 0, "items" : [ { "code": "4620017455554", "name": "\u041C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 \u0411\u043E\u043D\u0434\u0438 \u0430\u0441\u0441\u043E\u0440\u0442 \u043F\u0430\u043A 70\u0433", "price" : 43.00, "quantity" : 1.000, "sum" : 43.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002768", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 Biskrem 100\u0433", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 185.00, "quantity" : 1.000, "sum" : 185.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000011527", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 453.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:57]execute_script... [14:17:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127520", "tax_sys" : 0, "items" : [ { "code": "4620017455554", "name": "\u041C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 \u0411\u043E\u043D\u0434\u0438 \u0430\u0441\u0441\u043E\u0440\u0442 \u043F\u0430\u043A 70\u0433", "price" : 43.00, "quantity" : 1.000, "sum" : 43.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002768", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 Biskrem 100\u0433", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 185.00, "quantity" : 1.000, "sum" : 185.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000011527", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 453.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:57]POST & json_proto [14:17:57]process_json_proto [14:17:57]json parsed OK: [14:17:57]protocol is kg_v1.0 [14:17:57]action value=close_receipt [14:17:57]process_action close_receipt [14:17:57]cmd_close_receipt [14:17:57]MH_GetDate [14:17:57]Write to MH i2c: F0 00 00 10 56 55 [14:17:57]Write i2c OK [14:17:57]MH_I2C_Read... [14:17:57]Read from MH i2c: F0 [14:17:57]MH_I2C_Read... [14:17:57]Read from MH i2c: F0 09 00 [14:17:57]MH_I2C_Read... [14:17:57]Read from MH i2c: F0 09 00 10 56 00 9E EC E6 66 33 3A A4 66 AB [14:17:57]GetLastDocTimeStamp 1726409559 [14:17:57]current date 1726409886 [14:17:57]FM_GetShiftState [14:17:57]SAM_PROTO_GetShiftState [14:17:57]wFMCommunicate request_size=4 [14:17:57]MH_SAM_APDU [14:17:57]CAPDU: 80 13 01 00 [14:17:57]Write to MH i2c: E2 08 00 11 56 80 13 01 00 00 00 00 00 E4 [14:17:57]Write i2c OK [14:17:57]MH_I2C_Read... [14:17:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:57]Read from MH i2c: E2 [14:17:57]MH_I2C_Read... [14:17:57]Read from MH i2c: E2 0E 00 [14:17:57]MH_I2C_Read... [14:17:57]Read from MH i2c: E2 0E 00 11 56 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 66 [14:17:57]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [14:17:57]wFMCommunicate OK [14:17:57]SAM_PROTO_GetShiftState done [14:17:57]FM_GetShiftState done [14:17:57]opened in 1726359809 [14:17:57]opened+sec_in_day 1726446209 [14:17:57]quantity*price = 4300 [14:17:57]sum+1 = 4301 [14:17:57]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870112002768 Печенье Biskrem 100г 2.000 * 70.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 90162602 Энерг напиток Red bull 0,25л 1.000 * 185.00 = 185.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000011527 Напиток Фанта 0,33л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 453.00 НСП 1% : 4.01 НДС 12% : 48.12 Наличными: 0.00 Безнал.: 453.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 79 15.09.2024 14:18 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92631 ФПД: 29070807636628 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T141806&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92631&fm=29070807636628&tin=02508201610067®Number=0000000000091423&sum=45300 0 [14:17:58]StoreToDocumentArchive [14:17:58]shift 507 fd 92631 [14:17:58]save to /storage/0507/doc_00092631 [14:17:58]save last doc name /storage/0507/doc_00092631 to /storage/kkm_last_doc_name [14:17:58]save OK [14:17:58]Clear old archive folders... [14:17:58]ProcessDocumentItem done err = 0, tmpTLVsize=606 [14:17:58]tlvbuf is 01014180 [14:17:58]SAM_PROTO_ClearQueue [14:17:58]wFMCommunicate request_size=4 [14:17:58]MH_SAM_APDU [14:17:58]CAPDU: 80 09 00 00 [14:17:58]Write to MH i2c: E2 08 00 1E 56 80 09 00 00 00 00 00 00 E6 [14:17:58]Write i2c OK [14:17:58]MH_I2C_Read... [14:17:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:17:58]Read from MH i2c: E2 [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: E2 03 00 [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: E2 03 00 1E 56 00 90 00 E8 [14:17:58]RAPDU: 90 00 [14:17:58]wFMCommunicate OK [14:17:58]SAM_PROTO_ClearQueue done [14:17:58]KKMCreateOFDPacket [14:17:58]OFDProtocolAddRootSTLVToBuf [14:17:58]FM_MakeSignedData [14:17:58]FM_MakeSignedData [14:17:58]SAM_PROTO_SignData [14:17:58]wFMCommunicate request_size=4 [14:17:58]MH_SAM_APDU [14:17:58]CAPDU: 80 0D 01 02 [14:17:58]Write to MH i2c: E2 08 00 1F 56 80 0D 01 02 00 00 00 00 EE [14:17:58]Write i2c OK [14:17:58]MH_I2C_Read... [14:17:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:17:58]Read from MH i2c: E2 [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: E2 03 00 [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: E2 03 00 1F 56 00 90 00 E9 [14:17:58]RAPDU: 90 00 [14:17:58]wFMCommunicate OK [14:17:58]wFMCommunicate request_size=255 [14:17:58]MH_SAM_APDU [14:17:58]CAPDU: 80 0D 02 02 FA 03 00 5E 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 35 35 35 34 06 04 34 00 D0 9C D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 D0 91 D0 BE D0 BD D0 B4 D0 B8 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 20 D0 BF D0 B0 D0 BA 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 CC 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 36 38 06 04 1C 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 42 69 73 6B 72 65 6D 20 31 30 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 [14:17:58]Write to MH i2c: E2 02 01 20 56 80 0D 02 02 FA 00 03 00 5E 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 35 35 35 34 06 04 34 00 D0 9C D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 D0 91 D0 BE D0 BD D0 B4 D0 B8 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 20 D0 BF D0 B0 D0 BA 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 CC 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 36 38 06 04 1C 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 42 69 73 6B 72 65 6D 20 31 30 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 00 00 5F [14:17:58]Write i2c OK [14:17:58]MH_I2C_Read... [14:17:58]OFD Sender: No OFD packet to send [14:17:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:59]Read from MH i2c: E2 [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: E2 03 00 [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: E2 03 00 20 56 00 90 00 EA [14:17:59]RAPDU: 90 00 [14:17:59]wFMCommunicate OK [14:17:59]wFMCommunicate request_size=255 [14:17:59]MH_SAM_APDU [14:17:59]CAPDU: 80 0D 02 02 FA 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 31 35 32 37 06 04 20 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 B0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 12 00 00 00 00 07 04 06 [14:17:59]Write to MH i2c: E2 02 01 21 56 80 0D 02 02 FA 00 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 31 35 32 37 06 04 20 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 B0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 12 00 00 00 00 07 04 06 00 00 D6 [14:17:59]Write i2c OK [14:17:59]MH_I2C_Read... [14:17:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:59]Read from MH i2c: E2 [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: E2 03 00 [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: E2 03 00 21 56 00 90 00 EB [14:17:59]RAPDU: 90 00 [14:17:59]wFMCommunicate OK [14:17:59]wFMCommunicate request_size=115 [14:17:59]MH_SAM_APDU [14:17:59]CAPDU: 80 0D 02 02 6E 00 00 00 00 00 00 00 39 04 06 00 F4 B0 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 9E EC E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D7 69 01 00 35 04 06 00 1A 70 93 29 9A 94 [14:17:59]Write to MH i2c: E2 76 00 22 56 80 0D 02 02 6E 00 00 00 00 00 00 00 00 39 04 06 00 F4 B0 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 9E EC E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D7 69 01 00 35 04 06 00 1A 70 93 29 9A 94 00 00 6F [14:17:59]Write i2c OK [14:17:59]MH_I2C_Read... [14:17:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:59]Read from MH i2c: E2 [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: E2 03 00 [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: E2 03 00 22 56 00 90 00 EC [14:17:59]RAPDU: 90 00 [14:17:59]wFMCommunicate OK [14:17:59]wFMCommunicate request_size=4 [14:17:59]MH_SAM_APDU [14:17:59]CAPDU: 80 0D 03 02 [14:17:59]Write to MH i2c: E2 08 00 23 56 80 0D 03 02 00 00 00 00 F4 [14:17:59]Write i2c OK [14:17:59]MH_I2C_Read... [14:17:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:17:59]Read from MH i2c: E2 [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: E2 0B 00 [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: E2 0B 00 23 56 00 48 61 D5 92 7E B6 B3 FA 90 00 E6 [14:17:59]RAPDU: 48 61 D5 92 7E B6 B3 FA 90 00 [14:17:59]wFMCommunicate OK [14:17:59]SAM_PROTO_SignData done [14:17:59]FM_MakeSignedData done [14:17:59]CreateOFDProtocolMessage [14:17:59]wFMCommunicate request_size=4 [14:17:59]MH_SAM_APDU [14:17:59]CAPDU: 80 11 00 00 [14:17:59]Write to MH i2c: E2 08 00 24 56 80 11 00 00 00 00 00 00 F4 [14:17:59]Write i2c OK [14:17:59]MH_I2C_Read... [14:17:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:59]Read from MH i2c: E2 [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: E2 17 00 [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: E2 17 00 24 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 4B [14:17:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:17:59]wFMCommunicate OK [14:17:59]CreateOFDProtocolMessage done [14:17:59]OFDSenderStorePacket 92631 [14:17:59]StoreOFDPacket docnum=92631 [14:17:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 72 02 00 00 73 54 6A 02 2B 95 5A 03 01 00 03 00 5E 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 35 35 35 34 06 04 34 00 D0 9C D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 D0 91 D0 BE D0 BD D0 B4 D0 B8 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 20 D0 BF D0 B0 D0 BA 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 CC 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 36 38 06 04 1C 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 42 69 73 6B 72 65 6D 20 31 30 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 31 35 32 37 06 04 20 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 B0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 B0 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 9E EC E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D7 69 01 00 35 04 06 00 1A 70 93 29 9A 94 48 61 D5 92 7E B6 B3 FA [14:17:59]CheckFolder [14:17:59]dirname=/storage/ofd_packets [14:17:59]CheckFolder done [14:17:59]ProducePacketName [14:17:59]name=ofd_packets/00092631 [14:17:59]NVStorageSaveData ofd_packets/00092631 [14:17:59]File name is /storage/ofd_packets/00092631 [14:17:59]Write 656 bytes [14:17:59]NVStorageSaveData done [14:17:59]OFDSenderStorePacket done [14:17:59]KKMCreateOFDPacket done [14:17:59]NVStorageSaveData kkm_last_timestamp [14:17:59]File name is /storage/kkm_last_timestamp [14:17:59]Write 4 bytes [14:17:59]NVStorageSaveData done [14:17:59]ExternCall_PrintAddStr [14:17:59]wPrintStart [14:17:59]Write to MH i2c: 01 00 00 25 56 7B [14:17:59]Write i2c OK [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: 01 [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: 01 07 00 [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: 01 07 00 25 56 00 00 00 00 00 FF 0F 90 [14:17:59]RasterBufferAndPrint [14:17:59]line Счет N : (3)127520 [14:17:59]line ИНН: 02508201610067 [14:17:59]line Контрольно-Кассовый Чек [14:17:59]line ПРОДАЖА [14:17:59]line Товар: 4620017455554 [14:17:59]line Мармелад Бонди ассорт пак 70г [14:17:59]line 1.000 * 43.00 [14:17:59]line = 43.00 [14:17:59]line НДС 12% НСП 1% [14:17:59]line > о реализуемом товаре [14:18:00]line Товар: 4870112002768 [14:18:00]line Печенье Biskrem 100г [14:18:00]line 2.000 * 70.00 [14:18:00]line = 140.00 [14:18:00]line НДС 12% НСП 1% [14:18:00]line > о реализуемом товаре [14:18:00]line Товар: 90162602 [14:18:00]line Энерг напиток Red bull 0,25л [14:18:00]line 1.000 * 185.00 [14:18:00]line = 185.00 [14:18:00]line НДС 12% НСП 1% [14:18:00]line > о реализуемом товаре [14:18:00]line Товар: 5449000011527 [14:18:00]line Напиток Фанта 0,33л [14:18:00]line 1.000 * 85.00 [14:18:00]line = 85.00 [14:18:00]line НДС 12% НСП 1% [14:18:00]line > о реализуемом товаре [14:18:00]line ИТОГО: 453.00 [14:18:00]line НСП 1% : 4.01 [14:18:00]line НДС 12% : 48.12 [14:18:00]line Наличными: 0.00 [14:18:00]line Безнал.: 453.00 [14:18:00]line Место: АЗС № 5 "Партнер Нефть" [14:18:00]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [14:18:00]line СНО: Общий режим [14:18:00]line Чек 79 15.09.2024 14:18 [14:18:00]line Смена: 507 ФФД: 1.0 [14:18:00]line ЗНМ: 03000000022 [14:18:00]line РНМ: 0000000000091423 [14:18:00]line Версия ККМ: 001 [14:18:00]line Платежная система: Бакай Банк [14:18:00]line ФМ: 0000000000874692 [14:18:00]line ФД: 92631 [14:18:00]line ФПД: 29070807636628 [14:18:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T141806&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92631&fm=29070807636628&tin=02508201610067®Number=0000000000091423&sum=45300 [14:18:00]OFD Sender: Processing packet 92631 [packets to send 63, broken 62] [14:18:00]ProducePacketName [14:18:00]name=ofd_packets/00092631 [14:18:00]OFD Sender: To server: pG, [14:18:00]CommunicateWithHost lk.salyk.kg:30040 [14:18:00]ConnectInit lk.salyk.kg [14:18:00]line 0 [14:18:00]written 0, free lines is 4095 [14:18:00]Connected sock=10 [14:18:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 72 02 00 00 73 54 6A 02 2B 95 5A 03 01 00 03 00 5E 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 35 35 35 34 06 04 34 00 D0 9C D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 D0 91 D0 BE D0 BD D0 B4 D0 B8 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 20 D0 BF D0 B0 D0 BA 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 CC 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 36 38 06 04 1C 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 42 69 73 6B 72 65 6D 20 31 30 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 31 35 32 37 06 04 20 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 B0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 B0 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 9E EC E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D7 69 01 00 35 04 06 00 1A 70 93 29 9A 94 48 61 D5 92 7E B6 B3 FA [14:18:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 0D 38 47 00 10 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D7 69 01 00 F4 03 04 00 16 95 E6 66 B6 04 01 00 00 B5 67 CC 35 25 69 96 35 [14:18:00]CommunicateWithHost err = 0 [14:18:00]CheckOFDResponse [14:18:00]1017 (14) - 77093643461234 [14:18:00]1041 (16) - 0000000000874692 [14:18:00]1040 (4) - 92631 [14:18:00]1012 (4) - 15.09.2024 08:04 [14:18:00]1206 (1) - 0 [14:18:00]OFD Sender: Remove packet 92631 [14:18:00]ProducePacketName [14:18:00]name=ofd_packets/00092631 [14:18:00]NVStorageDeleteData [14:18:00]Write to MH i2c: 01 00 00 62 56 B8 [14:18:00]Write i2c OK [14:18:00]MH_I2C_Read... [14:18:00]Read from MH i2c: 01 [14:18:00]MH_I2C_Read... [14:18:00]Read from MH i2c: 01 07 00 [14:18:00]MH_I2C_Read... [14:18:00]Read from MH i2c: 01 07 00 62 56 00 00 00 00 00 19 0C E4 [14:18:00]RasterBufferAndPrint [14:18:00]line [14:18:00]line [14:18:00]line [14:18:00]line [14:18:00]line [14:18:00]written 0, free lines is 3107 [14:18:00]MH_Cut [14:18:00]Write to MH i2c: D1 01 00 69 56 01 91 [14:18:00]Write i2c OK [14:18:00]MH_I2C_Read... [14:18:00]Read from MH i2c: D1 [14:18:00]MH_I2C_Read... [14:18:00]Read from MH i2c: D1 01 00 [14:18:00]MH_I2C_Read... [14:18:00]Read from MH i2c: D1 01 00 69 56 00 90 [14:18:00]Write to MH i2c: 01 00 00 6A 56 C0 [14:18:00]Write i2c OK [14:18:00]MH_I2C_Read... [14:18:00]OFD Sender: No OFD packet to send [14:18:01]*** Cut start [14:18:01]*** Purtial cut [14:18:01]*** Stage 1: CUTSNS_PIN = 1 [14:18:03]Read from MH i2c: 01 [14:18:03]MH_I2C_Read... [14:18:03]*** Stop cut motor [14:18:03]*** Cut end [14:18:03]Read from MH i2c: 01 07 00 [14:18:03]MH_I2C_Read... [14:18:03]Read from MH i2c: 01 07 00 6A 56 00 00 00 00 00 FF 0F D5 [14:18:03]process_action close_receipt done [14:18:03]requested_data is exist [14:18:03]produce_requested_data [14:18:03]requested_item fm.sn is exist - process it [14:18:03]wFMCommunicate request_size=4 [14:18:03]MH_SAM_APDU [14:18:03]CAPDU: 80 11 00 00 [14:18:03]Write to MH i2c: E2 08 00 6B 56 80 11 00 00 00 00 00 00 3B [14:18:03]Write i2c OK [14:18:03]MH_I2C_Read... [14:18:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:03]Read from MH i2c: E2 [14:18:03]MH_I2C_Read... [14:18:03]Read from MH i2c: E2 17 00 [14:18:03]MH_I2C_Read... [14:18:03]Read from MH i2c: E2 17 00 6B 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 92 [14:18:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:18:03]wFMCommunicate OK [14:18:03]requested_item fd.num is exist - process it [14:18:03]SAM_PROTO_GetFieldsCounters [14:18:03]wFMCommunicate request_size=4 [14:18:03]MH_SAM_APDU [14:18:03]CAPDU: 80 13 00 00 [14:18:03]Write to MH i2c: E2 08 00 6C 56 80 13 00 00 00 00 00 00 3E [14:18:03]Write i2c OK [14:18:03]MH_I2C_Read... [14:18:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:03]Read from MH i2c: E2 [14:18:03]MH_I2C_Read... [14:18:03]Read from MH i2c: E2 62 00 [14:18:03]MH_I2C_Read... [14:18:03]Read from MH i2c: E2 62 00 6C 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D7 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [14:18:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D7 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:18:03]wFMCommunicate OK [14:18:03]SAM_PROTO_GetFieldsCounters done [14:18:03]requested_item shift.num is exist - process it [14:18:03]requested_item shift.opened is exist - process it [14:18:03]req_shift_opened [14:18:03]FM_GetShiftState [14:18:03]SAM_PROTO_GetShiftState [14:18:03]wFMCommunicate request_size=4 [14:18:03]MH_SAM_APDU [14:18:03]CAPDU: 80 13 01 00 [14:18:03]Write to MH i2c: E2 08 00 6D 56 80 13 01 00 00 00 00 00 40 [14:18:03]Write i2c OK [14:18:03]MH_I2C_Read... [14:18:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:03]Read from MH i2c: E2 [14:18:03]MH_I2C_Read... [14:18:03]Read from MH i2c: E2 0E 00 [14:18:03]MH_I2C_Read... [14:18:03]Read from MH i2c: E2 0E 00 6D 56 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 C2 [14:18:03]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [14:18:03]wFMCommunicate OK [14:18:03]SAM_PROTO_GetShiftState done [14:18:03]FM_GetShiftState done [14:18:03]req_shift_opened done [14:18:03]requested_item shift.open_date is exist - process it [14:18:03]req_shift_open_date [14:18:03]req_shift_open_date done [14:18:03]produce_requested_data done [14:18:03]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92631,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [14:18:03]process_action_free close_receipt [14:18:03]json_value_free [14:18:03]json_value_free done [14:18:03]process_json_proto returns [14:18:03]Send response to host [14:18:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92631,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [14:18:03]free response buf [14:18:03]execute_script done [14:18:03]execute_script returns [14:18:03]free content buf [14:18:03]Sock 8.Close socket [14:18:03]Sock 8.Thread stoped [14:18:05]OFD Sender: No OFD packet to send [14:18:10]OFD Sender: No OFD packet to send [14:18:15]OFD Sender: No OFD packet to send [14:18:20]OFD Sender: No OFD packet to send [14:18:25]OFD Sender: No OFD packet to send [14:18:30]OFD Sender: No OFD packet to send [14:18:35]OFD Sender: No OFD packet to send [14:18:40]OFD Sender: No OFD packet to send [14:18:45]OFD Sender: No OFD packet to send [14:18:50]OFD Sender: No OFD packet to send [14:18:55]OFD Sender: No OFD packet to send [14:19:00]OFD Sender: No OFD packet to send [14:19:05]OFD Sender: No OFD packet to send [14:19:10]OFD Sender: No OFD packet to send [14:19:15]OFD Sender: No OFD packet to send [14:19:20]OFD Sender: No OFD packet to send [14:19:25]OFD Sender: No OFD packet to send [14:19:30]OFD Sender: No OFD packet to send [14:19:35]OFD Sender: No OFD packet to send [14:19:40]OFD Sender: No OFD packet to send [14:19:45]OFD Sender: No OFD packet to send [14:19:50]OFD Sender: No OFD packet to send [14:19:55]OFD Sender: No OFD packet to send [14:20:00]OFD Sender: No OFD packet to send [14:20:06]OFD Sender: No OFD packet to send [14:20:11]OFD Sender: No OFD packet to send [14:20:16]OFD Sender: No OFD packet to send [14:20:21]OFD Sender: No OFD packet to send [14:20:26]OFD Sender: No OFD packet to send [14:20:31]OFD Sender: No OFD packet to send [14:20:36]OFD Sender: No OFD packet to send [14:20:41]OFD Sender: No OFD packet to send [14:20:46]OFD Sender: No OFD packet to send [14:20:51]OFD Sender: No OFD packet to send [14:20:56]OFD Sender: No OFD packet to send [14:21:01]OFD Sender: No OFD packet to send [14:21:06]OFD Sender: No OFD packet to send [14:21:11]OFD Sender: No OFD packet to send [14:21:16]OFD Sender: No OFD packet to send [14:21:21]OFD Sender: No OFD packet to send [14:21:26]OFD Sender: No OFD packet to send [14:21:31]OFD Sender: No OFD packet to send [14:21:36]OFD Sender: No OFD packet to send [14:21:41]OFD Sender: No OFD packet to send [14:21:46]OFD Sender: No OFD packet to send [14:21:51]OFD Sender: No OFD packet to send [14:21:56]OFD Sender: No OFD packet to send [14:22:01]OFD Sender: No OFD packet to send [14:22:06]OFD Sender: No OFD packet to send [14:22:11]OFD Sender: No OFD packet to send [14:22:16]OFD Sender: No OFD packet to send [14:22:21]OFD Sender: No OFD packet to send [14:22:26]OFD Sender: No OFD packet to send [14:22:31]OFD Sender: No OFD packet to send [14:22:36]OFD Sender: No OFD packet to send [14:22:41]OFD Sender: No OFD packet to send [14:22:46]OFD Sender: No OFD packet to send [14:22:51]OFD Sender: No OFD packet to send [14:22:56]OFD Sender: No OFD packet to send [14:23:01]OFD Sender: No OFD packet to send [14:23:06]OFD Sender: No OFD packet to send [14:23:11]OFD Sender: No OFD packet to send [14:23:16]OFD Sender: No OFD packet to send [14:23:21]OFD Sender: No OFD packet to send [14:23:26]OFD Sender: No OFD packet to send [14:23:31]OFD Sender: No OFD packet to send [14:23:36]OFD Sender: No OFD packet to send [14:23:41]OFD Sender: No OFD packet to send [14:23:46]OFD Sender: No OFD packet to send [14:23:51]OFD Sender: No OFD packet to send [14:23:56]OFD Sender: No OFD packet to send [14:24:01]OFD Sender: No OFD packet to send [14:24:06]OFD Sender: No OFD packet to send [14:24:11]OFD Sender: No OFD packet to send [14:24:16]OFD Sender: No OFD packet to send [14:24:21]OFD Sender: No OFD packet to send [14:24:26]OFD Sender: No OFD packet to send [14:24:31]OFD Sender: No OFD packet to send [14:24:36]OFD Sender: No OFD packet to send [14:24:41]OFD Sender: No OFD packet to send [14:24:46]OFD Sender: No OFD packet to send [14:24:51]OFD Sender: No OFD packet to send [14:24:56]OFD Sender: No OFD packet to send [14:25:01]OFD Sender: No OFD packet to send [14:25:06]OFD Sender: No OFD packet to send [14:25:11]OFD Sender: No OFD packet to send [14:25:16]OFD Sender: No OFD packet to send [14:25:21]OFD Sender: No OFD packet to send [14:25:26]OFD Sender: No OFD packet to send [14:25:31]OFD Sender: No OFD packet to send [14:25:36]OFD Sender: No OFD packet to send [14:25:41]OFD Sender: No OFD packet to send [14:25:46]OFD Sender: No OFD packet to send [14:25:51]OFD Sender: No OFD packet to send [14:25:56]OFD Sender: No OFD packet to send [14:26:01]OFD Sender: No OFD packet to send [14:26:06]OFD Sender: No OFD packet to send [14:26:11]OFD Sender: No OFD packet to send [14:26:16]OFD Sender: No OFD packet to send [14:26:21]OFD Sender: No OFD packet to send [14:26:26]OFD Sender: No OFD packet to send [14:26:31]OFD Sender: No OFD packet to send [14:26:36]OFD Sender: No OFD packet to send [14:26:41]OFD Sender: No OFD packet to send [14:26:46]OFD Sender: No OFD packet to send [14:26:51]OFD Sender: No OFD packet to send [14:26:51]accept exits with 9 [14:26:51]New connection [14:26:51]New thread 3066658148 created [14:26:51]Thread 3066801508 joined [14:26:51]Waiting for new connection... [14:26:51] Sock 9.Parse request [14:26:51]Sock 9.Check first char [14:26:51]Sock 9.First char is OK [14:26:51]request: POST /json_proto HTTP/1.0 [14:26:51]Method: POST [14:26:51]URL: /json_proto [14:26:51]Method is POST - this is cgi request [14:26:51]url: /json_proto [14:26:51]query_string will be loaded in cgi processing [14:26:51]execute_cgi json_proto POST (null) [14:26:51]execute_cgi path=json_proto method=POST [14:26:51]POST find Content-Length [14:26:51]Host: 172.17.57.71:8080 [14:26:51]Content-Length: 915 [14:26:51]Content-Type: application/json [14:26:51] [14:26:51]POST finish read [14:26:51]Found Content-Length = 915 [14:26:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127521", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 259.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:51]execute_script... [14:26:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127521", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 259.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:51]POST & json_proto [14:26:51]process_json_proto [14:26:51]json parsed OK: [14:26:51]protocol is kg_v1.0 [14:26:51]action value=close_receipt [14:26:51]process_action close_receipt [14:26:51]cmd_close_receipt [14:26:51]MH_GetDate [14:26:51]Write to MH i2c: F0 00 00 6E 56 B3 [14:26:51]Write i2c OK [14:26:51]MH_I2C_Read... [14:26:51]Read from MH i2c: F0 [14:26:51]MH_I2C_Read... [14:26:51]Read from MH i2c: F0 09 00 [14:26:51]MH_I2C_Read... [14:26:51]Read from MH i2c: F0 09 00 6E 56 00 B4 EE E6 66 33 3A A4 66 21 [14:26:51]GetLastDocTimeStamp 1726409886 [14:26:51]current date 1726410420 [14:26:51]FM_GetShiftState [14:26:51]SAM_PROTO_GetShiftState [14:26:51]wFMCommunicate request_size=4 [14:26:51]MH_SAM_APDU [14:26:51]CAPDU: 80 13 01 00 [14:26:51]Write to MH i2c: E2 08 00 6F 56 80 13 01 00 00 00 00 00 42 [14:26:51]Write i2c OK [14:26:51]MH_I2C_Read... [14:26:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:51]Read from MH i2c: E2 [14:26:51]MH_I2C_Read... [14:26:51]Read from MH i2c: E2 0E 00 [14:26:51]MH_I2C_Read... [14:26:51]Read from MH i2c: E2 0E 00 6F 56 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 C4 [14:26:51]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [14:26:51]wFMCommunicate OK [14:26:51]SAM_PROTO_GetShiftState done [14:26:51]FM_GetShiftState done [14:26:51]opened in 1726359809 [14:26:51]opened+sec_in_day 1726446209 [14:26:51]quantity*price = 12500 [14:26:51]sum+1 = 12501 [14:26:51]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48741156 Сигареты LD Blue 1.000 * 134.00 = 134.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 259.00 НСП 1% : 2.30 НДС 12% : 27.50 Наличными: 259.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 80 15.09.2024 14:27 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92632 ФПД: 173571638301208 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T142700&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92632&fm=173571638301208&tin=02508201610067®Number=0000000000091423&sum=25900 0 [14:26:52]StoreToDocumentArchive [14:26:52]shift 507 fd 92632 [14:26:52]save to /storage/0507/doc_00092632 [14:26:52]save last doc name /storage/0507/doc_00092632 to /storage/kkm_last_doc_name [14:26:52]save OK [14:26:52]Clear old archive folders... [14:26:52]ProcessDocumentItem done err = 0, tmpTLVsize=385 [14:26:52]tlvbuf is 01032370 [14:26:52]SAM_PROTO_ClearQueue [14:26:52]wFMCommunicate request_size=4 [14:26:52]MH_SAM_APDU [14:26:52]CAPDU: 80 09 00 00 [14:26:52]Write to MH i2c: E2 08 00 7C 56 80 09 00 00 00 00 00 00 44 [14:26:52]Write i2c OK [14:26:52]MH_I2C_Read... [14:26:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:53]Read from MH i2c: E2 [14:26:53]MH_I2C_Read... [14:26:53]Read from MH i2c: E2 03 00 [14:26:53]MH_I2C_Read... [14:26:53]Read from MH i2c: E2 03 00 7C 56 00 90 00 46 [14:26:53]RAPDU: 90 00 [14:26:53]wFMCommunicate OK [14:26:53]SAM_PROTO_ClearQueue done [14:26:53]KKMCreateOFDPacket [14:26:53]OFDProtocolAddRootSTLVToBuf [14:26:53]FM_MakeSignedData [14:26:53]FM_MakeSignedData [14:26:53]SAM_PROTO_SignData [14:26:53]wFMCommunicate request_size=4 [14:26:53]MH_SAM_APDU [14:26:53]CAPDU: 80 0D 01 02 [14:26:53]Write to MH i2c: E2 08 00 7D 56 80 0D 01 02 00 00 00 00 4C [14:26:53]Write i2c OK [14:26:53]MH_I2C_Read... [14:26:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:53]Read from MH i2c: E2 [14:26:53]MH_I2C_Read... [14:26:53]Read from MH i2c: E2 03 00 [14:26:53]MH_I2C_Read... [14:26:53]Read from MH i2c: E2 03 00 7D 56 00 90 00 47 [14:26:53]RAPDU: 90 00 [14:26:53]wFMCommunicate OK [14:26:53]wFMCommunicate request_size=255 [14:26:53]MH_SAM_APDU [14:26:53]CAPDU: 80 0D 02 02 FA 03 00 81 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 [14:26:53]Write to MH i2c: E2 02 01 7E 56 80 0D 02 02 FA 00 03 00 81 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 4D [14:26:53]Write i2c OK [14:26:53]MH_I2C_Read... [14:26:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:53]Read from MH i2c: E2 [14:26:53]MH_I2C_Read... [14:26:53]Read from MH i2c: E2 03 00 [14:26:53]MH_I2C_Read... [14:26:53]Read from MH i2c: E2 03 00 7E 56 00 90 00 48 [14:26:53]RAPDU: 90 00 [14:26:53]wFMCommunicate OK [14:26:53]wFMCommunicate request_size=144 [14:26:53]MH_SAM_APDU [14:26:53]CAPDU: 80 0D 02 02 8B 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 0A 00 00 00 00 07 04 06 00 2C 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 B4 EE E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D8 69 01 00 35 04 06 00 9D DC CB D8 12 18 [14:26:53]Write to MH i2c: E2 93 00 7F 56 80 0D 02 02 8B 00 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 0A 00 00 00 00 07 04 06 00 2C 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 B4 EE E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D8 69 01 00 35 04 06 00 9D DC CB D8 12 18 00 00 91 [14:26:53]Write i2c OK [14:26:53]MH_I2C_Read... [14:26:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:53]Read from MH i2c: E2 [14:26:53]MH_I2C_Read... [14:26:53]Read from MH i2c: E2 03 00 [14:26:53]MH_I2C_Read... [14:26:53]Read from MH i2c: E2 03 00 7F 56 00 90 00 49 [14:26:53]RAPDU: 90 00 [14:26:53]wFMCommunicate OK [14:26:53]wFMCommunicate request_size=4 [14:26:53]MH_SAM_APDU [14:26:53]CAPDU: 80 0D 03 02 [14:26:53]Write to MH i2c: E2 08 00 80 56 80 0D 03 02 00 00 00 00 51 [14:26:53]Write i2c OK [14:26:53]MH_I2C_Read... [14:26:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:53]Read from MH i2c: E2 [14:26:53]MH_I2C_Read... [14:26:53]Read from MH i2c: E2 0B 00 [14:26:53]MH_I2C_Read... [14:26:53]Read from MH i2c: E2 0B 00 80 56 00 61 E5 A8 25 59 BD AF 76 90 00 A0 [14:26:53]RAPDU: 61 E5 A8 25 59 BD AF 76 90 00 [14:26:53]wFMCommunicate OK [14:26:53]SAM_PROTO_SignData done [14:26:53]FM_MakeSignedData done [14:26:53]CreateOFDProtocolMessage [14:26:53]wFMCommunicate request_size=4 [14:26:53]MH_SAM_APDU [14:26:53]CAPDU: 80 11 00 00 [14:26:53]Write to MH i2c: E2 08 00 81 56 80 11 00 00 00 00 00 00 51 [14:26:53]Write i2c OK [14:26:53]MH_I2C_Read... [14:26:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:53]Read from MH i2c: E2 [14:26:53]MH_I2C_Read... [14:26:53]Read from MH i2c: E2 17 00 [14:26:53]MH_I2C_Read... [14:26:53]Read from MH i2c: E2 17 00 81 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A8 [14:26:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:26:53]wFMCommunicate OK [14:26:53]CreateOFDProtocolMessage done [14:26:53]OFDSenderStorePacket 92632 [14:26:53]StoreOFDPacket docnum=92632 [14:26:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 95 01 00 00 2C 92 8D 01 2B 78 5A 03 01 00 03 00 81 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 0A 00 00 00 00 07 04 06 00 2C 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 B4 EE E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D8 69 01 00 35 04 06 00 9D DC CB D8 12 18 61 E5 A8 25 59 BD AF 76 [14:26:53]CheckFolder [14:26:53]dirname=/storage/ofd_packets [14:26:53]CheckFolder done [14:26:53]ProducePacketName [14:26:53]name=ofd_packets/00092632 [14:26:53]NVStorageSaveData ofd_packets/00092632 [14:26:53]File name is /storage/ofd_packets/00092632 [14:26:53]Write 435 bytes [14:26:53]NVStorageSaveData done [14:26:53]OFDSenderStorePacket done [14:26:53]KKMCreateOFDPacket done [14:26:53]NVStorageSaveData kkm_last_timestamp [14:26:53]File name is /storage/kkm_last_timestamp [14:26:53]Write 4 bytes [14:26:53]NVStorageSaveData done [14:26:53]ExternCall_PrintAddStr [14:26:53]wPrintStart [14:26:53]Write to MH i2c: 01 00 00 82 56 D8 [14:26:53]Write i2c OK [14:26:53]MH_I2C_Read... [14:26:53]Read from MH i2c: 01 [14:26:53]MH_I2C_Read... [14:26:53]Read from MH i2c: 01 07 00 [14:26:53]MH_I2C_Read... [14:26:53]Read from MH i2c: 01 07 00 82 56 00 00 00 00 00 FF 0F ED [14:26:53]RasterBufferAndPrint [14:26:53]line Счет N : (3)127521 [14:26:53]line ИНН: 02508201610067 [14:26:53]line Контрольно-Кассовый Чек [14:26:53]line ПРОДАЖА [14:26:53]line Товар: 4870202521247 [14:26:53]line Напиток MAXI чай 1,2 черн.персик [14:26:53]line 1.000 * 125.00 [14:26:53]line = 125.00 [14:26:53]line НДС 12% НСП 1% [14:26:53]line > о реализуемом товаре [14:26:53]line Товар: 48741156 [14:26:53]line Сигареты LD Blue [14:26:53]line 1.000 * 134.00 [14:26:53]line = 134.00 [14:26:53]line НДС 12% НСП 1% [14:26:53]line > о реализуемом товаре [14:26:53]line ИТОГО: 259.00 [14:26:53]line НСП 1% : 2.30 [14:26:53]line НДС 12% : 27.50 [14:26:53]line Наличными: 259.00 [14:26:53]line Безнал.: 0.00 [14:26:53]line Место: АЗС № 5 "Партнер Нефть" [14:26:53]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [14:26:53]line СНО: Общий режим [14:26:53]line Чек 80 15.09.2024 14:27 [14:26:53]line Смена: 507 ФФД: 1.0 [14:26:53]line ЗНМ: 03000000022 [14:26:53]line РНМ: 0000000000091423 [14:26:53]line Версия ККМ: 001 [14:26:53]line ФМ: 0000000000874692 [14:26:53]line ФД: 92632 [14:26:53]line ФПД: 173571638301208 [14:26:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T142700&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92632&fm=173571638301208&tin=02508201610067®Number=0000000000091423&sum=25900 [14:26:53]line 0 [14:26:53]OFD Sender: Processing packet 92632 [packets to send 63, broken 62] [14:26:53]ProducePacketName [14:26:53]name=ofd_packets/00092632 [14:26:53]OFD Sender: To server: pG, [14:26:53]CommunicateWithHost lk.salyk.kg:30040 [14:26:53]ConnectInit lk.salyk.kg [14:26:53]written 0, free lines is 4095 [14:26:54]Connected sock=10 [14:26:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 95 01 00 00 2C 92 8D 01 2B 78 5A 03 01 00 03 00 81 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 0A 00 00 00 00 07 04 06 00 2C 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 B4 EE E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D8 69 01 00 35 04 06 00 9D DC CB D8 12 18 61 E5 A8 25 59 BD AF 76 [14:26:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 0E E5 47 00 4B 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D8 69 01 00 F4 03 04 00 2C 97 E6 66 B6 04 01 00 00 5D A8 E0 26 80 03 5E 40 [14:26:54]CommunicateWithHost err = 0 [14:26:54]CheckOFDResponse [14:26:54]1017 (14) - 77093643461234 [14:26:54]1041 (16) - 0000000000874692 [14:26:54]1040 (4) - 92632 [14:26:54]1012 (4) - 15.09.2024 08:13 [14:26:54]1206 (1) - 0 [14:26:54]OFD Sender: Remove packet 92632 [14:26:54]ProducePacketName [14:26:54]name=ofd_packets/00092632 [14:26:54]NVStorageDeleteData [14:26:54]Write to MH i2c: 01 00 00 B1 56 07 [14:26:54]Write i2c OK [14:26:54]MH_I2C_Read... [14:26:54]Read from MH i2c: 01 [14:26:54]MH_I2C_Read... [14:26:54]Read from MH i2c: 01 07 00 [14:26:54]MH_I2C_Read... [14:26:54]Read from MH i2c: 01 07 00 B1 56 00 00 00 00 00 C7 0C E1 [14:26:54]RasterBufferAndPrint [14:26:54]line [14:26:54]line [14:26:54]line [14:26:54]line [14:26:54]line [14:26:54]written 0, free lines is 3278 [14:26:54]MH_Cut [14:26:54]Write to MH i2c: D1 01 00 B8 56 01 E0 [14:26:54]Write i2c OK [14:26:54]MH_I2C_Read... [14:26:54]Read from MH i2c: D1 [14:26:54]MH_I2C_Read... [14:26:54]Read from MH i2c: D1 01 00 [14:26:54]MH_I2C_Read... [14:26:54]Read from MH i2c: D1 01 00 B8 56 00 DF [14:26:54]Write to MH i2c: 01 00 00 B9 56 0F [14:26:54]Write i2c OK [14:26:54]MH_I2C_Read... [14:26:54]OFD Sender: No OFD packet to send [14:26:55]*** Cut start [14:26:55]*** Purtial cut [14:26:55]*** Stage 1: CUTSNS_PIN = 1 [14:26:57]Read from MH i2c: 01 [14:26:57]MH_I2C_Read... [14:26:57]*** Stop cut motor [14:26:57]*** Cut end [14:26:57]Read from MH i2c: 01 07 00 [14:26:57]MH_I2C_Read... [14:26:57]Read from MH i2c: 01 07 00 B9 56 00 00 00 00 00 FF 0F 24 [14:26:57]process_action close_receipt done [14:26:57]requested_data is exist [14:26:57]produce_requested_data [14:26:57]requested_item fm.sn is exist - process it [14:26:57]wFMCommunicate request_size=4 [14:26:57]MH_SAM_APDU [14:26:57]CAPDU: 80 11 00 00 [14:26:57]Write to MH i2c: E2 08 00 BA 56 80 11 00 00 00 00 00 00 8A [14:26:57]Write i2c OK [14:26:57]MH_I2C_Read... [14:26:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:57]Read from MH i2c: E2 [14:26:57]MH_I2C_Read... [14:26:57]Read from MH i2c: E2 17 00 [14:26:57]MH_I2C_Read... [14:26:57]Read from MH i2c: E2 17 00 BA 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E1 [14:26:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:26:57]wFMCommunicate OK [14:26:57]requested_item fd.num is exist - process it [14:26:57]SAM_PROTO_GetFieldsCounters [14:26:57]wFMCommunicate request_size=4 [14:26:57]MH_SAM_APDU [14:26:57]CAPDU: 80 13 00 00 [14:26:57]Write to MH i2c: E2 08 00 BB 56 80 13 00 00 00 00 00 00 8D [14:26:57]Write i2c OK [14:26:57]MH_I2C_Read... [14:26:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:57]Read from MH i2c: E2 [14:26:57]MH_I2C_Read... [14:26:57]Read from MH i2c: E2 62 00 [14:26:57]MH_I2C_Read... [14:26:57]Read from MH i2c: E2 62 00 BB 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D8 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [14:26:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D8 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:26:57]wFMCommunicate OK [14:26:57]SAM_PROTO_GetFieldsCounters done [14:26:57]requested_item shift.num is exist - process it [14:26:57]requested_item shift.opened is exist - process it [14:26:57]req_shift_opened [14:26:57]FM_GetShiftState [14:26:57]SAM_PROTO_GetShiftState [14:26:57]wFMCommunicate request_size=4 [14:26:57]MH_SAM_APDU [14:26:57]CAPDU: 80 13 01 00 [14:26:57]Write to MH i2c: E2 08 00 BC 56 80 13 01 00 00 00 00 00 8F [14:26:57]Write i2c OK [14:26:57]MH_I2C_Read... [14:26:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:57]Read from MH i2c: E2 [14:26:57]MH_I2C_Read... [14:26:57]Read from MH i2c: E2 0E 00 [14:26:57]MH_I2C_Read... [14:26:57]Read from MH i2c: E2 0E 00 BC 56 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 11 [14:26:57]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [14:26:57]wFMCommunicate OK [14:26:57]SAM_PROTO_GetShiftState done [14:26:57]FM_GetShiftState done [14:26:57]req_shift_opened done [14:26:57]requested_item shift.open_date is exist - process it [14:26:57]req_shift_open_date [14:26:57]req_shift_open_date done [14:26:57]produce_requested_data done [14:26:57]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92632,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [14:26:57]process_action_free close_receipt [14:26:57]json_value_free [14:26:57]json_value_free done [14:26:57]process_json_proto returns [14:26:57]Send response to host [14:26:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92632,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [14:26:57]free response buf [14:26:57]execute_script done [14:26:57]execute_script returns [14:26:57]free content buf [14:26:57]Sock 9.Close socket [14:26:57]Sock 9.Thread stoped [14:26:59]OFD Sender: No OFD packet to send [14:27:04]OFD Sender: No OFD packet to send [14:27:09]OFD Sender: No OFD packet to send [14:27:14]OFD Sender: No OFD packet to send [14:27:19]OFD Sender: No OFD packet to send [14:27:24]OFD Sender: No OFD packet to send [14:27:29]OFD Sender: No OFD packet to send [14:27:31]accept exits with 8 [14:27:31]New connection [14:27:31]New thread 3066801508 created [14:27:31]Thread 3066658148 joined [14:27:31]Waiting for new connection... [14:27:31] Sock 8.Parse request [14:27:31]Sock 8.Check first char [14:27:31]Sock 8.First char is OK [14:27:31]request: POST /json_proto HTTP/1.0 [14:27:31]Method: POST [14:27:31]URL: /json_proto [14:27:31]Method is POST - this is cgi request [14:27:31]url: /json_proto [14:27:31]query_string will be loaded in cgi processing [14:27:31]execute_cgi json_proto POST (null) [14:27:31]execute_cgi path=json_proto method=POST [14:27:31]POST find Content-Length [14:27:31]Host: 172.17.57.71:8080 [14:27:31]Content-Length: 661 [14:27:31]Content-Type: application/json [14:27:31] [14:27:31]POST finish read [14:27:31]Found Content-Length = 661 [14:27:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127522", "tax_sys" : 0, "items" : [ { "code": "8710732217097", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 67.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:31]execute_script... [14:27:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127522", "tax_sys" : 0, "items" : [ { "code": "8710732217097", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 67.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:31]POST & json_proto [14:27:31]process_json_proto [14:27:31]json parsed OK: [14:27:31]protocol is kg_v1.0 [14:27:31]action value=close_receipt [14:27:31]process_action close_receipt [14:27:31]cmd_close_receipt [14:27:31]MH_GetDate [14:27:31]Write to MH i2c: F0 00 00 BD 56 02 [14:27:31]Write i2c OK [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: F0 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: F0 09 00 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: F0 09 00 BD 56 00 DC EE E6 66 33 3A A4 66 98 [14:27:31]GetLastDocTimeStamp 1726410420 [14:27:31]current date 1726410460 [14:27:31]FM_GetShiftState [14:27:31]SAM_PROTO_GetShiftState [14:27:31]wFMCommunicate request_size=4 [14:27:31]MH_SAM_APDU [14:27:31]CAPDU: 80 13 01 00 [14:27:31]Write to MH i2c: E2 08 00 BE 56 80 13 01 00 00 00 00 00 91 [14:27:31]Write i2c OK [14:27:31]MH_I2C_Read... [14:27:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:31]Read from MH i2c: E2 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 0E 00 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 0E 00 BE 56 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 13 [14:27:31]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [14:27:31]wFMCommunicate OK [14:27:31]SAM_PROTO_GetShiftState done [14:27:31]FM_GetShiftState done [14:27:31]opened in 1726359809 [14:27:31]opened+sec_in_day 1726446209 [14:27:31]quantity*price = 6700 [14:27:31]sum+1 = 6701 [14:27:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 67.00 НСП 1% : 0.59 НДС 12% : 7.11 Наличными: 67.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 81 15.09.2024 14:27 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92633 ФПД: 141846250944156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T142740&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92633&fm=141846250944156&tin=02508201610067®Number=0000000000091423&sum=6700 0 [14:27:32]StoreToDocumentArchive [14:27:32]shift 507 fd 92633 [14:27:32]save to /storage/0507/doc_00092633 [14:27:32]save last doc name /storage/0507/doc_00092633 to /storage/kkm_last_doc_name [14:27:32]save OK [14:27:32]Clear old archive folders... [14:27:32]ProcessDocumentItem done err = 0, tmpTLVsize=284 [14:27:32]tlvbuf is 01099E00 [14:27:32]SAM_PROTO_ClearQueue [14:27:32]wFMCommunicate request_size=4 [14:27:32]MH_SAM_APDU [14:27:32]CAPDU: 80 09 00 00 [14:27:32]Write to MH i2c: E2 08 00 CB 56 80 09 00 00 00 00 00 00 93 [14:27:32]Write i2c OK [14:27:32]MH_I2C_Read... [14:27:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:32]Read from MH i2c: E2 [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: E2 03 00 [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: E2 03 00 CB 56 00 90 00 95 [14:27:32]RAPDU: 90 00 [14:27:32]wFMCommunicate OK [14:27:32]SAM_PROTO_ClearQueue done [14:27:32]KKMCreateOFDPacket [14:27:32]OFDProtocolAddRootSTLVToBuf [14:27:32]FM_MakeSignedData [14:27:32]FM_MakeSignedData [14:27:32]SAM_PROTO_SignData [14:27:32]wFMCommunicate request_size=4 [14:27:32]MH_SAM_APDU [14:27:32]CAPDU: 80 0D 01 02 [14:27:32]Write to MH i2c: E2 08 00 CC 56 80 0D 01 02 00 00 00 00 9B [14:27:32]Write i2c OK [14:27:32]MH_I2C_Read... [14:27:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:32]Read from MH i2c: E2 [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: E2 03 00 [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: E2 03 00 CC 56 00 90 00 96 [14:27:32]RAPDU: 90 00 [14:27:32]wFMCommunicate OK [14:27:32]wFMCommunicate request_size=255 [14:27:32]MH_SAM_APDU [14:27:32]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 2C 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 DC EE E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 [14:27:32]Write to MH i2c: E2 02 01 CD 56 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 2C 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 DC EE E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 00 00 1D [14:27:33]Write i2c OK [14:27:33]MH_I2C_Read... [14:27:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:33]Read from MH i2c: E2 [14:27:33]MH_I2C_Read... [14:27:33]Read from MH i2c: E2 03 00 [14:27:33]MH_I2C_Read... [14:27:33]Read from MH i2c: E2 03 00 CD 56 00 90 00 97 [14:27:33]RAPDU: 90 00 [14:27:33]wFMCommunicate OK [14:27:33]wFMCommunicate request_size=43 [14:27:33]MH_SAM_APDU [14:27:33]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D9 69 01 00 35 04 06 00 81 02 27 66 76 9C [14:27:33]Write to MH i2c: E2 2E 00 CE 56 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D9 69 01 00 35 04 06 00 81 02 27 66 76 9C 00 00 EF [14:27:33]Write i2c OK [14:27:33]MH_I2C_Read... [14:27:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:33]Read from MH i2c: E2 [14:27:33]MH_I2C_Read... [14:27:33]Read from MH i2c: E2 03 00 [14:27:33]MH_I2C_Read... [14:27:33]Read from MH i2c: E2 03 00 CE 56 00 90 00 98 [14:27:33]RAPDU: 90 00 [14:27:33]wFMCommunicate OK [14:27:33]wFMCommunicate request_size=4 [14:27:33]MH_SAM_APDU [14:27:33]CAPDU: 80 0D 03 02 [14:27:33]Write to MH i2c: E2 08 00 CF 56 80 0D 03 02 00 00 00 00 A0 [14:27:33]Write i2c OK [14:27:33]MH_I2C_Read... [14:27:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:33]Read from MH i2c: E2 [14:27:33]MH_I2C_Read... [14:27:33]Read from MH i2c: E2 0B 00 [14:27:33]MH_I2C_Read... [14:27:33]Read from MH i2c: E2 0B 00 CF 56 00 67 A2 C1 04 14 41 F6 5D 90 00 17 [14:27:33]RAPDU: 67 A2 C1 04 14 41 F6 5D 90 00 [14:27:33]wFMCommunicate OK [14:27:33]SAM_PROTO_SignData done [14:27:33]FM_MakeSignedData done [14:27:33]CreateOFDProtocolMessage [14:27:33]wFMCommunicate request_size=4 [14:27:33]MH_SAM_APDU [14:27:33]CAPDU: 80 11 00 00 [14:27:33]Write to MH i2c: E2 08 00 D0 56 80 11 00 00 00 00 00 00 A0 [14:27:33]Write i2c OK [14:27:33]MH_I2C_Read... [14:27:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:33]Read from MH i2c: E2 [14:27:33]MH_I2C_Read... [14:27:33]Read from MH i2c: E2 17 00 [14:27:33]MH_I2C_Read... [14:27:33]Read from MH i2c: E2 17 00 D0 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F7 [14:27:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:27:33]wFMCommunicate OK [14:27:33]CreateOFDProtocolMessage done [14:27:33]OFDSenderStorePacket 92633 [14:27:33]StoreOFDPacket docnum=92633 [14:27:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 30 01 00 00 74 21 28 01 3B EC 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 2C 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 DC EE E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D9 69 01 00 35 04 06 00 81 02 27 66 76 9C 67 A2 C1 04 14 41 F6 5D [14:27:33]CheckFolder [14:27:33]dirname=/storage/ofd_packets [14:27:33]CheckFolder done [14:27:33]ProducePacketName [14:27:33]name=ofd_packets/00092633 [14:27:33]NVStorageSaveData ofd_packets/00092633 [14:27:33]File name is /storage/ofd_packets/00092633 [14:27:33]Write 334 bytes [14:27:33]NVStorageSaveData done [14:27:33]OFDSenderStorePacket done [14:27:33]KKMCreateOFDPacket done [14:27:33]NVStorageSaveData kkm_last_timestamp [14:27:33]File name is /storage/kkm_last_timestamp [14:27:33]Write 4 bytes [14:27:33]NVStorageSaveData done [14:27:33]ExternCall_PrintAddStr [14:27:33]wPrintStart [14:27:33]Write to MH i2c: 01 00 00 D1 56 27 [14:27:33]Write i2c OK [14:27:33]MH_I2C_Read... [14:27:33]Read from MH i2c: 01 [14:27:33]MH_I2C_Read... [14:27:33]Read from MH i2c: 01 07 00 [14:27:33]MH_I2C_Read... [14:27:33]Read from MH i2c: 01 07 00 D1 56 00 00 00 00 00 FF 0F 3C [14:27:33]RasterBufferAndPrint [14:27:33]line Счет N : (3)127522 [14:27:33]line ИНН: 02508201610067 [14:27:33]line Контрольно-Кассовый Чек [14:27:33]line ПРОДАЖА [14:27:33]line Товар: 8710732217097 [14:27:33]line Зажигалка Cricket ПН пьезо [14:27:33]line 1.000 * 67.00 [14:27:33]line = 67.00 [14:27:33]line НДС 12% НСП 1% [14:27:33]line > о реализуемом товаре [14:27:33]line ИТОГО: 67.00 [14:27:33]line НСП 1% : 0.59 [14:27:33]line НДС 12% : 7.11 [14:27:33]line Наличными: 67.00 [14:27:33]line Безнал.: 0.00 [14:27:33]line Место: АЗС № 5 "Партнер Нефть" [14:27:33]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [14:27:33]line СНО: Общий режим [14:27:33]line Чек 81 15.09.2024 14:27 [14:27:33]line Смена: 507 ФФД: 1.0 [14:27:33]line ЗНМ: 03000000022 [14:27:33]line РНМ: 0000000000091423 [14:27:33]line Версия ККМ: 001 [14:27:33]line ФМ: 0000000000874692 [14:27:33]line ФД: 92633 [14:27:33]line ФПД: 141846250944156 [14:27:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T142740&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92633&fm=141846250944156&tin=02508201610067®Number=0000000000091423&sum=6700 [14:27:33]OFD Sender: Processing packet 92633 [packets to send 63, broken 62] [14:27:33]ProducePacketName [14:27:33]name=ofd_packets/00092633 [14:27:33]OFD Sender: To server: pG, [14:27:33]CommunicateWithHost lk.salyk.kg:30040 [14:27:33]ConnectInit lk.salyk.kg [14:27:33]line 0 [14:27:33]written 0, free lines is 4095 [14:27:33]Connected sock=10 [14:27:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 30 01 00 00 74 21 28 01 3B EC 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 2C 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 DC EE E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D9 69 01 00 35 04 06 00 81 02 27 66 76 9C 67 A2 C1 04 14 41 F6 5D [14:27:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 BB FF 47 00 07 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D9 69 01 00 F4 03 04 00 54 97 E6 66 B6 04 01 00 00 A6 48 74 42 6D 1D 36 B3 [14:27:34]CommunicateWithHost err = 0 [14:27:34]CheckOFDResponse [14:27:34]1017 (14) - 77093643461234 [14:27:34]1041 (16) - 0000000000874692 [14:27:34]1040 (4) - 92633 [14:27:34]1012 (4) - 15.09.2024 08:14 [14:27:34]1206 (1) - 0 [14:27:34]OFD Sender: Remove packet 92633 [14:27:34]ProducePacketName [14:27:34]name=ofd_packets/00092633 [14:27:34]NVStorageDeleteData [14:27:34]Write to MH i2c: 01 00 00 F9 56 4F [14:27:34]Write i2c OK [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: 01 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: 01 07 00 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: 01 07 00 F9 56 00 00 00 00 00 2C 0D 8F [14:27:34]RasterBufferAndPrint [14:27:34]line [14:27:34]line [14:27:34]line [14:27:34]line [14:27:34]line [14:27:34]written 0, free lines is 3382 [14:27:34]MH_Cut [14:27:34]Write to MH i2c: D1 01 00 00 57 01 29 [14:27:34]Write i2c OK [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: D1 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: D1 01 00 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: D1 01 00 00 57 00 28 [14:27:34]Write to MH i2c: 01 00 00 01 57 58 [14:27:34]Write i2c OK [14:27:34]MH_I2C_Read... [14:27:34]OFD Sender: No OFD packet to send [14:27:34]*** Cut start [14:27:34]*** Purtial cut [14:27:34]*** Stage 1: CUTSNS_PIN = 1 [14:27:36]Read from MH i2c: 01 [14:27:36]MH_I2C_Read... [14:27:36]*** Stop cut motor [14:27:36]*** Cut end [14:27:36]Read from MH i2c: 01 07 00 [14:27:36]MH_I2C_Read... [14:27:36]Read from MH i2c: 01 07 00 01 57 00 00 00 00 00 FF 0F 6D [14:27:36]process_action close_receipt done [14:27:36]requested_data is exist [14:27:36]produce_requested_data [14:27:36]requested_item fm.sn is exist - process it [14:27:36]wFMCommunicate request_size=4 [14:27:36]MH_SAM_APDU [14:27:36]CAPDU: 80 11 00 00 [14:27:36]Write to MH i2c: E2 08 00 02 57 80 11 00 00 00 00 00 00 D3 [14:27:36]Write i2c OK [14:27:36]MH_I2C_Read... [14:27:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:36]Read from MH i2c: E2 [14:27:36]MH_I2C_Read... [14:27:36]Read from MH i2c: E2 17 00 [14:27:36]MH_I2C_Read... [14:27:36]Read from MH i2c: E2 17 00 02 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 2A [14:27:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:27:36]wFMCommunicate OK [14:27:36]requested_item fd.num is exist - process it [14:27:36]SAM_PROTO_GetFieldsCounters [14:27:36]wFMCommunicate request_size=4 [14:27:36]MH_SAM_APDU [14:27:36]CAPDU: 80 13 00 00 [14:27:36]Write to MH i2c: E2 08 00 03 57 80 13 00 00 00 00 00 00 D6 [14:27:36]Write i2c OK [14:27:36]MH_I2C_Read... [14:27:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:37]Read from MH i2c: E2 [14:27:37]MH_I2C_Read... [14:27:37]Read from MH i2c: E2 62 00 [14:27:37]MH_I2C_Read... [14:27:37]Read from MH i2c: E2 62 00 03 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D9 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [14:27:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D9 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:27:37]wFMCommunicate OK [14:27:37]SAM_PROTO_GetFieldsCounters done [14:27:37]requested_item shift.num is exist - process it [14:27:37]requested_item shift.opened is exist - process it [14:27:37]req_shift_opened [14:27:37]FM_GetShiftState [14:27:37]SAM_PROTO_GetShiftState [14:27:37]wFMCommunicate request_size=4 [14:27:37]MH_SAM_APDU [14:27:37]CAPDU: 80 13 01 00 [14:27:37]Write to MH i2c: E2 08 00 04 57 80 13 01 00 00 00 00 00 D8 [14:27:37]Write i2c OK [14:27:37]MH_I2C_Read... [14:27:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:37]Read from MH i2c: E2 [14:27:37]MH_I2C_Read... [14:27:37]Read from MH i2c: E2 0E 00 [14:27:37]MH_I2C_Read... [14:27:37]Read from MH i2c: E2 0E 00 04 57 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 5A [14:27:37]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [14:27:37]wFMCommunicate OK [14:27:37]SAM_PROTO_GetShiftState done [14:27:37]FM_GetShiftState done [14:27:37]req_shift_opened done [14:27:37]requested_item shift.open_date is exist - process it [14:27:37]req_shift_open_date [14:27:37]req_shift_open_date done [14:27:37]produce_requested_data done [14:27:37]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92633,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [14:27:37]process_action_free close_receipt [14:27:37]json_value_free [14:27:37]json_value_free done [14:27:37]process_json_proto returns [14:27:37]Send response to host [14:27:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92633,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [14:27:37]free response buf [14:27:37]execute_script done [14:27:37]execute_script returns [14:27:37]free content buf [14:27:37]Sock 8.Close socket [14:27:37]Sock 8.Thread stoped [14:27:39]OFD Sender: No OFD packet to send [14:27:44]OFD Sender: No OFD packet to send [14:27:49]OFD Sender: No OFD packet to send [14:27:54]OFD Sender: No OFD packet to send [14:27:59]OFD Sender: No OFD packet to send [14:28:04]OFD Sender: No OFD packet to send [14:28:09]OFD Sender: No OFD packet to send [14:28:14]OFD Sender: No OFD packet to send [14:28:19]OFD Sender: No OFD packet to send [14:28:24]OFD Sender: No OFD packet to send [14:28:29]OFD Sender: No OFD packet to send [14:28:34]OFD Sender: No OFD packet to send [14:28:39]OFD Sender: No OFD packet to send [14:28:44]OFD Sender: No OFD packet to send [14:28:49]OFD Sender: No OFD packet to send [14:28:54]OFD Sender: No OFD packet to send [14:28:59]OFD Sender: No OFD packet to send [14:29:04]OFD Sender: No OFD packet to send [14:29:09]OFD Sender: No OFD packet to send [14:29:14]OFD Sender: No OFD packet to send [14:29:19]OFD Sender: No OFD packet to send [14:29:24]OFD Sender: No OFD packet to send [14:29:29]OFD Sender: No OFD packet to send [14:29:34]OFD Sender: No OFD packet to send [14:29:39]OFD Sender: No OFD packet to send [14:29:44]OFD Sender: No OFD packet to send [14:29:49]OFD Sender: No OFD packet to send [14:29:54]OFD Sender: No OFD packet to send [14:29:59]OFD Sender: No OFD packet to send [14:30:04]OFD Sender: No OFD packet to send [14:30:09]OFD Sender: No OFD packet to send [14:30:14]OFD Sender: No OFD packet to send [14:30:19]OFD Sender: No OFD packet to send [14:30:24]OFD Sender: No OFD packet to send [14:30:29]OFD Sender: No OFD packet to send [14:30:34]OFD Sender: No OFD packet to send [14:30:39]OFD Sender: No OFD packet to send [14:30:44]OFD Sender: No OFD packet to send [14:30:49]OFD Sender: No OFD packet to send [14:30:54]OFD Sender: No OFD packet to send [14:30:59]OFD Sender: No OFD packet to send [14:31:04]OFD Sender: No OFD packet to send [14:31:09]OFD Sender: No OFD packet to send [14:31:14]OFD Sender: No OFD packet to send [14:31:19]OFD Sender: No OFD packet to send [14:31:24]OFD Sender: No OFD packet to send [14:31:29]OFD Sender: No OFD packet to send [14:31:34]OFD Sender: No OFD packet to send [14:31:39]OFD Sender: No OFD packet to send [14:31:44]OFD Sender: No OFD packet to send [14:31:49]OFD Sender: No OFD packet to send [14:31:54]OFD Sender: No OFD packet to send [14:31:59]OFD Sender: No OFD packet to send [14:32:04]OFD Sender: No OFD packet to send [14:32:09]OFD Sender: No OFD packet to send [14:32:14]OFD Sender: No OFD packet to send [14:32:19]OFD Sender: No OFD packet to send [14:32:24]OFD Sender: No OFD packet to send [14:32:29]OFD Sender: No OFD packet to send [14:32:34]OFD Sender: No OFD packet to send [14:32:39]OFD Sender: No OFD packet to send [14:32:44]OFD Sender: No OFD packet to send [14:32:49]OFD Sender: No OFD packet to send [14:32:54]OFD Sender: No OFD packet to send [14:32:59]OFD Sender: No OFD packet to send [14:33:04]OFD Sender: No OFD packet to send [14:33:09]OFD Sender: No OFD packet to send [14:33:14]OFD Sender: No OFD packet to send [14:33:19]OFD Sender: No OFD packet to send [14:33:24]OFD Sender: No OFD packet to send [14:33:29]OFD Sender: No OFD packet to send [14:33:34]OFD Sender: No OFD packet to send [14:33:39]OFD Sender: No OFD packet to send [14:33:44]OFD Sender: No OFD packet to send [14:33:49]OFD Sender: No OFD packet to send [14:33:54]OFD Sender: No OFD packet to send [14:33:59]OFD Sender: No OFD packet to send [14:34:04]OFD Sender: No OFD packet to send [14:34:09]OFD Sender: No OFD packet to send [14:34:14]OFD Sender: No OFD packet to send [14:34:19]OFD Sender: No OFD packet to send [14:34:24]OFD Sender: No OFD packet to send [14:34:29]OFD Sender: No OFD packet to send [14:34:34]OFD Sender: No OFD packet to send [14:34:39]OFD Sender: No OFD packet to send [14:34:44]OFD Sender: No OFD packet to send [14:34:50]OFD Sender: No OFD packet to send [14:34:55]OFD Sender: No OFD packet to send [14:35:00]OFD Sender: No OFD packet to send [14:35:05]OFD Sender: No OFD packet to send [14:35:10]OFD Sender: No OFD packet to send [14:35:15]OFD Sender: No OFD packet to send [14:35:20]OFD Sender: No OFD packet to send [14:35:25]OFD Sender: No OFD packet to send [14:35:30]OFD Sender: No OFD packet to send [14:35:35]OFD Sender: No OFD packet to send [14:35:40]OFD Sender: No OFD packet to send [14:35:45]OFD Sender: No OFD packet to send [14:35:50]OFD Sender: No OFD packet to send [14:35:55]OFD Sender: No OFD packet to send [14:36:00]OFD Sender: No OFD packet to send [14:36:05]OFD Sender: No OFD packet to send [14:36:10]OFD Sender: No OFD packet to send [14:36:15]OFD Sender: No OFD packet to send [14:36:20]OFD Sender: No OFD packet to send [14:36:25]OFD Sender: No OFD packet to send [14:36:30]OFD Sender: No OFD packet to send [14:36:35]OFD Sender: No OFD packet to send [14:36:40]OFD Sender: No OFD packet to send [14:36:45]OFD Sender: No OFD packet to send [14:36:50]OFD Sender: No OFD packet to send [14:36:55]OFD Sender: No OFD packet to send [14:37:00]OFD Sender: No OFD packet to send [14:37:05]OFD Sender: No OFD packet to send [14:37:10]OFD Sender: No OFD packet to send [14:37:15]OFD Sender: No OFD packet to send [14:37:20]OFD Sender: No OFD packet to send [14:37:25]OFD Sender: No OFD packet to send [14:37:30]OFD Sender: No OFD packet to send [14:37:35]OFD Sender: No OFD packet to send [14:37:40]OFD Sender: No OFD packet to send [14:37:45]OFD Sender: No OFD packet to send [14:37:50]OFD Sender: No OFD packet to send [14:37:55]OFD Sender: No OFD packet to send [14:38:00]OFD Sender: No OFD packet to send [14:38:05]OFD Sender: No OFD packet to send [14:38:10]OFD Sender: No OFD packet to send [14:38:15]OFD Sender: No OFD packet to send [14:38:20]OFD Sender: No OFD packet to send [14:38:25]OFD Sender: No OFD packet to send [14:38:30]OFD Sender: No OFD packet to send [14:38:35]OFD Sender: No OFD packet to send [14:38:40]OFD Sender: No OFD packet to send [14:38:45]OFD Sender: No OFD packet to send [14:38:50]OFD Sender: No OFD packet to send [14:38:55]OFD Sender: No OFD packet to send [14:39:00]OFD Sender: No OFD packet to send [14:39:05]OFD Sender: No OFD packet to send [14:39:10]OFD Sender: No OFD packet to send [14:39:15]OFD Sender: No OFD packet to send [14:39:20]OFD Sender: No OFD packet to send [14:39:25]OFD Sender: No OFD packet to send [14:39:30]OFD Sender: No OFD packet to send [14:39:35]OFD Sender: No OFD packet to send [14:39:40]OFD Sender: No OFD packet to send [14:39:45]OFD Sender: No OFD packet to send [14:39:50]OFD Sender: No OFD packet to send [14:39:55]OFD Sender: No OFD packet to send [14:40:00]OFD Sender: No OFD packet to send [14:40:05]OFD Sender: No OFD packet to send [14:40:10]OFD Sender: No OFD packet to send [14:40:15]OFD Sender: No OFD packet to send [14:40:20]OFD Sender: No OFD packet to send [14:40:25]OFD Sender: No OFD packet to send [14:40:30]OFD Sender: No OFD packet to send [14:40:35]OFD Sender: No OFD packet to send [14:40:40]OFD Sender: No OFD packet to send [14:40:45]OFD Sender: No OFD packet to send [14:40:50]OFD Sender: No OFD packet to send [14:40:55]OFD Sender: No OFD packet to send [14:41:00]OFD Sender: No OFD packet to send [14:41:05]OFD Sender: No OFD packet to send [14:41:10]OFD Sender: No OFD packet to send [14:41:15]OFD Sender: No OFD packet to send [14:41:20]OFD Sender: No OFD packet to send [14:41:25]OFD Sender: No OFD packet to send [14:41:30]OFD Sender: No OFD packet to send [14:41:35]OFD Sender: No OFD packet to send [14:41:40]OFD Sender: No OFD packet to send [14:41:45]OFD Sender: No OFD packet to send [14:41:50]OFD Sender: No OFD packet to send [14:41:55]OFD Sender: No OFD packet to send [14:42:00]OFD Sender: No OFD packet to send [14:42:05]OFD Sender: No OFD packet to send [14:42:10]OFD Sender: No OFD packet to send [14:42:15]OFD Sender: No OFD packet to send [14:42:20]OFD Sender: No OFD packet to send [14:42:25]OFD Sender: No OFD packet to send [14:42:30]OFD Sender: No OFD packet to send [14:42:35]OFD Sender: No OFD packet to send [14:42:40]OFD Sender: No OFD packet to send [14:42:45]OFD Sender: No OFD packet to send [14:42:50]OFD Sender: No OFD packet to send [14:42:55]OFD Sender: No OFD packet to send [14:43:00]OFD Sender: No OFD packet to send [14:43:05]OFD Sender: No OFD packet to send [14:43:10]OFD Sender: No OFD packet to send [14:43:15]OFD Sender: No OFD packet to send [14:43:20]OFD Sender: No OFD packet to send [14:43:25]OFD Sender: No OFD packet to send [14:43:30]OFD Sender: No OFD packet to send [14:43:35]OFD Sender: No OFD packet to send [14:43:40]OFD Sender: No OFD packet to send [14:43:45]OFD Sender: No OFD packet to send [14:43:50]OFD Sender: No OFD packet to send [14:43:55]OFD Sender: No OFD packet to send [14:44:00]OFD Sender: No OFD packet to send [14:44:05]OFD Sender: No OFD packet to send [14:44:10]OFD Sender: No OFD packet to send [14:44:15]OFD Sender: No OFD packet to send [14:44:20]OFD Sender: No OFD packet to send [14:44:25]OFD Sender: No OFD packet to send [14:44:30]OFD Sender: No OFD packet to send [14:44:35]OFD Sender: No OFD packet to send [14:44:40]OFD Sender: No OFD packet to send [14:44:45]OFD Sender: No OFD packet to send [14:44:50]OFD Sender: No OFD packet to send [14:44:55]OFD Sender: No OFD packet to send [14:45:00]OFD Sender: No OFD packet to send [14:45:05]OFD Sender: No OFD packet to send [14:45:10]OFD Sender: No OFD packet to send [14:45:15]OFD Sender: No OFD packet to send [14:45:20]OFD Sender: No OFD packet to send [14:45:25]OFD Sender: No OFD packet to send [14:45:30]OFD Sender: No OFD packet to send [14:45:35]OFD Sender: No OFD packet to send [14:45:40]OFD Sender: No OFD packet to send [14:45:45]OFD Sender: No OFD packet to send [14:45:50]OFD Sender: No OFD packet to send [14:45:55]OFD Sender: No OFD packet to send [14:46:00]OFD Sender: No OFD packet to send [14:46:05]OFD Sender: No OFD packet to send [14:46:10]OFD Sender: No OFD packet to send [14:46:15]OFD Sender: No OFD packet to send [14:46:20]OFD Sender: No OFD packet to send [14:46:25]OFD Sender: No OFD packet to send [14:46:30]OFD Sender: No OFD packet to send [14:46:35]OFD Sender: No OFD packet to send [14:46:40]OFD Sender: No OFD packet to send [14:46:45]OFD Sender: No OFD packet to send [14:46:50]OFD Sender: No OFD packet to send [14:46:55]OFD Sender: No OFD packet to send [14:47:00]OFD Sender: No OFD packet to send [14:47:05]OFD Sender: No OFD packet to send [14:47:10]OFD Sender: No OFD packet to send [14:47:15]OFD Sender: No OFD packet to send [14:47:20]OFD Sender: No OFD packet to send [14:47:25]OFD Sender: No OFD packet to send [14:47:30]OFD Sender: No OFD packet to send [14:47:35]OFD Sender: No OFD packet to send [14:47:40]OFD Sender: No OFD packet to send [14:47:45]OFD Sender: No OFD packet to send [14:47:50]OFD Sender: No OFD packet to send [14:47:55]OFD Sender: No OFD packet to send [14:48:00]OFD Sender: No OFD packet to send [14:48:05]OFD Sender: No OFD packet to send [14:48:10]OFD Sender: No OFD packet to send [14:48:15]OFD Sender: No OFD packet to send [14:48:20]OFD Sender: No OFD packet to send [14:48:25]OFD Sender: No OFD packet to send [14:48:30]OFD Sender: No OFD packet to send [14:48:35]OFD Sender: No OFD packet to send [14:48:40]OFD Sender: No OFD packet to send [14:48:45]OFD Sender: No OFD packet to send [14:48:50]OFD Sender: No OFD packet to send [14:48:55]OFD Sender: No OFD packet to send [14:49:00]OFD Sender: No OFD packet to send [14:49:05]OFD Sender: No OFD packet to send [14:49:10]OFD Sender: No OFD packet to send [14:49:15]OFD Sender: No OFD packet to send [14:49:20]OFD Sender: No OFD packet to send [14:49:25]OFD Sender: No OFD packet to send [14:49:30]OFD Sender: No OFD packet to send [14:49:35]OFD Sender: No OFD packet to send [14:49:40]OFD Sender: No OFD packet to send [14:49:45]OFD Sender: No OFD packet to send [14:49:50]OFD Sender: No OFD packet to send [14:49:55]OFD Sender: No OFD packet to send [14:50:00]OFD Sender: No OFD packet to send [14:50:05]OFD Sender: No OFD packet to send [14:50:10]OFD Sender: No OFD packet to send [14:50:15]OFD Sender: No OFD packet to send [14:50:20]OFD Sender: No OFD packet to send [14:50:25]OFD Sender: No OFD packet to send [14:50:30]OFD Sender: No OFD packet to send [14:50:35]OFD Sender: No OFD packet to send [14:50:40]OFD Sender: No OFD packet to send [14:50:45]OFD Sender: No OFD packet to send [14:50:50]OFD Sender: No OFD packet to send [14:50:55]OFD Sender: No OFD packet to send [14:51:00]OFD Sender: No OFD packet to send [14:51:05]OFD Sender: No OFD packet to send [14:51:10]OFD Sender: No OFD packet to send [14:51:15]OFD Sender: No OFD packet to send [14:51:20]OFD Sender: No OFD packet to send [14:51:25]OFD Sender: No OFD packet to send [14:51:30]OFD Sender: No OFD packet to send [14:51:35]OFD Sender: No OFD packet to send [14:51:40]OFD Sender: No OFD packet to send [14:51:45]OFD Sender: No OFD packet to send [14:51:50]OFD Sender: No OFD packet to send [14:51:55]OFD Sender: No OFD packet to send [14:52:00]OFD Sender: No OFD packet to send [14:52:06]OFD Sender: No OFD packet to send [14:52:11]OFD Sender: No OFD packet to send [14:52:16]OFD Sender: No OFD packet to send [14:52:21]OFD Sender: No OFD packet to send [14:52:26]OFD Sender: No OFD packet to send [14:52:31]OFD Sender: No OFD packet to send [14:52:36]OFD Sender: No OFD packet to send [14:52:41]OFD Sender: No OFD packet to send [14:52:46]OFD Sender: No OFD packet to send [14:52:51]OFD Sender: No OFD packet to send [14:52:56]OFD Sender: No OFD packet to send [14:53:01]OFD Sender: No OFD packet to send [14:53:06]OFD Sender: No OFD packet to send [14:53:11]OFD Sender: No OFD packet to send [14:53:16]OFD Sender: No OFD packet to send [14:53:21]OFD Sender: No OFD packet to send [14:53:26]OFD Sender: No OFD packet to send [14:53:31]OFD Sender: No OFD packet to send [14:53:36]OFD Sender: No OFD packet to send [14:53:41]OFD Sender: No OFD packet to send [14:53:46]OFD Sender: No OFD packet to send [14:53:51]OFD Sender: No OFD packet to send [14:53:56]OFD Sender: No OFD packet to send [14:54:01]OFD Sender: No OFD packet to send [14:54:06]OFD Sender: No OFD packet to send [14:54:11]OFD Sender: No OFD packet to send [14:54:14]accept exits with 9 [14:54:14]New connection [14:54:14]New thread 3066658148 created [14:54:14]Thread 3066801508 joined [14:54:14]Waiting for new connection... [14:54:14] Sock 9.Parse request [14:54:14]Sock 9.Check first char [14:54:14]Sock 9.First char is OK [14:54:14]request: POST /json_proto HTTP/1.0 [14:54:14]Method: POST [14:54:14]URL: /json_proto [14:54:14]Method is POST - this is cgi request [14:54:14]url: /json_proto [14:54:14]query_string will be loaded in cgi processing [14:54:14]execute_cgi json_proto POST (null) [14:54:14]execute_cgi path=json_proto method=POST [14:54:14]POST find Content-Length [14:54:14]Host: 172.17.57.71:8080 [14:54:14]Content-Length: 630 [14:54:14]Content-Type: application/json [14:54:14] [14:54:14]POST finish read [14:54:14]Found Content-Length = 630 [14:54:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127523", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:14]execute_script... [14:54:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127523", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:14]POST & json_proto [14:54:14]process_json_proto [14:54:14]json parsed OK: [14:54:14]protocol is kg_v1.0 [14:54:14]action value=close_receipt [14:54:14]process_action close_receipt [14:54:14]cmd_close_receipt [14:54:14]MH_GetDate [14:54:14]Write to MH i2c: F0 00 00 05 57 4B [14:54:14]Write i2c OK [14:54:14]MH_I2C_Read... [14:54:14]Read from MH i2c: F0 [14:54:14]MH_I2C_Read... [14:54:14]Read from MH i2c: F0 09 00 [14:54:14]MH_I2C_Read... [14:54:14]Read from MH i2c: F0 09 00 05 57 00 1F F5 E6 66 33 3A A4 66 2B [14:54:14]GetLastDocTimeStamp 1726410460 [14:54:14]current date 1726412063 [14:54:14]FM_GetShiftState [14:54:14]SAM_PROTO_GetShiftState [14:54:14]wFMCommunicate request_size=4 [14:54:14]MH_SAM_APDU [14:54:14]CAPDU: 80 13 01 00 [14:54:14]Write to MH i2c: E2 08 00 06 57 80 13 01 00 00 00 00 00 DA [14:54:14]Write i2c OK [14:54:14]MH_I2C_Read... [14:54:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:14]Read from MH i2c: E2 [14:54:14]MH_I2C_Read... [14:54:14]Read from MH i2c: E2 0E 00 [14:54:14]MH_I2C_Read... [14:54:14]Read from MH i2c: E2 0E 00 06 57 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 5C [14:54:14]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [14:54:14]wFMCommunicate OK [14:54:14]SAM_PROTO_GetShiftState done [14:54:14]FM_GetShiftState done [14:54:14]opened in 1726359809 [14:54:14]opened+sec_in_day 1726446209 [14:54:14]quantity*price = 5000 [14:54:14]sum+1 = 5001 [14:54:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 82 15.09.2024 14:54 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92634 ФПД: 63895317023917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T145423&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92634&fm=63895317023917&tin=02508201610067®Number=0000000000091423&sum=5000 0 [14:54:15]StoreToDocumentArchive [14:54:15]shift 507 fd 92634 [14:54:15]save to /storage/0507/doc_00092634 [14:54:15]save last doc name /storage/0507/doc_00092634 to /storage/kkm_last_doc_name [14:54:15]save OK [14:54:15]Clear old archive folders... [14:54:15]ProcessDocumentItem done err = 0, tmpTLVsize=269 [14:54:15]tlvbuf is 00FF8C80 [14:54:15]SAM_PROTO_ClearQueue [14:54:15]wFMCommunicate request_size=4 [14:54:15]MH_SAM_APDU [14:54:15]CAPDU: 80 09 00 00 [14:54:15]Write to MH i2c: E2 08 00 13 57 80 09 00 00 00 00 00 00 DC [14:54:15]Write i2c OK [14:54:15]MH_I2C_Read... [14:54:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:15]Read from MH i2c: E2 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 03 00 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 03 00 13 57 00 90 00 DE [14:54:15]RAPDU: 90 00 [14:54:15]wFMCommunicate OK [14:54:15]SAM_PROTO_ClearQueue done [14:54:15]KKMCreateOFDPacket [14:54:15]OFDProtocolAddRootSTLVToBuf [14:54:15]FM_MakeSignedData [14:54:15]FM_MakeSignedData [14:54:15]SAM_PROTO_SignData [14:54:15]wFMCommunicate request_size=4 [14:54:15]MH_SAM_APDU [14:54:15]CAPDU: 80 0D 01 02 [14:54:15]Write to MH i2c: E2 08 00 14 57 80 0D 01 02 00 00 00 00 E4 [14:54:15]Write i2c OK [14:54:15]MH_I2C_Read... [14:54:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:15]Read from MH i2c: E2 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 03 00 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 03 00 14 57 00 90 00 DF [14:54:15]RAPDU: 90 00 [14:54:15]wFMCommunicate OK [14:54:15]wFMCommunicate request_size=255 [14:54:15]MH_SAM_APDU [14:54:15]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 1F F5 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [14:54:15]Write to MH i2c: E2 02 01 15 57 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 1F F5 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 A3 [14:54:15]Write i2c OK [14:54:15]MH_I2C_Read... [14:54:16]OFD Sender: No OFD packet to send [14:54:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:16]Read from MH i2c: E2 [14:54:16]MH_I2C_Read... [14:54:16]Read from MH i2c: E2 03 00 [14:54:16]MH_I2C_Read... [14:54:16]Read from MH i2c: E2 03 00 15 57 00 90 00 E0 [14:54:16]RAPDU: 90 00 [14:54:16]wFMCommunicate OK [14:54:16]wFMCommunicate request_size=28 [14:54:16]MH_SAM_APDU [14:54:16]CAPDU: 80 0D 02 02 17 37 34 36 39 32 10 04 04 00 DA 69 01 00 35 04 06 00 3A 1C C9 AC 8C AD [14:54:16]Write to MH i2c: E2 1F 00 16 57 80 0D 02 02 17 00 37 34 36 39 32 10 04 04 00 DA 69 01 00 35 04 06 00 3A 1C C9 AC 8C AD 00 00 C0 [14:54:16]Write i2c OK [14:54:16]MH_I2C_Read... [14:54:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:16]Read from MH i2c: E2 [14:54:16]MH_I2C_Read... [14:54:16]Read from MH i2c: E2 03 00 [14:54:16]MH_I2C_Read... [14:54:16]Read from MH i2c: E2 03 00 16 57 00 90 00 E1 [14:54:16]RAPDU: 90 00 [14:54:16]wFMCommunicate OK [14:54:16]wFMCommunicate request_size=4 [14:54:16]MH_SAM_APDU [14:54:16]CAPDU: 80 0D 03 02 [14:54:16]Write to MH i2c: E2 08 00 17 57 80 0D 03 02 00 00 00 00 E9 [14:54:16]Write i2c OK [14:54:16]MH_I2C_Read... [14:54:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:16]Read from MH i2c: E2 [14:54:16]MH_I2C_Read... [14:54:16]Read from MH i2c: E2 0B 00 [14:54:16]MH_I2C_Read... [14:54:16]Read from MH i2c: E2 0B 00 17 57 00 4B A1 4F E8 68 8C 03 5D 90 00 61 [14:54:16]RAPDU: 4B A1 4F E8 68 8C 03 5D 90 00 [14:54:16]wFMCommunicate OK [14:54:16]SAM_PROTO_SignData done [14:54:16]FM_MakeSignedData done [14:54:16]CreateOFDProtocolMessage [14:54:16]wFMCommunicate request_size=4 [14:54:16]MH_SAM_APDU [14:54:16]CAPDU: 80 11 00 00 [14:54:16]Write to MH i2c: E2 08 00 18 57 80 11 00 00 00 00 00 00 E9 [14:54:16]Write i2c OK [14:54:16]MH_I2C_Read... [14:54:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:16]Read from MH i2c: E2 [14:54:16]MH_I2C_Read... [14:54:16]Read from MH i2c: E2 17 00 [14:54:16]MH_I2C_Read... [14:54:16]Read from MH i2c: E2 17 00 18 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 40 [14:54:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:54:16]wFMCommunicate OK [14:54:16]CreateOFDProtocolMessage done [14:54:16]OFDSenderStorePacket 92634 [14:54:16]StoreOFDPacket docnum=92634 [14:54:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 21 01 00 00 57 D0 19 01 56 5A 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 1F F5 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DA 69 01 00 35 04 06 00 3A 1C C9 AC 8C AD 4B A1 4F E8 68 8C 03 5D [14:54:16]CheckFolder [14:54:16]dirname=/storage/ofd_packets [14:54:16]CheckFolder done [14:54:16]ProducePacketName [14:54:16]name=ofd_packets/00092634 [14:54:16]NVStorageSaveData ofd_packets/00092634 [14:54:16]File name is /storage/ofd_packets/00092634 [14:54:16]Write 319 bytes [14:54:16]NVStorageSaveData done [14:54:16]OFDSenderStorePacket done [14:54:16]KKMCreateOFDPacket done [14:54:16]NVStorageSaveData kkm_last_timestamp [14:54:16]File name is /storage/kkm_last_timestamp [14:54:16]Write 4 bytes [14:54:16]NVStorageSaveData done [14:54:16]ExternCall_PrintAddStr [14:54:16]wPrintStart [14:54:16]Write to MH i2c: 01 00 00 19 57 70 [14:54:16]Write i2c OK [14:54:16]MH_I2C_Read... [14:54:16]Read from MH i2c: 01 [14:54:16]MH_I2C_Read... [14:54:16]Read from MH i2c: 01 07 00 [14:54:16]MH_I2C_Read... [14:54:16]Read from MH i2c: 01 07 00 19 57 00 00 00 00 00 FF 0F 85 [14:54:16]RasterBufferAndPrint [14:54:16]line Счет N : (3)127523 [14:54:16]line ИНН: 02508201610067 [14:54:16]line Контрольно-Кассовый Чек [14:54:16]line ПРОДАЖА [14:54:16]line Товар: 4700000160358 [14:54:16]line Вода Легенда 1л [14:54:16]line 1.000 * 50.00 [14:54:16]line = 50.00 [14:54:16]line НДС 12% НСП 1% [14:54:16]line > о реализуемом товаре [14:54:16]line ИТОГО: 50.00 [14:54:16]line НСП 1% : 0.44 [14:54:16]line НДС 12% : 5.31 [14:54:16]line Наличными: 50.00 [14:54:16]line Безнал.: 0.00 [14:54:16]line Место: АЗС № 5 "Партнер Нефть" [14:54:16]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [14:54:16]line СНО: Общий режим [14:54:16]line Чек 82 15.09.2024 14:54 [14:54:16]line Смена: 507 ФФД: 1.0 [14:54:16]line ЗНМ: 03000000022 [14:54:16]line РНМ: 0000000000091423 [14:54:16]line Версия ККМ: 001 [14:54:16]line ФМ: 0000000000874692 [14:54:16]line ФД: 92634 [14:54:16]line ФПД: 63895317023917 [14:54:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T145423&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92634&fm=63895317023917&tin=02508201610067®Number=0000000000091423&sum=5000 [14:54:16]line 0 [14:54:16]written 0, free lines is 4095 [14:54:16]OFD Sender: Processing packet 92634 [packets to send 63, broken 62] [14:54:16]ProducePacketName [14:54:16]name=ofd_packets/00092634 [14:54:16]OFD Sender: To server: pG, [14:54:16]CommunicateWithHost lk.salyk.kg:30040 [14:54:16]ConnectInit lk.salyk.kg [14:54:16]Connected sock=10 [14:54:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 21 01 00 00 57 D0 19 01 56 5A 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 1F F5 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DA 69 01 00 35 04 06 00 3A 1C C9 AC 8C AD 4B A1 4F E8 68 8C 03 5D [14:54:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 10 AB 47 00 C6 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DA 69 01 00 F4 03 04 00 97 9D E6 66 B6 04 01 00 00 57 D1 D5 FE 66 50 5A 0A [14:54:16]CommunicateWithHost err = 0 [14:54:16]CheckOFDResponse [14:54:16]1017 (14) - 77093643461234 [14:54:16]1041 (16) - 0000000000874692 [14:54:16]1040 (4) - 92634 [14:54:16]1012 (4) - 15.09.2024 08:40 [14:54:16]1206 (1) - 0 [14:54:16]OFD Sender: Remove packet 92634 [14:54:16]ProducePacketName [14:54:16]name=ofd_packets/00092634 [14:54:16]NVStorageDeleteData [14:54:16]Write to MH i2c: 01 00 00 41 57 98 [14:54:16]Write i2c OK [14:54:16]MH_I2C_Read... [14:54:16]Read from MH i2c: 01 [14:54:16]MH_I2C_Read... [14:54:16]Read from MH i2c: 01 07 00 [14:54:16]MH_I2C_Read... [14:54:16]Read from MH i2c: 01 07 00 41 57 00 00 00 00 00 19 0D C5 [14:54:16]RasterBufferAndPrint [14:54:16]line [14:54:16]line [14:54:16]line [14:54:16]line [14:54:16]line [14:54:16]written 0, free lines is 3362 [14:54:16]MH_Cut [14:54:16]Write to MH i2c: D1 01 00 48 57 01 71 [14:54:16]Write i2c OK [14:54:16]MH_I2C_Read... [14:54:16]Read from MH i2c: D1 [14:54:16]MH_I2C_Read... [14:54:16]Read from MH i2c: D1 01 00 [14:54:16]MH_I2C_Read... [14:54:16]Read from MH i2c: D1 01 00 48 57 00 70 [14:54:16]Write to MH i2c: 01 00 00 49 57 A0 [14:54:16]Write i2c OK [14:54:16]MH_I2C_Read... [14:54:17]OFD Sender: No OFD packet to send [14:54:17]*** Cut start [14:54:17]*** Purtial cut [14:54:17]*** Stage 1: CUTSNS_PIN = 1 [14:54:19]Read from MH i2c: 01 [14:54:19]MH_I2C_Read... [14:54:19]*** Stop cut motor [14:54:19]*** Cut end [14:54:19]Read from MH i2c: 01 07 00 [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: 01 07 00 49 57 00 00 00 00 00 FF 0F B5 [14:54:19]process_action close_receipt done [14:54:19]requested_data is exist [14:54:19]produce_requested_data [14:54:19]requested_item fm.sn is exist - process it [14:54:19]wFMCommunicate request_size=4 [14:54:19]MH_SAM_APDU [14:54:19]CAPDU: 80 11 00 00 [14:54:19]Write to MH i2c: E2 08 00 4A 57 80 11 00 00 00 00 00 00 1B [14:54:19]Write i2c OK [14:54:19]MH_I2C_Read... [14:54:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:19]Read from MH i2c: E2 [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: E2 17 00 [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: E2 17 00 4A 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 72 [14:54:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:54:19]wFMCommunicate OK [14:54:19]requested_item fd.num is exist - process it [14:54:19]SAM_PROTO_GetFieldsCounters [14:54:19]wFMCommunicate request_size=4 [14:54:19]MH_SAM_APDU [14:54:19]CAPDU: 80 13 00 00 [14:54:19]Write to MH i2c: E2 08 00 4B 57 80 13 00 00 00 00 00 00 1E [14:54:19]Write i2c OK [14:54:19]MH_I2C_Read... [14:54:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:19]Read from MH i2c: E2 [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: E2 62 00 [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: E2 62 00 4B 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 DA 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [14:54:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 DA 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:54:19]wFMCommunicate OK [14:54:19]SAM_PROTO_GetFieldsCounters done [14:54:19]requested_item shift.num is exist - process it [14:54:19]requested_item shift.opened is exist - process it [14:54:19]req_shift_opened [14:54:19]FM_GetShiftState [14:54:19]SAM_PROTO_GetShiftState [14:54:19]wFMCommunicate request_size=4 [14:54:19]MH_SAM_APDU [14:54:19]CAPDU: 80 13 01 00 [14:54:19]Write to MH i2c: E2 08 00 4C 57 80 13 01 00 00 00 00 00 20 [14:54:19]Write i2c OK [14:54:19]MH_I2C_Read... [14:54:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:19]Read from MH i2c: E2 [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: E2 0E 00 [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: E2 0E 00 4C 57 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 A2 [14:54:19]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [14:54:19]wFMCommunicate OK [14:54:19]SAM_PROTO_GetShiftState done [14:54:19]FM_GetShiftState done [14:54:19]req_shift_opened done [14:54:19]requested_item shift.open_date is exist - process it [14:54:19]req_shift_open_date [14:54:19]req_shift_open_date done [14:54:19]produce_requested_data done [14:54:19]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92634,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [14:54:19]process_action_free close_receipt [14:54:19]json_value_free [14:54:19]json_value_free done [14:54:19]process_json_proto returns [14:54:19]Send response to host [14:54:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92634,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [14:54:19]free response buf [14:54:19]execute_script done [14:54:19]execute_script returns [14:54:19]free content buf [14:54:19]Sock 9.Close socket [14:54:19]Sock 9.Thread stoped [14:54:22]OFD Sender: No OFD packet to send [14:54:27]OFD Sender: No OFD packet to send [14:54:32]OFD Sender: No OFD packet to send [14:54:37]OFD Sender: No OFD packet to send [14:54:42]OFD Sender: No OFD packet to send [14:54:47]OFD Sender: No OFD packet to send [14:54:52]OFD Sender: No OFD packet to send [14:54:57]OFD Sender: No OFD packet to send [14:55:02]OFD Sender: No OFD packet to send [14:55:07]OFD Sender: No OFD packet to send [14:55:12]OFD Sender: No OFD packet to send [14:55:17]OFD Sender: No OFD packet to send [14:55:22]OFD Sender: No OFD packet to send [14:55:27]OFD Sender: No OFD packet to send [14:55:32]OFD Sender: No OFD packet to send [14:55:37]OFD Sender: No OFD packet to send [14:55:42]OFD Sender: No OFD packet to send [14:55:47]OFD Sender: No OFD packet to send [14:55:52]OFD Sender: No OFD packet to send [14:55:57]OFD Sender: No OFD packet to send [14:56:02]OFD Sender: No OFD packet to send [14:56:07]OFD Sender: No OFD packet to send [14:56:12]OFD Sender: No OFD packet to send [14:56:17]OFD Sender: No OFD packet to send [14:56:22]OFD Sender: No OFD packet to send [14:56:27]OFD Sender: No OFD packet to send [14:56:32]OFD Sender: No OFD packet to send [14:56:37]OFD Sender: No OFD packet to send [14:56:42]OFD Sender: No OFD packet to send [14:56:47]OFD Sender: No OFD packet to send [14:56:52]OFD Sender: No OFD packet to send [14:56:57]OFD Sender: No OFD packet to send [14:57:02]OFD Sender: No OFD packet to send [14:57:07]OFD Sender: No OFD packet to send [14:57:12]OFD Sender: No OFD packet to send [14:57:17]OFD Sender: No OFD packet to send [14:57:22]OFD Sender: No OFD packet to send [14:57:27]OFD Sender: No OFD packet to send [14:57:32]OFD Sender: No OFD packet to send [14:57:37]OFD Sender: No OFD packet to send [14:57:42]OFD Sender: No OFD packet to send [14:57:47]OFD Sender: No OFD packet to send [14:57:52]OFD Sender: No OFD packet to send [14:57:57]OFD Sender: No OFD packet to send [14:58:02]OFD Sender: No OFD packet to send [14:58:07]OFD Sender: No OFD packet to send [14:58:12]OFD Sender: No OFD packet to send [14:58:17]OFD Sender: No OFD packet to send [14:58:22]OFD Sender: No OFD packet to send [14:58:27]OFD Sender: No OFD packet to send [14:58:32]OFD Sender: No OFD packet to send [14:58:37]OFD Sender: No OFD packet to send [14:58:42]OFD Sender: No OFD packet to send [14:58:47]OFD Sender: No OFD packet to send [14:58:52]OFD Sender: No OFD packet to send [14:58:57]OFD Sender: No OFD packet to send [14:59:02]OFD Sender: No OFD packet to send [14:59:07]OFD Sender: No OFD packet to send [14:59:12]OFD Sender: No OFD packet to send [14:59:17]OFD Sender: No OFD packet to send [14:59:22]OFD Sender: No OFD packet to send [14:59:27]OFD Sender: No OFD packet to send [14:59:32]OFD Sender: No OFD packet to send [14:59:37]OFD Sender: No OFD packet to send [14:59:42]OFD Sender: No OFD packet to send [14:59:47]OFD Sender: No OFD packet to send [14:59:52]OFD Sender: No OFD packet to send [14:59:57]OFD Sender: No OFD packet to send [15:00:02]OFD Sender: No OFD packet to send [15:00:07]OFD Sender: No OFD packet to send [15:00:12]OFD Sender: No OFD packet to send [15:00:17]OFD Sender: No OFD packet to send [15:00:22]OFD Sender: No OFD packet to send [15:00:27]OFD Sender: No OFD packet to send [15:00:32]OFD Sender: No OFD packet to send [15:00:37]OFD Sender: No OFD packet to send [15:00:42]OFD Sender: No OFD packet to send [15:00:47]OFD Sender: No OFD packet to send [15:00:52]OFD Sender: No OFD packet to send [15:00:57]OFD Sender: No OFD packet to send [15:01:02]OFD Sender: No OFD packet to send [15:01:07]OFD Sender: No OFD packet to send [15:01:12]OFD Sender: No OFD packet to send [15:01:17]OFD Sender: No OFD packet to send [15:01:22]OFD Sender: No OFD packet to send [15:01:27]OFD Sender: No OFD packet to send [15:01:32]OFD Sender: No OFD packet to send [15:01:37]OFD Sender: No OFD packet to send [15:01:42]OFD Sender: No OFD packet to send [15:01:47]OFD Sender: No OFD packet to send [15:01:52]OFD Sender: No OFD packet to send [15:01:57]OFD Sender: No OFD packet to send [15:02:02]OFD Sender: No OFD packet to send [15:02:07]OFD Sender: No OFD packet to send [15:02:12]OFD Sender: No OFD packet to send [15:02:17]OFD Sender: No OFD packet to send [15:02:22]OFD Sender: No OFD packet to send [15:02:27]OFD Sender: No OFD packet to send [15:02:32]OFD Sender: No OFD packet to send [15:02:37]OFD Sender: No OFD packet to send [15:02:42]OFD Sender: No OFD packet to send [15:02:47]OFD Sender: No OFD packet to send [15:02:52]OFD Sender: No OFD packet to send [15:02:57]OFD Sender: No OFD packet to send [15:03:02]OFD Sender: No OFD packet to send [15:03:07]OFD Sender: No OFD packet to send [15:03:12]OFD Sender: No OFD packet to send [15:03:17]OFD Sender: No OFD packet to send [15:03:22]OFD Sender: No OFD packet to send [15:03:27]OFD Sender: No OFD packet to send [15:03:32]OFD Sender: No OFD packet to send [15:03:37]OFD Sender: No OFD packet to send [15:03:42]OFD Sender: No OFD packet to send [15:03:47]OFD Sender: No OFD packet to send [15:03:52]OFD Sender: No OFD packet to send [15:03:57]OFD Sender: No OFD packet to send [15:04:02]OFD Sender: No OFD packet to send [15:04:07]OFD Sender: No OFD packet to send [15:04:12]OFD Sender: No OFD packet to send [15:04:17]OFD Sender: No OFD packet to send [15:04:22]OFD Sender: No OFD packet to send [15:04:27]OFD Sender: No OFD packet to send [15:04:32]OFD Sender: No OFD packet to send [15:04:37]OFD Sender: No OFD packet to send [15:04:42]OFD Sender: No OFD packet to send [15:04:47]OFD Sender: No OFD packet to send [15:04:52]OFD Sender: No OFD packet to send [15:04:57]OFD Sender: No OFD packet to send [15:05:02]OFD Sender: No OFD packet to send [15:05:07]OFD Sender: No OFD packet to send [15:05:12]OFD Sender: No OFD packet to send [15:05:17]OFD Sender: No OFD packet to send [15:05:22]OFD Sender: No OFD packet to send [15:05:27]OFD Sender: No OFD packet to send [15:05:32]OFD Sender: No OFD packet to send [15:05:37]OFD Sender: No OFD packet to send [15:05:42]OFD Sender: No OFD packet to send [15:05:47]OFD Sender: No OFD packet to send [15:05:52]OFD Sender: No OFD packet to send [15:05:57]OFD Sender: No OFD packet to send [15:06:02]OFD Sender: No OFD packet to send [15:06:07]OFD Sender: No OFD packet to send [15:06:12]OFD Sender: No OFD packet to send [15:06:17]OFD Sender: No OFD packet to send [15:06:22]OFD Sender: No OFD packet to send [15:06:27]OFD Sender: No OFD packet to send [15:06:32]OFD Sender: No OFD packet to send [15:06:36]accept exits with 8 [15:06:36]New connection [15:06:36]New thread 3066801508 created [15:06:36]Thread 3066658148 joined [15:06:36]Waiting for new connection... [15:06:36] Sock 8.Parse request [15:06:36]Sock 8.Check first char [15:06:36]Sock 8.First char is OK [15:06:36]request: POST /json_proto HTTP/1.0 [15:06:36]Method: POST [15:06:36]URL: /json_proto [15:06:36]Method is POST - this is cgi request [15:06:36]url: /json_proto [15:06:36]query_string will be loaded in cgi processing [15:06:36]execute_cgi json_proto POST (null) [15:06:36]execute_cgi path=json_proto method=POST [15:06:36]POST find Content-Length [15:06:36]Host: 172.17.57.71:8080 [15:06:36]Content-Length: 646 [15:06:36]Content-Type: application/json [15:06:36] [15:06:36]POST finish read [15:06:36]Found Content-Length = 646 [15:06:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127524", "tax_sys" : 0, "items" : [ { "code": "4870001154035", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u043F\u0435\u0440\u0441", "price" : 61.00, "quantity" : 1.000, "sum" : 61.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 61.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:36]execute_script... [15:06:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127524", "tax_sys" : 0, "items" : [ { "code": "4870001154035", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u043F\u0435\u0440\u0441", "price" : 61.00, "quantity" : 1.000, "sum" : 61.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 61.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:36]POST & json_proto [15:06:36]process_json_proto [15:06:36]json parsed OK: [15:06:36]protocol is kg_v1.0 [15:06:36]action value=close_receipt [15:06:36]process_action close_receipt [15:06:36]cmd_close_receipt [15:06:36]MH_GetDate [15:06:36]Write to MH i2c: F0 00 00 4D 57 93 [15:06:36]Write i2c OK [15:06:36]MH_I2C_Read... [15:06:36]Read from MH i2c: F0 [15:06:36]MH_I2C_Read... [15:06:36]Read from MH i2c: F0 09 00 [15:06:36]MH_I2C_Read... [15:06:36]Read from MH i2c: F0 09 00 4D 57 00 05 F8 E6 66 33 3A A4 66 5C [15:06:36]GetLastDocTimeStamp 1726412063 [15:06:36]current date 1726412805 [15:06:36]FM_GetShiftState [15:06:36]SAM_PROTO_GetShiftState [15:06:36]wFMCommunicate request_size=4 [15:06:36]MH_SAM_APDU [15:06:36]CAPDU: 80 13 01 00 [15:06:36]Write to MH i2c: E2 08 00 4E 57 80 13 01 00 00 00 00 00 22 [15:06:36]Write i2c OK [15:06:36]MH_I2C_Read... [15:06:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:36]Read from MH i2c: E2 [15:06:36]MH_I2C_Read... [15:06:36]Read from MH i2c: E2 0E 00 [15:06:36]MH_I2C_Read... [15:06:36]Read from MH i2c: E2 0E 00 4E 57 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 A4 [15:06:36]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [15:06:36]wFMCommunicate OK [15:06:36]SAM_PROTO_GetShiftState done [15:06:36]FM_GetShiftState done [15:06:36]opened in 1726359809 [15:06:36]opened+sec_in_day 1726446209 [15:06:36]quantity*price = 6100 [15:06:36]sum+1 = 6101 [15:06:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 61.00 НСП 1% : 0.54 НДС 12% : 6.48 Наличными: 61.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 83 15.09.2024 15:06 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92635 ФПД: 244070837161148 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T150645&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92635&fm=244070837161148&tin=02508201610067®Number=0000000000091423&sum=6100 0 [15:06:37]StoreToDocumentArchive [15:06:37]shift 507 fd 92635 [15:06:37]save to /storage/0507/doc_00092635 [15:06:37]save last doc name /storage/0507/doc_00092635 to /storage/kkm_last_doc_name [15:06:37]save OK [15:06:37]Clear old archive folders... [15:06:37]ProcessDocumentItem done err = 0, tmpTLVsize=285 [15:06:37]tlvbuf is 00FD3F80 [15:06:37]SAM_PROTO_ClearQueue [15:06:37]wFMCommunicate request_size=4 [15:06:37]MH_SAM_APDU [15:06:37]CAPDU: 80 09 00 00 [15:06:37]Write to MH i2c: E2 08 00 5B 57 80 09 00 00 00 00 00 00 24 [15:06:37]Write i2c OK [15:06:37]MH_I2C_Read... [15:06:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:06:37]Read from MH i2c: E2 [15:06:37]MH_I2C_Read... [15:06:37]Read from MH i2c: E2 03 00 [15:06:37]MH_I2C_Read... [15:06:37]Read from MH i2c: E2 03 00 5B 57 00 90 00 26 [15:06:37]RAPDU: 90 00 [15:06:37]wFMCommunicate OK [15:06:37]SAM_PROTO_ClearQueue done [15:06:37]KKMCreateOFDPacket [15:06:37]OFDProtocolAddRootSTLVToBuf [15:06:37]FM_MakeSignedData [15:06:37]FM_MakeSignedData [15:06:37]SAM_PROTO_SignData [15:06:37]wFMCommunicate request_size=4 [15:06:37]MH_SAM_APDU [15:06:37]CAPDU: 80 0D 01 02 [15:06:37]Write to MH i2c: E2 08 00 5C 57 80 0D 01 02 00 00 00 00 2C [15:06:37]Write i2c OK [15:06:37]MH_I2C_Read... [15:06:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:06:37]Read from MH i2c: E2 [15:06:37]MH_I2C_Read... [15:06:37]Read from MH i2c: E2 03 00 [15:06:37]MH_I2C_Read... [15:06:37]Read from MH i2c: E2 03 00 5C 57 00 90 00 27 [15:06:37]RAPDU: 90 00 [15:06:37]wFMCommunicate OK [15:06:37]wFMCommunicate request_size=255 [15:06:37]MH_SAM_APDU [15:06:37]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 D4 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 02 00 00 00 00 07 04 06 00 D4 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 05 F8 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 [15:06:37]Write to MH i2c: E2 02 01 5D 57 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 D4 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 02 00 00 00 00 07 04 06 00 D4 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 05 F8 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 00 00 42 [15:06:37]Write i2c OK [15:06:37]MH_I2C_Read... [15:06:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:37]Read from MH i2c: E2 [15:06:37]MH_I2C_Read... [15:06:37]Read from MH i2c: E2 03 00 [15:06:37]MH_I2C_Read... [15:06:37]Read from MH i2c: E2 03 00 5D 57 00 90 00 28 [15:06:37]RAPDU: 90 00 [15:06:37]wFMCommunicate OK [15:06:37]wFMCommunicate request_size=44 [15:06:37]MH_SAM_APDU [15:06:37]CAPDU: 80 0D 02 02 27 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DB 69 01 00 35 04 06 00 DD FB 2B 8C 8C BC [15:06:37]Write to MH i2c: E2 2F 00 5E 57 80 0D 02 02 27 00 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DB 69 01 00 35 04 06 00 DD FB 2B 8C 8C BC 00 00 6C [15:06:37]Write i2c OK [15:06:37]MH_I2C_Read... [15:06:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:37]Read from MH i2c: E2 [15:06:37]MH_I2C_Read... [15:06:37]Read from MH i2c: E2 03 00 [15:06:37]MH_I2C_Read... [15:06:37]Read from MH i2c: E2 03 00 5E 57 00 90 00 29 [15:06:37]RAPDU: 90 00 [15:06:37]wFMCommunicate OK [15:06:37]wFMCommunicate request_size=4 [15:06:37]MH_SAM_APDU [15:06:37]CAPDU: 80 0D 03 02 [15:06:37]Write to MH i2c: E2 08 00 5F 57 80 0D 03 02 00 00 00 00 31 [15:06:37]Write i2c OK [15:06:37]MH_I2C_Read... [15:06:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:37]Read from MH i2c: E2 [15:06:37]MH_I2C_Read... [15:06:37]Read from MH i2c: E2 0B 00 [15:06:37]MH_I2C_Read... [15:06:37]Read from MH i2c: E2 0B 00 5F 57 00 4A 20 40 08 3C E5 C4 60 90 00 29 [15:06:37]RAPDU: 4A 20 40 08 3C E5 C4 60 90 00 [15:06:37]wFMCommunicate OK [15:06:37]SAM_PROTO_SignData done [15:06:37]FM_MakeSignedData done [15:06:37]CreateOFDProtocolMessage [15:06:37]wFMCommunicate request_size=4 [15:06:37]MH_SAM_APDU [15:06:37]CAPDU: 80 11 00 00 [15:06:37]Write to MH i2c: E2 08 00 60 57 80 11 00 00 00 00 00 00 31 [15:06:37]Write i2c OK [15:06:37]MH_I2C_Read... [15:06:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:37]Read from MH i2c: E2 [15:06:37]MH_I2C_Read... [15:06:37]Read from MH i2c: E2 17 00 [15:06:37]MH_I2C_Read... [15:06:37]Read from MH i2c: E2 17 00 60 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 88 [15:06:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:06:37]wFMCommunicate OK [15:06:37]CreateOFDProtocolMessage done [15:06:37]OFDSenderStorePacket 92635 [15:06:37]StoreOFDPacket docnum=92635 [15:06:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 31 01 00 00 72 CB 29 01 03 63 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 D4 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 02 00 00 00 00 07 04 06 00 D4 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 05 F8 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DB 69 01 00 35 04 06 00 DD FB 2B 8C 8C BC 4A 20 40 08 3C E5 C4 60 [15:06:37]CheckFolder [15:06:37]dirname=/storage/ofd_packets [15:06:37]CheckFolder done [15:06:37]ProducePacketName [15:06:37]name=ofd_packets/00092635 [15:06:37]NVStorageSaveData ofd_packets/00092635 [15:06:37]File name is /storage/ofd_packets/00092635 [15:06:37]Write 335 bytes [15:06:37]NVStorageSaveData done [15:06:37]OFDSenderStorePacket done [15:06:37]KKMCreateOFDPacket done [15:06:37]NVStorageSaveData kkm_last_timestamp [15:06:37]File name is /storage/kkm_last_timestamp [15:06:37]Write 4 bytes [15:06:37]NVStorageSaveData done [15:06:37]ExternCall_PrintAddStr [15:06:37]wPrintStart [15:06:37]Write to MH i2c: 01 00 00 61 57 B8 [15:06:37]Write i2c OK [15:06:37]MH_I2C_Read... [15:06:37]Read from MH i2c: 01 [15:06:37]MH_I2C_Read... [15:06:37]Read from MH i2c: 01 07 00 [15:06:37]MH_I2C_Read... [15:06:37]Read from MH i2c: 01 07 00 61 57 00 00 00 00 00 FF 0F CD [15:06:37]RasterBufferAndPrint [15:06:37]line Счет N : (3)127524 [15:06:37]line ИНН: 02508201610067 [15:06:37]line Контрольно-Кассовый Чек [15:06:37]line ПРОДАЖА [15:06:37]line Товар: 4870001154035 [15:06:37]line Напиток Lipton IceTea 0,5л перс [15:06:37]line 1.000 * 61.00 [15:06:37]line = 61.00 [15:06:37]line НДС 12% НСП 1% [15:06:37]line > о реализуемом товаре [15:06:37]line ИТОГО: 61.00 [15:06:37]line НСП 1% : 0.54 [15:06:37]line НДС 12% : 6.48 [15:06:37]line Наличными: 61.00 [15:06:37]line Безнал.: 0.00 [15:06:37]line Место: АЗС № 5 "Партнер Нефть" [15:06:37]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [15:06:37]line СНО: Общий режим [15:06:37]line Чек 83 15.09.2024 15:06 [15:06:37]line Смена: 507 ФФД: 1.0 [15:06:37]line ЗНМ: 03000000022 [15:06:37]line РНМ: 0000000000091423 [15:06:37]line Версия ККМ: 001 [15:06:37]line ФМ: 0000000000874692 [15:06:37]line ФД: 92635 [15:06:37]line ФПД: 244070837161148 [15:06:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T150645&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92635&fm=244070837161148&tin=02508201610067®Number=0000000000091423&sum=6100 [15:06:38]OFD Sender: Processing packet 92635 [packets to send 63, broken 62] [15:06:38]ProducePacketName [15:06:38]name=ofd_packets/00092635 [15:06:38]OFD Sender: To server: pG, [15:06:38]CommunicateWithHost lk.salyk.kg:30040 [15:06:38]ConnectInit lk.salyk.kg [15:06:38]line 0 [15:06:38]written 0, free lines is 4095 [15:06:38]Connected sock=10 [15:06:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 31 01 00 00 72 CB 29 01 03 63 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 D4 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 02 00 00 00 00 07 04 06 00 D4 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 05 F8 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DB 69 01 00 35 04 06 00 DD FB 2B 8C 8C BC 4A 20 40 08 3C E5 C4 60 [15:06:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 EF 29 47 00 34 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DB 69 01 00 F4 03 04 00 7C A0 E6 66 B6 04 01 00 00 8B 72 BA 72 54 2D 31 A4 [15:06:38]CommunicateWithHost err = 0 [15:06:38]CheckOFDResponse [15:06:38]1017 (14) - 77093643461234 [15:06:38]1041 (16) - 0000000000874692 [15:06:38]1040 (4) - 92635 [15:06:38]1012 (4) - 15.09.2024 08:53 [15:06:38]1206 (1) - 0 [15:06:38]OFD Sender: Remove packet 92635 [15:06:38]ProducePacketName [15:06:38]name=ofd_packets/00092635 [15:06:38]NVStorageDeleteData [15:06:38]Write to MH i2c: 01 00 00 8A 57 E1 [15:06:38]Write i2c OK [15:06:38]MH_I2C_Read... [15:06:38]Read from MH i2c: 01 [15:06:38]MH_I2C_Read... [15:06:38]Read from MH i2c: 01 07 00 [15:06:38]MH_I2C_Read... [15:06:38]Read from MH i2c: 01 07 00 8A 57 00 00 00 00 00 0C 0D 01 [15:06:38]RasterBufferAndPrint [15:06:38]line [15:06:38]line [15:06:38]line [15:06:38]line [15:06:38]line [15:06:38]written 0, free lines is 3346 [15:06:38]MH_Cut [15:06:38]Write to MH i2c: D1 01 00 91 57 01 BA [15:06:38]Write i2c OK [15:06:38]MH_I2C_Read... [15:06:38]Read from MH i2c: D1 [15:06:38]MH_I2C_Read... [15:06:38]Read from MH i2c: D1 01 00 [15:06:38]MH_I2C_Read... [15:06:38]Read from MH i2c: D1 01 00 91 57 00 B9 [15:06:38]Write to MH i2c: 01 00 00 92 57 E9 [15:06:38]Write i2c OK [15:06:38]MH_I2C_Read... [15:06:38]OFD Sender: No OFD packet to send [15:06:39]*** Cut start [15:06:39]*** Purtial cut [15:06:39]*** Stage 1: CUTSNS_PIN = 1 [15:06:41]Read from MH i2c: 01 [15:06:41]MH_I2C_Read... [15:06:41]*** Stop cut motor [15:06:41]*** Cut end [15:06:41]Read from MH i2c: 01 07 00 [15:06:41]MH_I2C_Read... [15:06:41]Read from MH i2c: 01 07 00 92 57 00 00 00 00 00 FF 0F FE [15:06:41]process_action close_receipt done [15:06:41]requested_data is exist [15:06:41]produce_requested_data [15:06:41]requested_item fm.sn is exist - process it [15:06:41]wFMCommunicate request_size=4 [15:06:41]MH_SAM_APDU [15:06:41]CAPDU: 80 11 00 00 [15:06:41]Write to MH i2c: E2 08 00 93 57 80 11 00 00 00 00 00 00 64 [15:06:41]Write i2c OK [15:06:41]MH_I2C_Read... [15:06:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:41]Read from MH i2c: E2 [15:06:41]MH_I2C_Read... [15:06:41]Read from MH i2c: E2 17 00 [15:06:41]MH_I2C_Read... [15:06:41]Read from MH i2c: E2 17 00 93 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 BB [15:06:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:06:41]wFMCommunicate OK [15:06:41]requested_item fd.num is exist - process it [15:06:41]SAM_PROTO_GetFieldsCounters [15:06:41]wFMCommunicate request_size=4 [15:06:41]MH_SAM_APDU [15:06:41]CAPDU: 80 13 00 00 [15:06:41]Write to MH i2c: E2 08 00 94 57 80 13 00 00 00 00 00 00 67 [15:06:41]Write i2c OK [15:06:41]MH_I2C_Read... [15:06:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:06:41]Read from MH i2c: E2 [15:06:41]MH_I2C_Read... [15:06:41]Read from MH i2c: E2 62 00 [15:06:41]MH_I2C_Read... [15:06:41]Read from MH i2c: E2 62 00 94 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 DB 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [15:06:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 DB 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:06:41]wFMCommunicate OK [15:06:41]SAM_PROTO_GetFieldsCounters done [15:06:41]requested_item shift.num is exist - process it [15:06:41]requested_item shift.opened is exist - process it [15:06:41]req_shift_opened [15:06:41]FM_GetShiftState [15:06:41]SAM_PROTO_GetShiftState [15:06:41]wFMCommunicate request_size=4 [15:06:41]MH_SAM_APDU [15:06:41]CAPDU: 80 13 01 00 [15:06:41]Write to MH i2c: E2 08 00 95 57 80 13 01 00 00 00 00 00 69 [15:06:41]Write i2c OK [15:06:41]MH_I2C_Read... [15:06:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:41]Read from MH i2c: E2 [15:06:41]MH_I2C_Read... [15:06:41]Read from MH i2c: E2 0E 00 [15:06:41]MH_I2C_Read... [15:06:41]Read from MH i2c: E2 0E 00 95 57 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 EB [15:06:41]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [15:06:41]wFMCommunicate OK [15:06:41]SAM_PROTO_GetShiftState done [15:06:41]FM_GetShiftState done [15:06:41]req_shift_opened done [15:06:41]requested_item shift.open_date is exist - process it [15:06:41]req_shift_open_date [15:06:41]req_shift_open_date done [15:06:41]produce_requested_data done [15:06:41]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92635,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [15:06:41]process_action_free close_receipt [15:06:41]json_value_free [15:06:41]json_value_free done [15:06:41]process_json_proto returns [15:06:41]Send response to host [15:06:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92635,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [15:06:41]free response buf [15:06:41]execute_script done [15:06:41]execute_script returns [15:06:41]free content buf [15:06:41]Sock 8.Close socket [15:06:41]Sock 8.Thread stoped [15:06:44]OFD Sender: No OFD packet to send [15:06:49]OFD Sender: No OFD packet to send [15:06:54]OFD Sender: No OFD packet to send [15:06:59]OFD Sender: No OFD packet to send [15:07:04]OFD Sender: No OFD packet to send [15:07:09]OFD Sender: No OFD packet to send [15:07:14]OFD Sender: No OFD packet to send [15:07:19]OFD Sender: No OFD packet to send [15:07:24]OFD Sender: No OFD packet to send [15:07:29]OFD Sender: No OFD packet to send [15:07:34]OFD Sender: No OFD packet to send [15:07:39]OFD Sender: No OFD packet to send [15:07:44]OFD Sender: No OFD packet to send [15:07:49]OFD Sender: No OFD packet to send [15:07:54]OFD Sender: No OFD packet to send [15:07:59]OFD Sender: No OFD packet to send [15:08:04]OFD Sender: No OFD packet to send [15:08:09]OFD Sender: No OFD packet to send [15:08:14]OFD Sender: No OFD packet to send [15:08:19]OFD Sender: No OFD packet to send [15:08:24]OFD Sender: No OFD packet to send [15:08:29]OFD Sender: No OFD packet to send [15:08:34]OFD Sender: No OFD packet to send [15:08:39]OFD Sender: No OFD packet to send [15:08:44]OFD Sender: No OFD packet to send [15:08:49]OFD Sender: No OFD packet to send [15:08:54]OFD Sender: No OFD packet to send [15:08:59]OFD Sender: No OFD packet to send [15:09:04]OFD Sender: No OFD packet to send [15:09:09]OFD Sender: No OFD packet to send [15:09:14]OFD Sender: No OFD packet to send [15:09:19]OFD Sender: No OFD packet to send [15:09:24]OFD Sender: No OFD packet to send [15:09:29]OFD Sender: No OFD packet to send [15:09:34]OFD Sender: No OFD packet to send [15:09:39]OFD Sender: No OFD packet to send [15:09:44]OFD Sender: No OFD packet to send [15:09:49]OFD Sender: No OFD packet to send [15:09:54]OFD Sender: No OFD packet to send [15:09:59]OFD Sender: No OFD packet to send [15:10:04]OFD Sender: No OFD packet to send [15:10:09]OFD Sender: No OFD packet to send [15:10:14]OFD Sender: No OFD packet to send [15:10:19]OFD Sender: No OFD packet to send [15:10:24]OFD Sender: No OFD packet to send [15:10:29]OFD Sender: No OFD packet to send [15:10:34]OFD Sender: No OFD packet to send [15:10:39]OFD Sender: No OFD packet to send [15:10:44]OFD Sender: No OFD packet to send [15:10:49]OFD Sender: No OFD packet to send [15:10:54]OFD Sender: No OFD packet to send [15:10:59]OFD Sender: No OFD packet to send [15:11:04]OFD Sender: No OFD packet to send [15:11:09]OFD Sender: No OFD packet to send [15:11:14]OFD Sender: No OFD packet to send [15:11:19]OFD Sender: No OFD packet to send [15:11:24]OFD Sender: No OFD packet to send [15:11:29]OFD Sender: No OFD packet to send [15:11:34]OFD Sender: No OFD packet to send [15:11:39]OFD Sender: No OFD packet to send [15:11:44]OFD Sender: No OFD packet to send [15:11:49]OFD Sender: No OFD packet to send [15:11:51]accept exits with 9 [15:11:51]New connection [15:11:51]New thread 3066658148 created [15:11:51]Thread 3066801508 joined [15:11:51]Waiting for new connection... [15:11:51] Sock 9.Parse request [15:11:51]Sock 9.Check first char [15:11:51]Sock 9.First char is OK [15:11:51]request: POST /json_proto HTTP/1.0 [15:11:51]Method: POST [15:11:51]URL: /json_proto [15:11:51]Method is POST - this is cgi request [15:11:51]url: /json_proto [15:11:51]query_string will be loaded in cgi processing [15:11:51]execute_cgi json_proto POST (null) [15:11:51]execute_cgi path=json_proto method=POST [15:11:51]POST find Content-Length [15:11:51]Host: 172.17.57.71:8080 [15:11:51]Content-Length: 845 [15:11:51]Content-Type: application/json [15:11:51] [15:11:51]POST finish read [15:11:51]Found Content-Length = 845 [15:11:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127525", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:51]execute_script... [15:11:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127525", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:51]POST & json_proto [15:11:51]process_json_proto [15:11:51]json parsed OK: [15:11:51]protocol is kg_v1.0 [15:11:51]action value=close_receipt [15:11:51]process_action close_receipt [15:11:51]cmd_close_receipt [15:11:51]MH_GetDate [15:11:51]Write to MH i2c: F0 00 00 96 57 DC [15:11:51]Write i2c OK [15:11:51]MH_I2C_Read... [15:11:51]Read from MH i2c: F0 [15:11:51]MH_I2C_Read... [15:11:51]Read from MH i2c: F0 09 00 [15:11:51]MH_I2C_Read... [15:11:51]Read from MH i2c: F0 09 00 96 57 00 40 F9 E6 66 33 3A A4 66 E1 [15:11:51]GetLastDocTimeStamp 1726412805 [15:11:51]current date 1726413120 [15:11:51]FM_GetShiftState [15:11:51]SAM_PROTO_GetShiftState [15:11:51]wFMCommunicate request_size=4 [15:11:51]MH_SAM_APDU [15:11:51]CAPDU: 80 13 01 00 [15:11:51]Write to MH i2c: E2 08 00 97 57 80 13 01 00 00 00 00 00 6B [15:11:51]Write i2c OK [15:11:51]MH_I2C_Read... [15:11:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:51]Read from MH i2c: E2 [15:11:51]MH_I2C_Read... [15:11:51]Read from MH i2c: E2 0E 00 [15:11:51]MH_I2C_Read... [15:11:51]Read from MH i2c: E2 0E 00 97 57 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 ED [15:11:51]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [15:11:51]wFMCommunicate OK [15:11:51]SAM_PROTO_GetShiftState done [15:11:51]FM_GetShiftState done [15:11:51]opened in 1726359809 [15:11:51]opened+sec_in_day 1726446209 [15:11:51]quantity*price = 18000 [15:11:51]sum+1 = 18001 [15:11:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 0.00 Безнал.: 180.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 84 15.09.2024 15:12 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92636 ФПД: 221626421202023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T151200&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92636&fm=221626421202023&tin=02508201610067®Number=0000000000091423&sum=18000 0 [15:11:52]StoreToDocumentArchive [15:11:52]shift 507 fd 92636 [15:11:52]save to /storage/0507/doc_00092636 [15:11:52]save last doc name /storage/0507/doc_00092636 to /storage/kkm_last_doc_name [15:11:52]save OK [15:11:52]Clear old archive folders... [15:11:52]ProcessDocumentItem done err = 0, tmpTLVsize=293 [15:11:52]tlvbuf is 00FD3BE0 [15:11:52]SAM_PROTO_ClearQueue [15:11:52]wFMCommunicate request_size=4 [15:11:52]MH_SAM_APDU [15:11:52]CAPDU: 80 09 00 00 [15:11:52]Write to MH i2c: E2 08 00 A4 57 80 09 00 00 00 00 00 00 6D [15:11:52]Write i2c OK [15:11:52]MH_I2C_Read... [15:11:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:52]Read from MH i2c: E2 [15:11:52]MH_I2C_Read... [15:11:52]Read from MH i2c: E2 03 00 [15:11:52]MH_I2C_Read... [15:11:52]Read from MH i2c: E2 03 00 A4 57 00 90 00 6F [15:11:52]RAPDU: 90 00 [15:11:52]wFMCommunicate OK [15:11:52]SAM_PROTO_ClearQueue done [15:11:52]KKMCreateOFDPacket [15:11:52]OFDProtocolAddRootSTLVToBuf [15:11:52]FM_MakeSignedData [15:11:52]FM_MakeSignedData [15:11:52]SAM_PROTO_SignData [15:11:52]wFMCommunicate request_size=4 [15:11:52]MH_SAM_APDU [15:11:52]CAPDU: 80 0D 01 02 [15:11:52]Write to MH i2c: E2 08 00 A5 57 80 0D 01 02 00 00 00 00 75 [15:11:52]Write i2c OK [15:11:52]MH_I2C_Read... [15:11:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:52]Read from MH i2c: E2 [15:11:52]MH_I2C_Read... [15:11:52]Read from MH i2c: E2 03 00 [15:11:52]MH_I2C_Read... [15:11:52]Read from MH i2c: E2 03 00 A5 57 00 90 00 70 [15:11:52]RAPDU: 90 00 [15:11:52]wFMCommunicate OK [15:11:52]wFMCommunicate request_size=255 [15:11:52]MH_SAM_APDU [15:11:52]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 40 F9 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [15:11:52]Write to MH i2c: E2 02 01 A6 57 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 40 F9 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 FD [15:11:52]Write i2c OK [15:11:52]MH_I2C_Read... [15:11:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:53]Read from MH i2c: E2 [15:11:53]MH_I2C_Read... [15:11:53]Read from MH i2c: E2 03 00 [15:11:53]MH_I2C_Read... [15:11:53]Read from MH i2c: E2 03 00 A6 57 00 90 00 71 [15:11:53]RAPDU: 90 00 [15:11:53]wFMCommunicate OK [15:11:53]wFMCommunicate request_size=52 [15:11:53]MH_SAM_APDU [15:11:53]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DC 69 01 00 35 04 06 00 C9 91 6C 1B CC 67 [15:11:53]Write to MH i2c: E2 37 00 A7 57 80 0D 02 02 2F 00 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DC 69 01 00 35 04 06 00 C9 91 6C 1B CC 67 00 00 93 [15:11:53]Write i2c OK [15:11:53]MH_I2C_Read... [15:11:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:53]Read from MH i2c: E2 [15:11:53]MH_I2C_Read... [15:11:53]Read from MH i2c: E2 03 00 [15:11:53]MH_I2C_Read... [15:11:53]Read from MH i2c: E2 03 00 A7 57 00 90 00 72 [15:11:53]RAPDU: 90 00 [15:11:53]wFMCommunicate OK [15:11:53]wFMCommunicate request_size=4 [15:11:53]MH_SAM_APDU [15:11:53]CAPDU: 80 0D 03 02 [15:11:53]Write to MH i2c: E2 08 00 A8 57 80 0D 03 02 00 00 00 00 7A [15:11:53]Write i2c OK [15:11:53]MH_I2C_Read... [15:11:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:53]Read from MH i2c: E2 [15:11:53]MH_I2C_Read... [15:11:53]Read from MH i2c: E2 0B 00 [15:11:53]MH_I2C_Read... [15:11:53]Read from MH i2c: E2 0B 00 A8 57 00 48 E9 3C 6D 23 95 9E 5F 90 00 0A [15:11:53]RAPDU: 48 E9 3C 6D 23 95 9E 5F 90 00 [15:11:53]wFMCommunicate OK [15:11:53]SAM_PROTO_SignData done [15:11:53]FM_MakeSignedData done [15:11:53]CreateOFDProtocolMessage [15:11:53]wFMCommunicate request_size=4 [15:11:53]MH_SAM_APDU [15:11:53]CAPDU: 80 11 00 00 [15:11:53]Write to MH i2c: E2 08 00 A9 57 80 11 00 00 00 00 00 00 7A [15:11:53]Write i2c OK [15:11:53]MH_I2C_Read... [15:11:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:53]Read from MH i2c: E2 [15:11:53]MH_I2C_Read... [15:11:53]Read from MH i2c: E2 17 00 [15:11:53]MH_I2C_Read... [15:11:53]Read from MH i2c: E2 17 00 A9 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D1 [15:11:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:11:53]wFMCommunicate OK [15:11:53]CreateOFDProtocolMessage done [15:11:53]OFDSenderStorePacket 92636 [15:11:53]StoreOFDPacket docnum=92636 [15:11:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 39 01 00 00 49 76 31 01 BC E5 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 40 F9 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DC 69 01 00 35 04 06 00 C9 91 6C 1B CC 67 48 E9 3C 6D 23 95 9E 5F [15:11:53]CheckFolder [15:11:53]dirname=/storage/ofd_packets [15:11:53]CheckFolder done [15:11:53]ProducePacketName [15:11:53]name=ofd_packets/00092636 [15:11:53]NVStorageSaveData ofd_packets/00092636 [15:11:53]File name is /storage/ofd_packets/00092636 [15:11:53]Write 343 bytes [15:11:53]NVStorageSaveData done [15:11:53]OFDSenderStorePacket done [15:11:53]KKMCreateOFDPacket done [15:11:53]NVStorageSaveData kkm_last_timestamp [15:11:53]File name is /storage/kkm_last_timestamp [15:11:53]Write 4 bytes [15:11:53]NVStorageSaveData done [15:11:53]ExternCall_PrintAddStr [15:11:53]wPrintStart [15:11:53]Write to MH i2c: 01 00 00 AA 57 01 [15:11:53]Write i2c OK [15:11:53]MH_I2C_Read... [15:11:53]Read from MH i2c: 01 [15:11:53]MH_I2C_Read... [15:11:53]Read from MH i2c: 01 07 00 [15:11:53]MH_I2C_Read... [15:11:53]Read from MH i2c: 01 07 00 AA 57 00 00 00 00 00 FF 0F 16 [15:11:53]RasterBufferAndPrint [15:11:53]line Счет N : (3)127525 [15:11:53]line ИНН: 02508201610067 [15:11:53]line Контрольно-Кассовый Чек [15:11:53]line ПРОДАЖА [15:11:53]line Товар: 4870022003305 [15:11:53]line Напиток Gorilla эн нат ж/б 0,5/0,45л [15:11:53]line 2.000 * 90.00 [15:11:53]line = 180.00 [15:11:53]line НДС 12% НСП 1% [15:11:53]line > о реализуемом товаре [15:11:53]line ИТОГО: 180.00 [15:11:53]line НСП 1% : 1.59 [15:11:53]line НДС 12% : 19.11 [15:11:53]line Наличными: 0.00 [15:11:53]line Безнал.: 180.00 [15:11:53]line Место: АЗС № 5 "Партнер Нефть" [15:11:53]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [15:11:53]line СНО: Общий режим [15:11:53]line Чек 84 15.09.2024 15:12 [15:11:53]line Смена: 507 ФФД: 1.0 [15:11:53]line ЗНМ: 03000000022 [15:11:53]line РНМ: 0000000000091423 [15:11:53]line Версия ККМ: 001 [15:11:53]line Платежная система: Бакай Банк [15:11:53]line ФМ: 0000000000874692 [15:11:53]line ФД: 92636 [15:11:53]line ФПД: 221626421202023 [15:11:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T151200&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92636&fm=221626421202023&tin=02508201610067®Number=0000000000091423&sum=18000 [15:11:53]line 0 [15:11:53]OFD Sender: Processing packet 92636 [packets to send 63, broken 62] [15:11:53]ProducePacketName [15:11:53]name=ofd_packets/00092636 [15:11:53]OFD Sender: To server: pG, [15:11:53]CommunicateWithHost lk.salyk.kg:30040 [15:11:53]ConnectInit lk.salyk.kg [15:11:53]written 0, free lines is 4095 [15:11:53]Connected sock=10 [15:11:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 39 01 00 00 49 76 31 01 BC E5 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 40 F9 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DC 69 01 00 35 04 06 00 C9 91 6C 1B CC 67 48 E9 3C 6D 23 95 9E 5F [15:11:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 75 25 47 00 0B 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DC 69 01 00 F4 03 04 00 B8 A1 E6 66 B6 04 01 00 00 17 3D 33 A8 07 5E BD 78 [15:11:53]CommunicateWithHost err = 0 [15:11:53]CheckOFDResponse [15:11:53]1017 (14) - 77093643461234 [15:11:53]1041 (16) - 0000000000874692 [15:11:53]1040 (4) - 92636 [15:11:53]1012 (4) - 15.09.2024 08:58 [15:11:53]1206 (1) - 0 [15:11:53]OFD Sender: Remove packet 92636 [15:11:53]ProducePacketName [15:11:53]name=ofd_packets/00092636 [15:11:53]NVStorageDeleteData [15:11:54]Write to MH i2c: 01 00 00 D5 57 2C [15:11:54]Write i2c OK [15:11:54]MH_I2C_Read... [15:11:54]Read from MH i2c: 01 [15:11:54]MH_I2C_Read... [15:11:54]Read from MH i2c: 01 07 00 [15:11:54]MH_I2C_Read... [15:11:54]Read from MH i2c: 01 07 00 D5 57 00 00 00 00 00 FB 0C 3A [15:11:54]RasterBufferAndPrint [15:11:54]line [15:11:54]line [15:11:54]line [15:11:54]line [15:11:54]line [15:11:54]written 0, free lines is 3328 [15:11:54]MH_Cut [15:11:54]Write to MH i2c: D1 01 00 DC 57 01 05 [15:11:54]Write i2c OK [15:11:54]MH_I2C_Read... [15:11:54]Read from MH i2c: D1 [15:11:54]MH_I2C_Read... [15:11:54]Read from MH i2c: D1 01 00 [15:11:54]MH_I2C_Read... [15:11:54]Read from MH i2c: D1 01 00 DC 57 00 04 [15:11:54]Write to MH i2c: 01 00 00 DD 57 34 [15:11:54]Write i2c OK [15:11:54]MH_I2C_Read... [15:11:54]OFD Sender: No OFD packet to send [15:11:54]*** Cut start [15:11:54]*** Purtial cut [15:11:54]*** Stage 1: CUTSNS_PIN = 1 [15:11:56]Read from MH i2c: 01 [15:11:56]MH_I2C_Read... [15:11:56]*** Stop cut motor [15:11:56]*** Cut end [15:11:56]Read from MH i2c: 01 07 00 [15:11:56]MH_I2C_Read... [15:11:56]Read from MH i2c: 01 07 00 DD 57 00 00 00 00 00 FF 0F 49 [15:11:56]process_action close_receipt done [15:11:56]requested_data is exist [15:11:56]produce_requested_data [15:11:56]requested_item fm.sn is exist - process it [15:11:56]wFMCommunicate request_size=4 [15:11:56]MH_SAM_APDU [15:11:56]CAPDU: 80 11 00 00 [15:11:56]Write to MH i2c: E2 08 00 DE 57 80 11 00 00 00 00 00 00 AF [15:11:56]Write i2c OK [15:11:56]MH_I2C_Read... [15:11:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:56]Read from MH i2c: E2 [15:11:56]MH_I2C_Read... [15:11:56]Read from MH i2c: E2 17 00 [15:11:56]MH_I2C_Read... [15:11:56]Read from MH i2c: E2 17 00 DE 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 06 [15:11:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:11:56]wFMCommunicate OK [15:11:56]requested_item fd.num is exist - process it [15:11:56]SAM_PROTO_GetFieldsCounters [15:11:56]wFMCommunicate request_size=4 [15:11:56]MH_SAM_APDU [15:11:56]CAPDU: 80 13 00 00 [15:11:56]Write to MH i2c: E2 08 00 DF 57 80 13 00 00 00 00 00 00 B2 [15:11:56]Write i2c OK [15:11:56]MH_I2C_Read... [15:11:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:56]Read from MH i2c: E2 [15:11:56]MH_I2C_Read... [15:11:56]Read from MH i2c: E2 62 00 [15:11:56]MH_I2C_Read... [15:11:56]Read from MH i2c: E2 62 00 DF 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 DC 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [15:11:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 DC 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:11:56]wFMCommunicate OK [15:11:56]SAM_PROTO_GetFieldsCounters done [15:11:56]requested_item shift.num is exist - process it [15:11:56]requested_item shift.opened is exist - process it [15:11:56]req_shift_opened [15:11:56]FM_GetShiftState [15:11:56]SAM_PROTO_GetShiftState [15:11:56]wFMCommunicate request_size=4 [15:11:56]MH_SAM_APDU [15:11:56]CAPDU: 80 13 01 00 [15:11:56]Write to MH i2c: E2 08 00 E0 57 80 13 01 00 00 00 00 00 B4 [15:11:57]Write i2c OK [15:11:57]MH_I2C_Read... [15:11:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:57]Read from MH i2c: E2 [15:11:57]MH_I2C_Read... [15:11:57]Read from MH i2c: E2 0E 00 [15:11:57]MH_I2C_Read... [15:11:57]Read from MH i2c: E2 0E 00 E0 57 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 36 [15:11:57]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [15:11:57]wFMCommunicate OK [15:11:57]SAM_PROTO_GetShiftState done [15:11:57]FM_GetShiftState done [15:11:57]req_shift_opened done [15:11:57]requested_item shift.open_date is exist - process it [15:11:57]req_shift_open_date [15:11:57]req_shift_open_date done [15:11:57]produce_requested_data done [15:11:57]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92636,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [15:11:57]process_action_free close_receipt [15:11:57]json_value_free [15:11:57]json_value_free done [15:11:57]process_json_proto returns [15:11:57]Send response to host [15:11:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92636,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [15:11:57]free response buf [15:11:57]execute_script done [15:11:57]execute_script returns [15:11:57]free content buf [15:11:57]Sock 9.Close socket [15:11:57]Sock 9.Thread stoped [15:11:59]OFD Sender: No OFD packet to send [15:12:04]OFD Sender: No OFD packet to send [15:12:09]OFD Sender: No OFD packet to send [15:12:14]OFD Sender: No OFD packet to send [15:12:19]OFD Sender: No OFD packet to send [15:12:24]OFD Sender: No OFD packet to send [15:12:29]OFD Sender: No OFD packet to send [15:12:34]OFD Sender: No OFD packet to send [15:12:39]OFD Sender: No OFD packet to send [15:12:44]OFD Sender: No OFD packet to send [15:12:49]OFD Sender: No OFD packet to send [15:12:54]OFD Sender: No OFD packet to send [15:12:59]OFD Sender: No OFD packet to send [15:13:04]OFD Sender: No OFD packet to send [15:13:09]OFD Sender: No OFD packet to send [15:13:14]OFD Sender: No OFD packet to send [15:13:19]OFD Sender: No OFD packet to send [15:13:24]OFD Sender: No OFD packet to send [15:13:29]OFD Sender: No OFD packet to send [15:13:34]OFD Sender: No OFD packet to send [15:13:39]OFD Sender: No OFD packet to send [15:13:44]OFD Sender: No OFD packet to send [15:13:49]OFD Sender: No OFD packet to send [15:13:54]OFD Sender: No OFD packet to send [15:13:59]OFD Sender: No OFD packet to send [15:14:04]OFD Sender: No OFD packet to send [15:14:09]OFD Sender: No OFD packet to send [15:14:14]OFD Sender: No OFD packet to send [15:14:19]OFD Sender: No OFD packet to send [15:14:24]OFD Sender: No OFD packet to send [15:14:29]OFD Sender: No OFD packet to send [15:14:34]OFD Sender: No OFD packet to send [15:14:39]OFD Sender: No OFD packet to send [15:14:44]OFD Sender: No OFD packet to send [15:14:49]OFD Sender: No OFD packet to send [15:14:54]OFD Sender: No OFD packet to send [15:14:59]OFD Sender: No OFD packet to send [15:15:04]OFD Sender: No OFD packet to send [15:15:09]OFD Sender: No OFD packet to send [15:15:14]OFD Sender: No OFD packet to send [15:15:19]OFD Sender: No OFD packet to send [15:15:20]accept exits with 8 [15:15:20]New connection [15:15:20]New thread 3066801508 created [15:15:20]Thread 3066658148 joined [15:15:20]Waiting for new connection... [15:15:20] Sock 8.Parse request [15:15:20]Sock 8.Check first char [15:15:20]Sock 8.First char is OK [15:15:20]request: POST /json_proto HTTP/1.0 [15:15:20]Method: POST [15:15:20]URL: /json_proto [15:15:20]Method is POST - this is cgi request [15:15:20]url: /json_proto [15:15:20]query_string will be loaded in cgi processing [15:15:20]execute_cgi json_proto POST (null) [15:15:20]execute_cgi path=json_proto method=POST [15:15:20]POST find Content-Length [15:15:20]Host: 172.17.57.71:8080 [15:15:20]Content-Length: 1157 [15:15:20]Content-Type: application/json [15:15:20] [15:15:20]POST finish read [15:15:20]Found Content-Length = 1157 [15:15:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127526", "tax_sys" : 0, "items" : [ { "code": "4823077633058", "name": "\u0412\u0430\u0444 \u0442\u0440\u0443\u0431 Konafetto \u043E\u0440\u0435\u0445 140 \u0433\u0440", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46254931", "name": "\u0414\u0440\u0430\u0436\u0435 mentos \u0436\u0435\u0432 \u043C\u044F\u0442\u0430 \u0440\u043E\u043B\u043B 37\u0433", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42113270", "name": "\u0416\u0435\u0432 Orbit \u0430\u0440\u0431\u0443\u0437", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:20]execute_script... [15:15:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127526", "tax_sys" : 0, "items" : [ { "code": "4823077633058", "name": "\u0412\u0430\u0444 \u0442\u0440\u0443\u0431 Konafetto \u043E\u0440\u0435\u0445 140 \u0433\u0440", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46254931", "name": "\u0414\u0440\u0430\u0436\u0435 mentos \u0436\u0435\u0432 \u043C\u044F\u0442\u0430 \u0440\u043E\u043B\u043B 37\u0433", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42113270", "name": "\u0416\u0435\u0432 Orbit \u0430\u0440\u0431\u0443\u0437", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:20]POST & json_proto [15:15:20]process_json_proto [15:15:20]json parsed OK: [15:15:20]protocol is kg_v1.0 [15:15:20]action value=close_receipt [15:15:20]process_action close_receipt [15:15:20]cmd_close_receipt [15:15:20]MH_GetDate [15:15:20]Write to MH i2c: F0 00 00 E1 57 27 [15:15:20]Write i2c OK [15:15:20]MH_I2C_Read... [15:15:20]Read from MH i2c: F0 [15:15:20]MH_I2C_Read... [15:15:20]Read from MH i2c: F0 09 00 [15:15:20]MH_I2C_Read... [15:15:20]Read from MH i2c: F0 09 00 E1 57 00 12 FA E6 66 33 3A A4 66 FF [15:15:20]GetLastDocTimeStamp 1726413120 [15:15:20]current date 1726413330 [15:15:20]FM_GetShiftState [15:15:20]SAM_PROTO_GetShiftState [15:15:20]wFMCommunicate request_size=4 [15:15:20]MH_SAM_APDU [15:15:20]CAPDU: 80 13 01 00 [15:15:20]Write to MH i2c: E2 08 00 E2 57 80 13 01 00 00 00 00 00 B6 [15:15:20]Write i2c OK [15:15:20]MH_I2C_Read... [15:15:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:20]Read from MH i2c: E2 [15:15:20]MH_I2C_Read... [15:15:20]Read from MH i2c: E2 0E 00 [15:15:20]MH_I2C_Read... [15:15:20]Read from MH i2c: E2 0E 00 E2 57 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 38 [15:15:20]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [15:15:20]wFMCommunicate OK [15:15:20]SAM_PROTO_GetShiftState done [15:15:20]FM_GetShiftState done [15:15:20]opened in 1726359809 [15:15:20]opened+sec_in_day 1726446209 [15:15:20]quantity*price = 13000 [15:15:20]sum+1 = 13001 [15:15:20]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46254931 Драже mentos жев мята ролл 37г 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 42113270 Жев Orbit арбуз 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.54 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 85 15.09.2024 15:15 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92637 ФПД: 234203078970550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T151530&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92637&fm=234203078970550&tin=02508201610067®Number=0000000000091423&sum=25000 0 [15:15:22]StoreToDocumentArchive [15:15:22]shift 507 fd 92637 [15:15:22]save to /storage/0507/doc_00092637 [15:15:22]save last doc name /storage/0507/doc_00092637 to /storage/kkm_last_doc_name [15:15:22]save OK [15:15:22]Clear old archive folders... [15:15:22]ProcessDocumentItem done err = 0, tmpTLVsize=489 [15:15:22]tlvbuf is 010AD4D0 [15:15:22]SAM_PROTO_ClearQueue [15:15:22]wFMCommunicate request_size=4 [15:15:22]MH_SAM_APDU [15:15:22]CAPDU: 80 09 00 00 [15:15:22]Write to MH i2c: E2 08 00 EF 57 80 09 00 00 00 00 00 00 B8 [15:15:22]Write i2c OK [15:15:22]MH_I2C_Read... [15:15:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:22]Read from MH i2c: E2 [15:15:22]MH_I2C_Read... [15:15:22]Read from MH i2c: E2 03 00 [15:15:22]MH_I2C_Read... [15:15:22]Read from MH i2c: E2 03 00 EF 57 00 90 00 BA [15:15:22]RAPDU: 90 00 [15:15:22]wFMCommunicate OK [15:15:22]SAM_PROTO_ClearQueue done [15:15:22]KKMCreateOFDPacket [15:15:22]OFDProtocolAddRootSTLVToBuf [15:15:22]FM_MakeSignedData [15:15:22]FM_MakeSignedData [15:15:22]SAM_PROTO_SignData [15:15:22]wFMCommunicate request_size=4 [15:15:22]MH_SAM_APDU [15:15:22]CAPDU: 80 0D 01 02 [15:15:22]Write to MH i2c: E2 08 00 F0 57 80 0D 01 02 00 00 00 00 C0 [15:15:22]Write i2c OK [15:15:22]MH_I2C_Read... [15:15:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:22]Read from MH i2c: E2 [15:15:22]MH_I2C_Read... [15:15:22]Read from MH i2c: E2 03 00 [15:15:22]MH_I2C_Read... [15:15:22]Read from MH i2c: E2 03 00 F0 57 00 90 00 BB [15:15:22]RAPDU: 90 00 [15:15:22]wFMCommunicate OK [15:15:22]wFMCommunicate request_size=255 [15:15:22]MH_SAM_APDU [15:15:22]CAPDU: 80 0D 02 02 FA 03 00 E9 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 33 30 35 38 06 04 2B 00 D0 92 D0 B0 D1 84 20 D1 82 D1 80 D1 83 D0 B1 20 4B 6F 6E 61 66 65 74 74 6F 20 D0 BE D1 80 D0 B5 D1 85 20 31 34 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 08 00 34 36 32 35 34 39 33 31 06 04 2F 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 6D 65 6E 74 6F 73 20 D0 B6 D0 B5 D0 B2 20 D0 BC D1 8F D1 82 D0 B0 20 D1 80 D0 BE D0 BB D0 BB 20 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 [15:15:22]Write to MH i2c: E2 02 01 F1 57 80 0D 02 02 FA 00 03 00 E9 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 33 30 35 38 06 04 2B 00 D0 92 D0 B0 D1 84 20 D1 82 D1 80 D1 83 D0 B1 20 4B 6F 6E 61 66 65 74 74 6F 20 D0 BE D1 80 D0 B5 D1 85 20 31 34 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 08 00 34 36 32 35 34 39 33 31 06 04 2F 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 6D 65 6E 74 6F 73 20 D0 B6 D0 B5 D0 B2 20 D0 BC D1 8F D1 82 D0 B0 20 D1 80 D0 BE D0 BB D0 BB 20 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 00 00 53 [15:15:22]Write i2c OK [15:15:22]MH_I2C_Read... [15:15:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:22]Read from MH i2c: E2 [15:15:22]MH_I2C_Read... [15:15:22]Read from MH i2c: E2 03 00 [15:15:22]MH_I2C_Read... [15:15:22]Read from MH i2c: E2 03 00 F1 57 00 90 00 BC [15:15:22]RAPDU: 90 00 [15:15:22]wFMCommunicate OK [15:15:22]wFMCommunicate request_size=248 [15:15:22]MH_SAM_APDU [15:15:22]CAPDU: 80 0D 02 02 F3 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 12 FA E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DD 69 01 00 35 04 06 00 D5 01 A7 53 CC B6 [15:15:22]Write to MH i2c: E2 FB 00 F2 57 80 0D 02 02 F3 00 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 12 FA E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DD 69 01 00 35 04 06 00 D5 01 A7 53 CC B6 00 00 9D [15:15:22]Write i2c OK [15:15:22]MH_I2C_Read... [15:15:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:23]Read from MH i2c: E2 [15:15:23]MH_I2C_Read... [15:15:23]Read from MH i2c: E2 03 00 [15:15:23]MH_I2C_Read... [15:15:23]Read from MH i2c: E2 03 00 F2 57 00 90 00 BD [15:15:23]RAPDU: 90 00 [15:15:23]wFMCommunicate OK [15:15:23]wFMCommunicate request_size=4 [15:15:23]MH_SAM_APDU [15:15:23]CAPDU: 80 0D 03 02 [15:15:23]Write to MH i2c: E2 08 00 F3 57 80 0D 03 02 00 00 00 00 C5 [15:15:23]Write i2c OK [15:15:23]MH_I2C_Read... [15:15:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:23]Read from MH i2c: E2 [15:15:23]MH_I2C_Read... [15:15:23]Read from MH i2c: E2 0B 00 [15:15:23]MH_I2C_Read... [15:15:23]Read from MH i2c: E2 0B 00 F3 57 00 13 11 32 55 3D FA C0 93 90 00 FB [15:15:23]RAPDU: 13 11 32 55 3D FA C0 93 90 00 [15:15:23]wFMCommunicate OK [15:15:23]SAM_PROTO_SignData done [15:15:23]FM_MakeSignedData done [15:15:23]CreateOFDProtocolMessage [15:15:23]wFMCommunicate request_size=4 [15:15:23]MH_SAM_APDU [15:15:23]CAPDU: 80 11 00 00 [15:15:23]Write to MH i2c: E2 08 00 F4 57 80 11 00 00 00 00 00 00 C5 [15:15:23]Write i2c OK [15:15:23]MH_I2C_Read... [15:15:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:23]Read from MH i2c: E2 [15:15:23]MH_I2C_Read... [15:15:23]Read from MH i2c: E2 17 00 [15:15:23]MH_I2C_Read... [15:15:23]Read from MH i2c: E2 17 00 F4 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 1C [15:15:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:15:23]wFMCommunicate OK [15:15:23]CreateOFDProtocolMessage done [15:15:23]OFDSenderStorePacket 92637 [15:15:23]StoreOFDPacket docnum=92637 [15:15:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 FD 01 00 00 FB C5 F5 01 78 2A 5A 03 01 00 03 00 E9 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 33 30 35 38 06 04 2B 00 D0 92 D0 B0 D1 84 20 D1 82 D1 80 D1 83 D0 B1 20 4B 6F 6E 61 66 65 74 74 6F 20 D0 BE D1 80 D0 B5 D1 85 20 31 34 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 08 00 34 36 32 35 34 39 33 31 06 04 2F 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 6D 65 6E 74 6F 73 20 D0 B6 D0 B5 D0 B2 20 D0 BC D1 8F D1 82 D0 B0 20 D1 80 D0 BE D0 BB D0 BB 20 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 12 FA E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DD 69 01 00 35 04 06 00 D5 01 A7 53 CC B6 13 11 32 55 3D FA C0 93 [15:15:23]CheckFolder [15:15:23]dirname=/storage/ofd_packets [15:15:23]CheckFolder done [15:15:23]ProducePacketName [15:15:23]name=ofd_packets/00092637 [15:15:23]NVStorageSaveData ofd_packets/00092637 [15:15:23]File name is /storage/ofd_packets/00092637 [15:15:23]Write 539 bytes [15:15:23]NVStorageSaveData done [15:15:23]OFDSenderStorePacket done [15:15:23]KKMCreateOFDPacket done [15:15:23]NVStorageSaveData kkm_last_timestamp [15:15:23]File name is /storage/kkm_last_timestamp [15:15:23]Write 4 bytes [15:15:23]NVStorageSaveData done [15:15:23]ExternCall_PrintAddStr [15:15:23]wPrintStart [15:15:23]Write to MH i2c: 01 00 00 F5 57 4C [15:15:23]Write i2c OK [15:15:23]MH_I2C_Read... [15:15:23]Read from MH i2c: 01 [15:15:23]MH_I2C_Read... [15:15:23]Read from MH i2c: 01 07 00 [15:15:23]MH_I2C_Read... [15:15:23]Read from MH i2c: 01 07 00 F5 57 00 00 00 00 00 FF 0F 61 [15:15:23]RasterBufferAndPrint [15:15:23]line Счет N : (3)127526 [15:15:23]line ИНН: 02508201610067 [15:15:23]line Контрольно-Кассовый Чек [15:15:23]line ПРОДАЖА [15:15:23]line Товар: 4823077633058 [15:15:23]line Ваф труб Konafetto орех 140 гр [15:15:23]line 1.000 * 130.00 [15:15:23]line = 130.00 [15:15:23]line НДС 12% НСП 1% [15:15:23]line > о реализуемом товаре [15:15:23]line Товар: 46254931 [15:15:23]line Драже mentos жев мята ролл 37г [15:15:23]line 1.000 * 75.00 [15:15:23]line = 75.00 [15:15:23]line НДС 12% НСП 1% [15:15:23]line > о реализуемом товаре [15:15:23]line Товар: 42113270 [15:15:23]line Жев Orbit арбуз [15:15:23]line 1.000 * 45.00 [15:15:23]line = 45.00 [15:15:23]line НДС 12% НСП 1% [15:15:23]line > о реализуемом товаре [15:15:23]line ИТОГО: 250.00 [15:15:23]line НСП 1% : 2.21 [15:15:23]line НДС 12% : 26.54 [15:15:23]line Наличными: 250.00 [15:15:23]line Безнал.: 0.00 [15:15:23]line Место: АЗС № 5 "Партнер Нефть" [15:15:23]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [15:15:23]line СНО: Общий режим [15:15:23]line Чек 85 15.09.2024 15:15 [15:15:23]line Смена: 507 ФФД: 1.0 [15:15:23]line ЗНМ: 03000000022 [15:15:23]line РНМ: 0000000000091423 [15:15:23]line Версия ККМ: 001 [15:15:23]line ФМ: 0000000000874692 [15:15:23]line ФД: 92637 [15:15:23]line ФПД: 234203078970550 [15:15:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T151530&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92637&fm=234203078970550&tin=02508201610067®Number=0000000000091423&sum=25000 [15:15:23]line 0 [15:15:23]written 0, free lines is 4095 [15:15:23]OFD Sender: Processing packet 92637 [packets to send 63, broken 62] [15:15:23]ProducePacketName [15:15:23]name=ofd_packets/00092637 [15:15:23]OFD Sender: To server: pG, [15:15:23]CommunicateWithHost lk.salyk.kg:30040 [15:15:23]ConnectInit lk.salyk.kg [15:15:23]Connected sock=10 [15:15:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 FD 01 00 00 FB C5 F5 01 78 2A 5A 03 01 00 03 00 E9 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 33 30 35 38 06 04 2B 00 D0 92 D0 B0 D1 84 20 D1 82 D1 80 D1 83 D0 B1 20 4B 6F 6E 61 66 65 74 74 6F 20 D0 BE D1 80 D0 B5 D1 85 20 31 34 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 08 00 34 36 32 35 34 39 33 31 06 04 2F 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 6D 65 6E 74 6F 73 20 D0 B6 D0 B5 D0 B2 20 D0 BC D1 8F D1 82 D0 B0 20 D1 80 D0 BE D0 BB D0 BB 20 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 12 FA E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DD 69 01 00 35 04 06 00 D5 01 A7 53 CC B6 13 11 32 55 3D FA C0 93 [15:15:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 DC EA 47 00 A9 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DD 69 01 00 F4 03 04 00 8A A2 E6 66 B6 04 01 00 00 31 74 78 28 65 FF 55 0F [15:15:23]CommunicateWithHost err = 0 [15:15:23]CheckOFDResponse [15:15:23]1017 (14) - 77093643461234 [15:15:23]1041 (16) - 0000000000874692 [15:15:23]1040 (4) - 92637 [15:15:23]1012 (4) - 15.09.2024 09:02 [15:15:23]1206 (1) - 0 [15:15:23]OFD Sender: Remove packet 92637 [15:15:23]ProducePacketName [15:15:23]name=ofd_packets/00092637 [15:15:23]NVStorageDeleteData [15:15:23]Write to MH i2c: 01 00 00 2B 58 83 [15:15:23]Write i2c OK [15:15:23]MH_I2C_Read... [15:15:23]Read from MH i2c: 01 [15:15:23]MH_I2C_Read... [15:15:23]Read from MH i2c: 01 07 00 [15:15:23]MH_I2C_Read... [15:15:23]Read from MH i2c: 01 07 00 2B 58 00 00 00 00 00 53 0C E9 [15:15:23]RasterBufferAndPrint [15:15:23]line [15:15:23]line [15:15:23]line [15:15:23]line [15:15:23]line [15:15:23]written 0, free lines is 3165 [15:15:23]MH_Cut [15:15:23]Write to MH i2c: D1 01 00 32 58 01 5C [15:15:23]Write i2c OK [15:15:23]MH_I2C_Read... [15:15:23]Read from MH i2c: D1 [15:15:23]MH_I2C_Read... [15:15:23]Read from MH i2c: D1 01 00 [15:15:23]MH_I2C_Read... [15:15:23]Read from MH i2c: D1 01 00 32 58 00 5B [15:15:23]Write to MH i2c: 01 00 00 33 58 8B [15:15:23]Write i2c OK [15:15:23]MH_I2C_Read... [15:15:24]OFD Sender: No OFD packet to send [15:15:24]*** Cut start [15:15:24]*** Purtial cut [15:15:24]*** Stage 1: CUTSNS_PIN = 1 [15:15:26]Read from MH i2c: 01 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: 01 07 00 [15:15:26]MH_I2C_Read... [15:15:26]*** Stop cut motor [15:15:26]*** Cut end [15:15:26]Read from MH i2c: 01 07 00 33 58 00 00 00 00 00 FF 0F A0 [15:15:26]process_action close_receipt done [15:15:26]requested_data is exist [15:15:26]produce_requested_data [15:15:26]requested_item fm.sn is exist - process it [15:15:26]wFMCommunicate request_size=4 [15:15:26]MH_SAM_APDU [15:15:26]CAPDU: 80 11 00 00 [15:15:26]Write to MH i2c: E2 08 00 34 58 80 11 00 00 00 00 00 00 06 [15:15:26]Write i2c OK [15:15:26]MH_I2C_Read... [15:15:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:26]Read from MH i2c: E2 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: E2 17 00 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: E2 17 00 34 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 5D [15:15:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:15:26]wFMCommunicate OK [15:15:26]requested_item fd.num is exist - process it [15:15:26]SAM_PROTO_GetFieldsCounters [15:15:26]wFMCommunicate request_size=4 [15:15:26]MH_SAM_APDU [15:15:26]CAPDU: 80 13 00 00 [15:15:26]Write to MH i2c: E2 08 00 35 58 80 13 00 00 00 00 00 00 09 [15:15:26]Write i2c OK [15:15:26]MH_I2C_Read... [15:15:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:26]Read from MH i2c: E2 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: E2 62 00 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: E2 62 00 35 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 DD 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [15:15:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 DD 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:15:26]wFMCommunicate OK [15:15:26]SAM_PROTO_GetFieldsCounters done [15:15:26]requested_item shift.num is exist - process it [15:15:26]requested_item shift.opened is exist - process it [15:15:26]req_shift_opened [15:15:26]FM_GetShiftState [15:15:26]SAM_PROTO_GetShiftState [15:15:26]wFMCommunicate request_size=4 [15:15:26]MH_SAM_APDU [15:15:26]CAPDU: 80 13 01 00 [15:15:26]Write to MH i2c: E2 08 00 36 58 80 13 01 00 00 00 00 00 0B [15:15:26]Write i2c OK [15:15:26]MH_I2C_Read... [15:15:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:26]Read from MH i2c: E2 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: E2 0E 00 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: E2 0E 00 36 58 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 8D [15:15:26]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [15:15:26]wFMCommunicate OK [15:15:26]SAM_PROTO_GetShiftState done [15:15:26]FM_GetShiftState done [15:15:26]req_shift_opened done [15:15:26]requested_item shift.open_date is exist - process it [15:15:26]req_shift_open_date [15:15:26]req_shift_open_date done [15:15:26]produce_requested_data done [15:15:26]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92637,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [15:15:26]process_action_free close_receipt [15:15:26]json_value_free [15:15:26]json_value_free done [15:15:26]process_json_proto returns [15:15:26]Send response to host [15:15:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92637,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [15:15:26]free response buf [15:15:26]execute_script done [15:15:26]execute_script returns [15:15:26]free content buf [15:15:26]Sock 8.Close socket [15:15:26]Sock 8.Thread stoped [15:15:29]OFD Sender: No OFD packet to send [15:15:34]OFD Sender: No OFD packet to send [15:15:39]OFD Sender: No OFD packet to send [15:15:44]OFD Sender: No OFD packet to send [15:15:49]OFD Sender: No OFD packet to send [15:15:54]OFD Sender: No OFD packet to send [15:15:59]OFD Sender: No OFD packet to send [15:16:04]OFD Sender: No OFD packet to send [15:16:09]OFD Sender: No OFD packet to send [15:16:14]OFD Sender: No OFD packet to send [15:16:19]OFD Sender: No OFD packet to send [15:16:24]OFD Sender: No OFD packet to send [15:16:29]OFD Sender: No OFD packet to send [15:16:34]OFD Sender: No OFD packet to send [15:16:39]OFD Sender: No OFD packet to send [15:16:44]OFD Sender: No OFD packet to send [15:16:49]OFD Sender: No OFD packet to send [15:16:54]OFD Sender: No OFD packet to send [15:16:59]OFD Sender: No OFD packet to send [15:17:04]OFD Sender: No OFD packet to send [15:17:09]OFD Sender: No OFD packet to send [15:17:14]OFD Sender: No OFD packet to send [15:17:19]OFD Sender: No OFD packet to send [15:17:24]OFD Sender: No OFD packet to send [15:17:29]OFD Sender: No OFD packet to send [15:17:34]OFD Sender: No OFD packet to send [15:17:39]OFD Sender: No OFD packet to send [15:17:44]OFD Sender: No OFD packet to send [15:17:49]OFD Sender: No OFD packet to send [15:17:54]OFD Sender: No OFD packet to send [15:17:59]OFD Sender: No OFD packet to send [15:18:04]OFD Sender: No OFD packet to send [15:18:09]OFD Sender: No OFD packet to send [15:18:14]OFD Sender: No OFD packet to send [15:18:19]OFD Sender: No OFD packet to send [15:18:24]OFD Sender: No OFD packet to send [15:18:29]OFD Sender: No OFD packet to send [15:18:34]OFD Sender: No OFD packet to send [15:18:39]OFD Sender: No OFD packet to send [15:18:44]OFD Sender: No OFD packet to send [15:18:49]OFD Sender: No OFD packet to send [15:18:54]OFD Sender: No OFD packet to send [15:18:59]OFD Sender: No OFD packet to send [15:19:04]OFD Sender: No OFD packet to send [15:19:09]OFD Sender: No OFD packet to send [15:19:14]OFD Sender: No OFD packet to send [15:19:19]OFD Sender: No OFD packet to send [15:19:24]OFD Sender: No OFD packet to send [15:19:29]OFD Sender: No OFD packet to send [15:19:34]OFD Sender: No OFD packet to send [15:19:39]OFD Sender: No OFD packet to send [15:19:44]OFD Sender: No OFD packet to send [15:19:49]OFD Sender: No OFD packet to send [15:19:54]OFD Sender: No OFD packet to send [15:19:59]OFD Sender: No OFD packet to send [15:20:04]OFD Sender: No OFD packet to send [15:20:09]OFD Sender: No OFD packet to send [15:20:14]OFD Sender: No OFD packet to send [15:20:19]OFD Sender: No OFD packet to send [15:20:24]OFD Sender: No OFD packet to send [15:20:29]OFD Sender: No OFD packet to send [15:20:34]OFD Sender: No OFD packet to send [15:20:39]OFD Sender: No OFD packet to send [15:20:44]OFD Sender: No OFD packet to send [15:20:49]OFD Sender: No OFD packet to send [15:20:54]OFD Sender: No OFD packet to send [15:20:59]OFD Sender: No OFD packet to send [15:21:04]OFD Sender: No OFD packet to send [15:21:09]OFD Sender: No OFD packet to send [15:21:14]OFD Sender: No OFD packet to send [15:21:19]OFD Sender: No OFD packet to send [15:21:24]OFD Sender: No OFD packet to send [15:21:29]OFD Sender: No OFD packet to send [15:21:34]OFD Sender: No OFD packet to send [15:21:39]OFD Sender: No OFD packet to send [15:21:44]OFD Sender: No OFD packet to send [15:21:49]OFD Sender: No OFD packet to send [15:21:54]OFD Sender: No OFD packet to send [15:21:59]OFD Sender: No OFD packet to send [15:22:04]OFD Sender: No OFD packet to send [15:22:09]OFD Sender: No OFD packet to send [15:22:14]OFD Sender: No OFD packet to send [15:22:19]OFD Sender: No OFD packet to send [15:22:24]OFD Sender: No OFD packet to send [15:22:29]OFD Sender: No OFD packet to send [15:22:34]OFD Sender: No OFD packet to send [15:22:39]OFD Sender: No OFD packet to send [15:22:44]OFD Sender: No OFD packet to send [15:22:49]OFD Sender: No OFD packet to send [15:22:54]OFD Sender: No OFD packet to send [15:22:59]OFD Sender: No OFD packet to send [15:23:04]OFD Sender: No OFD packet to send [15:23:09]OFD Sender: No OFD packet to send [15:23:14]OFD Sender: No OFD packet to send [15:23:19]OFD Sender: No OFD packet to send [15:23:24]OFD Sender: No OFD packet to send [15:23:29]OFD Sender: No OFD packet to send [15:23:34]OFD Sender: No OFD packet to send [15:23:39]OFD Sender: No OFD packet to send [15:23:44]OFD Sender: No OFD packet to send [15:23:49]OFD Sender: No OFD packet to send [15:23:54]OFD Sender: No OFD packet to send [15:23:59]OFD Sender: No OFD packet to send [15:24:04]OFD Sender: No OFD packet to send [15:24:09]OFD Sender: No OFD packet to send [15:24:14]OFD Sender: No OFD packet to send [15:24:19]OFD Sender: No OFD packet to send [15:24:24]OFD Sender: No OFD packet to send [15:24:29]OFD Sender: No OFD packet to send [15:24:34]OFD Sender: No OFD packet to send [15:24:39]OFD Sender: No OFD packet to send [15:24:44]OFD Sender: No OFD packet to send [15:24:49]OFD Sender: No OFD packet to send [15:24:54]OFD Sender: No OFD packet to send [15:24:59]OFD Sender: No OFD packet to send [15:25:04]OFD Sender: No OFD packet to send [15:25:09]OFD Sender: No OFD packet to send [15:25:14]OFD Sender: No OFD packet to send [15:25:19]OFD Sender: No OFD packet to send [15:25:24]OFD Sender: No OFD packet to send [15:25:29]OFD Sender: No OFD packet to send [15:25:34]OFD Sender: No OFD packet to send [15:25:39]OFD Sender: No OFD packet to send [15:25:44]OFD Sender: No OFD packet to send [15:25:49]OFD Sender: No OFD packet to send [15:25:54]OFD Sender: No OFD packet to send [15:25:59]OFD Sender: No OFD packet to send [15:26:04]OFD Sender: No OFD packet to send [15:26:06]accept exits with 9 [15:26:06]New connection [15:26:06]New thread 3066658148 created [15:26:06]Thread 3066801508 joined [15:26:06]Waiting for new connection... [15:26:06] Sock 9.Parse request [15:26:06]Sock 9.Check first char [15:26:06]Sock 9.First char is OK [15:26:06]request: POST /json_proto HTTP/1.0 [15:26:06]Method: POST [15:26:06]URL: /json_proto [15:26:06]Method is POST - this is cgi request [15:26:06]url: /json_proto [15:26:06]query_string will be loaded in cgi processing [15:26:06]execute_cgi json_proto POST (null) [15:26:06]execute_cgi path=json_proto method=POST [15:26:06]POST find Content-Length [15:26:06]Host: 172.17.57.71:8080 [15:26:06]Content-Length: 711 [15:26:06]Content-Type: application/json [15:26:06] [15:26:06]POST finish read [15:26:06]Found Content-Length = 711 [15:26:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127527", "tax_sys" : 0, "items" : [ { "code": "4870112003956", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 4.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:06]execute_script... [15:26:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127527", "tax_sys" : 0, "items" : [ { "code": "4870112003956", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 4.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:06]POST & json_proto [15:26:06]process_json_proto [15:26:06]json parsed OK: [15:26:06]protocol is kg_v1.0 [15:26:06]action value=close_receipt [15:26:06]process_action close_receipt [15:26:06]cmd_close_receipt [15:26:06]MH_GetDate [15:26:06]Write to MH i2c: F0 00 00 37 58 7E [15:26:06]Write i2c OK [15:26:06]MH_I2C_Read... [15:26:06]Read from MH i2c: F0 [15:26:06]MH_I2C_Read... [15:26:06]Read from MH i2c: F0 09 00 [15:26:06]MH_I2C_Read... [15:26:06]Read from MH i2c: F0 09 00 37 58 00 97 FC E6 66 33 3A A4 66 DD [15:26:06]GetLastDocTimeStamp 1726413330 [15:26:06]current date 1726413975 [15:26:06]FM_GetShiftState [15:26:06]SAM_PROTO_GetShiftState [15:26:06]wFMCommunicate request_size=4 [15:26:06]MH_SAM_APDU [15:26:06]CAPDU: 80 13 01 00 [15:26:06]Write to MH i2c: E2 08 00 38 58 80 13 01 00 00 00 00 00 0D [15:26:06]Write i2c OK [15:26:06]MH_I2C_Read... [15:26:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:06]Read from MH i2c: E2 [15:26:06]MH_I2C_Read... [15:26:06]Read from MH i2c: E2 0E 00 [15:26:06]MH_I2C_Read... [15:26:06]Read from MH i2c: E2 0E 00 38 58 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 8F [15:26:06]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [15:26:06]wFMCommunicate OK [15:26:06]SAM_PROTO_GetShiftState done [15:26:06]FM_GetShiftState done [15:26:06]opened in 1726359809 [15:26:06]opened+sec_in_day 1726446209 [15:26:06]quantity*price = 30000 [15:26:06]sum+1 = 30001 [15:26:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 86 15.09.2024 15:26 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92638 ФПД: 107331468559519 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T152615&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92638&fm=107331468559519&tin=02508201610067®Number=0000000000091423&sum=30000 0 [15:26:07]StoreToDocumentArchive [15:26:07]shift 507 fd 92638 [15:26:07]save to /storage/0507/doc_00092638 [15:26:07]save last doc name /storage/0507/doc_00092638 to /storage/kkm_last_doc_name [15:26:07]save OK [15:26:07]Clear old archive folders... [15:26:07]ProcessDocumentItem done err = 0, tmpTLVsize=304 [15:26:07]tlvbuf is 01138430 [15:26:07]SAM_PROTO_ClearQueue [15:26:07]wFMCommunicate request_size=4 [15:26:07]MH_SAM_APDU [15:26:07]CAPDU: 80 09 00 00 [15:26:07]Write to MH i2c: E2 08 00 45 58 80 09 00 00 00 00 00 00 0F [15:26:07]Write i2c OK [15:26:07]MH_I2C_Read... [15:26:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:07]Read from MH i2c: E2 [15:26:07]MH_I2C_Read... [15:26:07]Read from MH i2c: E2 03 00 [15:26:07]MH_I2C_Read... [15:26:07]Read from MH i2c: E2 03 00 45 58 00 90 00 11 [15:26:07]RAPDU: 90 00 [15:26:07]wFMCommunicate OK [15:26:07]SAM_PROTO_ClearQueue done [15:26:07]KKMCreateOFDPacket [15:26:07]OFDProtocolAddRootSTLVToBuf [15:26:07]FM_MakeSignedData [15:26:07]FM_MakeSignedData [15:26:07]SAM_PROTO_SignData [15:26:07]wFMCommunicate request_size=4 [15:26:07]MH_SAM_APDU [15:26:07]CAPDU: 80 0D 01 02 [15:26:07]Write to MH i2c: E2 08 00 46 58 80 0D 01 02 00 00 00 00 17 [15:26:07]Write i2c OK [15:26:07]MH_I2C_Read... [15:26:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:07]Read from MH i2c: E2 [15:26:07]MH_I2C_Read... [15:26:07]Read from MH i2c: E2 03 00 [15:26:07]MH_I2C_Read... [15:26:07]Read from MH i2c: E2 03 00 46 58 00 90 00 12 [15:26:07]RAPDU: 90 00 [15:26:07]wFMCommunicate OK [15:26:07]wFMCommunicate request_size=255 [15:26:07]MH_SAM_APDU [15:26:07]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 97 FC E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 [15:26:07]Write to MH i2c: E2 02 01 47 58 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 97 FC E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 00 00 AB [15:26:07]Write i2c OK [15:26:07]MH_I2C_Read... [15:26:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:07]Read from MH i2c: E2 [15:26:07]MH_I2C_Read... [15:26:07]Read from MH i2c: E2 03 00 [15:26:07]MH_I2C_Read... [15:26:07]Read from MH i2c: E2 03 00 47 58 00 90 00 13 [15:26:07]RAPDU: 90 00 [15:26:07]wFMCommunicate OK [15:26:07]wFMCommunicate request_size=63 [15:26:07]MH_SAM_APDU [15:26:07]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DE 69 01 00 35 04 06 00 61 9E 0E 0E 84 9F [15:26:07]Write to MH i2c: E2 42 00 48 58 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DE 69 01 00 35 04 06 00 61 9E 0E 0E 84 9F 00 00 E8 [15:26:08]Write i2c OK [15:26:08]MH_I2C_Read... [15:26:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:08]Read from MH i2c: E2 [15:26:08]MH_I2C_Read... [15:26:08]Read from MH i2c: E2 03 00 [15:26:08]MH_I2C_Read... [15:26:08]Read from MH i2c: E2 03 00 48 58 00 90 00 14 [15:26:08]RAPDU: 90 00 [15:26:08]wFMCommunicate OK [15:26:08]wFMCommunicate request_size=4 [15:26:08]MH_SAM_APDU [15:26:08]CAPDU: 80 0D 03 02 [15:26:08]Write to MH i2c: E2 08 00 49 58 80 0D 03 02 00 00 00 00 1C [15:26:08]Write i2c OK [15:26:08]MH_I2C_Read... [15:26:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:08]Read from MH i2c: E2 [15:26:08]MH_I2C_Read... [15:26:08]Read from MH i2c: E2 0B 00 [15:26:08]MH_I2C_Read... [15:26:08]Read from MH i2c: E2 0B 00 49 58 00 10 05 DA 2F 18 D5 5D 10 90 00 95 [15:26:08]RAPDU: 10 05 DA 2F 18 D5 5D 10 90 00 [15:26:08]wFMCommunicate OK [15:26:08]SAM_PROTO_SignData done [15:26:08]FM_MakeSignedData done [15:26:08]CreateOFDProtocolMessage [15:26:08]wFMCommunicate request_size=4 [15:26:08]MH_SAM_APDU [15:26:08]CAPDU: 80 11 00 00 [15:26:08]Write to MH i2c: E2 08 00 4A 58 80 11 00 00 00 00 00 00 1C [15:26:08]Write i2c OK [15:26:08]MH_I2C_Read... [15:26:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:08]Read from MH i2c: E2 [15:26:08]MH_I2C_Read... [15:26:08]Read from MH i2c: E2 17 00 [15:26:08]MH_I2C_Read... [15:26:08]Read from MH i2c: E2 17 00 4A 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 73 [15:26:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:26:08]wFMCommunicate OK [15:26:08]CreateOFDProtocolMessage done [15:26:08]OFDSenderStorePacket 92638 [15:26:08]StoreOFDPacket docnum=92638 [15:26:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 44 01 00 00 D8 B7 3C 01 1E 84 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 97 FC E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DE 69 01 00 35 04 06 00 61 9E 0E 0E 84 9F 10 05 DA 2F 18 D5 5D 10 [15:26:08]CheckFolder [15:26:08]dirname=/storage/ofd_packets [15:26:08]CheckFolder done [15:26:08]ProducePacketName [15:26:08]name=ofd_packets/00092638 [15:26:08]NVStorageSaveData ofd_packets/00092638 [15:26:08]File name is /storage/ofd_packets/00092638 [15:26:08]Write 354 bytes [15:26:08]NVStorageSaveData done [15:26:08]OFDSenderStorePacket done [15:26:08]KKMCreateOFDPacket done [15:26:08]NVStorageSaveData kkm_last_timestamp [15:26:08]File name is /storage/kkm_last_timestamp [15:26:08]Write 4 bytes [15:26:08]NVStorageSaveData done [15:26:08]ExternCall_PrintAddStr [15:26:08]wPrintStart [15:26:08]Write to MH i2c: 01 00 00 4B 58 A3 [15:26:08]Write i2c OK [15:26:08]MH_I2C_Read... [15:26:08]Read from MH i2c: 01 [15:26:08]MH_I2C_Read... [15:26:08]Read from MH i2c: 01 07 00 [15:26:08]MH_I2C_Read... [15:26:08]Read from MH i2c: 01 07 00 4B 58 00 00 00 00 00 FF 0F B8 [15:26:08]RasterBufferAndPrint [15:26:08]line Счет N : (3)127527 [15:26:08]line ИНН: 02508201610067 [15:26:08]line Контрольно-Кассовый Чек [15:26:08]line ПРОДАЖА [15:26:08]line Товар: 4870112003956 [15:26:08]line Шок батончик ALBENI SUPER Альбени Супер [15:26:08]line 4.000 * 75.00 [15:26:08]line = 300.00 [15:26:08]line НДС 12% НСП 1% [15:26:08]line > о реализуемом товаре [15:26:08]line ИТОГО: 300.00 [15:26:08]line НСП 1% : 2.65 [15:26:08]line НДС 12% : 31.86 [15:26:08]line Наличными: 300.00 [15:26:08]line Безнал.: 0.00 [15:26:08]line Место: АЗС № 5 "Партнер Нефть" [15:26:08]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [15:26:08]line СНО: Общий режим [15:26:08]line Чек 86 15.09.2024 15:26 [15:26:08]line Смена: 507 ФФД: 1.0 [15:26:08]line ЗНМ: 03000000022 [15:26:08]line РНМ: 0000000000091423 [15:26:08]line Версия ККМ: 001 [15:26:08]line ФМ: 0000000000874692 [15:26:08]line ФД: 92638 [15:26:08]line ФПД: 107331468559519 [15:26:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T152615&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92638&fm=107331468559519&tin=02508201610067®Number=0000000000091423&sum=30000 [15:26:08]line 0 [15:26:08]OFD Sender: Processing packet 92638 [packets to send 63, broken 62] [15:26:08]ProducePacketName [15:26:08]name=ofd_packets/00092638 [15:26:08]OFD Sender: To server: pG, [15:26:08]CommunicateWithHost lk.salyk.kg:30040 [15:26:08]ConnectInit lk.salyk.kg [15:26:08]written 0, free lines is 4095 [15:26:08]Connected sock=11 [15:26:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 44 01 00 00 D8 B7 3C 01 1E 84 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 97 FC E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DE 69 01 00 35 04 06 00 61 9E 0E 0E 84 9F 10 05 DA 2F 18 D5 5D 10 [15:26:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 13 A7 47 00 79 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DE 69 01 00 F4 03 04 00 0F A5 E6 66 B6 04 01 00 00 42 1F 11 72 71 F7 CB CB [15:26:08]CommunicateWithHost err = 0 [15:26:08]CheckOFDResponse [15:26:08]1017 (14) - 77093643461234 [15:26:08]1041 (16) - 0000000000874692 [15:26:08]1040 (4) - 92638 [15:26:08]1012 (4) - 15.09.2024 09:12 [15:26:08]1206 (1) - 0 [15:26:08]OFD Sender: Remove packet 92638 [15:26:08]ProducePacketName [15:26:08]name=ofd_packets/00092638 [15:26:08]NVStorageDeleteData [15:26:08]Write to MH i2c: 01 00 00 74 58 CC [15:26:08]Write i2c OK [15:26:08]MH_I2C_Read... [15:26:08]Read from MH i2c: 01 [15:26:08]MH_I2C_Read... [15:26:08]Read from MH i2c: 01 07 00 [15:26:08]MH_I2C_Read... [15:26:08]Read from MH i2c: 01 07 00 74 58 00 00 00 00 00 0E 0D EE [15:26:08]RasterBufferAndPrint [15:26:08]line [15:26:08]line [15:26:08]line [15:26:08]line [15:26:08]line [15:26:08]written 0, free lines is 3347 [15:26:08]MH_Cut [15:26:08]Write to MH i2c: D1 01 00 7B 58 01 A5 [15:26:08]Write i2c OK [15:26:08]MH_I2C_Read... [15:26:08]Read from MH i2c: D1 [15:26:08]MH_I2C_Read... [15:26:08]Read from MH i2c: D1 01 00 [15:26:08]MH_I2C_Read... [15:26:08]Read from MH i2c: D1 01 00 7B 58 00 A4 [15:26:08]Write to MH i2c: 01 00 00 7C 58 D4 [15:26:08]Write i2c OK [15:26:08]MH_I2C_Read... [15:26:09]OFD Sender: No OFD packet to send [15:26:09]*** Cut start [15:26:09]*** Purtial cut [15:26:09]*** Stage 1: CUTSNS_PIN = 1 [15:26:11]Read from MH i2c: 01 [15:26:11]MH_I2C_Read... [15:26:11]*** Stop cut motor [15:26:11]*** Cut end [15:26:11]Read from MH i2c: 01 07 00 [15:26:11]MH_I2C_Read... [15:26:11]Read from MH i2c: 01 07 00 7C 58 00 00 00 00 00 FF 0F E9 [15:26:11]process_action close_receipt done [15:26:11]requested_data is exist [15:26:11]produce_requested_data [15:26:11]requested_item fm.sn is exist - process it [15:26:11]wFMCommunicate request_size=4 [15:26:11]MH_SAM_APDU [15:26:11]CAPDU: 80 11 00 00 [15:26:11]Write to MH i2c: E2 08 00 7D 58 80 11 00 00 00 00 00 00 4F [15:26:11]Write i2c OK [15:26:11]MH_I2C_Read... [15:26:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:11]Read from MH i2c: E2 [15:26:11]MH_I2C_Read... [15:26:11]Read from MH i2c: E2 17 00 [15:26:11]MH_I2C_Read... [15:26:11]Read from MH i2c: E2 17 00 7D 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A6 [15:26:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:26:11]wFMCommunicate OK [15:26:11]requested_item fd.num is exist - process it [15:26:11]SAM_PROTO_GetFieldsCounters [15:26:11]wFMCommunicate request_size=4 [15:26:11]MH_SAM_APDU [15:26:11]CAPDU: 80 13 00 00 [15:26:11]Write to MH i2c: E2 08 00 7E 58 80 13 00 00 00 00 00 00 52 [15:26:11]Write i2c OK [15:26:11]MH_I2C_Read... [15:26:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:11]Read from MH i2c: E2 [15:26:11]MH_I2C_Read... [15:26:11]Read from MH i2c: E2 62 00 [15:26:11]MH_I2C_Read... [15:26:11]Read from MH i2c: E2 62 00 7E 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 DE 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [15:26:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 DE 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:26:11]wFMCommunicate OK [15:26:11]SAM_PROTO_GetFieldsCounters done [15:26:11]requested_item shift.num is exist - process it [15:26:11]requested_item shift.opened is exist - process it [15:26:11]req_shift_opened [15:26:11]FM_GetShiftState [15:26:11]SAM_PROTO_GetShiftState [15:26:11]wFMCommunicate request_size=4 [15:26:11]MH_SAM_APDU [15:26:11]CAPDU: 80 13 01 00 [15:26:11]Write to MH i2c: E2 08 00 7F 58 80 13 01 00 00 00 00 00 54 [15:26:11]Write i2c OK [15:26:11]MH_I2C_Read... [15:26:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:11]Read from MH i2c: E2 [15:26:11]MH_I2C_Read... [15:26:11]Read from MH i2c: E2 0E 00 [15:26:11]MH_I2C_Read... [15:26:11]Read from MH i2c: E2 0E 00 7F 58 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 D6 [15:26:11]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [15:26:11]wFMCommunicate OK [15:26:11]SAM_PROTO_GetShiftState done [15:26:11]FM_GetShiftState done [15:26:11]req_shift_opened done [15:26:11]requested_item shift.open_date is exist - process it [15:26:11]req_shift_open_date [15:26:11]req_shift_open_date done [15:26:11]produce_requested_data done [15:26:11]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92638,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [15:26:11]process_action_free close_receipt [15:26:11]json_value_free [15:26:11]json_value_free done [15:26:11]process_json_proto returns [15:26:11]Send response to host [15:26:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92638,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [15:26:11]free response buf [15:26:11]execute_script done [15:26:11]execute_script returns [15:26:11]free content buf [15:26:11]Sock 9.Close socket [15:26:11]Sock 9.Thread stoped [15:26:14]OFD Sender: No OFD packet to send [15:26:19]OFD Sender: No OFD packet to send [15:26:24]OFD Sender: No OFD packet to send [15:26:29]OFD Sender: No OFD packet to send [15:26:34]OFD Sender: No OFD packet to send [15:26:39]OFD Sender: No OFD packet to send [15:26:44]OFD Sender: No OFD packet to send [15:26:49]OFD Sender: No OFD packet to send [15:26:54]OFD Sender: No OFD packet to send [15:26:59]OFD Sender: No OFD packet to send [15:27:04]OFD Sender: No OFD packet to send [15:27:09]OFD Sender: No OFD packet to send [15:27:14]OFD Sender: No OFD packet to send [15:27:19]OFD Sender: No OFD packet to send [15:27:24]OFD Sender: No OFD packet to send [15:27:29]OFD Sender: No OFD packet to send [15:27:34]OFD Sender: No OFD packet to send [15:27:39]OFD Sender: No OFD packet to send [15:27:44]OFD Sender: No OFD packet to send [15:27:49]OFD Sender: No OFD packet to send [15:27:54]OFD Sender: No OFD packet to send [15:27:59]OFD Sender: No OFD packet to send [15:28:04]OFD Sender: No OFD packet to send [15:28:09]OFD Sender: No OFD packet to send [15:28:14]OFD Sender: No OFD packet to send [15:28:19]OFD Sender: No OFD packet to send [15:28:24]OFD Sender: No OFD packet to send [15:28:29]OFD Sender: No OFD packet to send [15:28:34]OFD Sender: No OFD packet to send [15:28:39]OFD Sender: No OFD packet to send [15:28:44]OFD Sender: No OFD packet to send [15:28:49]OFD Sender: No OFD packet to send [15:28:54]OFD Sender: No OFD packet to send [15:28:59]OFD Sender: No OFD packet to send [15:29:04]OFD Sender: No OFD packet to send [15:29:09]OFD Sender: No OFD packet to send [15:29:14]OFD Sender: No OFD packet to send [15:29:19]OFD Sender: No OFD packet to send [15:29:24]OFD Sender: No OFD packet to send [15:29:29]OFD Sender: No OFD packet to send [15:29:34]OFD Sender: No OFD packet to send [15:29:39]OFD Sender: No OFD packet to send [15:29:44]OFD Sender: No OFD packet to send [15:29:49]OFD Sender: No OFD packet to send [15:29:54]OFD Sender: No OFD packet to send [15:29:59]OFD Sender: No OFD packet to send [15:30:04]OFD Sender: No OFD packet to send [15:30:09]OFD Sender: No OFD packet to send [15:30:14]OFD Sender: No OFD packet to send [15:30:19]OFD Sender: No OFD packet to send [15:30:24]OFD Sender: No OFD packet to send [15:30:29]OFD Sender: No OFD packet to send [15:30:34]OFD Sender: No OFD packet to send [15:30:39]OFD Sender: No OFD packet to send [15:30:44]OFD Sender: No OFD packet to send [15:30:49]OFD Sender: No OFD packet to send [15:30:54]OFD Sender: No OFD packet to send [15:30:59]OFD Sender: No OFD packet to send [15:31:04]OFD Sender: No OFD packet to send [15:31:09]OFD Sender: No OFD packet to send [15:31:14]OFD Sender: No OFD packet to send [15:31:19]OFD Sender: No OFD packet to send [15:31:24]OFD Sender: No OFD packet to send [15:31:29]OFD Sender: No OFD packet to send [15:31:34]OFD Sender: No OFD packet to send [15:31:39]OFD Sender: No OFD packet to send [15:31:44]OFD Sender: No OFD packet to send [15:31:49]OFD Sender: No OFD packet to send [15:31:54]OFD Sender: No OFD packet to send [15:31:59]OFD Sender: No OFD packet to send [15:32:04]OFD Sender: No OFD packet to send [15:32:09]OFD Sender: No OFD packet to send [15:32:12]accept exits with 8 [15:32:12]New connection [15:32:12]New thread 3066801508 created [15:32:12]Thread 3066658148 joined [15:32:12]Waiting for new connection... [15:32:12] Sock 8.Parse request [15:32:12]Sock 8.Check first char [15:32:12]Sock 8.First char is OK [15:32:12]request: POST /json_proto HTTP/1.0 [15:32:12]Method: POST [15:32:12]URL: /json_proto [15:32:12]Method is POST - this is cgi request [15:32:12]url: /json_proto [15:32:12]query_string will be loaded in cgi processing [15:32:12]execute_cgi json_proto POST (null) [15:32:12]execute_cgi path=json_proto method=POST [15:32:12]POST find Content-Length [15:32:12]Host: 172.17.57.71:8080 [15:32:12]Content-Length: 632 [15:32:12]Content-Type: application/json [15:32:12] [15:32:12]POST finish read [15:32:12]Found Content-Length = 632 [15:32:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127528", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:12]execute_script... [15:32:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127528", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:12]POST & json_proto [15:32:12]process_json_proto [15:32:12]json parsed OK: [15:32:12]protocol is kg_v1.0 [15:32:12]action value=close_receipt [15:32:12]process_action close_receipt [15:32:12]cmd_close_receipt [15:32:12]MH_GetDate [15:32:12]Write to MH i2c: F0 00 00 80 58 C7 [15:32:12]Write i2c OK [15:32:12]MH_I2C_Read... [15:32:12]Read from MH i2c: F0 [15:32:12]MH_I2C_Read... [15:32:12]Read from MH i2c: F0 09 00 [15:32:12]MH_I2C_Read... [15:32:12]Read from MH i2c: F0 09 00 80 58 00 05 FE E6 66 33 3A A4 66 96 [15:32:12]GetLastDocTimeStamp 1726413975 [15:32:12]current date 1726414341 [15:32:12]FM_GetShiftState [15:32:12]SAM_PROTO_GetShiftState [15:32:12]wFMCommunicate request_size=4 [15:32:12]MH_SAM_APDU [15:32:12]CAPDU: 80 13 01 00 [15:32:12]Write to MH i2c: E2 08 00 81 58 80 13 01 00 00 00 00 00 56 [15:32:12]Write i2c OK [15:32:12]MH_I2C_Read... [15:32:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:12]Read from MH i2c: E2 [15:32:12]MH_I2C_Read... [15:32:12]Read from MH i2c: E2 0E 00 [15:32:12]MH_I2C_Read... [15:32:12]Read from MH i2c: E2 0E 00 81 58 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 D8 [15:32:12]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [15:32:12]wFMCommunicate OK [15:32:12]SAM_PROTO_GetShiftState done [15:32:12]FM_GetShiftState done [15:32:12]opened in 1726359809 [15:32:12]opened+sec_in_day 1726446209 [15:32:12]quantity*price = 8000 [15:32:12]sum+1 = 8001 [15:32:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 87 15.09.2024 15:32 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92639 ФПД: 111136526248469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T153221&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92639&fm=111136526248469&tin=02508201610067®Number=0000000000091423&sum=8000 0 [15:32:13]StoreToDocumentArchive [15:32:13]shift 507 fd 92639 [15:32:13]save to /storage/0507/doc_00092639 [15:32:13]save last doc name /storage/0507/doc_00092639 to /storage/kkm_last_doc_name [15:32:13]save OK [15:32:13]Clear old archive folders... [15:32:13]ProcessDocumentItem done err = 0, tmpTLVsize=271 [15:32:13]tlvbuf is 010804F0 [15:32:13]SAM_PROTO_ClearQueue [15:32:13]wFMCommunicate request_size=4 [15:32:13]MH_SAM_APDU [15:32:13]CAPDU: 80 09 00 00 [15:32:13]Write to MH i2c: E2 08 00 8E 58 80 09 00 00 00 00 00 00 58 [15:32:13]Write i2c OK [15:32:13]MH_I2C_Read... [15:32:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:32:13]Read from MH i2c: E2 [15:32:13]MH_I2C_Read... [15:32:13]Read from MH i2c: E2 03 00 [15:32:13]MH_I2C_Read... [15:32:13]Read from MH i2c: E2 03 00 8E 58 00 90 00 5A [15:32:13]RAPDU: 90 00 [15:32:13]wFMCommunicate OK [15:32:13]SAM_PROTO_ClearQueue done [15:32:13]KKMCreateOFDPacket [15:32:13]OFDProtocolAddRootSTLVToBuf [15:32:13]FM_MakeSignedData [15:32:13]FM_MakeSignedData [15:32:13]SAM_PROTO_SignData [15:32:13]wFMCommunicate request_size=4 [15:32:13]MH_SAM_APDU [15:32:13]CAPDU: 80 0D 01 02 [15:32:13]Write to MH i2c: E2 08 00 8F 58 80 0D 01 02 00 00 00 00 60 [15:32:13]Write i2c OK [15:32:13]MH_I2C_Read... [15:32:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:32:13]Read from MH i2c: E2 [15:32:13]MH_I2C_Read... [15:32:13]Read from MH i2c: E2 03 00 [15:32:13]MH_I2C_Read... [15:32:13]Read from MH i2c: E2 03 00 8F 58 00 90 00 5B [15:32:13]RAPDU: 90 00 [15:32:13]wFMCommunicate OK [15:32:13]wFMCommunicate request_size=255 [15:32:13]MH_SAM_APDU [15:32:13]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 05 FE E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 [15:32:13]Write to MH i2c: E2 02 01 90 58 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 05 FE E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 AC [15:32:13]Write i2c OK [15:32:13]MH_I2C_Read... [15:32:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:14]Read from MH i2c: E2 [15:32:14]MH_I2C_Read... [15:32:14]Read from MH i2c: E2 03 00 [15:32:14]MH_I2C_Read... [15:32:14]Read from MH i2c: E2 03 00 90 58 00 90 00 5C [15:32:14]RAPDU: 90 00 [15:32:14]wFMCommunicate OK [15:32:14]wFMCommunicate request_size=30 [15:32:14]MH_SAM_APDU [15:32:14]CAPDU: 80 0D 02 02 19 30 38 37 34 36 39 32 10 04 04 00 DF 69 01 00 35 04 06 00 65 13 FD 2B 2A 15 [15:32:14]Write to MH i2c: E2 21 00 91 58 80 0D 02 02 19 00 30 38 37 34 36 39 32 10 04 04 00 DF 69 01 00 35 04 06 00 65 13 FD 2B 2A 15 00 00 88 [15:32:14]Write i2c OK [15:32:14]MH_I2C_Read... [15:32:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:14]Read from MH i2c: E2 [15:32:14]MH_I2C_Read... [15:32:14]Read from MH i2c: E2 03 00 [15:32:14]MH_I2C_Read... [15:32:14]Read from MH i2c: E2 03 00 91 58 00 90 00 5D [15:32:14]RAPDU: 90 00 [15:32:14]wFMCommunicate OK [15:32:14]wFMCommunicate request_size=4 [15:32:14]MH_SAM_APDU [15:32:14]CAPDU: 80 0D 03 02 [15:32:14]Write to MH i2c: E2 08 00 92 58 80 0D 03 02 00 00 00 00 65 [15:32:14]Write i2c OK [15:32:14]MH_I2C_Read... [15:32:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:32:14]Read from MH i2c: E2 [15:32:14]MH_I2C_Read... [15:32:14]Read from MH i2c: E2 0B 00 [15:32:14]MH_I2C_Read... [15:32:14]Read from MH i2c: E2 0B 00 92 58 00 F6 EE 1E 52 39 1F FA E0 90 00 EC [15:32:14]RAPDU: F6 EE 1E 52 39 1F FA E0 90 00 [15:32:14]wFMCommunicate OK [15:32:14]SAM_PROTO_SignData done [15:32:14]FM_MakeSignedData done [15:32:14]CreateOFDProtocolMessage [15:32:14]wFMCommunicate request_size=4 [15:32:14]MH_SAM_APDU [15:32:14]CAPDU: 80 11 00 00 [15:32:14]Write to MH i2c: E2 08 00 93 58 80 11 00 00 00 00 00 00 65 [15:32:14]Write i2c OK [15:32:14]MH_I2C_Read... [15:32:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:14]Read from MH i2c: E2 [15:32:14]MH_I2C_Read... [15:32:14]Read from MH i2c: E2 17 00 [15:32:14]MH_I2C_Read... [15:32:14]Read from MH i2c: E2 17 00 93 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 BC [15:32:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:32:14]wFMCommunicate OK [15:32:14]CreateOFDProtocolMessage done [15:32:14]OFDSenderStorePacket 92639 [15:32:14]StoreOFDPacket docnum=92639 [15:32:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 A5 58 1B 01 E7 AA 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 05 FE E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DF 69 01 00 35 04 06 00 65 13 FD 2B 2A 15 F6 EE 1E 52 39 1F FA E0 [15:32:14]CheckFolder [15:32:14]dirname=/storage/ofd_packets [15:32:14]CheckFolder done [15:32:14]ProducePacketName [15:32:14]name=ofd_packets/00092639 [15:32:14]NVStorageSaveData ofd_packets/00092639 [15:32:14]File name is /storage/ofd_packets/00092639 [15:32:14]Write 321 bytes [15:32:14]NVStorageSaveData done [15:32:14]OFDSenderStorePacket done [15:32:14]KKMCreateOFDPacket done [15:32:14]NVStorageSaveData kkm_last_timestamp [15:32:14]File name is /storage/kkm_last_timestamp [15:32:14]Write 4 bytes [15:32:14]NVStorageSaveData done [15:32:14]ExternCall_PrintAddStr [15:32:14]wPrintStart [15:32:14]Write to MH i2c: 01 00 00 94 58 EC [15:32:14]Write i2c OK [15:32:14]MH_I2C_Read... [15:32:14]Read from MH i2c: 01 [15:32:14]MH_I2C_Read... [15:32:14]Read from MH i2c: 01 07 00 [15:32:14]MH_I2C_Read... [15:32:14]Read from MH i2c: 01 07 00 94 58 00 00 00 00 00 FF 0F 01 [15:32:14]RasterBufferAndPrint [15:32:14]line Счет N : (3)127528 [15:32:14]line ИНН: 02508201610067 [15:32:14]line Контрольно-Кассовый Чек [15:32:14]line ПРОДАЖА [15:32:14]line Товар: 4700000160211 [15:32:14]line Вода Легенда 0,5л [15:32:14]line 2.000 * 40.00 [15:32:14]line = 80.00 [15:32:14]line НДС 12% НСП 1% [15:32:14]line > о реализуемом товаре [15:32:14]line ИТОГО: 80.00 [15:32:14]line НСП 1% : 0.71 [15:32:14]line НДС 12% : 8.50 [15:32:14]line Наличными: 80.00 [15:32:14]line Безнал.: 0.00 [15:32:14]line Место: АЗС № 5 "Партнер Нефть" [15:32:14]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [15:32:14]line СНО: Общий режим [15:32:14]line Чек 87 15.09.2024 15:32 [15:32:14]line Смена: 507 ФФД: 1.0 [15:32:14]line ЗНМ: 03000000022 [15:32:14]line РНМ: 0000000000091423 [15:32:14]line Версия ККМ: 001 [15:32:14]line ФМ: 0000000000874692 [15:32:14]line ФД: 92639 [15:32:14]line ФПД: 111136526248469 [15:32:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T153221&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92639&fm=111136526248469&tin=02508201610067®Number=0000000000091423&sum=8000 [15:32:14]line 0 [15:32:14]written 0, free lines is 4095 [15:32:14]OFD Sender: Processing packet 92639 [packets to send 63, broken 62] [15:32:14]ProducePacketName [15:32:14]name=ofd_packets/00092639 [15:32:14]OFD Sender: To server: pG, [15:32:14]CommunicateWithHost lk.salyk.kg:30040 [15:32:14]ConnectInit lk.salyk.kg [15:32:14]Connected sock=10 [15:32:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 A5 58 1B 01 E7 AA 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 05 FE E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DF 69 01 00 35 04 06 00 65 13 FD 2B 2A 15 F6 EE 1E 52 39 1F FA E0 [15:32:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 93 5F 47 00 BD F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DF 69 01 00 F4 03 04 00 7D A6 E6 66 B6 04 01 00 00 60 24 B1 D2 B4 A8 1F 8C [15:32:14]CommunicateWithHost err = 0 [15:32:14]CheckOFDResponse [15:32:14]1017 (14) - 77093643461234 [15:32:14]1041 (16) - 0000000000874692 [15:32:14]1040 (4) - 92639 [15:32:14]1012 (4) - 15.09.2024 09:18 [15:32:14]1206 (1) - 0 [15:32:14]OFD Sender: Remove packet 92639 [15:32:14]ProducePacketName [15:32:14]name=ofd_packets/00092639 [15:32:14]NVStorageDeleteData [15:32:14]Write to MH i2c: 01 00 00 BC 58 14 [15:32:14]Write i2c OK [15:32:14]MH_I2C_Read... [15:32:14]Read from MH i2c: 01 [15:32:14]MH_I2C_Read... [15:32:14]Read from MH i2c: 01 07 00 [15:32:14]MH_I2C_Read... [15:32:14]Read from MH i2c: 01 07 00 BC 58 00 00 00 00 00 26 0D 4E [15:32:14]RasterBufferAndPrint [15:32:14]line [15:32:14]line [15:32:14]line [15:32:14]line [15:32:14]line [15:32:14]written 0, free lines is 3374 [15:32:14]MH_Cut [15:32:14]Write to MH i2c: D1 01 00 C3 58 01 ED [15:32:14]Write i2c OK [15:32:14]MH_I2C_Read... [15:32:14]Read from MH i2c: D1 [15:32:14]MH_I2C_Read... [15:32:14]Read from MH i2c: D1 01 00 [15:32:14]MH_I2C_Read... [15:32:14]Read from MH i2c: D1 01 00 C3 58 00 EC [15:32:14]Write to MH i2c: 01 00 00 C4 58 1C [15:32:14]Write i2c OK [15:32:14]MH_I2C_Read... [15:32:15]OFD Sender: No OFD packet to send [15:32:15]*** Cut start [15:32:15]*** Purtial cut [15:32:15]*** Stage 1: CUTSNS_PIN = 1 [15:32:17]Read from MH i2c: 01 [15:32:17]MH_I2C_Read... [15:32:17]*** Stop cut motor [15:32:17]*** Cut end [15:32:17]Read from MH i2c: 01 07 00 [15:32:17]MH_I2C_Read... [15:32:17]Read from MH i2c: 01 07 00 C4 58 00 00 00 00 00 FF 0F 31 [15:32:17]process_action close_receipt done [15:32:17]requested_data is exist [15:32:17]produce_requested_data [15:32:17]requested_item fm.sn is exist - process it [15:32:17]wFMCommunicate request_size=4 [15:32:17]MH_SAM_APDU [15:32:17]CAPDU: 80 11 00 00 [15:32:17]Write to MH i2c: E2 08 00 C5 58 80 11 00 00 00 00 00 00 97 [15:32:17]Write i2c OK [15:32:17]MH_I2C_Read... [15:32:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:17]Read from MH i2c: E2 [15:32:17]MH_I2C_Read... [15:32:17]Read from MH i2c: E2 17 00 [15:32:17]MH_I2C_Read... [15:32:17]Read from MH i2c: E2 17 00 C5 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 EE [15:32:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:32:17]wFMCommunicate OK [15:32:17]requested_item fd.num is exist - process it [15:32:17]SAM_PROTO_GetFieldsCounters [15:32:17]wFMCommunicate request_size=4 [15:32:17]MH_SAM_APDU [15:32:17]CAPDU: 80 13 00 00 [15:32:17]Write to MH i2c: E2 08 00 C6 58 80 13 00 00 00 00 00 00 9A [15:32:17]Write i2c OK [15:32:17]MH_I2C_Read... [15:32:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:32:17]Read from MH i2c: E2 [15:32:17]MH_I2C_Read... [15:32:17]Read from MH i2c: E2 62 00 [15:32:17]MH_I2C_Read... [15:32:17]Read from MH i2c: E2 62 00 C6 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 DF 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [15:32:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 DF 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:32:17]wFMCommunicate OK [15:32:17]SAM_PROTO_GetFieldsCounters done [15:32:17]requested_item shift.num is exist - process it [15:32:17]requested_item shift.opened is exist - process it [15:32:17]req_shift_opened [15:32:17]FM_GetShiftState [15:32:17]SAM_PROTO_GetShiftState [15:32:17]wFMCommunicate request_size=4 [15:32:17]MH_SAM_APDU [15:32:17]CAPDU: 80 13 01 00 [15:32:17]Write to MH i2c: E2 08 00 C7 58 80 13 01 00 00 00 00 00 9C [15:32:17]Write i2c OK [15:32:17]MH_I2C_Read... [15:32:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:17]Read from MH i2c: E2 [15:32:17]MH_I2C_Read... [15:32:17]Read from MH i2c: E2 0E 00 [15:32:17]MH_I2C_Read... [15:32:17]Read from MH i2c: E2 0E 00 C7 58 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 1E [15:32:17]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [15:32:17]wFMCommunicate OK [15:32:17]SAM_PROTO_GetShiftState done [15:32:17]FM_GetShiftState done [15:32:17]req_shift_opened done [15:32:17]requested_item shift.open_date is exist - process it [15:32:17]req_shift_open_date [15:32:17]req_shift_open_date done [15:32:17]produce_requested_data done [15:32:17]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92639,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [15:32:17]process_action_free close_receipt [15:32:17]json_value_free [15:32:17]json_value_free done [15:32:17]process_json_proto returns [15:32:17]Send response to host [15:32:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92639,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [15:32:17]free response buf [15:32:17]execute_script done [15:32:17]execute_script returns [15:32:17]free content buf [15:32:17]Sock 8.Close socket [15:32:17]Sock 8.Thread stoped [15:32:20]OFD Sender: No OFD packet to send [15:32:25]OFD Sender: No OFD packet to send [15:32:30]OFD Sender: No OFD packet to send [15:32:35]OFD Sender: No OFD packet to send [15:32:40]OFD Sender: No OFD packet to send [15:32:45]OFD Sender: No OFD packet to send [15:32:50]OFD Sender: No OFD packet to send [15:32:55]OFD Sender: No OFD packet to send [15:33:00]OFD Sender: No OFD packet to send [15:33:05]OFD Sender: No OFD packet to send [15:33:10]OFD Sender: No OFD packet to send [15:33:15]OFD Sender: No OFD packet to send [15:33:20]OFD Sender: No OFD packet to send [15:33:25]OFD Sender: No OFD packet to send [15:33:30]OFD Sender: No OFD packet to send [15:33:35]OFD Sender: No OFD packet to send [15:33:40]OFD Sender: No OFD packet to send [15:33:45]OFD Sender: No OFD packet to send [15:33:50]OFD Sender: No OFD packet to send [15:33:55]OFD Sender: No OFD packet to send [15:34:00]OFD Sender: No OFD packet to send [15:34:05]OFD Sender: No OFD packet to send [15:34:10]OFD Sender: No OFD packet to send [15:34:15]OFD Sender: No OFD packet to send [15:34:17]accept exits with 9 [15:34:17]New connection [15:34:17]New thread 3066658148 created [15:34:17]Thread 3066801508 joined [15:34:17]Waiting for new connection... [15:34:17] Sock 9.Parse request [15:34:17]Sock 9.Check first char [15:34:17]Sock 9.First char is OK [15:34:17]request: POST /json_proto HTTP/1.0 [15:34:17]Method: POST [15:34:17]URL: /json_proto [15:34:17]Method is POST - this is cgi request [15:34:17]url: /json_proto [15:34:17]query_string will be loaded in cgi processing [15:34:17]execute_cgi json_proto POST (null) [15:34:17]execute_cgi path=json_proto method=POST [15:34:17]POST find Content-Length [15:34:17]Host: 172.17.57.71:8080 [15:34:17]Content-Length: 632 [15:34:17]Content-Type: application/json [15:34:17] [15:34:17]POST finish read [15:34:17]Found Content-Length = 632 [15:34:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127529", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:17]execute_script... [15:34:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127529", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:17]POST & json_proto [15:34:17]process_json_proto [15:34:17]json parsed OK: [15:34:17]protocol is kg_v1.0 [15:34:17]action value=close_receipt [15:34:17]process_action close_receipt [15:34:17]cmd_close_receipt [15:34:17]MH_GetDate [15:34:17]Write to MH i2c: F0 00 00 C8 58 0F [15:34:17]Write i2c OK [15:34:17]MH_I2C_Read... [15:34:17]Read from MH i2c: F0 [15:34:17]MH_I2C_Read... [15:34:17]Read from MH i2c: F0 09 00 [15:34:17]MH_I2C_Read... [15:34:17]Read from MH i2c: F0 09 00 C8 58 00 82 FE E6 66 33 3A A4 66 5B [15:34:17]GetLastDocTimeStamp 1726414341 [15:34:17]current date 1726414466 [15:34:17]FM_GetShiftState [15:34:17]SAM_PROTO_GetShiftState [15:34:17]wFMCommunicate request_size=4 [15:34:17]MH_SAM_APDU [15:34:17]CAPDU: 80 13 01 00 [15:34:17]Write to MH i2c: E2 08 00 C9 58 80 13 01 00 00 00 00 00 9E [15:34:17]Write i2c OK [15:34:17]MH_I2C_Read... [15:34:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:17]Read from MH i2c: E2 [15:34:17]MH_I2C_Read... [15:34:17]Read from MH i2c: E2 0E 00 [15:34:17]MH_I2C_Read... [15:34:17]Read from MH i2c: E2 0E 00 C9 58 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 20 [15:34:17]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [15:34:17]wFMCommunicate OK [15:34:17]SAM_PROTO_GetShiftState done [15:34:17]FM_GetShiftState done [15:34:17]opened in 1726359809 [15:34:17]opened+sec_in_day 1726446209 [15:34:17]quantity*price = 4000 [15:34:17]sum+1 = 4001 [15:34:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 88 15.09.2024 15:34 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92640 ФПД: 227940362010638 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T153426&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92640&fm=227940362010638&tin=02508201610067®Number=0000000000091423&sum=4000 0 [15:34:18]StoreToDocumentArchive [15:34:18]shift 507 fd 92640 [15:34:18]save to /storage/0507/doc_00092640 [15:34:18]save last doc name /storage/0507/doc_00092640 to /storage/kkm_last_doc_name [15:34:18]save OK [15:34:18]Clear old archive folders... [15:34:18]ProcessDocumentItem done err = 0, tmpTLVsize=271 [15:34:18]tlvbuf is 010B52C0 [15:34:18]SAM_PROTO_ClearQueue [15:34:18]wFMCommunicate request_size=4 [15:34:18]MH_SAM_APDU [15:34:18]CAPDU: 80 09 00 00 [15:34:18]Write to MH i2c: E2 08 00 D6 58 80 09 00 00 00 00 00 00 A0 [15:34:18]Write i2c OK [15:34:18]MH_I2C_Read... [15:34:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:18]Read from MH i2c: E2 [15:34:18]MH_I2C_Read... [15:34:18]Read from MH i2c: E2 03 00 [15:34:18]MH_I2C_Read... [15:34:18]Read from MH i2c: E2 03 00 D6 58 00 90 00 A2 [15:34:18]RAPDU: 90 00 [15:34:18]wFMCommunicate OK [15:34:18]SAM_PROTO_ClearQueue done [15:34:18]KKMCreateOFDPacket [15:34:18]OFDProtocolAddRootSTLVToBuf [15:34:18]FM_MakeSignedData [15:34:18]FM_MakeSignedData [15:34:18]SAM_PROTO_SignData [15:34:18]wFMCommunicate request_size=4 [15:34:18]MH_SAM_APDU [15:34:18]CAPDU: 80 0D 01 02 [15:34:18]Write to MH i2c: E2 08 00 D7 58 80 0D 01 02 00 00 00 00 A8 [15:34:18]Write i2c OK [15:34:18]MH_I2C_Read... [15:34:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:18]Read from MH i2c: E2 [15:34:18]MH_I2C_Read... [15:34:18]Read from MH i2c: E2 03 00 [15:34:18]MH_I2C_Read... [15:34:18]Read from MH i2c: E2 03 00 D7 58 00 90 00 A3 [15:34:18]RAPDU: 90 00 [15:34:18]wFMCommunicate OK [15:34:18]wFMCommunicate request_size=255 [15:34:18]MH_SAM_APDU [15:34:18]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 82 FE E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 [15:34:18]Write to MH i2c: E2 02 01 D8 58 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 82 FE E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 A7 [15:34:18]Write i2c OK [15:34:18]MH_I2C_Read... [15:34:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:18]Read from MH i2c: E2 [15:34:18]MH_I2C_Read... [15:34:18]Read from MH i2c: E2 03 00 [15:34:18]MH_I2C_Read... [15:34:18]Read from MH i2c: E2 03 00 D8 58 00 90 00 A4 [15:34:18]RAPDU: 90 00 [15:34:18]wFMCommunicate OK [15:34:18]wFMCommunicate request_size=30 [15:34:18]MH_SAM_APDU [15:34:18]CAPDU: 80 0D 02 02 19 30 38 37 34 36 39 32 10 04 04 00 E0 69 01 00 35 04 06 00 CF 4F 80 4E C0 0E [15:34:18]Write to MH i2c: E2 21 00 D9 58 80 0D 02 02 19 00 30 38 37 34 36 39 32 10 04 04 00 E0 69 01 00 35 04 06 00 CF 4F 80 4E C0 0E 00 00 AC [15:34:18]Write i2c OK [15:34:18]MH_I2C_Read... [15:34:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:19]Read from MH i2c: E2 [15:34:19]MH_I2C_Read... [15:34:19]Read from MH i2c: E2 03 00 [15:34:19]MH_I2C_Read... [15:34:19]Read from MH i2c: E2 03 00 D9 58 00 90 00 A5 [15:34:19]RAPDU: 90 00 [15:34:19]wFMCommunicate OK [15:34:19]wFMCommunicate request_size=4 [15:34:19]MH_SAM_APDU [15:34:19]CAPDU: 80 0D 03 02 [15:34:19]Write to MH i2c: E2 08 00 DA 58 80 0D 03 02 00 00 00 00 AD [15:34:19]Write i2c OK [15:34:19]MH_I2C_Read... [15:34:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:19]Read from MH i2c: E2 [15:34:19]MH_I2C_Read... [15:34:19]Read from MH i2c: E2 0B 00 [15:34:19]MH_I2C_Read... [15:34:19]Read from MH i2c: E2 0B 00 DA 58 00 4C F3 8A 65 F7 B7 01 46 90 00 D1 [15:34:19]RAPDU: 4C F3 8A 65 F7 B7 01 46 90 00 [15:34:19]wFMCommunicate OK [15:34:19]SAM_PROTO_SignData done [15:34:19]FM_MakeSignedData done [15:34:19]CreateOFDProtocolMessage [15:34:19]wFMCommunicate request_size=4 [15:34:19]MH_SAM_APDU [15:34:19]CAPDU: 80 11 00 00 [15:34:19]Write to MH i2c: E2 08 00 DB 58 80 11 00 00 00 00 00 00 AD [15:34:19]Write i2c OK [15:34:19]MH_I2C_Read... [15:34:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:19]Read from MH i2c: E2 [15:34:19]MH_I2C_Read... [15:34:19]Read from MH i2c: E2 17 00 [15:34:19]MH_I2C_Read... [15:34:19]Read from MH i2c: E2 17 00 DB 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 04 [15:34:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:34:19]wFMCommunicate OK [15:34:19]CreateOFDProtocolMessage done [15:34:19]OFDSenderStorePacket 92640 [15:34:19]StoreOFDPacket docnum=92640 [15:34:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 D3 DE 1B 01 A0 06 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 82 FE E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E0 69 01 00 35 04 06 00 CF 4F 80 4E C0 0E 4C F3 8A 65 F7 B7 01 46 [15:34:19]CheckFolder [15:34:19]dirname=/storage/ofd_packets [15:34:19]CheckFolder done [15:34:19]ProducePacketName [15:34:19]name=ofd_packets/00092640 [15:34:19]NVStorageSaveData ofd_packets/00092640 [15:34:19]File name is /storage/ofd_packets/00092640 [15:34:19]Write 321 bytes [15:34:19]NVStorageSaveData done [15:34:19]OFDSenderStorePacket done [15:34:19]KKMCreateOFDPacket done [15:34:19]NVStorageSaveData kkm_last_timestamp [15:34:19]File name is /storage/kkm_last_timestamp [15:34:19]Write 4 bytes [15:34:19]NVStorageSaveData done [15:34:19]ExternCall_PrintAddStr [15:34:19]wPrintStart [15:34:19]Write to MH i2c: 01 00 00 DC 58 34 [15:34:19]Write i2c OK [15:34:19]MH_I2C_Read... [15:34:19]Read from MH i2c: 01 [15:34:19]MH_I2C_Read... [15:34:19]Read from MH i2c: 01 07 00 [15:34:19]MH_I2C_Read... [15:34:19]Read from MH i2c: 01 07 00 DC 58 00 00 00 00 00 FF 0F 49 [15:34:19]RasterBufferAndPrint [15:34:19]line Счет N : (3)127529 [15:34:19]line ИНН: 02508201610067 [15:34:19]line Контрольно-Кассовый Чек [15:34:19]line ПРОДАЖА [15:34:19]line Товар: 4700000160211 [15:34:19]line Вода Легенда 0,5л [15:34:19]line 1.000 * 40.00 [15:34:19]line = 40.00 [15:34:19]line НДС 12% НСП 1% [15:34:19]line > о реализуемом товаре [15:34:19]line ИТОГО: 40.00 [15:34:19]line НСП 1% : 0.35 [15:34:19]line НДС 12% : 4.25 [15:34:19]line Наличными: 40.00 [15:34:19]line Безнал.: 0.00 [15:34:19]line Место: АЗС № 5 "Партнер Нефть" [15:34:19]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [15:34:19]line СНО: Общий режим [15:34:19]line Чек 88 15.09.2024 15:34 [15:34:19]line Смена: 507 ФФД: 1.0 [15:34:19]line ЗНМ: 03000000022 [15:34:19]line РНМ: 0000000000091423 [15:34:19]line Версия ККМ: 001 [15:34:19]line ФМ: 0000000000874692 [15:34:19]line ФД: 92640 [15:34:19]line ФПД: 227940362010638 [15:34:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T153426&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92640&fm=227940362010638&tin=02508201610067®Number=0000000000091423&sum=4000 [15:34:19]OFD Sender: Processing packet 92640 [packets to send 63, broken 62] [15:34:19]ProducePacketName [15:34:19]name=ofd_packets/00092640 [15:34:19]OFD Sender: To server: pG, [15:34:19]CommunicateWithHost lk.salyk.kg:30040 [15:34:19]ConnectInit lk.salyk.kg [15:34:19]line 0 [15:34:19]written 0, free lines is 4095 [15:34:19]Connected sock=10 [15:34:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 D3 DE 1B 01 A0 06 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 82 FE E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E0 69 01 00 35 04 06 00 CF 4F 80 4E C0 0E 4C F3 8A 65 F7 B7 01 46 [15:34:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 75 49 47 00 8E 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E0 69 01 00 F4 03 04 00 FA A6 E6 66 B6 04 01 00 00 88 31 F1 58 44 76 57 3D [15:34:19]CommunicateWithHost err = 0 [15:34:19]CheckOFDResponse [15:34:19]1017 (14) - 77093643461234 [15:34:19]1041 (16) - 0000000000874692 [15:34:19]1040 (4) - 92640 [15:34:19]1012 (4) - 15.09.2024 09:20 [15:34:19]1206 (1) - 0 [15:34:19]OFD Sender: Remove packet 92640 [15:34:19]ProducePacketName [15:34:19]name=ofd_packets/00092640 [15:34:19]NVStorageDeleteData [15:34:19]Write to MH i2c: 01 00 00 04 59 5D [15:34:19]Write i2c OK [15:34:19]MH_I2C_Read... [15:34:19]Read from MH i2c: 01 [15:34:19]MH_I2C_Read... [15:34:19]Read from MH i2c: 01 07 00 [15:34:19]MH_I2C_Read... [15:34:19]Read from MH i2c: 01 07 00 04 59 00 00 00 00 00 14 0D 85 [15:34:19]RasterBufferAndPrint [15:34:19]line [15:34:19]line [15:34:19]line [15:34:19]line [15:34:19]line [15:34:19]written 0, free lines is 3354 [15:34:19]MH_Cut [15:34:19]Write to MH i2c: D1 01 00 0B 59 01 36 [15:34:19]Write i2c OK [15:34:19]MH_I2C_Read... [15:34:19]Read from MH i2c: D1 [15:34:19]MH_I2C_Read... [15:34:19]Read from MH i2c: D1 01 00 [15:34:19]MH_I2C_Read... [15:34:19]Read from MH i2c: D1 01 00 0B 59 00 35 [15:34:19]Write to MH i2c: 01 00 00 0C 59 65 [15:34:19]Write i2c OK [15:34:19]MH_I2C_Read... [15:34:20]OFD Sender: No OFD packet to send [15:34:20]*** Cut start [15:34:20]*** Purtial cut [15:34:20]*** Stage 1: CUTSNS_PIN = 1 [15:34:22]Read from MH i2c: 01 [15:34:22]MH_I2C_Read... [15:34:22]*** Stop cut motor [15:34:22]*** Cut end [15:34:22]Read from MH i2c: 01 07 00 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: 01 07 00 0C 59 00 00 00 00 00 FF 0F 7A [15:34:22]process_action close_receipt done [15:34:22]requested_data is exist [15:34:22]produce_requested_data [15:34:22]requested_item fm.sn is exist - process it [15:34:22]wFMCommunicate request_size=4 [15:34:22]MH_SAM_APDU [15:34:22]CAPDU: 80 11 00 00 [15:34:22]Write to MH i2c: E2 08 00 0D 59 80 11 00 00 00 00 00 00 E0 [15:34:22]Write i2c OK [15:34:22]MH_I2C_Read... [15:34:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:22]Read from MH i2c: E2 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: E2 17 00 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: E2 17 00 0D 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 37 [15:34:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:34:22]wFMCommunicate OK [15:34:22]requested_item fd.num is exist - process it [15:34:22]SAM_PROTO_GetFieldsCounters [15:34:22]wFMCommunicate request_size=4 [15:34:22]MH_SAM_APDU [15:34:22]CAPDU: 80 13 00 00 [15:34:22]Write to MH i2c: E2 08 00 0E 59 80 13 00 00 00 00 00 00 E3 [15:34:22]Write i2c OK [15:34:22]MH_I2C_Read... [15:34:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:22]Read from MH i2c: E2 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: E2 62 00 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: E2 62 00 0E 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E0 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [15:34:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E0 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:34:22]wFMCommunicate OK [15:34:22]SAM_PROTO_GetFieldsCounters done [15:34:22]requested_item shift.num is exist - process it [15:34:22]requested_item shift.opened is exist - process it [15:34:22]req_shift_opened [15:34:22]FM_GetShiftState [15:34:22]SAM_PROTO_GetShiftState [15:34:22]wFMCommunicate request_size=4 [15:34:22]MH_SAM_APDU [15:34:22]CAPDU: 80 13 01 00 [15:34:22]Write to MH i2c: E2 08 00 0F 59 80 13 01 00 00 00 00 00 E5 [15:34:22]Write i2c OK [15:34:22]MH_I2C_Read... [15:34:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:22]Read from MH i2c: E2 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: E2 0E 00 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: E2 0E 00 0F 59 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 67 [15:34:22]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [15:34:22]wFMCommunicate OK [15:34:22]SAM_PROTO_GetShiftState done [15:34:22]FM_GetShiftState done [15:34:22]req_shift_opened done [15:34:22]requested_item shift.open_date is exist - process it [15:34:22]req_shift_open_date [15:34:22]req_shift_open_date done [15:34:22]produce_requested_data done [15:34:22]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92640,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [15:34:22]process_action_free close_receipt [15:34:22]json_value_free [15:34:22]json_value_free done [15:34:22]process_json_proto returns [15:34:22]Send response to host [15:34:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92640,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [15:34:22]free response buf [15:34:22]execute_script done [15:34:22]execute_script returns [15:34:22]free content buf [15:34:22]Sock 9.Close socket [15:34:22]Sock 9.Thread stoped [15:34:25]OFD Sender: No OFD packet to send [15:34:30]OFD Sender: No OFD packet to send [15:34:35]OFD Sender: No OFD packet to send [15:34:40]OFD Sender: No OFD packet to send [15:34:45]OFD Sender: No OFD packet to send [15:34:50]OFD Sender: No OFD packet to send [15:34:55]OFD Sender: No OFD packet to send [15:35:00]OFD Sender: No OFD packet to send [15:35:05]OFD Sender: No OFD packet to send [15:35:10]OFD Sender: No OFD packet to send [15:35:15]OFD Sender: No OFD packet to send [15:35:20]OFD Sender: No OFD packet to send [15:35:25]OFD Sender: No OFD packet to send [15:35:30]OFD Sender: No OFD packet to send [15:35:35]OFD Sender: No OFD packet to send [15:35:40]OFD Sender: No OFD packet to send [15:35:45]OFD Sender: No OFD packet to send [15:35:50]OFD Sender: No OFD packet to send [15:35:55]OFD Sender: No OFD packet to send [15:36:00]OFD Sender: No OFD packet to send [15:36:05]OFD Sender: No OFD packet to send [15:36:10]OFD Sender: No OFD packet to send [15:36:15]OFD Sender: No OFD packet to send [15:36:20]OFD Sender: No OFD packet to send [15:36:25]OFD Sender: No OFD packet to send [15:36:30]OFD Sender: No OFD packet to send [15:36:35]OFD Sender: No OFD packet to send [15:36:40]OFD Sender: No OFD packet to send [15:36:45]OFD Sender: No OFD packet to send [15:36:50]OFD Sender: No OFD packet to send [15:36:55]OFD Sender: No OFD packet to send [15:37:00]OFD Sender: No OFD packet to send [15:37:05]OFD Sender: No OFD packet to send [15:37:10]OFD Sender: No OFD packet to send [15:37:15]OFD Sender: No OFD packet to send [15:37:20]OFD Sender: No OFD packet to send [15:37:25]OFD Sender: No OFD packet to send [15:37:30]OFD Sender: No OFD packet to send [15:37:35]OFD Sender: No OFD packet to send [15:37:40]OFD Sender: No OFD packet to send [15:37:45]OFD Sender: No OFD packet to send [15:37:50]OFD Sender: No OFD packet to send [15:37:55]OFD Sender: No OFD packet to send [15:38:00]OFD Sender: No OFD packet to send [15:38:05]OFD Sender: No OFD packet to send [15:38:10]OFD Sender: No OFD packet to send [15:38:15]OFD Sender: No OFD packet to send [15:38:20]OFD Sender: No OFD packet to send [15:38:25]OFD Sender: No OFD packet to send [15:38:30]OFD Sender: No OFD packet to send [15:38:35]OFD Sender: No OFD packet to send [15:38:40]OFD Sender: No OFD packet to send [15:38:45]OFD Sender: No OFD packet to send [15:38:50]OFD Sender: No OFD packet to send [15:38:55]OFD Sender: No OFD packet to send [15:39:00]OFD Sender: No OFD packet to send [15:39:05]OFD Sender: No OFD packet to send [15:39:10]OFD Sender: No OFD packet to send [15:39:15]OFD Sender: No OFD packet to send [15:39:20]OFD Sender: No OFD packet to send [15:39:25]OFD Sender: No OFD packet to send [15:39:30]OFD Sender: No OFD packet to send [15:39:35]OFD Sender: No OFD packet to send [15:39:40]OFD Sender: No OFD packet to send [15:39:45]OFD Sender: No OFD packet to send [15:39:50]OFD Sender: No OFD packet to send [15:39:55]OFD Sender: No OFD packet to send [15:40:00]OFD Sender: No OFD packet to send [15:40:05]OFD Sender: No OFD packet to send [15:40:10]OFD Sender: No OFD packet to send [15:40:15]OFD Sender: No OFD packet to send [15:40:20]OFD Sender: No OFD packet to send [15:40:25]OFD Sender: No OFD packet to send [15:40:30]OFD Sender: No OFD packet to send [15:40:35]OFD Sender: No OFD packet to send [15:40:40]OFD Sender: No OFD packet to send [15:40:45]OFD Sender: No OFD packet to send [15:40:50]OFD Sender: No OFD packet to send [15:40:55]OFD Sender: No OFD packet to send [15:41:00]OFD Sender: No OFD packet to send [15:41:05]OFD Sender: No OFD packet to send [15:41:10]OFD Sender: No OFD packet to send [15:41:15]OFD Sender: No OFD packet to send [15:41:20]OFD Sender: No OFD packet to send [15:41:25]OFD Sender: No OFD packet to send [15:41:30]OFD Sender: No OFD packet to send [15:41:35]OFD Sender: No OFD packet to send [15:41:40]OFD Sender: No OFD packet to send [15:41:45]OFD Sender: No OFD packet to send [15:41:50]OFD Sender: No OFD packet to send [15:41:55]OFD Sender: No OFD packet to send [15:42:00]OFD Sender: No OFD packet to send [15:42:05]OFD Sender: No OFD packet to send [15:42:10]OFD Sender: No OFD packet to send [15:42:15]OFD Sender: No OFD packet to send [15:42:20]OFD Sender: No OFD packet to send [15:42:25]OFD Sender: No OFD packet to send [15:42:30]OFD Sender: No OFD packet to send [15:42:35]OFD Sender: No OFD packet to send [15:42:40]OFD Sender: No OFD packet to send [15:42:45]OFD Sender: No OFD packet to send [15:42:50]OFD Sender: No OFD packet to send [15:42:55]OFD Sender: No OFD packet to send [15:43:00]OFD Sender: No OFD packet to send [15:43:05]OFD Sender: No OFD packet to send [15:43:10]OFD Sender: No OFD packet to send [15:43:15]OFD Sender: No OFD packet to send [15:43:20]OFD Sender: No OFD packet to send [15:43:25]OFD Sender: No OFD packet to send [15:43:30]OFD Sender: No OFD packet to send [15:43:35]OFD Sender: No OFD packet to send [15:43:40]OFD Sender: No OFD packet to send [15:43:45]OFD Sender: No OFD packet to send [15:43:50]OFD Sender: No OFD packet to send [15:43:55]OFD Sender: No OFD packet to send [15:44:00]OFD Sender: No OFD packet to send [15:44:05]OFD Sender: No OFD packet to send [15:44:10]OFD Sender: No OFD packet to send [15:44:15]OFD Sender: No OFD packet to send [15:44:20]OFD Sender: No OFD packet to send [15:44:25]OFD Sender: No OFD packet to send [15:44:30]OFD Sender: No OFD packet to send [15:44:35]OFD Sender: No OFD packet to send [15:44:40]OFD Sender: No OFD packet to send [15:44:45]OFD Sender: No OFD packet to send [15:44:50]OFD Sender: No OFD packet to send [15:44:55]OFD Sender: No OFD packet to send [15:45:00]OFD Sender: No OFD packet to send [15:45:05]OFD Sender: No OFD packet to send [15:45:10]OFD Sender: No OFD packet to send [15:45:15]OFD Sender: No OFD packet to send [15:45:20]OFD Sender: No OFD packet to send [15:45:25]OFD Sender: No OFD packet to send [15:45:30]OFD Sender: No OFD packet to send [15:45:35]OFD Sender: No OFD packet to send [15:45:40]OFD Sender: No OFD packet to send [15:45:45]OFD Sender: No OFD packet to send [15:45:50]OFD Sender: No OFD packet to send [15:45:55]OFD Sender: No OFD packet to send [15:46:00]OFD Sender: No OFD packet to send [15:46:05]OFD Sender: No OFD packet to send [15:46:10]OFD Sender: No OFD packet to send [15:46:15]OFD Sender: No OFD packet to send [15:46:20]OFD Sender: No OFD packet to send [15:46:25]OFD Sender: No OFD packet to send [15:46:30]OFD Sender: No OFD packet to send [15:46:35]OFD Sender: No OFD packet to send [15:46:40]OFD Sender: No OFD packet to send [15:46:45]OFD Sender: No OFD packet to send [15:46:51]OFD Sender: No OFD packet to send [15:46:56]OFD Sender: No OFD packet to send [15:47:01]OFD Sender: No OFD packet to send [15:47:06]OFD Sender: No OFD packet to send [15:47:11]OFD Sender: No OFD packet to send [15:47:16]OFD Sender: No OFD packet to send [15:47:21]OFD Sender: No OFD packet to send [15:47:26]OFD Sender: No OFD packet to send [15:47:31]OFD Sender: No OFD packet to send [15:47:36]OFD Sender: No OFD packet to send [15:47:41]OFD Sender: No OFD packet to send [15:47:46]OFD Sender: No OFD packet to send [15:47:51]OFD Sender: No OFD packet to send [15:47:56]OFD Sender: No OFD packet to send [15:48:01]OFD Sender: No OFD packet to send [15:48:06]OFD Sender: No OFD packet to send [15:48:11]OFD Sender: No OFD packet to send [15:48:16]OFD Sender: No OFD packet to send [15:48:21]OFD Sender: No OFD packet to send [15:48:26]OFD Sender: No OFD packet to send [15:48:31]OFD Sender: No OFD packet to send [15:48:36]OFD Sender: No OFD packet to send [15:48:41]OFD Sender: No OFD packet to send [15:48:46]OFD Sender: No OFD packet to send [15:48:51]OFD Sender: No OFD packet to send [15:48:56]OFD Sender: No OFD packet to send [15:49:01]OFD Sender: No OFD packet to send [15:49:06]OFD Sender: No OFD packet to send [15:49:11]OFD Sender: No OFD packet to send [15:49:16]OFD Sender: No OFD packet to send [15:49:21]OFD Sender: No OFD packet to send [15:49:26]OFD Sender: No OFD packet to send [15:49:31]OFD Sender: No OFD packet to send [15:49:36]OFD Sender: No OFD packet to send [15:49:41]OFD Sender: No OFD packet to send [15:49:46]OFD Sender: No OFD packet to send [15:49:51]OFD Sender: No OFD packet to send [15:49:56]OFD Sender: No OFD packet to send [15:50:01]OFD Sender: No OFD packet to send [15:50:06]OFD Sender: No OFD packet to send [15:50:11]OFD Sender: No OFD packet to send [15:50:16]OFD Sender: No OFD packet to send [15:50:21]OFD Sender: No OFD packet to send [15:50:26]OFD Sender: No OFD packet to send [15:50:31]OFD Sender: No OFD packet to send [15:50:36]OFD Sender: No OFD packet to send [15:50:41]OFD Sender: No OFD packet to send [15:50:46]OFD Sender: No OFD packet to send [15:50:51]OFD Sender: No OFD packet to send [15:50:56]OFD Sender: No OFD packet to send [15:51:01]OFD Sender: No OFD packet to send [15:51:06]OFD Sender: No OFD packet to send [15:51:11]OFD Sender: No OFD packet to send [15:51:16]OFD Sender: No OFD packet to send [15:51:21]OFD Sender: No OFD packet to send [15:51:26]OFD Sender: No OFD packet to send [15:51:31]OFD Sender: No OFD packet to send [15:51:36]OFD Sender: No OFD packet to send [15:51:41]OFD Sender: No OFD packet to send [15:51:46]OFD Sender: No OFD packet to send [15:51:51]OFD Sender: No OFD packet to send [15:51:56]OFD Sender: No OFD packet to send [15:52:01]OFD Sender: No OFD packet to send [15:52:06]OFD Sender: No OFD packet to send [15:52:11]OFD Sender: No OFD packet to send [15:52:16]OFD Sender: No OFD packet to send [15:52:21]OFD Sender: No OFD packet to send [15:52:26]OFD Sender: No OFD packet to send [15:52:31]OFD Sender: No OFD packet to send [15:52:36]OFD Sender: No OFD packet to send [15:52:41]OFD Sender: No OFD packet to send [15:52:46]OFD Sender: No OFD packet to send [15:52:51]OFD Sender: No OFD packet to send [15:52:56]OFD Sender: No OFD packet to send [15:53:01]OFD Sender: No OFD packet to send [15:53:06]OFD Sender: No OFD packet to send [15:53:11]OFD Sender: No OFD packet to send [15:53:16]OFD Sender: No OFD packet to send [15:53:21]OFD Sender: No OFD packet to send [15:53:26]OFD Sender: No OFD packet to send [15:53:31]OFD Sender: No OFD packet to send [15:53:36]OFD Sender: No OFD packet to send [15:53:41]OFD Sender: No OFD packet to send [15:53:46]OFD Sender: No OFD packet to send [15:53:51]OFD Sender: No OFD packet to send [15:53:56]OFD Sender: No OFD packet to send [15:54:01]OFD Sender: No OFD packet to send [15:54:06]OFD Sender: No OFD packet to send [15:54:11]OFD Sender: No OFD packet to send [15:54:16]OFD Sender: No OFD packet to send [15:54:21]OFD Sender: No OFD packet to send [15:54:26]OFD Sender: No OFD packet to send [15:54:31]OFD Sender: No OFD packet to send [15:54:36]OFD Sender: No OFD packet to send [15:54:41]OFD Sender: No OFD packet to send [15:54:46]OFD Sender: No OFD packet to send [15:54:51]OFD Sender: No OFD packet to send [15:54:56]OFD Sender: No OFD packet to send [15:55:01]OFD Sender: No OFD packet to send [15:55:06]OFD Sender: No OFD packet to send [15:55:11]OFD Sender: No OFD packet to send [15:55:16]OFD Sender: No OFD packet to send [15:55:18]accept exits with 8 [15:55:18]New connection [15:55:18]New thread 3066801508 created [15:55:18]Thread 3066658148 joined [15:55:18]Waiting for new connection... [15:55:18] Sock 8.Parse request [15:55:18]Sock 8.Check first char [15:55:18]Sock 8.First char is OK [15:55:18]request: POST /json_proto HTTP/1.0 [15:55:18]Method: POST [15:55:18]URL: /json_proto [15:55:18]Method is POST - this is cgi request [15:55:18]url: /json_proto [15:55:18]query_string will be loaded in cgi processing [15:55:18]execute_cgi json_proto POST (null) [15:55:18]execute_cgi path=json_proto method=POST [15:55:18]POST find Content-Length [15:55:18]Host: 172.17.57.71:8080 [15:55:18]Content-Length: 630 [15:55:18]Content-Type: application/json [15:55:18] [15:55:18]POST finish read [15:55:18]Found Content-Length = 630 [15:55:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127530", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:18]execute_script... [15:55:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127530", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:18]POST & json_proto [15:55:18]process_json_proto [15:55:18]json parsed OK: [15:55:18]protocol is kg_v1.0 [15:55:18]action value=close_receipt [15:55:18]process_action close_receipt [15:55:18]cmd_close_receipt [15:55:18]MH_GetDate [15:55:18]Write to MH i2c: F0 00 00 10 59 58 [15:55:18]Write i2c OK [15:55:18]MH_I2C_Read... [15:55:18]Read from MH i2c: F0 [15:55:18]MH_I2C_Read... [15:55:18]Read from MH i2c: F0 09 00 [15:55:18]MH_I2C_Read... [15:55:18]Read from MH i2c: F0 09 00 10 59 00 6F 03 E7 66 33 3A A4 66 97 [15:55:18]GetLastDocTimeStamp 1726414466 [15:55:18]current date 1726415727 [15:55:18]FM_GetShiftState [15:55:18]SAM_PROTO_GetShiftState [15:55:18]wFMCommunicate request_size=4 [15:55:18]MH_SAM_APDU [15:55:18]CAPDU: 80 13 01 00 [15:55:18]Write to MH i2c: E2 08 00 11 59 80 13 01 00 00 00 00 00 E7 [15:55:18]Write i2c OK [15:55:18]MH_I2C_Read... [15:55:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:18]Read from MH i2c: E2 [15:55:18]MH_I2C_Read... [15:55:18]Read from MH i2c: E2 0E 00 [15:55:18]MH_I2C_Read... [15:55:18]Read from MH i2c: E2 0E 00 11 59 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 69 [15:55:18]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [15:55:18]wFMCommunicate OK [15:55:18]SAM_PROTO_GetShiftState done [15:55:18]FM_GetShiftState done [15:55:18]opened in 1726359809 [15:55:18]opened+sec_in_day 1726446209 [15:55:18]quantity*price = 5000 [15:55:18]sum+1 = 5001 [15:55:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 89 15.09.2024 15:55 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92641 ФПД: 60091247990010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T155527&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92641&fm=60091247990010&tin=02508201610067®Number=0000000000091423&sum=5000 0 [15:55:19]StoreToDocumentArchive [15:55:19]shift 507 fd 92641 [15:55:19]save to /storage/0507/doc_00092641 [15:55:19]save last doc name /storage/0507/doc_00092641 to /storage/kkm_last_doc_name [15:55:19]save OK [15:55:19]Clear old archive folders... [15:55:19]ProcessDocumentItem done err = 0, tmpTLVsize=269 [15:55:19]tlvbuf is 01099AB0 [15:55:19]SAM_PROTO_ClearQueue [15:55:19]wFMCommunicate request_size=4 [15:55:19]MH_SAM_APDU [15:55:19]CAPDU: 80 09 00 00 [15:55:19]Write to MH i2c: E2 08 00 1E 59 80 09 00 00 00 00 00 00 E9 [15:55:19]Write i2c OK [15:55:19]MH_I2C_Read... [15:55:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:55:19]Read from MH i2c: E2 [15:55:19]MH_I2C_Read... [15:55:19]Read from MH i2c: E2 03 00 [15:55:19]MH_I2C_Read... [15:55:19]Read from MH i2c: E2 03 00 1E 59 00 90 00 EB [15:55:19]RAPDU: 90 00 [15:55:19]wFMCommunicate OK [15:55:19]SAM_PROTO_ClearQueue done [15:55:19]KKMCreateOFDPacket [15:55:19]OFDProtocolAddRootSTLVToBuf [15:55:19]FM_MakeSignedData [15:55:19]FM_MakeSignedData [15:55:19]SAM_PROTO_SignData [15:55:19]wFMCommunicate request_size=4 [15:55:19]MH_SAM_APDU [15:55:19]CAPDU: 80 0D 01 02 [15:55:19]Write to MH i2c: E2 08 00 1F 59 80 0D 01 02 00 00 00 00 F1 [15:55:19]Write i2c OK [15:55:19]MH_I2C_Read... [15:55:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:55:19]Read from MH i2c: E2 [15:55:19]MH_I2C_Read... [15:55:19]Read from MH i2c: E2 03 00 [15:55:19]MH_I2C_Read... [15:55:19]Read from MH i2c: E2 03 00 1F 59 00 90 00 EC [15:55:19]RAPDU: 90 00 [15:55:19]wFMCommunicate OK [15:55:19]wFMCommunicate request_size=255 [15:55:19]MH_SAM_APDU [15:55:19]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 6F 03 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [15:55:19]Write to MH i2c: E2 02 01 20 59 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 6F 03 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 16 [15:55:19]Write i2c OK [15:55:19]MH_I2C_Read... [15:55:20]Read from MH i2c: E2 [15:55:20]MH_I2C_Read... [15:55:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:20]Read from MH i2c: E2 03 00 [15:55:20]MH_I2C_Read... [15:55:20]Read from MH i2c: E2 03 00 20 59 00 90 00 ED [15:55:20]RAPDU: 90 00 [15:55:20]wFMCommunicate OK [15:55:20]wFMCommunicate request_size=28 [15:55:20]MH_SAM_APDU [15:55:20]CAPDU: 80 0D 02 02 17 37 34 36 39 32 10 04 04 00 E1 69 01 00 35 04 06 00 36 A7 15 7D 94 FA [15:55:20]Write to MH i2c: E2 1F 00 21 59 80 0D 02 02 17 00 37 34 36 39 32 10 04 04 00 E1 69 01 00 35 04 06 00 36 A7 15 7D 94 FA 00 00 CD [15:55:20]Write i2c OK [15:55:20]MH_I2C_Read... [15:55:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:20]Read from MH i2c: E2 [15:55:20]MH_I2C_Read... [15:55:20]Read from MH i2c: E2 03 00 [15:55:20]MH_I2C_Read... [15:55:20]Read from MH i2c: E2 03 00 21 59 00 90 00 EE [15:55:20]RAPDU: 90 00 [15:55:20]wFMCommunicate OK [15:55:20]wFMCommunicate request_size=4 [15:55:20]MH_SAM_APDU [15:55:20]CAPDU: 80 0D 03 02 [15:55:20]Write to MH i2c: E2 08 00 22 59 80 0D 03 02 00 00 00 00 F6 [15:55:20]Write i2c OK [15:55:20]MH_I2C_Read... [15:55:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:55:20]Read from MH i2c: E2 [15:55:20]MH_I2C_Read... [15:55:20]Read from MH i2c: E2 0B 00 [15:55:20]MH_I2C_Read... [15:55:20]Read from MH i2c: E2 0B 00 22 59 00 12 3C B8 53 A2 9D 14 B3 90 00 56 [15:55:20]RAPDU: 12 3C B8 53 A2 9D 14 B3 90 00 [15:55:20]wFMCommunicate OK [15:55:20]SAM_PROTO_SignData done [15:55:20]FM_MakeSignedData done [15:55:20]CreateOFDProtocolMessage [15:55:20]wFMCommunicate request_size=4 [15:55:20]MH_SAM_APDU [15:55:20]CAPDU: 80 11 00 00 [15:55:20]Write to MH i2c: E2 08 00 23 59 80 11 00 00 00 00 00 00 F6 [15:55:20]Write i2c OK [15:55:20]MH_I2C_Read... [15:55:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:20]Read from MH i2c: E2 [15:55:20]MH_I2C_Read... [15:55:20]Read from MH i2c: E2 17 00 [15:55:20]MH_I2C_Read... [15:55:20]Read from MH i2c: E2 17 00 23 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 4D [15:55:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:55:20]wFMCommunicate OK [15:55:20]CreateOFDProtocolMessage done [15:55:20]OFDSenderStorePacket 92641 [15:55:20]StoreOFDPacket docnum=92641 [15:55:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 21 01 00 00 5B 52 19 01 2A B9 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 6F 03 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E1 69 01 00 35 04 06 00 36 A7 15 7D 94 FA 12 3C B8 53 A2 9D 14 B3 [15:55:20]CheckFolder [15:55:20]dirname=/storage/ofd_packets [15:55:20]CheckFolder done [15:55:20]ProducePacketName [15:55:20]name=ofd_packets/00092641 [15:55:20]NVStorageSaveData ofd_packets/00092641 [15:55:20]File name is /storage/ofd_packets/00092641 [15:55:20]Write 319 bytes [15:55:20]NVStorageSaveData done [15:55:20]OFDSenderStorePacket done [15:55:20]KKMCreateOFDPacket done [15:55:20]NVStorageSaveData kkm_last_timestamp [15:55:20]File name is /storage/kkm_last_timestamp [15:55:20]Write 4 bytes [15:55:20]NVStorageSaveData done [15:55:20]ExternCall_PrintAddStr [15:55:20]wPrintStart [15:55:20]Write to MH i2c: 01 00 00 24 59 7D [15:55:20]Write i2c OK [15:55:20]MH_I2C_Read... [15:55:20]Read from MH i2c: 01 [15:55:20]MH_I2C_Read... [15:55:20]Read from MH i2c: 01 07 00 [15:55:20]MH_I2C_Read... [15:55:20]Read from MH i2c: 01 07 00 24 59 00 00 00 00 00 FF 0F 92 [15:55:20]RasterBufferAndPrint [15:55:20]line Счет N : (3)127530 [15:55:20]line ИНН: 02508201610067 [15:55:20]line Контрольно-Кассовый Чек [15:55:20]line ПРОДАЖА [15:55:20]line Товар: 4700000160358 [15:55:20]line Вода Легенда 1л [15:55:20]line 1.000 * 50.00 [15:55:20]line = 50.00 [15:55:20]line НДС 12% НСП 1% [15:55:20]line > о реализуемом товаре [15:55:20]line ИТОГО: 50.00 [15:55:20]line НСП 1% : 0.44 [15:55:20]line НДС 12% : 5.31 [15:55:20]line Наличными: 50.00 [15:55:20]line Безнал.: 0.00 [15:55:20]line Место: АЗС № 5 "Партнер Нефть" [15:55:20]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [15:55:20]line СНО: Общий режим [15:55:20]line Чек 89 15.09.2024 15:55 [15:55:20]line Смена: 507 ФФД: 1.0 [15:55:20]line ЗНМ: 03000000022 [15:55:20]line РНМ: 0000000000091423 [15:55:20]line Версия ККМ: 001 [15:55:20]line ФМ: 0000000000874692 [15:55:20]line ФД: 92641 [15:55:20]line ФПД: 60091247990010 [15:55:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T155527&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92641&fm=60091247990010&tin=02508201610067®Number=0000000000091423&sum=5000 [15:55:20]line 0 [15:55:20]written 0, free lines is 4095 [15:55:20]OFD Sender: Processing packet 92641 [packets to send 63, broken 62] [15:55:20]ProducePacketName [15:55:20]name=ofd_packets/00092641 [15:55:20]OFD Sender: To server: pG, [15:55:20]CommunicateWithHost lk.salyk.kg:30040 [15:55:20]ConnectInit lk.salyk.kg [15:55:20]Connected sock=9 [15:55:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 21 01 00 00 5B 52 19 01 2A B9 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 6F 03 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E1 69 01 00 35 04 06 00 36 A7 15 7D 94 FA 12 3C B8 53 A2 9D 14 B3 [15:55:20]Write to MH i2c: 01 00 00 4C 59 A5 [15:55:20]Write i2c OK [15:55:20]MH_I2C_Read... [15:55:20]Read from MH i2c: 01 [15:55:20]MH_I2C_Read... [15:55:20]Read from MH i2c: 01 07 00 [15:55:20]MH_I2C_Read... [15:55:20]Read from MH i2c: 01 07 00 4C 59 00 00 00 00 00 3C 0D F5 [15:55:20]RasterBufferAndPrint [15:55:20]line [15:55:20]line [15:55:20]line [15:55:20]line [15:55:20]line [15:55:20]written 0, free lines is 3394 [15:55:20]MH_Cut [15:55:20]Write to MH i2c: D1 01 00 53 59 01 7E [15:55:20]Write i2c OK [15:55:20]MH_I2C_Read... [15:55:20]Read from MH i2c: D1 [15:55:20]MH_I2C_Read... [15:55:20]Read from MH i2c: D1 01 00 [15:55:20]MH_I2C_Read... [15:55:20]Read from MH i2c: D1 01 00 53 59 00 7D [15:55:20]Write to MH i2c: 01 00 00 54 59 AD [15:55:20]Write i2c OK [15:55:20]MH_I2C_Read... [15:55:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 1E E7 47 00 1B 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E1 69 01 00 F4 03 04 00 E7 AB E6 66 B6 04 01 00 00 F4 20 12 4A F7 21 6A 49 [15:55:20]CommunicateWithHost err = 0 [15:55:20]CheckOFDResponse [15:55:20]1017 (14) - 77093643461234 [15:55:20]1041 (16) - 0000000000874692 [15:55:20]1040 (4) - 92641 [15:55:20]1012 (4) - 15.09.2024 09:41 [15:55:20]1206 (1) - 0 [15:55:20]OFD Sender: Remove packet 92641 [15:55:20]ProducePacketName [15:55:20]name=ofd_packets/00092641 [15:55:20]NVStorageDeleteData [15:55:21]*** Cut start [15:55:21]*** Purtial cut [15:55:21]*** Stage 1: CUTSNS_PIN = 1 [15:55:21]OFD Sender: No OFD packet to send [15:55:23]Read from MH i2c: 01 [15:55:23]MH_I2C_Read... [15:55:23]*** Stop cut motor [15:55:23]*** Cut end [15:55:23]Read from MH i2c: 01 07 00 [15:55:23]MH_I2C_Read... [15:55:23]Read from MH i2c: 01 07 00 54 59 00 00 00 00 00 FF 0F C2 [15:55:23]process_action close_receipt done [15:55:23]requested_data is exist [15:55:23]produce_requested_data [15:55:23]requested_item fm.sn is exist - process it [15:55:23]wFMCommunicate request_size=4 [15:55:23]MH_SAM_APDU [15:55:23]CAPDU: 80 11 00 00 [15:55:23]Write to MH i2c: E2 08 00 55 59 80 11 00 00 00 00 00 00 28 [15:55:23]Write i2c OK [15:55:23]MH_I2C_Read... [15:55:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:23]Read from MH i2c: E2 [15:55:23]MH_I2C_Read... [15:55:23]Read from MH i2c: E2 17 00 [15:55:23]MH_I2C_Read... [15:55:23]Read from MH i2c: E2 17 00 55 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 7F [15:55:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:55:23]wFMCommunicate OK [15:55:23]requested_item fd.num is exist - process it [15:55:23]SAM_PROTO_GetFieldsCounters [15:55:23]wFMCommunicate request_size=4 [15:55:23]MH_SAM_APDU [15:55:23]CAPDU: 80 13 00 00 [15:55:23]Write to MH i2c: E2 08 00 56 59 80 13 00 00 00 00 00 00 2B [15:55:23]Write i2c OK [15:55:23]MH_I2C_Read... [15:55:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:55:23]Read from MH i2c: E2 [15:55:23]MH_I2C_Read... [15:55:23]Read from MH i2c: E2 62 00 [15:55:23]MH_I2C_Read... [15:55:23]Read from MH i2c: E2 62 00 56 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E1 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [15:55:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E1 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:55:23]wFMCommunicate OK [15:55:23]SAM_PROTO_GetFieldsCounters done [15:55:23]requested_item shift.num is exist - process it [15:55:23]requested_item shift.opened is exist - process it [15:55:23]req_shift_opened [15:55:23]FM_GetShiftState [15:55:23]SAM_PROTO_GetShiftState [15:55:23]wFMCommunicate request_size=4 [15:55:23]MH_SAM_APDU [15:55:23]CAPDU: 80 13 01 00 [15:55:23]Write to MH i2c: E2 08 00 57 59 80 13 01 00 00 00 00 00 2D [15:55:23]Write i2c OK [15:55:23]MH_I2C_Read... [15:55:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:23]Read from MH i2c: E2 [15:55:23]MH_I2C_Read... [15:55:23]Read from MH i2c: E2 0E 00 [15:55:23]MH_I2C_Read... [15:55:23]Read from MH i2c: E2 0E 00 57 59 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 AF [15:55:23]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [15:55:23]wFMCommunicate OK [15:55:23]SAM_PROTO_GetShiftState done [15:55:23]FM_GetShiftState done [15:55:23]req_shift_opened done [15:55:23]requested_item shift.open_date is exist - process it [15:55:23]req_shift_open_date [15:55:23]req_shift_open_date done [15:55:23]produce_requested_data done [15:55:23]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92641,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [15:55:23]process_action_free close_receipt [15:55:23]json_value_free [15:55:23]json_value_free done [15:55:23]process_json_proto returns [15:55:23]Send response to host [15:55:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92641,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [15:55:23]free response buf [15:55:23]execute_script done [15:55:23]execute_script returns [15:55:23]free content buf [15:55:23]Sock 8.Close socket [15:55:23]Sock 8.Thread stoped [15:55:26]OFD Sender: No OFD packet to send [15:55:31]OFD Sender: No OFD packet to send [15:55:36]OFD Sender: No OFD packet to send [15:55:41]OFD Sender: No OFD packet to send [15:55:46]OFD Sender: No OFD packet to send [15:55:51]OFD Sender: No OFD packet to send [15:55:56]OFD Sender: No OFD packet to send [15:56:01]OFD Sender: No OFD packet to send [15:56:06]OFD Sender: No OFD packet to send [15:56:11]OFD Sender: No OFD packet to send [15:56:16]OFD Sender: No OFD packet to send [15:56:21]OFD Sender: No OFD packet to send [15:56:26]OFD Sender: No OFD packet to send [15:56:31]OFD Sender: No OFD packet to send [15:56:36]OFD Sender: No OFD packet to send [15:56:41]OFD Sender: No OFD packet to send [15:56:46]OFD Sender: No OFD packet to send [15:56:51]OFD Sender: No OFD packet to send [15:56:56]OFD Sender: No OFD packet to send [15:57:01]OFD Sender: No OFD packet to send [15:57:06]OFD Sender: No OFD packet to send [15:57:11]OFD Sender: No OFD packet to send [15:57:16]OFD Sender: No OFD packet to send [15:57:21]OFD Sender: No OFD packet to send [15:57:26]OFD Sender: No OFD packet to send [15:57:31]OFD Sender: No OFD packet to send [15:57:36]OFD Sender: No OFD packet to send [15:57:41]OFD Sender: No OFD packet to send [15:57:46]OFD Sender: No OFD packet to send [15:57:51]OFD Sender: No OFD packet to send [15:57:56]OFD Sender: No OFD packet to send [15:58:01]OFD Sender: No OFD packet to send [15:58:06]OFD Sender: No OFD packet to send [15:58:11]OFD Sender: No OFD packet to send [15:58:16]OFD Sender: No OFD packet to send [15:58:21]OFD Sender: No OFD packet to send [15:58:26]OFD Sender: No OFD packet to send [15:58:31]OFD Sender: No OFD packet to send [15:58:36]OFD Sender: No OFD packet to send [15:58:41]OFD Sender: No OFD packet to send [15:58:46]OFD Sender: No OFD packet to send [15:58:51]OFD Sender: No OFD packet to send [15:58:56]OFD Sender: No OFD packet to send [15:59:01]OFD Sender: No OFD packet to send [15:59:06]OFD Sender: No OFD packet to send [15:59:11]OFD Sender: No OFD packet to send [15:59:16]OFD Sender: No OFD packet to send [15:59:21]OFD Sender: No OFD packet to send [15:59:26]OFD Sender: No OFD packet to send [15:59:31]OFD Sender: No OFD packet to send [15:59:36]OFD Sender: No OFD packet to send [15:59:41]OFD Sender: No OFD packet to send [15:59:46]OFD Sender: No OFD packet to send [15:59:51]OFD Sender: No OFD packet to send [15:59:56]OFD Sender: No OFD packet to send [16:00:01]OFD Sender: No OFD packet to send [16:00:06]OFD Sender: No OFD packet to send [16:00:11]OFD Sender: No OFD packet to send [16:00:16]OFD Sender: No OFD packet to send [16:00:21]OFD Sender: No OFD packet to send [16:00:26]OFD Sender: No OFD packet to send [16:00:31]OFD Sender: No OFD packet to send [16:00:36]OFD Sender: No OFD packet to send [16:00:41]OFD Sender: No OFD packet to send [16:00:46]OFD Sender: No OFD packet to send [16:00:51]OFD Sender: No OFD packet to send [16:00:56]OFD Sender: No OFD packet to send [16:01:01]OFD Sender: No OFD packet to send [16:01:06]OFD Sender: No OFD packet to send [16:01:11]OFD Sender: No OFD packet to send [16:01:16]OFD Sender: No OFD packet to send [16:01:21]OFD Sender: No OFD packet to send [16:01:26]OFD Sender: No OFD packet to send [16:01:31]OFD Sender: No OFD packet to send [16:01:33]accept exits with 10 [16:01:33]New connection [16:01:33]New thread 3066658148 created [16:01:33]Thread 3066801508 joined [16:01:33]Waiting for new connection... [16:01:33] Sock 10.Parse request [16:01:33]Sock 10.Check first char [16:01:33]Sock 10.First char is OK [16:01:33]request: POST /json_proto HTTP/1.0 [16:01:33]Method: POST [16:01:33]URL: /json_proto [16:01:33]Method is POST - this is cgi request [16:01:33]url: /json_proto [16:01:33]query_string will be loaded in cgi processing [16:01:33]execute_cgi json_proto POST (null) [16:01:33]execute_cgi path=json_proto method=POST [16:01:33]POST find Content-Length [16:01:33]Host: 172.17.57.71:8080 [16:01:33]Content-Length: 709 [16:01:33]Content-Type: application/json [16:01:33] [16:01:33]POST finish read [16:01:33]Found Content-Length = 709 [16:01:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127531", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:33]execute_script... [16:01:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127531", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:33]POST & json_proto [16:01:33]process_json_proto [16:01:33]json parsed OK: [16:01:33]protocol is kg_v1.0 [16:01:33]action value=close_receipt [16:01:33]process_action close_receipt [16:01:33]cmd_close_receipt [16:01:33]MH_GetDate [16:01:33]Write to MH i2c: F0 00 00 58 59 A0 [16:01:33]Write i2c OK [16:01:33]MH_I2C_Read... [16:01:33]Read from MH i2c: F0 [16:01:33]MH_I2C_Read... [16:01:33]Read from MH i2c: F0 09 00 [16:01:33]MH_I2C_Read... [16:01:33]Read from MH i2c: F0 09 00 58 59 00 E6 04 E7 66 33 3A A4 66 57 [16:01:33]GetLastDocTimeStamp 1726415727 [16:01:33]current date 1726416102 [16:01:33]FM_GetShiftState [16:01:33]SAM_PROTO_GetShiftState [16:01:33]wFMCommunicate request_size=4 [16:01:33]MH_SAM_APDU [16:01:33]CAPDU: 80 13 01 00 [16:01:33]Write to MH i2c: E2 08 00 59 59 80 13 01 00 00 00 00 00 2F [16:01:33]Write i2c OK [16:01:33]MH_I2C_Read... [16:01:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:33]Read from MH i2c: E2 [16:01:33]MH_I2C_Read... [16:01:33]Read from MH i2c: E2 0E 00 [16:01:33]MH_I2C_Read... [16:01:33]Read from MH i2c: E2 0E 00 59 59 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 B1 [16:01:33]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [16:01:33]wFMCommunicate OK [16:01:33]SAM_PROTO_GetShiftState done [16:01:33]FM_GetShiftState done [16:01:33]opened in 1726359809 [16:01:33]opened+sec_in_day 1726446209 [16:01:33]quantity*price = 9500 [16:01:33]sum+1 = 9501 [16:01:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 90 15.09.2024 16:01 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92642 ФПД: 167402109827182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T160142&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92642&fm=167402109827182&tin=02508201610067®Number=0000000000091423&sum=9500 0 [16:01:34]StoreToDocumentArchive [16:01:34]shift 507 fd 92642 [16:01:34]save to /storage/0507/doc_00092642 [16:01:34]save last doc name /storage/0507/doc_00092642 to /storage/kkm_last_doc_name [16:01:34]save OK [16:01:34]Clear old archive folders... [16:01:34]ProcessDocumentItem done err = 0, tmpTLVsize=304 [16:01:34]tlvbuf is 010E9560 [16:01:34]SAM_PROTO_ClearQueue [16:01:34]wFMCommunicate request_size=4 [16:01:34]MH_SAM_APDU [16:01:34]CAPDU: 80 09 00 00 [16:01:34]Write to MH i2c: E2 08 00 66 59 80 09 00 00 00 00 00 00 31 [16:01:34]Write i2c OK [16:01:34]MH_I2C_Read... [16:01:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:34]Read from MH i2c: E2 [16:01:34]MH_I2C_Read... [16:01:34]Read from MH i2c: E2 03 00 [16:01:34]MH_I2C_Read... [16:01:34]Read from MH i2c: E2 03 00 66 59 00 90 00 33 [16:01:34]RAPDU: 90 00 [16:01:34]wFMCommunicate OK [16:01:34]SAM_PROTO_ClearQueue done [16:01:34]KKMCreateOFDPacket [16:01:34]OFDProtocolAddRootSTLVToBuf [16:01:34]FM_MakeSignedData [16:01:34]FM_MakeSignedData [16:01:34]SAM_PROTO_SignData [16:01:34]wFMCommunicate request_size=4 [16:01:34]MH_SAM_APDU [16:01:34]CAPDU: 80 0D 01 02 [16:01:34]Write to MH i2c: E2 08 00 67 59 80 0D 01 02 00 00 00 00 39 [16:01:34]Write i2c OK [16:01:34]MH_I2C_Read... [16:01:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:34]Read from MH i2c: E2 [16:01:34]MH_I2C_Read... [16:01:34]Read from MH i2c: E2 03 00 [16:01:34]MH_I2C_Read... [16:01:34]Read from MH i2c: E2 03 00 67 59 00 90 00 34 [16:01:34]RAPDU: 90 00 [16:01:34]wFMCommunicate OK [16:01:34]wFMCommunicate request_size=255 [16:01:34]MH_SAM_APDU [16:01:34]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 E6 04 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 [16:01:34]Write to MH i2c: E2 02 01 68 59 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 E6 04 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 00 00 0C [16:01:34]Write i2c OK [16:01:34]MH_I2C_Read... [16:01:35]Read from MH i2c: E2 [16:01:35]MH_I2C_Read... [16:01:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:35]Read from MH i2c: E2 03 00 [16:01:35]MH_I2C_Read... [16:01:35]Read from MH i2c: E2 03 00 68 59 00 90 00 35 [16:01:35]RAPDU: 90 00 [16:01:35]wFMCommunicate OK [16:01:35]wFMCommunicate request_size=63 [16:01:35]MH_SAM_APDU [16:01:35]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E2 69 01 00 35 04 06 00 98 40 57 4A 78 6E [16:01:35]Write to MH i2c: E2 42 00 69 59 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E2 69 01 00 35 04 06 00 98 40 57 4A 78 6E 00 00 2F [16:01:35]Write i2c OK [16:01:35]MH_I2C_Read... [16:01:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:35]Read from MH i2c: E2 [16:01:35]MH_I2C_Read... [16:01:35]Read from MH i2c: E2 03 00 [16:01:35]MH_I2C_Read... [16:01:35]Read from MH i2c: E2 03 00 69 59 00 90 00 36 [16:01:35]RAPDU: 90 00 [16:01:35]wFMCommunicate OK [16:01:35]wFMCommunicate request_size=4 [16:01:35]MH_SAM_APDU [16:01:35]CAPDU: 80 0D 03 02 [16:01:35]Write to MH i2c: E2 08 00 6A 59 80 0D 03 02 00 00 00 00 3E [16:01:35]Write i2c OK [16:01:35]MH_I2C_Read... [16:01:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:35]Read from MH i2c: E2 [16:01:35]MH_I2C_Read... [16:01:35]Read from MH i2c: E2 0B 00 [16:01:35]MH_I2C_Read... [16:01:35]Read from MH i2c: E2 0B 00 6A 59 00 45 7D 47 03 7A 84 BE 43 90 00 4A [16:01:35]RAPDU: 45 7D 47 03 7A 84 BE 43 90 00 [16:01:35]wFMCommunicate OK [16:01:35]SAM_PROTO_SignData done [16:01:35]FM_MakeSignedData done [16:01:35]CreateOFDProtocolMessage [16:01:35]wFMCommunicate request_size=4 [16:01:35]MH_SAM_APDU [16:01:35]CAPDU: 80 11 00 00 [16:01:35]Write to MH i2c: E2 08 00 6B 59 80 11 00 00 00 00 00 00 3E [16:01:35]Write i2c OK [16:01:35]MH_I2C_Read... [16:01:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:35]Read from MH i2c: E2 [16:01:35]MH_I2C_Read... [16:01:35]Read from MH i2c: E2 17 00 [16:01:35]MH_I2C_Read... [16:01:35]Read from MH i2c: E2 17 00 6B 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 95 [16:01:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:01:35]wFMCommunicate OK [16:01:35]CreateOFDProtocolMessage done [16:01:35]OFDSenderStorePacket 92642 [16:01:35]StoreOFDPacket docnum=92642 [16:01:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 44 01 00 00 0B D9 3C 01 84 E4 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 E6 04 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E2 69 01 00 35 04 06 00 98 40 57 4A 78 6E 45 7D 47 03 7A 84 BE 43 [16:01:35]CheckFolder [16:01:35]dirname=/storage/ofd_packets [16:01:35]CheckFolder done [16:01:35]ProducePacketName [16:01:35]name=ofd_packets/00092642 [16:01:35]NVStorageSaveData ofd_packets/00092642 [16:01:35]File name is /storage/ofd_packets/00092642 [16:01:35]Write 354 bytes [16:01:35]NVStorageSaveData done [16:01:35]OFDSenderStorePacket done [16:01:35]KKMCreateOFDPacket done [16:01:35]NVStorageSaveData kkm_last_timestamp [16:01:35]File name is /storage/kkm_last_timestamp [16:01:35]Write 4 bytes [16:01:35]NVStorageSaveData done [16:01:35]ExternCall_PrintAddStr [16:01:35]wPrintStart [16:01:35]Write to MH i2c: 01 00 00 6C 59 C5 [16:01:35]Write i2c OK [16:01:35]MH_I2C_Read... [16:01:35]Read from MH i2c: 01 [16:01:35]MH_I2C_Read... [16:01:35]Read from MH i2c: 01 07 00 [16:01:35]MH_I2C_Read... [16:01:35]Read from MH i2c: 01 07 00 6C 59 00 00 00 00 00 FF 0F DA [16:01:35]RasterBufferAndPrint [16:01:35]line Счет N : (3)127531 [16:01:35]line ИНН: 02508201610067 [16:01:35]line Контрольно-Кассовый Чек [16:01:35]line ПРОДАЖА [16:01:35]line Товар: 4700000480302 [16:01:35]line Напиток энерг Nitro манго-клуб 0.45 ж/б [16:01:35]line 1.000 * 95.00 [16:01:35]line = 95.00 [16:01:35]line НДС 12% НСП 1% [16:01:35]line > о реализуемом товаре [16:01:35]line ИТОГО: 95.00 [16:01:35]line НСП 1% : 0.84 [16:01:35]line НДС 12% : 10.09 [16:01:35]line Наличными: 95.00 [16:01:35]line Безнал.: 0.00 [16:01:35]line Место: АЗС № 5 "Партнер Нефть" [16:01:35]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [16:01:35]line СНО: Общий режим [16:01:35]line Чек 90 15.09.2024 16:01 [16:01:35]line Смена: 507 ФФД: 1.0 [16:01:35]line ЗНМ: 03000000022 [16:01:35]line РНМ: 0000000000091423 [16:01:35]line Версия ККМ: 001 [16:01:35]line ФМ: 0000000000874692 [16:01:35]line ФД: 92642 [16:01:35]line ФПД: 167402109827182 [16:01:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T160142&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92642&fm=167402109827182&tin=02508201610067®Number=0000000000091423&sum=9500 [16:01:35]OFD Sender: Processing packet 92642 [packets to send 63, broken 62] [16:01:35]ProducePacketName [16:01:35]name=ofd_packets/00092642 [16:01:35]OFD Sender: To server: pG, [16:01:35]CommunicateWithHost lk.salyk.kg:30040 [16:01:35]ConnectInit lk.salyk.kg [16:01:35]line 0 [16:01:35]written 0, free lines is 4095 [16:01:35]Connected sock=9 [16:01:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 44 01 00 00 0B D9 3C 01 84 E4 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 E6 04 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E2 69 01 00 35 04 06 00 98 40 57 4A 78 6E 45 7D 47 03 7A 84 BE 43 [16:01:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 E2 6A 47 00 E4 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E2 69 01 00 F4 03 04 00 5E AD E6 66 B6 04 01 00 00 42 76 DD 3F 18 60 A6 A0 [16:01:35]CommunicateWithHost err = 0 [16:01:35]CheckOFDResponse [16:01:35]1017 (14) - 77093643461234 [16:01:35]1041 (16) - 0000000000874692 [16:01:35]1040 (4) - 92642 [16:01:35]1012 (4) - 15.09.2024 09:48 [16:01:35]1206 (1) - 0 [16:01:35]OFD Sender: Remove packet 92642 [16:01:35]ProducePacketName [16:01:35]name=ofd_packets/00092642 [16:01:35]NVStorageDeleteData [16:01:36]Write to MH i2c: 01 00 00 95 59 EE [16:01:36]Write i2c OK [16:01:36]MH_I2C_Read... [16:01:36]Read from MH i2c: 01 [16:01:36]MH_I2C_Read... [16:01:36]Read from MH i2c: 01 07 00 [16:01:36]MH_I2C_Read... [16:01:36]Read from MH i2c: 01 07 00 95 59 00 00 00 00 00 13 0D 15 [16:01:36]RasterBufferAndPrint [16:01:36]line [16:01:36]line [16:01:36]line [16:01:36]line [16:01:36]line [16:01:36]written 0, free lines is 3353 [16:01:36]MH_Cut [16:01:36]Write to MH i2c: D1 01 00 9C 59 01 C7 [16:01:36]Write i2c OK [16:01:36]MH_I2C_Read... [16:01:36]Read from MH i2c: D1 [16:01:36]MH_I2C_Read... [16:01:36]Read from MH i2c: D1 01 00 [16:01:36]MH_I2C_Read... [16:01:36]Read from MH i2c: D1 01 00 9C 59 00 C6 [16:01:36]Write to MH i2c: 01 00 00 9D 59 F6 [16:01:36]Write i2c OK [16:01:36]MH_I2C_Read... [16:01:36]OFD Sender: No OFD packet to send [16:01:36]*** Cut start [16:01:36]*** Purtial cut [16:01:36]*** Stage 1: CUTSNS_PIN = 1 [16:01:38]Read from MH i2c: 01 [16:01:38]MH_I2C_Read... [16:01:38]*** Stop cut motor [16:01:38]*** Cut end [16:01:38]Read from MH i2c: 01 07 00 [16:01:38]MH_I2C_Read... [16:01:38]Read from MH i2c: 01 07 00 9D 59 00 00 00 00 00 FF 0F 0B [16:01:38]process_action close_receipt done [16:01:38]requested_data is exist [16:01:38]produce_requested_data [16:01:38]requested_item fm.sn is exist - process it [16:01:38]wFMCommunicate request_size=4 [16:01:38]MH_SAM_APDU [16:01:38]CAPDU: 80 11 00 00 [16:01:38]Write to MH i2c: E2 08 00 9E 59 80 11 00 00 00 00 00 00 71 [16:01:38]Write i2c OK [16:01:38]MH_I2C_Read... [16:01:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:38]Read from MH i2c: E2 [16:01:38]MH_I2C_Read... [16:01:38]Read from MH i2c: E2 17 00 [16:01:38]MH_I2C_Read... [16:01:38]Read from MH i2c: E2 17 00 9E 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C8 [16:01:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:01:38]wFMCommunicate OK [16:01:38]requested_item fd.num is exist - process it [16:01:38]SAM_PROTO_GetFieldsCounters [16:01:38]wFMCommunicate request_size=4 [16:01:38]MH_SAM_APDU [16:01:38]CAPDU: 80 13 00 00 [16:01:38]Write to MH i2c: E2 08 00 9F 59 80 13 00 00 00 00 00 00 74 [16:01:38]Write i2c OK [16:01:38]MH_I2C_Read... [16:01:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:38]Read from MH i2c: E2 [16:01:38]MH_I2C_Read... [16:01:38]Read from MH i2c: E2 62 00 [16:01:38]MH_I2C_Read... [16:01:38]Read from MH i2c: E2 62 00 9F 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E2 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [16:01:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E2 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:01:38]wFMCommunicate OK [16:01:38]SAM_PROTO_GetFieldsCounters done [16:01:38]requested_item shift.num is exist - process it [16:01:38]requested_item shift.opened is exist - process it [16:01:38]req_shift_opened [16:01:38]FM_GetShiftState [16:01:38]SAM_PROTO_GetShiftState [16:01:38]wFMCommunicate request_size=4 [16:01:38]MH_SAM_APDU [16:01:38]CAPDU: 80 13 01 00 [16:01:38]Write to MH i2c: E2 08 00 A0 59 80 13 01 00 00 00 00 00 76 [16:01:38]Write i2c OK [16:01:38]MH_I2C_Read... [16:01:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:38]Read from MH i2c: E2 [16:01:38]MH_I2C_Read... [16:01:38]Read from MH i2c: E2 0E 00 [16:01:38]MH_I2C_Read... [16:01:38]Read from MH i2c: E2 0E 00 A0 59 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 F8 [16:01:38]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [16:01:38]wFMCommunicate OK [16:01:38]SAM_PROTO_GetShiftState done [16:01:38]FM_GetShiftState done [16:01:38]req_shift_opened done [16:01:38]requested_item shift.open_date is exist - process it [16:01:38]req_shift_open_date [16:01:38]req_shift_open_date done [16:01:38]produce_requested_data done [16:01:38]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92642,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [16:01:38]process_action_free close_receipt [16:01:38]json_value_free [16:01:38]json_value_free done [16:01:38]process_json_proto returns [16:01:38]Send response to host [16:01:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92642,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [16:01:38]free response buf [16:01:38]execute_script done [16:01:38]execute_script returns [16:01:38]free content buf [16:01:38]Sock 10.Close socket [16:01:38]Sock 10.Thread stoped [16:01:41]OFD Sender: No OFD packet to send [16:01:46]OFD Sender: No OFD packet to send [16:01:51]OFD Sender: No OFD packet to send [16:01:56]OFD Sender: No OFD packet to send [16:02:01]OFD Sender: No OFD packet to send [16:02:06]OFD Sender: No OFD packet to send [16:02:11]OFD Sender: No OFD packet to send [16:02:16]OFD Sender: No OFD packet to send [16:02:21]OFD Sender: No OFD packet to send [16:02:26]OFD Sender: No OFD packet to send [16:02:31]OFD Sender: No OFD packet to send [16:02:36]OFD Sender: No OFD packet to send [16:02:41]OFD Sender: No OFD packet to send [16:02:46]OFD Sender: No OFD packet to send [16:02:51]OFD Sender: No OFD packet to send [16:02:56]OFD Sender: No OFD packet to send [16:03:01]OFD Sender: No OFD packet to send [16:03:06]OFD Sender: No OFD packet to send [16:03:11]OFD Sender: No OFD packet to send [16:03:16]OFD Sender: No OFD packet to send [16:03:21]OFD Sender: No OFD packet to send [16:03:26]OFD Sender: No OFD packet to send [16:03:31]OFD Sender: No OFD packet to send [16:03:36]OFD Sender: No OFD packet to send [16:03:41]OFD Sender: No OFD packet to send [16:03:46]OFD Sender: No OFD packet to send [16:03:51]OFD Sender: No OFD packet to send [16:03:56]OFD Sender: No OFD packet to send [16:04:01]OFD Sender: No OFD packet to send [16:04:06]OFD Sender: No OFD packet to send [16:04:11]OFD Sender: No OFD packet to send [16:04:16]OFD Sender: No OFD packet to send [16:04:21]OFD Sender: No OFD packet to send [16:04:26]OFD Sender: No OFD packet to send [16:04:31]OFD Sender: No OFD packet to send [16:04:36]OFD Sender: No OFD packet to send [16:04:41]OFD Sender: No OFD packet to send [16:04:46]OFD Sender: No OFD packet to send [16:04:51]OFD Sender: No OFD packet to send [16:04:56]OFD Sender: No OFD packet to send [16:05:01]OFD Sender: No OFD packet to send [16:05:06]OFD Sender: No OFD packet to send [16:05:11]OFD Sender: No OFD packet to send [16:05:16]OFD Sender: No OFD packet to send [16:05:21]OFD Sender: No OFD packet to send [16:05:26]OFD Sender: No OFD packet to send [16:05:31]OFD Sender: No OFD packet to send [16:05:36]OFD Sender: No OFD packet to send [16:05:41]OFD Sender: No OFD packet to send [16:05:46]OFD Sender: No OFD packet to send [16:05:51]OFD Sender: No OFD packet to send [16:05:56]OFD Sender: No OFD packet to send [16:06:00]accept exits with 8 [16:06:00]New connection [16:06:00]New thread 3066801508 created [16:06:00]Thread 3066658148 joined [16:06:00]Waiting for new connection... [16:06:00] Sock 8.Parse request [16:06:00]Sock 8.Check first char [16:06:00]Sock 8.First char is OK [16:06:00]request: POST /json_proto HTTP/1.0 [16:06:00]Method: POST [16:06:00]URL: /json_proto [16:06:00]Method is POST - this is cgi request [16:06:00]url: /json_proto [16:06:00]query_string will be loaded in cgi processing [16:06:00]execute_cgi json_proto POST (null) [16:06:00]execute_cgi path=json_proto method=POST [16:06:00]POST find Content-Length [16:06:00]Host: 172.17.57.71:8080 [16:06:00]Content-Length: 865 [16:06:00]Content-Type: application/json [16:06:00] [16:06:00]POST finish read [16:06:00]Found Content-Length = 865 [16:06:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127532", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 2.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 235.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:00]execute_script... [16:06:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127532", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 2.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 235.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:00]POST & json_proto [16:06:00]process_json_proto [16:06:00]json parsed OK: [16:06:00]protocol is kg_v1.0 [16:06:00]action value=close_receipt [16:06:00]process_action close_receipt [16:06:00]cmd_close_receipt [16:06:00]MH_GetDate [16:06:00]Write to MH i2c: F0 00 00 A1 59 E9 [16:06:00]Write i2c OK [16:06:00]MH_I2C_Read... [16:06:00]Read from MH i2c: F0 [16:06:00]MH_I2C_Read... [16:06:00]Read from MH i2c: F0 09 00 [16:06:00]MH_I2C_Read... [16:06:00]Read from MH i2c: F0 09 00 A1 59 00 F1 05 E7 66 33 3A A4 66 AC [16:06:00]GetLastDocTimeStamp 1726416102 [16:06:00]current date 1726416369 [16:06:00]FM_GetShiftState [16:06:00]SAM_PROTO_GetShiftState [16:06:00]wFMCommunicate request_size=4 [16:06:00]MH_SAM_APDU [16:06:00]CAPDU: 80 13 01 00 [16:06:00]Write to MH i2c: E2 08 00 A2 59 80 13 01 00 00 00 00 00 78 [16:06:00]Write i2c OK [16:06:00]MH_I2C_Read... [16:06:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:00]Read from MH i2c: E2 [16:06:00]MH_I2C_Read... [16:06:00]Read from MH i2c: E2 0E 00 [16:06:00]MH_I2C_Read... [16:06:00]Read from MH i2c: E2 0E 00 A2 59 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 FA [16:06:00]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [16:06:00]wFMCommunicate OK [16:06:00]SAM_PROTO_GetShiftState done [16:06:00]FM_GetShiftState done [16:06:00]opened in 1726359809 [16:06:00]opened+sec_in_day 1726446209 [16:06:00]quantity*price = 7500 [16:06:00]sum+1 = 7501 [16:06:00]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570057 Напиток Pepsi 0,5л 2.000 * 80.00 = 160.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 235.00 НСП 1% : 2.08 НДС 12% : 24.95 Наличными: 235.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 91 15.09.2024 16:06 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92643 ФПД: 15559321971603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T160610&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92643&fm=15559321971603&tin=02508201610067®Number=0000000000091423&sum=23500 0 [16:06:01]StoreToDocumentArchive [16:06:01]shift 507 fd 92643 [16:06:01]save to /storage/0507/doc_00092643 [16:06:01]save last doc name /storage/0507/doc_00092643 to /storage/kkm_last_doc_name [16:06:01]save OK [16:06:01]Clear old archive folders... [16:06:01]ProcessDocumentItem done err = 0, tmpTLVsize=366 [16:06:01]tlvbuf is 010E92D0 [16:06:01]SAM_PROTO_ClearQueue [16:06:01]wFMCommunicate request_size=4 [16:06:01]MH_SAM_APDU [16:06:01]CAPDU: 80 09 00 00 [16:06:01]Write to MH i2c: E2 08 00 AF 59 80 09 00 00 00 00 00 00 7A [16:06:01]Write i2c OK [16:06:01]MH_I2C_Read... [16:06:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:01]Read from MH i2c: E2 [16:06:01]MH_I2C_Read... [16:06:01]Read from MH i2c: E2 03 00 [16:06:01]MH_I2C_Read... [16:06:01]Read from MH i2c: E2 03 00 AF 59 00 90 00 7C [16:06:01]RAPDU: 90 00 [16:06:01]wFMCommunicate OK [16:06:01]SAM_PROTO_ClearQueue done [16:06:01]KKMCreateOFDPacket [16:06:01]OFDProtocolAddRootSTLVToBuf [16:06:01]FM_MakeSignedData [16:06:01]FM_MakeSignedData [16:06:01]SAM_PROTO_SignData [16:06:01]wFMCommunicate request_size=4 [16:06:01]MH_SAM_APDU [16:06:01]CAPDU: 80 0D 01 02 [16:06:01]Write to MH i2c: E2 08 00 B0 59 80 0D 01 02 00 00 00 00 82 [16:06:01]Write i2c OK [16:06:01]MH_I2C_Read... [16:06:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:01]Read from MH i2c: E2 [16:06:01]MH_I2C_Read... [16:06:01]Read from MH i2c: E2 03 00 [16:06:01]MH_I2C_Read... [16:06:01]Read from MH i2c: E2 03 00 B0 59 00 90 00 7D [16:06:01]RAPDU: 90 00 [16:06:01]wFMCommunicate OK [16:06:01]wFMCommunicate request_size=255 [16:06:01]MH_SAM_APDU [16:06:01]CAPDU: 80 0D 02 02 FA 03 00 6E 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 [16:06:01]Write to MH i2c: E2 02 01 B1 59 80 0D 02 02 FA 00 03 00 6E 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 B0 [16:06:01]Write i2c OK [16:06:01]MH_I2C_Read... [16:06:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:02]Read from MH i2c: E2 [16:06:02]MH_I2C_Read... [16:06:02]Read from MH i2c: E2 03 00 [16:06:02]MH_I2C_Read... [16:06:02]Read from MH i2c: E2 03 00 B1 59 00 90 00 7E [16:06:02]RAPDU: 90 00 [16:06:02]wFMCommunicate OK [16:06:02]wFMCommunicate request_size=125 [16:06:02]MH_SAM_APDU [16:06:02]CAPDU: 80 0D 02 02 78 00 BF 09 00 00 00 00 07 04 06 00 CC 5B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 F2 05 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E3 69 01 00 35 04 06 00 0E 26 AF DB EB 93 [16:06:02]Write to MH i2c: E2 80 00 B2 59 80 0D 02 02 78 00 00 BF 09 00 00 00 00 07 04 06 00 CC 5B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 F2 05 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E3 69 01 00 35 04 06 00 0E 26 AF DB EB 93 00 00 C0 [16:06:02]Write i2c OK [16:06:02]MH_I2C_Read... [16:06:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:02]Read from MH i2c: E2 [16:06:02]MH_I2C_Read... [16:06:02]Read from MH i2c: E2 03 00 [16:06:02]MH_I2C_Read... [16:06:02]Read from MH i2c: E2 03 00 B2 59 00 90 00 7F [16:06:02]RAPDU: 90 00 [16:06:02]wFMCommunicate OK [16:06:02]wFMCommunicate request_size=4 [16:06:02]MH_SAM_APDU [16:06:02]CAPDU: 80 0D 03 02 [16:06:02]Write to MH i2c: E2 08 00 B3 59 80 0D 03 02 00 00 00 00 87 [16:06:02]Write i2c OK [16:06:02]MH_I2C_Read... [16:06:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:02]Read from MH i2c: E2 [16:06:02]MH_I2C_Read... [16:06:02]Read from MH i2c: E2 0B 00 [16:06:02]MH_I2C_Read... [16:06:02]Read from MH i2c: E2 0B 00 B3 59 00 EC 66 6E E4 AB 8B 00 C2 90 00 24 [16:06:02]RAPDU: EC 66 6E E4 AB 8B 00 C2 90 00 [16:06:02]wFMCommunicate OK [16:06:02]SAM_PROTO_SignData done [16:06:02]FM_MakeSignedData done [16:06:02]CreateOFDProtocolMessage [16:06:02]wFMCommunicate request_size=4 [16:06:02]MH_SAM_APDU [16:06:02]CAPDU: 80 11 00 00 [16:06:02]Write to MH i2c: E2 08 00 B4 59 80 11 00 00 00 00 00 00 87 [16:06:02]Write i2c OK [16:06:02]MH_I2C_Read... [16:06:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:02]Read from MH i2c: E2 [16:06:02]MH_I2C_Read... [16:06:02]Read from MH i2c: E2 17 00 [16:06:02]MH_I2C_Read... [16:06:02]Read from MH i2c: E2 17 00 B4 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 DE [16:06:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:06:02]wFMCommunicate OK [16:06:02]CreateOFDProtocolMessage done [16:06:02]OFDSenderStorePacket 92643 [16:06:02]StoreOFDPacket docnum=92643 [16:06:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 82 01 00 00 6C C5 7A 01 64 D3 5A 03 01 00 03 00 6E 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 09 00 00 00 00 07 04 06 00 CC 5B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 F2 05 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E3 69 01 00 35 04 06 00 0E 26 AF DB EB 93 EC 66 6E E4 AB 8B 00 C2 [16:06:02]CheckFolder [16:06:02]dirname=/storage/ofd_packets [16:06:02]CheckFolder done [16:06:02]ProducePacketName [16:06:02]name=ofd_packets/00092643 [16:06:02]NVStorageSaveData ofd_packets/00092643 [16:06:02]File name is /storage/ofd_packets/00092643 [16:06:02]Write 416 bytes [16:06:02]NVStorageSaveData done [16:06:02]OFDSenderStorePacket done [16:06:02]KKMCreateOFDPacket done [16:06:02]NVStorageSaveData kkm_last_timestamp [16:06:02]File name is /storage/kkm_last_timestamp [16:06:02]Write 4 bytes [16:06:02]NVStorageSaveData done [16:06:02]ExternCall_PrintAddStr [16:06:02]wPrintStart [16:06:02]Write to MH i2c: 01 00 00 B5 59 0E [16:06:02]Write i2c OK [16:06:02]MH_I2C_Read... [16:06:02]Read from MH i2c: 01 [16:06:02]MH_I2C_Read... [16:06:02]Read from MH i2c: 01 07 00 [16:06:02]MH_I2C_Read... [16:06:02]Read from MH i2c: 01 07 00 B5 59 00 00 00 00 00 FF 0F 23 [16:06:02]RasterBufferAndPrint [16:06:02]line Счет N : (3)127532 [16:06:02]line ИНН: 02508201610067 [16:06:02]line Контрольно-Кассовый Чек [16:06:02]line ПРОДАЖА [16:06:02]line Товар: 40822938 [16:06:02]line Напиток Фанта 0,5л [16:06:02]line 1.000 * 75.00 [16:06:02]line = 75.00 [16:06:02]line НДС 12% НСП 1% [16:06:02]line > о реализуемом товаре [16:06:02]line Товар: 4870001570057 [16:06:02]line Напиток Pepsi 0,5л [16:06:02]line 2.000 * 80.00 [16:06:02]line = 160.00 [16:06:02]line НДС 12% НСП 1% [16:06:02]line > о реализуемом товаре [16:06:02]line ИТОГО: 235.00 [16:06:02]line НСП 1% : 2.08 [16:06:02]line НДС 12% : 24.95 [16:06:02]line Наличными: 235.00 [16:06:02]line Безнал.: 0.00 [16:06:02]line Место: АЗС № 5 "Партнер Нефть" [16:06:02]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [16:06:02]line СНО: Общий режим [16:06:02]line Чек 91 15.09.2024 16:06 [16:06:02]line Смена: 507 ФФД: 1.0 [16:06:02]line ЗНМ: 03000000022 [16:06:02]line РНМ: 0000000000091423 [16:06:02]line Версия ККМ: 001 [16:06:02]line ФМ: 0000000000874692 [16:06:02]line ФД: 92643 [16:06:02]line ФПД: 15559321971603 [16:06:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T160610&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92643&fm=15559321971603&tin=02508201610067®Number=0000000000091423&sum=23500 [16:06:02]line 0 [16:06:02]OFD Sender: Processing packet 92643 [packets to send 63, broken 62] [16:06:02]ProducePacketName [16:06:02]name=ofd_packets/00092643 [16:06:02]OFD Sender: To server: pG, [16:06:02]CommunicateWithHost lk.salyk.kg:30040 [16:06:02]ConnectInit lk.salyk.kg [16:06:02]written 0, free lines is 4095 [16:06:02]Connected sock=10 [16:06:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 82 01 00 00 6C C5 7A 01 64 D3 5A 03 01 00 03 00 6E 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 09 00 00 00 00 07 04 06 00 CC 5B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 F2 05 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E3 69 01 00 35 04 06 00 0E 26 AF DB EB 93 EC 66 6E E4 AB 8B 00 C2 [16:06:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 60 EB 47 00 3F CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E3 69 01 00 F4 03 04 00 69 AE E6 66 B6 04 01 00 00 18 A0 82 4B 6D AA 39 B9 [16:06:03]CommunicateWithHost err = 0 [16:06:03]CheckOFDResponse [16:06:03]1017 (14) - 77093643461234 [16:06:03]1041 (16) - 0000000000874692 [16:06:03]1040 (4) - 92643 [16:06:03]1012 (4) - 15.09.2024 09:52 [16:06:03]1206 (1) - 0 [16:06:03]OFD Sender: Remove packet 92643 [16:06:03]ProducePacketName [16:06:03]name=ofd_packets/00092643 [16:06:03]NVStorageDeleteData [16:06:03]Write to MH i2c: 01 00 00 E3 59 3C [16:06:03]Write i2c OK [16:06:03]MH_I2C_Read... [16:06:03]Read from MH i2c: 01 [16:06:03]MH_I2C_Read... [16:06:03]Read from MH i2c: 01 07 00 [16:06:03]MH_I2C_Read... [16:06:03]Read from MH i2c: 01 07 00 E3 59 00 00 00 00 00 DE 0C 2D [16:06:03]RasterBufferAndPrint [16:06:03]line [16:06:03]line [16:06:03]line [16:06:03]line [16:06:03]line [16:06:03]written 0, free lines is 3302 [16:06:03]MH_Cut [16:06:03]Write to MH i2c: D1 01 00 EA 59 01 15 [16:06:03]Write i2c OK [16:06:03]MH_I2C_Read... [16:06:03]Read from MH i2c: D1 [16:06:03]MH_I2C_Read... [16:06:03]Read from MH i2c: D1 01 00 [16:06:03]MH_I2C_Read... [16:06:03]Read from MH i2c: D1 01 00 EA 59 00 14 [16:06:03]Write to MH i2c: 01 00 00 EB 59 44 [16:06:03]Write i2c OK [16:06:03]MH_I2C_Read... [16:06:03]OFD Sender: No OFD packet to send [16:06:03]*** Cut start [16:06:03]*** Purtial cut [16:06:03]*** Stage 1: CUTSNS_PIN = 1 [16:06:05]Read from MH i2c: 01 [16:06:05]MH_I2C_Read... [16:06:05]*** Stop cut motor [16:06:05]*** Cut end [16:06:05]Read from MH i2c: 01 07 00 [16:06:05]MH_I2C_Read... [16:06:05]Read from MH i2c: 01 07 00 EB 59 00 00 00 00 00 FF 0F 59 [16:06:05]process_action close_receipt done [16:06:05]requested_data is exist [16:06:05]produce_requested_data [16:06:05]requested_item fm.sn is exist - process it [16:06:05]wFMCommunicate request_size=4 [16:06:05]MH_SAM_APDU [16:06:05]CAPDU: 80 11 00 00 [16:06:05]Write to MH i2c: E2 08 00 EC 59 80 11 00 00 00 00 00 00 BF [16:06:05]Write i2c OK [16:06:05]MH_I2C_Read... [16:06:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:06]Read from MH i2c: E2 [16:06:06]MH_I2C_Read... [16:06:06]Read from MH i2c: E2 17 00 [16:06:06]MH_I2C_Read... [16:06:06]Read from MH i2c: E2 17 00 EC 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 16 [16:06:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:06:06]wFMCommunicate OK [16:06:06]requested_item fd.num is exist - process it [16:06:06]SAM_PROTO_GetFieldsCounters [16:06:06]wFMCommunicate request_size=4 [16:06:06]MH_SAM_APDU [16:06:06]CAPDU: 80 13 00 00 [16:06:06]Write to MH i2c: E2 08 00 ED 59 80 13 00 00 00 00 00 00 C2 [16:06:06]Write i2c OK [16:06:06]MH_I2C_Read... [16:06:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:06]Read from MH i2c: E2 [16:06:06]MH_I2C_Read... [16:06:06]Read from MH i2c: E2 62 00 [16:06:06]MH_I2C_Read... [16:06:06]Read from MH i2c: E2 62 00 ED 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E3 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [16:06:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E3 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:06:06]wFMCommunicate OK [16:06:06]SAM_PROTO_GetFieldsCounters done [16:06:06]requested_item shift.num is exist - process it [16:06:06]requested_item shift.opened is exist - process it [16:06:06]req_shift_opened [16:06:06]FM_GetShiftState [16:06:06]SAM_PROTO_GetShiftState [16:06:06]wFMCommunicate request_size=4 [16:06:06]MH_SAM_APDU [16:06:06]CAPDU: 80 13 01 00 [16:06:06]Write to MH i2c: E2 08 00 EE 59 80 13 01 00 00 00 00 00 C4 [16:06:06]Write i2c OK [16:06:06]MH_I2C_Read... [16:06:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:06]Read from MH i2c: E2 [16:06:06]MH_I2C_Read... [16:06:06]Read from MH i2c: E2 0E 00 [16:06:06]MH_I2C_Read... [16:06:06]Read from MH i2c: E2 0E 00 EE 59 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 46 [16:06:06]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [16:06:06]wFMCommunicate OK [16:06:06]SAM_PROTO_GetShiftState done [16:06:06]FM_GetShiftState done [16:06:06]req_shift_opened done [16:06:06]requested_item shift.open_date is exist - process it [16:06:06]req_shift_open_date [16:06:06]req_shift_open_date done [16:06:06]produce_requested_data done [16:06:06]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92643,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [16:06:06]process_action_free close_receipt [16:06:06]json_value_free [16:06:06]json_value_free done [16:06:06]process_json_proto returns [16:06:06]Send response to host [16:06:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92643,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [16:06:06]free response buf [16:06:06]execute_script done [16:06:06]execute_script returns [16:06:06]free content buf [16:06:06]Sock 8.Close socket [16:06:06]Sock 8.Thread stoped [16:06:08]OFD Sender: No OFD packet to send [16:06:13]OFD Sender: No OFD packet to send [16:06:18]OFD Sender: No OFD packet to send [16:06:23]OFD Sender: No OFD packet to send [16:06:28]OFD Sender: No OFD packet to send [16:06:33]OFD Sender: No OFD packet to send [16:06:38]OFD Sender: No OFD packet to send [16:06:43]OFD Sender: No OFD packet to send [16:06:46]accept exits with 9 [16:06:46]New connection [16:06:46]New thread 3066658148 created [16:06:46]Thread 3066801508 joined [16:06:46]Waiting for new connection... [16:06:46] Sock 9.Parse request [16:06:46]Sock 9.Check first char [16:06:46]Sock 9.First char is OK [16:06:46]request: POST /json_proto HTTP/1.0 [16:06:46]Method: POST [16:06:46]URL: /json_proto [16:06:46]Method is POST - this is cgi request [16:06:46]url: /json_proto [16:06:46]query_string will be loaded in cgi processing [16:06:46]execute_cgi json_proto POST (null) [16:06:46]execute_cgi path=json_proto method=POST [16:06:46]POST find Content-Length [16:06:46]Host: 172.17.57.71:8080 [16:06:46]Content-Length: 919 [16:06:46]Content-Type: application/json [16:06:46] [16:06:46]POST finish read [16:06:46]Found Content-Length = 919 [16:06:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127533", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000790", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:46]execute_script... [16:06:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127533", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000790", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:46]POST & json_proto [16:06:46]process_json_proto [16:06:46]json parsed OK: [16:06:46]protocol is kg_v1.0 [16:06:46]action value=close_receipt [16:06:46]process_action close_receipt [16:06:46]cmd_close_receipt [16:06:46]MH_GetDate [16:06:46]Write to MH i2c: F0 00 00 EF 59 37 [16:06:46]Write i2c OK [16:06:46]MH_I2C_Read... [16:06:46]Read from MH i2c: F0 [16:06:46]MH_I2C_Read... [16:06:46]Read from MH i2c: F0 09 00 [16:06:46]MH_I2C_Read... [16:06:46]Read from MH i2c: F0 09 00 EF 59 00 1F 06 E7 66 33 3A A4 66 29 [16:06:46]GetLastDocTimeStamp 1726416370 [16:06:46]current date 1726416415 [16:06:46]FM_GetShiftState [16:06:46]SAM_PROTO_GetShiftState [16:06:46]wFMCommunicate request_size=4 [16:06:46]MH_SAM_APDU [16:06:46]CAPDU: 80 13 01 00 [16:06:46]Write to MH i2c: E2 08 00 F0 59 80 13 01 00 00 00 00 00 C6 [16:06:46]Write i2c OK [16:06:46]MH_I2C_Read... [16:06:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:46]Read from MH i2c: E2 [16:06:46]MH_I2C_Read... [16:06:46]Read from MH i2c: E2 0E 00 [16:06:46]MH_I2C_Read... [16:06:46]Read from MH i2c: E2 0E 00 F0 59 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 48 [16:06:46]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [16:06:46]wFMCommunicate OK [16:06:46]SAM_PROTO_GetShiftState done [16:06:46]FM_GetShiftState done [16:06:46]opened in 1726359809 [16:06:46]opened+sec_in_day 1726446209 [16:06:46]quantity*price = 7500 [16:06:46]sum+1 = 7501 [16:06:46]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607065000790 Шок M&M`s с арахисом 45г 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 145.00 НСП 1% : 1.28 НДС 12% : 15.39 Наличными: 145.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 92 15.09.2024 16:06 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92644 ФПД: 217634013577241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T160656&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92644&fm=217634013577241&tin=02508201610067®Number=0000000000091423&sum=14500 0 [16:06:47]StoreToDocumentArchive [16:06:47]shift 507 fd 92644 [16:06:47]save to /storage/0507/doc_00092644 [16:06:47]save last doc name /storage/0507/doc_00092644 to /storage/kkm_last_doc_name [16:06:47]save OK [16:06:47]Clear old archive folders... [16:06:47]ProcessDocumentItem done err = 0, tmpTLVsize=384 [16:06:47]tlvbuf is 0117A180 [16:06:47]SAM_PROTO_ClearQueue [16:06:47]wFMCommunicate request_size=4 [16:06:47]MH_SAM_APDU [16:06:47]CAPDU: 80 09 00 00 [16:06:47]Write to MH i2c: E2 08 00 FD 59 80 09 00 00 00 00 00 00 C8 [16:06:47]Write i2c OK [16:06:47]MH_I2C_Read... [16:06:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:47]Read from MH i2c: E2 [16:06:47]MH_I2C_Read... [16:06:47]Read from MH i2c: E2 03 00 [16:06:47]MH_I2C_Read... [16:06:47]Read from MH i2c: E2 03 00 FD 59 00 90 00 CA [16:06:47]RAPDU: 90 00 [16:06:47]wFMCommunicate OK [16:06:47]SAM_PROTO_ClearQueue done [16:06:47]KKMCreateOFDPacket [16:06:47]OFDProtocolAddRootSTLVToBuf [16:06:47]FM_MakeSignedData [16:06:47]FM_MakeSignedData [16:06:47]SAM_PROTO_SignData [16:06:47]wFMCommunicate request_size=4 [16:06:47]MH_SAM_APDU [16:06:47]CAPDU: 80 0D 01 02 [16:06:47]Write to MH i2c: E2 08 00 FE 59 80 0D 01 02 00 00 00 00 D0 [16:06:47]Write i2c OK [16:06:47]MH_I2C_Read... [16:06:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:47]Read from MH i2c: E2 [16:06:47]MH_I2C_Read... [16:06:47]Read from MH i2c: E2 03 00 [16:06:47]MH_I2C_Read... [16:06:47]Read from MH i2c: E2 03 00 FE 59 00 90 00 CB [16:06:47]RAPDU: 90 00 [16:06:47]wFMCommunicate OK [16:06:47]wFMCommunicate request_size=255 [16:06:47]MH_SAM_APDU [16:06:47]CAPDU: 80 0D 02 02 FA 03 00 80 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 [16:06:47]Write to MH i2c: E2 02 01 FF 59 80 0D 02 02 FA 00 03 00 80 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 91 [16:06:47]Write i2c OK [16:06:47]MH_I2C_Read... [16:06:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:48]Read from MH i2c: E2 [16:06:48]MH_I2C_Read... [16:06:48]Read from MH i2c: E2 03 00 [16:06:48]MH_I2C_Read... [16:06:48]Read from MH i2c: E2 03 00 FF 59 00 90 00 CC [16:06:48]RAPDU: 90 00 [16:06:48]wFMCommunicate OK [16:06:48]wFMCommunicate request_size=143 [16:06:48]MH_SAM_APDU [16:06:48]CAPDU: 80 0D 02 02 8A 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 20 06 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E4 69 01 00 35 04 06 00 C5 EF DE 12 00 19 [16:06:48]Write to MH i2c: E2 92 00 00 5A 80 0D 02 02 8A 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 20 06 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E4 69 01 00 35 04 06 00 C5 EF DE 12 00 19 00 00 4E [16:06:48]Write i2c OK [16:06:48]MH_I2C_Read... [16:06:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:48]Read from MH i2c: E2 [16:06:48]MH_I2C_Read... [16:06:48]Read from MH i2c: E2 03 00 [16:06:48]MH_I2C_Read... [16:06:48]Read from MH i2c: E2 03 00 00 5A 00 90 00 CE [16:06:48]RAPDU: 90 00 [16:06:48]wFMCommunicate OK [16:06:48]wFMCommunicate request_size=4 [16:06:48]MH_SAM_APDU [16:06:48]CAPDU: 80 0D 03 02 [16:06:48]Write to MH i2c: E2 08 00 01 5A 80 0D 03 02 00 00 00 00 D6 [16:06:48]Write i2c OK [16:06:48]MH_I2C_Read... [16:06:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:48]Read from MH i2c: E2 [16:06:48]MH_I2C_Read... [16:06:48]Read from MH i2c: E2 0B 00 [16:06:48]MH_I2C_Read... [16:06:48]Read from MH i2c: E2 0B 00 01 5A 00 19 03 CE 08 0C 41 19 F0 90 00 1F [16:06:48]RAPDU: 19 03 CE 08 0C 41 19 F0 90 00 [16:06:48]wFMCommunicate OK [16:06:48]SAM_PROTO_SignData done [16:06:48]FM_MakeSignedData done [16:06:48]CreateOFDProtocolMessage [16:06:48]wFMCommunicate request_size=4 [16:06:48]MH_SAM_APDU [16:06:48]CAPDU: 80 11 00 00 [16:06:48]Write to MH i2c: E2 08 00 02 5A 80 11 00 00 00 00 00 00 D6 [16:06:48]Write i2c OK [16:06:48]MH_I2C_Read... [16:06:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:48]Read from MH i2c: E2 [16:06:48]MH_I2C_Read... [16:06:48]Read from MH i2c: E2 17 00 [16:06:48]MH_I2C_Read... [16:06:48]Read from MH i2c: E2 17 00 02 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 2D [16:06:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:06:48]wFMCommunicate OK [16:06:48]CreateOFDProtocolMessage done [16:06:48]OFDSenderStorePacket 92644 [16:06:48]StoreOFDPacket docnum=92644 [16:06:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 94 01 00 00 F1 F5 8C 01 CC 57 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 20 06 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E4 69 01 00 35 04 06 00 C5 EF DE 12 00 19 19 03 CE 08 0C 41 19 F0 [16:06:48]CheckFolder [16:06:48]dirname=/storage/ofd_packets [16:06:48]CheckFolder done [16:06:48]ProducePacketName [16:06:48]name=ofd_packets/00092644 [16:06:48]NVStorageSaveData ofd_packets/00092644 [16:06:48]File name is /storage/ofd_packets/00092644 [16:06:48]Write 434 bytes [16:06:48]NVStorageSaveData done [16:06:48]OFDSenderStorePacket done [16:06:48]KKMCreateOFDPacket done [16:06:48]NVStorageSaveData kkm_last_timestamp [16:06:48]File name is /storage/kkm_last_timestamp [16:06:48]Write 4 bytes [16:06:48]NVStorageSaveData done [16:06:48]ExternCall_PrintAddStr [16:06:48]wPrintStart [16:06:48]Write to MH i2c: 01 00 00 03 5A 5D [16:06:48]Write i2c OK [16:06:48]MH_I2C_Read... [16:06:48]Read from MH i2c: 01 [16:06:48]MH_I2C_Read... [16:06:48]Read from MH i2c: 01 07 00 [16:06:48]MH_I2C_Read... [16:06:48]Read from MH i2c: 01 07 00 03 5A 00 00 00 00 00 FF 0F 72 [16:06:48]RasterBufferAndPrint [16:06:48]line Счет N : (3)127533 [16:06:48]line ИНН: 02508201610067 [16:06:48]line Контрольно-Кассовый Чек [16:06:48]line ПРОДАЖА [16:06:48]line Товар: 54491472 [16:06:48]line Напиток Кока-Кола 0,5л [16:06:48]line 1.000 * 75.00 [16:06:48]line = 75.00 [16:06:48]line НДС 12% НСП 1% [16:06:48]line > о реализуемом товаре [16:06:48]line Товар: 4607065000790 [16:06:48]line Шок M&M`s с арахисом 45г [16:06:48]line 1.000 * 70.00 [16:06:48]line = 70.00 [16:06:48]line НДС 12% НСП 1% [16:06:48]line > о реализуемом товаре [16:06:48]line ИТОГО: 145.00 [16:06:48]line НСП 1% : 1.28 [16:06:48]line НДС 12% : 15.39 [16:06:48]line Наличными: 145.00 [16:06:48]line Безнал.: 0.00 [16:06:48]line Место: АЗС № 5 "Партнер Нефть" [16:06:48]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [16:06:48]line СНО: Общий режим [16:06:48]line Чек 92 15.09.2024 16:06 [16:06:48]line Смена: 507 ФФД: 1.0 [16:06:48]line ЗНМ: 03000000022 [16:06:48]line РНМ: 0000000000091423 [16:06:48]line Версия ККМ: 001 [16:06:48]line ФМ: 0000000000874692 [16:06:48]line ФД: 92644 [16:06:48]line ФПД: 217634013577241 [16:06:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T160656&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92644&fm=217634013577241&tin=02508201610067®Number=0000000000091423&sum=14500 [16:06:48]line 0 [16:06:48]OFD Sender: Processing packet 92644 [packets to send 63, broken 62] [16:06:48]ProducePacketName [16:06:48]name=ofd_packets/00092644 [16:06:48]OFD Sender: To server: pG, [16:06:48]CommunicateWithHost lk.salyk.kg:30040 [16:06:48]ConnectInit lk.salyk.kg [16:06:48]written 0, free lines is 4095 [16:06:48]Connected sock=11 [16:06:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 94 01 00 00 F1 F5 8C 01 CC 57 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 20 06 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E4 69 01 00 35 04 06 00 C5 EF DE 12 00 19 19 03 CE 08 0C 41 19 F0 [16:06:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 A3 9F 47 00 36 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E4 69 01 00 F4 03 04 00 97 AE E6 66 B6 04 01 00 00 E4 78 4F 77 98 89 33 78 [16:06:49]CommunicateWithHost err = 0 [16:06:49]CheckOFDResponse [16:06:49]1017 (14) - 77093643461234 [16:06:49]1041 (16) - 0000000000874692 [16:06:49]1040 (4) - 92644 [16:06:49]1012 (4) - 15.09.2024 09:53 [16:06:49]1206 (1) - 0 [16:06:49]OFD Sender: Remove packet 92644 [16:06:49]ProducePacketName [16:06:49]name=ofd_packets/00092644 [16:06:49]NVStorageDeleteData [16:06:49]Write to MH i2c: 01 00 00 31 5A 8B [16:06:49]Write i2c OK [16:06:49]MH_I2C_Read... [16:06:49]Read from MH i2c: 01 [16:06:49]MH_I2C_Read... [16:06:49]Read from MH i2c: 01 07 00 [16:06:49]MH_I2C_Read... [16:06:49]Read from MH i2c: 01 07 00 31 5A 00 00 00 00 00 E1 0C 7F [16:06:49]RasterBufferAndPrint [16:06:49]line [16:06:49]line [16:06:49]line [16:06:49]line [16:06:49]line [16:06:49]written 0, free lines is 3303 [16:06:49]MH_Cut [16:06:49]Write to MH i2c: D1 01 00 38 5A 01 64 [16:06:49]Write i2c OK [16:06:49]MH_I2C_Read... [16:06:49]Read from MH i2c: D1 [16:06:49]MH_I2C_Read... [16:06:49]Read from MH i2c: D1 01 00 [16:06:49]MH_I2C_Read... [16:06:49]Read from MH i2c: D1 01 00 38 5A 00 63 [16:06:49]Write to MH i2c: 01 00 00 39 5A 93 [16:06:49]Write i2c OK [16:06:49]MH_I2C_Read... [16:06:49]OFD Sender: No OFD packet to send [16:06:49]*** Cut start [16:06:49]*** Purtial cut [16:06:49]*** Stage 1: CUTSNS_PIN = 1 [16:06:52]Read from MH i2c: 01 [16:06:52]MH_I2C_Read... [16:06:52]*** Stop cut motor [16:06:52]*** Cut end [16:06:52]Read from MH i2c: 01 07 00 [16:06:52]MH_I2C_Read... [16:06:52]Read from MH i2c: 01 07 00 39 5A 00 00 00 00 00 FF 0F A8 [16:06:52]process_action close_receipt done [16:06:52]requested_data is exist [16:06:52]produce_requested_data [16:06:52]requested_item fm.sn is exist - process it [16:06:52]wFMCommunicate request_size=4 [16:06:52]MH_SAM_APDU [16:06:52]CAPDU: 80 11 00 00 [16:06:52]Write to MH i2c: E2 08 00 3A 5A 80 11 00 00 00 00 00 00 0E [16:06:52]Write i2c OK [16:06:52]MH_I2C_Read... [16:06:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:52]Read from MH i2c: E2 [16:06:52]MH_I2C_Read... [16:06:52]Read from MH i2c: E2 17 00 [16:06:52]MH_I2C_Read... [16:06:52]Read from MH i2c: E2 17 00 3A 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 65 [16:06:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:06:52]wFMCommunicate OK [16:06:52]requested_item fd.num is exist - process it [16:06:52]SAM_PROTO_GetFieldsCounters [16:06:52]wFMCommunicate request_size=4 [16:06:52]MH_SAM_APDU [16:06:52]CAPDU: 80 13 00 00 [16:06:52]Write to MH i2c: E2 08 00 3B 5A 80 13 00 00 00 00 00 00 11 [16:06:52]Write i2c OK [16:06:52]MH_I2C_Read... [16:06:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:52]Read from MH i2c: E2 [16:06:52]MH_I2C_Read... [16:06:52]Read from MH i2c: E2 62 00 [16:06:52]MH_I2C_Read... [16:06:52]Read from MH i2c: E2 62 00 3B 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E4 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [16:06:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E4 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:06:52]wFMCommunicate OK [16:06:52]SAM_PROTO_GetFieldsCounters done [16:06:52]requested_item shift.num is exist - process it [16:06:52]requested_item shift.opened is exist - process it [16:06:52]req_shift_opened [16:06:52]FM_GetShiftState [16:06:52]SAM_PROTO_GetShiftState [16:06:52]wFMCommunicate request_size=4 [16:06:52]MH_SAM_APDU [16:06:52]CAPDU: 80 13 01 00 [16:06:52]Write to MH i2c: E2 08 00 3C 5A 80 13 01 00 00 00 00 00 13 [16:06:52]Write i2c OK [16:06:52]MH_I2C_Read... [16:06:52]Read from MH i2c: E2 [16:06:52]MH_I2C_Read... [16:06:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:52]Read from MH i2c: E2 0E 00 [16:06:52]MH_I2C_Read... [16:06:52]Read from MH i2c: E2 0E 00 3C 5A 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 95 [16:06:52]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [16:06:52]wFMCommunicate OK [16:06:52]SAM_PROTO_GetShiftState done [16:06:52]FM_GetShiftState done [16:06:52]req_shift_opened done [16:06:52]requested_item shift.open_date is exist - process it [16:06:52]req_shift_open_date [16:06:52]req_shift_open_date done [16:06:52]produce_requested_data done [16:06:52]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92644,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [16:06:52]process_action_free close_receipt [16:06:52]json_value_free [16:06:52]json_value_free done [16:06:52]process_json_proto returns [16:06:52]Send response to host [16:06:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92644,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [16:06:52]free response buf [16:06:52]execute_script done [16:06:52]execute_script returns [16:06:52]free content buf [16:06:52]Sock 9.Close socket [16:06:52]Sock 9.Thread stoped [16:06:54]OFD Sender: No OFD packet to send [16:06:59]OFD Sender: No OFD packet to send [16:07:04]OFD Sender: No OFD packet to send [16:07:09]OFD Sender: No OFD packet to send [16:07:14]OFD Sender: No OFD packet to send [16:07:19]OFD Sender: No OFD packet to send [16:07:24]OFD Sender: No OFD packet to send [16:07:29]OFD Sender: No OFD packet to send [16:07:34]OFD Sender: No OFD packet to send [16:07:39]OFD Sender: No OFD packet to send [16:07:44]OFD Sender: No OFD packet to send [16:07:49]OFD Sender: No OFD packet to send [16:07:54]OFD Sender: No OFD packet to send [16:07:59]OFD Sender: No OFD packet to send [16:08:04]OFD Sender: No OFD packet to send [16:08:09]OFD Sender: No OFD packet to send [16:08:14]OFD Sender: No OFD packet to send [16:08:19]OFD Sender: No OFD packet to send [16:08:24]OFD Sender: No OFD packet to send [16:08:29]OFD Sender: No OFD packet to send [16:08:34]OFD Sender: No OFD packet to send [16:08:39]OFD Sender: No OFD packet to send [16:08:44]OFD Sender: No OFD packet to send [16:08:49]OFD Sender: No OFD packet to send [16:08:54]OFD Sender: No OFD packet to send [16:08:59]OFD Sender: No OFD packet to send [16:09:04]OFD Sender: No OFD packet to send [16:09:09]OFD Sender: No OFD packet to send [16:09:14]OFD Sender: No OFD packet to send [16:09:19]OFD Sender: No OFD packet to send [16:09:24]OFD Sender: No OFD packet to send [16:09:29]OFD Sender: No OFD packet to send [16:09:34]OFD Sender: No OFD packet to send [16:09:39]OFD Sender: No OFD packet to send [16:09:44]OFD Sender: No OFD packet to send [16:09:49]OFD Sender: No OFD packet to send [16:09:54]OFD Sender: No OFD packet to send [16:09:59]OFD Sender: No OFD packet to send [16:10:04]OFD Sender: No OFD packet to send [16:10:09]OFD Sender: No OFD packet to send [16:10:14]OFD Sender: No OFD packet to send [16:10:19]OFD Sender: No OFD packet to send [16:10:24]OFD Sender: No OFD packet to send [16:10:29]OFD Sender: No OFD packet to send [16:10:32]accept exits with 8 [16:10:32]New connection [16:10:32]New thread 3066801508 created [16:10:32]Thread 3066658148 joined [16:10:32]Waiting for new connection... [16:10:32] Sock 8.Parse request [16:10:32]Sock 8.Check first char [16:10:32]Sock 8.First char is OK [16:10:32]request: POST /json_proto HTTP/1.0 [16:10:32]Method: POST [16:10:32]URL: /json_proto [16:10:32]Method is POST - this is cgi request [16:10:32]url: /json_proto [16:10:32]query_string will be loaded in cgi processing [16:10:32]execute_cgi json_proto POST (null) [16:10:32]execute_cgi path=json_proto method=POST [16:10:32]POST find Content-Length [16:10:32]Host: 172.17.57.71:8080 [16:10:32]Content-Length: 2235 [16:10:32]Content-Type: application/json [16:10:32] [16:10:32]POST finish read [16:10:32]Found Content-Length = 2235 [16:10:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127534", "tax_sys" : 0, "items" : [ { "code": "4607120852531", "name": "\u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 Light 80 \u0433 \u0441\u043C-\u0437\u0435\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000790", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "58411125749", "name": "\u0422\u0435 \u0441\u0430\u043C\u044B\u0435 \u043C\u0430\u043A\u0430\u0440\u043E\u043D", "price" : 195.00, "quantity" : 2.000, "sum" : 390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 775.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:32]execute_script... [16:10:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127534", "tax_sys" : 0, "items" : [ { "code": "4607120852531", "name": "\u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 Light 80 \u0433 \u0441\u043C-\u0437\u0435\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000790", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "58411125749", "name": "\u0422\u0435 \u0441\u0430\u043C\u044B\u0435 \u043C\u0430\u043A\u0430\u0440\u043E\u043D", "price" : 195.00, "quantity" : 2.000, "sum" : 390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 775.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:32]POST & json_proto [16:10:32]process_json_proto [16:10:32]json parsed OK: [16:10:32]protocol is kg_v1.0 [16:10:32]action value=close_receipt [16:10:32]process_action close_receipt [16:10:32]cmd_close_receipt [16:10:32]MH_GetDate [16:10:32]Write to MH i2c: F0 00 00 3D 5A 86 [16:10:32]Write i2c OK [16:10:32]MH_I2C_Read... [16:10:32]Read from MH i2c: F0 [16:10:32]MH_I2C_Read... [16:10:32]Read from MH i2c: F0 09 00 [16:10:32]MH_I2C_Read... [16:10:32]Read from MH i2c: F0 09 00 3D 5A 00 02 07 E7 66 33 3A A4 66 5C [16:10:32]GetLastDocTimeStamp 1726416416 [16:10:32]current date 1726416642 [16:10:32]FM_GetShiftState [16:10:32]SAM_PROTO_GetShiftState [16:10:32]wFMCommunicate request_size=4 [16:10:32]MH_SAM_APDU [16:10:32]CAPDU: 80 13 01 00 [16:10:32]Write to MH i2c: E2 08 00 3E 5A 80 13 01 00 00 00 00 00 15 [16:10:32]Write i2c OK [16:10:32]MH_I2C_Read... [16:10:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:32]Read from MH i2c: E2 [16:10:32]MH_I2C_Read... [16:10:32]Read from MH i2c: E2 0E 00 [16:10:32]MH_I2C_Read... [16:10:32]Read from MH i2c: E2 0E 00 3E 5A 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 97 [16:10:32]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [16:10:32]wFMCommunicate OK [16:10:32]SAM_PROTO_GetShiftState done [16:10:32]FM_GetShiftState done [16:10:32]opened in 1726359809 [16:10:32]opened+sec_in_day 1726446209 [16:10:32]quantity*price = 8000 [16:10:32]sum+1 = 8001 [16:10:32]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189394 Холодный чай Fuse ягода 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000189349 Холодный чай Fuse манго ананас 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000000996 Напиток Кока-Кола 0,33л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065000790 Шок M&M`s с арахисом 45г 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 58411125749 Те самые макарон 2.000 * 195.00 = 390.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 775.00 НСП 1% : 6.85 НДС 12% : 82.30 Наличными: 0.00 Безнал.: 775.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 93 15.09.2024 16:10 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92645 ФПД: 37073612462049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T161042&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92645&fm=37073612462049&tin=02508201610067®Number=0000000000091423&sum=77500 0 [16:10:34]StoreToDocumentArchive [16:10:34]shift 507 fd 92645 [16:10:34]save to /storage/0507/doc_00092645 [16:10:34]save last doc name /storage/0507/doc_00092645 to /storage/kkm_last_doc_name [16:10:34]save OK [16:10:34]Clear old archive folders... [16:10:34]ProcessDocumentItem done err = 0, tmpTLVsize=849 [16:10:34]tlvbuf is 00FCADB0 [16:10:34]SAM_PROTO_ClearQueue [16:10:34]wFMCommunicate request_size=4 [16:10:34]MH_SAM_APDU [16:10:34]CAPDU: 80 09 00 00 [16:10:34]Write to MH i2c: E2 08 00 4B 5A 80 09 00 00 00 00 00 00 17 [16:10:34]Write i2c OK [16:10:34]MH_I2C_Read... [16:10:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:10:34]Read from MH i2c: E2 [16:10:34]MH_I2C_Read... [16:10:34]Read from MH i2c: E2 03 00 [16:10:34]MH_I2C_Read... [16:10:34]Read from MH i2c: E2 03 00 4B 5A 00 90 00 19 [16:10:34]RAPDU: 90 00 [16:10:34]wFMCommunicate OK [16:10:34]SAM_PROTO_ClearQueue done [16:10:34]KKMCreateOFDPacket [16:10:34]OFDProtocolAddRootSTLVToBuf [16:10:34]FM_MakeSignedData [16:10:34]FM_MakeSignedData [16:10:34]SAM_PROTO_SignData [16:10:34]wFMCommunicate request_size=4 [16:10:34]MH_SAM_APDU [16:10:34]CAPDU: 80 0D 01 02 [16:10:34]Write to MH i2c: E2 08 00 4C 5A 80 0D 01 02 00 00 00 00 1F [16:10:34]Write i2c OK [16:10:34]MH_I2C_Read... [16:10:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:10:34]Read from MH i2c: E2 [16:10:34]MH_I2C_Read... [16:10:34]Read from MH i2c: E2 03 00 [16:10:34]MH_I2C_Read... [16:10:34]Read from MH i2c: E2 03 00 4C 5A 00 90 00 1A [16:10:34]RAPDU: 90 00 [16:10:34]wFMCommunicate OK [16:10:34]wFMCommunicate request_size=255 [16:10:34]MH_SAM_APDU [16:10:34]CAPDU: 80 0D 02 02 FA 03 00 51 03 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 32 35 33 31 06 04 28 00 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 4C 69 67 68 74 20 38 30 20 D0 B3 20 D1 81 D0 BC 2D D0 B7 D0 B5 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 [16:10:34]Write to MH i2c: E2 02 01 4D 5A 80 0D 02 02 FA 00 03 00 51 03 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 32 35 33 31 06 04 28 00 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 4C 69 67 68 74 20 38 30 20 D0 B3 20 D1 81 D0 BC 2D D0 B7 D0 B5 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 00 00 6C [16:10:34]Write i2c OK [16:10:34]MH_I2C_Read... [16:10:34]OFD Sender: No OFD packet to send [16:10:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:34]Read from MH i2c: E2 [16:10:34]MH_I2C_Read... [16:10:34]Read from MH i2c: E2 03 00 [16:10:34]MH_I2C_Read... [16:10:34]Read from MH i2c: E2 03 00 4D 5A 00 90 00 1B [16:10:34]RAPDU: 90 00 [16:10:34]wFMCommunicate OK [16:10:34]wFMCommunicate request_size=255 [16:10:34]MH_SAM_APDU [16:10:34]CAPDU: 80 0D 02 02 FA 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 [16:10:34]Write to MH i2c: E2 02 01 4E 5A 80 0D 02 02 FA 00 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 00 00 06 [16:10:34]Write i2c OK [16:10:34]MH_I2C_Read... [16:10:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:35]Read from MH i2c: E2 [16:10:35]MH_I2C_Read... [16:10:35]Read from MH i2c: E2 03 00 [16:10:35]MH_I2C_Read... [16:10:35]Read from MH i2c: E2 03 00 4E 5A 00 90 00 1C [16:10:35]RAPDU: 90 00 [16:10:35]wFMCommunicate OK [16:10:35]wFMCommunicate request_size=255 [16:10:35]MH_SAM_APDU [16:10:35]CAPDU: 80 0D 02 02 FA 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 2E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 20 00 00 00 00 07 04 06 00 00 00 00 00 00 00 [16:10:35]Write to MH i2c: E2 02 01 4F 5A 80 0D 02 02 FA 00 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 2E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 20 00 00 00 00 07 04 06 00 00 00 00 00 00 00 00 00 89 [16:10:35]Write i2c OK [16:10:35]MH_I2C_Read... [16:10:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:35]Read from MH i2c: E2 [16:10:35]MH_I2C_Read... [16:10:35]Read from MH i2c: E2 03 00 [16:10:35]MH_I2C_Read... [16:10:35]Read from MH i2c: E2 03 00 4F 5A 00 90 00 1D [16:10:35]RAPDU: 90 00 [16:10:35]wFMCommunicate OK [16:10:35]wFMCommunicate request_size=108 [16:10:35]MH_SAM_APDU [16:10:35]CAPDU: 80 0D 02 02 67 39 04 06 00 BC 2E 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 02 07 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E5 69 01 00 35 04 06 00 21 B7 DF 80 57 E1 [16:10:35]Write to MH i2c: E2 6F 00 50 5A 80 0D 02 02 67 00 39 04 06 00 BC 2E 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 02 07 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E5 69 01 00 35 04 06 00 21 B7 DF 80 57 E1 00 00 71 [16:10:35]Write i2c OK [16:10:35]MH_I2C_Read... [16:10:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:35]Read from MH i2c: E2 [16:10:35]MH_I2C_Read... [16:10:35]Read from MH i2c: E2 03 00 [16:10:35]MH_I2C_Read... [16:10:35]Read from MH i2c: E2 03 00 50 5A 00 90 00 1E [16:10:35]RAPDU: 90 00 [16:10:35]wFMCommunicate OK [16:10:35]wFMCommunicate request_size=4 [16:10:35]MH_SAM_APDU [16:10:35]CAPDU: 80 0D 03 02 [16:10:35]Write to MH i2c: E2 08 00 51 5A 80 0D 03 02 00 00 00 00 26 [16:10:35]Write i2c OK [16:10:35]MH_I2C_Read... [16:10:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:10:35]Read from MH i2c: E2 [16:10:35]MH_I2C_Read... [16:10:35]Read from MH i2c: E2 0B 00 [16:10:35]MH_I2C_Read... [16:10:35]Read from MH i2c: E2 0B 00 51 5A 00 0D 28 1E 45 5B 49 FA 38 90 00 95 [16:10:35]RAPDU: 0D 28 1E 45 5B 49 FA 38 90 00 [16:10:35]wFMCommunicate OK [16:10:35]SAM_PROTO_SignData done [16:10:35]FM_MakeSignedData done [16:10:35]CreateOFDProtocolMessage [16:10:35]wFMCommunicate request_size=4 [16:10:35]MH_SAM_APDU [16:10:35]CAPDU: 80 11 00 00 [16:10:35]Write to MH i2c: E2 08 00 52 5A 80 11 00 00 00 00 00 00 26 [16:10:35]Write i2c OK [16:10:35]MH_I2C_Read... [16:10:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:35]Read from MH i2c: E2 [16:10:35]MH_I2C_Read... [16:10:35]Read from MH i2c: E2 17 00 [16:10:35]MH_I2C_Read... [16:10:35]Read from MH i2c: E2 17 00 52 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 7D [16:10:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:10:35]wFMCommunicate OK [16:10:35]CreateOFDProtocolMessage done [16:10:35]OFDSenderStorePacket 92645 [16:10:35]StoreOFDPacket docnum=92645 [16:10:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 65 03 00 00 85 D2 5D 03 79 04 5A 03 01 00 03 00 51 03 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 32 35 33 31 06 04 28 00 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 4C 69 67 68 74 20 38 30 20 D0 B3 20 D1 81 D0 BC 2D D0 B7 D0 B5 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 2E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 20 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 2E 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 02 07 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E5 69 01 00 35 04 06 00 21 B7 DF 80 57 E1 0D 28 1E 45 5B 49 FA 38 [16:10:35]CheckFolder [16:10:35]dirname=/storage/ofd_packets [16:10:35]CheckFolder done [16:10:35]ProducePacketName [16:10:35]name=ofd_packets/00092645 [16:10:35]NVStorageSaveData ofd_packets/00092645 [16:10:35]File name is /storage/ofd_packets/00092645 [16:10:35]Write 899 bytes [16:10:35]NVStorageSaveData done [16:10:35]OFDSenderStorePacket done [16:10:35]KKMCreateOFDPacket done [16:10:35]NVStorageSaveData kkm_last_timestamp [16:10:35]File name is /storage/kkm_last_timestamp [16:10:35]Write 4 bytes [16:10:35]NVStorageSaveData done [16:10:35]ExternCall_PrintAddStr [16:10:35]wPrintStart [16:10:35]Write to MH i2c: 01 00 00 53 5A AD [16:10:35]Write i2c OK [16:10:35]MH_I2C_Read... [16:10:35]Read from MH i2c: 01 [16:10:35]MH_I2C_Read... [16:10:35]Read from MH i2c: 01 07 00 [16:10:35]MH_I2C_Read... [16:10:35]Read from MH i2c: 01 07 00 53 5A 00 00 00 00 00 FF 0F C2 [16:10:35]RasterBufferAndPrint [16:10:35]line Счет N : (3)127534 [16:10:36]line ИНН: 02508201610067 [16:10:36]line Контрольно-Кассовый Чек [16:10:36]line ПРОДАЖА [16:10:36]line Товар: 4607120852531 [16:10:36]line Кириешки Light 80 г см-зел [16:10:36]line 2.000 * 40.00 [16:10:36]line = 80.00 [16:10:36]line НДС 12% НСП 1% [16:10:36]line > о реализуемом товаре [16:10:36]line Товар: 5449000189394 [16:10:36]line Холодный чай Fuse ягода 0,5л [16:10:36]line 1.000 * 75.00 [16:10:36]line = 75.00 [16:10:36]line НДС 12% НСП 1% [16:10:36]line > о реализуемом товаре [16:10:36]line Товар: 5449000189349 [16:10:36]line Холодный чай Fuse манго ананас 0,5л [16:10:36]line 1.000 * 75.00 [16:10:36]line = 75.00 [16:10:36]line НДС 12% НСП 1% [16:10:36]line > о реализуемом товаре [16:10:36]line Товар: 5449000000996 [16:10:36]line Напиток Кока-Кола 0,33л [16:10:36]line 1.000 * 85.00 [16:10:36]line = 85.00 [16:10:36]line НДС 12% НСП 1% [16:10:36]line > о реализуемом товаре [16:10:36]line Товар: 4607065000790 [16:10:36]line Шок M&M`s с арахисом 45г [16:10:36]line 1.000 * 70.00 [16:10:36]line = 70.00 [16:10:36]line НДС 12% НСП 1% [16:10:36]line > о реализуемом товаре [16:10:36]line Товар: 58411125749 [16:10:36]line Те самые макарон [16:10:36]line 2.000 * 195.00 [16:10:36]line = 390.00 [16:10:36]line НДС 12% НСП 1% [16:10:36]line > о реализуемом товаре [16:10:36]line ИТОГО: 775.00 [16:10:36]line НСП 1% : 6.85 [16:10:36]line НДС 12% : 82.30 [16:10:36]OFD Sender: Processing packet 92645 [packets to send 63, broken 62] [16:10:36]ProducePacketName [16:10:36]name=ofd_packets/00092645 [16:10:36]OFD Sender: To server: pG, [16:10:36]CommunicateWithHost lk.salyk.kg:30040 [16:10:36]ConnectInit lk.salyk.kg [16:10:36]line Наличными: 0.00 [16:10:36]line Безнал.: 775.00 [16:10:36]line Место: АЗС № 5 "Партнер Нефть" [16:10:36]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [16:10:36]line СНО: Общий режим [16:10:36]line Чек 93 15.09.2024 16:10 [16:10:36]line Смена: 507 ФФД: 1.0 [16:10:36]line ЗНМ: 03000000022 [16:10:36]line РНМ: 0000000000091423 [16:10:36]line Версия ККМ: 001 [16:10:36]line Платежная система: Бакай Банк [16:10:36]line ФМ: 0000000000874692 [16:10:36]line ФД: 92645 [16:10:36]line ФПД: 37073612462049 [16:10:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T161042&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92645&fm=37073612462049&tin=02508201610067®Number=0000000000091423&sum=77500 [16:10:36]line 0 [16:10:36]written 0, free lines is 4095 [16:10:36]Connected sock=10 [16:10:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 65 03 00 00 85 D2 5D 03 79 04 5A 03 01 00 03 00 51 03 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 32 35 33 31 06 04 28 00 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 4C 69 67 68 74 20 38 30 20 D0 B3 20 D1 81 D0 BC 2D D0 B7 D0 B5 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 2E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 20 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 2E 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 02 07 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E5 69 01 00 35 04 06 00 21 B7 DF 80 57 E1 0D 28 1E 45 5B 49 FA 38 [16:10:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 12 D1 47 00 0E 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E5 69 01 00 F4 03 04 00 7A AF E6 66 B6 04 01 00 00 A5 AC AC E8 D9 F3 76 F4 [16:10:36]CommunicateWithHost err = 0 [16:10:36]CheckOFDResponse [16:10:36]1017 (14) - 77093643461234 [16:10:36]1041 (16) - 0000000000874692 [16:10:36]1040 (4) - 92645 [16:10:36]1012 (4) - 15.09.2024 09:57 [16:10:36]1206 (1) - 0 [16:10:36]OFD Sender: Remove packet 92645 [16:10:36]ProducePacketName [16:10:36]name=ofd_packets/00092645 [16:10:36]NVStorageDeleteData [16:10:36]Write to MH i2c: 01 00 00 9C 5A F6 [16:10:36]Write i2c OK [16:10:36]MH_I2C_Read... [16:10:36]Read from MH i2c: 01 [16:10:36]MH_I2C_Read... [16:10:36]Read from MH i2c: 01 07 00 [16:10:36]MH_I2C_Read... [16:10:36]Read from MH i2c: 01 07 00 9C 5A 00 00 00 00 00 AC 0B B4 [16:10:36]RasterBufferAndPrint [16:10:36]line [16:10:36]line [16:10:36]line [16:10:36]line [16:10:36]line [16:10:36]written 0, free lines is 3002 [16:10:36]MH_Cut [16:10:36]Write to MH i2c: D1 01 00 A3 5A 01 CF [16:10:36]Write i2c OK [16:10:36]MH_I2C_Read... [16:10:36]Read from MH i2c: D1 [16:10:36]MH_I2C_Read... [16:10:36]Read from MH i2c: D1 01 00 [16:10:36]MH_I2C_Read... [16:10:36]Read from MH i2c: D1 01 00 A3 5A 00 CE [16:10:36]Write to MH i2c: 01 00 00 A4 5A FE [16:10:36]Write i2c OK [16:10:36]MH_I2C_Read... [16:10:36]OFD Sender: No OFD packet to send [16:10:37]*** Cut start [16:10:37]*** Purtial cut [16:10:37]*** Stage 1: CUTSNS_PIN = 1 [16:10:39]Read from MH i2c: 01 [16:10:39]MH_I2C_Read... [16:10:39]*** Stop cut motor [16:10:39]*** Cut end [16:10:39]Read from MH i2c: 01 07 00 [16:10:39]MH_I2C_Read... [16:10:39]Read from MH i2c: 01 07 00 A4 5A 00 00 00 00 00 FF 0F 13 [16:10:39]process_action close_receipt done [16:10:39]requested_data is exist [16:10:39]produce_requested_data [16:10:39]requested_item fm.sn is exist - process it [16:10:39]wFMCommunicate request_size=4 [16:10:39]MH_SAM_APDU [16:10:39]CAPDU: 80 11 00 00 [16:10:39]Write to MH i2c: E2 08 00 A5 5A 80 11 00 00 00 00 00 00 79 [16:10:39]Write i2c OK [16:10:39]MH_I2C_Read... [16:10:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:39]Read from MH i2c: E2 [16:10:39]MH_I2C_Read... [16:10:39]Read from MH i2c: E2 17 00 [16:10:39]MH_I2C_Read... [16:10:39]Read from MH i2c: E2 17 00 A5 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D0 [16:10:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:10:39]wFMCommunicate OK [16:10:39]requested_item fd.num is exist - process it [16:10:39]SAM_PROTO_GetFieldsCounters [16:10:39]wFMCommunicate request_size=4 [16:10:39]MH_SAM_APDU [16:10:39]CAPDU: 80 13 00 00 [16:10:39]Write to MH i2c: E2 08 00 A6 5A 80 13 00 00 00 00 00 00 7C [16:10:39]Write i2c OK [16:10:39]MH_I2C_Read... [16:10:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:10:39]Read from MH i2c: E2 [16:10:39]MH_I2C_Read... [16:10:39]Read from MH i2c: E2 62 00 [16:10:39]MH_I2C_Read... [16:10:39]Read from MH i2c: E2 62 00 A6 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E5 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [16:10:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E5 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:10:39]wFMCommunicate OK [16:10:39]SAM_PROTO_GetFieldsCounters done [16:10:39]requested_item shift.num is exist - process it [16:10:39]requested_item shift.opened is exist - process it [16:10:39]req_shift_opened [16:10:39]FM_GetShiftState [16:10:39]SAM_PROTO_GetShiftState [16:10:39]wFMCommunicate request_size=4 [16:10:39]MH_SAM_APDU [16:10:39]CAPDU: 80 13 01 00 [16:10:39]Write to MH i2c: E2 08 00 A7 5A 80 13 01 00 00 00 00 00 7E [16:10:39]Write i2c OK [16:10:39]MH_I2C_Read... [16:10:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:39]Read from MH i2c: E2 [16:10:39]MH_I2C_Read... [16:10:39]Read from MH i2c: E2 0E 00 [16:10:39]MH_I2C_Read... [16:10:39]Read from MH i2c: E2 0E 00 A7 5A 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 00 [16:10:40]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [16:10:40]wFMCommunicate OK [16:10:40]SAM_PROTO_GetShiftState done [16:10:40]FM_GetShiftState done [16:10:40]req_shift_opened done [16:10:40]requested_item shift.open_date is exist - process it [16:10:40]req_shift_open_date [16:10:40]req_shift_open_date done [16:10:40]produce_requested_data done [16:10:40]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92645,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [16:10:40]process_action_free close_receipt [16:10:40]json_value_free [16:10:40]json_value_free done [16:10:40]process_json_proto returns [16:10:40]Send response to host [16:10:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92645,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [16:10:40]free response buf [16:10:40]execute_script done [16:10:40]execute_script returns [16:10:40]free content buf [16:10:40]Sock 8.Close socket [16:10:40]Sock 8.Thread stoped [16:10:41]OFD Sender: No OFD packet to send [16:10:46]OFD Sender: No OFD packet to send [16:10:51]OFD Sender: No OFD packet to send [16:10:56]OFD Sender: No OFD packet to send [16:11:01]OFD Sender: No OFD packet to send [16:11:06]OFD Sender: No OFD packet to send [16:11:11]OFD Sender: No OFD packet to send [16:11:16]OFD Sender: No OFD packet to send [16:11:21]OFD Sender: No OFD packet to send [16:11:26]OFD Sender: No OFD packet to send [16:11:31]OFD Sender: No OFD packet to send [16:11:36]OFD Sender: No OFD packet to send [16:11:41]OFD Sender: No OFD packet to send [16:11:46]OFD Sender: No OFD packet to send [16:11:51]OFD Sender: No OFD packet to send [16:11:56]OFD Sender: No OFD packet to send [16:12:01]OFD Sender: No OFD packet to send [16:12:06]OFD Sender: No OFD packet to send [16:12:11]OFD Sender: No OFD packet to send [16:12:16]OFD Sender: No OFD packet to send [16:12:21]OFD Sender: No OFD packet to send [16:12:26]OFD Sender: No OFD packet to send [16:12:31]OFD Sender: No OFD packet to send [16:12:36]OFD Sender: No OFD packet to send [16:12:41]OFD Sender: No OFD packet to send [16:12:46]OFD Sender: No OFD packet to send [16:12:52]OFD Sender: No OFD packet to send [16:12:57]OFD Sender: No OFD packet to send [16:13:02]OFD Sender: No OFD packet to send [16:13:07]OFD Sender: No OFD packet to send [16:13:12]OFD Sender: No OFD packet to send [16:13:17]OFD Sender: No OFD packet to send [16:13:22]OFD Sender: No OFD packet to send [16:13:27]OFD Sender: No OFD packet to send [16:13:32]OFD Sender: No OFD packet to send [16:13:37]OFD Sender: No OFD packet to send [16:13:42]OFD Sender: No OFD packet to send [16:13:47]OFD Sender: No OFD packet to send [16:13:52]OFD Sender: No OFD packet to send [16:13:57]OFD Sender: No OFD packet to send [16:14:02]OFD Sender: No OFD packet to send [16:14:07]OFD Sender: No OFD packet to send [16:14:12]OFD Sender: No OFD packet to send [16:14:17]OFD Sender: No OFD packet to send [16:14:22]OFD Sender: No OFD packet to send [16:14:27]OFD Sender: No OFD packet to send [16:14:32]OFD Sender: No OFD packet to send [16:14:37]OFD Sender: No OFD packet to send [16:14:42]OFD Sender: No OFD packet to send [16:14:47]OFD Sender: No OFD packet to send [16:14:52]OFD Sender: No OFD packet to send [16:14:57]OFD Sender: No OFD packet to send [16:15:02]OFD Sender: No OFD packet to send [16:15:07]OFD Sender: No OFD packet to send [16:15:12]OFD Sender: No OFD packet to send [16:15:17]OFD Sender: No OFD packet to send [16:15:22]OFD Sender: No OFD packet to send [16:15:27]OFD Sender: No OFD packet to send [16:15:32]OFD Sender: No OFD packet to send [16:15:37]OFD Sender: No OFD packet to send [16:15:42]OFD Sender: No OFD packet to send [16:15:47]OFD Sender: No OFD packet to send [16:15:52]OFD Sender: No OFD packet to send [16:15:57]OFD Sender: No OFD packet to send [16:16:02]OFD Sender: No OFD packet to send [16:16:07]OFD Sender: No OFD packet to send [16:16:12]OFD Sender: No OFD packet to send [16:16:17]OFD Sender: No OFD packet to send [16:16:22]OFD Sender: No OFD packet to send [16:16:27]OFD Sender: No OFD packet to send [16:16:32]OFD Sender: No OFD packet to send [16:16:37]OFD Sender: No OFD packet to send [16:16:42]OFD Sender: No OFD packet to send [16:16:47]OFD Sender: No OFD packet to send [16:16:52]OFD Sender: No OFD packet to send [16:16:57]OFD Sender: No OFD packet to send [16:17:02]OFD Sender: No OFD packet to send [16:17:07]OFD Sender: No OFD packet to send [16:17:12]OFD Sender: No OFD packet to send [16:17:17]OFD Sender: No OFD packet to send [16:17:22]OFD Sender: No OFD packet to send [16:17:27]OFD Sender: No OFD packet to send [16:17:32]OFD Sender: No OFD packet to send [16:17:34]accept exits with 9 [16:17:34]New connection [16:17:34]New thread 3066658148 created [16:17:34]Thread 3066801508 joined [16:17:34]Waiting for new connection... [16:17:34] Sock 9.Parse request [16:17:34]Sock 9.Check first char [16:17:34]Sock 9.First char is OK [16:17:34]request: POST /json_proto HTTP/1.0 [16:17:34]Method: POST [16:17:34]URL: /json_proto [16:17:34]Method is POST - this is cgi request [16:17:34]url: /json_proto [16:17:34]query_string will be loaded in cgi processing [16:17:34]execute_cgi json_proto POST (null) [16:17:34]execute_cgi path=json_proto method=POST [16:17:34]POST find Content-Length [16:17:34]Host: 172.17.57.71:8080 [16:17:34]Content-Length: 632 [16:17:34]Content-Type: application/json [16:17:34] [16:17:34]POST finish read [16:17:34]Found Content-Length = 632 [16:17:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127535", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:34]execute_script... [16:17:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127535", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:34]POST & json_proto [16:17:34]process_json_proto [16:17:34]json parsed OK: [16:17:34]protocol is kg_v1.0 [16:17:34]action value=close_receipt [16:17:34]process_action close_receipt [16:17:34]cmd_close_receipt [16:17:34]MH_GetDate [16:17:34]Write to MH i2c: F0 00 00 A8 5A F1 [16:17:34]Write i2c OK [16:17:34]MH_I2C_Read... [16:17:34]Read from MH i2c: F0 [16:17:34]MH_I2C_Read... [16:17:34]Read from MH i2c: F0 09 00 [16:17:34]MH_I2C_Read... [16:17:34]Read from MH i2c: F0 09 00 A8 5A 00 A7 08 E7 66 33 3A A4 66 6D [16:17:34]GetLastDocTimeStamp 1726416642 [16:17:34]current date 1726417063 [16:17:34]FM_GetShiftState [16:17:34]SAM_PROTO_GetShiftState [16:17:34]wFMCommunicate request_size=4 [16:17:34]MH_SAM_APDU [16:17:34]CAPDU: 80 13 01 00 [16:17:34]Write to MH i2c: E2 08 00 A9 5A 80 13 01 00 00 00 00 00 80 [16:17:34]Write i2c OK [16:17:34]MH_I2C_Read... [16:17:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:34]Read from MH i2c: E2 [16:17:34]MH_I2C_Read... [16:17:34]Read from MH i2c: E2 0E 00 [16:17:34]MH_I2C_Read... [16:17:34]Read from MH i2c: E2 0E 00 A9 5A 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 02 [16:17:34]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [16:17:34]wFMCommunicate OK [16:17:34]SAM_PROTO_GetShiftState done [16:17:34]FM_GetShiftState done [16:17:34]opened in 1726359809 [16:17:34]opened+sec_in_day 1726446209 [16:17:34]quantity*price = 6000 [16:17:34]sum+1 = 6001 [16:17:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 94 15.09.2024 16:17 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92646 ФПД: 37967080103452 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T161743&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92646&fm=37967080103452&tin=02508201610067®Number=0000000000091423&sum=6000 0 [16:17:35]StoreToDocumentArchive [16:17:35]shift 507 fd 92646 [16:17:35]save to /storage/0507/doc_00092646 [16:17:35]save last doc name /storage/0507/doc_00092646 to /storage/kkm_last_doc_name [16:17:35]save OK [16:17:35]Clear old archive folders... [16:17:35]ProcessDocumentItem done err = 0, tmpTLVsize=271 [16:17:35]tlvbuf is 01087C10 [16:17:35]SAM_PROTO_ClearQueue [16:17:35]wFMCommunicate request_size=4 [16:17:35]MH_SAM_APDU [16:17:35]CAPDU: 80 09 00 00 [16:17:35]Write to MH i2c: E2 08 00 B6 5A 80 09 00 00 00 00 00 00 82 [16:17:35]Write i2c OK [16:17:35]MH_I2C_Read... [16:17:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:17:35]Read from MH i2c: E2 [16:17:35]MH_I2C_Read... [16:17:35]Read from MH i2c: E2 03 00 [16:17:35]MH_I2C_Read... [16:17:35]Read from MH i2c: E2 03 00 B6 5A 00 90 00 84 [16:17:35]RAPDU: 90 00 [16:17:35]wFMCommunicate OK [16:17:35]SAM_PROTO_ClearQueue done [16:17:35]KKMCreateOFDPacket [16:17:35]OFDProtocolAddRootSTLVToBuf [16:17:35]FM_MakeSignedData [16:17:35]FM_MakeSignedData [16:17:35]SAM_PROTO_SignData [16:17:35]wFMCommunicate request_size=4 [16:17:35]MH_SAM_APDU [16:17:35]CAPDU: 80 0D 01 02 [16:17:35]Write to MH i2c: E2 08 00 B7 5A 80 0D 01 02 00 00 00 00 8A [16:17:35]Write i2c OK [16:17:35]MH_I2C_Read... [16:17:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:17:35]Read from MH i2c: E2 [16:17:35]MH_I2C_Read... [16:17:35]Read from MH i2c: E2 03 00 [16:17:35]MH_I2C_Read... [16:17:35]Read from MH i2c: E2 03 00 B7 5A 00 90 00 85 [16:17:35]RAPDU: 90 00 [16:17:35]wFMCommunicate OK [16:17:35]wFMCommunicate request_size=255 [16:17:35]MH_SAM_APDU [16:17:35]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 A7 08 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 [16:17:35]Write to MH i2c: E2 02 01 B8 5A 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 A7 08 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 09 [16:17:35]Write i2c OK [16:17:35]MH_I2C_Read... [16:17:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:36]Read from MH i2c: E2 [16:17:36]MH_I2C_Read... [16:17:36]Read from MH i2c: E2 03 00 [16:17:36]MH_I2C_Read... [16:17:36]Read from MH i2c: E2 03 00 B8 5A 00 90 00 86 [16:17:36]RAPDU: 90 00 [16:17:36]wFMCommunicate OK [16:17:36]wFMCommunicate request_size=30 [16:17:36]MH_SAM_APDU [16:17:36]CAPDU: 80 0D 02 02 19 30 38 37 34 36 39 32 10 04 04 00 E6 69 01 00 35 04 06 00 22 87 E6 52 9E 1C [16:17:36]Write to MH i2c: E2 21 00 B9 5A 80 0D 02 02 19 00 30 38 37 34 36 39 32 10 04 04 00 E6 69 01 00 35 04 06 00 22 87 E6 52 9E 1C 00 00 75 [16:17:36]Write i2c OK [16:17:36]MH_I2C_Read... [16:17:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:36]Read from MH i2c: E2 [16:17:36]MH_I2C_Read... [16:17:36]Read from MH i2c: E2 03 00 [16:17:36]MH_I2C_Read... [16:17:36]Read from MH i2c: E2 03 00 B9 5A 00 90 00 87 [16:17:36]RAPDU: 90 00 [16:17:36]wFMCommunicate OK [16:17:36]wFMCommunicate request_size=4 [16:17:36]MH_SAM_APDU [16:17:36]CAPDU: 80 0D 03 02 [16:17:36]Write to MH i2c: E2 08 00 BA 5A 80 0D 03 02 00 00 00 00 8F [16:17:36]Write i2c OK [16:17:36]MH_I2C_Read... [16:17:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:17:36]Read from MH i2c: E2 [16:17:36]MH_I2C_Read... [16:17:36]Read from MH i2c: E2 0B 00 [16:17:36]MH_I2C_Read... [16:17:36]Read from MH i2c: E2 0B 00 BA 5A 00 5B 95 D0 37 4B 3F B2 F3 90 00 B6 [16:17:36]RAPDU: 5B 95 D0 37 4B 3F B2 F3 90 00 [16:17:36]wFMCommunicate OK [16:17:36]SAM_PROTO_SignData done [16:17:36]FM_MakeSignedData done [16:17:36]CreateOFDProtocolMessage [16:17:36]wFMCommunicate request_size=4 [16:17:36]MH_SAM_APDU [16:17:36]CAPDU: 80 11 00 00 [16:17:36]Write to MH i2c: E2 08 00 BB 5A 80 11 00 00 00 00 00 00 8F [16:17:36]Write i2c OK [16:17:36]MH_I2C_Read... [16:17:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:36]Read from MH i2c: E2 [16:17:36]MH_I2C_Read... [16:17:36]Read from MH i2c: E2 17 00 [16:17:36]MH_I2C_Read... [16:17:36]Read from MH i2c: E2 17 00 BB 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E6 [16:17:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:17:36]wFMCommunicate OK [16:17:36]CreateOFDProtocolMessage done [16:17:36]OFDSenderStorePacket 92646 [16:17:36]StoreOFDPacket docnum=92646 [16:17:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 7E 67 1B 01 10 54 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 A7 08 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E6 69 01 00 35 04 06 00 22 87 E6 52 9E 1C 5B 95 D0 37 4B 3F B2 F3 [16:17:36]CheckFolder [16:17:36]dirname=/storage/ofd_packets [16:17:36]CheckFolder done [16:17:36]ProducePacketName [16:17:36]name=ofd_packets/00092646 [16:17:36]NVStorageSaveData ofd_packets/00092646 [16:17:36]File name is /storage/ofd_packets/00092646 [16:17:36]Write 321 bytes [16:17:36]NVStorageSaveData done [16:17:36]OFDSenderStorePacket done [16:17:36]KKMCreateOFDPacket done [16:17:36]NVStorageSaveData kkm_last_timestamp [16:17:36]File name is /storage/kkm_last_timestamp [16:17:36]Write 4 bytes [16:17:36]NVStorageSaveData done [16:17:36]ExternCall_PrintAddStr [16:17:36]wPrintStart [16:17:36]Write to MH i2c: 01 00 00 BC 5A 16 [16:17:36]Write i2c OK [16:17:36]MH_I2C_Read... [16:17:36]Read from MH i2c: 01 [16:17:36]MH_I2C_Read... [16:17:36]Read from MH i2c: 01 07 00 [16:17:36]MH_I2C_Read... [16:17:36]Read from MH i2c: 01 07 00 BC 5A 00 00 00 00 00 FF 0F 2B [16:17:36]RasterBufferAndPrint [16:17:36]line Счет N : (3)127535 [16:17:36]line ИНН: 02508201610067 [16:17:36]line Контрольно-Кассовый Чек [16:17:36]line ПРОДАЖА [16:17:36]line Товар: 4700000160204 [16:17:36]line Вода Легенда 1,5л [16:17:36]line 1.000 * 60.00 [16:17:36]line = 60.00 [16:17:36]line НДС 12% НСП 1% [16:17:36]line > о реализуемом товаре [16:17:36]line ИТОГО: 60.00 [16:17:36]line НСП 1% : 0.53 [16:17:36]line НДС 12% : 6.37 [16:17:36]line Наличными: 60.00 [16:17:36]line Безнал.: 0.00 [16:17:36]line Место: АЗС № 5 "Партнер Нефть" [16:17:36]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [16:17:36]line СНО: Общий режим [16:17:36]line Чек 94 15.09.2024 16:17 [16:17:36]line Смена: 507 ФФД: 1.0 [16:17:36]line ЗНМ: 03000000022 [16:17:36]line РНМ: 0000000000091423 [16:17:36]line Версия ККМ: 001 [16:17:36]line ФМ: 0000000000874692 [16:17:36]line ФД: 92646 [16:17:36]line ФПД: 37967080103452 [16:17:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T161743&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92646&fm=37967080103452&tin=02508201610067®Number=0000000000091423&sum=6000 [16:17:36]line 0 [16:17:36]written 0, free lines is 4095 [16:17:36]OFD Sender: Processing packet 92646 [packets to send 63, broken 62] [16:17:36]ProducePacketName [16:17:36]name=ofd_packets/00092646 [16:17:36]OFD Sender: To server: pG, [16:17:36]CommunicateWithHost lk.salyk.kg:30040 [16:17:36]ConnectInit lk.salyk.kg [16:17:36]Connected sock=10 [16:17:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 7E 67 1B 01 10 54 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 A7 08 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E6 69 01 00 35 04 06 00 22 87 E6 52 9E 1C 5B 95 D0 37 4B 3F B2 F3 [16:17:36]Write to MH i2c: 01 00 00 E4 5A 3E [16:17:36]Write i2c OK [16:17:36]MH_I2C_Read... [16:17:36]Read from MH i2c: 01 [16:17:36]MH_I2C_Read... [16:17:36]Read from MH i2c: 01 07 00 [16:17:36]MH_I2C_Read... [16:17:36]Read from MH i2c: 01 07 00 E4 5A 00 00 00 00 00 3F 0D 91 [16:17:36]RasterBufferAndPrint [16:17:36]line [16:17:36]line [16:17:36]line [16:17:36]line [16:17:36]line [16:17:36]written 0, free lines is 3397 [16:17:36]MH_Cut [16:17:36]Write to MH i2c: D1 01 00 EB 5A 01 17 [16:17:36]Write i2c OK [16:17:36]MH_I2C_Read... [16:17:36]Read from MH i2c: D1 [16:17:36]MH_I2C_Read... [16:17:36]Read from MH i2c: D1 01 00 [16:17:36]MH_I2C_Read... [16:17:36]Read from MH i2c: D1 01 00 EB 5A 00 16 [16:17:36]Write to MH i2c: 01 00 00 EC 5A 46 [16:17:36]Write i2c OK [16:17:36]MH_I2C_Read... [16:17:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 66 ED 47 00 BC 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E6 69 01 00 F4 03 04 00 1F B1 E6 66 B6 04 01 00 00 08 B8 52 35 FE 6C A6 9F [16:17:36]CommunicateWithHost err = 0 [16:17:36]CheckOFDResponse [16:17:36]1017 (14) - 77093643461234 [16:17:36]1041 (16) - 0000000000874692 [16:17:36]1040 (4) - 92646 [16:17:36]1012 (4) - 15.09.2024 10:04 [16:17:36]1206 (1) - 0 [16:17:36]OFD Sender: Remove packet 92646 [16:17:36]ProducePacketName [16:17:36]name=ofd_packets/00092646 [16:17:36]NVStorageDeleteData [16:17:37]*** Cut start [16:17:37]*** Purtial cut [16:17:37]*** Stage 1: CUTSNS_PIN = 1 [16:17:37]OFD Sender: No OFD packet to send [16:17:39]Read from MH i2c: 01 [16:17:39]MH_I2C_Read... [16:17:39]*** Stop cut motor [16:17:39]*** Cut end [16:17:39]Read from MH i2c: 01 07 00 [16:17:39]MH_I2C_Read... [16:17:39]Read from MH i2c: 01 07 00 EC 5A 00 00 00 00 00 FF 0F 5B [16:17:39]process_action close_receipt done [16:17:39]requested_data is exist [16:17:39]produce_requested_data [16:17:39]requested_item fm.sn is exist - process it [16:17:39]wFMCommunicate request_size=4 [16:17:39]MH_SAM_APDU [16:17:39]CAPDU: 80 11 00 00 [16:17:39]Write to MH i2c: E2 08 00 ED 5A 80 11 00 00 00 00 00 00 C1 [16:17:39]Write i2c OK [16:17:39]MH_I2C_Read... [16:17:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:39]Read from MH i2c: E2 [16:17:39]MH_I2C_Read... [16:17:39]Read from MH i2c: E2 17 00 [16:17:39]MH_I2C_Read... [16:17:39]Read from MH i2c: E2 17 00 ED 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 18 [16:17:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:17:39]wFMCommunicate OK [16:17:39]requested_item fd.num is exist - process it [16:17:39]SAM_PROTO_GetFieldsCounters [16:17:39]wFMCommunicate request_size=4 [16:17:39]MH_SAM_APDU [16:17:39]CAPDU: 80 13 00 00 [16:17:39]Write to MH i2c: E2 08 00 EE 5A 80 13 00 00 00 00 00 00 C4 [16:17:39]Write i2c OK [16:17:39]MH_I2C_Read... [16:17:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:17:39]Read from MH i2c: E2 [16:17:39]MH_I2C_Read... [16:17:39]Read from MH i2c: E2 62 00 [16:17:39]MH_I2C_Read... [16:17:39]Read from MH i2c: E2 62 00 EE 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E6 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [16:17:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E6 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:17:39]wFMCommunicate OK [16:17:39]SAM_PROTO_GetFieldsCounters done [16:17:39]requested_item shift.num is exist - process it [16:17:39]requested_item shift.opened is exist - process it [16:17:39]req_shift_opened [16:17:39]FM_GetShiftState [16:17:39]SAM_PROTO_GetShiftState [16:17:39]wFMCommunicate request_size=4 [16:17:39]MH_SAM_APDU [16:17:39]CAPDU: 80 13 01 00 [16:17:39]Write to MH i2c: E2 08 00 EF 5A 80 13 01 00 00 00 00 00 C6 [16:17:39]Write i2c OK [16:17:39]MH_I2C_Read... [16:17:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:39]Read from MH i2c: E2 [16:17:39]MH_I2C_Read... [16:17:39]Read from MH i2c: E2 0E 00 [16:17:39]MH_I2C_Read... [16:17:39]Read from MH i2c: E2 0E 00 EF 5A 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 48 [16:17:39]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [16:17:39]wFMCommunicate OK [16:17:39]SAM_PROTO_GetShiftState done [16:17:39]FM_GetShiftState done [16:17:39]req_shift_opened done [16:17:39]requested_item shift.open_date is exist - process it [16:17:39]req_shift_open_date [16:17:39]req_shift_open_date done [16:17:39]produce_requested_data done [16:17:39]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92646,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [16:17:39]process_action_free close_receipt [16:17:39]json_value_free [16:17:39]json_value_free done [16:17:39]process_json_proto returns [16:17:39]Send response to host [16:17:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92646,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [16:17:39]free response buf [16:17:39]execute_script done [16:17:39]execute_script returns [16:17:39]free content buf [16:17:39]Sock 9.Close socket [16:17:39]Sock 9.Thread stoped [16:17:42]OFD Sender: No OFD packet to send [16:17:47]OFD Sender: No OFD packet to send [16:17:52]OFD Sender: No OFD packet to send [16:17:57]OFD Sender: No OFD packet to send [16:18:02]OFD Sender: No OFD packet to send [16:18:07]OFD Sender: No OFD packet to send [16:18:12]OFD Sender: No OFD packet to send [16:18:17]OFD Sender: No OFD packet to send [16:18:22]OFD Sender: No OFD packet to send [16:18:27]OFD Sender: No OFD packet to send [16:18:32]OFD Sender: No OFD packet to send [16:18:37]OFD Sender: No OFD packet to send [16:18:42]OFD Sender: No OFD packet to send [16:18:47]OFD Sender: No OFD packet to send [16:18:52]OFD Sender: No OFD packet to send [16:18:57]OFD Sender: No OFD packet to send [16:19:02]OFD Sender: No OFD packet to send [16:19:07]OFD Sender: No OFD packet to send [16:19:12]OFD Sender: No OFD packet to send [16:19:17]OFD Sender: No OFD packet to send [16:19:22]OFD Sender: No OFD packet to send [16:19:27]OFD Sender: No OFD packet to send [16:19:32]OFD Sender: No OFD packet to send [16:19:37]OFD Sender: No OFD packet to send [16:19:42]OFD Sender: No OFD packet to send [16:19:47]OFD Sender: No OFD packet to send [16:19:52]OFD Sender: No OFD packet to send [16:19:57]OFD Sender: No OFD packet to send [16:20:02]OFD Sender: No OFD packet to send [16:20:07]OFD Sender: No OFD packet to send [16:20:12]OFD Sender: No OFD packet to send [16:20:17]OFD Sender: No OFD packet to send [16:20:22]OFD Sender: No OFD packet to send [16:20:27]OFD Sender: No OFD packet to send [16:20:32]OFD Sender: No OFD packet to send [16:20:37]OFD Sender: No OFD packet to send [16:20:42]OFD Sender: No OFD packet to send [16:20:47]OFD Sender: No OFD packet to send [16:20:50]accept exits with 8 [16:20:50]New connection [16:20:50]New thread 3066801508 created [16:20:50]Thread 3066658148 joined [16:20:50]Waiting for new connection... [16:20:50] Sock 8.Parse request [16:20:50]Sock 8.Check first char [16:20:50]Sock 8.First char is OK [16:20:50]request: POST /json_proto HTTP/1.0 [16:20:50]Method: POST [16:20:50]URL: /json_proto [16:20:50]Method is POST - this is cgi request [16:20:50]url: /json_proto [16:20:50]query_string will be loaded in cgi processing [16:20:50]execute_cgi json_proto POST (null) [16:20:50]execute_cgi path=json_proto method=POST [16:20:50]POST find Content-Length [16:20:50]Host: 172.17.57.71:8080 [16:20:50]Content-Length: 1129 [16:20:50]Content-Type: application/json [16:20:50] [16:20:50]POST finish read [16:20:50]Found Content-Length = 1129 [16:20:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127536", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46123428", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Wind Blue", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 185.00, "quantity" : 1.000, "sum" : 185.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 424.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:50]execute_script... [16:20:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127536", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46123428", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Wind Blue", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 185.00, "quantity" : 1.000, "sum" : 185.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 424.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:50]POST & json_proto [16:20:50]process_json_proto [16:20:50]json parsed OK: [16:20:50]protocol is kg_v1.0 [16:20:50]action value=close_receipt [16:20:50]process_action close_receipt [16:20:50]cmd_close_receipt [16:20:50]MH_GetDate [16:20:50]Write to MH i2c: F0 00 00 F0 5A 39 [16:20:50]Write i2c OK [16:20:50]MH_I2C_Read... [16:20:50]Read from MH i2c: F0 [16:20:50]MH_I2C_Read... [16:20:50]Read from MH i2c: F0 09 00 [16:20:50]MH_I2C_Read... [16:20:50]Read from MH i2c: F0 09 00 F0 5A 00 6C 09 E7 66 33 3A A4 66 7B [16:20:50]GetLastDocTimeStamp 1726417063 [16:20:50]current date 1726417260 [16:20:50]FM_GetShiftState [16:20:50]SAM_PROTO_GetShiftState [16:20:50]wFMCommunicate request_size=4 [16:20:50]MH_SAM_APDU [16:20:50]CAPDU: 80 13 01 00 [16:20:50]Write to MH i2c: E2 08 00 F1 5A 80 13 01 00 00 00 00 00 C8 [16:20:50]Write i2c OK [16:20:50]MH_I2C_Read... [16:20:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:50]Read from MH i2c: E2 [16:20:50]MH_I2C_Read... [16:20:50]Read from MH i2c: E2 0E 00 [16:20:50]MH_I2C_Read... [16:20:50]Read from MH i2c: E2 0E 00 F1 5A 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 4A [16:20:50]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [16:20:50]wFMCommunicate OK [16:20:50]SAM_PROTO_GetShiftState done [16:20:50]FM_GetShiftState done [16:20:50]opened in 1726359809 [16:20:50]opened+sec_in_day 1726446209 [16:20:50]quantity*price = 8000 [16:20:50]sum+1 = 8001 [16:20:50]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46123428 Сигареты Mevius Wind Blue 1.000 * 159.00 = 159.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 90162602 Энерг напиток Red bull 0,25л 1.000 * 185.00 = 185.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 424.00 НСП 1% : 3.76 НДС 12% : 45.03 Наличными: 424.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 95 15.09.2024 16:21 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92647 ФПД: 111580396725358 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T162100&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92647&fm=111580396725358&tin=02508201610067®Number=0000000000091423&sum=42400 0 [16:20:52]StoreToDocumentArchive [16:20:52]shift 507 fd 92647 [16:20:52]save to /storage/0507/doc_00092647 [16:20:52]save last doc name /storage/0507/doc_00092647 to /storage/kkm_last_doc_name [16:20:52]save OK [16:20:52]Clear old archive folders... [16:20:52]ProcessDocumentItem done err = 0, tmpTLVsize=479 [16:20:52]tlvbuf is 0101E6E0 [16:20:52]SAM_PROTO_ClearQueue [16:20:52]wFMCommunicate request_size=4 [16:20:52]MH_SAM_APDU [16:20:52]CAPDU: 80 09 00 00 [16:20:52]Write to MH i2c: E2 08 00 FE 5A 80 09 00 00 00 00 00 00 CA [16:20:52]Write i2c OK [16:20:52]MH_I2C_Read... [16:20:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:20:52]Read from MH i2c: E2 [16:20:52]MH_I2C_Read... [16:20:52]Read from MH i2c: E2 03 00 [16:20:52]MH_I2C_Read... [16:20:52]Read from MH i2c: E2 03 00 FE 5A 00 90 00 CC [16:20:52]RAPDU: 90 00 [16:20:52]wFMCommunicate OK [16:20:52]SAM_PROTO_ClearQueue done [16:20:52]KKMCreateOFDPacket [16:20:52]OFDProtocolAddRootSTLVToBuf [16:20:52]FM_MakeSignedData [16:20:52]FM_MakeSignedData [16:20:52]SAM_PROTO_SignData [16:20:52]wFMCommunicate request_size=4 [16:20:52]MH_SAM_APDU [16:20:52]CAPDU: 80 0D 01 02 [16:20:52]Write to MH i2c: E2 08 00 FF 5A 80 0D 01 02 00 00 00 00 D2 [16:20:52]Write i2c OK [16:20:52]MH_I2C_Read... [16:20:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:20:52]Read from MH i2c: E2 [16:20:52]MH_I2C_Read... [16:20:52]Read from MH i2c: E2 03 00 [16:20:52]MH_I2C_Read... [16:20:52]Read from MH i2c: E2 03 00 FF 5A 00 90 00 CD [16:20:52]RAPDU: 90 00 [16:20:52]wFMCommunicate OK [16:20:52]wFMCommunicate request_size=255 [16:20:52]MH_SAM_APDU [16:20:52]CAPDU: 80 0D 02 02 FA 03 00 DF 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 08 00 34 36 31 32 33 34 32 38 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 57 69 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 [16:20:52]Write to MH i2c: E2 02 01 00 5B 80 0D 02 02 FA 00 03 00 DF 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 08 00 34 36 31 32 33 34 32 38 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 57 69 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 00 00 00 [16:20:52]Write i2c OK [16:20:52]MH_I2C_Read... [16:20:52]OFD Sender: No OFD packet to send [16:20:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:52]Read from MH i2c: E2 [16:20:52]MH_I2C_Read... [16:20:52]Read from MH i2c: E2 03 00 [16:20:52]MH_I2C_Read... [16:20:52]Read from MH i2c: E2 03 00 00 5B 00 90 00 CF [16:20:52]RAPDU: 90 00 [16:20:52]wFMCommunicate OK [16:20:52]wFMCommunicate request_size=238 [16:20:52]MH_SAM_APDU [16:20:52]CAPDU: 80 0D 02 02 E9 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 A5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 11 00 00 00 00 07 04 06 00 A0 A5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 6C 09 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E7 69 01 00 35 04 06 00 65 7B 55 E9 24 6E [16:20:52]Write to MH i2c: E2 F1 00 01 5B 80 0D 02 02 E9 00 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 A5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 11 00 00 00 00 07 04 06 00 A0 A5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 6C 09 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E7 69 01 00 35 04 06 00 65 7B 55 E9 24 6E 00 00 E5 [16:20:52]Write i2c OK [16:20:52]MH_I2C_Read... [16:20:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:53]Read from MH i2c: E2 [16:20:53]MH_I2C_Read... [16:20:53]Read from MH i2c: E2 03 00 [16:20:53]MH_I2C_Read... [16:20:53]Read from MH i2c: E2 03 00 01 5B 00 90 00 D0 [16:20:53]RAPDU: 90 00 [16:20:53]wFMCommunicate OK [16:20:53]wFMCommunicate request_size=4 [16:20:53]MH_SAM_APDU [16:20:53]CAPDU: 80 0D 03 02 [16:20:53]Write to MH i2c: E2 08 00 02 5B 80 0D 03 02 00 00 00 00 D8 [16:20:53]Write i2c OK [16:20:53]MH_I2C_Read... [16:20:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:20:53]Read from MH i2c: E2 [16:20:53]MH_I2C_Read... [16:20:53]Read from MH i2c: E2 0B 00 [16:20:53]MH_I2C_Read... [16:20:53]Read from MH i2c: E2 0B 00 02 5B 00 1E AD E7 69 C4 15 E0 39 90 00 E6 [16:20:53]RAPDU: 1E AD E7 69 C4 15 E0 39 90 00 [16:20:53]wFMCommunicate OK [16:20:53]SAM_PROTO_SignData done [16:20:53]FM_MakeSignedData done [16:20:53]CreateOFDProtocolMessage [16:20:53]wFMCommunicate request_size=4 [16:20:53]MH_SAM_APDU [16:20:53]CAPDU: 80 11 00 00 [16:20:53]Write to MH i2c: E2 08 00 03 5B 80 11 00 00 00 00 00 00 D8 [16:20:53]Write i2c OK [16:20:53]MH_I2C_Read... [16:20:53]Read from MH i2c: E2 [16:20:53]MH_I2C_Read... [16:20:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:53]Read from MH i2c: E2 17 00 [16:20:53]MH_I2C_Read... [16:20:53]Read from MH i2c: E2 17 00 03 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 2F [16:20:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:20:53]wFMCommunicate OK [16:20:53]CreateOFDProtocolMessage done [16:20:53]OFDSenderStorePacket 92647 [16:20:53]StoreOFDPacket docnum=92647 [16:20:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 F3 01 00 00 F2 2C EB 01 8D 6F 5A 03 01 00 03 00 DF 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 08 00 34 36 31 32 33 34 32 38 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 57 69 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 A5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 11 00 00 00 00 07 04 06 00 A0 A5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 6C 09 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E7 69 01 00 35 04 06 00 65 7B 55 E9 24 6E 1E AD E7 69 C4 15 E0 39 [16:20:53]CheckFolder [16:20:53]dirname=/storage/ofd_packets [16:20:53]CheckFolder done [16:20:53]ProducePacketName [16:20:53]name=ofd_packets/00092647 [16:20:53]NVStorageSaveData ofd_packets/00092647 [16:20:53]File name is /storage/ofd_packets/00092647 [16:20:53]Write 529 bytes [16:20:53]NVStorageSaveData done [16:20:53]OFDSenderStorePacket done [16:20:53]KKMCreateOFDPacket done [16:20:53]NVStorageSaveData kkm_last_timestamp [16:20:53]File name is /storage/kkm_last_timestamp [16:20:53]Write 4 bytes [16:20:53]NVStorageSaveData done [16:20:53]ExternCall_PrintAddStr [16:20:53]wPrintStart [16:20:53]Write to MH i2c: 01 00 00 04 5B 5F [16:20:53]Write i2c OK [16:20:53]MH_I2C_Read... [16:20:53]Read from MH i2c: 01 [16:20:53]MH_I2C_Read... [16:20:53]Read from MH i2c: 01 07 00 [16:20:53]MH_I2C_Read... [16:20:53]Read from MH i2c: 01 07 00 04 5B 00 00 00 00 00 FF 0F 74 [16:20:53]RasterBufferAndPrint [16:20:53]line Счет N : (3)127536 [16:20:53]line ИНН: 02508201610067 [16:20:53]line Контрольно-Кассовый Чек [16:20:53]line ПРОДАЖА [16:20:53]line Товар: 4700000160211 [16:20:53]line Вода Легенда 0,5л [16:20:53]line 2.000 * 40.00 [16:20:53]line = 80.00 [16:20:53]line НДС 12% НСП 1% [16:20:53]line > о реализуемом товаре [16:20:53]line Товар: 46123428 [16:20:53]line Сигареты Mevius Wind Blue [16:20:53]line 1.000 * 159.00 [16:20:53]line = 159.00 [16:20:53]line НДС 12% НСП 1% [16:20:53]line > о реализуемом товаре [16:20:53]line Товар: 90162602 [16:20:53]line Энерг напиток Red bull 0,25л [16:20:53]line 1.000 * 185.00 [16:20:53]line = 185.00 [16:20:53]line НДС 12% НСП 1% [16:20:53]line > о реализуемом товаре [16:20:53]line ИТОГО: 424.00 [16:20:53]line НСП 1% : 3.76 [16:20:53]line НДС 12% : 45.03 [16:20:53]line Наличными: 424.00 [16:20:53]line Безнал.: 0.00 [16:20:53]line Место: АЗС № 5 "Партнер Нефть" [16:20:53]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [16:20:53]line СНО: Общий режим [16:20:53]line Чек 95 15.09.2024 16:21 [16:20:53]line Смена: 507 ФФД: 1.0 [16:20:53]line ЗНМ: 03000000022 [16:20:53]line РНМ: 0000000000091423 [16:20:53]line Версия ККМ: 001 [16:20:53]line ФМ: 0000000000874692 [16:20:53]line ФД: 92647 [16:20:53]line ФПД: 111580396725358 [16:20:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T162100&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92647&fm=111580396725358&tin=02508201610067®Number=0000000000091423&sum=42400 [16:20:53]OFD Sender: Processing packet 92647 [packets to send 63, broken 62] [16:20:53]ProducePacketName [16:20:53]name=ofd_packets/00092647 [16:20:53]OFD Sender: To server: pG, [16:20:53]CommunicateWithHost lk.salyk.kg:30040 [16:20:53]ConnectInit lk.salyk.kg [16:20:53]Connected sock=10 [16:20:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 F3 01 00 00 F2 2C EB 01 8D 6F 5A 03 01 00 03 00 DF 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 08 00 34 36 31 32 33 34 32 38 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 57 69 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 A5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 11 00 00 00 00 07 04 06 00 A0 A5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 6C 09 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 line 0 [16:20:53]04 04 00 E7 69 01 00 35 04 06 00 65 7B 55 E9 24 6E 1E AD E7 69 C4 15 E0 39 [16:20:53]written 0, free lines is 4095 [16:20:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 69 F3 47 00 32 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E7 69 01 00 F4 03 04 00 E4 B1 E6 66 B6 04 01 00 00 6D 3B 49 3A 37 A5 92 74 [16:20:53]CommunicateWithHost err = 0 [16:20:53]CheckOFDResponse [16:20:53]1017 (14) - 77093643461234 [16:20:53]1041 (16) - 0000000000874692 [16:20:53]1040 (4) - 92647 [16:20:53]1012 (4) - 15.09.2024 10:07 [16:20:53]1206 (1) - 0 [16:20:53]OFD Sender: Remove packet 92647 [16:20:53]ProducePacketName [16:20:53]name=ofd_packets/00092647 [16:20:53]NVStorageDeleteData [16:20:54]Write to MH i2c: 01 00 00 38 5B 93 [16:20:54]Write i2c OK [16:20:54]MH_I2C_Read... [16:20:54]Read from MH i2c: 01 [16:20:54]MH_I2C_Read... [16:20:54]Read from MH i2c: 01 07 00 [16:20:54]MH_I2C_Read... [16:20:54]Read from MH i2c: 01 07 00 38 5B 00 00 00 00 00 8C 0C 32 [16:20:54]RasterBufferAndPrint [16:20:54]line [16:20:54]line [16:20:54]line [16:20:54]line [16:20:54]line [16:20:54]written 0, free lines is 3219 [16:20:54]MH_Cut [16:20:54]Write to MH i2c: D1 01 00 3F 5B 01 6C [16:20:54]Write i2c OK [16:20:54]MH_I2C_Read... [16:20:54]Read from MH i2c: D1 [16:20:54]MH_I2C_Read... [16:20:54]Read from MH i2c: D1 01 00 [16:20:54]MH_I2C_Read... [16:20:54]Read from MH i2c: D1 01 00 3F 5B 00 6B [16:20:54]Write to MH i2c: 01 00 00 40 5B 9B [16:20:54]Write i2c OK [16:20:54]MH_I2C_Read... [16:20:54]OFD Sender: No OFD packet to send [16:20:54]*** Cut start [16:20:54]*** Purtial cut [16:20:54]*** Stage 1: CUTSNS_PIN = 1 [16:20:56]Read from MH i2c: 01 [16:20:56]MH_I2C_Read... [16:20:56]*** Stop cut motor [16:20:56]*** Cut end [16:20:56]Read from MH i2c: 01 07 00 [16:20:56]MH_I2C_Read... [16:20:56]Read from MH i2c: 01 07 00 40 5B 00 00 00 00 00 FF 0F B0 [16:20:56]process_action close_receipt done [16:20:56]requested_data is exist [16:20:56]produce_requested_data [16:20:56]requested_item fm.sn is exist - process it [16:20:56]wFMCommunicate request_size=4 [16:20:56]MH_SAM_APDU [16:20:56]CAPDU: 80 11 00 00 [16:20:56]Write to MH i2c: E2 08 00 41 5B 80 11 00 00 00 00 00 00 16 [16:20:56]Write i2c OK [16:20:56]MH_I2C_Read... [16:20:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:56]Read from MH i2c: E2 [16:20:56]MH_I2C_Read... [16:20:56]Read from MH i2c: E2 17 00 [16:20:56]MH_I2C_Read... [16:20:56]Read from MH i2c: E2 17 00 41 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 6D [16:20:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:20:56]wFMCommunicate OK [16:20:56]requested_item fd.num is exist - process it [16:20:56]SAM_PROTO_GetFieldsCounters [16:20:56]wFMCommunicate request_size=4 [16:20:56]MH_SAM_APDU [16:20:56]CAPDU: 80 13 00 00 [16:20:56]Write to MH i2c: E2 08 00 42 5B 80 13 00 00 00 00 00 00 19 [16:20:56]Write i2c OK [16:20:56]MH_I2C_Read... [16:20:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:20:56]Read from MH i2c: E2 [16:20:56]MH_I2C_Read... [16:20:56]Read from MH i2c: E2 62 00 [16:20:56]MH_I2C_Read... [16:20:57]Read from MH i2c: E2 62 00 42 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E7 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [16:20:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E7 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:20:57]wFMCommunicate OK [16:20:57]SAM_PROTO_GetFieldsCounters done [16:20:57]requested_item shift.num is exist - process it [16:20:57]requested_item shift.opened is exist - process it [16:20:57]req_shift_opened [16:20:57]FM_GetShiftState [16:20:57]SAM_PROTO_GetShiftState [16:20:57]wFMCommunicate request_size=4 [16:20:57]MH_SAM_APDU [16:20:57]CAPDU: 80 13 01 00 [16:20:57]Write to MH i2c: E2 08 00 43 5B 80 13 01 00 00 00 00 00 1B [16:20:57]Write i2c OK [16:20:57]MH_I2C_Read... [16:20:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:57]Read from MH i2c: E2 [16:20:57]MH_I2C_Read... [16:20:57]Read from MH i2c: E2 0E 00 [16:20:57]MH_I2C_Read... [16:20:57]Read from MH i2c: E2 0E 00 43 5B 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 9D [16:20:57]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [16:20:57]wFMCommunicate OK [16:20:57]SAM_PROTO_GetShiftState done [16:20:57]FM_GetShiftState done [16:20:57]req_shift_opened done [16:20:57]requested_item shift.open_date is exist - process it [16:20:57]req_shift_open_date [16:20:57]req_shift_open_date done [16:20:57]produce_requested_data done [16:20:57]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92647,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [16:20:57]process_action_free close_receipt [16:20:57]json_value_free [16:20:57]json_value_free done [16:20:57]process_json_proto returns [16:20:57]Send response to host [16:20:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92647,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [16:20:57]free response buf [16:20:57]execute_script done [16:20:57]execute_script returns [16:20:57]free content buf [16:20:57]Sock 8.Close socket [16:20:57]Sock 8.Thread stoped [16:20:59]OFD Sender: No OFD packet to send [16:21:04]OFD Sender: No OFD packet to send [16:21:09]OFD Sender: No OFD packet to send [16:21:14]OFD Sender: No OFD packet to send [16:21:19]OFD Sender: No OFD packet to send [16:21:24]OFD Sender: No OFD packet to send [16:21:29]OFD Sender: No OFD packet to send [16:21:34]OFD Sender: No OFD packet to send [16:21:39]OFD Sender: No OFD packet to send [16:21:44]OFD Sender: No OFD packet to send [16:21:49]OFD Sender: No OFD packet to send [16:21:54]OFD Sender: No OFD packet to send [16:21:59]OFD Sender: No OFD packet to send [16:22:04]OFD Sender: No OFD packet to send [16:22:09]OFD Sender: No OFD packet to send [16:22:14]OFD Sender: No OFD packet to send [16:22:19]OFD Sender: No OFD packet to send [16:22:24]OFD Sender: No OFD packet to send [16:22:29]OFD Sender: No OFD packet to send [16:22:29]accept exits with 9 [16:22:29]New connection [16:22:29]New thread 3066658148 created [16:22:29]Thread 3066801508 joined [16:22:29]Waiting for new connection... [16:22:29] Sock 9.Parse request [16:22:29]Sock 9.Check first char [16:22:29]Sock 9.First char is OK [16:22:29]request: POST /json_proto HTTP/1.0 [16:22:29]Method: POST [16:22:29]URL: /json_proto [16:22:29]Method is POST - this is cgi request [16:22:29]url: /json_proto [16:22:29]query_string will be loaded in cgi processing [16:22:29]execute_cgi json_proto POST (null) [16:22:29]execute_cgi path=json_proto method=POST [16:22:29]POST find Content-Length [16:22:29]Host: 172.17.57.71:8080 [16:22:29]Content-Length: 867 [16:22:29]Content-Type: application/json [16:22:29] [16:22:29]POST finish read [16:22:29]Found Content-Length = 867 [16:22:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127537", "tax_sys" : 0, "items" : [ { "code": "4870202522695", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 0,450", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:29]execute_script... [16:22:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127537", "tax_sys" : 0, "items" : [ { "code": "4870202522695", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 0,450", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:29]POST & json_proto [16:22:29]process_json_proto [16:22:29]json parsed OK: [16:22:29]protocol is kg_v1.0 [16:22:29]action value=close_receipt [16:22:29]process_action close_receipt [16:22:29]cmd_close_receipt [16:22:29]MH_GetDate [16:22:29]Write to MH i2c: F0 00 00 44 5B 8E [16:22:29]Write i2c OK [16:22:29]MH_I2C_Read... [16:22:29]Read from MH i2c: F0 [16:22:29]MH_I2C_Read... [16:22:29]Read from MH i2c: F0 09 00 [16:22:29]MH_I2C_Read... [16:22:29]Read from MH i2c: F0 09 00 44 5B 00 CE 09 E7 66 33 3A A4 66 32 [16:22:29]GetLastDocTimeStamp 1726417260 [16:22:29]current date 1726417358 [16:22:29]FM_GetShiftState [16:22:29]SAM_PROTO_GetShiftState [16:22:29]wFMCommunicate request_size=4 [16:22:29]MH_SAM_APDU [16:22:29]CAPDU: 80 13 01 00 [16:22:29]Write to MH i2c: E2 08 00 45 5B 80 13 01 00 00 00 00 00 1D [16:22:29]Write i2c OK [16:22:29]MH_I2C_Read... [16:22:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:29]Read from MH i2c: E2 [16:22:29]MH_I2C_Read... [16:22:29]Read from MH i2c: E2 0E 00 [16:22:29]MH_I2C_Read... [16:22:29]Read from MH i2c: E2 0E 00 45 5B 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 9F [16:22:29]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [16:22:29]wFMCommunicate OK [16:22:29]SAM_PROTO_GetShiftState done [16:22:29]FM_GetShiftState done [16:22:29]opened in 1726359809 [16:22:29]opened+sec_in_day 1726446209 [16:22:29]quantity*price = 7000 [16:22:29]sum+1 = 7001 [16:22:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 0.00 Безнал.: 70.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 96 15.09.2024 16:22 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92648 ФПД: 104738339045868 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T162238&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92648&fm=104738339045868&tin=02508201610067®Number=0000000000091423&sum=7000 0 [16:22:30]StoreToDocumentArchive [16:22:30]shift 507 fd 92648 [16:22:30]save to /storage/0507/doc_00092648 [16:22:30]save last doc name /storage/0507/doc_00092648 to /storage/kkm_last_doc_name [16:22:30]save OK [16:22:30]Clear old archive folders... [16:22:30]ProcessDocumentItem done err = 0, tmpTLVsize=300 [16:22:30]tlvbuf is 010D6C90 [16:22:30]SAM_PROTO_ClearQueue [16:22:30]wFMCommunicate request_size=4 [16:22:30]MH_SAM_APDU [16:22:30]CAPDU: 80 09 00 00 [16:22:30]Write to MH i2c: E2 08 00 52 5B 80 09 00 00 00 00 00 00 1F [16:22:30]Write i2c OK [16:22:30]MH_I2C_Read... [16:22:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:30]Read from MH i2c: E2 [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: E2 03 00 [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: E2 03 00 52 5B 00 90 00 21 [16:22:30]RAPDU: 90 00 [16:22:30]wFMCommunicate OK [16:22:30]SAM_PROTO_ClearQueue done [16:22:30]KKMCreateOFDPacket [16:22:30]OFDProtocolAddRootSTLVToBuf [16:22:30]FM_MakeSignedData [16:22:30]FM_MakeSignedData [16:22:30]SAM_PROTO_SignData [16:22:30]wFMCommunicate request_size=4 [16:22:30]MH_SAM_APDU [16:22:30]CAPDU: 80 0D 01 02 [16:22:30]Write to MH i2c: E2 08 00 53 5B 80 0D 01 02 00 00 00 00 27 [16:22:30]Write i2c OK [16:22:30]MH_I2C_Read... [16:22:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:30]Read from MH i2c: E2 [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: E2 03 00 [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: E2 03 00 53 5B 00 90 00 22 [16:22:30]RAPDU: 90 00 [16:22:30]wFMCommunicate OK [16:22:30]wFMCommunicate request_size=255 [16:22:30]MH_SAM_APDU [16:22:30]CAPDU: 80 0D 02 02 FA 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 39 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 34 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 CE 09 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 [16:22:30]Write to MH i2c: E2 02 01 54 5B 80 0D 02 02 FA 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 39 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 34 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 CE 09 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 00 00 63 [16:22:30]Write i2c OK [16:22:30]MH_I2C_Read... [16:22:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:30]Read from MH i2c: E2 [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: E2 03 00 [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: E2 03 00 54 5B 00 90 00 23 [16:22:30]RAPDU: 90 00 [16:22:30]wFMCommunicate OK [16:22:30]wFMCommunicate request_size=59 [16:22:30]MH_SAM_APDU [16:22:30]CAPDU: 80 0D 02 02 36 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E8 69 01 00 35 04 06 00 5F 42 4B 7E 41 EC [16:22:30]Write to MH i2c: E2 3E 00 55 5B 80 0D 02 02 36 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E8 69 01 00 35 04 06 00 5F 42 4B 7E 41 EC 00 00 32 [16:22:30]Write i2c OK [16:22:30]MH_I2C_Read... [16:22:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:31]Read from MH i2c: E2 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: E2 03 00 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: E2 03 00 55 5B 00 90 00 24 [16:22:31]RAPDU: 90 00 [16:22:31]wFMCommunicate OK [16:22:31]wFMCommunicate request_size=4 [16:22:31]MH_SAM_APDU [16:22:31]CAPDU: 80 0D 03 02 [16:22:31]Write to MH i2c: E2 08 00 56 5B 80 0D 03 02 00 00 00 00 2C [16:22:31]Write i2c OK [16:22:31]MH_I2C_Read... [16:22:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:31]Read from MH i2c: E2 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: E2 0B 00 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: E2 0B 00 56 5B 00 18 60 76 30 19 7E D5 B2 90 00 69 [16:22:31]RAPDU: 18 60 76 30 19 7E D5 B2 90 00 [16:22:31]wFMCommunicate OK [16:22:31]SAM_PROTO_SignData done [16:22:31]FM_MakeSignedData done [16:22:31]CreateOFDProtocolMessage [16:22:31]wFMCommunicate request_size=4 [16:22:31]MH_SAM_APDU [16:22:31]CAPDU: 80 11 00 00 [16:22:31]Write to MH i2c: E2 08 00 57 5B 80 11 00 00 00 00 00 00 2C [16:22:31]Write i2c OK [16:22:31]MH_I2C_Read... [16:22:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:31]Read from MH i2c: E2 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: E2 17 00 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: E2 17 00 57 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 83 [16:22:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:22:31]wFMCommunicate OK [16:22:31]CreateOFDProtocolMessage done [16:22:31]OFDSenderStorePacket 92648 [16:22:31]StoreOFDPacket docnum=92648 [16:22:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 40 01 00 00 2F F0 38 01 18 70 5A 03 01 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 39 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 34 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 CE 09 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E8 69 01 00 35 04 06 00 5F 42 4B 7E 41 EC 18 60 76 30 19 7E D5 B2 [16:22:31]CheckFolder [16:22:31]dirname=/storage/ofd_packets [16:22:31]CheckFolder done [16:22:31]ProducePacketName [16:22:31]name=ofd_packets/00092648 [16:22:31]NVStorageSaveData ofd_packets/00092648 [16:22:31]File name is /storage/ofd_packets/00092648 [16:22:31]Write 350 bytes [16:22:31]NVStorageSaveData done [16:22:31]OFDSenderStorePacket done [16:22:31]KKMCreateOFDPacket done [16:22:31]NVStorageSaveData kkm_last_timestamp [16:22:31]File name is /storage/kkm_last_timestamp [16:22:31]Write 4 bytes [16:22:31]NVStorageSaveData done [16:22:31]ExternCall_PrintAddStr [16:22:31]wPrintStart [16:22:31]Write to MH i2c: 01 00 00 58 5B B3 [16:22:31]Write i2c OK [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: 01 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: 01 07 00 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: 01 07 00 58 5B 00 00 00 00 00 FF 0F C8 [16:22:31]RasterBufferAndPrint [16:22:31]line Счет N : (3)127537 [16:22:31]line ИНН: 02508201610067 [16:22:31]line Контрольно-Кассовый Чек [16:22:31]line ПРОДАЖА [16:22:31]line Товар: 4870202522695 [16:22:31]line Напиток Maxi Чай черный Малина 0,450 [16:22:31]line 1.000 * 70.00 [16:22:31]line = 70.00 [16:22:31]line НДС 12% НСП 1% [16:22:31]line > о реализуемом товаре [16:22:31]line ИТОГО: 70.00 [16:22:31]line НСП 1% : 0.62 [16:22:31]line НДС 12% : 7.43 [16:22:31]line Наличными: 0.00 [16:22:31]line Безнал.: 70.00 [16:22:31]line Место: АЗС № 5 "Партнер Нефть" [16:22:31]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [16:22:31]line СНО: Общий режим [16:22:31]line Чек 96 15.09.2024 16:22 [16:22:31]line Смена: 507 ФФД: 1.0 [16:22:31]line ЗНМ: 03000000022 [16:22:31]line РНМ: 0000000000091423 [16:22:31]line Версия ККМ: 001 [16:22:31]line Платежная система: О! деньги [16:22:31]line ФМ: 0000000000874692 [16:22:31]line ФД: 92648 [16:22:31]line ФПД: 104738339045868 [16:22:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T162238&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92648&fm=104738339045868&tin=02508201610067®Number=0000000000091423&sum=7000 [16:22:31]line 0 [16:22:31]OFD Sender: Processing packet 92648 [packets to send 63, broken 62] [16:22:31]ProducePacketName [16:22:31]name=ofd_packets/00092648 [16:22:31]OFD Sender: To server: pG, [16:22:31]CommunicateWithHost lk.salyk.kg:30040 [16:22:31]ConnectInit lk.salyk.kg [16:22:31]written 0, free lines is 4095 [16:22:31]Connected sock=10 [16:22:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 40 01 00 00 2F F0 38 01 18 70 5A 03 01 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 39 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 34 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 CE 09 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E8 69 01 00 35 04 06 00 5F 42 4B 7E 41 EC 18 60 76 30 19 7E D5 B2 [16:22:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 9D 1F 47 00 58 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E8 69 01 00 F4 03 04 00 46 B2 E6 66 B6 04 01 00 00 5D CB 0F B6 59 41 88 F5 [16:22:31]CommunicateWithHost err = 0 [16:22:31]CheckOFDResponse [16:22:31]1017 (14) - 77093643461234 [16:22:31]1041 (16) - 0000000000874692 [16:22:31]1040 (4) - 92648 [16:22:31]1012 (4) - 15.09.2024 10:09 [16:22:31]1206 (1) - 0 [16:22:31]OFD Sender: Remove packet 92648 [16:22:31]ProducePacketName [16:22:31]name=ofd_packets/00092648 [16:22:31]NVStorageDeleteData [16:22:31]Write to MH i2c: 01 00 00 83 5B DE [16:22:31]Write i2c OK [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: 01 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: 01 07 00 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: 01 07 00 83 5B 00 00 00 00 00 FD 0C EE [16:22:31]RasterBufferAndPrint [16:22:31]line [16:22:31]line [16:22:31]line [16:22:31]line [16:22:31]line [16:22:31]written 0, free lines is 3333 [16:22:31]MH_Cut [16:22:31]Write to MH i2c: D1 01 00 8A 5B 01 B7 [16:22:31]Write i2c OK [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: D1 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: D1 01 00 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: D1 01 00 8A 5B 00 B6 [16:22:31]Write to MH i2c: 01 00 00 8B 5B E6 [16:22:31]Write i2c OK [16:22:31]MH_I2C_Read... [16:22:32]OFD Sender: No OFD packet to send [16:22:32]*** Cut start [16:22:32]*** Purtial cut [16:22:32]*** Stage 1: CUTSNS_PIN = 1 [16:22:34]Read from MH i2c: 01 [16:22:34]MH_I2C_Read... [16:22:34]*** Stop cut motor [16:22:34]*** Cut end [16:22:34]Read from MH i2c: 01 07 00 [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: 01 07 00 8B 5B 00 00 00 00 00 FF 0F FB [16:22:34]process_action close_receipt done [16:22:34]requested_data is exist [16:22:34]produce_requested_data [16:22:34]requested_item fm.sn is exist - process it [16:22:34]wFMCommunicate request_size=4 [16:22:34]MH_SAM_APDU [16:22:34]CAPDU: 80 11 00 00 [16:22:34]Write to MH i2c: E2 08 00 8C 5B 80 11 00 00 00 00 00 00 61 [16:22:34]Write i2c OK [16:22:34]MH_I2C_Read... [16:22:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:34]Read from MH i2c: E2 [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: E2 17 00 [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: E2 17 00 8C 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B8 [16:22:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:22:34]wFMCommunicate OK [16:22:34]requested_item fd.num is exist - process it [16:22:34]SAM_PROTO_GetFieldsCounters [16:22:34]wFMCommunicate request_size=4 [16:22:34]MH_SAM_APDU [16:22:34]CAPDU: 80 13 00 00 [16:22:34]Write to MH i2c: E2 08 00 8D 5B 80 13 00 00 00 00 00 00 64 [16:22:34]Write i2c OK [16:22:34]MH_I2C_Read... [16:22:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:34]Read from MH i2c: E2 [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: E2 62 00 [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: E2 62 00 8D 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E8 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [16:22:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E8 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:22:34]wFMCommunicate OK [16:22:34]SAM_PROTO_GetFieldsCounters done [16:22:34]requested_item shift.num is exist - process it [16:22:34]requested_item shift.opened is exist - process it [16:22:34]req_shift_opened [16:22:34]FM_GetShiftState [16:22:34]SAM_PROTO_GetShiftState [16:22:34]wFMCommunicate request_size=4 [16:22:34]MH_SAM_APDU [16:22:34]CAPDU: 80 13 01 00 [16:22:34]Write to MH i2c: E2 08 00 8E 5B 80 13 01 00 00 00 00 00 66 [16:22:34]Write i2c OK [16:22:34]MH_I2C_Read... [16:22:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:34]Read from MH i2c: E2 [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: E2 0E 00 [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: E2 0E 00 8E 5B 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 E8 [16:22:34]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [16:22:34]wFMCommunicate OK [16:22:34]SAM_PROTO_GetShiftState done [16:22:34]FM_GetShiftState done [16:22:34]req_shift_opened done [16:22:34]requested_item shift.open_date is exist - process it [16:22:34]req_shift_open_date [16:22:34]req_shift_open_date done [16:22:34]produce_requested_data done [16:22:34]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92648,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [16:22:34]process_action_free close_receipt [16:22:34]json_value_free [16:22:34]json_value_free done [16:22:34]process_json_proto returns [16:22:34]Send response to host [16:22:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92648,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [16:22:34]free response buf [16:22:34]execute_script done [16:22:34]execute_script returns [16:22:34]free content buf [16:22:34]Sock 9.Close socket [16:22:34]Sock 9.Thread stoped [16:22:37]OFD Sender: No OFD packet to send [16:22:42]OFD Sender: No OFD packet to send [16:22:47]OFD Sender: No OFD packet to send [16:22:52]OFD Sender: No OFD packet to send [16:22:57]OFD Sender: No OFD packet to send [16:23:02]OFD Sender: No OFD packet to send [16:23:07]OFD Sender: No OFD packet to send [16:23:12]OFD Sender: No OFD packet to send [16:23:17]OFD Sender: No OFD packet to send [16:23:22]OFD Sender: No OFD packet to send [16:23:27]OFD Sender: No OFD packet to send [16:23:32]OFD Sender: No OFD packet to send [16:23:37]OFD Sender: No OFD packet to send [16:23:42]OFD Sender: No OFD packet to send [16:23:47]OFD Sender: No OFD packet to send [16:23:52]OFD Sender: No OFD packet to send [16:23:57]OFD Sender: No OFD packet to send [16:24:02]OFD Sender: No OFD packet to send [16:24:07]OFD Sender: No OFD packet to send [16:24:12]OFD Sender: No OFD packet to send [16:24:17]OFD Sender: No OFD packet to send [16:24:22]OFD Sender: No OFD packet to send [16:24:27]OFD Sender: No OFD packet to send [16:24:32]OFD Sender: No OFD packet to send [16:24:37]OFD Sender: No OFD packet to send [16:24:42]OFD Sender: No OFD packet to send [16:24:47]OFD Sender: No OFD packet to send [16:24:52]OFD Sender: No OFD packet to send [16:24:57]OFD Sender: No OFD packet to send [16:25:02]OFD Sender: No OFD packet to send [16:25:07]OFD Sender: No OFD packet to send [16:25:12]OFD Sender: No OFD packet to send [16:25:17]OFD Sender: No OFD packet to send [16:25:22]OFD Sender: No OFD packet to send [16:25:27]OFD Sender: No OFD packet to send [16:25:32]OFD Sender: No OFD packet to send [16:25:37]OFD Sender: No OFD packet to send [16:25:42]OFD Sender: No OFD packet to send [16:25:47]OFD Sender: No OFD packet to send [16:25:52]OFD Sender: No OFD packet to send [16:25:57]OFD Sender: No OFD packet to send [16:26:02]OFD Sender: No OFD packet to send [16:26:07]OFD Sender: No OFD packet to send [16:26:12]OFD Sender: No OFD packet to send [16:26:17]OFD Sender: No OFD packet to send [16:26:22]OFD Sender: No OFD packet to send [16:26:27]OFD Sender: No OFD packet to send [16:26:32]OFD Sender: No OFD packet to send [16:26:37]OFD Sender: No OFD packet to send [16:26:42]OFD Sender: No OFD packet to send [16:26:47]OFD Sender: No OFD packet to send [16:26:52]OFD Sender: No OFD packet to send [16:26:57]OFD Sender: No OFD packet to send [16:27:02]OFD Sender: No OFD packet to send [16:27:07]OFD Sender: No OFD packet to send [16:27:12]OFD Sender: No OFD packet to send [16:27:17]OFD Sender: No OFD packet to send [16:27:22]OFD Sender: No OFD packet to send [16:27:27]OFD Sender: No OFD packet to send [16:27:32]OFD Sender: No OFD packet to send [16:27:37]OFD Sender: No OFD packet to send [16:27:42]OFD Sender: No OFD packet to send [16:27:47]OFD Sender: No OFD packet to send [16:27:52]OFD Sender: No OFD packet to send [16:27:57]OFD Sender: No OFD packet to send [16:28:02]OFD Sender: No OFD packet to send [16:28:07]OFD Sender: No OFD packet to send [16:28:12]OFD Sender: No OFD packet to send [16:28:17]OFD Sender: No OFD packet to send [16:28:22]OFD Sender: No OFD packet to send [16:28:27]OFD Sender: No OFD packet to send [16:28:32]OFD Sender: No OFD packet to send [16:28:37]OFD Sender: No OFD packet to send [16:28:42]OFD Sender: No OFD packet to send [16:28:47]OFD Sender: No OFD packet to send [16:28:52]OFD Sender: No OFD packet to send [16:28:57]OFD Sender: No OFD packet to send [16:29:02]OFD Sender: No OFD packet to send [16:29:07]OFD Sender: No OFD packet to send [16:29:12]OFD Sender: No OFD packet to send [16:29:17]OFD Sender: No OFD packet to send [16:29:22]OFD Sender: No OFD packet to send [16:29:27]OFD Sender: No OFD packet to send [16:29:32]OFD Sender: No OFD packet to send [16:29:37]OFD Sender: No OFD packet to send [16:29:42]OFD Sender: No OFD packet to send [16:29:47]OFD Sender: No OFD packet to send [16:29:52]OFD Sender: No OFD packet to send [16:29:57]OFD Sender: No OFD packet to send [16:30:02]OFD Sender: No OFD packet to send [16:30:07]OFD Sender: No OFD packet to send [16:30:12]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [16:30:32]OFD Sender: No OFD packet to send [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:52]OFD Sender: No OFD packet to send [16:30:57]OFD Sender: No OFD packet to send [16:31:02]OFD Sender: No OFD packet to send [16:31:07]OFD Sender: No OFD packet to send [16:31:12]OFD Sender: No OFD packet to send [16:31:17]OFD Sender: No OFD packet to send [16:31:22]OFD Sender: No OFD packet to send [16:31:27]OFD Sender: No OFD packet to send [16:31:32]OFD Sender: No OFD packet to send [16:31:37]OFD Sender: No OFD packet to send [16:31:42]OFD Sender: No OFD packet to send [16:31:47]OFD Sender: No OFD packet to send [16:31:52]OFD Sender: No OFD packet to send [16:31:57]OFD Sender: No OFD packet to send [16:32:02]OFD Sender: No OFD packet to send [16:32:07]OFD Sender: No OFD packet to send [16:32:12]OFD Sender: No OFD packet to send [16:32:17]OFD Sender: No OFD packet to send [16:32:22]OFD Sender: No OFD packet to send [16:32:27]OFD Sender: No OFD packet to send [16:32:32]OFD Sender: No OFD packet to send [16:32:37]OFD Sender: No OFD packet to send [16:32:42]OFD Sender: No OFD packet to send [16:32:47]OFD Sender: No OFD packet to send [16:32:52]OFD Sender: No OFD packet to send [16:32:57]OFD Sender: No OFD packet to send [16:33:02]OFD Sender: No OFD packet to send [16:33:07]OFD Sender: No OFD packet to send [16:33:12]OFD Sender: No OFD packet to send [16:33:17]OFD Sender: No OFD packet to send [16:33:22]OFD Sender: No OFD packet to send [16:33:27]OFD Sender: No OFD packet to send [16:33:32]OFD Sender: No OFD packet to send [16:33:37]OFD Sender: No OFD packet to send [16:33:42]OFD Sender: No OFD packet to send [16:33:47]OFD Sender: No OFD packet to send [16:33:52]OFD Sender: No OFD packet to send [16:33:57]OFD Sender: No OFD packet to send [16:34:02]OFD Sender: No OFD packet to send [16:34:07]OFD Sender: No OFD packet to send [16:34:12]OFD Sender: No OFD packet to send [16:34:17]OFD Sender: No OFD packet to send [16:34:22]OFD Sender: No OFD packet to send [16:34:27]OFD Sender: No OFD packet to send [16:34:32]OFD Sender: No OFD packet to send [16:34:37]OFD Sender: No OFD packet to send [16:34:42]OFD Sender: No OFD packet to send [16:34:47]OFD Sender: No OFD packet to send [16:34:52]OFD Sender: No OFD packet to send [16:34:57]OFD Sender: No OFD packet to send [16:35:02]OFD Sender: No OFD packet to send [16:35:07]accept exits with 8 [16:35:07]New connection [16:35:07]New thread 3066801508 created [16:35:07]Thread 3066658148 joined [16:35:07]Waiting for new connection... [16:35:07] Sock 8.Parse request [16:35:07]Sock 8.Check first char [16:35:07]Sock 8.First char is OK [16:35:07]request: POST /json_proto HTTP/1.0 [16:35:07]Method: POST [16:35:07]URL: /json_proto [16:35:07]Method is POST - this is cgi request [16:35:07]url: /json_proto [16:35:07]query_string will be loaded in cgi processing [16:35:07]execute_cgi json_proto POST (null) [16:35:07]execute_cgi path=json_proto method=POST [16:35:07]POST find Content-Length [16:35:07]Host: 172.17.57.71:8080 [16:35:07]Content-Length: 922 [16:35:07]Content-Type: application/json [16:35:07] [16:35:07]POST finish read [16:35:07]Found Content-Length = 922 [16:35:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127538", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 185.00, "quantity" : 2.000, "sum" : 370.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001154059", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u0437\u0435\u043B \u0447\u0430\u0439", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 445.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:07]execute_script... [16:35:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127538", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 185.00, "quantity" : 2.000, "sum" : 370.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001154059", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u0437\u0435\u043B \u0447\u0430\u0439", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 445.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:07]POST & json_proto [16:35:07]process_json_proto [16:35:07]json parsed OK: [16:35:07]protocol is kg_v1.0 [16:35:07]action value=close_receipt [16:35:07]process_action close_receipt [16:35:07]cmd_close_receipt [16:35:07]MH_GetDate [16:35:07]Write to MH i2c: F0 00 00 8F 5B D9 [16:35:07]Write i2c OK [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: F0 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: F0 09 00 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: F0 09 00 8F 5B 00 C5 0C E7 66 33 3A A4 66 77 [16:35:07]GetLastDocTimeStamp 1726417358 [16:35:07]current date 1726418117 [16:35:07]FM_GetShiftState [16:35:07]SAM_PROTO_GetShiftState [16:35:07]wFMCommunicate request_size=4 [16:35:07]MH_SAM_APDU [16:35:07]CAPDU: 80 13 01 00 [16:35:07]Write to MH i2c: E2 08 00 90 5B 80 13 01 00 00 00 00 00 68 [16:35:07]Write i2c OK [16:35:07]MH_I2C_Read... [16:35:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:07]Read from MH i2c: E2 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: E2 0E 00 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: E2 0E 00 90 5B 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 EA [16:35:07]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [16:35:07]wFMCommunicate OK [16:35:07]SAM_PROTO_GetShiftState done [16:35:07]FM_GetShiftState done [16:35:07]opened in 1726359809 [16:35:07]opened+sec_in_day 1726446209 [16:35:07]quantity*price = 37000 [16:35:07]sum+1 = 37001 [16:35:07]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001154059 Напиток Lipton IceTea 0,5л зел чай 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 445.00 НСП 1% : 3.93 НДС 12% : 47.25 Наличными: 445.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 97 15.09.2024 16:35 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92649 ФПД: 137480450411708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T163517&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92649&fm=137480450411708&tin=02508201610067®Number=0000000000091423&sum=44500 0 [16:35:08]StoreToDocumentArchive [16:35:08]shift 507 fd 92649 [16:35:08]save to /storage/0507/doc_00092649 [16:35:08]save last doc name /storage/0507/doc_00092649 to /storage/kkm_last_doc_name [16:35:08]save OK [16:35:08]Clear old archive folders... [16:35:08]ProcessDocumentItem done err = 0, tmpTLVsize=398 [16:35:08]tlvbuf is 01032580 [16:35:08]SAM_PROTO_ClearQueue [16:35:08]wFMCommunicate request_size=4 [16:35:08]MH_SAM_APDU [16:35:08]CAPDU: 80 09 00 00 [16:35:08]Write to MH i2c: E2 08 00 9D 5B 80 09 00 00 00 00 00 00 6A [16:35:08]Write i2c OK [16:35:08]MH_I2C_Read... [16:35:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:35:08]Read from MH i2c: E2 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 03 00 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 03 00 9D 5B 00 90 00 6C [16:35:08]RAPDU: 90 00 [16:35:08]wFMCommunicate OK [16:35:08]SAM_PROTO_ClearQueue done [16:35:08]KKMCreateOFDPacket [16:35:08]OFDProtocolAddRootSTLVToBuf [16:35:08]FM_MakeSignedData [16:35:08]FM_MakeSignedData [16:35:08]SAM_PROTO_SignData [16:35:08]wFMCommunicate request_size=4 [16:35:08]MH_SAM_APDU [16:35:08]CAPDU: 80 0D 01 02 [16:35:08]Write to MH i2c: E2 08 00 9E 5B 80 0D 01 02 00 00 00 00 72 [16:35:08]Write i2c OK [16:35:08]MH_I2C_Read... [16:35:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:35:08]Read from MH i2c: E2 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 03 00 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 03 00 9E 5B 00 90 00 6D [16:35:08]RAPDU: 90 00 [16:35:08]wFMCommunicate OK [16:35:08]wFMCommunicate request_size=255 [16:35:08]MH_SAM_APDU [16:35:08]CAPDU: 80 0D 02 02 FA 03 00 8E 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 88 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 AD 00 00 00 00 EB 03 26 [16:35:08]Write to MH i2c: E2 02 01 9F 5B 80 0D 02 02 FA 00 03 00 8E 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 88 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 AD 00 00 00 00 EB 03 26 00 00 7B [16:35:09]Write i2c OK [16:35:09]MH_I2C_Read... [16:35:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:09]Read from MH i2c: E2 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: E2 03 00 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: E2 03 00 9F 5B 00 90 00 6E [16:35:09]RAPDU: 90 00 [16:35:09]wFMCommunicate OK [16:35:09]wFMCommunicate request_size=157 [16:35:09]MH_SAM_APDU [16:35:09]CAPDU: 80 0D 02 02 98 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 12 00 00 00 00 07 04 06 00 D4 AD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 C5 0C E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E9 69 01 00 35 04 06 00 7D 09 A9 69 0C BC [16:35:09]Write to MH i2c: E2 A0 00 A0 5B 80 0D 02 02 98 00 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 12 00 00 00 00 07 04 06 00 D4 AD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 C5 0C E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E9 69 01 00 35 04 06 00 7D 09 A9 69 0C BC 00 00 8C [16:35:09]Write i2c OK [16:35:09]MH_I2C_Read... [16:35:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:09]Read from MH i2c: E2 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: E2 03 00 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: E2 03 00 A0 5B 00 90 00 6F [16:35:09]RAPDU: 90 00 [16:35:09]wFMCommunicate OK [16:35:09]wFMCommunicate request_size=4 [16:35:09]MH_SAM_APDU [16:35:09]CAPDU: 80 0D 03 02 [16:35:09]Write to MH i2c: E2 08 00 A1 5B 80 0D 03 02 00 00 00 00 77 [16:35:09]Write i2c OK [16:35:09]MH_I2C_Read... [16:35:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:35:09]Read from MH i2c: E2 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: E2 0B 00 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: E2 0B 00 A1 5B 00 39 6D 9C F5 1A 94 BE A5 90 00 C0 [16:35:09]RAPDU: 39 6D 9C F5 1A 94 BE A5 90 00 [16:35:09]wFMCommunicate OK [16:35:09]SAM_PROTO_SignData done [16:35:09]FM_MakeSignedData done [16:35:09]CreateOFDProtocolMessage [16:35:09]wFMCommunicate request_size=4 [16:35:09]MH_SAM_APDU [16:35:09]CAPDU: 80 11 00 00 [16:35:09]Write to MH i2c: E2 08 00 A2 5B 80 11 00 00 00 00 00 00 77 [16:35:09]Write i2c OK [16:35:09]MH_I2C_Read... [16:35:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:09]Read from MH i2c: E2 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: E2 17 00 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: E2 17 00 A2 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 CE [16:35:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:35:09]wFMCommunicate OK [16:35:09]CreateOFDProtocolMessage done [16:35:09]OFDSenderStorePacket 92649 [16:35:09]StoreOFDPacket docnum=92649 [16:35:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A2 01 00 00 16 87 9A 01 A4 08 5A 03 01 00 03 00 8E 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 88 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 AD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 12 00 00 00 00 07 04 06 00 D4 AD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 C5 0C E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E9 69 01 00 35 04 06 00 7D 09 A9 69 0C BC 39 6D 9C F5 1A 94 BE A5 [16:35:09]CheckFolder [16:35:09]dirname=/storage/ofd_packets [16:35:09]CheckFolder done [16:35:09]ProducePacketName [16:35:09]name=ofd_packets/00092649 [16:35:09]NVStorageSaveData ofd_packets/00092649 [16:35:09]File name is /storage/ofd_packets/00092649 [16:35:09]Write 448 bytes [16:35:09]NVStorageSaveData done [16:35:09]OFDSenderStorePacket done [16:35:09]KKMCreateOFDPacket done [16:35:09]NVStorageSaveData kkm_last_timestamp [16:35:09]File name is /storage/kkm_last_timestamp [16:35:09]Write 4 bytes [16:35:09]NVStorageSaveData done [16:35:09]ExternCall_PrintAddStr [16:35:09]wPrintStart [16:35:09]Write to MH i2c: 01 00 00 A3 5B FE [16:35:09]Write i2c OK [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: 01 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: 01 07 00 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: 01 07 00 A3 5B 00 00 00 00 00 FF 0F 13 [16:35:09]RasterBufferAndPrint [16:35:09]line Счет N : (3)127538 [16:35:09]line ИНН: 02508201610067 [16:35:09]line Контрольно-Кассовый Чек [16:35:09]line ПРОДАЖА [16:35:09]line Товар: 90162602 [16:35:09]line Энерг напиток Red bull 0,25л [16:35:09]line 2.000 * 185.00 [16:35:09]line = 370.00 [16:35:09]line НДС 12% НСП 1% [16:35:09]line > о реализуемом товаре [16:35:09]line Товар: 4870001154059 [16:35:09]line Напиток Lipton IceTea 0,5л зел чай [16:35:09]line 1.000 * 75.00 [16:35:09]line = 75.00 [16:35:09]line НДС 12% НСП 1% [16:35:09]line > о реализуемом товаре [16:35:09]line ИТОГО: 445.00 [16:35:09]line НСП 1% : 3.93 [16:35:09]line НДС 12% : 47.25 [16:35:09]line Наличными: 445.00 [16:35:09]line Безнал.: 0.00 [16:35:09]line Место: АЗС № 5 "Партнер Нефть" [16:35:09]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [16:35:09]line СНО: Общий режим [16:35:09]line Чек 97 15.09.2024 16:35 [16:35:09]line Смена: 507 ФФД: 1.0 [16:35:09]line ЗНМ: 03000000022 [16:35:09]line РНМ: 0000000000091423 [16:35:09]line Версия ККМ: 001 [16:35:09]line ФМ: 0000000000874692 [16:35:09]line ФД: 92649 [16:35:09]line ФПД: 137480450411708 [16:35:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T163517&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92649&fm=137480450411708&tin=02508201610067®Number=0000000000091423&sum=44500 [16:35:09]line 0 [16:35:09]OFD Sender: Processing packet 92649 [packets to send 63, broken 62] [16:35:09]ProducePacketName [16:35:09]name=ofd_packets/00092649 [16:35:09]OFD Sender: To server: pG, [16:35:09]CommunicateWithHost lk.salyk.kg:30040 [16:35:09]ConnectInit lk.salyk.kg [16:35:09]written 0, free lines is 4095 [16:35:09]Connected sock=10 [16:35:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A2 01 00 00 16 87 9A 01 A4 08 5A 03 01 00 03 00 8E 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 88 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 AD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 12 00 00 00 00 07 04 06 00 D4 AD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 C5 0C E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E9 69 01 00 35 04 06 00 7D 09 A9 69 0C BC 39 6D 9C F5 1A 94 BE A5 [16:35:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 D6 2F 47 00 FF 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E9 69 01 00 F4 03 04 00 3C B5 E6 66 B6 04 01 00 00 1D E2 F8 C7 E0 B8 BD 22 [16:35:10]CommunicateWithHost err = 0 [16:35:10]CheckOFDResponse [16:35:10]1017 (14) - 77093643461234 [16:35:10]1041 (16) - 0000000000874692 [16:35:10]1040 (4) - 92649 [16:35:10]1012 (4) - 15.09.2024 10:21 [16:35:10]1206 (1) - 0 [16:35:10]OFD Sender: Remove packet 92649 [16:35:10]ProducePacketName [16:35:10]name=ofd_packets/00092649 [16:35:10]NVStorageDeleteData [16:35:10]Write to MH i2c: 01 00 00 D2 5B 2D [16:35:10]Write i2c OK [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: 01 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: 01 07 00 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: 01 07 00 D2 5B 00 00 00 00 00 C7 0C 07 [16:35:10]RasterBufferAndPrint [16:35:10]line [16:35:10]line [16:35:10]line [16:35:10]line [16:35:10]line [16:35:10]written 0, free lines is 3279 [16:35:10]MH_Cut [16:35:10]Write to MH i2c: D1 01 00 D9 5B 01 06 [16:35:10]Write i2c OK [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: D1 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: D1 01 00 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: D1 01 00 D9 5B 00 05 [16:35:10]Write to MH i2c: 01 00 00 DA 5B 35 [16:35:10]Write i2c OK [16:35:10]MH_I2C_Read... [16:35:10]OFD Sender: No OFD packet to send [16:35:11]*** Cut start [16:35:11]*** Purtial cut [16:35:11]*** Stage 1: CUTSNS_PIN = 1 [16:35:13]Read from MH i2c: 01 [16:35:13]MH_I2C_Read... [16:35:13]*** Stop cut motor [16:35:13]*** Cut end [16:35:13]Read from MH i2c: 01 07 00 [16:35:13]MH_I2C_Read... [16:35:13]Read from MH i2c: 01 07 00 DA 5B 00 00 00 00 00 FF 0F 4A [16:35:13]process_action close_receipt done [16:35:13]requested_data is exist [16:35:13]produce_requested_data [16:35:13]requested_item fm.sn is exist - process it [16:35:13]wFMCommunicate request_size=4 [16:35:13]MH_SAM_APDU [16:35:13]CAPDU: 80 11 00 00 [16:35:13]Write to MH i2c: E2 08 00 DB 5B 80 11 00 00 00 00 00 00 B0 [16:35:13]Write i2c OK [16:35:13]MH_I2C_Read... [16:35:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:13]Read from MH i2c: E2 [16:35:13]MH_I2C_Read... [16:35:13]Read from MH i2c: E2 17 00 [16:35:13]MH_I2C_Read... [16:35:13]Read from MH i2c: E2 17 00 DB 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 07 [16:35:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:35:13]wFMCommunicate OK [16:35:13]requested_item fd.num is exist - process it [16:35:13]SAM_PROTO_GetFieldsCounters [16:35:13]wFMCommunicate request_size=4 [16:35:13]MH_SAM_APDU [16:35:13]CAPDU: 80 13 00 00 [16:35:13]Write to MH i2c: E2 08 00 DC 5B 80 13 00 00 00 00 00 00 B3 [16:35:13]Write i2c OK [16:35:13]MH_I2C_Read... [16:35:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:13]Read from MH i2c: E2 [16:35:13]MH_I2C_Read... [16:35:13]Read from MH i2c: E2 62 00 [16:35:13]MH_I2C_Read... [16:35:13]Read from MH i2c: E2 62 00 DC 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E9 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [16:35:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E9 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:35:13]wFMCommunicate OK [16:35:13]SAM_PROTO_GetFieldsCounters done [16:35:13]requested_item shift.num is exist - process it [16:35:13]requested_item shift.opened is exist - process it [16:35:13]req_shift_opened [16:35:13]FM_GetShiftState [16:35:13]SAM_PROTO_GetShiftState [16:35:13]wFMCommunicate request_size=4 [16:35:13]MH_SAM_APDU [16:35:13]CAPDU: 80 13 01 00 [16:35:13]Write to MH i2c: E2 08 00 DD 5B 80 13 01 00 00 00 00 00 B5 [16:35:13]Write i2c OK [16:35:13]MH_I2C_Read... [16:35:13]Read from MH i2c: E2 [16:35:13]MH_I2C_Read... [16:35:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:13]Read from MH i2c: E2 0E 00 [16:35:13]MH_I2C_Read... [16:35:13]Read from MH i2c: E2 0E 00 DD 5B 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 37 [16:35:13]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [16:35:13]wFMCommunicate OK [16:35:13]SAM_PROTO_GetShiftState done [16:35:13]FM_GetShiftState done [16:35:13]req_shift_opened done [16:35:13]requested_item shift.open_date is exist - process it [16:35:13]req_shift_open_date [16:35:13]req_shift_open_date done [16:35:13]produce_requested_data done [16:35:13]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92649,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [16:35:13]process_action_free close_receipt [16:35:13]json_value_free [16:35:13]json_value_free done [16:35:13]process_json_proto returns [16:35:13]Send response to host [16:35:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92649,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [16:35:13]free response buf [16:35:13]execute_script done [16:35:13]execute_script returns [16:35:13]free content buf [16:35:13]Sock 8.Close socket [16:35:13]Sock 8.Thread stoped [16:35:15]OFD Sender: No OFD packet to send [16:35:20]OFD Sender: No OFD packet to send [16:35:25]OFD Sender: No OFD packet to send [16:35:30]OFD Sender: No OFD packet to send [16:35:35]OFD Sender: No OFD packet to send [16:35:40]OFD Sender: No OFD packet to send [16:35:45]OFD Sender: No OFD packet to send [16:35:50]OFD Sender: No OFD packet to send [16:35:55]OFD Sender: No OFD packet to send [16:36:00]OFD Sender: No OFD packet to send [16:36:05]OFD Sender: No OFD packet to send [16:36:10]OFD Sender: No OFD packet to send [16:36:15]OFD Sender: No OFD packet to send [16:36:20]OFD Sender: No OFD packet to send [16:36:25]OFD Sender: No OFD packet to send [16:36:30]OFD Sender: No OFD packet to send [16:36:35]OFD Sender: No OFD packet to send [16:36:40]OFD Sender: No OFD packet to send [16:36:45]OFD Sender: No OFD packet to send [16:36:50]OFD Sender: No OFD packet to send [16:36:55]OFD Sender: No OFD packet to send [16:37:00]OFD Sender: No OFD packet to send [16:37:05]OFD Sender: No OFD packet to send [16:37:10]OFD Sender: No OFD packet to send [16:37:15]OFD Sender: No OFD packet to send [16:37:20]OFD Sender: No OFD packet to send [16:37:25]OFD Sender: No OFD packet to send [16:37:30]OFD Sender: No OFD packet to send [16:37:35]OFD Sender: No OFD packet to send [16:37:40]OFD Sender: No OFD packet to send [16:37:45]OFD Sender: No OFD packet to send [16:37:50]OFD Sender: No OFD packet to send [16:37:55]OFD Sender: No OFD packet to send [16:38:00]OFD Sender: No OFD packet to send [16:38:05]OFD Sender: No OFD packet to send [16:38:10]OFD Sender: No OFD packet to send [16:38:15]OFD Sender: No OFD packet to send [16:38:20]OFD Sender: No OFD packet to send [16:38:25]OFD Sender: No OFD packet to send [16:38:30]OFD Sender: No OFD packet to send [16:38:35]OFD Sender: No OFD packet to send [16:38:40]OFD Sender: No OFD packet to send [16:38:45]OFD Sender: No OFD packet to send [16:38:50]OFD Sender: No OFD packet to send [16:38:55]OFD Sender: No OFD packet to send [16:39:00]OFD Sender: No OFD packet to send [16:39:05]OFD Sender: No OFD packet to send [16:39:10]OFD Sender: No OFD packet to send [16:39:15]OFD Sender: No OFD packet to send [16:39:20]OFD Sender: No OFD packet to send [16:39:25]OFD Sender: No OFD packet to send [16:39:30]OFD Sender: No OFD packet to send [16:39:35]OFD Sender: No OFD packet to send [16:39:40]OFD Sender: No OFD packet to send [16:39:45]OFD Sender: No OFD packet to send [16:39:50]OFD Sender: No OFD packet to send [16:39:55]OFD Sender: No OFD packet to send [16:40:00]OFD Sender: No OFD packet to send [16:40:05]OFD Sender: No OFD packet to send [16:40:10]OFD Sender: No OFD packet to send [16:40:15]OFD Sender: No OFD packet to send [16:40:20]OFD Sender: No OFD packet to send [16:40:25]OFD Sender: No OFD packet to send [16:40:30]OFD Sender: No OFD packet to send [16:40:35]OFD Sender: No OFD packet to send [16:40:41]OFD Sender: No OFD packet to send [16:40:46]OFD Sender: No OFD packet to send [16:40:51]OFD Sender: No OFD packet to send [16:40:56]OFD Sender: No OFD packet to send [16:41:01]OFD Sender: No OFD packet to send [16:41:06]OFD Sender: No OFD packet to send [16:41:11]OFD Sender: No OFD packet to send [16:41:16]OFD Sender: No OFD packet to send [16:41:21]OFD Sender: No OFD packet to send [16:41:26]OFD Sender: No OFD packet to send [16:41:31]OFD Sender: No OFD packet to send [16:41:36]OFD Sender: No OFD packet to send [16:41:41]OFD Sender: No OFD packet to send [16:41:46]OFD Sender: No OFD packet to send [16:41:51]OFD Sender: No OFD packet to send [16:41:56]OFD Sender: No OFD packet to send [16:42:01]OFD Sender: No OFD packet to send [16:42:06]OFD Sender: No OFD packet to send [16:42:11]OFD Sender: No OFD packet to send [16:42:16]OFD Sender: No OFD packet to send [16:42:21]OFD Sender: No OFD packet to send [16:42:26]OFD Sender: No OFD packet to send [16:42:31]OFD Sender: No OFD packet to send [16:42:36]OFD Sender: No OFD packet to send [16:42:41]OFD Sender: No OFD packet to send [16:42:46]OFD Sender: No OFD packet to send [16:42:51]OFD Sender: No OFD packet to send [16:42:56]OFD Sender: No OFD packet to send [16:43:01]OFD Sender: No OFD packet to send [16:43:06]OFD Sender: No OFD packet to send [16:43:11]OFD Sender: No OFD packet to send [16:43:16]OFD Sender: No OFD packet to send [16:43:21]OFD Sender: No OFD packet to send [16:43:26]OFD Sender: No OFD packet to send [16:43:31]OFD Sender: No OFD packet to send [16:43:36]OFD Sender: No OFD packet to send [16:43:41]OFD Sender: No OFD packet to send [16:43:46]OFD Sender: No OFD packet to send [16:43:51]OFD Sender: No OFD packet to send [16:43:56]OFD Sender: No OFD packet to send [16:44:01]OFD Sender: No OFD packet to send [16:44:06]OFD Sender: No OFD packet to send [16:44:11]OFD Sender: No OFD packet to send [16:44:16]OFD Sender: No OFD packet to send [16:44:21]OFD Sender: No OFD packet to send [16:44:26]OFD Sender: No OFD packet to send [16:44:31]OFD Sender: No OFD packet to send [16:44:36]OFD Sender: No OFD packet to send [16:44:41]OFD Sender: No OFD packet to send [16:44:46]OFD Sender: No OFD packet to send [16:44:51]OFD Sender: No OFD packet to send [16:44:56]OFD Sender: No OFD packet to send [16:45:01]OFD Sender: No OFD packet to send [16:45:05]accept exits with 9 [16:45:05]New connection [16:45:05]New thread 3066658148 created [16:45:05]Thread 3066801508 joined [16:45:05]Waiting for new connection... [16:45:05] Sock 9.Parse request [16:45:05]Sock 9.Check first char [16:45:05]Sock 9.First char is OK [16:45:05]request: POST /json_proto HTTP/1.0 [16:45:05]Method: POST [16:45:05]URL: /json_proto [16:45:05]Method is POST - this is cgi request [16:45:05]url: /json_proto [16:45:05]query_string will be loaded in cgi processing [16:45:05]execute_cgi json_proto POST (null) [16:45:05]execute_cgi path=json_proto method=POST [16:45:05]POST find Content-Length [16:45:05]Host: 172.17.57.71:8080 [16:45:05]Content-Length: 616 [16:45:05]Content-Type: application/json [16:45:05] [16:45:05]POST finish read [16:45:05]Found Content-Length = 616 [16:45:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127539", "tax_sys" : 0, "items" : [ { "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:05]execute_script... [16:45:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127539", "tax_sys" : 0, "items" : [ { "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:05]POST & json_proto [16:45:05]process_json_proto [16:45:05]json parsed OK: [16:45:05]protocol is kg_v1.0 [16:45:05]action value=close_receipt [16:45:05]process_action close_receipt [16:45:05]cmd_close_receipt [16:45:05]MH_GetDate [16:45:05]Write to MH i2c: F0 00 00 DE 5B 28 [16:45:05]Write i2c OK [16:45:05]MH_I2C_Read... [16:45:05]Read from MH i2c: F0 [16:45:05]MH_I2C_Read... [16:45:05]Read from MH i2c: F0 09 00 [16:45:05]MH_I2C_Read... [16:45:05]Read from MH i2c: F0 09 00 DE 5B 00 1A 0F E7 66 33 3A A4 66 1E [16:45:05]GetLastDocTimeStamp 1726418117 [16:45:05]current date 1726418714 [16:45:05]FM_GetShiftState [16:45:05]SAM_PROTO_GetShiftState [16:45:05]wFMCommunicate request_size=4 [16:45:05]MH_SAM_APDU [16:45:05]CAPDU: 80 13 01 00 [16:45:05]Write to MH i2c: E2 08 00 DF 5B 80 13 01 00 00 00 00 00 B7 [16:45:05]Write i2c OK [16:45:05]MH_I2C_Read... [16:45:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:05]Read from MH i2c: E2 [16:45:05]MH_I2C_Read... [16:45:05]Read from MH i2c: E2 0E 00 [16:45:05]MH_I2C_Read... [16:45:05]Read from MH i2c: E2 0E 00 DF 5B 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 39 [16:45:05]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [16:45:05]wFMCommunicate OK [16:45:05]SAM_PROTO_GetShiftState done [16:45:05]FM_GetShiftState done [16:45:05]opened in 1726359809 [16:45:05]opened+sec_in_day 1726446209 [16:45:05]quantity*price = 17500 [16:45:05]sum+1 = 17501 [16:45:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 175.00 НСП 1% : 1.55 НДС 12% : 18.58 Наличными: 175.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 98 15.09.2024 16:45 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92650 ФПД: 199101207268854 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T164514&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92650&fm=199101207268854&tin=02508201610067®Number=0000000000091423&sum=17500 0 [16:45:06]StoreToDocumentArchive [16:45:06]shift 507 fd 92650 [16:45:06]save to /storage/0507/doc_00092650 [16:45:06]save last doc name /storage/0507/doc_00092650 to /storage/kkm_last_doc_name [16:45:06]save OK [16:45:06]Clear old archive folders... [16:45:06]ProcessDocumentItem done err = 0, tmpTLVsize=268 [16:45:06]tlvbuf is 010806C0 [16:45:06]SAM_PROTO_ClearQueue [16:45:06]wFMCommunicate request_size=4 [16:45:06]MH_SAM_APDU [16:45:06]CAPDU: 80 09 00 00 [16:45:06]Write to MH i2c: E2 08 00 EC 5B 80 09 00 00 00 00 00 00 B9 [16:45:06]Write i2c OK [16:45:06]MH_I2C_Read... [16:45:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:45:06]Read from MH i2c: E2 [16:45:06]MH_I2C_Read... [16:45:06]Read from MH i2c: E2 03 00 [16:45:06]MH_I2C_Read... [16:45:06]Read from MH i2c: E2 03 00 EC 5B 00 90 00 BB [16:45:06]RAPDU: 90 00 [16:45:06]wFMCommunicate OK [16:45:06]SAM_PROTO_ClearQueue done [16:45:06]KKMCreateOFDPacket [16:45:06]OFDProtocolAddRootSTLVToBuf [16:45:06]FM_MakeSignedData [16:45:06]FM_MakeSignedData [16:45:06]SAM_PROTO_SignData [16:45:06]wFMCommunicate request_size=4 [16:45:06]MH_SAM_APDU [16:45:06]CAPDU: 80 0D 01 02 [16:45:06]Write to MH i2c: E2 08 00 ED 5B 80 0D 01 02 00 00 00 00 C1 [16:45:06]Write i2c OK [16:45:06]MH_I2C_Read... [16:45:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:45:06]Read from MH i2c: E2 [16:45:06]MH_I2C_Read... [16:45:06]Read from MH i2c: E2 03 00 [16:45:06]MH_I2C_Read... [16:45:06]Read from MH i2c: E2 03 00 ED 5B 00 90 00 BC [16:45:06]RAPDU: 90 00 [16:45:06]wFMCommunicate OK [16:45:06]wFMCommunicate request_size=255 [16:45:06]MH_SAM_APDU [16:45:06]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 1A 0F E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [16:45:06]Write to MH i2c: E2 02 01 EE 5B 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 1A 0F E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 F9 [16:45:06]Write i2c OK [16:45:06]MH_I2C_Read... [16:45:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:06]Read from MH i2c: E2 [16:45:06]MH_I2C_Read... [16:45:06]Read from MH i2c: E2 03 00 [16:45:06]MH_I2C_Read... [16:45:06]Read from MH i2c: E2 03 00 EE 5B 00 90 00 BD [16:45:06]RAPDU: 90 00 [16:45:06]wFMCommunicate OK [16:45:06]wFMCommunicate request_size=27 [16:45:06]MH_SAM_APDU [16:45:06]CAPDU: 80 0D 02 02 16 34 36 39 32 10 04 04 00 EA 69 01 00 35 04 06 00 B5 14 DC BB CD F6 [16:45:06]Write to MH i2c: E2 1E 00 EF 5B 80 0D 02 02 16 00 34 36 39 32 10 04 04 00 EA 69 01 00 35 04 06 00 B5 14 DC BB CD F6 00 00 93 [16:45:06]Write i2c OK [16:45:06]MH_I2C_Read... [16:45:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:06]Read from MH i2c: E2 [16:45:06]MH_I2C_Read... [16:45:06]Read from MH i2c: E2 03 00 [16:45:06]MH_I2C_Read... [16:45:06]Read from MH i2c: E2 03 00 EF 5B 00 90 00 BE [16:45:06]RAPDU: 90 00 [16:45:06]wFMCommunicate OK [16:45:06]wFMCommunicate request_size=4 [16:45:06]MH_SAM_APDU [16:45:06]CAPDU: 80 0D 03 02 [16:45:06]Write to MH i2c: E2 08 00 F0 5B 80 0D 03 02 00 00 00 00 C6 [16:45:06]Write i2c OK [16:45:06]MH_I2C_Read... [16:45:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:45:06]Read from MH i2c: E2 [16:45:06]MH_I2C_Read... [16:45:06]Read from MH i2c: E2 0B 00 [16:45:06]MH_I2C_Read... [16:45:06]Read from MH i2c: E2 0B 00 F0 5B 00 29 B9 BE EF EB C5 01 26 90 00 2D [16:45:06]RAPDU: 29 B9 BE EF EB C5 01 26 90 00 [16:45:06]wFMCommunicate OK [16:45:06]SAM_PROTO_SignData done [16:45:06]FM_MakeSignedData done [16:45:06]CreateOFDProtocolMessage [16:45:06]wFMCommunicate request_size=4 [16:45:06]MH_SAM_APDU [16:45:06]CAPDU: 80 11 00 00 [16:45:06]Write to MH i2c: E2 08 00 F1 5B 80 11 00 00 00 00 00 00 C6 [16:45:06]Write i2c OK [16:45:06]MH_I2C_Read... [16:45:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:07]Read from MH i2c: E2 [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: E2 17 00 [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: E2 17 00 F1 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 1D [16:45:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:45:07]wFMCommunicate OK [16:45:07]CreateOFDProtocolMessage done [16:45:07]OFDSenderStorePacket 92650 [16:45:07]StoreOFDPacket docnum=92650 [16:45:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 20 01 00 00 D1 85 18 01 7B 61 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 1A 0F E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EA 69 01 00 35 04 06 00 B5 14 DC BB CD F6 29 B9 BE EF EB C5 01 26 [16:45:07]CheckFolder [16:45:07]dirname=/storage/ofd_packets [16:45:07]CheckFolder done [16:45:07]ProducePacketName [16:45:07]name=ofd_packets/00092650 [16:45:07]NVStorageSaveData ofd_packets/00092650 [16:45:07]File name is /storage/ofd_packets/00092650 [16:45:07]Write 318 bytes [16:45:07]NVStorageSaveData done [16:45:07]OFDSenderStorePacket done [16:45:07]KKMCreateOFDPacket done [16:45:07]NVStorageSaveData kkm_last_timestamp [16:45:07]File name is /storage/kkm_last_timestamp [16:45:07]Write 4 bytes [16:45:07]NVStorageSaveData done [16:45:07]ExternCall_PrintAddStr [16:45:07]wPrintStart [16:45:07]Write to MH i2c: 01 00 00 F2 5B 4D [16:45:07]Write i2c OK [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: 01 [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: 01 07 00 [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: 01 07 00 F2 5B 00 00 00 00 00 FF 0F 62 [16:45:07]RasterBufferAndPrint [16:45:07]line Счет N : (3)127539 [16:45:07]line ИНН: 02508201610067 [16:45:07]line Контрольно-Кассовый Чек [16:45:07]line ПРОДАЖА [16:45:07]line Товар: 4870002329487 [16:45:07]line Напиток Pepsi 1,5л [16:45:07]line 1.000 * 175.00 [16:45:07]line = 175.00 [16:45:07]line НДС 12% НСП 1% [16:45:07]line > о реализуемом товаре [16:45:07]line ИТОГО: 175.00 [16:45:07]line НСП 1% : 1.55 [16:45:07]line НДС 12% : 18.58 [16:45:07]line Наличными: 175.00 [16:45:07]line Безнал.: 0.00 [16:45:07]line Место: АЗС № 5 "Партнер Нефть" [16:45:07]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [16:45:07]line СНО: Общий режим [16:45:07]line Чек 98 15.09.2024 16:45 [16:45:07]line Смена: 507 ФФД: 1.0 [16:45:07]line ЗНМ: 03000000022 [16:45:07]line РНМ: 0000000000091423 [16:45:07]line Версия ККМ: 001 [16:45:07]line ФМ: 0000000000874692 [16:45:07]line ФД: 92650 [16:45:07]line ФПД: 199101207268854 [16:45:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T164514&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92650&fm=199101207268854&tin=02508201610067®Number=0000000000091423&sum=17500 [16:45:07]line 0 [16:45:07]OFD Sender: Processing packet 92650 [packets to send 63, broken 62] [16:45:07]ProducePacketName [16:45:07]name=ofd_packets/00092650 [16:45:07]OFD Sender: To server: pG, [16:45:07]CommunicateWithHost lk.salyk.kg:30040 [16:45:07]ConnectInit lk.salyk.kg [16:45:07]written 0, free lines is 4095 [16:45:07]Connected sock=10 [16:45:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 20 01 00 00 D1 85 18 01 7B 61 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 1A 0F E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EA 69 01 00 35 04 06 00 B5 14 DC BB CD F6 29 B9 BE EF EB C5 01 26 [16:45:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 F5 50 47 00 84 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EA 69 01 00 F4 03 04 00 92 B7 E6 66 B6 04 01 00 00 96 1E 9A 73 FE AE 92 8B [16:45:07]CommunicateWithHost err = 0 [16:45:07]CheckOFDResponse [16:45:07]1017 (14) - 77093643461234 [16:45:07]1041 (16) - 0000000000874692 [16:45:07]1040 (4) - 92650 [16:45:07]1012 (4) - 15.09.2024 10:31 [16:45:07]1206 (1) - 0 [16:45:07]OFD Sender: Remove packet 92650 [16:45:07]ProducePacketName [16:45:07]name=ofd_packets/00092650 [16:45:07]NVStorageDeleteData [16:45:07]Write to MH i2c: 01 00 00 1A 5C 76 [16:45:07]Write i2c OK [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: 01 [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: 01 07 00 [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: 01 07 00 1A 5C 00 00 00 00 00 15 0D 9F [16:45:07]RasterBufferAndPrint [16:45:07]line [16:45:07]line [16:45:07]line [16:45:07]line [16:45:07]line [16:45:07]written 0, free lines is 3354 [16:45:07]MH_Cut [16:45:07]Write to MH i2c: D1 01 00 21 5C 01 4F [16:45:07]Write i2c OK [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: D1 [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: D1 01 00 [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: D1 01 00 21 5C 00 4E [16:45:07]Write to MH i2c: 01 00 00 22 5C 7E [16:45:07]Write i2c OK [16:45:07]MH_I2C_Read... [16:45:08]OFD Sender: No OFD packet to send [16:45:08]*** Cut start [16:45:08]*** Purtial cut [16:45:08]*** Stage 1: CUTSNS_PIN = 1 [16:45:10]Read from MH i2c: 01 [16:45:10]MH_I2C_Read... [16:45:10]*** Stop cut motor [16:45:10]*** Cut end [16:45:10]Read from MH i2c: 01 07 00 [16:45:10]MH_I2C_Read... [16:45:10]Read from MH i2c: 01 07 00 22 5C 00 00 00 00 00 FF 0F 93 [16:45:10]process_action close_receipt done [16:45:10]requested_data is exist [16:45:10]produce_requested_data [16:45:10]requested_item fm.sn is exist - process it [16:45:10]wFMCommunicate request_size=4 [16:45:10]MH_SAM_APDU [16:45:10]CAPDU: 80 11 00 00 [16:45:10]Write to MH i2c: E2 08 00 23 5C 80 11 00 00 00 00 00 00 F9 [16:45:10]Write i2c OK [16:45:10]MH_I2C_Read... [16:45:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:10]Read from MH i2c: E2 [16:45:10]MH_I2C_Read... [16:45:10]Read from MH i2c: E2 17 00 [16:45:10]MH_I2C_Read... [16:45:10]Read from MH i2c: E2 17 00 23 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 50 [16:45:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:45:10]wFMCommunicate OK [16:45:10]requested_item fd.num is exist - process it [16:45:10]SAM_PROTO_GetFieldsCounters [16:45:10]wFMCommunicate request_size=4 [16:45:10]MH_SAM_APDU [16:45:10]CAPDU: 80 13 00 00 [16:45:10]Write to MH i2c: E2 08 00 24 5C 80 13 00 00 00 00 00 00 FC [16:45:10]Write i2c OK [16:45:10]MH_I2C_Read... [16:45:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:45:10]Read from MH i2c: E2 [16:45:10]MH_I2C_Read... [16:45:10]Read from MH i2c: E2 62 00 [16:45:10]MH_I2C_Read... [16:45:10]Read from MH i2c: E2 62 00 24 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 EA 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [16:45:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 EA 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:45:10]wFMCommunicate OK [16:45:10]SAM_PROTO_GetFieldsCounters done [16:45:10]requested_item shift.num is exist - process it [16:45:10]requested_item shift.opened is exist - process it [16:45:10]req_shift_opened [16:45:10]FM_GetShiftState [16:45:10]SAM_PROTO_GetShiftState [16:45:10]wFMCommunicate request_size=4 [16:45:10]MH_SAM_APDU [16:45:10]CAPDU: 80 13 01 00 [16:45:10]Write to MH i2c: E2 08 00 25 5C 80 13 01 00 00 00 00 00 FE [16:45:10]Write i2c OK [16:45:10]MH_I2C_Read... [16:45:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:10]Read from MH i2c: E2 [16:45:10]MH_I2C_Read... [16:45:10]Read from MH i2c: E2 0E 00 [16:45:10]MH_I2C_Read... [16:45:10]Read from MH i2c: E2 0E 00 25 5C 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 80 [16:45:10]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [16:45:10]wFMCommunicate OK [16:45:10]SAM_PROTO_GetShiftState done [16:45:10]FM_GetShiftState done [16:45:10]req_shift_opened done [16:45:10]requested_item shift.open_date is exist - process it [16:45:10]req_shift_open_date [16:45:10]req_shift_open_date done [16:45:10]produce_requested_data done [16:45:10]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92650,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [16:45:10]process_action_free close_receipt [16:45:10]json_value_free [16:45:10]json_value_free done [16:45:10]process_json_proto returns [16:45:10]Send response to host [16:45:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92650,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [16:45:10]free response buf [16:45:10]execute_script done [16:45:10]execute_script returns [16:45:10]free content buf [16:45:10]Sock 9.Close socket [16:45:10]Sock 9.Thread stoped [16:45:13]OFD Sender: No OFD packet to send [16:45:18]OFD Sender: No OFD packet to send [16:45:23]OFD Sender: No OFD packet to send [16:45:28]OFD Sender: No OFD packet to send [16:45:33]OFD Sender: No OFD packet to send [16:45:38]OFD Sender: No OFD packet to send [16:45:43]OFD Sender: No OFD packet to send [16:45:48]OFD Sender: No OFD packet to send [16:45:53]OFD Sender: No OFD packet to send [16:45:58]OFD Sender: No OFD packet to send [16:46:03]OFD Sender: No OFD packet to send [16:46:08]OFD Sender: No OFD packet to send [16:46:13]OFD Sender: No OFD packet to send [16:46:18]OFD Sender: No OFD packet to send [16:46:23]OFD Sender: No OFD packet to send [16:46:28]OFD Sender: No OFD packet to send [16:46:33]OFD Sender: No OFD packet to send [16:46:38]OFD Sender: No OFD packet to send [16:46:43]OFD Sender: No OFD packet to send [16:46:48]OFD Sender: No OFD packet to send [16:46:53]OFD Sender: No OFD packet to send [16:46:58]OFD Sender: No OFD packet to send [16:47:03]OFD Sender: No OFD packet to send [16:47:08]OFD Sender: No OFD packet to send [16:47:13]OFD Sender: No OFD packet to send [16:47:18]OFD Sender: No OFD packet to send [16:47:23]OFD Sender: No OFD packet to send [16:47:28]OFD Sender: No OFD packet to send [16:47:33]OFD Sender: No OFD packet to send [16:47:38]OFD Sender: No OFD packet to send [16:47:43]OFD Sender: No OFD packet to send [16:47:48]OFD Sender: No OFD packet to send [16:47:53]OFD Sender: No OFD packet to send [16:47:58]OFD Sender: No OFD packet to send [16:48:03]OFD Sender: No OFD packet to send [16:48:08]OFD Sender: No OFD packet to send [16:48:13]OFD Sender: No OFD packet to send [16:48:18]OFD Sender: No OFD packet to send [16:48:23]OFD Sender: No OFD packet to send [16:48:28]OFD Sender: No OFD packet to send [16:48:33]OFD Sender: No OFD packet to send [16:48:38]OFD Sender: No OFD packet to send [16:48:43]OFD Sender: No OFD packet to send [16:48:48]OFD Sender: No OFD packet to send [16:48:53]OFD Sender: No OFD packet to send [16:48:58]OFD Sender: No OFD packet to send [16:49:03]OFD Sender: No OFD packet to send [16:49:08]OFD Sender: No OFD packet to send [16:49:13]OFD Sender: No OFD packet to send [16:49:18]OFD Sender: No OFD packet to send [16:49:23]OFD Sender: No OFD packet to send [16:49:28]OFD Sender: No OFD packet to send [16:49:33]OFD Sender: No OFD packet to send [16:49:38]OFD Sender: No OFD packet to send [16:49:43]OFD Sender: No OFD packet to send [16:49:48]OFD Sender: No OFD packet to send [16:49:53]OFD Sender: No OFD packet to send [16:49:58]OFD Sender: No OFD packet to send [16:50:03]OFD Sender: No OFD packet to send [16:50:08]OFD Sender: No OFD packet to send [16:50:13]OFD Sender: No OFD packet to send [16:50:18]OFD Sender: No OFD packet to send [16:50:23]OFD Sender: No OFD packet to send [16:50:28]OFD Sender: No OFD packet to send [16:50:33]OFD Sender: No OFD packet to send [16:50:38]OFD Sender: No OFD packet to send [16:50:43]OFD Sender: No OFD packet to send [16:50:48]OFD Sender: No OFD packet to send [16:50:53]OFD Sender: No OFD packet to send [16:50:58]OFD Sender: No OFD packet to send [16:51:03]OFD Sender: No OFD packet to send [16:51:08]OFD Sender: No OFD packet to send [16:51:13]OFD Sender: No OFD packet to send [16:51:18]OFD Sender: No OFD packet to send [16:51:23]OFD Sender: No OFD packet to send [16:51:28]OFD Sender: No OFD packet to send [16:51:33]OFD Sender: No OFD packet to send [16:51:38]OFD Sender: No OFD packet to send [16:51:43]OFD Sender: No OFD packet to send [16:51:48]OFD Sender: No OFD packet to send [16:51:53]OFD Sender: No OFD packet to send [16:51:58]OFD Sender: No OFD packet to send [16:52:03]OFD Sender: No OFD packet to send [16:52:08]OFD Sender: No OFD packet to send [16:52:13]OFD Sender: No OFD packet to send [16:52:18]OFD Sender: No OFD packet to send [16:52:23]OFD Sender: No OFD packet to send [16:52:28]OFD Sender: No OFD packet to send [16:52:33]OFD Sender: No OFD packet to send [16:52:38]OFD Sender: No OFD packet to send [16:52:43]OFD Sender: No OFD packet to send [16:52:48]OFD Sender: No OFD packet to send [16:52:53]OFD Sender: No OFD packet to send [16:52:58]OFD Sender: No OFD packet to send [16:53:03]OFD Sender: No OFD packet to send [16:53:08]OFD Sender: No OFD packet to send [16:53:13]OFD Sender: No OFD packet to send [16:53:18]OFD Sender: No OFD packet to send [16:53:23]OFD Sender: No OFD packet to send [16:53:28]OFD Sender: No OFD packet to send [16:53:33]OFD Sender: No OFD packet to send [16:53:38]OFD Sender: No OFD packet to send [16:53:43]OFD Sender: No OFD packet to send [16:53:48]OFD Sender: No OFD packet to send [16:53:53]OFD Sender: No OFD packet to send [16:53:58]OFD Sender: No OFD packet to send [16:54:03]OFD Sender: No OFD packet to send [16:54:08]OFD Sender: No OFD packet to send [16:54:13]OFD Sender: No OFD packet to send [16:54:18]OFD Sender: No OFD packet to send [16:54:23]OFD Sender: No OFD packet to send [16:54:28]OFD Sender: No OFD packet to send [16:54:33]OFD Sender: No OFD packet to send [16:54:38]OFD Sender: No OFD packet to send [16:54:43]OFD Sender: No OFD packet to send [16:54:48]OFD Sender: No OFD packet to send [16:54:53]OFD Sender: No OFD packet to send [16:54:58]OFD Sender: No OFD packet to send [16:55:03]OFD Sender: No OFD packet to send [16:55:08]OFD Sender: No OFD packet to send [16:55:13]OFD Sender: No OFD packet to send [16:55:18]OFD Sender: No OFD packet to send [16:55:23]OFD Sender: No OFD packet to send [16:55:28]OFD Sender: No OFD packet to send [16:55:33]OFD Sender: No OFD packet to send [16:55:38]OFD Sender: No OFD packet to send [16:55:43]OFD Sender: No OFD packet to send [16:55:48]OFD Sender: No OFD packet to send [16:55:53]OFD Sender: No OFD packet to send [16:55:58]OFD Sender: No OFD packet to send [16:56:03]OFD Sender: No OFD packet to send [16:56:08]OFD Sender: No OFD packet to send [16:56:13]OFD Sender: No OFD packet to send [16:56:18]OFD Sender: No OFD packet to send [16:56:23]OFD Sender: No OFD packet to send [16:56:28]OFD Sender: No OFD packet to send [16:56:33]OFD Sender: No OFD packet to send [16:56:38]OFD Sender: No OFD packet to send [16:56:43]OFD Sender: No OFD packet to send [16:56:48]OFD Sender: No OFD packet to send [16:56:53]OFD Sender: No OFD packet to send [16:56:58]OFD Sender: No OFD packet to send [16:57:03]OFD Sender: No OFD packet to send [16:57:08]OFD Sender: No OFD packet to send [16:57:13]OFD Sender: No OFD packet to send [16:57:18]OFD Sender: No OFD packet to send [16:57:23]OFD Sender: No OFD packet to send [16:57:28]OFD Sender: No OFD packet to send [16:57:33]OFD Sender: No OFD packet to send [16:57:38]OFD Sender: No OFD packet to send [16:57:43]OFD Sender: No OFD packet to send [16:57:48]OFD Sender: No OFD packet to send [16:57:53]OFD Sender: No OFD packet to send [16:57:58]OFD Sender: No OFD packet to send [16:58:03]OFD Sender: No OFD packet to send [16:58:08]OFD Sender: No OFD packet to send [16:58:13]OFD Sender: No OFD packet to send [16:58:18]OFD Sender: No OFD packet to send [16:58:23]OFD Sender: No OFD packet to send [16:58:28]OFD Sender: No OFD packet to send [16:58:33]OFD Sender: No OFD packet to send [16:58:38]OFD Sender: No OFD packet to send [16:58:43]OFD Sender: No OFD packet to send [16:58:48]OFD Sender: No OFD packet to send [16:58:53]OFD Sender: No OFD packet to send [16:58:58]OFD Sender: No OFD packet to send [16:59:03]OFD Sender: No OFD packet to send [16:59:08]OFD Sender: No OFD packet to send [16:59:13]OFD Sender: No OFD packet to send [16:59:18]OFD Sender: No OFD packet to send [16:59:23]OFD Sender: No OFD packet to send [16:59:28]OFD Sender: No OFD packet to send [16:59:33]OFD Sender: No OFD packet to send [16:59:38]OFD Sender: No OFD packet to send [16:59:43]OFD Sender: No OFD packet to send [16:59:48]OFD Sender: No OFD packet to send [16:59:53]OFD Sender: No OFD packet to send [16:59:58]OFD Sender: No OFD packet to send [17:00:03]OFD Sender: No OFD packet to send [17:00:08]OFD Sender: No OFD packet to send [17:00:13]OFD Sender: No OFD packet to send [17:00:18]OFD Sender: No OFD packet to send [17:00:24]OFD Sender: No OFD packet to send [17:00:29]OFD Sender: No OFD packet to send [17:00:34]OFD Sender: No OFD packet to send [17:00:39]OFD Sender: No OFD packet to send [17:00:44]OFD Sender: No OFD packet to send [17:00:49]OFD Sender: No OFD packet to send [17:00:54]OFD Sender: No OFD packet to send [17:00:59]OFD Sender: No OFD packet to send [17:01:04]OFD Sender: No OFD packet to send [17:01:09]OFD Sender: No OFD packet to send [17:01:14]OFD Sender: No OFD packet to send [17:01:19]OFD Sender: No OFD packet to send [17:01:24]OFD Sender: No OFD packet to send [17:01:29]OFD Sender: No OFD packet to send [17:01:34]OFD Sender: No OFD packet to send [17:01:39]OFD Sender: No OFD packet to send [17:01:44]OFD Sender: No OFD packet to send [17:01:49]OFD Sender: No OFD packet to send [17:01:54]OFD Sender: No OFD packet to send [17:01:59]OFD Sender: No OFD packet to send [17:02:04]OFD Sender: No OFD packet to send [17:02:09]OFD Sender: No OFD packet to send [17:02:14]OFD Sender: No OFD packet to send [17:02:19]OFD Sender: No OFD packet to send [17:02:24]OFD Sender: No OFD packet to send [17:02:29]OFD Sender: No OFD packet to send [17:02:34]OFD Sender: No OFD packet to send [17:02:39]OFD Sender: No OFD packet to send [17:02:44]OFD Sender: No OFD packet to send [17:02:49]OFD Sender: No OFD packet to send [17:02:54]OFD Sender: No OFD packet to send [17:02:59]OFD Sender: No OFD packet to send [17:03:04]OFD Sender: No OFD packet to send [17:03:09]OFD Sender: No OFD packet to send [17:03:14]OFD Sender: No OFD packet to send [17:03:19]OFD Sender: No OFD packet to send [17:03:24]OFD Sender: No OFD packet to send [17:03:29]OFD Sender: No OFD packet to send [17:03:34]OFD Sender: No OFD packet to send [17:03:39]OFD Sender: No OFD packet to send [17:03:44]OFD Sender: No OFD packet to send [17:03:49]OFD Sender: No OFD packet to send [17:03:54]OFD Sender: No OFD packet to send [17:03:59]OFD Sender: No OFD packet to send [17:04:04]OFD Sender: No OFD packet to send [17:04:09]OFD Sender: No OFD packet to send [17:04:14]OFD Sender: No OFD packet to send [17:04:19]OFD Sender: No OFD packet to send [17:04:24]OFD Sender: No OFD packet to send [17:04:29]OFD Sender: No OFD packet to send [17:04:34]OFD Sender: No OFD packet to send [17:04:39]OFD Sender: No OFD packet to send [17:04:44]OFD Sender: No OFD packet to send [17:04:49]OFD Sender: No OFD packet to send [17:04:54]OFD Sender: No OFD packet to send [17:04:59]OFD Sender: No OFD packet to send [17:05:04]OFD Sender: No OFD packet to send [17:05:09]OFD Sender: No OFD packet to send [17:05:14]OFD Sender: No OFD packet to send [17:05:19]OFD Sender: No OFD packet to send [17:05:24]OFD Sender: No OFD packet to send [17:05:29]OFD Sender: No OFD packet to send [17:05:34]OFD Sender: No OFD packet to send [17:05:39]OFD Sender: No OFD packet to send [17:05:44]OFD Sender: No OFD packet to send [17:05:49]OFD Sender: No OFD packet to send [17:05:54]OFD Sender: No OFD packet to send [17:05:59]OFD Sender: No OFD packet to send [17:06:04]OFD Sender: No OFD packet to send [17:06:09]OFD Sender: No OFD packet to send [17:06:14]OFD Sender: No OFD packet to send [17:06:19]OFD Sender: No OFD packet to send [17:06:24]OFD Sender: No OFD packet to send [17:06:25]accept exits with 8 [17:06:25]New connection [17:06:25]New thread 3066801508 created [17:06:25]Thread 3066658148 joined [17:06:25]Waiting for new connection... [17:06:25] Sock 8.Parse request [17:06:25]Sock 8.Check first char [17:06:25]Sock 8.First char is OK [17:06:25]request: POST /json_proto HTTP/1.0 [17:06:25]Method: POST [17:06:25]URL: /json_proto [17:06:25]Method is POST - this is cgi request [17:06:25]url: /json_proto [17:06:25]query_string will be loaded in cgi processing [17:06:25]execute_cgi json_proto POST (null) [17:06:25]execute_cgi path=json_proto method=POST [17:06:25]POST find Content-Length [17:06:25]Host: 172.17.57.71:8080 [17:06:25]Content-Length: 671 [17:06:25]Content-Type: application/json [17:06:25] [17:06:25]POST finish read [17:06:25]Found Content-Length = 671 [17:06:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127540", "tax_sys" : 0, "items" : [ { "code": "4700000483334", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u0414\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:25]execute_script... [17:06:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127540", "tax_sys" : 0, "items" : [ { "code": "4700000483334", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u0414\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:25]POST & json_proto [17:06:25]process_json_proto [17:06:25]json parsed OK: [17:06:25]protocol is kg_v1.0 [17:06:25]action value=close_receipt [17:06:25]process_action close_receipt [17:06:25]cmd_close_receipt [17:06:25]MH_GetDate [17:06:25]Write to MH i2c: F0 00 00 26 5C 71 [17:06:25]Write i2c OK [17:06:25]MH_I2C_Read... [17:06:25]Read from MH i2c: F0 [17:06:25]MH_I2C_Read... [17:06:25]Read from MH i2c: F0 09 00 [17:06:25]MH_I2C_Read... [17:06:25]Read from MH i2c: F0 09 00 26 5C 00 1A 14 E7 66 33 3A A4 66 6C [17:06:25]GetLastDocTimeStamp 1726418714 [17:06:25]current date 1726419994 [17:06:25]FM_GetShiftState [17:06:25]SAM_PROTO_GetShiftState [17:06:25]wFMCommunicate request_size=4 [17:06:25]MH_SAM_APDU [17:06:25]CAPDU: 80 13 01 00 [17:06:25]Write to MH i2c: E2 08 00 27 5C 80 13 01 00 00 00 00 00 00 [17:06:25]Write i2c OK [17:06:25]MH_I2C_Read... [17:06:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:25]Read from MH i2c: E2 [17:06:25]MH_I2C_Read... [17:06:25]Read from MH i2c: E2 0E 00 [17:06:25]MH_I2C_Read... [17:06:25]Read from MH i2c: E2 0E 00 27 5C 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 82 [17:06:25]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [17:06:25]wFMCommunicate OK [17:06:25]SAM_PROTO_GetShiftState done [17:06:25]FM_GetShiftState done [17:06:25]opened in 1726359809 [17:06:25]opened+sec_in_day 1726446209 [17:06:25]quantity*price = 9500 [17:06:25]sum+1 = 9501 [17:06:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 99 15.09.2024 17:06 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92651 ФПД: 262962288788412 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T170634&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92651&fm=262962288788412&tin=02508201610067®Number=0000000000091423&sum=9500 0 [17:06:26]StoreToDocumentArchive [17:06:26]shift 507 fd 92651 [17:06:26]save to /storage/0507/doc_00092651 [17:06:26]save last doc name /storage/0507/doc_00092651 to /storage/kkm_last_doc_name [17:06:26]save OK [17:06:26]Clear old archive folders... [17:06:26]ProcessDocumentItem done err = 0, tmpTLVsize=290 [17:06:26]tlvbuf is 01099F60 [17:06:26]SAM_PROTO_ClearQueue [17:06:26]wFMCommunicate request_size=4 [17:06:26]MH_SAM_APDU [17:06:26]CAPDU: 80 09 00 00 [17:06:26]Write to MH i2c: E2 08 00 34 5C 80 09 00 00 00 00 00 00 02 [17:06:26]Write i2c OK [17:06:26]MH_I2C_Read... [17:06:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:26]Read from MH i2c: E2 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 03 00 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 03 00 34 5C 00 90 00 04 [17:06:26]RAPDU: 90 00 [17:06:26]wFMCommunicate OK [17:06:26]SAM_PROTO_ClearQueue done [17:06:26]KKMCreateOFDPacket [17:06:26]OFDProtocolAddRootSTLVToBuf [17:06:26]FM_MakeSignedData [17:06:26]FM_MakeSignedData [17:06:26]SAM_PROTO_SignData [17:06:26]wFMCommunicate request_size=4 [17:06:26]MH_SAM_APDU [17:06:26]CAPDU: 80 0D 01 02 [17:06:26]Write to MH i2c: E2 08 00 35 5C 80 0D 01 02 00 00 00 00 0A [17:06:26]Write i2c OK [17:06:26]MH_I2C_Read... [17:06:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:26]Read from MH i2c: E2 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 03 00 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 03 00 35 5C 00 90 00 05 [17:06:26]RAPDU: 90 00 [17:06:26]wFMCommunicate OK [17:06:26]wFMCommunicate request_size=255 [17:06:26]MH_SAM_APDU [17:06:26]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 1A 14 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [17:06:26]Write to MH i2c: E2 02 01 36 5C 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 1A 14 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 B3 [17:06:26]Write i2c OK [17:06:26]MH_I2C_Read... [17:06:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:26]Read from MH i2c: E2 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 03 00 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 03 00 36 5C 00 90 00 06 [17:06:26]RAPDU: 90 00 [17:06:26]wFMCommunicate OK [17:06:26]wFMCommunicate request_size=49 [17:06:26]MH_SAM_APDU [17:06:26]CAPDU: 80 0D 02 02 2C 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EB 69 01 00 35 04 06 00 EF 29 AD D0 03 BC [17:06:26]Write to MH i2c: E2 34 00 37 5C 80 0D 02 02 2C 00 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EB 69 01 00 35 04 06 00 EF 29 AD D0 03 BC 00 00 E1 [17:06:26]Write i2c OK [17:06:26]MH_I2C_Read... [17:06:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:26]Read from MH i2c: E2 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 03 00 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 03 00 37 5C 00 90 00 07 [17:06:26]RAPDU: 90 00 [17:06:26]wFMCommunicate OK [17:06:26]wFMCommunicate request_size=4 [17:06:26]MH_SAM_APDU [17:06:26]CAPDU: 80 0D 03 02 [17:06:26]Write to MH i2c: E2 08 00 38 5C 80 0D 03 02 00 00 00 00 0F [17:06:26]Write i2c OK [17:06:26]MH_I2C_Read... [17:06:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:26]Read from MH i2c: E2 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 0B 00 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 0B 00 38 5C 00 0B 14 8E 7B E7 47 D2 09 90 00 41 [17:06:26]RAPDU: 0B 14 8E 7B E7 47 D2 09 90 00 [17:06:26]wFMCommunicate OK [17:06:26]SAM_PROTO_SignData done [17:06:26]FM_MakeSignedData done [17:06:26]CreateOFDProtocolMessage [17:06:26]wFMCommunicate request_size=4 [17:06:26]MH_SAM_APDU [17:06:26]CAPDU: 80 11 00 00 [17:06:26]Write to MH i2c: E2 08 00 39 5C 80 11 00 00 00 00 00 00 0F [17:06:26]Write i2c OK [17:06:26]MH_I2C_Read... [17:06:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:27]Read from MH i2c: E2 [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: E2 17 00 [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: E2 17 00 39 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 66 [17:06:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:06:27]wFMCommunicate OK [17:06:27]CreateOFDProtocolMessage done [17:06:27]OFDSenderStorePacket 92651 [17:06:27]StoreOFDPacket docnum=92651 [17:06:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 36 01 00 00 C2 04 2E 01 E1 4F 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 1A 14 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EB 69 01 00 35 04 06 00 EF 29 AD D0 03 BC 0B 14 8E 7B E7 47 D2 09 [17:06:27]CheckFolder [17:06:27]dirname=/storage/ofd_packets [17:06:27]CheckFolder done [17:06:27]ProducePacketName [17:06:27]name=ofd_packets/00092651 [17:06:27]NVStorageSaveData ofd_packets/00092651 [17:06:27]File name is /storage/ofd_packets/00092651 [17:06:27]Write 340 bytes [17:06:27]NVStorageSaveData done [17:06:27]OFDSenderStorePacket done [17:06:27]KKMCreateOFDPacket done [17:06:27]NVStorageSaveData kkm_last_timestamp [17:06:27]File name is /storage/kkm_last_timestamp [17:06:27]Write 4 bytes [17:06:27]NVStorageSaveData done [17:06:27]ExternCall_PrintAddStr [17:06:27]wPrintStart [17:06:27]Write to MH i2c: 01 00 00 3A 5C 96 [17:06:27]Write i2c OK [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: 01 [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: 01 07 00 [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: 01 07 00 3A 5C 00 00 00 00 00 FF 0F AB [17:06:27]RasterBufferAndPrint [17:06:27]line Счет N : (3)127540 [17:06:27]line ИНН: 02508201610067 [17:06:27]line Контрольно-Кассовый Чек [17:06:27]line ПРОДАЖА [17:06:27]line Товар: 4700000483334 [17:06:27]line Напиток Nitro Fresh Дикие ягоды [17:06:27]line 1.000 * 95.00 [17:06:27]line = 95.00 [17:06:27]line НДС 12% НСП 1% [17:06:27]line > о реализуемом товаре [17:06:27]line ИТОГО: 95.00 [17:06:27]line НСП 1% : 0.84 [17:06:27]line НДС 12% : 10.09 [17:06:27]line Наличными: 95.00 [17:06:27]line Безнал.: 0.00 [17:06:27]line Место: АЗС № 5 "Партнер Нефть" [17:06:27]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [17:06:27]line СНО: Общий режим [17:06:27]line Чек 99 15.09.2024 17:06 [17:06:27]line Смена: 507 ФФД: 1.0 [17:06:27]line ЗНМ: 03000000022 [17:06:27]line РНМ: 0000000000091423 [17:06:27]line Версия ККМ: 001 [17:06:27]line ФМ: 0000000000874692 [17:06:27]line ФД: 92651 [17:06:27]line ФПД: 262962288788412 [17:06:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T170634&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92651&fm=262962288788412&tin=02508201610067®Number=0000000000091423&sum=9500 [17:06:27]OFD Sender: Processing packet 92651 [packets to send 63, broken 62] [17:06:27]ProducePacketName [17:06:27]name=ofd_packets/00092651 [17:06:27]OFD Sender: To server: pG, [17:06:27]CommunicateWithHost lk.salyk.kg:30040 [17:06:27]ConnectInit lk.salyk.kg [17:06:27]line 0 [17:06:27]written 0, free lines is 4095 [17:06:27]Connected sock=10 [17:06:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 36 01 00 00 C2 04 2E 01 E1 4F 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 1A 14 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EB 69 01 00 35 04 06 00 EF 29 AD D0 03 BC 0B 14 8E 7B E7 47 D2 09 [17:06:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 F2 C1 47 00 9D D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EB 69 01 00 F4 03 04 00 92 BC E6 66 B6 04 01 00 00 6B 1A 98 1F 5C 29 15 63 [17:06:27]CommunicateWithHost err = 0 [17:06:27]CheckOFDResponse [17:06:27]1017 (14) - 77093643461234 [17:06:27]1041 (16) - 0000000000874692 [17:06:27]1040 (4) - 92651 [17:06:27]1012 (4) - 15.09.2024 10:53 [17:06:27]1206 (1) - 0 [17:06:27]OFD Sender: Remove packet 92651 [17:06:27]ProducePacketName [17:06:27]name=ofd_packets/00092651 [17:06:27]NVStorageDeleteData [17:06:27]Write to MH i2c: 01 00 00 63 5C BF [17:06:27]Write i2c OK [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: 01 [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: 01 07 00 [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: 01 07 00 63 5C 00 00 00 00 00 14 0D E7 [17:06:27]RasterBufferAndPrint [17:06:27]line [17:06:27]line [17:06:27]line [17:06:27]line [17:06:27]line [17:06:27]written 0, free lines is 3356 [17:06:27]MH_Cut [17:06:27]Write to MH i2c: D1 01 00 6A 5C 01 98 [17:06:27]Write i2c OK [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: D1 [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: D1 01 00 [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: D1 01 00 6A 5C 00 97 [17:06:27]Write to MH i2c: 01 00 00 6B 5C C7 [17:06:27]Write i2c OK [17:06:27]MH_I2C_Read... [17:06:28]OFD Sender: No OFD packet to send [17:06:28]*** Cut start [17:06:28]*** Purtial cut [17:06:28]*** Stage 1: CUTSNS_PIN = 1 [17:06:30]Read from MH i2c: 01 [17:06:30]MH_I2C_Read... [17:06:30]*** Stop cut motor [17:06:30]*** Cut end [17:06:30]Read from MH i2c: 01 07 00 [17:06:30]MH_I2C_Read... [17:06:30]Read from MH i2c: 01 07 00 6B 5C 00 00 00 00 00 FF 0F DC [17:06:30]process_action close_receipt done [17:06:30]requested_data is exist [17:06:30]produce_requested_data [17:06:30]requested_item fm.sn is exist - process it [17:06:30]wFMCommunicate request_size=4 [17:06:30]MH_SAM_APDU [17:06:30]CAPDU: 80 11 00 00 [17:06:30]Write to MH i2c: E2 08 00 6C 5C 80 11 00 00 00 00 00 00 42 [17:06:30]Write i2c OK [17:06:30]MH_I2C_Read... [17:06:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:30]Read from MH i2c: E2 [17:06:30]MH_I2C_Read... [17:06:30]Read from MH i2c: E2 17 00 [17:06:30]MH_I2C_Read... [17:06:30]Read from MH i2c: E2 17 00 6C 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 99 [17:06:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:06:30]wFMCommunicate OK [17:06:30]requested_item fd.num is exist - process it [17:06:30]SAM_PROTO_GetFieldsCounters [17:06:30]wFMCommunicate request_size=4 [17:06:30]MH_SAM_APDU [17:06:30]CAPDU: 80 13 00 00 [17:06:30]Write to MH i2c: E2 08 00 6D 5C 80 13 00 00 00 00 00 00 45 [17:06:30]Write i2c OK [17:06:30]MH_I2C_Read... [17:06:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:30]Read from MH i2c: E2 [17:06:30]MH_I2C_Read... [17:06:30]Read from MH i2c: E2 62 00 [17:06:30]MH_I2C_Read... [17:06:30]Read from MH i2c: E2 62 00 6D 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 EB 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [17:06:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 EB 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:06:30]wFMCommunicate OK [17:06:30]SAM_PROTO_GetFieldsCounters done [17:06:30]requested_item shift.num is exist - process it [17:06:30]requested_item shift.opened is exist - process it [17:06:30]req_shift_opened [17:06:30]FM_GetShiftState [17:06:30]SAM_PROTO_GetShiftState [17:06:30]wFMCommunicate request_size=4 [17:06:30]MH_SAM_APDU [17:06:30]CAPDU: 80 13 01 00 [17:06:30]Write to MH i2c: E2 08 00 6E 5C 80 13 01 00 00 00 00 00 47 [17:06:30]Write i2c OK [17:06:30]MH_I2C_Read... [17:06:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:30]Read from MH i2c: E2 [17:06:30]MH_I2C_Read... [17:06:30]Read from MH i2c: E2 0E 00 [17:06:30]MH_I2C_Read... [17:06:30]Read from MH i2c: E2 0E 00 6E 5C 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 C9 [17:06:30]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [17:06:30]wFMCommunicate OK [17:06:30]SAM_PROTO_GetShiftState done [17:06:30]FM_GetShiftState done [17:06:30]req_shift_opened done [17:06:30]requested_item shift.open_date is exist - process it [17:06:30]req_shift_open_date [17:06:30]req_shift_open_date done [17:06:30]produce_requested_data done [17:06:30]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92651,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [17:06:30]process_action_free close_receipt [17:06:30]json_value_free [17:06:30]json_value_free done [17:06:30]process_json_proto returns [17:06:30]Send response to host [17:06:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92651,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [17:06:30]free response buf [17:06:30]execute_script done [17:06:30]execute_script returns [17:06:30]free content buf [17:06:30]Sock 8.Close socket [17:06:30]Sock 8.Thread stoped [17:06:33]OFD Sender: No OFD packet to send [17:06:38]OFD Sender: No OFD packet to send [17:06:43]OFD Sender: No OFD packet to send [17:06:48]OFD Sender: No OFD packet to send [17:06:53]OFD Sender: No OFD packet to send [17:06:58]OFD Sender: No OFD packet to send [17:07:03]OFD Sender: No OFD packet to send [17:07:08]OFD Sender: No OFD packet to send [17:07:13]OFD Sender: No OFD packet to send [17:07:18]OFD Sender: No OFD packet to send [17:07:23]OFD Sender: No OFD packet to send [17:07:28]OFD Sender: No OFD packet to send [17:07:33]OFD Sender: No OFD packet to send [17:07:38]OFD Sender: No OFD packet to send [17:07:43]OFD Sender: No OFD packet to send [17:07:48]OFD Sender: No OFD packet to send [17:07:53]OFD Sender: No OFD packet to send [17:07:58]OFD Sender: No OFD packet to send [17:08:03]OFD Sender: No OFD packet to send [17:08:04]accept exits with 9 [17:08:04]New connection [17:08:04]New thread 3066658148 created [17:08:04]Thread 3066801508 joined [17:08:04]Waiting for new connection... [17:08:04] Sock 9.Parse request [17:08:04]Sock 9.Check first char [17:08:04]Sock 9.First char is OK [17:08:04]request: POST /json_proto HTTP/1.0 [17:08:04]Method: POST [17:08:04]URL: /json_proto [17:08:04]Method is POST - this is cgi request [17:08:04]url: /json_proto [17:08:04]query_string will be loaded in cgi processing [17:08:04]execute_cgi json_proto POST (null) [17:08:04]execute_cgi path=json_proto method=POST [17:08:04]POST find Content-Length [17:08:04]Host: 172.17.57.71:8080 [17:08:04]Content-Length: 855 [17:08:04]Content-Type: application/json [17:08:04] [17:08:04]POST finish read [17:08:04]Found Content-Length = 855 [17:08:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127541", "tax_sys" : 0, "items" : [ { "code": "4630002599859", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Standart 15w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091584", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Gold", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 560.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:04]execute_script... [17:08:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127541", "tax_sys" : 0, "items" : [ { "code": "4630002599859", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Standart 15w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091584", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Gold", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 560.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:04]POST & json_proto [17:08:04]process_json_proto [17:08:04]json parsed OK: [17:08:04]protocol is kg_v1.0 [17:08:04]action value=close_receipt [17:08:04]process_action close_receipt [17:08:04]cmd_close_receipt [17:08:04]MH_GetDate [17:08:04]Write to MH i2c: F0 00 00 6F 5C BA [17:08:04]Write i2c OK [17:08:04]MH_I2C_Read... [17:08:04]Read from MH i2c: F0 [17:08:04]MH_I2C_Read... [17:08:04]Read from MH i2c: F0 09 00 [17:08:04]MH_I2C_Read... [17:08:04]Read from MH i2c: F0 09 00 6F 5C 00 7E 14 E7 66 33 3A A4 66 19 [17:08:04]GetLastDocTimeStamp 1726419994 [17:08:04]current date 1726420094 [17:08:04]FM_GetShiftState [17:08:04]SAM_PROTO_GetShiftState [17:08:04]wFMCommunicate request_size=4 [17:08:04]MH_SAM_APDU [17:08:04]CAPDU: 80 13 01 00 [17:08:04]Write to MH i2c: E2 08 00 70 5C 80 13 01 00 00 00 00 00 49 [17:08:04]Write i2c OK [17:08:04]MH_I2C_Read... [17:08:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:04]Read from MH i2c: E2 [17:08:04]MH_I2C_Read... [17:08:04]Read from MH i2c: E2 0E 00 [17:08:04]MH_I2C_Read... [17:08:04]Read from MH i2c: E2 0E 00 70 5C 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 CB [17:08:04]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [17:08:04]wFMCommunicate OK [17:08:04]SAM_PROTO_GetShiftState done [17:08:04]FM_GetShiftState done [17:08:04]opened in 1726359809 [17:08:04]opened+sec_in_day 1726446209 [17:08:04]quantity*price = 40500 [17:08:04]sum+1 = 40501 [17:08:04]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030091584 Сигареты Esse Gold 1.000 * 155.00 = 155.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 560.00 НСП 1% : 4.95 НДС 12% : 59.47 Наличными: 560.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 100 15.09.2024 17:08 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92652 ФПД: 14419201910776 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T170814&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92652&fm=14419201910776&tin=02508201610067®Number=0000000000091423&sum=56000 0 [17:08:05]StoreToDocumentArchive [17:08:05]shift 507 fd 92652 [17:08:05]save to /storage/0507/doc_00092652 [17:08:05]save last doc name /storage/0507/doc_00092652 to /storage/kkm_last_doc_name [17:08:05]save OK [17:08:05]Clear old archive folders... [17:08:05]ProcessDocumentItem done err = 0, tmpTLVsize=381 [17:08:05]tlvbuf is 0102BB80 [17:08:05]SAM_PROTO_ClearQueue [17:08:05]wFMCommunicate request_size=4 [17:08:05]MH_SAM_APDU [17:08:05]CAPDU: 80 09 00 00 [17:08:05]Write to MH i2c: E2 08 00 7D 5C 80 09 00 00 00 00 00 00 4B [17:08:05]Write i2c OK [17:08:05]MH_I2C_Read... [17:08:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:05]Read from MH i2c: E2 [17:08:05]MH_I2C_Read... [17:08:05]Read from MH i2c: E2 03 00 [17:08:05]MH_I2C_Read... [17:08:05]Read from MH i2c: E2 03 00 7D 5C 00 90 00 4D [17:08:05]RAPDU: 90 00 [17:08:05]wFMCommunicate OK [17:08:05]SAM_PROTO_ClearQueue done [17:08:05]KKMCreateOFDPacket [17:08:05]OFDProtocolAddRootSTLVToBuf [17:08:05]FM_MakeSignedData [17:08:05]FM_MakeSignedData [17:08:05]SAM_PROTO_SignData [17:08:05]wFMCommunicate request_size=4 [17:08:05]MH_SAM_APDU [17:08:05]CAPDU: 80 0D 01 02 [17:08:05]Write to MH i2c: E2 08 00 7E 5C 80 0D 01 02 00 00 00 00 53 [17:08:05]Write i2c OK [17:08:05]MH_I2C_Read... [17:08:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:05]Read from MH i2c: E2 [17:08:05]MH_I2C_Read... [17:08:05]Read from MH i2c: E2 03 00 [17:08:05]MH_I2C_Read... [17:08:05]Read from MH i2c: E2 03 00 7E 5C 00 90 00 4E [17:08:05]RAPDU: 90 00 [17:08:05]wFMCommunicate OK [17:08:05]wFMCommunicate request_size=255 [17:08:05]MH_SAM_APDU [17:08:05]CAPDU: 80 0D 02 02 FA 03 00 7D 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 01 00 [17:08:05]Write to MH i2c: E2 02 01 7F 5C 80 0D 02 02 FA 00 03 00 7D 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 01 00 00 00 3D [17:08:05]Write i2c OK [17:08:05]MH_I2C_Read... [17:08:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:06]Read from MH i2c: E2 [17:08:06]MH_I2C_Read... [17:08:06]Read from MH i2c: E2 03 00 [17:08:06]MH_I2C_Read... [17:08:06]Read from MH i2c: E2 03 00 7F 5C 00 90 00 4F [17:08:06]RAPDU: 90 00 [17:08:06]wFMCommunicate OK [17:08:06]wFMCommunicate request_size=140 [17:08:06]MH_SAM_APDU [17:08:06]CAPDU: 80 0D 02 02 87 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 17 00 00 00 00 07 04 06 00 C0 DA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 7E 14 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EC 69 01 00 35 04 06 00 0D 1D 3B 68 67 F8 [17:08:06]Write to MH i2c: E2 8F 00 80 5C 80 0D 02 02 87 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 17 00 00 00 00 07 04 06 00 C0 DA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 7E 14 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EC 69 01 00 35 04 06 00 0D 1D 3B 68 67 F8 00 00 3C [17:08:06]Write i2c OK [17:08:06]MH_I2C_Read... [17:08:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:06]Read from MH i2c: E2 [17:08:06]MH_I2C_Read... [17:08:06]Read from MH i2c: E2 03 00 [17:08:06]MH_I2C_Read... [17:08:06]Read from MH i2c: E2 03 00 80 5C 00 90 00 50 [17:08:06]RAPDU: 90 00 [17:08:06]wFMCommunicate OK [17:08:06]wFMCommunicate request_size=4 [17:08:06]MH_SAM_APDU [17:08:06]CAPDU: 80 0D 03 02 [17:08:06]Write to MH i2c: E2 08 00 81 5C 80 0D 03 02 00 00 00 00 58 [17:08:06]Write i2c OK [17:08:06]MH_I2C_Read... [17:08:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:06]Read from MH i2c: E2 [17:08:06]MH_I2C_Read... [17:08:06]Read from MH i2c: E2 0B 00 [17:08:06]MH_I2C_Read... [17:08:06]Read from MH i2c: E2 0B 00 81 5C 00 8E DE F8 1D 5E C0 0A 5A 90 00 5C [17:08:06]RAPDU: 8E DE F8 1D 5E C0 0A 5A 90 00 [17:08:06]wFMCommunicate OK [17:08:06]SAM_PROTO_SignData done [17:08:06]FM_MakeSignedData done [17:08:06]CreateOFDProtocolMessage [17:08:06]wFMCommunicate request_size=4 [17:08:06]MH_SAM_APDU [17:08:06]CAPDU: 80 11 00 00 [17:08:06]Write to MH i2c: E2 08 00 82 5C 80 11 00 00 00 00 00 00 58 [17:08:06]Write i2c OK [17:08:06]MH_I2C_Read... [17:08:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:06]Read from MH i2c: E2 [17:08:06]MH_I2C_Read... [17:08:06]Read from MH i2c: E2 17 00 [17:08:06]MH_I2C_Read... [17:08:06]Read from MH i2c: E2 17 00 82 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 AF [17:08:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:08:06]wFMCommunicate OK [17:08:06]CreateOFDProtocolMessage done [17:08:06]OFDSenderStorePacket 92652 [17:08:06]StoreOFDPacket docnum=92652 [17:08:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 91 01 00 00 0F F2 89 01 DF 7F 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 17 00 00 00 00 07 04 06 00 C0 DA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 7E 14 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EC 69 01 00 35 04 06 00 0D 1D 3B 68 67 F8 8E DE F8 1D 5E C0 0A 5A [17:08:06]CheckFolder [17:08:06]dirname=/storage/ofd_packets [17:08:06]CheckFolder done [17:08:06]ProducePacketName [17:08:06]name=ofd_packets/00092652 [17:08:06]NVStorageSaveData ofd_packets/00092652 [17:08:06]File name is /storage/ofd_packets/00092652 [17:08:06]Write 431 bytes [17:08:06]NVStorageSaveData done [17:08:06]OFDSenderStorePacket done [17:08:06]KKMCreateOFDPacket done [17:08:06]NVStorageSaveData kkm_last_timestamp [17:08:06]File name is /storage/kkm_last_timestamp [17:08:06]Write 4 bytes [17:08:06]NVStorageSaveData done [17:08:06]ExternCall_PrintAddStr [17:08:06]wPrintStart [17:08:06]Write to MH i2c: 01 00 00 83 5C DF [17:08:06]Write i2c OK [17:08:06]MH_I2C_Read... [17:08:06]Read from MH i2c: 01 [17:08:06]MH_I2C_Read... [17:08:06]Read from MH i2c: 01 07 00 [17:08:06]MH_I2C_Read... [17:08:06]Read from MH i2c: 01 07 00 83 5C 00 00 00 00 00 FF 0F F4 [17:08:06]RasterBufferAndPrint [17:08:06]line Счет N : (3)127541 [17:08:06]line ИНН: 02508201610067 [17:08:06]line Контрольно-Кассовый Чек [17:08:06]line ПРОДАЖА [17:08:06]line Товар: 4630002599859 [17:08:06]line Масло Gazpromneft Standart 15w40 1л [17:08:06]line 1.000 * 405.00 [17:08:06]line = 405.00 [17:08:06]line НДС 12% НСП 1% [17:08:06]line > о реализуемом товаре [17:08:06]line Товар: 4640030091584 [17:08:06]line Сигареты Esse Gold [17:08:06]line 1.000 * 155.00 [17:08:06]line = 155.00 [17:08:06]line НДС 12% НСП 1% [17:08:06]line > о реализуемом товаре [17:08:06]line ИТОГО: 560.00 [17:08:06]line НСП 1% : 4.95 [17:08:06]line НДС 12% : 59.47 [17:08:06]line Наличными: 560.00 [17:08:06]line Безнал.: 0.00 [17:08:06]line Место: АЗС № 5 "Партнер Нефть" [17:08:06]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [17:08:06]line СНО: Общий режим [17:08:06]line Чек 100 15.09.2024 17:08 [17:08:06]line Смена: 507 ФФД: 1.0 [17:08:06]line ЗНМ: 03000000022 [17:08:06]line РНМ: 0000000000091423 [17:08:06]line Версия ККМ: 001 [17:08:06]line ФМ: 0000000000874692 [17:08:06]line ФД: 92652 [17:08:06]line ФПД: 14419201910776 [17:08:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T170814&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92652&fm=14419201910776&tin=02508201610067®Number=0000000000091423&sum=56000 [17:08:06]line 0 [17:08:06]OFD Sender: Processing packet 92652 [packets to send 63, broken 62] [17:08:06]ProducePacketName [17:08:06]name=ofd_packets/00092652 [17:08:06]OFD Sender: To server: pG, [17:08:06]CommunicateWithHost lk.salyk.kg:30040 [17:08:06]ConnectInit lk.salyk.kg [17:08:06]written 0, free lines is 4095 [17:08:06]Connected sock=10 [17:08:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 91 01 00 00 0F F2 89 01 DF 7F 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 17 00 00 00 00 07 04 06 00 C0 DA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 7E 14 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EC 69 01 00 35 04 06 00 0D 1D 3B 68 67 F8 8E DE F8 1D 5E C0 0A 5A [17:08:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 98 6D 47 00 EF 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EC 69 01 00 F4 03 04 00 F5 BC E6 66 B6 04 01 00 00 16 39 98 5C DD D6 92 FB [17:08:07]CommunicateWithHost err = 0 [17:08:07]CheckOFDResponse [17:08:07]1017 (14) - 77093643461234 [17:08:07]1041 (16) - 0000000000874692 [17:08:07]1040 (4) - 92652 [17:08:07]1012 (4) - 15.09.2024 10:54 [17:08:07]1206 (1) - 0 [17:08:07]OFD Sender: Remove packet 92652 [17:08:07]ProducePacketName [17:08:07]name=ofd_packets/00092652 [17:08:07]NVStorageDeleteData [17:08:07]Write to MH i2c: 01 00 00 B2 5C 0E [17:08:07]Write i2c OK [17:08:07]MH_I2C_Read... [17:08:07]Read from MH i2c: 01 [17:08:07]MH_I2C_Read... [17:08:07]Read from MH i2c: 01 07 00 [17:08:07]MH_I2C_Read... [17:08:07]Read from MH i2c: 01 07 00 B2 5C 00 00 00 00 00 D2 0C F3 [17:08:07]RasterBufferAndPrint [17:08:07]line [17:08:07]line [17:08:07]line [17:08:07]line [17:08:07]line [17:08:07]written 0, free lines is 3293 [17:08:07]MH_Cut [17:08:07]Write to MH i2c: D1 01 00 B9 5C 01 E7 [17:08:07]Write i2c OK [17:08:07]MH_I2C_Read... [17:08:07]Read from MH i2c: D1 [17:08:07]MH_I2C_Read... [17:08:07]Read from MH i2c: D1 01 00 [17:08:07]MH_I2C_Read... [17:08:07]Read from MH i2c: D1 01 00 B9 5C 00 E6 [17:08:07]Write to MH i2c: 01 00 00 BA 5C 16 [17:08:07]Write i2c OK [17:08:07]MH_I2C_Read... [17:08:07]OFD Sender: No OFD packet to send [17:08:07]*** Cut start [17:08:07]*** Purtial cut [17:08:07]*** Stage 1: CUTSNS_PIN = 1 [17:08:09]Read from MH i2c: 01 [17:08:09]MH_I2C_Read... [17:08:09]*** Stop cut motor [17:08:09]*** Cut end [17:08:09]Read from MH i2c: 01 07 00 [17:08:09]MH_I2C_Read... [17:08:09]Read from MH i2c: 01 07 00 BA 5C 00 00 00 00 00 FF 0F 2B [17:08:09]process_action close_receipt done [17:08:09]requested_data is exist [17:08:09]produce_requested_data [17:08:09]requested_item fm.sn is exist - process it [17:08:09]wFMCommunicate request_size=4 [17:08:09]MH_SAM_APDU [17:08:09]CAPDU: 80 11 00 00 [17:08:09]Write to MH i2c: E2 08 00 BB 5C 80 11 00 00 00 00 00 00 91 [17:08:09]Write i2c OK [17:08:09]MH_I2C_Read... [17:08:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:10]Read from MH i2c: E2 [17:08:10]MH_I2C_Read... [17:08:10]Read from MH i2c: E2 17 00 [17:08:10]MH_I2C_Read... [17:08:10]Read from MH i2c: E2 17 00 BB 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E8 [17:08:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:08:10]wFMCommunicate OK [17:08:10]requested_item fd.num is exist - process it [17:08:10]SAM_PROTO_GetFieldsCounters [17:08:10]wFMCommunicate request_size=4 [17:08:10]MH_SAM_APDU [17:08:10]CAPDU: 80 13 00 00 [17:08:10]Write to MH i2c: E2 08 00 BC 5C 80 13 00 00 00 00 00 00 94 [17:08:10]Write i2c OK [17:08:10]MH_I2C_Read... [17:08:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:10]Read from MH i2c: E2 [17:08:10]MH_I2C_Read... [17:08:10]Read from MH i2c: E2 62 00 [17:08:10]MH_I2C_Read... [17:08:10]Read from MH i2c: E2 62 00 BC 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 EC 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [17:08:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 EC 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:08:10]wFMCommunicate OK [17:08:10]SAM_PROTO_GetFieldsCounters done [17:08:10]requested_item shift.num is exist - process it [17:08:10]requested_item shift.opened is exist - process it [17:08:10]req_shift_opened [17:08:10]FM_GetShiftState [17:08:10]SAM_PROTO_GetShiftState [17:08:10]wFMCommunicate request_size=4 [17:08:10]MH_SAM_APDU [17:08:10]CAPDU: 80 13 01 00 [17:08:10]Write to MH i2c: E2 08 00 BD 5C 80 13 01 00 00 00 00 00 96 [17:08:10]Write i2c OK [17:08:10]MH_I2C_Read... [17:08:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:10]Read from MH i2c: E2 [17:08:10]MH_I2C_Read... [17:08:10]Read from MH i2c: E2 0E 00 [17:08:10]MH_I2C_Read... [17:08:10]Read from MH i2c: E2 0E 00 BD 5C 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 18 [17:08:10]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [17:08:10]wFMCommunicate OK [17:08:10]SAM_PROTO_GetShiftState done [17:08:10]FM_GetShiftState done [17:08:10]req_shift_opened done [17:08:10]requested_item shift.open_date is exist - process it [17:08:10]req_shift_open_date [17:08:10]req_shift_open_date done [17:08:10]produce_requested_data done [17:08:10]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92652,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [17:08:10]process_action_free close_receipt [17:08:10]json_value_free [17:08:10]json_value_free done [17:08:10]process_json_proto returns [17:08:10]Send response to host [17:08:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92652,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [17:08:10]free response buf [17:08:10]execute_script done [17:08:10]execute_script returns [17:08:10]free content buf [17:08:10]Sock 9.Close socket [17:08:10]Sock 9.Thread stoped [17:08:12]OFD Sender: No OFD packet to send [17:08:17]OFD Sender: No OFD packet to send [17:08:22]OFD Sender: No OFD packet to send [17:08:27]OFD Sender: No OFD packet to send [17:08:32]OFD Sender: No OFD packet to send [17:08:37]OFD Sender: No OFD packet to send [17:08:42]OFD Sender: No OFD packet to send [17:08:47]OFD Sender: No OFD packet to send [17:08:52]OFD Sender: No OFD packet to send [17:08:57]OFD Sender: No OFD packet to send [17:09:02]OFD Sender: No OFD packet to send [17:09:07]OFD Sender: No OFD packet to send [17:09:12]OFD Sender: No OFD packet to send [17:09:17]OFD Sender: No OFD packet to send [17:09:22]OFD Sender: No OFD packet to send [17:09:27]OFD Sender: No OFD packet to send [17:09:32]OFD Sender: No OFD packet to send [17:09:37]OFD Sender: No OFD packet to send [17:09:42]OFD Sender: No OFD packet to send [17:09:47]OFD Sender: No OFD packet to send [17:09:52]OFD Sender: No OFD packet to send [17:09:57]OFD Sender: No OFD packet to send [17:10:02]OFD Sender: No OFD packet to send [17:10:07]OFD Sender: No OFD packet to send [17:10:12]OFD Sender: No OFD packet to send [17:10:17]OFD Sender: No OFD packet to send [17:10:22]OFD Sender: No OFD packet to send [17:10:27]OFD Sender: No OFD packet to send [17:10:32]OFD Sender: No OFD packet to send [17:10:37]OFD Sender: No OFD packet to send [17:10:42]OFD Sender: No OFD packet to send [17:10:47]OFD Sender: No OFD packet to send [17:10:52]OFD Sender: No OFD packet to send [17:10:57]OFD Sender: No OFD packet to send [17:11:02]OFD Sender: No OFD packet to send [17:11:07]OFD Sender: No OFD packet to send [17:11:12]OFD Sender: No OFD packet to send [17:11:17]OFD Sender: No OFD packet to send [17:11:22]OFD Sender: No OFD packet to send [17:11:27]OFD Sender: No OFD packet to send [17:11:32]OFD Sender: No OFD packet to send [17:11:37]OFD Sender: No OFD packet to send [17:11:42]OFD Sender: No OFD packet to send [17:11:47]OFD Sender: No OFD packet to send [17:11:52]OFD Sender: No OFD packet to send [17:11:57]OFD Sender: No OFD packet to send [17:12:02]OFD Sender: No OFD packet to send [17:12:07]OFD Sender: No OFD packet to send [17:12:12]OFD Sender: No OFD packet to send [17:12:17]OFD Sender: No OFD packet to send [17:12:22]OFD Sender: No OFD packet to send [17:12:27]OFD Sender: No OFD packet to send [17:12:32]OFD Sender: No OFD packet to send [17:12:37]OFD Sender: No OFD packet to send [17:12:42]OFD Sender: No OFD packet to send [17:12:47]OFD Sender: No OFD packet to send [17:12:52]OFD Sender: No OFD packet to send [17:12:57]OFD Sender: No OFD packet to send [17:13:02]OFD Sender: No OFD packet to send [17:13:07]OFD Sender: No OFD packet to send [17:13:12]OFD Sender: No OFD packet to send [17:13:17]OFD Sender: No OFD packet to send [17:13:22]OFD Sender: No OFD packet to send [17:13:27]OFD Sender: No OFD packet to send [17:13:32]OFD Sender: No OFD packet to send [17:13:37]OFD Sender: No OFD packet to send [17:13:42]OFD Sender: No OFD packet to send [17:13:47]OFD Sender: No OFD packet to send [17:13:52]OFD Sender: No OFD packet to send [17:13:57]OFD Sender: No OFD packet to send [17:14:02]OFD Sender: No OFD packet to send [17:14:07]OFD Sender: No OFD packet to send [17:14:12]OFD Sender: No OFD packet to send [17:14:17]OFD Sender: No OFD packet to send [17:14:22]OFD Sender: No OFD packet to send [17:14:27]OFD Sender: No OFD packet to send [17:14:32]OFD Sender: No OFD packet to send [17:14:37]OFD Sender: No OFD packet to send [17:14:42]OFD Sender: No OFD packet to send [17:14:47]OFD Sender: No OFD packet to send [17:14:52]OFD Sender: No OFD packet to send [17:14:57]OFD Sender: No OFD packet to send [17:15:02]OFD Sender: No OFD packet to send [17:15:07]OFD Sender: No OFD packet to send [17:15:12]OFD Sender: No OFD packet to send [17:15:17]OFD Sender: No OFD packet to send [17:15:22]OFD Sender: No OFD packet to send [17:15:27]OFD Sender: No OFD packet to send [17:15:32]OFD Sender: No OFD packet to send [17:15:37]OFD Sender: No OFD packet to send [17:15:42]OFD Sender: No OFD packet to send [17:15:47]OFD Sender: No OFD packet to send [17:15:53]OFD Sender: No OFD packet to send [17:15:58]OFD Sender: No OFD packet to send [17:16:03]OFD Sender: No OFD packet to send [17:16:08]OFD Sender: No OFD packet to send [17:16:13]OFD Sender: No OFD packet to send [17:16:18]OFD Sender: No OFD packet to send [17:16:23]OFD Sender: No OFD packet to send [17:16:28]OFD Sender: No OFD packet to send [17:16:33]OFD Sender: No OFD packet to send [17:16:38]OFD Sender: No OFD packet to send [17:16:43]OFD Sender: No OFD packet to send [17:16:48]OFD Sender: No OFD packet to send [17:16:53]OFD Sender: No OFD packet to send [17:16:58]OFD Sender: No OFD packet to send [17:17:03]OFD Sender: No OFD packet to send [17:17:08]OFD Sender: No OFD packet to send [17:17:13]OFD Sender: No OFD packet to send [17:17:18]OFD Sender: No OFD packet to send [17:17:23]OFD Sender: No OFD packet to send [17:17:28]OFD Sender: No OFD packet to send [17:17:33]OFD Sender: No OFD packet to send [17:17:38]OFD Sender: No OFD packet to send [17:17:43]OFD Sender: No OFD packet to send [17:17:48]OFD Sender: No OFD packet to send [17:17:53]OFD Sender: No OFD packet to send [17:17:58]OFD Sender: No OFD packet to send [17:18:03]OFD Sender: No OFD packet to send [17:18:08]OFD Sender: No OFD packet to send [17:18:13]OFD Sender: No OFD packet to send [17:18:18]OFD Sender: No OFD packet to send [17:18:23]OFD Sender: No OFD packet to send [17:18:27]accept exits with 8 [17:18:27]New connection [17:18:27]New thread 3066801508 created [17:18:27]Thread 3066658148 joined [17:18:27]Waiting for new connection... [17:18:27] Sock 8.Parse request [17:18:27]Sock 8.Check first char [17:18:27]Sock 8.First char is OK [17:18:27]request: POST /json_proto HTTP/1.0 [17:18:27]Method: POST [17:18:27]URL: /json_proto [17:18:27]Method is POST - this is cgi request [17:18:27]url: /json_proto [17:18:27]query_string will be loaded in cgi processing [17:18:27]execute_cgi json_proto POST (null) [17:18:27]execute_cgi path=json_proto method=POST [17:18:27]POST find Content-Length [17:18:27]Host: 172.17.57.71:8080 [17:18:27]Content-Length: 646 [17:18:27]Content-Type: application/json [17:18:27] [17:18:27]POST finish read [17:18:27]Found Content-Length = 646 [17:18:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127542", "tax_sys" : 0, "items" : [ { "code": "4860019001339", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,33\u043B \u0441\u0442", "price" : 87.00, "quantity" : 1.000, "sum" : 87.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 87.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:27]execute_script... [17:18:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127542", "tax_sys" : 0, "items" : [ { "code": "4860019001339", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,33\u043B \u0441\u0442", "price" : 87.00, "quantity" : 1.000, "sum" : 87.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 87.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:27]POST & json_proto [17:18:27]process_json_proto [17:18:27]json parsed OK: [17:18:27]protocol is kg_v1.0 [17:18:27]action value=close_receipt [17:18:27]process_action close_receipt [17:18:27]cmd_close_receipt [17:18:27]MH_GetDate [17:18:27]Write to MH i2c: F0 00 00 BE 5C 09 [17:18:27]Write i2c OK [17:18:27]MH_I2C_Read... [17:18:27]Read from MH i2c: F0 [17:18:27]MH_I2C_Read... [17:18:27]Read from MH i2c: F0 09 00 [17:18:27]MH_I2C_Read... [17:18:27]Read from MH i2c: F0 09 00 BE 5C 00 ED 16 E7 66 33 3A A4 66 D9 [17:18:27]GetLastDocTimeStamp 1726420094 [17:18:27]current date 1726420717 [17:18:27]FM_GetShiftState [17:18:27]SAM_PROTO_GetShiftState [17:18:27]wFMCommunicate request_size=4 [17:18:27]MH_SAM_APDU [17:18:27]CAPDU: 80 13 01 00 [17:18:27]Write to MH i2c: E2 08 00 BF 5C 80 13 01 00 00 00 00 00 98 [17:18:27]Write i2c OK [17:18:27]MH_I2C_Read... [17:18:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:27]Read from MH i2c: E2 [17:18:27]MH_I2C_Read... [17:18:27]Read from MH i2c: E2 0E 00 [17:18:27]MH_I2C_Read... [17:18:27]Read from MH i2c: E2 0E 00 BF 5C 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 1A [17:18:27]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [17:18:27]wFMCommunicate OK [17:18:27]SAM_PROTO_GetShiftState done [17:18:27]FM_GetShiftState done [17:18:27]opened in 1726359809 [17:18:27]opened+sec_in_day 1726446209 [17:18:27]quantity*price = 8700 [17:18:27]sum+1 = 8701 [17:18:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 87.00 НСП 1% : 0.77 НДС 12% : 9.24 Наличными: 87.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 101 15.09.2024 17:18 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92653 ФПД: 56307579385931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T171837&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92653&fm=56307579385931&tin=02508201610067®Number=0000000000091423&sum=8700 0 [17:18:28]StoreToDocumentArchive [17:18:28]shift 507 fd 92653 [17:18:28]save to /storage/0507/doc_00092653 [17:18:28]save last doc name /storage/0507/doc_00092653 to /storage/kkm_last_doc_name [17:18:28]save OK [17:18:28]Clear old archive folders... [17:18:28]ProcessDocumentItem done err = 0, tmpTLVsize=277 [17:18:28]tlvbuf is 00FD6400 [17:18:28]SAM_PROTO_ClearQueue [17:18:28]wFMCommunicate request_size=4 [17:18:28]MH_SAM_APDU [17:18:28]CAPDU: 80 09 00 00 [17:18:28]Write to MH i2c: E2 08 00 CC 5C 80 09 00 00 00 00 00 00 9A [17:18:28]Write i2c OK [17:18:28]MH_I2C_Read... [17:18:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:18:28]Read from MH i2c: E2 [17:18:28]MH_I2C_Read... [17:18:28]Read from MH i2c: E2 03 00 [17:18:28]MH_I2C_Read... [17:18:28]Read from MH i2c: E2 03 00 CC 5C 00 90 00 9C [17:18:28]RAPDU: 90 00 [17:18:28]wFMCommunicate OK [17:18:28]SAM_PROTO_ClearQueue done [17:18:28]KKMCreateOFDPacket [17:18:28]OFDProtocolAddRootSTLVToBuf [17:18:28]FM_MakeSignedData [17:18:28]FM_MakeSignedData [17:18:28]SAM_PROTO_SignData [17:18:28]wFMCommunicate request_size=4 [17:18:28]MH_SAM_APDU [17:18:28]CAPDU: 80 0D 01 02 [17:18:28]Write to MH i2c: E2 08 00 CD 5C 80 0D 01 02 00 00 00 00 A2 [17:18:28]Write i2c OK [17:18:28]MH_I2C_Read... [17:18:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:18:28]Read from MH i2c: E2 [17:18:28]MH_I2C_Read... [17:18:28]Read from MH i2c: E2 03 00 [17:18:28]MH_I2C_Read... [17:18:28]Read from MH i2c: E2 03 00 CD 5C 00 90 00 9D [17:18:28]RAPDU: 90 00 [17:18:28]wFMCommunicate OK [17:18:28]wFMCommunicate request_size=255 [17:18:28]MH_SAM_APDU [17:18:28]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 03 00 00 00 00 07 04 06 00 FC 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 ED 16 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 [17:18:28]Write to MH i2c: E2 02 01 CE 5C 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 03 00 00 00 00 07 04 06 00 FC 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 ED 16 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 00 00 E6 [17:18:28]Write i2c OK [17:18:28]MH_I2C_Read... [17:18:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:28]Read from MH i2c: E2 [17:18:28]MH_I2C_Read... [17:18:28]Read from MH i2c: E2 03 00 [17:18:28]MH_I2C_Read... [17:18:28]Read from MH i2c: E2 03 00 CE 5C 00 90 00 9E [17:18:28]RAPDU: 90 00 [17:18:28]wFMCommunicate OK [17:18:28]wFMCommunicate request_size=36 [17:18:28]MH_SAM_APDU [17:18:28]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 ED 69 01 00 35 04 06 00 33 36 21 44 78 4B [17:18:28]Write to MH i2c: E2 27 00 CF 5C 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 ED 69 01 00 35 04 06 00 33 36 21 44 78 4B 00 00 B6 [17:18:28]Write i2c OK [17:18:28]MH_I2C_Read... [17:18:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:29]Read from MH i2c: E2 [17:18:29]MH_I2C_Read... [17:18:29]Read from MH i2c: E2 03 00 [17:18:29]MH_I2C_Read... [17:18:29]Read from MH i2c: E2 03 00 CF 5C 00 90 00 9F [17:18:29]RAPDU: 90 00 [17:18:29]wFMCommunicate OK [17:18:29]wFMCommunicate request_size=4 [17:18:29]MH_SAM_APDU [17:18:29]CAPDU: 80 0D 03 02 [17:18:29]Write to MH i2c: E2 08 00 D0 5C 80 0D 03 02 00 00 00 00 A7 [17:18:29]Write i2c OK [17:18:29]MH_I2C_Read... [17:18:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:18:29]Read from MH i2c: E2 [17:18:29]MH_I2C_Read... [17:18:29]Read from MH i2c: E2 0B 00 [17:18:29]MH_I2C_Read... [17:18:29]Read from MH i2c: E2 0B 00 D0 5C 00 B7 4F E1 DF BB 11 9D F1 90 00 C8 [17:18:29]RAPDU: B7 4F E1 DF BB 11 9D F1 90 00 [17:18:29]wFMCommunicate OK [17:18:29]SAM_PROTO_SignData done [17:18:29]FM_MakeSignedData done [17:18:29]CreateOFDProtocolMessage [17:18:29]wFMCommunicate request_size=4 [17:18:29]MH_SAM_APDU [17:18:29]CAPDU: 80 11 00 00 [17:18:29]Write to MH i2c: E2 08 00 D1 5C 80 11 00 00 00 00 00 00 A7 [17:18:29]Write i2c OK [17:18:29]MH_I2C_Read... [17:18:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:29]Read from MH i2c: E2 [17:18:29]MH_I2C_Read... [17:18:29]Read from MH i2c: E2 17 00 [17:18:29]MH_I2C_Read... [17:18:29]Read from MH i2c: E2 17 00 D1 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 FE [17:18:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:18:29]wFMCommunicate OK [17:18:29]CreateOFDProtocolMessage done [17:18:29]OFDSenderStorePacket 92653 [17:18:29]StoreOFDPacket docnum=92653 [17:18:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 29 01 00 00 45 87 21 01 AB 5B 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 03 00 00 00 00 07 04 06 00 FC 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 ED 16 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 ED 69 01 00 35 04 06 00 33 36 21 44 78 4B B7 4F E1 DF BB 11 9D F1 [17:18:29]CheckFolder [17:18:29]dirname=/storage/ofd_packets [17:18:29]CheckFolder done [17:18:29]ProducePacketName [17:18:29]name=ofd_packets/00092653 [17:18:29]NVStorageSaveData ofd_packets/00092653 [17:18:29]File name is /storage/ofd_packets/00092653 [17:18:29]Write 327 bytes [17:18:29]NVStorageSaveData done [17:18:29]OFDSenderStorePacket done [17:18:29]KKMCreateOFDPacket done [17:18:29]NVStorageSaveData kkm_last_timestamp [17:18:29]File name is /storage/kkm_last_timestamp [17:18:29]Write 4 bytes [17:18:29]NVStorageSaveData done [17:18:29]ExternCall_PrintAddStr [17:18:29]wPrintStart [17:18:29]Write to MH i2c: 01 00 00 D2 5C 2E [17:18:29]Write i2c OK [17:18:29]MH_I2C_Read... [17:18:29]Read from MH i2c: 01 [17:18:29]MH_I2C_Read... [17:18:29]Read from MH i2c: 01 07 00 [17:18:29]MH_I2C_Read... [17:18:29]Read from MH i2c: 01 07 00 D2 5C 00 00 00 00 00 FF 0F 43 [17:18:29]RasterBufferAndPrint [17:18:29]line Счет N : (3)127542 [17:18:29]line ИНН: 02508201610067 [17:18:29]line Контрольно-Кассовый Чек [17:18:29]line ПРОДАЖА [17:18:29]line Товар: 4860019001339 [17:18:29]line Вода Боржоми 0,33л ст [17:18:29]line 1.000 * 87.00 [17:18:29]line = 87.00 [17:18:29]line НДС 12% НСП 1% [17:18:29]line > о реализуемом товаре [17:18:29]line ИТОГО: 87.00 [17:18:29]line НСП 1% : 0.77 [17:18:29]line НДС 12% : 9.24 [17:18:29]line Наличными: 87.00 [17:18:29]line Безнал.: 0.00 [17:18:29]line Место: АЗС № 5 "Партнер Нефть" [17:18:29]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [17:18:29]line СНО: Общий режим [17:18:29]line Чек 101 15.09.2024 17:18 [17:18:29]line Смена: 507 ФФД: 1.0 [17:18:29]line ЗНМ: 03000000022 [17:18:29]line РНМ: 0000000000091423 [17:18:29]line Версия ККМ: 001 [17:18:29]line ФМ: 0000000000874692 [17:18:29]line ФД: 92653 [17:18:29]line ФПД: 56307579385931 [17:18:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T171837&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92653&fm=56307579385931&tin=02508201610067®Number=0000000000091423&sum=8700 [17:18:29]OFD Sender: Processing packet 92653 [packets to send 63, broken 62] [17:18:29]ProducePacketName [17:18:29]name=ofd_packets/00092653 [17:18:29]OFD Sender: To server: pG, [17:18:29]CommunicateWithHost lk.salyk.kg:30040 [17:18:29]ConnectInit lk.salyk.kg [17:18:29]line 0 [17:18:29]written 0, free lines is 4095 [17:18:29]Connected sock=10 [17:18:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 29 01 00 00 45 87 21 01 AB 5B 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 03 00 00 00 00 07 04 06 00 FC 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 ED 16 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 ED 69 01 00 35 04 06 00 33 36 21 44 78 4B B7 4F E1 DF BB 11 9D F1 [17:18:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 3E 31 47 00 AB 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 ED 69 01 00 F4 03 04 00 64 BF E6 66 B6 04 01 00 00 E7 6C D8 CB 7A C1 FE 49 [17:18:29]CommunicateWithHost err = 0 [17:18:29]CheckOFDResponse [17:18:29]1017 (14) - 77093643461234 [17:18:29]1041 (16) - 0000000000874692 [17:18:29]1040 (4) - 92653 [17:18:29]1012 (4) - 15.09.2024 11:05 [17:18:29]1206 (1) - 0 [17:18:29]OFD Sender: Remove packet 92653 [17:18:29]ProducePacketName [17:18:29]name=ofd_packets/00092653 [17:18:29]NVStorageDeleteData [17:18:29]Write to MH i2c: 01 00 00 FA 5C 56 [17:18:29]Write i2c OK [17:18:29]MH_I2C_Read... [17:18:29]Read from MH i2c: 01 [17:18:29]MH_I2C_Read... [17:18:29]Read from MH i2c: 01 07 00 [17:18:29]MH_I2C_Read... [17:18:29]Read from MH i2c: 01 07 00 FA 5C 00 00 00 00 00 19 0D 83 [17:18:29]RasterBufferAndPrint [17:18:29]line [17:18:29]line [17:18:29]line [17:18:29]line [17:18:29]line [17:18:29]written 0, free lines is 3362 [17:18:29]MH_Cut [17:18:29]Write to MH i2c: D1 01 00 01 5D 01 30 [17:18:29]Write i2c OK [17:18:29]MH_I2C_Read... [17:18:29]Read from MH i2c: D1 [17:18:29]MH_I2C_Read... [17:18:29]Read from MH i2c: D1 01 00 [17:18:29]MH_I2C_Read... [17:18:29]Read from MH i2c: D1 01 00 01 5D 00 2F [17:18:29]Write to MH i2c: 01 00 00 02 5D 5F [17:18:29]Write i2c OK [17:18:29]MH_I2C_Read... [17:18:30]OFD Sender: No OFD packet to send [17:18:30]*** Cut start [17:18:30]*** Purtial cut [17:18:30]*** Stage 1: CUTSNS_PIN = 1 [17:18:32]Read from MH i2c: 01 [17:18:32]MH_I2C_Read... [17:18:32]*** Stop cut motor [17:18:32]*** Cut end [17:18:32]Read from MH i2c: 01 07 00 [17:18:32]MH_I2C_Read... [17:18:32]Read from MH i2c: 01 07 00 02 5D 00 00 00 00 00 FF 0F 74 [17:18:32]process_action close_receipt done [17:18:32]requested_data is exist [17:18:32]produce_requested_data [17:18:32]requested_item fm.sn is exist - process it [17:18:32]wFMCommunicate request_size=4 [17:18:32]MH_SAM_APDU [17:18:32]CAPDU: 80 11 00 00 [17:18:32]Write to MH i2c: E2 08 00 03 5D 80 11 00 00 00 00 00 00 DA [17:18:32]Write i2c OK [17:18:32]MH_I2C_Read... [17:18:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:32]Read from MH i2c: E2 [17:18:32]MH_I2C_Read... [17:18:32]Read from MH i2c: E2 17 00 [17:18:32]MH_I2C_Read... [17:18:32]Read from MH i2c: E2 17 00 03 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 31 [17:18:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:18:32]wFMCommunicate OK [17:18:32]requested_item fd.num is exist - process it [17:18:32]SAM_PROTO_GetFieldsCounters [17:18:32]wFMCommunicate request_size=4 [17:18:32]MH_SAM_APDU [17:18:32]CAPDU: 80 13 00 00 [17:18:32]Write to MH i2c: E2 08 00 04 5D 80 13 00 00 00 00 00 00 DD [17:18:32]Write i2c OK [17:18:32]MH_I2C_Read... [17:18:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:18:32]Read from MH i2c: E2 [17:18:32]MH_I2C_Read... [17:18:32]Read from MH i2c: E2 62 00 [17:18:32]MH_I2C_Read... [17:18:32]Read from MH i2c: E2 62 00 04 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 ED 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [17:18:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 ED 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:18:32]wFMCommunicate OK [17:18:32]SAM_PROTO_GetFieldsCounters done [17:18:32]requested_item shift.num is exist - process it [17:18:32]requested_item shift.opened is exist - process it [17:18:32]req_shift_opened [17:18:32]FM_GetShiftState [17:18:32]SAM_PROTO_GetShiftState [17:18:32]wFMCommunicate request_size=4 [17:18:32]MH_SAM_APDU [17:18:32]CAPDU: 80 13 01 00 [17:18:32]Write to MH i2c: E2 08 00 05 5D 80 13 01 00 00 00 00 00 DF [17:18:32]Write i2c OK [17:18:32]MH_I2C_Read... [17:18:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:32]Read from MH i2c: E2 [17:18:32]MH_I2C_Read... [17:18:32]Read from MH i2c: E2 0E 00 [17:18:32]MH_I2C_Read... [17:18:32]Read from MH i2c: E2 0E 00 05 5D 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 61 [17:18:32]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [17:18:32]wFMCommunicate OK [17:18:32]SAM_PROTO_GetShiftState done [17:18:32]FM_GetShiftState done [17:18:32]req_shift_opened done [17:18:32]requested_item shift.open_date is exist - process it [17:18:32]req_shift_open_date [17:18:32]req_shift_open_date done [17:18:32]produce_requested_data done [17:18:32]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92653,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [17:18:32]process_action_free close_receipt [17:18:32]json_value_free [17:18:32]json_value_free done [17:18:32]process_json_proto returns [17:18:32]Send response to host [17:18:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92653,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [17:18:32]free response buf [17:18:32]execute_script done [17:18:32]execute_script returns [17:18:32]free content buf [17:18:32]Sock 8.Close socket [17:18:32]Sock 8.Thread stoped [17:18:35]OFD Sender: No OFD packet to send [17:18:40]OFD Sender: No OFD packet to send [17:18:45]OFD Sender: No OFD packet to send [17:18:50]OFD Sender: No OFD packet to send [17:18:55]OFD Sender: No OFD packet to send [17:19:00]OFD Sender: No OFD packet to send [17:19:00]accept exits with 9 [17:19:00]New connection [17:19:00]New thread 3066658148 created [17:19:00]Thread 3066801508 joined [17:19:00]Waiting for new connection... [17:19:00] Sock 9.Parse request [17:19:00]Sock 9.Check first char [17:19:00]Sock 9.First char is OK [17:19:00]request: POST /json_proto HTTP/1.0 [17:19:00]Method: POST [17:19:00]URL: /json_proto [17:19:00]Method is POST - this is cgi request [17:19:00]url: /json_proto [17:19:00]query_string will be loaded in cgi processing [17:19:00]execute_cgi json_proto POST (null) [17:19:00]execute_cgi path=json_proto method=POST [17:19:00]POST find Content-Length [17:19:00]Host: 172.17.57.71:8080 [17:19:00]Content-Length: 972 [17:19:00]Content-Type: application/json [17:19:00] [17:19:00]POST finish read [17:19:00]Found Content-Length = 972 [17:19:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127543", "tax_sys" : 0, "items" : [ { "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 2.000, "sum" : 530.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 615.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:00]execute_script... [17:19:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127543", "tax_sys" : 0, "items" : [ { "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 2.000, "sum" : 530.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 615.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:00]POST & json_proto [17:19:00]process_json_proto [17:19:00]json parsed OK: [17:19:00]protocol is kg_v1.0 [17:19:00]action value=close_receipt [17:19:00]process_action close_receipt [17:19:00]cmd_close_receipt [17:19:00]MH_GetDate [17:19:00]Write to MH i2c: F0 00 00 06 5D 52 [17:19:00]Write i2c OK [17:19:00]MH_I2C_Read... [17:19:00]Read from MH i2c: F0 [17:19:00]MH_I2C_Read... [17:19:00]Read from MH i2c: F0 09 00 [17:19:00]MH_I2C_Read... [17:19:00]Read from MH i2c: F0 09 00 06 5D 00 0E 17 E7 66 33 3A A4 66 44 [17:19:00]GetLastDocTimeStamp 1726420717 [17:19:00]current date 1726420750 [17:19:00]FM_GetShiftState [17:19:00]SAM_PROTO_GetShiftState [17:19:00]wFMCommunicate request_size=4 [17:19:00]MH_SAM_APDU [17:19:00]CAPDU: 80 13 01 00 [17:19:00]Write to MH i2c: E2 08 00 07 5D 80 13 01 00 00 00 00 00 E1 [17:19:00]Write i2c OK [17:19:00]MH_I2C_Read... [17:19:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:00]Read from MH i2c: E2 [17:19:00]MH_I2C_Read... [17:19:00]Read from MH i2c: E2 0E 00 [17:19:00]MH_I2C_Read... [17:19:00]Read from MH i2c: E2 0E 00 07 5D 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 63 [17:19:00]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [17:19:00]wFMCommunicate OK [17:19:00]SAM_PROTO_GetShiftState done [17:19:00]FM_GetShiftState done [17:19:00]opened in 1726359809 [17:19:00]opened+sec_in_day 1726446209 [17:19:00]quantity*price = 53000 [17:19:00]sum+1 = 53001 [17:19:00]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4660085515163 Шок Батончик Сникерс супер 95/80г 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 615.00 НСП 1% : 5.44 НДС 12% : 65.31 Наличными: 615.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 102 15.09.2024 17:19 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92654 ФПД: 130587569613808 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T171910&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92654&fm=130587569613808&tin=02508201610067®Number=0000000000091423&sum=61500 0 [17:19:01]StoreToDocumentArchive [17:19:01]shift 507 fd 92654 [17:19:01]save to /storage/0507/doc_00092654 [17:19:01]save last doc name /storage/0507/doc_00092654 to /storage/kkm_last_doc_name [17:19:01]save OK [17:19:01]Clear old archive folders... [17:19:01]ProcessDocumentItem done err = 0, tmpTLVsize=408 [17:19:01]tlvbuf is 01022490 [17:19:01]SAM_PROTO_ClearQueue [17:19:01]wFMCommunicate request_size=4 [17:19:01]MH_SAM_APDU [17:19:01]CAPDU: 80 09 00 00 [17:19:01]Write to MH i2c: E2 08 00 14 5D 80 09 00 00 00 00 00 00 E3 [17:19:01]Write i2c OK [17:19:01]MH_I2C_Read... [17:19:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:01]Read from MH i2c: E2 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 03 00 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 03 00 14 5D 00 90 00 E5 [17:19:01]RAPDU: 90 00 [17:19:01]wFMCommunicate OK [17:19:01]SAM_PROTO_ClearQueue done [17:19:01]KKMCreateOFDPacket [17:19:01]OFDProtocolAddRootSTLVToBuf [17:19:01]FM_MakeSignedData [17:19:01]FM_MakeSignedData [17:19:01]SAM_PROTO_SignData [17:19:01]wFMCommunicate request_size=4 [17:19:01]MH_SAM_APDU [17:19:01]CAPDU: 80 0D 01 02 [17:19:01]Write to MH i2c: E2 08 00 15 5D 80 0D 01 02 00 00 00 00 EB [17:19:01]Write i2c OK [17:19:01]MH_I2C_Read... [17:19:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:01]Read from MH i2c: E2 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 03 00 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 03 00 15 5D 00 90 00 E6 [17:19:01]RAPDU: 90 00 [17:19:01]wFMCommunicate OK [17:19:01]wFMCommunicate request_size=255 [17:19:01]MH_SAM_APDU [17:19:01]CAPDU: 80 0D 02 02 FA 03 00 98 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 08 CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 [17:19:01]Write to MH i2c: E2 02 01 16 5D 80 0D 02 02 FA 00 03 00 98 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 08 CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 61 [17:19:01]Write i2c OK [17:19:01]MH_I2C_Read... [17:19:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:02]Read from MH i2c: E2 [17:19:02]MH_I2C_Read... [17:19:02]Read from MH i2c: E2 03 00 [17:19:02]MH_I2C_Read... [17:19:02]Read from MH i2c: E2 03 00 16 5D 00 90 00 E7 [17:19:02]RAPDU: 90 00 [17:19:02]wFMCommunicate OK [17:19:02]wFMCommunicate request_size=167 [17:19:02]MH_SAM_APDU [17:19:02]CAPDU: 80 0D 02 02 A2 00 3C F0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 19 00 00 00 00 07 04 06 00 3C F0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 0E 17 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EE 69 01 00 35 04 06 00 76 C4 C9 B2 EB F0 [17:19:02]Write to MH i2c: E2 AA 00 17 5D 80 0D 02 02 A2 00 00 3C F0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 19 00 00 00 00 07 04 06 00 3C F0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 0E 17 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EE 69 01 00 35 04 06 00 76 C4 C9 B2 EB F0 00 00 3F [17:19:02]Write i2c OK [17:19:02]MH_I2C_Read... [17:19:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:02]Read from MH i2c: E2 [17:19:02]MH_I2C_Read... [17:19:02]Read from MH i2c: E2 03 00 [17:19:02]MH_I2C_Read... [17:19:02]Read from MH i2c: E2 03 00 17 5D 00 90 00 E8 [17:19:02]RAPDU: 90 00 [17:19:02]wFMCommunicate OK [17:19:02]wFMCommunicate request_size=4 [17:19:02]MH_SAM_APDU [17:19:02]CAPDU: 80 0D 03 02 [17:19:02]Write to MH i2c: E2 08 00 18 5D 80 0D 03 02 00 00 00 00 F0 [17:19:02]Write i2c OK [17:19:02]MH_I2C_Read... [17:19:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:02]Read from MH i2c: E2 [17:19:02]MH_I2C_Read... [17:19:02]Read from MH i2c: E2 0B 00 [17:19:02]MH_I2C_Read... [17:19:02]Read from MH i2c: E2 0B 00 18 5D 00 5C 95 21 89 31 99 D9 1B 90 00 4A [17:19:02]RAPDU: 5C 95 21 89 31 99 D9 1B 90 00 [17:19:02]wFMCommunicate OK [17:19:02]SAM_PROTO_SignData done [17:19:02]FM_MakeSignedData done [17:19:02]CreateOFDProtocolMessage [17:19:02]wFMCommunicate request_size=4 [17:19:02]MH_SAM_APDU [17:19:02]CAPDU: 80 11 00 00 [17:19:02]Write to MH i2c: E2 08 00 19 5D 80 11 00 00 00 00 00 00 F0 [17:19:02]Write i2c OK [17:19:02]MH_I2C_Read... [17:19:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:02]Read from MH i2c: E2 [17:19:02]MH_I2C_Read... [17:19:02]Read from MH i2c: E2 17 00 [17:19:02]MH_I2C_Read... [17:19:02]Read from MH i2c: E2 17 00 19 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 47 [17:19:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:19:02]wFMCommunicate OK [17:19:02]CreateOFDProtocolMessage done [17:19:02]OFDSenderStorePacket 92654 [17:19:02]StoreOFDPacket docnum=92654 [17:19:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 AC 01 00 00 38 FE A4 01 F7 43 5A 03 01 00 03 00 98 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 08 CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C F0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 19 00 00 00 00 07 04 06 00 3C F0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 0E 17 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EE 69 01 00 35 04 06 00 76 C4 C9 B2 EB F0 5C 95 21 89 31 99 D9 1B [17:19:02]CheckFolder [17:19:02]dirname=/storage/ofd_packets [17:19:02]CheckFolder done [17:19:02]ProducePacketName [17:19:02]name=ofd_packets/00092654 [17:19:02]NVStorageSaveData ofd_packets/00092654 [17:19:02]File name is /storage/ofd_packets/00092654 [17:19:02]Write 458 bytes [17:19:02]NVStorageSaveData done [17:19:02]OFDSenderStorePacket done [17:19:02]KKMCreateOFDPacket done [17:19:02]NVStorageSaveData kkm_last_timestamp [17:19:02]File name is /storage/kkm_last_timestamp [17:19:02]Write 4 bytes [17:19:02]NVStorageSaveData done [17:19:02]ExternCall_PrintAddStr [17:19:02]wPrintStart [17:19:02]Write to MH i2c: 01 00 00 1A 5D 77 [17:19:02]Write i2c OK [17:19:02]MH_I2C_Read... [17:19:02]Read from MH i2c: 01 [17:19:02]MH_I2C_Read... [17:19:02]Read from MH i2c: 01 07 00 [17:19:02]MH_I2C_Read... [17:19:02]Read from MH i2c: 01 07 00 1A 5D 00 00 00 00 00 FF 0F 8C [17:19:02]RasterBufferAndPrint [17:19:02]line Счет N : (3)127543 [17:19:02]line ИНН: 02508201610067 [17:19:02]line Контрольно-Кассовый Чек [17:19:02]line ПРОДАЖА [17:19:02]line Товар: 90448300 [17:19:02]line Энерг напиток Red Bull 0,355л [17:19:02]line 2.000 * 265.00 [17:19:02]line = 530.00 [17:19:02]line НДС 12% НСП 1% [17:19:02]line > о реализуемом товаре [17:19:02]line Товар: 4660085515163 [17:19:02]line Шок Батончик Сникерс супер 95/80г [17:19:02]line 1.000 * 85.00 [17:19:02]line = 85.00 [17:19:02]line НДС 12% НСП 1% [17:19:02]line > о реализуемом товаре [17:19:02]line ИТОГО: 615.00 [17:19:02]line НСП 1% : 5.44 [17:19:02]line НДС 12% : 65.31 [17:19:02]line Наличными: 615.00 [17:19:02]line Безнал.: 0.00 [17:19:02]line Место: АЗС № 5 "Партнер Нефть" [17:19:02]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [17:19:02]line СНО: Общий режим [17:19:02]line Чек 102 15.09.2024 17:19 [17:19:02]line Смена: 507 ФФД: 1.0 [17:19:02]line ЗНМ: 03000000022 [17:19:02]line РНМ: 0000000000091423 [17:19:02]line Версия ККМ: 001 [17:19:02]line ФМ: 0000000000874692 [17:19:02]line ФД: 92654 [17:19:02]line ФПД: 130587569613808 [17:19:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T171910&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92654&fm=130587569613808&tin=02508201610067®Number=0000000000091423&sum=61500 [17:19:02]OFD Sender: Processing packet 92654 [packets to send 63, broken 62] [17:19:02]ProducePacketName [17:19:02]name=ofd_packets/00092654 [17:19:02]OFD Sender: To server: pG, [17:19:02]CommunicateWithHost lk.salyk.kg:30040 [17:19:02]ConnectInit lk.salyk.kg [17:19:02]line 0 [17:19:02]written 0, free lines is 4095 [17:19:02]Connected sock=11 [17:19:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 AC 01 00 00 38 FE A4 01 F7 43 5A 03 01 00 03 00 98 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 08 CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C F0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 19 00 00 00 00 07 04 06 00 3C F0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 0E 17 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EE 69 01 00 35 04 06 00 76 C4 C9 B2 EB F0 5C 95 21 89 31 99 D9 1B [17:19:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 8B 8D 47 00 21 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EE 69 01 00 F4 03 04 00 85 BF E6 66 B6 04 01 00 00 0D FE BE 70 3E 3C 83 22 [17:19:03]CommunicateWithHost err = 0 [17:19:03]CheckOFDResponse [17:19:03]1017 (14) - 77093643461234 [17:19:03]1041 (16) - 0000000000874692 [17:19:03]1040 (4) - 92654 [17:19:03]1012 (4) - 15.09.2024 11:05 [17:19:03]1206 (1) - 0 [17:19:03]OFD Sender: Remove packet 92654 [17:19:03]ProducePacketName [17:19:03]name=ofd_packets/00092654 [17:19:03]NVStorageDeleteData [17:19:03]Write to MH i2c: 01 00 00 49 5D A6 [17:19:03]Write i2c OK [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: 01 [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: 01 07 00 [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: 01 07 00 49 5D 00 00 00 00 00 D6 0C 8F [17:19:03]RasterBufferAndPrint [17:19:03]line [17:19:03]line [17:19:03]line [17:19:03]line [17:19:03]line [17:19:03]written 0, free lines is 3294 [17:19:03]MH_Cut [17:19:03]Write to MH i2c: D1 01 00 50 5D 01 7F [17:19:03]Write i2c OK [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: D1 [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: D1 01 00 [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: D1 01 00 50 5D 00 7E [17:19:03]Write to MH i2c: 01 00 00 51 5D AE [17:19:03]Write i2c OK [17:19:03]MH_I2C_Read... [17:19:03]OFD Sender: No OFD packet to send [17:19:03]*** Cut start [17:19:03]*** Purtial cut [17:19:03]*** Stage 1: CUTSNS_PIN = 1 [17:19:05]Read from MH i2c: 01 [17:19:05]MH_I2C_Read... [17:19:05]*** Stop cut motor [17:19:06]*** Cut end [17:19:06]Read from MH i2c: 01 07 00 [17:19:06]MH_I2C_Read... [17:19:06]Read from MH i2c: 01 07 00 51 5D 00 00 00 00 00 FF 0F C3 [17:19:06]process_action close_receipt done [17:19:06]requested_data is exist [17:19:06]produce_requested_data [17:19:06]requested_item fm.sn is exist - process it [17:19:06]wFMCommunicate request_size=4 [17:19:06]MH_SAM_APDU [17:19:06]CAPDU: 80 11 00 00 [17:19:06]Write to MH i2c: E2 08 00 52 5D 80 11 00 00 00 00 00 00 29 [17:19:06]Write i2c OK [17:19:06]MH_I2C_Read... [17:19:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:06]Read from MH i2c: E2 [17:19:06]MH_I2C_Read... [17:19:06]Read from MH i2c: E2 17 00 [17:19:06]MH_I2C_Read... [17:19:06]Read from MH i2c: E2 17 00 52 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 80 [17:19:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:19:06]wFMCommunicate OK [17:19:06]requested_item fd.num is exist - process it [17:19:06]SAM_PROTO_GetFieldsCounters [17:19:06]wFMCommunicate request_size=4 [17:19:06]MH_SAM_APDU [17:19:06]CAPDU: 80 13 00 00 [17:19:06]Write to MH i2c: E2 08 00 53 5D 80 13 00 00 00 00 00 00 2C [17:19:06]Write i2c OK [17:19:06]MH_I2C_Read... [17:19:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:06]Read from MH i2c: E2 [17:19:06]MH_I2C_Read... [17:19:06]Read from MH i2c: E2 62 00 [17:19:06]MH_I2C_Read... [17:19:06]Read from MH i2c: E2 62 00 53 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 EE 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [17:19:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 EE 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:06]wFMCommunicate OK [17:19:06]SAM_PROTO_GetFieldsCounters done [17:19:06]requested_item shift.num is exist - process it [17:19:06]requested_item shift.opened is exist - process it [17:19:06]req_shift_opened [17:19:06]FM_GetShiftState [17:19:06]SAM_PROTO_GetShiftState [17:19:06]wFMCommunicate request_size=4 [17:19:06]MH_SAM_APDU [17:19:06]CAPDU: 80 13 01 00 [17:19:06]Write to MH i2c: E2 08 00 54 5D 80 13 01 00 00 00 00 00 2E [17:19:06]Write i2c OK [17:19:06]MH_I2C_Read... [17:19:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:06]Read from MH i2c: E2 [17:19:06]MH_I2C_Read... [17:19:06]Read from MH i2c: E2 0E 00 [17:19:06]MH_I2C_Read... [17:19:06]Read from MH i2c: E2 0E 00 54 5D 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 B0 [17:19:06]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [17:19:06]wFMCommunicate OK [17:19:06]SAM_PROTO_GetShiftState done [17:19:06]FM_GetShiftState done [17:19:06]req_shift_opened done [17:19:06]requested_item shift.open_date is exist - process it [17:19:06]req_shift_open_date [17:19:06]req_shift_open_date done [17:19:06]produce_requested_data done [17:19:06]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92654,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [17:19:06]process_action_free close_receipt [17:19:06]json_value_free [17:19:06]json_value_free done [17:19:06]process_json_proto returns [17:19:06]Send response to host [17:19:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92654,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [17:19:06]free response buf [17:19:06]execute_script done [17:19:06]execute_script returns [17:19:06]free content buf [17:19:06]Sock 9.Close socket [17:19:06]Sock 9.Thread stoped [17:19:08]OFD Sender: No OFD packet to send [17:19:13]OFD Sender: No OFD packet to send [17:19:18]OFD Sender: No OFD packet to send [17:19:23]OFD Sender: No OFD packet to send [17:19:28]OFD Sender: No OFD packet to send [17:19:33]OFD Sender: No OFD packet to send [17:19:38]OFD Sender: No OFD packet to send [17:19:43]OFD Sender: No OFD packet to send [17:19:48]OFD Sender: No OFD packet to send [17:19:53]OFD Sender: No OFD packet to send [17:19:58]OFD Sender: No OFD packet to send [17:20:03]OFD Sender: No OFD packet to send [17:20:08]OFD Sender: No OFD packet to send [17:20:13]OFD Sender: No OFD packet to send [17:20:18]OFD Sender: No OFD packet to send [17:20:23]OFD Sender: No OFD packet to send [17:20:28]OFD Sender: No OFD packet to send [17:20:33]OFD Sender: No OFD packet to send [17:20:38]OFD Sender: No OFD packet to send [17:20:43]OFD Sender: No OFD packet to send [17:20:48]OFD Sender: No OFD packet to send [17:20:53]OFD Sender: No OFD packet to send [17:20:58]OFD Sender: No OFD packet to send [17:21:03]OFD Sender: No OFD packet to send [17:21:08]OFD Sender: No OFD packet to send [17:21:13]OFD Sender: No OFD packet to send [17:21:18]OFD Sender: No OFD packet to send [17:21:23]OFD Sender: No OFD packet to send [17:21:28]OFD Sender: No OFD packet to send [17:21:33]OFD Sender: No OFD packet to send [17:21:38]OFD Sender: No OFD packet to send [17:21:43]OFD Sender: No OFD packet to send [17:21:48]OFD Sender: No OFD packet to send [17:21:53]OFD Sender: No OFD packet to send [17:21:58]OFD Sender: No OFD packet to send [17:22:03]OFD Sender: No OFD packet to send [17:22:08]OFD Sender: No OFD packet to send [17:22:13]OFD Sender: No OFD packet to send [17:22:18]OFD Sender: No OFD packet to send [17:22:23]OFD Sender: No OFD packet to send [17:22:28]OFD Sender: No OFD packet to send [17:22:33]OFD Sender: No OFD packet to send [17:22:38]OFD Sender: No OFD packet to send [17:22:43]OFD Sender: No OFD packet to send [17:22:48]OFD Sender: No OFD packet to send [17:22:53]OFD Sender: No OFD packet to send [17:22:58]OFD Sender: No OFD packet to send [17:23:03]OFD Sender: No OFD packet to send [17:23:08]OFD Sender: No OFD packet to send [17:23:13]OFD Sender: No OFD packet to send [17:23:18]OFD Sender: No OFD packet to send [17:23:23]OFD Sender: No OFD packet to send [17:23:28]OFD Sender: No OFD packet to send [17:23:33]OFD Sender: No OFD packet to send [17:23:38]OFD Sender: No OFD packet to send [17:23:43]OFD Sender: No OFD packet to send [17:23:48]OFD Sender: No OFD packet to send [17:23:53]OFD Sender: No OFD packet to send [17:23:58]OFD Sender: No OFD packet to send [17:24:03]OFD Sender: No OFD packet to send [17:24:08]OFD Sender: No OFD packet to send [17:24:13]OFD Sender: No OFD packet to send [17:24:18]OFD Sender: No OFD packet to send [17:24:23]OFD Sender: No OFD packet to send [17:24:28]OFD Sender: No OFD packet to send [17:24:33]OFD Sender: No OFD packet to send [17:24:38]OFD Sender: No OFD packet to send [17:24:43]OFD Sender: No OFD packet to send [17:24:48]OFD Sender: No OFD packet to send [17:24:53]OFD Sender: No OFD packet to send [17:24:58]OFD Sender: No OFD packet to send [17:25:03]OFD Sender: No OFD packet to send [17:25:08]OFD Sender: No OFD packet to send [17:25:13]OFD Sender: No OFD packet to send [17:25:18]OFD Sender: No OFD packet to send [17:25:23]OFD Sender: No OFD packet to send [17:25:28]OFD Sender: No OFD packet to send [17:25:33]OFD Sender: No OFD packet to send [17:25:38]OFD Sender: No OFD packet to send [17:25:43]OFD Sender: No OFD packet to send [17:25:48]OFD Sender: No OFD packet to send [17:25:53]OFD Sender: No OFD packet to send [17:25:58]OFD Sender: No OFD packet to send [17:26:03]OFD Sender: No OFD packet to send [17:26:08]OFD Sender: No OFD packet to send [17:26:13]OFD Sender: No OFD packet to send [17:26:18]OFD Sender: No OFD packet to send [17:26:23]OFD Sender: No OFD packet to send [17:26:28]OFD Sender: No OFD packet to send [17:26:33]OFD Sender: No OFD packet to send [17:26:38]OFD Sender: No OFD packet to send [17:26:43]OFD Sender: No OFD packet to send [17:26:48]OFD Sender: No OFD packet to send [17:26:53]OFD Sender: No OFD packet to send [17:26:58]OFD Sender: No OFD packet to send [17:27:03]OFD Sender: No OFD packet to send [17:27:08]OFD Sender: No OFD packet to send [17:27:13]OFD Sender: No OFD packet to send [17:27:18]OFD Sender: No OFD packet to send [17:27:24]OFD Sender: No OFD packet to send [17:27:29]OFD Sender: No OFD packet to send [17:27:34]OFD Sender: No OFD packet to send [17:27:39]OFD Sender: No OFD packet to send [17:27:44]OFD Sender: No OFD packet to send [17:27:49]OFD Sender: No OFD packet to send [17:27:54]OFD Sender: No OFD packet to send [17:27:59]OFD Sender: No OFD packet to send [17:28:04]OFD Sender: No OFD packet to send [17:28:09]OFD Sender: No OFD packet to send [17:28:14]OFD Sender: No OFD packet to send [17:28:19]OFD Sender: No OFD packet to send [17:28:24]OFD Sender: No OFD packet to send [17:28:29]OFD Sender: No OFD packet to send [17:28:34]OFD Sender: No OFD packet to send [17:28:39]OFD Sender: No OFD packet to send [17:28:44]OFD Sender: No OFD packet to send [17:28:49]OFD Sender: No OFD packet to send [17:28:54]OFD Sender: No OFD packet to send [17:28:59]OFD Sender: No OFD packet to send [17:29:04]OFD Sender: No OFD packet to send [17:29:09]OFD Sender: No OFD packet to send [17:29:14]OFD Sender: No OFD packet to send [17:29:19]OFD Sender: No OFD packet to send [17:29:24]OFD Sender: No OFD packet to send [17:29:29]OFD Sender: No OFD packet to send [17:29:34]OFD Sender: No OFD packet to send [17:29:39]OFD Sender: No OFD packet to send [17:29:44]OFD Sender: No OFD packet to send [17:29:49]OFD Sender: No OFD packet to send [17:29:54]OFD Sender: No OFD packet to send [17:29:59]OFD Sender: No OFD packet to send [17:30:04]OFD Sender: No OFD packet to send [17:30:09]OFD Sender: No OFD packet to send [17:30:14]OFD Sender: No OFD packet to send [17:30:19]OFD Sender: No OFD packet to send [17:30:24]OFD Sender: No OFD packet to send [17:30:29]OFD Sender: No OFD packet to send [17:30:34]OFD Sender: No OFD packet to send [17:30:39]OFD Sender: No OFD packet to send [17:30:44]OFD Sender: No OFD packet to send [17:30:49]OFD Sender: No OFD packet to send [17:30:54]OFD Sender: No OFD packet to send [17:30:59]OFD Sender: No OFD packet to send [17:31:04]OFD Sender: No OFD packet to send [17:31:09]OFD Sender: No OFD packet to send [17:31:14]OFD Sender: No OFD packet to send [17:31:19]OFD Sender: No OFD packet to send [17:31:24]OFD Sender: No OFD packet to send [17:31:29]OFD Sender: No OFD packet to send [17:31:34]OFD Sender: No OFD packet to send [17:31:39]OFD Sender: No OFD packet to send [17:31:44]OFD Sender: No OFD packet to send [17:31:49]OFD Sender: No OFD packet to send [17:31:54]OFD Sender: No OFD packet to send [17:31:59]OFD Sender: No OFD packet to send [17:32:04]OFD Sender: No OFD packet to send [17:32:09]OFD Sender: No OFD packet to send [17:32:14]OFD Sender: No OFD packet to send [17:32:19]OFD Sender: No OFD packet to send [17:32:24]OFD Sender: No OFD packet to send [17:32:29]OFD Sender: No OFD packet to send [17:32:34]OFD Sender: No OFD packet to send [17:32:39]OFD Sender: No OFD packet to send [17:32:44]OFD Sender: No OFD packet to send [17:32:49]OFD Sender: No OFD packet to send [17:32:54]OFD Sender: No OFD packet to send [17:32:59]OFD Sender: No OFD packet to send [17:33:04]OFD Sender: No OFD packet to send [17:33:09]OFD Sender: No OFD packet to send [17:33:14]OFD Sender: No OFD packet to send [17:33:19]OFD Sender: No OFD packet to send [17:33:24]OFD Sender: No OFD packet to send [17:33:29]OFD Sender: No OFD packet to send [17:33:34]OFD Sender: No OFD packet to send [17:33:39]OFD Sender: No OFD packet to send [17:33:44]OFD Sender: No OFD packet to send [17:33:49]OFD Sender: No OFD packet to send [17:33:54]OFD Sender: No OFD packet to send [17:33:59]OFD Sender: No OFD packet to send [17:34:04]OFD Sender: No OFD packet to send [17:34:09]OFD Sender: No OFD packet to send [17:34:14]OFD Sender: No OFD packet to send [17:34:19]OFD Sender: No OFD packet to send [17:34:24]OFD Sender: No OFD packet to send [17:34:29]OFD Sender: No OFD packet to send [17:34:34]OFD Sender: No OFD packet to send [17:34:39]OFD Sender: No OFD packet to send [17:34:44]OFD Sender: No OFD packet to send [17:34:49]OFD Sender: No OFD packet to send [17:34:54]OFD Sender: No OFD packet to send [17:34:59]OFD Sender: No OFD packet to send [17:35:00]accept exits with 8 [17:35:00]New connection [17:35:00]New thread 3066801508 created [17:35:00]Thread 3066658148 joined [17:35:00]Waiting for new connection... [17:35:00] Sock 8.Parse request [17:35:00]Sock 8.Check first char [17:35:00]Sock 8.First char is OK [17:35:00]request: POST /json_proto HTTP/1.0 [17:35:00]Method: POST [17:35:00]URL: /json_proto [17:35:00]Method is POST - this is cgi request [17:35:00]url: /json_proto [17:35:00]query_string will be loaded in cgi processing [17:35:00]execute_cgi json_proto POST (null) [17:35:00]execute_cgi path=json_proto method=POST [17:35:00]POST find Content-Length [17:35:00]Host: 172.17.57.71:8080 [17:35:00]Content-Length: 1278 [17:35:00]Content-Type: application/json [17:35:00] [17:35:00]POST finish read [17:35:00]Found Content-Length = 1278 [17:35:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127544", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620017453536", "name": "\u0422\u0430\u0440\u0430\u043B\u043B\u0438\u043D\u0438 NF 180\u0433 \u0447\u0435\u0441\u043D\u043E\u043A", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:00]execute_script... [17:35:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127544", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620017453536", "name": "\u0422\u0430\u0440\u0430\u043B\u043B\u0438\u043D\u0438 NF 180\u0433 \u0447\u0435\u0441\u043D\u043E\u043A", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:00]POST & json_proto [17:35:00]process_json_proto [17:35:00]json parsed OK: [17:35:00]protocol is kg_v1.0 [17:35:00]action value=close_receipt [17:35:00]process_action close_receipt [17:35:00]cmd_close_receipt [17:35:00]MH_GetDate [17:35:00]Write to MH i2c: F0 00 00 55 5D A1 [17:35:00]Write i2c OK [17:35:00]MH_I2C_Read... [17:35:00]Read from MH i2c: F0 [17:35:00]MH_I2C_Read... [17:35:00]Read from MH i2c: F0 09 00 [17:35:00]MH_I2C_Read... [17:35:00]Read from MH i2c: F0 09 00 55 5D 00 CE 1A E7 66 33 3A A4 66 56 [17:35:00]GetLastDocTimeStamp 1726420750 [17:35:00]current date 1726421710 [17:35:00]FM_GetShiftState [17:35:00]SAM_PROTO_GetShiftState [17:35:00]wFMCommunicate request_size=4 [17:35:00]MH_SAM_APDU [17:35:00]CAPDU: 80 13 01 00 [17:35:00]Write to MH i2c: E2 08 00 56 5D 80 13 01 00 00 00 00 00 30 [17:35:00]Write i2c OK [17:35:00]MH_I2C_Read... [17:35:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:00]Read from MH i2c: E2 [17:35:00]MH_I2C_Read... [17:35:00]Read from MH i2c: E2 0E 00 [17:35:00]MH_I2C_Read... [17:35:00]Read from MH i2c: E2 0E 00 56 5D 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 B2 [17:35:00]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [17:35:00]wFMCommunicate OK [17:35:00]SAM_PROTO_GetShiftState done [17:35:00]FM_GetShiftState done [17:35:00]opened in 1726359809 [17:35:00]opened+sec_in_day 1726446209 [17:35:00]quantity*price = 10500 [17:35:00]sum+1 = 10501 [17:35:00]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4620017453536 Тараллини NF 180г чеснок 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.66 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 103 15.09.2024 17:35 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92655 ФПД: 192513914439146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T173510&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92655&fm=192513914439146&tin=02508201610067®Number=0000000000091423&sum=30000 0 [17:35:01]StoreToDocumentArchive [17:35:01]shift 507 fd 92655 [17:35:01]save to /storage/0507/doc_00092655 [17:35:01]save last doc name /storage/0507/doc_00092655 to /storage/kkm_last_doc_name [17:35:01]save OK [17:35:01]Clear old archive folders... [17:35:01]ProcessDocumentItem done err = 0, tmpTLVsize=528 [17:35:01]tlvbuf is 00FA1B90 [17:35:01]SAM_PROTO_ClearQueue [17:35:01]wFMCommunicate request_size=4 [17:35:01]MH_SAM_APDU [17:35:01]CAPDU: 80 09 00 00 [17:35:01]Write to MH i2c: E2 08 00 63 5D 80 09 00 00 00 00 00 00 32 [17:35:01]Write i2c OK [17:35:01]MH_I2C_Read... [17:35:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:35:01]Read from MH i2c: E2 [17:35:01]MH_I2C_Read... [17:35:01]Read from MH i2c: E2 03 00 [17:35:01]MH_I2C_Read... [17:35:01]Read from MH i2c: E2 03 00 63 5D 00 90 00 34 [17:35:01]RAPDU: 90 00 [17:35:01]wFMCommunicate OK [17:35:01]SAM_PROTO_ClearQueue done [17:35:01]KKMCreateOFDPacket [17:35:01]OFDProtocolAddRootSTLVToBuf [17:35:01]FM_MakeSignedData [17:35:01]FM_MakeSignedData [17:35:01]SAM_PROTO_SignData [17:35:01]wFMCommunicate request_size=4 [17:35:01]MH_SAM_APDU [17:35:01]CAPDU: 80 0D 01 02 [17:35:01]Write to MH i2c: E2 08 00 64 5D 80 0D 01 02 00 00 00 00 3A [17:35:01]Write i2c OK [17:35:01]MH_I2C_Read... [17:35:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:35:01]Read from MH i2c: E2 [17:35:01]MH_I2C_Read... [17:35:01]Read from MH i2c: E2 03 00 [17:35:01]MH_I2C_Read... [17:35:01]Read from MH i2c: E2 03 00 64 5D 00 90 00 35 [17:35:01]RAPDU: 90 00 [17:35:01]wFMCommunicate OK [17:35:01]wFMCommunicate request_size=255 [17:35:01]MH_SAM_APDU [17:35:01]CAPDU: 80 0D 02 02 FA 03 00 10 02 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 [17:35:02]Write to MH i2c: E2 02 01 65 5D 80 0D 02 02 FA 00 03 00 10 02 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 00 00 CC [17:35:02]Write i2c OK [17:35:02]MH_I2C_Read... [17:35:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:02]Read from MH i2c: E2 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: E2 03 00 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: E2 03 00 65 5D 00 90 00 36 [17:35:02]RAPDU: 90 00 [17:35:02]wFMCommunicate OK [17:35:02]wFMCommunicate request_size=255 [17:35:02]MH_SAM_APDU [17:35:02]CAPDU: 80 0D 02 02 FA BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 33 35 33 36 06 04 28 00 D0 A2 D0 B0 D1 80 D0 B0 D0 BB D0 BB D0 B8 D0 BD D0 B8 20 4E 46 20 31 38 30 D0 B3 20 D1 87 D0 B5 D1 81 D0 BD D0 BE D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 CE 1A E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 [17:35:02]Write to MH i2c: E2 02 01 66 5D 80 0D 02 02 FA 00 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 33 35 33 36 06 04 28 00 D0 A2 D0 B0 D1 80 D0 B0 D0 BB D0 BB D0 B8 D0 BD D0 B8 20 4E 46 20 31 38 30 D0 B3 20 D1 87 D0 B5 D1 81 D0 BD D0 BE D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 CE 1A E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 00 00 7C [17:35:02]Write i2c OK [17:35:02]MH_I2C_Read... [17:35:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:02]Read from MH i2c: E2 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: E2 03 00 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: E2 03 00 66 5D 00 90 00 37 [17:35:02]RAPDU: 90 00 [17:35:02]wFMCommunicate OK [17:35:02]wFMCommunicate request_size=37 [17:35:02]MH_SAM_APDU [17:35:02]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EF 69 01 00 35 04 06 00 AF 17 23 7C 05 EA [17:35:02]Write to MH i2c: E2 28 00 67 5D 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EF 69 01 00 35 04 06 00 AF 17 23 7C 05 EA 00 00 46 [17:35:02]Write i2c OK [17:35:02]MH_I2C_Read... [17:35:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:02]Read from MH i2c: E2 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: E2 03 00 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: E2 03 00 67 5D 00 90 00 38 [17:35:02]RAPDU: 90 00 [17:35:02]wFMCommunicate OK [17:35:02]wFMCommunicate request_size=4 [17:35:02]MH_SAM_APDU [17:35:02]CAPDU: 80 0D 03 02 [17:35:02]Write to MH i2c: E2 08 00 68 5D 80 0D 03 02 00 00 00 00 40 [17:35:02]Write i2c OK [17:35:02]MH_I2C_Read... [17:35:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:35:02]Read from MH i2c: E2 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: E2 0B 00 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: E2 0B 00 68 5D 00 32 4B 72 E2 EE E4 C2 CE 90 00 74 [17:35:02]RAPDU: 32 4B 72 E2 EE E4 C2 CE 90 00 [17:35:02]wFMCommunicate OK [17:35:02]SAM_PROTO_SignData done [17:35:02]FM_MakeSignedData done [17:35:02]CreateOFDProtocolMessage [17:35:02]wFMCommunicate request_size=4 [17:35:02]MH_SAM_APDU [17:35:02]CAPDU: 80 11 00 00 [17:35:02]Write to MH i2c: E2 08 00 69 5D 80 11 00 00 00 00 00 00 40 [17:35:02]Write i2c OK [17:35:02]MH_I2C_Read... [17:35:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:02]Read from MH i2c: E2 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: E2 17 00 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: E2 17 00 69 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 97 [17:35:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:35:02]wFMCommunicate OK [17:35:02]CreateOFDProtocolMessage done [17:35:02]OFDSenderStorePacket 92655 [17:35:02]StoreOFDPacket docnum=92655 [17:35:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 24 02 00 00 DE 1B 1C 02 FC 5C 5A 03 01 00 03 00 10 02 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 33 35 33 36 06 04 28 00 D0 A2 D0 B0 D1 80 D0 B0 D0 BB D0 BB D0 B8 D0 BD D0 B8 20 4E 46 20 31 38 30 D0 B3 20 D1 87 D0 B5 D1 81 D0 BD D0 BE D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 CE 1A E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EF 69 01 00 35 04 06 00 AF 17 23 7C 05 EA 32 4B 72 E2 EE E4 C2 CE [17:35:02]CheckFolder [17:35:02]dirname=/storage/ofd_packets [17:35:02]CheckFolder done [17:35:02]ProducePacketName [17:35:02]name=ofd_packets/00092655 [17:35:02]NVStorageSaveData ofd_packets/00092655 [17:35:02]File name is /storage/ofd_packets/00092655 [17:35:02]Write 578 bytes [17:35:02]NVStorageSaveData done [17:35:02]OFDSenderStorePacket done [17:35:02]KKMCreateOFDPacket done [17:35:02]NVStorageSaveData kkm_last_timestamp [17:35:02]File name is /storage/kkm_last_timestamp [17:35:02]Write 4 bytes [17:35:02]NVStorageSaveData done [17:35:02]ExternCall_PrintAddStr [17:35:02]wPrintStart [17:35:02]Write to MH i2c: 01 00 00 6A 5D C7 [17:35:02]Write i2c OK [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: 01 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: 01 07 00 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: 01 07 00 6A 5D 00 00 00 00 00 FF 0F DC [17:35:02]RasterBufferAndPrint [17:35:02]line Счет N : (3)127544 [17:35:02]line ИНН: 02508201610067 [17:35:02]line Контрольно-Кассовый Чек [17:35:02]line ПРОДАЖА [17:35:02]line Товар: 5449000027474 [17:35:02]line Напиток FuzeTea зел чай манго,ромашка 1л [17:35:02]line 1.000 * 105.00 [17:35:02]line = 105.00 [17:35:02]line НДС 12% НСП 1% [17:35:02]line > о реализуемом товаре [17:35:02]line Товар: 5449000054227 [17:35:02]line Напиток Кока-Кола 1л [17:35:02]line 1.000 * 105.00 [17:35:02]line = 105.00 [17:35:02]line НДС 12% НСП 1% [17:35:02]line > о реализуемом товаре [17:35:02]line Товар: 4620017453536 [17:35:02]line Тараллини NF 180г чеснок [17:35:02]line 1.000 * 90.00 [17:35:02]line = 90.00 [17:35:02]line НДС 12% НСП 1% [17:35:02]line > о реализуемом товаре [17:35:02]line ИТОГО: 300.00 [17:35:02]line НСП 1% : 2.66 [17:35:02]line НДС 12% : 31.86 [17:35:02]line Наличными: 300.00 [17:35:02]line Безнал.: 0.00 [17:35:02]line Место: АЗС № 5 "Партнер Нефть" [17:35:02]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [17:35:02]line СНО: Общий режим [17:35:02]line Чек 103 15.09.2024 17:35 [17:35:02]line Смена: 507 ФФД: 1.0 [17:35:02]line ЗНМ: 03000000022 [17:35:02]line РНМ: 0000000000091423 [17:35:02]line Версия ККМ: 001 [17:35:02]line ФМ: 0000000000874692 [17:35:02]line ФД: 92655 [17:35:02]line ФПД: 192513914439146 [17:35:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T173510&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92655&fm=192513914439146&tin=02508201610067®Number=0000000000091423&sum=30000 [17:35:03]line 0 [17:35:03]OFD Sender: Processing packet 92655 [packets to send 63, broken 62] [17:35:03]ProducePacketName [17:35:03]name=ofd_packets/00092655 [17:35:03]OFD Sender: To server: pG, [17:35:03]CommunicateWithHost lk.salyk.kg:30040 [17:35:03]ConnectInit lk.salyk.kg [17:35:03]written 0, free lines is 4095 [17:35:03]Connected sock=10 [17:35:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 24 02 00 00 DE 1B 1C 02 FC 5C 5A 03 01 00 03 00 10 02 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 33 35 33 36 06 04 28 00 D0 A2 D0 B0 D1 80 D0 B0 D0 BB D0 BB D0 B8 D0 BD D0 B8 20 4E 46 20 31 38 30 D0 B3 20 D1 87 D0 B5 D1 81 D0 BD D0 BE D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 CE 1A E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EF 69 01 00 35 04 06 00 AF 17 23 7C 05 EA 32 4B 72 E2 EE E4 C2 CE [17:35:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 09 47 47 00 8C 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EF 69 01 00 F4 03 04 00 46 C3 E6 66 B6 04 01 00 00 DE E7 27 DB F9 40 90 4C [17:35:03]CommunicateWithHost err = 0 [17:35:03]CheckOFDResponse [17:35:03]1017 (14) - 77093643461234 [17:35:03]1041 (16) - 0000000000874692 [17:35:03]1040 (4) - 92655 [17:35:03]1012 (4) - 15.09.2024 11:21 [17:35:03]1206 (1) - 0 [17:35:03]OFD Sender: Remove packet 92655 [17:35:03]ProducePacketName [17:35:03]name=ofd_packets/00092655 [17:35:03]NVStorageDeleteData [17:35:03]Write to MH i2c: 01 00 00 9F 5D FC [17:35:03]Write i2c OK [17:35:03]MH_I2C_Read... [17:35:03]Read from MH i2c: 01 [17:35:03]MH_I2C_Read... [17:35:03]Read from MH i2c: 01 07 00 [17:35:03]MH_I2C_Read... [17:35:03]Read from MH i2c: 01 07 00 9F 5D 00 00 00 00 00 84 0C 93 [17:35:03]RasterBufferAndPrint [17:35:03]line [17:35:03]line [17:35:03]line [17:35:03]line [17:35:03]line [17:35:03]written 0, free lines is 3212 [17:35:03]MH_Cut [17:35:03]Write to MH i2c: D1 01 00 A6 5D 01 D5 [17:35:03]Write i2c OK [17:35:03]MH_I2C_Read... [17:35:03]Read from MH i2c: D1 [17:35:03]MH_I2C_Read... [17:35:03]Read from MH i2c: D1 01 00 [17:35:03]MH_I2C_Read... [17:35:03]Read from MH i2c: D1 01 00 A6 5D 00 D4 [17:35:03]Write to MH i2c: 01 00 00 A7 5D 04 [17:35:03]Write i2c OK [17:35:03]MH_I2C_Read... [17:35:04]OFD Sender: No OFD packet to send [17:35:04]*** Cut start [17:35:04]*** Purtial cut [17:35:04]*** Stage 1: CUTSNS_PIN = 1 [17:35:06]Read from MH i2c: 01 [17:35:06]MH_I2C_Read... [17:35:06]*** Stop cut motor [17:35:06]*** Cut end [17:35:06]Read from MH i2c: 01 07 00 [17:35:06]MH_I2C_Read... [17:35:06]Read from MH i2c: 01 07 00 A7 5D 00 00 00 00 00 FF 0F 19 [17:35:06]process_action close_receipt done [17:35:06]requested_data is exist [17:35:06]produce_requested_data [17:35:06]requested_item fm.sn is exist - process it [17:35:06]wFMCommunicate request_size=4 [17:35:06]MH_SAM_APDU [17:35:06]CAPDU: 80 11 00 00 [17:35:06]Write to MH i2c: E2 08 00 A8 5D 80 11 00 00 00 00 00 00 7F [17:35:06]Write i2c OK [17:35:06]MH_I2C_Read... [17:35:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:06]Read from MH i2c: E2 [17:35:06]MH_I2C_Read... [17:35:06]Read from MH i2c: E2 17 00 [17:35:06]MH_I2C_Read... [17:35:06]Read from MH i2c: E2 17 00 A8 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D6 [17:35:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:35:06]wFMCommunicate OK [17:35:06]requested_item fd.num is exist - process it [17:35:06]SAM_PROTO_GetFieldsCounters [17:35:06]wFMCommunicate request_size=4 [17:35:06]MH_SAM_APDU [17:35:06]CAPDU: 80 13 00 00 [17:35:06]Write to MH i2c: E2 08 00 A9 5D 80 13 00 00 00 00 00 00 82 [17:35:06]Write i2c OK [17:35:06]MH_I2C_Read... [17:35:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:35:06]Read from MH i2c: E2 [17:35:06]MH_I2C_Read... [17:35:06]Read from MH i2c: E2 62 00 [17:35:06]MH_I2C_Read... [17:35:06]Read from MH i2c: E2 62 00 A9 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 EF 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [17:35:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 EF 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:35:06]wFMCommunicate OK [17:35:06]SAM_PROTO_GetFieldsCounters done [17:35:06]requested_item shift.num is exist - process it [17:35:06]requested_item shift.opened is exist - process it [17:35:06]req_shift_opened [17:35:06]FM_GetShiftState [17:35:06]SAM_PROTO_GetShiftState [17:35:06]wFMCommunicate request_size=4 [17:35:06]MH_SAM_APDU [17:35:06]CAPDU: 80 13 01 00 [17:35:06]Write to MH i2c: E2 08 00 AA 5D 80 13 01 00 00 00 00 00 84 [17:35:06]Write i2c OK [17:35:06]MH_I2C_Read... [17:35:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:06]Read from MH i2c: E2 [17:35:06]MH_I2C_Read... [17:35:06]Read from MH i2c: E2 0E 00 [17:35:06]MH_I2C_Read... [17:35:06]Read from MH i2c: E2 0E 00 AA 5D 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 06 [17:35:06]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [17:35:06]wFMCommunicate OK [17:35:06]SAM_PROTO_GetShiftState done [17:35:06]FM_GetShiftState done [17:35:06]req_shift_opened done [17:35:06]requested_item shift.open_date is exist - process it [17:35:06]req_shift_open_date [17:35:06]req_shift_open_date done [17:35:06]produce_requested_data done [17:35:06]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92655,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [17:35:06]process_action_free close_receipt [17:35:06]json_value_free [17:35:06]json_value_free done [17:35:06]process_json_proto returns [17:35:06]Send response to host [17:35:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92655,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [17:35:06]free response buf [17:35:06]execute_script done [17:35:06]execute_script returns [17:35:06]free content buf [17:35:06]Sock 8.Close socket [17:35:06]Sock 8.Thread stoped [17:35:09]OFD Sender: No OFD packet to send [17:35:14]OFD Sender: No OFD packet to send [17:35:19]OFD Sender: No OFD packet to send [17:35:24]OFD Sender: No OFD packet to send [17:35:29]OFD Sender: No OFD packet to send [17:35:34]OFD Sender: No OFD packet to send [17:35:39]OFD Sender: No OFD packet to send [17:35:44]OFD Sender: No OFD packet to send [17:35:49]OFD Sender: No OFD packet to send [17:35:54]OFD Sender: No OFD packet to send [17:35:59]OFD Sender: No OFD packet to send [17:36:04]OFD Sender: No OFD packet to send [17:36:09]OFD Sender: No OFD packet to send [17:36:14]OFD Sender: No OFD packet to send [17:36:19]OFD Sender: No OFD packet to send [17:36:24]OFD Sender: No OFD packet to send [17:36:29]OFD Sender: No OFD packet to send [17:36:34]OFD Sender: No OFD packet to send [17:36:39]OFD Sender: No OFD packet to send [17:36:44]OFD Sender: No OFD packet to send [17:36:49]OFD Sender: No OFD packet to send [17:36:54]OFD Sender: No OFD packet to send [17:36:59]OFD Sender: No OFD packet to send [17:37:04]OFD Sender: No OFD packet to send [17:37:09]OFD Sender: No OFD packet to send [17:37:14]OFD Sender: No OFD packet to send [17:37:19]OFD Sender: No OFD packet to send [17:37:24]OFD Sender: No OFD packet to send [17:37:29]OFD Sender: No OFD packet to send [17:37:34]OFD Sender: No OFD packet to send [17:37:39]OFD Sender: No OFD packet to send [17:37:44]OFD Sender: No OFD packet to send [17:37:49]OFD Sender: No OFD packet to send [17:37:54]OFD Sender: No OFD packet to send [17:37:59]OFD Sender: No OFD packet to send [17:38:04]OFD Sender: No OFD packet to send [17:38:09]OFD Sender: No OFD packet to send [17:38:14]OFD Sender: No OFD packet to send [17:38:19]OFD Sender: No OFD packet to send [17:38:24]OFD Sender: No OFD packet to send [17:38:29]OFD Sender: No OFD packet to send [17:38:34]OFD Sender: No OFD packet to send [17:38:39]OFD Sender: No OFD packet to send [17:38:44]OFD Sender: No OFD packet to send [17:38:49]OFD Sender: No OFD packet to send [17:38:54]OFD Sender: No OFD packet to send [17:38:59]OFD Sender: No OFD packet to send [17:39:04]OFD Sender: No OFD packet to send [17:39:09]OFD Sender: No OFD packet to send [17:39:14]OFD Sender: No OFD packet to send [17:39:19]OFD Sender: No OFD packet to send [17:39:24]OFD Sender: No OFD packet to send [17:39:29]OFD Sender: No OFD packet to send [17:39:34]OFD Sender: No OFD packet to send [17:39:39]OFD Sender: No OFD packet to send [17:39:44]OFD Sender: No OFD packet to send [17:39:49]OFD Sender: No OFD packet to send [17:39:54]OFD Sender: No OFD packet to send [17:39:58]accept exits with 9 [17:39:58]New connection [17:39:58]New thread 3066658148 created [17:39:58]Thread 3066801508 joined [17:39:58]Waiting for new connection... [17:39:58] Sock 9.Parse request [17:39:58]Sock 9.Check first char [17:39:58]Sock 9.First char is OK [17:39:58]request: POST /json_proto HTTP/1.0 [17:39:58]Method: POST [17:39:58]URL: /json_proto [17:39:58]Method is POST - this is cgi request [17:39:58]url: /json_proto [17:39:58]query_string will be loaded in cgi processing [17:39:58]execute_cgi json_proto POST (null) [17:39:58]execute_cgi path=json_proto method=POST [17:39:58]POST find Content-Length [17:39:58]Host: 172.17.57.71:8080 [17:39:58]Content-Length: 654 [17:39:58]Content-Type: application/json [17:39:58] [17:39:58]POST finish read [17:39:58]Found Content-Length = 654 [17:39:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127545", "tax_sys" : 0, "items" : [ { "code": "46214638", "name": "\u0420/\u0436 mentos p.white \u043D\u0435\u0436\u043D\u0430\u044F \u043C\u044F\u0442\u0430 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:58]execute_script... [17:39:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127545", "tax_sys" : 0, "items" : [ { "code": "46214638", "name": "\u0420/\u0436 mentos p.white \u043D\u0435\u0436\u043D\u0430\u044F \u043C\u044F\u0442\u0430 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:58]POST & json_proto [17:39:58]process_json_proto [17:39:58]json parsed OK: [17:39:58]protocol is kg_v1.0 [17:39:58]action value=close_receipt [17:39:58]process_action close_receipt [17:39:58]cmd_close_receipt [17:39:58]MH_GetDate [17:39:58]Write to MH i2c: F0 00 00 AB 5D F7 [17:39:58]Write i2c OK [17:39:58]MH_I2C_Read... [17:39:58]Read from MH i2c: F0 [17:39:58]MH_I2C_Read... [17:39:58]Read from MH i2c: F0 09 00 [17:39:58]MH_I2C_Read... [17:39:58]Read from MH i2c: F0 09 00 AB 5D 00 F7 1B E7 66 33 3A A4 66 D6 [17:39:58]GetLastDocTimeStamp 1726421710 [17:39:58]current date 1726422007 [17:39:58]FM_GetShiftState [17:39:58]SAM_PROTO_GetShiftState [17:39:58]wFMCommunicate request_size=4 [17:39:58]MH_SAM_APDU [17:39:58]CAPDU: 80 13 01 00 [17:39:58]Write to MH i2c: E2 08 00 AC 5D 80 13 01 00 00 00 00 00 86 [17:39:58]Write i2c OK [17:39:58]MH_I2C_Read... [17:39:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:58]Read from MH i2c: E2 [17:39:58]MH_I2C_Read... [17:39:58]Read from MH i2c: E2 0E 00 [17:39:58]MH_I2C_Read... [17:39:58]Read from MH i2c: E2 0E 00 AC 5D 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 08 [17:39:58]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [17:39:58]wFMCommunicate OK [17:39:58]SAM_PROTO_GetShiftState done [17:39:58]FM_GetShiftState done [17:39:58]opened in 1726359809 [17:39:58]opened+sec_in_day 1726446209 [17:39:58]quantity*price = 4900 [17:39:58]sum+1 = 4901 [17:39:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 49.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 104 15.09.2024 17:40 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92656 ФПД: 141354440733695 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T174007&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92656&fm=141354440733695&tin=02508201610067®Number=0000000000091423&sum=4900 0 [17:39:59]StoreToDocumentArchive [17:39:59]shift 507 fd 92656 [17:39:59]save to /storage/0507/doc_00092656 [17:39:59]save last doc name /storage/0507/doc_00092656 to /storage/kkm_last_doc_name [17:39:59]save OK [17:39:59]Clear old archive folders... [17:39:59]OFD Sender: No OFD packet to send [17:39:59]ProcessDocumentItem done err = 0, tmpTLVsize=289 [17:39:59]tlvbuf is 0119E4F0 [17:39:59]SAM_PROTO_ClearQueue [17:39:59]wFMCommunicate request_size=4 [17:39:59]MH_SAM_APDU [17:39:59]CAPDU: 80 09 00 00 [17:39:59]Write to MH i2c: E2 08 00 B9 5D 80 09 00 00 00 00 00 00 88 [17:39:59]Write i2c OK [17:39:59]MH_I2C_Read... [17:39:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:59]Read from MH i2c: E2 [17:39:59]MH_I2C_Read... [17:39:59]Read from MH i2c: E2 03 00 [17:39:59]MH_I2C_Read... [17:39:59]Read from MH i2c: E2 03 00 B9 5D 00 90 00 8A [17:39:59]RAPDU: 90 00 [17:39:59]wFMCommunicate OK [17:39:59]SAM_PROTO_ClearQueue done [17:39:59]KKMCreateOFDPacket [17:39:59]OFDProtocolAddRootSTLVToBuf [17:39:59]FM_MakeSignedData [17:39:59]FM_MakeSignedData [17:39:59]SAM_PROTO_SignData [17:39:59]wFMCommunicate request_size=4 [17:39:59]MH_SAM_APDU [17:39:59]CAPDU: 80 0D 01 02 [17:39:59]Write to MH i2c: E2 08 00 BA 5D 80 0D 01 02 00 00 00 00 90 [17:39:59]Write i2c OK [17:39:59]MH_I2C_Read... [17:39:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:59]Read from MH i2c: E2 [17:39:59]MH_I2C_Read... [17:39:59]Read from MH i2c: E2 03 00 [17:39:59]MH_I2C_Read... [17:39:59]Read from MH i2c: E2 03 00 BA 5D 00 90 00 8B [17:39:59]RAPDU: 90 00 [17:39:59]wFMCommunicate OK [17:39:59]wFMCommunicate request_size=255 [17:39:59]MH_SAM_APDU [17:39:59]CAPDU: 80 0D 02 02 FA 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 F7 1B E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 [17:39:59]Write to MH i2c: E2 02 01 BB 5D 80 0D 02 02 FA 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 F7 1B E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 00 00 19 [17:39:59]Write i2c OK [17:39:59]MH_I2C_Read... [17:39:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:59]Read from MH i2c: E2 [17:39:59]MH_I2C_Read... [17:39:59]Read from MH i2c: E2 03 00 [17:39:59]MH_I2C_Read... [17:39:59]Read from MH i2c: E2 03 00 BB 5D 00 90 00 8C [17:39:59]RAPDU: 90 00 [17:39:59]wFMCommunicate OK [17:39:59]wFMCommunicate request_size=48 [17:39:59]MH_SAM_APDU [17:39:59]CAPDU: 80 0D 02 02 2B 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F0 69 01 00 35 04 06 00 80 8F A5 3A 33 FF [17:39:59]Write to MH i2c: E2 33 00 BC 5D 80 0D 02 02 2B 00 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F0 69 01 00 35 04 06 00 80 8F A5 3A 33 FF 00 00 06 [17:39:59]Write i2c OK [17:39:59]MH_I2C_Read... [17:39:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:59]Read from MH i2c: E2 [17:39:59]MH_I2C_Read... [17:39:59]Read from MH i2c: E2 03 00 [17:39:59]MH_I2C_Read... [17:39:59]Read from MH i2c: E2 03 00 BC 5D 00 90 00 8D [17:39:59]RAPDU: 90 00 [17:39:59]wFMCommunicate OK [17:39:59]wFMCommunicate request_size=4 [17:39:59]MH_SAM_APDU [17:39:59]CAPDU: 80 0D 03 02 [17:39:59]Write to MH i2c: E2 08 00 BD 5D 80 0D 03 02 00 00 00 00 95 [17:39:59]Write i2c OK [17:39:59]MH_I2C_Read... [17:39:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:59]Read from MH i2c: E2 [17:39:59]MH_I2C_Read... [17:39:59]Read from MH i2c: E2 0B 00 [17:39:59]MH_I2C_Read... [17:39:59]Read from MH i2c: E2 0B 00 BD 5D 00 9B 02 ED 94 E1 21 E4 6D 90 00 07 [17:39:59]RAPDU: 9B 02 ED 94 E1 21 E4 6D 90 00 [17:39:59]wFMCommunicate OK [17:39:59]SAM_PROTO_SignData done [17:39:59]FM_MakeSignedData done [17:39:59]CreateOFDProtocolMessage [17:39:59]wFMCommunicate request_size=4 [17:39:59]MH_SAM_APDU [17:39:59]CAPDU: 80 11 00 00 [17:39:59]Write to MH i2c: E2 08 00 BE 5D 80 11 00 00 00 00 00 00 95 [17:39:59]Write i2c OK [17:39:59]MH_I2C_Read... [17:39:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:59]Read from MH i2c: E2 [17:39:59]MH_I2C_Read... [17:39:59]Read from MH i2c: E2 17 00 [17:39:59]MH_I2C_Read... [17:39:59]Read from MH i2c: E2 17 00 BE 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 EC [17:39:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:39:59]wFMCommunicate OK [17:39:59]CreateOFDProtocolMessage done [17:39:59]OFDSenderStorePacket 92656 [17:39:59]StoreOFDPacket docnum=92656 [17:39:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 35 01 00 00 A3 09 2D 01 DC 64 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 F7 1B E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F0 69 01 00 35 04 06 00 80 8F A5 3A 33 FF 9B 02 ED 94 E1 21 E4 6D [17:39:59]CheckFolder [17:39:59]dirname=/storage/ofd_packets [17:39:59]CheckFolder done [17:39:59]ProducePacketName [17:39:59]name=ofd_packets/00092656 [17:39:59]NVStorageSaveData ofd_packets/00092656 [17:39:59]File name is /storage/ofd_packets/00092656 [17:39:59]Write 339 bytes [17:39:59]NVStorageSaveData done [17:39:59]OFDSenderStorePacket done [17:39:59]KKMCreateOFDPacket done [17:39:59]NVStorageSaveData kkm_last_timestamp [17:39:59]File name is /storage/kkm_last_timestamp [17:39:59]Write 4 bytes [17:39:59]NVStorageSaveData done [17:39:59]ExternCall_PrintAddStr [17:39:59]wPrintStart [17:39:59]Write to MH i2c: 01 00 00 BF 5D 1C [17:39:59]Write i2c OK [17:39:59]MH_I2C_Read... [17:39:59]Read from MH i2c: 01 [17:39:59]MH_I2C_Read... [17:39:59]Read from MH i2c: 01 07 00 [17:39:59]MH_I2C_Read... [17:39:59]Read from MH i2c: 01 07 00 BF 5D 00 00 00 00 00 FF 0F 31 [17:39:59]RasterBufferAndPrint [17:39:59]line Счет N : (3)127545 [17:39:59]line ИНН: 02508201610067 [17:39:59]line Контрольно-Кассовый Чек [17:39:59]line ПРОДАЖА [17:39:59]line Товар: 46214638 [17:39:59]line Р/ж mentos p.white нежная мята 16/15,5г [17:39:59]line 1.000 * 49.00 [17:39:59]line = 49.00 [17:39:59]line НДС 12% НСП 1% [17:39:59]line > о реализуемом товаре [17:39:59]line ИТОГО: 49.00 [17:39:59]line НСП 1% : 0.43 [17:39:59]line НДС 12% : 5.20 [17:39:59]line Наличными: 49.00 [17:39:59]line Безнал.: 0.00 [17:39:59]line Место: АЗС № 5 "Партнер Нефть" [17:39:59]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [17:40:00]line СНО: Общий режим [17:40:00]line Чек 104 15.09.2024 17:40 [17:40:00]line Смена: 507 ФФД: 1.0 [17:40:00]line ЗНМ: 03000000022 [17:40:00]line РНМ: 0000000000091423 [17:40:00]line Версия ККМ: 001 [17:40:00]line ФМ: 0000000000874692 [17:40:00]line ФД: 92656 [17:40:00]line ФПД: 141354440733695 [17:40:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T174007&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92656&fm=141354440733695&tin=02508201610067®Number=0000000000091423&sum=4900 [17:40:00]OFD Sender: Processing packet 92656 [packets to send 63, broken 62] [17:40:00]ProducePacketName [17:40:00]name=ofd_packets/00092656 [17:40:00]OFD Sender: To server: pG, [17:40:00]CommunicateWithHost lk.salyk.kg:30040 [17:40:00]ConnectInit lk.salyk.kg [17:40:00]line 0 [17:40:00]written 0, free lines is 4095 [17:40:00]Connected sock=10 [17:40:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 35 01 00 00 A3 09 2D 01 DC 64 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 F7 1B E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F0 69 01 00 35 04 06 00 80 8F A5 3A 33 FF 9B 02 ED 94 E1 21 E4 6D [17:40:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 48 C5 47 00 5F 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F0 69 01 00 F4 03 04 00 6F C4 E6 66 B6 04 01 00 00 A8 53 B3 2B 26 2E 99 06 [17:40:00]CommunicateWithHost err = 0 [17:40:00]CheckOFDResponse [17:40:00]1017 (14) - 77093643461234 [17:40:00]1041 (16) - 0000000000874692 [17:40:00]1040 (4) - 92656 [17:40:00]1012 (4) - 15.09.2024 11:26 [17:40:00]1206 (1) - 0 [17:40:00]OFD Sender: Remove packet 92656 [17:40:00]ProducePacketName [17:40:00]name=ofd_packets/00092656 [17:40:00]NVStorageDeleteData [17:40:00]Write to MH i2c: 01 00 00 E8 5D 45 [17:40:00]Write i2c OK [17:40:00]MH_I2C_Read... [17:40:00]Read from MH i2c: 01 [17:40:00]MH_I2C_Read... [17:40:00]Read from MH i2c: 01 07 00 [17:40:00]MH_I2C_Read... [17:40:00]Read from MH i2c: 01 07 00 E8 5D 00 00 00 00 00 0E 0D 67 [17:40:00]RasterBufferAndPrint [17:40:00]line [17:40:00]line [17:40:00]line [17:40:00]line [17:40:00]line [17:40:00]written 0, free lines is 3351 [17:40:00]MH_Cut [17:40:00]Write to MH i2c: D1 01 00 EF 5D 01 1E [17:40:00]Write i2c OK [17:40:00]MH_I2C_Read... [17:40:00]Read from MH i2c: D1 [17:40:00]MH_I2C_Read... [17:40:00]Read from MH i2c: D1 01 00 [17:40:00]MH_I2C_Read... [17:40:00]Read from MH i2c: D1 01 00 EF 5D 00 1D [17:40:00]Write to MH i2c: 01 00 00 F0 5D 4D [17:40:00]Write i2c OK [17:40:00]MH_I2C_Read... [17:40:01]OFD Sender: No OFD packet to send [17:40:01]*** Cut start [17:40:01]*** Purtial cut [17:40:01]*** Stage 1: CUTSNS_PIN = 1 [17:40:03]Read from MH i2c: 01 [17:40:03]MH_I2C_Read... [17:40:03]*** Stop cut motor [17:40:03]*** Cut end [17:40:03]Read from MH i2c: 01 07 00 [17:40:03]MH_I2C_Read... [17:40:03]Read from MH i2c: 01 07 00 F0 5D 00 00 00 00 00 FF 0F 62 [17:40:03]process_action close_receipt done [17:40:03]requested_data is exist [17:40:03]produce_requested_data [17:40:03]requested_item fm.sn is exist - process it [17:40:03]wFMCommunicate request_size=4 [17:40:03]MH_SAM_APDU [17:40:03]CAPDU: 80 11 00 00 [17:40:03]Write to MH i2c: E2 08 00 F1 5D 80 11 00 00 00 00 00 00 C8 [17:40:03]Write i2c OK [17:40:03]MH_I2C_Read... [17:40:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:03]Read from MH i2c: E2 [17:40:03]MH_I2C_Read... [17:40:03]Read from MH i2c: E2 17 00 [17:40:03]MH_I2C_Read... [17:40:03]Read from MH i2c: E2 17 00 F1 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 1F [17:40:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:40:03]wFMCommunicate OK [17:40:03]requested_item fd.num is exist - process it [17:40:03]SAM_PROTO_GetFieldsCounters [17:40:03]wFMCommunicate request_size=4 [17:40:03]MH_SAM_APDU [17:40:03]CAPDU: 80 13 00 00 [17:40:03]Write to MH i2c: E2 08 00 F2 5D 80 13 00 00 00 00 00 00 CB [17:40:03]Write i2c OK [17:40:03]MH_I2C_Read... [17:40:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:40:03]Read from MH i2c: E2 [17:40:03]MH_I2C_Read... [17:40:03]Read from MH i2c: E2 62 00 [17:40:03]MH_I2C_Read... [17:40:03]Read from MH i2c: E2 62 00 F2 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F0 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [17:40:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F0 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:40:03]wFMCommunicate OK [17:40:03]SAM_PROTO_GetFieldsCounters done [17:40:03]requested_item shift.num is exist - process it [17:40:03]requested_item shift.opened is exist - process it [17:40:03]req_shift_opened [17:40:03]FM_GetShiftState [17:40:03]SAM_PROTO_GetShiftState [17:40:03]wFMCommunicate request_size=4 [17:40:03]MH_SAM_APDU [17:40:03]CAPDU: 80 13 01 00 [17:40:03]Write to MH i2c: E2 08 00 F3 5D 80 13 01 00 00 00 00 00 CD [17:40:03]Write i2c OK [17:40:03]MH_I2C_Read... [17:40:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:03]Read from MH i2c: E2 [17:40:03]MH_I2C_Read... [17:40:03]Read from MH i2c: E2 0E 00 [17:40:03]MH_I2C_Read... [17:40:03]Read from MH i2c: E2 0E 00 F3 5D 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 4F [17:40:03]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [17:40:03]wFMCommunicate OK [17:40:03]SAM_PROTO_GetShiftState done [17:40:03]FM_GetShiftState done [17:40:03]req_shift_opened done [17:40:03]requested_item shift.open_date is exist - process it [17:40:03]req_shift_open_date [17:40:03]req_shift_open_date done [17:40:03]produce_requested_data done [17:40:03]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92656,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [17:40:03]process_action_free close_receipt [17:40:03]json_value_free [17:40:03]json_value_free done [17:40:03]process_json_proto returns [17:40:03]Send response to host [17:40:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92656,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [17:40:03]free response buf [17:40:03]execute_script done [17:40:03]execute_script returns [17:40:03]free content buf [17:40:03]Sock 9.Close socket [17:40:03]Sock 9.Thread stoped [17:40:06]OFD Sender: No OFD packet to send [17:40:11]OFD Sender: No OFD packet to send [17:40:16]OFD Sender: No OFD packet to send [17:40:21]OFD Sender: No OFD packet to send [17:40:22]accept exits with 8 [17:40:22]New connection [17:40:22]New thread 3066801508 created [17:40:22]Thread 3066658148 joined [17:40:22]Waiting for new connection... [17:40:22] Sock 8.Parse request [17:40:22]Sock 8.Check first char [17:40:22]Sock 8.First char is OK [17:40:22]request: POST /json_proto HTTP/1.0 [17:40:22]Method: POST [17:40:22]URL: /json_proto [17:40:22]Method is POST - this is cgi request [17:40:22]url: /json_proto [17:40:22]query_string will be loaded in cgi processing [17:40:22]execute_cgi json_proto POST (null) [17:40:22]execute_cgi path=json_proto method=POST [17:40:22]POST find Content-Length [17:40:22]Host: 172.17.57.71:8080 [17:40:22]Content-Length: 652 [17:40:22]Content-Type: application/json [17:40:22] [17:40:22]POST finish read [17:40:22]Found Content-Length = 652 [17:40:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127546", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:22]execute_script... [17:40:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127546", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:22]POST & json_proto [17:40:22]process_json_proto [17:40:22]json parsed OK: [17:40:22]protocol is kg_v1.0 [17:40:22]action value=close_receipt [17:40:22]process_action close_receipt [17:40:22]cmd_close_receipt [17:40:22]MH_GetDate [17:40:22]Write to MH i2c: F0 00 00 F4 5D 40 [17:40:22]Write i2c OK [17:40:22]MH_I2C_Read... [17:40:22]Read from MH i2c: F0 [17:40:22]MH_I2C_Read... [17:40:22]Read from MH i2c: F0 09 00 [17:40:22]MH_I2C_Read... [17:40:22]Read from MH i2c: F0 09 00 F4 5D 00 10 1C E7 66 33 3A A4 66 39 [17:40:22]GetLastDocTimeStamp 1726422007 [17:40:22]current date 1726422032 [17:40:22]FM_GetShiftState [17:40:22]SAM_PROTO_GetShiftState [17:40:22]wFMCommunicate request_size=4 [17:40:22]MH_SAM_APDU [17:40:22]CAPDU: 80 13 01 00 [17:40:22]Write to MH i2c: E2 08 00 F5 5D 80 13 01 00 00 00 00 00 CF [17:40:22]Write i2c OK [17:40:22]MH_I2C_Read... [17:40:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:22]Read from MH i2c: E2 [17:40:22]MH_I2C_Read... [17:40:22]Read from MH i2c: E2 0E 00 [17:40:22]MH_I2C_Read... [17:40:22]Read from MH i2c: E2 0E 00 F5 5D 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 51 [17:40:22]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [17:40:22]wFMCommunicate OK [17:40:22]SAM_PROTO_GetShiftState done [17:40:22]FM_GetShiftState done [17:40:22]opened in 1726359809 [17:40:22]opened+sec_in_day 1726446209 [17:40:22]quantity*price = 7500 [17:40:22]sum+1 = 7501 [17:40:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 105 15.09.2024 17:40 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92657 ФПД: 147561075328395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T174032&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92657&fm=147561075328395&tin=02508201610067®Number=0000000000091423&sum=7500 0 [17:40:23]StoreToDocumentArchive [17:40:23]shift 507 fd 92657 [17:40:23]save to /storage/0507/doc_00092657 [17:40:23]save last doc name /storage/0507/doc_00092657 to /storage/kkm_last_doc_name [17:40:23]save OK [17:40:23]Clear old archive folders... [17:40:23]ProcessDocumentItem done err = 0, tmpTLVsize=275 [17:40:23]tlvbuf is 00F9F730 [17:40:23]SAM_PROTO_ClearQueue [17:40:23]wFMCommunicate request_size=4 [17:40:23]MH_SAM_APDU [17:40:23]CAPDU: 80 09 00 00 [17:40:23]Write to MH i2c: E2 08 00 02 5E 80 09 00 00 00 00 00 00 D2 [17:40:23]Write i2c OK [17:40:23]MH_I2C_Read... [17:40:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:40:23]Read from MH i2c: E2 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 03 00 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 03 00 02 5E 00 90 00 D4 [17:40:23]RAPDU: 90 00 [17:40:23]wFMCommunicate OK [17:40:23]SAM_PROTO_ClearQueue done [17:40:23]KKMCreateOFDPacket [17:40:23]OFDProtocolAddRootSTLVToBuf [17:40:23]FM_MakeSignedData [17:40:23]FM_MakeSignedData [17:40:23]SAM_PROTO_SignData [17:40:23]wFMCommunicate request_size=4 [17:40:23]MH_SAM_APDU [17:40:23]CAPDU: 80 0D 01 02 [17:40:23]Write to MH i2c: E2 08 00 03 5E 80 0D 01 02 00 00 00 00 DA [17:40:23]Write i2c OK [17:40:23]MH_I2C_Read... [17:40:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:40:23]Read from MH i2c: E2 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 03 00 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 03 00 03 5E 00 90 00 D5 [17:40:23]RAPDU: 90 00 [17:40:23]wFMCommunicate OK [17:40:23]wFMCommunicate request_size=255 [17:40:23]MH_SAM_APDU [17:40:23]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 10 1C E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 [17:40:23]Write to MH i2c: E2 02 01 04 5E 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 10 1C E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 00 00 A1 [17:40:23]Write i2c OK [17:40:23]MH_I2C_Read... [17:40:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:23]Read from MH i2c: E2 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 03 00 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 03 00 04 5E 00 90 00 D6 [17:40:23]RAPDU: 90 00 [17:40:23]wFMCommunicate OK [17:40:23]wFMCommunicate request_size=34 [17:40:23]MH_SAM_APDU [17:40:23]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F1 69 01 00 35 04 06 00 86 34 BD 7A 45 8B [17:40:23]Write to MH i2c: E2 25 00 05 5E 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F1 69 01 00 35 04 06 00 86 34 BD 7A 45 8B 00 00 BE [17:40:23]Write i2c OK [17:40:23]MH_I2C_Read... [17:40:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:24]Read from MH i2c: E2 [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: E2 03 00 [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: E2 03 00 05 5E 00 90 00 D7 [17:40:24]RAPDU: 90 00 [17:40:24]wFMCommunicate OK [17:40:24]wFMCommunicate request_size=4 [17:40:24]MH_SAM_APDU [17:40:24]CAPDU: 80 0D 03 02 [17:40:24]Write to MH i2c: E2 08 00 06 5E 80 0D 03 02 00 00 00 00 DF [17:40:24]Write i2c OK [17:40:24]MH_I2C_Read... [17:40:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:40:24]Read from MH i2c: E2 [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: E2 0B 00 [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: E2 0B 00 06 5E 00 D8 3D E3 DB 18 C2 93 29 90 00 49 [17:40:24]RAPDU: D8 3D E3 DB 18 C2 93 29 90 00 [17:40:24]wFMCommunicate OK [17:40:24]SAM_PROTO_SignData done [17:40:24]FM_MakeSignedData done [17:40:24]CreateOFDProtocolMessage [17:40:24]wFMCommunicate request_size=4 [17:40:24]MH_SAM_APDU [17:40:24]CAPDU: 80 11 00 00 [17:40:24]Write to MH i2c: E2 08 00 07 5E 80 11 00 00 00 00 00 00 DF [17:40:24]Write i2c OK [17:40:24]MH_I2C_Read... [17:40:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:24]Read from MH i2c: E2 [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: E2 17 00 [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: E2 17 00 07 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 36 [17:40:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:40:24]wFMCommunicate OK [17:40:24]CreateOFDProtocolMessage done [17:40:24]OFDSenderStorePacket 92657 [17:40:24]StoreOFDPacket docnum=92657 [17:40:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 C2 E9 1F 01 9B 7D 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 10 1C E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F1 69 01 00 35 04 06 00 86 34 BD 7A 45 8B D8 3D E3 DB 18 C2 93 29 [17:40:24]CheckFolder [17:40:24]dirname=/storage/ofd_packets [17:40:24]CheckFolder done [17:40:24]ProducePacketName [17:40:24]name=ofd_packets/00092657 [17:40:24]NVStorageSaveData ofd_packets/00092657 [17:40:24]File name is /storage/ofd_packets/00092657 [17:40:24]Write 325 bytes [17:40:24]NVStorageSaveData done [17:40:24]OFDSenderStorePacket done [17:40:24]KKMCreateOFDPacket done [17:40:24]NVStorageSaveData kkm_last_timestamp [17:40:24]File name is /storage/kkm_last_timestamp [17:40:24]Write 4 bytes [17:40:24]NVStorageSaveData done [17:40:24]ExternCall_PrintAddStr [17:40:24]wPrintStart [17:40:24]Write to MH i2c: 01 00 00 08 5E 66 [17:40:24]Write i2c OK [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: 01 [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: 01 07 00 [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: 01 07 00 08 5E 00 00 00 00 00 FF 0F 7B [17:40:24]RasterBufferAndPrint [17:40:24]line Счет N : (3)127546 [17:40:24]line ИНН: 02508201610067 [17:40:24]line Контрольно-Кассовый Чек [17:40:24]line ПРОДАЖА [17:40:24]line Товар: 54491472 [17:40:24]line Напиток Кока-Кола 0,5л [17:40:24]line 1.000 * 75.00 [17:40:24]line = 75.00 [17:40:24]line НДС 12% НСП 1% [17:40:24]line > о реализуемом товаре [17:40:24]line ИТОГО: 75.00 [17:40:24]line НСП 1% : 0.66 [17:40:24]line НДС 12% : 7.96 [17:40:24]line Наличными: 75.00 [17:40:24]line Безнал.: 0.00 [17:40:24]line Место: АЗС № 5 "Партнер Нефть" [17:40:24]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [17:40:24]line СНО: Общий режим [17:40:24]line Чек 105 15.09.2024 17:40 [17:40:24]line Смена: 507 ФФД: 1.0 [17:40:24]line ЗНМ: 03000000022 [17:40:24]line РНМ: 0000000000091423 [17:40:24]line Версия ККМ: 001 [17:40:24]line ФМ: 0000000000874692 [17:40:24]line ФД: 92657 [17:40:24]line ФПД: 147561075328395 [17:40:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T174032&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92657&fm=147561075328395&tin=02508201610067®Number=0000000000091423&sum=7500 [17:40:24]line 0 [17:40:24]written 0, free lines is 4095 [17:40:24]OFD Sender: Processing packet 92657 [packets to send 63, broken 62] [17:40:24]ProducePacketName [17:40:24]name=ofd_packets/00092657 [17:40:24]OFD Sender: To server: pG, [17:40:24]CommunicateWithHost lk.salyk.kg:30040 [17:40:24]ConnectInit lk.salyk.kg [17:40:24]Connected sock=11 [17:40:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 C2 E9 1F 01 9B 7D 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 10 1C E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F1 69 01 00 35 04 06 00 86 34 BD 7A 45 8B D8 3D E3 DB 18 C2 93 29 [17:40:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 8A 15 47 00 31 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F1 69 01 00 F4 03 04 00 87 C4 E6 66 B6 04 01 00 00 01 8D 87 91 84 A6 36 95 [17:40:24]CommunicateWithHost err = 0 [17:40:24]CheckOFDResponse [17:40:24]1017 (14) - 77093643461234 [17:40:24]1041 (16) - 0000000000874692 [17:40:24]1040 (4) - 92657 [17:40:24]1012 (4) - 15.09.2024 11:27 [17:40:24]1206 (1) - 0 [17:40:24]OFD Sender: Remove packet 92657 [17:40:24]ProducePacketName [17:40:24]name=ofd_packets/00092657 [17:40:24]NVStorageDeleteData [17:40:24]Write to MH i2c: 01 00 00 30 5E 8E [17:40:24]Write i2c OK [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: 01 [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: 01 07 00 [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: 01 07 00 30 5E 00 00 00 00 00 19 0D BB [17:40:24]RasterBufferAndPrint [17:40:24]line [17:40:24]line [17:40:24]line [17:40:24]line [17:40:24]line [17:40:24]written 0, free lines is 3361 [17:40:24]MH_Cut [17:40:24]Write to MH i2c: D1 01 00 37 5E 01 67 [17:40:24]Write i2c OK [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: D1 [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: D1 01 00 [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: D1 01 00 37 5E 00 66 [17:40:24]Write to MH i2c: 01 00 00 38 5E 96 [17:40:24]Write i2c OK [17:40:24]MH_I2C_Read... [17:40:24]OFD Sender: No OFD packet to send [17:40:25]*** Cut start [17:40:25]*** Purtial cut [17:40:25]*** Stage 1: CUTSNS_PIN = 1 [17:40:27]Read from MH i2c: 01 [17:40:27]MH_I2C_Read... [17:40:27]*** Stop cut motor [17:40:27]*** Cut end [17:40:27]Read from MH i2c: 01 07 00 [17:40:27]MH_I2C_Read... [17:40:27]Read from MH i2c: 01 07 00 38 5E 00 00 00 00 00 FF 0F AB [17:40:27]process_action close_receipt done [17:40:27]requested_data is exist [17:40:27]produce_requested_data [17:40:27]requested_item fm.sn is exist - process it [17:40:27]wFMCommunicate request_size=4 [17:40:27]MH_SAM_APDU [17:40:27]CAPDU: 80 11 00 00 [17:40:27]Write to MH i2c: E2 08 00 39 5E 80 11 00 00 00 00 00 00 11 [17:40:27]Write i2c OK [17:40:27]MH_I2C_Read... [17:40:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:27]Read from MH i2c: E2 [17:40:27]MH_I2C_Read... [17:40:27]Read from MH i2c: E2 17 00 [17:40:27]MH_I2C_Read... [17:40:27]Read from MH i2c: E2 17 00 39 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 68 [17:40:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:40:27]wFMCommunicate OK [17:40:27]requested_item fd.num is exist - process it [17:40:27]SAM_PROTO_GetFieldsCounters [17:40:27]wFMCommunicate request_size=4 [17:40:27]MH_SAM_APDU [17:40:27]CAPDU: 80 13 00 00 [17:40:27]Write to MH i2c: E2 08 00 3A 5E 80 13 00 00 00 00 00 00 14 [17:40:27]Write i2c OK [17:40:27]MH_I2C_Read... [17:40:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:40:27]Read from MH i2c: E2 [17:40:27]MH_I2C_Read... [17:40:27]Read from MH i2c: E2 62 00 [17:40:27]MH_I2C_Read... [17:40:27]Read from MH i2c: E2 62 00 3A 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F1 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [17:40:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F1 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:40:27]wFMCommunicate OK [17:40:27]SAM_PROTO_GetFieldsCounters done [17:40:27]requested_item shift.num is exist - process it [17:40:27]requested_item shift.opened is exist - process it [17:40:27]req_shift_opened [17:40:27]FM_GetShiftState [17:40:27]SAM_PROTO_GetShiftState [17:40:27]wFMCommunicate request_size=4 [17:40:27]MH_SAM_APDU [17:40:27]CAPDU: 80 13 01 00 [17:40:27]Write to MH i2c: E2 08 00 3B 5E 80 13 01 00 00 00 00 00 16 [17:40:27]Write i2c OK [17:40:27]MH_I2C_Read... [17:40:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:27]Read from MH i2c: E2 [17:40:27]MH_I2C_Read... [17:40:27]Read from MH i2c: E2 0E 00 [17:40:27]MH_I2C_Read... [17:40:27]Read from MH i2c: E2 0E 00 3B 5E 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 98 [17:40:27]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [17:40:27]wFMCommunicate OK [17:40:27]SAM_PROTO_GetShiftState done [17:40:27]FM_GetShiftState done [17:40:27]req_shift_opened done [17:40:27]requested_item shift.open_date is exist - process it [17:40:27]req_shift_open_date [17:40:27]req_shift_open_date done [17:40:27]produce_requested_data done [17:40:27]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92657,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [17:40:27]process_action_free close_receipt [17:40:27]json_value_free [17:40:27]json_value_free done [17:40:27]process_json_proto returns [17:40:27]Send response to host [17:40:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92657,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [17:40:27]free response buf [17:40:27]execute_script done [17:40:27]execute_script returns [17:40:27]free content buf [17:40:27]Sock 8.Close socket [17:40:27]Sock 8.Thread stoped [17:40:29]OFD Sender: No OFD packet to send [17:40:34]OFD Sender: No OFD packet to send [17:40:39]OFD Sender: No OFD packet to send [17:40:44]OFD Sender: No OFD packet to send [17:40:49]OFD Sender: No OFD packet to send [17:40:54]OFD Sender: No OFD packet to send [17:41:00]OFD Sender: No OFD packet to send [17:41:05]OFD Sender: No OFD packet to send [17:41:10]OFD Sender: No OFD packet to send [17:41:15]OFD Sender: No OFD packet to send [17:41:20]OFD Sender: No OFD packet to send [17:41:25]OFD Sender: No OFD packet to send [17:41:30]OFD Sender: No OFD packet to send [17:41:35]OFD Sender: No OFD packet to send [17:41:40]OFD Sender: No OFD packet to send [17:41:45]OFD Sender: No OFD packet to send [17:41:50]OFD Sender: No OFD packet to send [17:41:55]OFD Sender: No OFD packet to send [17:42:00]OFD Sender: No OFD packet to send [17:42:05]OFD Sender: No OFD packet to send [17:42:10]OFD Sender: No OFD packet to send [17:42:15]OFD Sender: No OFD packet to send [17:42:20]OFD Sender: No OFD packet to send [17:42:25]OFD Sender: No OFD packet to send [17:42:30]OFD Sender: No OFD packet to send [17:42:35]OFD Sender: No OFD packet to send [17:42:40]OFD Sender: No OFD packet to send [17:42:45]OFD Sender: No OFD packet to send [17:42:50]OFD Sender: No OFD packet to send [17:42:55]OFD Sender: No OFD packet to send [17:43:00]OFD Sender: No OFD packet to send [17:43:05]OFD Sender: No OFD packet to send [17:43:10]OFD Sender: No OFD packet to send [17:43:15]OFD Sender: No OFD packet to send [17:43:20]OFD Sender: No OFD packet to send [17:43:25]OFD Sender: No OFD packet to send [17:43:30]OFD Sender: No OFD packet to send [17:43:35]OFD Sender: No OFD packet to send [17:43:40]OFD Sender: No OFD packet to send [17:43:45]OFD Sender: No OFD packet to send [17:43:50]OFD Sender: No OFD packet to send [17:43:55]OFD Sender: No OFD packet to send [17:44:00]OFD Sender: No OFD packet to send [17:44:05]OFD Sender: No OFD packet to send [17:44:10]OFD Sender: No OFD packet to send [17:44:15]OFD Sender: No OFD packet to send [17:44:20]OFD Sender: No OFD packet to send [17:44:25]OFD Sender: No OFD packet to send [17:44:30]OFD Sender: No OFD packet to send [17:44:35]OFD Sender: No OFD packet to send [17:44:40]OFD Sender: No OFD packet to send [17:44:45]OFD Sender: No OFD packet to send [17:44:50]OFD Sender: No OFD packet to send [17:44:55]OFD Sender: No OFD packet to send [17:45:00]OFD Sender: No OFD packet to send [17:45:05]OFD Sender: No OFD packet to send [17:45:10]OFD Sender: No OFD packet to send [17:45:15]OFD Sender: No OFD packet to send [17:45:20]OFD Sender: No OFD packet to send [17:45:25]OFD Sender: No OFD packet to send [17:45:30]OFD Sender: No OFD packet to send [17:45:35]OFD Sender: No OFD packet to send [17:45:40]OFD Sender: No OFD packet to send [17:45:45]OFD Sender: No OFD packet to send [17:45:50]OFD Sender: No OFD packet to send [17:45:55]OFD Sender: No OFD packet to send [17:46:00]OFD Sender: No OFD packet to send [17:46:05]OFD Sender: No OFD packet to send [17:46:10]OFD Sender: No OFD packet to send [17:46:15]OFD Sender: No OFD packet to send [17:46:20]OFD Sender: No OFD packet to send [17:46:25]OFD Sender: No OFD packet to send [17:46:30]OFD Sender: No OFD packet to send [17:46:35]OFD Sender: No OFD packet to send [17:46:40]OFD Sender: No OFD packet to send [17:46:45]OFD Sender: No OFD packet to send [17:46:50]OFD Sender: No OFD packet to send [17:46:55]OFD Sender: No OFD packet to send [17:47:00]OFD Sender: No OFD packet to send [17:47:05]OFD Sender: No OFD packet to send [17:47:10]OFD Sender: No OFD packet to send [17:47:15]OFD Sender: No OFD packet to send [17:47:20]OFD Sender: No OFD packet to send [17:47:25]OFD Sender: No OFD packet to send [17:47:30]OFD Sender: No OFD packet to send [17:47:35]OFD Sender: No OFD packet to send [17:47:40]OFD Sender: No OFD packet to send [17:47:45]OFD Sender: No OFD packet to send [17:47:50]OFD Sender: No OFD packet to send [17:47:55]OFD Sender: No OFD packet to send [17:48:00]OFD Sender: No OFD packet to send [17:48:05]OFD Sender: No OFD packet to send [17:48:10]OFD Sender: No OFD packet to send [17:48:15]OFD Sender: No OFD packet to send [17:48:20]OFD Sender: No OFD packet to send [17:48:25]OFD Sender: No OFD packet to send [17:48:30]OFD Sender: No OFD packet to send [17:48:35]OFD Sender: No OFD packet to send [17:48:40]OFD Sender: No OFD packet to send [17:48:45]OFD Sender: No OFD packet to send [17:48:50]OFD Sender: No OFD packet to send [17:48:55]OFD Sender: No OFD packet to send [17:49:00]OFD Sender: No OFD packet to send [17:49:05]OFD Sender: No OFD packet to send [17:49:10]OFD Sender: No OFD packet to send [17:49:15]OFD Sender: No OFD packet to send [17:49:20]OFD Sender: No OFD packet to send [17:49:25]OFD Sender: No OFD packet to send [17:49:30]OFD Sender: No OFD packet to send [17:49:35]OFD Sender: No OFD packet to send [17:49:40]OFD Sender: No OFD packet to send [17:49:45]OFD Sender: No OFD packet to send [17:49:50]OFD Sender: No OFD packet to send [17:49:55]OFD Sender: No OFD packet to send [17:50:00]OFD Sender: No OFD packet to send [17:50:05]OFD Sender: No OFD packet to send [17:50:10]OFD Sender: No OFD packet to send [17:50:15]OFD Sender: No OFD packet to send [17:50:20]OFD Sender: No OFD packet to send [17:50:25]OFD Sender: No OFD packet to send [17:50:30]OFD Sender: No OFD packet to send [17:50:35]OFD Sender: No OFD packet to send [17:50:40]OFD Sender: No OFD packet to send [17:50:45]OFD Sender: No OFD packet to send [17:50:50]OFD Sender: No OFD packet to send [17:50:55]OFD Sender: No OFD packet to send [17:51:00]OFD Sender: No OFD packet to send [17:51:05]OFD Sender: No OFD packet to send [17:51:10]OFD Sender: No OFD packet to send [17:51:15]OFD Sender: No OFD packet to send [17:51:20]OFD Sender: No OFD packet to send [17:51:25]OFD Sender: No OFD packet to send [17:51:30]OFD Sender: No OFD packet to send [17:51:35]OFD Sender: No OFD packet to send [17:51:40]OFD Sender: No OFD packet to send [17:51:45]OFD Sender: No OFD packet to send [17:51:50]OFD Sender: No OFD packet to send [17:51:55]OFD Sender: No OFD packet to send [17:52:00]OFD Sender: No OFD packet to send [17:52:05]OFD Sender: No OFD packet to send [17:52:10]OFD Sender: No OFD packet to send [17:52:15]OFD Sender: No OFD packet to send [17:52:20]OFD Sender: No OFD packet to send [17:52:25]OFD Sender: No OFD packet to send [17:52:30]OFD Sender: No OFD packet to send [17:52:35]OFD Sender: No OFD packet to send [17:52:40]OFD Sender: No OFD packet to send [17:52:45]OFD Sender: No OFD packet to send [17:52:50]OFD Sender: No OFD packet to send [17:52:55]OFD Sender: No OFD packet to send [17:53:00]OFD Sender: No OFD packet to send [17:53:05]OFD Sender: No OFD packet to send [17:53:10]OFD Sender: No OFD packet to send [17:53:15]OFD Sender: No OFD packet to send [17:53:20]OFD Sender: No OFD packet to send [17:53:25]OFD Sender: No OFD packet to send [17:53:30]OFD Sender: No OFD packet to send [17:53:35]OFD Sender: No OFD packet to send [17:53:40]OFD Sender: No OFD packet to send [17:53:45]OFD Sender: No OFD packet to send [17:53:50]OFD Sender: No OFD packet to send [17:53:55]OFD Sender: No OFD packet to send [17:54:00]OFD Sender: No OFD packet to send [17:54:05]OFD Sender: No OFD packet to send [17:54:10]OFD Sender: No OFD packet to send [17:54:15]OFD Sender: No OFD packet to send [17:54:20]OFD Sender: No OFD packet to send [17:54:23]accept exits with 9 [17:54:23]New connection [17:54:23]New thread 3066658148 created [17:54:23]Thread 3066801508 joined [17:54:23]Waiting for new connection... [17:54:23] Sock 9.Parse request [17:54:23]Sock 9.Check first char [17:54:23]Sock 9.First char is OK [17:54:23]request: POST /json_proto HTTP/1.0 [17:54:23]Method: POST [17:54:23]URL: /json_proto [17:54:23]Method is POST - this is cgi request [17:54:23]url: /json_proto [17:54:23]query_string will be loaded in cgi processing [17:54:23]execute_cgi json_proto POST (null) [17:54:23]execute_cgi path=json_proto method=POST [17:54:23]POST find Content-Length [17:54:23]Host: 172.17.57.71:8080 [17:54:23]Content-Length: 1027 [17:54:23]Content-Type: application/json [17:54:23] [17:54:23]POST finish read [17:54:23]Found Content-Length = 1027 [17:54:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127547", "tax_sys" : 0, "items" : [ { "code": "4870002325113", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A PEPSI \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u0442 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003956", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:23]execute_script... [17:54:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127547", "tax_sys" : 0, "items" : [ { "code": "4870002325113", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A PEPSI \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u0442 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003956", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:23]POST & json_proto [17:54:23]process_json_proto [17:54:23]json parsed OK: [17:54:23]protocol is kg_v1.0 [17:54:23]action value=close_receipt [17:54:23]process_action close_receipt [17:54:23]cmd_close_receipt [17:54:23]MH_GetDate [17:54:23]Write to MH i2c: F0 00 00 3C 5E 89 [17:54:23]Write i2c OK [17:54:23]MH_I2C_Read... [17:54:23]Read from MH i2c: F0 [17:54:23]MH_I2C_Read... [17:54:23]Read from MH i2c: F0 09 00 [17:54:23]MH_I2C_Read... [17:54:23]Read from MH i2c: F0 09 00 3C 5E 00 59 1F E7 66 33 3A A4 66 CE [17:54:23]GetLastDocTimeStamp 1726422032 [17:54:23]current date 1726422873 [17:54:23]FM_GetShiftState [17:54:23]SAM_PROTO_GetShiftState [17:54:23]wFMCommunicate request_size=4 [17:54:23]MH_SAM_APDU [17:54:23]CAPDU: 80 13 01 00 [17:54:23]Write to MH i2c: E2 08 00 3D 5E 80 13 01 00 00 00 00 00 18 [17:54:23]Write i2c OK [17:54:23]MH_I2C_Read... [17:54:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:23]Read from MH i2c: E2 [17:54:23]MH_I2C_Read... [17:54:23]Read from MH i2c: E2 0E 00 [17:54:23]MH_I2C_Read... [17:54:23]Read from MH i2c: E2 0E 00 3D 5E 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 9A [17:54:23]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [17:54:23]wFMCommunicate OK [17:54:23]SAM_PROTO_GetShiftState done [17:54:23]FM_GetShiftState done [17:54:23]opened in 1726359809 [17:54:23]opened+sec_in_day 1726446209 [17:54:23]quantity*price = 9000 [17:54:23]sum+1 = 9001 [17:54:23]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870112003956 Шок батончик ALBENI SUPER Альбени Супер 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 165.00 НСП 1% : 1.46 НДС 12% : 17.52 Наличными: 165.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 106 15.09.2024 17:54 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92658 ФПД: 121129512685679 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T175433&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92658&fm=121129512685679&tin=02508201610067®Number=0000000000091423&sum=16500 0 [17:54:24]StoreToDocumentArchive [17:54:24]shift 507 fd 92658 [17:54:24]save to /storage/0507/doc_00092658 [17:54:24]save last doc name /storage/0507/doc_00092658 to /storage/kkm_last_doc_name [17:54:24]save OK [17:54:24]Clear old archive folders... [17:54:24]ProcessDocumentItem done err = 0, tmpTLVsize=433 [17:54:24]tlvbuf is 00FF90E0 [17:54:24]SAM_PROTO_ClearQueue [17:54:24]wFMCommunicate request_size=4 [17:54:24]MH_SAM_APDU [17:54:24]CAPDU: 80 09 00 00 [17:54:24]Write to MH i2c: E2 08 00 4A 5E 80 09 00 00 00 00 00 00 1A [17:54:24]Write i2c OK [17:54:24]MH_I2C_Read... [17:54:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:54:24]Read from MH i2c: E2 [17:54:24]MH_I2C_Read... [17:54:24]Read from MH i2c: E2 03 00 [17:54:24]MH_I2C_Read... [17:54:24]Read from MH i2c: E2 03 00 4A 5E 00 90 00 1C [17:54:24]RAPDU: 90 00 [17:54:24]wFMCommunicate OK [17:54:24]SAM_PROTO_ClearQueue done [17:54:24]KKMCreateOFDPacket [17:54:24]OFDProtocolAddRootSTLVToBuf [17:54:24]FM_MakeSignedData [17:54:24]FM_MakeSignedData [17:54:24]SAM_PROTO_SignData [17:54:24]wFMCommunicate request_size=4 [17:54:24]MH_SAM_APDU [17:54:24]CAPDU: 80 0D 01 02 [17:54:24]Write to MH i2c: E2 08 00 4B 5E 80 0D 01 02 00 00 00 00 22 [17:54:24]Write i2c OK [17:54:24]MH_I2C_Read... [17:54:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:24]Read from MH i2c: E2 [17:54:24]MH_I2C_Read... [17:54:24]Read from MH i2c: E2 03 00 [17:54:24]MH_I2C_Read... [17:54:24]Read from MH i2c: E2 03 00 4B 5E 00 90 00 1D [17:54:24]RAPDU: 90 00 [17:54:24]wFMCommunicate OK [17:54:24]wFMCommunicate request_size=255 [17:54:24]MH_SAM_APDU [17:54:24]CAPDU: 80 0D 02 02 FA 03 00 B1 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 [17:54:24]Write to MH i2c: E2 02 01 4C 5E 80 0D 02 02 FA 00 03 00 B1 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 00 B6 [17:54:24]Write i2c OK [17:54:24]MH_I2C_Read... [17:54:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:24]Read from MH i2c: E2 [17:54:24]MH_I2C_Read... [17:54:24]Read from MH i2c: E2 03 00 [17:54:24]MH_I2C_Read... [17:54:24]Read from MH i2c: E2 03 00 4C 5E 00 90 00 1E [17:54:24]RAPDU: 90 00 [17:54:24]wFMCommunicate OK [17:54:24]wFMCommunicate request_size=192 [17:54:24]MH_SAM_APDU [17:54:24]CAPDU: 80 0D 02 02 BB 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 59 1F E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F2 69 01 00 35 04 06 00 6E 2A A9 93 50 6F [17:54:24]Write to MH i2c: E2 C3 00 4D 5E 80 0D 02 02 BB 00 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 59 1F E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F2 69 01 00 35 04 06 00 6E 2A A9 93 50 6F 00 00 EA [17:54:25]Write i2c OK [17:54:25]MH_I2C_Read... [17:54:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:25]Read from MH i2c: E2 [17:54:25]MH_I2C_Read... [17:54:25]Read from MH i2c: E2 03 00 [17:54:25]MH_I2C_Read... [17:54:25]Read from MH i2c: E2 03 00 4D 5E 00 90 00 1F [17:54:25]RAPDU: 90 00 [17:54:25]wFMCommunicate OK [17:54:25]wFMCommunicate request_size=4 [17:54:25]MH_SAM_APDU [17:54:25]CAPDU: 80 0D 03 02 [17:54:25]Write to MH i2c: E2 08 00 4E 5E 80 0D 03 02 00 00 00 00 27 [17:54:25]Write i2c OK [17:54:25]MH_I2C_Read... [17:54:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:25]Read from MH i2c: E2 [17:54:25]MH_I2C_Read... [17:54:25]Read from MH i2c: E2 0B 00 [17:54:25]MH_I2C_Read... [17:54:25]Read from MH i2c: E2 0B 00 4E 5E 00 00 70 AF B3 94 46 06 BA 90 00 94 [17:54:25]RAPDU: 00 70 AF B3 94 46 06 BA 90 00 [17:54:25]wFMCommunicate OK [17:54:25]SAM_PROTO_SignData done [17:54:25]FM_MakeSignedData done [17:54:25]CreateOFDProtocolMessage [17:54:25]wFMCommunicate request_size=4 [17:54:25]MH_SAM_APDU [17:54:25]CAPDU: 80 11 00 00 [17:54:25]Write to MH i2c: E2 08 00 4F 5E 80 11 00 00 00 00 00 00 27 [17:54:25]Write i2c OK [17:54:25]MH_I2C_Read... [17:54:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:25]Read from MH i2c: E2 [17:54:25]MH_I2C_Read... [17:54:25]Read from MH i2c: E2 17 00 [17:54:25]MH_I2C_Read... [17:54:25]Read from MH i2c: E2 17 00 4F 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 7E [17:54:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:54:25]wFMCommunicate OK [17:54:25]CreateOFDProtocolMessage done [17:54:25]OFDSenderStorePacket 92658 [17:54:25]StoreOFDPacket docnum=92658 [17:54:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 C5 01 00 00 4F 4C BD 01 0A D8 5A 03 01 00 03 00 B1 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 59 1F E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F2 69 01 00 35 04 06 00 6E 2A A9 93 50 6F 00 70 AF B3 94 46 06 BA [17:54:25]CheckFolder [17:54:25]dirname=/storage/ofd_packets [17:54:25]CheckFolder done [17:54:25]ProducePacketName [17:54:25]name=ofd_packets/00092658 [17:54:25]NVStorageSaveData ofd_packets/00092658 [17:54:25]File name is /storage/ofd_packets/00092658 [17:54:25]Write 483 bytes [17:54:25]NVStorageSaveData done [17:54:25]OFDSenderStorePacket done [17:54:25]KKMCreateOFDPacket done [17:54:25]NVStorageSaveData kkm_last_timestamp [17:54:25]File name is /storage/kkm_last_timestamp [17:54:25]Write 4 bytes [17:54:25]NVStorageSaveData done [17:54:25]ExternCall_PrintAddStr [17:54:25]wPrintStart [17:54:25]Write to MH i2c: 01 00 00 50 5E AE [17:54:25]OFD Sender: Processing packet 92658 [packets to send 63, broken 62] [17:54:25]ProducePacketName [17:54:25]name=ofd_packets/00092658 [17:54:25]Write i2c OK [17:54:25]MH_I2C_Read... [17:54:25]OFD Sender: To server: pG, [17:54:25]CommunicateWithHost lk.salyk.kg:30040 [17:54:25]ConnectInit lk.salyk.kg [17:54:25]Read from MH i2c: 01 [17:54:25]MH_I2C_Read... [17:54:25]Read from MH i2c: 01 07 00 [17:54:25]MH_I2C_Read... [17:54:25]Read from MH i2c: 01 07 00 50 5E 00 00 00 00 00 FF 0F C3 [17:54:25]RasterBufferAndPrint [17:54:25]line Счет N : (3)127547 [17:54:25]line ИНН: 02508201610067 [17:54:25]line Контрольно-Кассовый Чек [17:54:25]line ПРОДАЖА [17:54:25]line Товар: 4870002325113 [17:54:25]line Напиток PEPSI газированный ст 0,25л [17:54:25]line 1.000 * 90.00 [17:54:25]line = 90.00 [17:54:25]line НДС 12% НСП 1% [17:54:25]line > о реализуемом товаре [17:54:25]line Товар: 4870112003956 [17:54:25]line Шок батончик ALBENI SUPER Альбени Супер [17:54:25]line 1.000 * 75.00 [17:54:25]line = 75.00 [17:54:25]line НДС 12% НСП 1% [17:54:25]line > о реализуемом товаре [17:54:25]line ИТОГО: 165.00 [17:54:25]line НСП 1% : 1.46 [17:54:25]line НДС 12% : 17.52 [17:54:25]line Наличными: 165.00 [17:54:25]line Безнал.: 0.00 [17:54:25]line Место: АЗС № 5 "Партнер Нефть" [17:54:25]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [17:54:25]line СНО: Общий режим [17:54:25]line Чек 106 15.09.2024 17:54 [17:54:25]line Смена: 507 ФФД: 1.0 [17:54:25]line ЗНМ: 03000000022 [17:54:25]line РНМ: 0000000000091423 [17:54:25]line Версия ККМ: 001 [17:54:25]line ФМ: 0000000000874692 [17:54:25]line ФД: 92658 [17:54:25]line ФПД: 121129512685679 [17:54:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T175433&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92658&fm=121129512685679&tin=02508201610067®Number=0000000000091423&sum=16500 [17:54:25]line 0 [17:54:25]written 0, free lines is 4095 [17:54:25]Connected sock=10 [17:54:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 C5 01 00 00 4F 4C BD 01 0A D8 5A 03 01 00 03 00 B1 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 59 1F E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F2 69 01 00 35 04 06 00 6E 2A A9 93 50 6F 00 70 AF B3 94 46 06 BA [17:54:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 09 5F 47 00 99 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F2 69 01 00 F4 03 04 00 D0 C7 E6 66 B6 04 01 00 00 DB 96 C3 08 EB 0A 1E C6 [17:54:25]CommunicateWithHost err = 0 [17:54:25]CheckOFDResponse [17:54:25]1017 (14) - 77093643461234 [17:54:25]1041 (16) - 0000000000874692 [17:54:25]1040 (4) - 92658 [17:54:25]1012 (4) - 15.09.2024 11:41 [17:54:25]1206 (1) - 0 [17:54:25]OFD Sender: Remove packet 92658 [17:54:25]ProducePacketName [17:54:25]name=ofd_packets/00092658 [17:54:25]NVStorageDeleteData [17:54:26]Write to MH i2c: 01 00 00 80 5E DE [17:54:26]Write i2c OK [17:54:26]MH_I2C_Read... [17:54:26]Read from MH i2c: 01 [17:54:26]MH_I2C_Read... [17:54:26]Read from MH i2c: 01 07 00 [17:54:26]MH_I2C_Read... [17:54:26]Read from MH i2c: 01 07 00 80 5E 00 00 00 00 00 BA 0C AB [17:54:26]RasterBufferAndPrint [17:54:26]line [17:54:26]line [17:54:26]line [17:54:26]line [17:54:26]line [17:54:26]written 0, free lines is 3265 [17:54:26]MH_Cut [17:54:26]Write to MH i2c: D1 01 00 87 5E 01 B7 [17:54:26]Write i2c OK [17:54:26]MH_I2C_Read... [17:54:26]Read from MH i2c: D1 [17:54:26]MH_I2C_Read... [17:54:26]Read from MH i2c: D1 01 00 [17:54:26]MH_I2C_Read... [17:54:26]Read from MH i2c: D1 01 00 87 5E 00 B6 [17:54:26]Write to MH i2c: 01 00 00 88 5E E6 [17:54:26]Write i2c OK [17:54:26]MH_I2C_Read... [17:54:26]OFD Sender: No OFD packet to send [17:54:26]*** Cut start [17:54:26]*** Purtial cut [17:54:26]*** Stage 1: CUTSNS_PIN = 1 [17:54:28]Read from MH i2c: 01 [17:54:28]MH_I2C_Read... [17:54:28]*** Stop cut motor [17:54:28]*** Cut end [17:54:28]Read from MH i2c: 01 07 00 [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: 01 07 00 88 5E 00 00 00 00 00 FF 0F FB [17:54:28]process_action close_receipt done [17:54:28]requested_data is exist [17:54:28]produce_requested_data [17:54:28]requested_item fm.sn is exist - process it [17:54:28]wFMCommunicate request_size=4 [17:54:28]MH_SAM_APDU [17:54:28]CAPDU: 80 11 00 00 [17:54:28]Write to MH i2c: E2 08 00 89 5E 80 11 00 00 00 00 00 00 61 [17:54:28]Write i2c OK [17:54:28]MH_I2C_Read... [17:54:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:28]Read from MH i2c: E2 [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: E2 17 00 [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: E2 17 00 89 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B8 [17:54:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:54:28]wFMCommunicate OK [17:54:28]requested_item fd.num is exist - process it [17:54:28]SAM_PROTO_GetFieldsCounters [17:54:28]wFMCommunicate request_size=4 [17:54:28]MH_SAM_APDU [17:54:28]CAPDU: 80 13 00 00 [17:54:28]Write to MH i2c: E2 08 00 8A 5E 80 13 00 00 00 00 00 00 64 [17:54:28]Write i2c OK [17:54:28]MH_I2C_Read... [17:54:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:29]Read from MH i2c: E2 [17:54:29]MH_I2C_Read... [17:54:29]Read from MH i2c: E2 62 00 [17:54:29]MH_I2C_Read... [17:54:29]Read from MH i2c: E2 62 00 8A 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F2 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [17:54:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F2 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:54:29]wFMCommunicate OK [17:54:29]SAM_PROTO_GetFieldsCounters done [17:54:29]requested_item shift.num is exist - process it [17:54:29]requested_item shift.opened is exist - process it [17:54:29]req_shift_opened [17:54:29]FM_GetShiftState [17:54:29]SAM_PROTO_GetShiftState [17:54:29]wFMCommunicate request_size=4 [17:54:29]MH_SAM_APDU [17:54:29]CAPDU: 80 13 01 00 [17:54:29]Write to MH i2c: E2 08 00 8B 5E 80 13 01 00 00 00 00 00 66 [17:54:29]Write i2c OK [17:54:29]MH_I2C_Read... [17:54:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:29]Read from MH i2c: E2 [17:54:29]MH_I2C_Read... [17:54:29]Read from MH i2c: E2 0E 00 [17:54:29]MH_I2C_Read... [17:54:29]Read from MH i2c: E2 0E 00 8B 5E 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 E8 [17:54:29]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [17:54:29]wFMCommunicate OK [17:54:29]SAM_PROTO_GetShiftState done [17:54:29]FM_GetShiftState done [17:54:29]req_shift_opened done [17:54:29]requested_item shift.open_date is exist - process it [17:54:29]req_shift_open_date [17:54:29]req_shift_open_date done [17:54:29]produce_requested_data done [17:54:29]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92658,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [17:54:29]process_action_free close_receipt [17:54:29]json_value_free [17:54:29]json_value_free done [17:54:29]process_json_proto returns [17:54:29]Send response to host [17:54:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92658,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [17:54:29]free response buf [17:54:29]execute_script done [17:54:29]execute_script returns [17:54:29]free content buf [17:54:29]Sock 9.Close socket [17:54:29]Sock 9.Thread stoped [17:54:31]OFD Sender: No OFD packet to send [17:54:36]OFD Sender: No OFD packet to send [17:54:41]OFD Sender: No OFD packet to send [17:54:46]OFD Sender: No OFD packet to send [17:54:51]OFD Sender: No OFD packet to send [17:54:56]OFD Sender: No OFD packet to send [17:55:01]OFD Sender: No OFD packet to send [17:55:06]OFD Sender: No OFD packet to send [17:55:11]OFD Sender: No OFD packet to send [17:55:16]OFD Sender: No OFD packet to send [17:55:21]OFD Sender: No OFD packet to send [17:55:26]OFD Sender: No OFD packet to send [17:55:31]OFD Sender: No OFD packet to send [17:55:36]OFD Sender: No OFD packet to send [17:55:41]OFD Sender: No OFD packet to send [17:55:46]OFD Sender: No OFD packet to send [17:55:51]OFD Sender: No OFD packet to send [17:55:56]OFD Sender: No OFD packet to send [17:56:01]OFD Sender: No OFD packet to send [17:56:06]OFD Sender: No OFD packet to send [17:56:11]OFD Sender: No OFD packet to send [17:56:16]OFD Sender: No OFD packet to send [17:56:21]OFD Sender: No OFD packet to send [17:56:26]OFD Sender: No OFD packet to send [17:56:31]OFD Sender: No OFD packet to send [17:56:36]OFD Sender: No OFD packet to send [17:56:41]OFD Sender: No OFD packet to send [17:56:46]OFD Sender: No OFD packet to send [17:56:51]OFD Sender: No OFD packet to send [17:56:56]OFD Sender: No OFD packet to send [17:57:01]OFD Sender: No OFD packet to send [17:57:06]OFD Sender: No OFD packet to send [17:57:11]OFD Sender: No OFD packet to send [17:57:16]OFD Sender: No OFD packet to send [17:57:21]OFD Sender: No OFD packet to send [17:57:26]OFD Sender: No OFD packet to send [17:57:31]OFD Sender: No OFD packet to send [17:57:36]OFD Sender: No OFD packet to send [17:57:41]OFD Sender: No OFD packet to send [17:57:46]OFD Sender: No OFD packet to send [17:57:51]OFD Sender: No OFD packet to send [17:57:56]OFD Sender: No OFD packet to send [17:58:01]OFD Sender: No OFD packet to send [17:58:06]OFD Sender: No OFD packet to send [17:58:11]OFD Sender: No OFD packet to send [17:58:16]OFD Sender: No OFD packet to send [17:58:21]OFD Sender: No OFD packet to send [17:58:26]OFD Sender: No OFD packet to send [17:58:31]OFD Sender: No OFD packet to send [17:58:36]OFD Sender: No OFD packet to send [17:58:41]OFD Sender: No OFD packet to send [17:58:46]OFD Sender: No OFD packet to send [17:58:51]OFD Sender: No OFD packet to send [17:58:56]OFD Sender: No OFD packet to send [17:59:01]OFD Sender: No OFD packet to send [17:59:06]OFD Sender: No OFD packet to send [17:59:11]OFD Sender: No OFD packet to send [17:59:16]OFD Sender: No OFD packet to send [17:59:21]OFD Sender: No OFD packet to send [17:59:26]OFD Sender: No OFD packet to send [17:59:31]OFD Sender: No OFD packet to send [17:59:36]OFD Sender: No OFD packet to send [17:59:41]OFD Sender: No OFD packet to send [17:59:46]OFD Sender: No OFD packet to send [17:59:51]OFD Sender: No OFD packet to send [17:59:56]OFD Sender: No OFD packet to send [18:00:01]OFD Sender: No OFD packet to send [18:00:06]OFD Sender: No OFD packet to send [18:00:11]OFD Sender: No OFD packet to send [18:00:16]OFD Sender: No OFD packet to send [18:00:21]OFD Sender: No OFD packet to send [18:00:26]OFD Sender: No OFD packet to send [18:00:31]OFD Sender: No OFD packet to send [18:00:36]OFD Sender: No OFD packet to send [18:00:41]OFD Sender: No OFD packet to send [18:00:46]OFD Sender: No OFD packet to send [18:00:51]OFD Sender: No OFD packet to send [18:00:56]OFD Sender: No OFD packet to send [18:01:01]OFD Sender: No OFD packet to send [18:01:06]OFD Sender: No OFD packet to send [18:01:11]OFD Sender: No OFD packet to send [18:01:16]OFD Sender: No OFD packet to send [18:01:21]OFD Sender: No OFD packet to send [18:01:26]OFD Sender: No OFD packet to send [18:01:31]OFD Sender: No OFD packet to send [18:01:36]OFD Sender: No OFD packet to send [18:01:41]OFD Sender: No OFD packet to send [18:01:46]OFD Sender: No OFD packet to send [18:01:51]OFD Sender: No OFD packet to send [18:01:56]OFD Sender: No OFD packet to send [18:02:01]OFD Sender: No OFD packet to send [18:02:06]OFD Sender: No OFD packet to send [18:02:11]OFD Sender: No OFD packet to send [18:02:16]OFD Sender: No OFD packet to send [18:02:21]OFD Sender: No OFD packet to send [18:02:26]OFD Sender: No OFD packet to send [18:02:31]OFD Sender: No OFD packet to send [18:02:36]OFD Sender: No OFD packet to send [18:02:41]OFD Sender: No OFD packet to send [18:02:46]OFD Sender: No OFD packet to send [18:02:51]OFD Sender: No OFD packet to send [18:02:56]OFD Sender: No OFD packet to send [18:03:01]OFD Sender: No OFD packet to send [18:03:06]OFD Sender: No OFD packet to send [18:03:11]OFD Sender: No OFD packet to send [18:03:16]OFD Sender: No OFD packet to send [18:03:21]OFD Sender: No OFD packet to send [18:03:26]OFD Sender: No OFD packet to send [18:03:31]OFD Sender: No OFD packet to send [18:03:36]OFD Sender: No OFD packet to send [18:03:41]OFD Sender: No OFD packet to send [18:03:46]OFD Sender: No OFD packet to send [18:03:51]OFD Sender: No OFD packet to send [18:03:56]OFD Sender: No OFD packet to send [18:04:01]OFD Sender: No OFD packet to send [18:04:06]OFD Sender: No OFD packet to send [18:04:11]OFD Sender: No OFD packet to send [18:04:16]OFD Sender: No OFD packet to send [18:04:21]OFD Sender: No OFD packet to send [18:04:26]OFD Sender: No OFD packet to send [18:04:32]OFD Sender: No OFD packet to send [18:04:37]OFD Sender: No OFD packet to send [18:04:42]OFD Sender: No OFD packet to send [18:04:47]OFD Sender: No OFD packet to send [18:04:52]OFD Sender: No OFD packet to send [18:04:57]OFD Sender: No OFD packet to send [18:05:02]OFD Sender: No OFD packet to send [18:05:07]OFD Sender: No OFD packet to send [18:05:12]OFD Sender: No OFD packet to send [18:05:17]OFD Sender: No OFD packet to send [18:05:22]OFD Sender: No OFD packet to send [18:05:27]OFD Sender: No OFD packet to send [18:05:32]OFD Sender: No OFD packet to send [18:05:37]OFD Sender: No OFD packet to send [18:05:42]OFD Sender: No OFD packet to send [18:05:47]OFD Sender: No OFD packet to send [18:05:52]OFD Sender: No OFD packet to send [18:05:57]OFD Sender: No OFD packet to send [18:06:02]OFD Sender: No OFD packet to send [18:06:07]OFD Sender: No OFD packet to send [18:06:12]OFD Sender: No OFD packet to send [18:06:17]OFD Sender: No OFD packet to send [18:06:22]OFD Sender: No OFD packet to send [18:06:27]OFD Sender: No OFD packet to send [18:06:32]OFD Sender: No OFD packet to send [18:06:37]OFD Sender: No OFD packet to send [18:06:42]OFD Sender: No OFD packet to send [18:06:47]OFD Sender: No OFD packet to send [18:06:52]OFD Sender: No OFD packet to send [18:06:57]OFD Sender: No OFD packet to send [18:07:02]OFD Sender: No OFD packet to send [18:07:07]OFD Sender: No OFD packet to send [18:07:12]OFD Sender: No OFD packet to send [18:07:17]OFD Sender: No OFD packet to send [18:07:22]OFD Sender: No OFD packet to send [18:07:27]OFD Sender: No OFD packet to send [18:07:32]OFD Sender: No OFD packet to send [18:07:37]OFD Sender: No OFD packet to send [18:07:42]OFD Sender: No OFD packet to send [18:07:47]OFD Sender: No OFD packet to send [18:07:52]OFD Sender: No OFD packet to send [18:07:57]OFD Sender: No OFD packet to send [18:08:02]OFD Sender: No OFD packet to send [18:08:07]OFD Sender: No OFD packet to send [18:08:12]OFD Sender: No OFD packet to send [18:08:17]OFD Sender: No OFD packet to send [18:08:22]OFD Sender: No OFD packet to send [18:08:27]OFD Sender: No OFD packet to send [18:08:32]OFD Sender: No OFD packet to send [18:08:37]OFD Sender: No OFD packet to send [18:08:42]OFD Sender: No OFD packet to send [18:08:47]OFD Sender: No OFD packet to send [18:08:52]OFD Sender: No OFD packet to send [18:08:57]OFD Sender: No OFD packet to send [18:09:02]OFD Sender: No OFD packet to send [18:09:07]OFD Sender: No OFD packet to send [18:09:12]OFD Sender: No OFD packet to send [18:09:17]OFD Sender: No OFD packet to send [18:09:22]OFD Sender: No OFD packet to send [18:09:27]OFD Sender: No OFD packet to send [18:09:32]OFD Sender: No OFD packet to send [18:09:37]OFD Sender: No OFD packet to send [18:09:42]OFD Sender: No OFD packet to send [18:09:47]OFD Sender: No OFD packet to send [18:09:52]OFD Sender: No OFD packet to send [18:09:57]OFD Sender: No OFD packet to send [18:10:02]OFD Sender: No OFD packet to send [18:10:07]OFD Sender: No OFD packet to send [18:10:12]OFD Sender: No OFD packet to send [18:10:17]OFD Sender: No OFD packet to send [18:10:22]OFD Sender: No OFD packet to send [18:10:27]OFD Sender: No OFD packet to send [18:10:32]OFD Sender: No OFD packet to send [18:10:37]OFD Sender: No OFD packet to send [18:10:42]OFD Sender: No OFD packet to send [18:10:47]OFD Sender: No OFD packet to send [18:10:52]OFD Sender: No OFD packet to send [18:10:57]OFD Sender: No OFD packet to send [18:11:02]OFD Sender: No OFD packet to send [18:11:07]OFD Sender: No OFD packet to send [18:11:12]OFD Sender: No OFD packet to send [18:11:17]accept exits with 8 [18:11:17]New connection [18:11:17]New thread 3066801508 created [18:11:17]Thread 3066658148 joined [18:11:17]Waiting for new connection... [18:11:17] Sock 8.Parse request [18:11:17]Sock 8.Check first char [18:11:17]Sock 8.First char is OK [18:11:17]request: POST /json_proto HTTP/1.0 [18:11:17]Method: POST [18:11:17]URL: /json_proto [18:11:17]Method is POST - this is cgi request [18:11:17]url: /json_proto [18:11:17]query_string will be loaded in cgi processing [18:11:17]execute_cgi json_proto POST (null) [18:11:17]execute_cgi path=json_proto method=POST [18:11:17]POST find Content-Length [18:11:17]Host: 172.17.57.71:8080 [18:11:17]Content-Length: 657 [18:11:17]Content-Type: application/json [18:11:17] [18:11:17]POST finish read [18:11:17]Found Content-Length = 657 [18:11:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127548", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:17]execute_script... [18:11:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127548", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:17]POST & json_proto [18:11:17]process_json_proto [18:11:17]json parsed OK: [18:11:17]protocol is kg_v1.0 [18:11:17]action value=close_receipt [18:11:17]process_action close_receipt [18:11:17]cmd_close_receipt [18:11:17]MH_GetDate [18:11:17]Write to MH i2c: F0 00 00 8C 5E D9 [18:11:17]Write i2c OK [18:11:17]MH_I2C_Read... [18:11:17]Read from MH i2c: F0 [18:11:17]MH_I2C_Read... [18:11:17]Read from MH i2c: F0 09 00 [18:11:17]MH_I2C_Read... [18:11:17]Read from MH i2c: F0 09 00 8C 5E 00 4F 23 E7 66 33 3A A4 66 18 [18:11:17]GetLastDocTimeStamp 1726422873 [18:11:17]current date 1726423887 [18:11:17]FM_GetShiftState [18:11:17]SAM_PROTO_GetShiftState [18:11:17]wFMCommunicate request_size=4 [18:11:17]MH_SAM_APDU [18:11:17]CAPDU: 80 13 01 00 [18:11:17]Write to MH i2c: E2 08 00 8D 5E 80 13 01 00 00 00 00 00 68 [18:11:17]Write i2c OK [18:11:17]MH_I2C_Read... [18:11:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:17]Read from MH i2c: E2 [18:11:17]MH_I2C_Read... [18:11:17]Read from MH i2c: E2 0E 00 [18:11:17]MH_I2C_Read... [18:11:17]Read from MH i2c: E2 0E 00 8D 5E 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 EA [18:11:17]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [18:11:17]wFMCommunicate OK [18:11:17]SAM_PROTO_GetShiftState done [18:11:17]FM_GetShiftState done [18:11:17]opened in 1726359809 [18:11:17]opened+sec_in_day 1726446209 [18:11:17]quantity*price = 9500 [18:11:17]sum+1 = 9501 [18:11:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 107 15.09.2024 18:11 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92659 ФПД: 248746924073264 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T181127&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92659&fm=248746924073264&tin=02508201610067®Number=0000000000091423&sum=9500 0 [18:11:18]StoreToDocumentArchive [18:11:18]shift 507 fd 92659 [18:11:18]save to /storage/0507/doc_00092659 [18:11:18]save last doc name /storage/0507/doc_00092659 to /storage/kkm_last_doc_name [18:11:18]save OK [18:11:18]Clear old archive folders... [18:11:18]ProcessDocumentItem done err = 0, tmpTLVsize=288 [18:11:18]tlvbuf is 01099BA0 [18:11:18]SAM_PROTO_ClearQueue [18:11:18]wFMCommunicate request_size=4 [18:11:18]MH_SAM_APDU [18:11:18]CAPDU: 80 09 00 00 [18:11:18]Write to MH i2c: E2 08 00 9A 5E 80 09 00 00 00 00 00 00 6A [18:11:18]Write i2c OK [18:11:18]MH_I2C_Read... [18:11:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:11:18]Read from MH i2c: E2 [18:11:18]MH_I2C_Read... [18:11:18]Read from MH i2c: E2 03 00 [18:11:18]MH_I2C_Read... [18:11:18]Read from MH i2c: E2 03 00 9A 5E 00 90 00 6C [18:11:18]RAPDU: 90 00 [18:11:18]wFMCommunicate OK [18:11:18]SAM_PROTO_ClearQueue done [18:11:18]KKMCreateOFDPacket [18:11:18]OFDProtocolAddRootSTLVToBuf [18:11:18]FM_MakeSignedData [18:11:18]FM_MakeSignedData [18:11:18]SAM_PROTO_SignData [18:11:18]wFMCommunicate request_size=4 [18:11:18]MH_SAM_APDU [18:11:18]CAPDU: 80 0D 01 02 [18:11:18]Write to MH i2c: E2 08 00 9B 5E 80 0D 01 02 00 00 00 00 72 [18:11:18]Write i2c OK [18:11:18]MH_I2C_Read... [18:11:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:11:18]Read from MH i2c: E2 [18:11:18]MH_I2C_Read... [18:11:18]Read from MH i2c: E2 03 00 [18:11:18]MH_I2C_Read... [18:11:18]Read from MH i2c: E2 03 00 9B 5E 00 90 00 6D [18:11:18]RAPDU: 90 00 [18:11:18]wFMCommunicate OK [18:11:18]wFMCommunicate request_size=255 [18:11:18]MH_SAM_APDU [18:11:18]CAPDU: 80 0D 02 02 FA 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 4F 23 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 [18:11:18]Write to MH i2c: E2 02 01 9C 5E 80 0D 02 02 FA 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 4F 23 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 00 00 83 [18:11:18]Write i2c OK [18:11:18]MH_I2C_Read... [18:11:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:18]Read from MH i2c: E2 [18:11:18]MH_I2C_Read... [18:11:18]Read from MH i2c: E2 03 00 [18:11:18]MH_I2C_Read... [18:11:18]Read from MH i2c: E2 03 00 9C 5E 00 90 00 6E [18:11:18]RAPDU: 90 00 [18:11:18]wFMCommunicate OK [18:11:18]wFMCommunicate request_size=47 [18:11:18]MH_SAM_APDU [18:11:18]CAPDU: 80 0D 02 02 2A 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F3 69 01 00 35 04 06 00 E2 3B E8 0C 61 30 [18:11:18]Write to MH i2c: E2 32 00 9D 5E 80 0D 02 02 2A 00 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F3 69 01 00 35 04 06 00 E2 3B E8 0C 61 30 00 00 32 [18:11:18]Write i2c OK [18:11:18]MH_I2C_Read... [18:11:18]Read from MH i2c: E2 [18:11:18]MH_I2C_Read... [18:11:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:18]Read from MH i2c: E2 03 00 [18:11:18]MH_I2C_Read... [18:11:18]Read from MH i2c: E2 03 00 9D 5E 00 90 00 6F [18:11:18]RAPDU: 90 00 [18:11:18]wFMCommunicate OK [18:11:18]wFMCommunicate request_size=4 [18:11:18]MH_SAM_APDU [18:11:18]CAPDU: 80 0D 03 02 [18:11:18]Write to MH i2c: E2 08 00 9E 5E 80 0D 03 02 00 00 00 00 77 [18:11:18]Write i2c OK [18:11:18]MH_I2C_Read... [18:11:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:11:18]Read from MH i2c: E2 [18:11:18]MH_I2C_Read... [18:11:18]Read from MH i2c: E2 0B 00 [18:11:18]MH_I2C_Read... [18:11:18]Read from MH i2c: E2 0B 00 9E 5E 00 46 95 40 59 54 DF 0A 8D 90 00 B6 [18:11:18]RAPDU: 46 95 40 59 54 DF 0A 8D 90 00 [18:11:18]wFMCommunicate OK [18:11:18]SAM_PROTO_SignData done [18:11:18]FM_MakeSignedData done [18:11:18]CreateOFDProtocolMessage [18:11:18]wFMCommunicate request_size=4 [18:11:18]MH_SAM_APDU [18:11:18]CAPDU: 80 11 00 00 [18:11:18]Write to MH i2c: E2 08 00 9F 5E 80 11 00 00 00 00 00 00 77 [18:11:19]Write i2c OK [18:11:19]MH_I2C_Read... [18:11:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:19]Read from MH i2c: E2 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: E2 17 00 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: E2 17 00 9F 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 CE [18:11:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [18:11:19]wFMCommunicate OK [18:11:19]CreateOFDProtocolMessage done [18:11:19]OFDSenderStorePacket 92659 [18:11:19]StoreOFDPacket docnum=92659 [18:11:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 34 01 00 00 9C 5D 2C 01 30 22 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 4F 23 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F3 69 01 00 35 04 06 00 E2 3B E8 0C 61 30 46 95 40 59 54 DF 0A 8D [18:11:19]CheckFolder [18:11:19]dirname=/storage/ofd_packets [18:11:19]CheckFolder done [18:11:19]ProducePacketName [18:11:19]name=ofd_packets/00092659 [18:11:19]NVStorageSaveData ofd_packets/00092659 [18:11:19]File name is /storage/ofd_packets/00092659 [18:11:19]Write 338 bytes [18:11:19]NVStorageSaveData done [18:11:19]OFDSenderStorePacket done [18:11:19]KKMCreateOFDPacket done [18:11:19]NVStorageSaveData kkm_last_timestamp [18:11:19]File name is /storage/kkm_last_timestamp [18:11:19]Write 4 bytes [18:11:19]NVStorageSaveData done [18:11:19]ExternCall_PrintAddStr [18:11:19]wPrintStart [18:11:19]Write to MH i2c: 01 00 00 A0 5E FE [18:11:19]Write i2c OK [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: 01 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: 01 07 00 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: 01 07 00 A0 5E 00 00 00 00 00 FF 0F 13 [18:11:19]RasterBufferAndPrint [18:11:19]line Счет N : (3)127548 [18:11:19]line ИНН: 02508201610067 [18:11:19]line Контрольно-Кассовый Чек [18:11:19]line ПРОДАЖА [18:11:19]line Товар: 4700000481453 [18:11:19]line Напиток энерг Nitro Max 0,45 ж/б [18:11:19]line 1.000 * 95.00 [18:11:19]line = 95.00 [18:11:19]line НДС 12% НСП 1% [18:11:19]line > о реализуемом товаре [18:11:19]line ИТОГО: 95.00 [18:11:19]line НСП 1% : 0.84 [18:11:19]line НДС 12% : 10.09 [18:11:19]line Наличными: 95.00 [18:11:19]line Безнал.: 0.00 [18:11:19]line Место: АЗС № 5 "Партнер Нефть" [18:11:19]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [18:11:19]line СНО: Общий режим [18:11:19]line Чек 107 15.09.2024 18:11 [18:11:19]line Смена: 507 ФФД: 1.0 [18:11:19]line ЗНМ: 03000000022 [18:11:19]line РНМ: 0000000000091423 [18:11:19]line Версия ККМ: 001 [18:11:19]line ФМ: 0000000000874692 [18:11:19]line ФД: 92659 [18:11:19]line ФПД: 248746924073264 [18:11:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T181127&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92659&fm=248746924073264&tin=02508201610067®Number=0000000000091423&sum=9500 [18:11:19]line 0 [18:11:19]written 0, free lines is 4095 [18:11:19]OFD Sender: Processing packet 92659 [packets to send 63, broken 62] [18:11:19]ProducePacketName [18:11:19]name=ofd_packets/00092659 [18:11:19]OFD Sender: To server: pG, [18:11:19]CommunicateWithHost lk.salyk.kg:30040 [18:11:19]ConnectInit lk.salyk.kg [18:11:19]Connected sock=10 [18:11:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 34 01 00 00 9C 5D 2C 01 30 22 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 4F 23 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F3 69 01 00 35 04 06 00 E2 3B E8 0C 61 30 46 95 40 59 54 DF 0A 8D [18:11:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 E2 84 47 00 83 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F3 69 01 00 F4 03 04 00 C6 CB E6 66 B6 04 01 00 00 5B A0 A7 09 8F 72 10 39 [18:11:19]CommunicateWithHost err = 0 [18:11:19]CheckOFDResponse [18:11:19]1017 (14) - 77093643461234 [18:11:19]1041 (16) - 0000000000874692 [18:11:19]1040 (4) - 92659 [18:11:19]1012 (4) - 15.09.2024 11:57 [18:11:19]1206 (1) - 0 [18:11:19]OFD Sender: Remove packet 92659 [18:11:19]ProducePacketName [18:11:19]name=ofd_packets/00092659 [18:11:19]NVStorageDeleteData [18:11:19]Write to MH i2c: 01 00 00 C9 5E 27 [18:11:19]Write i2c OK [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: 01 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: 01 07 00 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: 01 07 00 C9 5E 00 00 00 00 00 08 0D 43 [18:11:19]RasterBufferAndPrint [18:11:19]line [18:11:19]line [18:11:19]line [18:11:19]line [18:11:19]line [18:11:19]written 0, free lines is 3345 [18:11:19]MH_Cut [18:11:19]Write to MH i2c: D1 01 00 D0 5E 01 00 [18:11:19]Write i2c OK [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: D1 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: D1 01 00 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: D1 01 00 D0 5E 00 FF [18:11:19]Write to MH i2c: 01 00 00 D1 5E 2F [18:11:19]Write i2c OK [18:11:19]MH_I2C_Read... [18:11:20]OFD Sender: No OFD packet to send [18:11:20]*** Cut start [18:11:20]*** Purtial cut [18:11:20]*** Stage 1: CUTSNS_PIN = 1 [18:11:22]Read from MH i2c: 01 [18:11:22]MH_I2C_Read... [18:11:22]*** Stop cut motor [18:11:22]*** Cut end [18:11:22]Read from MH i2c: 01 07 00 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: 01 07 00 D1 5E 00 00 00 00 00 FF 0F 44 [18:11:22]process_action close_receipt done [18:11:22]requested_data is exist [18:11:22]produce_requested_data [18:11:22]requested_item fm.sn is exist - process it [18:11:22]wFMCommunicate request_size=4 [18:11:22]MH_SAM_APDU [18:11:22]CAPDU: 80 11 00 00 [18:11:22]Write to MH i2c: E2 08 00 D2 5E 80 11 00 00 00 00 00 00 AA [18:11:22]Write i2c OK [18:11:22]MH_I2C_Read... [18:11:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:22]Read from MH i2c: E2 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 17 00 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 17 00 D2 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 01 [18:11:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [18:11:22]wFMCommunicate OK [18:11:22]requested_item fd.num is exist - process it [18:11:22]SAM_PROTO_GetFieldsCounters [18:11:22]wFMCommunicate request_size=4 [18:11:22]MH_SAM_APDU [18:11:22]CAPDU: 80 13 00 00 [18:11:22]Write to MH i2c: E2 08 00 D3 5E 80 13 00 00 00 00 00 00 AD [18:11:22]Write i2c OK [18:11:22]MH_I2C_Read... [18:11:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:11:22]Read from MH i2c: E2 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 62 00 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 62 00 D3 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F3 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [18:11:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F3 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:11:22]wFMCommunicate OK [18:11:22]SAM_PROTO_GetFieldsCounters done [18:11:22]requested_item shift.num is exist - process it [18:11:22]requested_item shift.opened is exist - process it [18:11:22]req_shift_opened [18:11:22]FM_GetShiftState [18:11:22]SAM_PROTO_GetShiftState [18:11:22]wFMCommunicate request_size=4 [18:11:22]MH_SAM_APDU [18:11:22]CAPDU: 80 13 01 00 [18:11:22]Write to MH i2c: E2 08 00 D4 5E 80 13 01 00 00 00 00 00 AF [18:11:22]Write i2c OK [18:11:22]MH_I2C_Read... [18:11:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:22]Read from MH i2c: E2 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 0E 00 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 0E 00 D4 5E 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 31 [18:11:22]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [18:11:22]wFMCommunicate OK [18:11:22]SAM_PROTO_GetShiftState done [18:11:22]FM_GetShiftState done [18:11:22]req_shift_opened done [18:11:22]requested_item shift.open_date is exist - process it [18:11:22]req_shift_open_date [18:11:22]req_shift_open_date done [18:11:22]produce_requested_data done [18:11:22]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92659,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [18:11:22]process_action_free close_receipt [18:11:22]json_value_free [18:11:22]json_value_free done [18:11:22]process_json_proto returns [18:11:22]Send response to host [18:11:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92659,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [18:11:22]free response buf [18:11:22]execute_script done [18:11:22]execute_script returns [18:11:22]free content buf [18:11:22]Sock 8.Close socket [18:11:22]Sock 8.Thread stoped [18:11:25]OFD Sender: No OFD packet to send [18:11:30]OFD Sender: No OFD packet to send [18:11:35]OFD Sender: No OFD packet to send [18:11:40]OFD Sender: No OFD packet to send [18:11:45]OFD Sender: No OFD packet to send [18:11:50]OFD Sender: No OFD packet to send [18:11:55]OFD Sender: No OFD packet to send [18:12:00]OFD Sender: No OFD packet to send [18:12:05]OFD Sender: No OFD packet to send [18:12:10]OFD Sender: No OFD packet to send [18:12:15]OFD Sender: No OFD packet to send [18:12:20]OFD Sender: No OFD packet to send [18:12:25]OFD Sender: No OFD packet to send [18:12:30]OFD Sender: No OFD packet to send [18:12:35]OFD Sender: No OFD packet to send [18:12:40]OFD Sender: No OFD packet to send [18:12:45]OFD Sender: No OFD packet to send [18:12:50]OFD Sender: No OFD packet to send [18:12:55]OFD Sender: No OFD packet to send [18:13:00]OFD Sender: No OFD packet to send [18:13:05]OFD Sender: No OFD packet to send [18:13:10]OFD Sender: No OFD packet to send [18:13:15]OFD Sender: No OFD packet to send [18:13:20]OFD Sender: No OFD packet to send [18:13:25]OFD Sender: No OFD packet to send [18:13:30]OFD Sender: No OFD packet to send [18:13:35]OFD Sender: No OFD packet to send [18:13:40]OFD Sender: No OFD packet to send [18:13:45]OFD Sender: No OFD packet to send [18:13:50]OFD Sender: No OFD packet to send [18:13:55]OFD Sender: No OFD packet to send [18:14:00]OFD Sender: No OFD packet to send [18:14:05]OFD Sender: No OFD packet to send [18:14:10]OFD Sender: No OFD packet to send [18:14:15]OFD Sender: No OFD packet to send [18:14:20]OFD Sender: No OFD packet to send [18:14:25]OFD Sender: No OFD packet to send [18:14:30]OFD Sender: No OFD packet to send [18:14:35]OFD Sender: No OFD packet to send [18:14:40]OFD Sender: No OFD packet to send [18:14:45]OFD Sender: No OFD packet to send [18:14:50]OFD Sender: No OFD packet to send [18:14:55]OFD Sender: No OFD packet to send [18:15:00]OFD Sender: No OFD packet to send [18:15:05]OFD Sender: No OFD packet to send [18:15:10]OFD Sender: No OFD packet to send [18:15:15]OFD Sender: No OFD packet to send [18:15:20]OFD Sender: No OFD packet to send [18:15:25]OFD Sender: No OFD packet to send [18:15:30]OFD Sender: No OFD packet to send [18:15:35]OFD Sender: No OFD packet to send [18:15:40]OFD Sender: No OFD packet to send [18:15:45]OFD Sender: No OFD packet to send [18:15:50]OFD Sender: No OFD packet to send [18:15:55]OFD Sender: No OFD packet to send [18:16:00]OFD Sender: No OFD packet to send [18:16:05]OFD Sender: No OFD packet to send [18:16:10]OFD Sender: No OFD packet to send [18:16:15]OFD Sender: No OFD packet to send [18:16:20]OFD Sender: No OFD packet to send [18:16:25]OFD Sender: No OFD packet to send [18:16:30]OFD Sender: No OFD packet to send [18:16:35]OFD Sender: No OFD packet to send [18:16:40]OFD Sender: No OFD packet to send [18:16:45]OFD Sender: No OFD packet to send [18:16:50]OFD Sender: No OFD packet to send [18:16:55]OFD Sender: No OFD packet to send [18:17:00]OFD Sender: No OFD packet to send [18:17:05]OFD Sender: No OFD packet to send [18:17:10]OFD Sender: No OFD packet to send [18:17:15]OFD Sender: No OFD packet to send [18:17:16]accept exits with 9 [18:17:16]New connection [18:17:16]New thread 3066658148 created [18:17:16]Thread 3066801508 joined [18:17:16]Waiting for new connection... [18:17:16] Sock 9.Parse request [18:17:16]Sock 9.Check first char [18:17:16]Sock 9.First char is OK [18:17:16]request: POST /json_proto HTTP/1.0 [18:17:16]Method: POST [18:17:16]URL: /json_proto [18:17:16]Method is POST - this is cgi request [18:17:16]url: /json_proto [18:17:16]query_string will be loaded in cgi processing [18:17:16]execute_cgi json_proto POST (null) [18:17:16]execute_cgi path=json_proto method=POST [18:17:16]POST find Content-Length [18:17:16]Host: 172.17.57.71:8080 [18:17:16]Content-Length: 668 [18:17:16]Content-Type: application/json [18:17:16] [18:17:16]POST finish read [18:17:16]Found Content-Length = 668 [18:17:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127549", "tax_sys" : 0, "items" : [ { "code": "4700040110900", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u0423\u043C\u0443\u0442 \u0421\u043C\u0430\u043A 80\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:16]execute_script... [18:17:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127549", "tax_sys" : 0, "items" : [ { "code": "4700040110900", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u0423\u043C\u0443\u0442 \u0421\u043C\u0430\u043A 80\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:16]POST & json_proto [18:17:16]process_json_proto [18:17:16]json parsed OK: [18:17:16]protocol is kg_v1.0 [18:17:16]action value=close_receipt [18:17:16]process_action close_receipt [18:17:16]cmd_close_receipt [18:17:16]MH_GetDate [18:17:16]Write to MH i2c: F0 00 00 D5 5E 22 [18:17:16]Write i2c OK [18:17:16]MH_I2C_Read... [18:17:16]Read from MH i2c: F0 [18:17:16]MH_I2C_Read... [18:17:16]Read from MH i2c: F0 09 00 [18:17:16]MH_I2C_Read... [18:17:16]Read from MH i2c: F0 09 00 D5 5E 00 B5 24 E7 66 33 3A A4 66 C8 [18:17:16]GetLastDocTimeStamp 1726423887 [18:17:16]current date 1726424245 [18:17:16]FM_GetShiftState [18:17:16]SAM_PROTO_GetShiftState [18:17:16]wFMCommunicate request_size=4 [18:17:16]MH_SAM_APDU [18:17:16]CAPDU: 80 13 01 00 [18:17:16]Write to MH i2c: E2 08 00 D6 5E 80 13 01 00 00 00 00 00 B1 [18:17:16]Write i2c OK [18:17:16]MH_I2C_Read... [18:17:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:16]Read from MH i2c: E2 [18:17:16]MH_I2C_Read... [18:17:16]Read from MH i2c: E2 0E 00 [18:17:16]MH_I2C_Read... [18:17:16]Read from MH i2c: E2 0E 00 D6 5E 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 33 [18:17:16]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [18:17:16]wFMCommunicate OK [18:17:16]SAM_PROTO_GetShiftState done [18:17:16]FM_GetShiftState done [18:17:16]opened in 1726359809 [18:17:16]opened+sec_in_day 1726446209 [18:17:16]quantity*price = 4000 [18:17:16]sum+1 = 4001 [18:17:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 108 15.09.2024 18:17 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92660 ФПД: 75127959022251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T181726&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92660&fm=75127959022251&tin=02508201610067®Number=0000000000091423&sum=4000 0 [18:17:17]StoreToDocumentArchive [18:17:17]shift 507 fd 92660 [18:17:17]save to /storage/0507/doc_00092660 [18:17:17]save last doc name /storage/0507/doc_00092660 to /storage/kkm_last_doc_name [18:17:17]save OK [18:17:17]Clear old archive folders... [18:17:17]ProcessDocumentItem done err = 0, tmpTLVsize=283 [18:17:17]tlvbuf is 010D69F0 [18:17:17]SAM_PROTO_ClearQueue [18:17:17]wFMCommunicate request_size=4 [18:17:17]MH_SAM_APDU [18:17:17]CAPDU: 80 09 00 00 [18:17:17]Write to MH i2c: E2 08 00 E3 5E 80 09 00 00 00 00 00 00 B3 [18:17:17]Write i2c OK [18:17:17]MH_I2C_Read... [18:17:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:17:17]Read from MH i2c: E2 [18:17:17]MH_I2C_Read... [18:17:17]Read from MH i2c: E2 03 00 [18:17:17]MH_I2C_Read... [18:17:17]Read from MH i2c: E2 03 00 E3 5E 00 90 00 B5 [18:17:17]RAPDU: 90 00 [18:17:17]wFMCommunicate OK [18:17:17]SAM_PROTO_ClearQueue done [18:17:17]KKMCreateOFDPacket [18:17:17]OFDProtocolAddRootSTLVToBuf [18:17:17]FM_MakeSignedData [18:17:17]FM_MakeSignedData [18:17:17]SAM_PROTO_SignData [18:17:17]wFMCommunicate request_size=4 [18:17:17]MH_SAM_APDU [18:17:17]CAPDU: 80 0D 01 02 [18:17:17]Write to MH i2c: E2 08 00 E4 5E 80 0D 01 02 00 00 00 00 BB [18:17:17]Write i2c OK [18:17:17]MH_I2C_Read... [18:17:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:17:17]Read from MH i2c: E2 [18:17:17]MH_I2C_Read... [18:17:17]Read from MH i2c: E2 03 00 [18:17:17]MH_I2C_Read... [18:17:17]Read from MH i2c: E2 03 00 E4 5E 00 90 00 B6 [18:17:17]RAPDU: 90 00 [18:17:17]wFMCommunicate OK [18:17:17]wFMCommunicate request_size=255 [18:17:17]MH_SAM_APDU [18:17:17]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 30 39 30 30 06 04 29 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 A3 D0 BC D1 83 D1 82 20 D0 A1 D0 BC D0 B0 D0 BA 20 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 B6 24 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 [18:17:17]Write to MH i2c: E2 02 01 E5 5E 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 30 39 30 30 06 04 29 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 A3 D0 BC D1 83 D1 82 20 D0 A1 D0 BC D0 B0 D0 BA 20 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 B6 24 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 00 00 30 [18:17:17]Write i2c OK [18:17:17]MH_I2C_Read... [18:17:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:17]Read from MH i2c: E2 [18:17:17]MH_I2C_Read... [18:17:17]Read from MH i2c: E2 03 00 [18:17:17]MH_I2C_Read... [18:17:17]Read from MH i2c: E2 03 00 E5 5E 00 90 00 B7 [18:17:17]RAPDU: 90 00 [18:17:17]wFMCommunicate OK [18:17:17]wFMCommunicate request_size=42 [18:17:17]MH_SAM_APDU [18:17:17]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F4 69 01 00 35 04 06 00 44 54 17 4F 6A AB [18:17:17]Write to MH i2c: E2 2D 00 E6 5E 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F4 69 01 00 35 04 06 00 44 54 17 4F 6A AB 00 00 08 [18:17:17]Write i2c OK [18:17:17]MH_I2C_Read... [18:17:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:17]Read from MH i2c: E2 [18:17:17]MH_I2C_Read... [18:17:17]Read from MH i2c: E2 03 00 [18:17:17]MH_I2C_Read... [18:17:17]Read from MH i2c: E2 03 00 E6 5E 00 90 00 B8 [18:17:17]RAPDU: 90 00 [18:17:17]wFMCommunicate OK [18:17:17]wFMCommunicate request_size=4 [18:17:17]MH_SAM_APDU [18:17:17]CAPDU: 80 0D 03 02 [18:17:17]Write to MH i2c: E2 08 00 E7 5E 80 0D 03 02 00 00 00 00 C0 [18:17:17]Write i2c OK [18:17:17]MH_I2C_Read... [18:17:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:17:17]Read from MH i2c: E2 [18:17:17]MH_I2C_Read... [18:17:17]Read from MH i2c: E2 0B 00 [18:17:17]MH_I2C_Read... [18:17:17]Read from MH i2c: E2 0B 00 E7 5E 00 6E 3B 87 46 7A CB 1D 14 90 00 AD [18:17:17]RAPDU: 6E 3B 87 46 7A CB 1D 14 90 00 [18:17:17]wFMCommunicate OK [18:17:17]SAM_PROTO_SignData done [18:17:17]FM_MakeSignedData done [18:17:17]CreateOFDProtocolMessage [18:17:17]wFMCommunicate request_size=4 [18:17:17]MH_SAM_APDU [18:17:17]CAPDU: 80 11 00 00 [18:17:17]Write to MH i2c: E2 08 00 E8 5E 80 11 00 00 00 00 00 00 C0 [18:17:17]Write i2c OK [18:17:17]MH_I2C_Read... [18:17:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:17]Read from MH i2c: E2 [18:17:17]MH_I2C_Read... [18:17:17]Read from MH i2c: E2 17 00 [18:17:17]MH_I2C_Read... [18:17:17]Read from MH i2c: E2 17 00 E8 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 17 [18:17:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [18:17:17]wFMCommunicate OK [18:17:17]CreateOFDProtocolMessage done [18:17:17]OFDSenderStorePacket 92660 [18:17:17]StoreOFDPacket docnum=92660 [18:17:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2F 01 00 00 E3 17 27 01 29 A7 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 30 39 30 30 06 04 29 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 A3 D0 BC D1 83 D1 82 20 D0 A1 D0 BC D0 B0 D0 BA 20 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 B6 24 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F4 69 01 00 35 04 06 00 44 54 17 4F 6A AB 6E 3B 87 46 7A CB 1D 14 [18:17:17]CheckFolder [18:17:17]dirname=/storage/ofd_packets [18:17:17]CheckFolder done [18:17:17]ProducePacketName [18:17:17]name=ofd_packets/00092660 [18:17:17]NVStorageSaveData ofd_packets/00092660 [18:17:17]File name is /storage/ofd_packets/00092660 [18:17:17]Write 333 bytes [18:17:17]NVStorageSaveData done [18:17:17]OFDSenderStorePacket done [18:17:17]KKMCreateOFDPacket done [18:17:17]NVStorageSaveData kkm_last_timestamp [18:17:17]File name is /storage/kkm_last_timestamp [18:17:17]Write 4 bytes [18:17:17]NVStorageSaveData done [18:17:17]ExternCall_PrintAddStr [18:17:17]wPrintStart [18:17:17]Write to MH i2c: 01 00 00 E9 5E 47 [18:17:17]Write i2c OK [18:17:17]MH_I2C_Read... [18:17:17]Read from MH i2c: 01 [18:17:17]MH_I2C_Read... [18:17:17]Read from MH i2c: 01 07 00 [18:17:17]MH_I2C_Read... [18:17:17]Read from MH i2c: 01 07 00 E9 5E 00 00 00 00 00 FF 0F 5C [18:17:17]RasterBufferAndPrint [18:17:17]line Счет N : (3)127549 [18:17:17]line ИНН: 02508201610067 [18:17:17]line Контрольно-Кассовый Чек [18:17:17]line ПРОДАЖА [18:17:17]line Товар: 4700040110900 [18:17:17]line Мороженое Умут Смак 80г [18:17:17]line 1.000 * 40.00 [18:17:17]line = 40.00 [18:17:17]line НДС 12% НСП 1% [18:17:17]line > о реализуемом товаре [18:17:17]line ИТОГО: 40.00 [18:17:17]line НСП 1% : 0.35 [18:17:17]line НДС 12% : 4.25 [18:17:17]line Наличными: 40.00 [18:17:17]line Безнал.: 0.00 [18:17:17]line Место: АЗС № 5 "Партнер Нефть" [18:17:17]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [18:17:17]line СНО: Общий режим [18:17:17]line Чек 108 15.09.2024 18:17 [18:17:17]line Смена: 507 ФФД: 1.0 [18:17:17]line ЗНМ: 03000000022 [18:17:17]line РНМ: 0000000000091423 [18:17:17]line Версия ККМ: 001 [18:17:17]line ФМ: 0000000000874692 [18:17:17]line ФД: 92660 [18:17:17]line ФПД: 75127959022251 [18:17:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T181726&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92660&fm=75127959022251&tin=02508201610067®Number=0000000000091423&sum=4000 [18:17:18]OFD Sender: Processing packet 92660 [packets to send 63, broken 62] [18:17:18]ProducePacketName [18:17:18]name=ofd_packets/00092660 [18:17:18]OFD Sender: To server: pG, [18:17:18]CommunicateWithHost lk.salyk.kg:30040 [18:17:18]ConnectInit lk.salyk.kg [18:17:18]line 0 [18:17:18]written 0, free lines is 4095 [18:17:18]Connected sock=10 [18:17:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2F 01 00 00 E3 17 27 01 29 A7 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 30 39 30 30 06 04 29 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 A3 D0 BC D1 83 D1 82 20 D0 A1 D0 BC D0 B0 D0 BA 20 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 B6 24 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F4 69 01 00 35 04 06 00 44 54 17 4F 6A AB 6E 3B 87 46 7A CB 1D 14 [18:17:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 C0 17 47 00 3E EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F4 69 01 00 F4 03 04 00 2D CD E6 66 B6 04 01 00 00 19 0B 91 A0 BA F4 FF 99 [18:17:18]CommunicateWithHost err = 0 [18:17:18]CheckOFDResponse [18:17:18]1017 (14) - 77093643461234 [18:17:18]1041 (16) - 0000000000874692 [18:17:18]1040 (4) - 92660 [18:17:18]1012 (4) - 15.09.2024 12:03 [18:17:18]1206 (1) - 0 [18:17:18]OFD Sender: Remove packet 92660 [18:17:18]ProducePacketName [18:17:18]name=ofd_packets/00092660 [18:17:18]NVStorageDeleteData [18:17:18]Write to MH i2c: 01 00 00 11 5F 70 [18:17:18]Write i2c OK [18:17:18]MH_I2C_Read... [18:17:18]Read from MH i2c: 01 [18:17:18]MH_I2C_Read... [18:17:18]Read from MH i2c: 01 07 00 [18:17:18]MH_I2C_Read... [18:17:18]Read from MH i2c: 01 07 00 11 5F 00 00 00 00 00 21 0D A5 [18:17:18]RasterBufferAndPrint [18:17:18]line [18:17:18]line [18:17:18]line [18:17:18]line [18:17:18]line [18:17:18]written 0, free lines is 3368 [18:17:18]MH_Cut [18:17:18]Write to MH i2c: D1 01 00 18 5F 01 49 [18:17:18]Write i2c OK [18:17:18]MH_I2C_Read... [18:17:18]Read from MH i2c: D1 [18:17:18]MH_I2C_Read... [18:17:18]Read from MH i2c: D1 01 00 [18:17:18]MH_I2C_Read... [18:17:18]Read from MH i2c: D1 01 00 18 5F 00 48 [18:17:18]Write to MH i2c: 01 00 00 19 5F 78 [18:17:18]Write i2c OK [18:17:18]MH_I2C_Read... [18:17:19]OFD Sender: No OFD packet to send [18:17:19]*** Cut start [18:17:19]*** Purtial cut [18:17:19]*** Stage 1: CUTSNS_PIN = 1 [18:17:21]Read from MH i2c: 01 [18:17:21]MH_I2C_Read... [18:17:21]*** Stop cut motor [18:17:21]*** Cut end [18:17:21]Read from MH i2c: 01 07 00 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: 01 07 00 19 5F 00 00 00 00 00 FF 0F 8D [18:17:21]process_action close_receipt done [18:17:21]requested_data is exist [18:17:21]produce_requested_data [18:17:21]requested_item fm.sn is exist - process it [18:17:21]wFMCommunicate request_size=4 [18:17:21]MH_SAM_APDU [18:17:21]CAPDU: 80 11 00 00 [18:17:21]Write to MH i2c: E2 08 00 1A 5F 80 11 00 00 00 00 00 00 F3 [18:17:21]Write i2c OK [18:17:21]MH_I2C_Read... [18:17:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:21]Read from MH i2c: E2 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 17 00 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 17 00 1A 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 4A [18:17:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [18:17:21]wFMCommunicate OK [18:17:21]requested_item fd.num is exist - process it [18:17:21]SAM_PROTO_GetFieldsCounters [18:17:21]wFMCommunicate request_size=4 [18:17:21]MH_SAM_APDU [18:17:21]CAPDU: 80 13 00 00 [18:17:21]Write to MH i2c: E2 08 00 1B 5F 80 13 00 00 00 00 00 00 F6 [18:17:21]Write i2c OK [18:17:21]MH_I2C_Read... [18:17:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:17:21]Read from MH i2c: E2 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 62 00 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 62 00 1B 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F4 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [18:17:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F4 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:17:21]wFMCommunicate OK [18:17:21]SAM_PROTO_GetFieldsCounters done [18:17:21]requested_item shift.num is exist - process it [18:17:21]requested_item shift.opened is exist - process it [18:17:21]req_shift_opened [18:17:21]FM_GetShiftState [18:17:21]SAM_PROTO_GetShiftState [18:17:21]wFMCommunicate request_size=4 [18:17:21]MH_SAM_APDU [18:17:21]CAPDU: 80 13 01 00 [18:17:21]Write to MH i2c: E2 08 00 1C 5F 80 13 01 00 00 00 00 00 F8 [18:17:21]Write i2c OK [18:17:21]MH_I2C_Read... [18:17:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:21]Read from MH i2c: E2 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 0E 00 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 0E 00 1C 5F 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 7A [18:17:21]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [18:17:21]wFMCommunicate OK [18:17:21]SAM_PROTO_GetShiftState done [18:17:21]FM_GetShiftState done [18:17:21]req_shift_opened done [18:17:21]requested_item shift.open_date is exist - process it [18:17:21]req_shift_open_date [18:17:21]req_shift_open_date done [18:17:21]produce_requested_data done [18:17:21]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92660,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [18:17:21]process_action_free close_receipt [18:17:21]json_value_free [18:17:21]json_value_free done [18:17:21]process_json_proto returns [18:17:21]Send response to host [18:17:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92660,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [18:17:21]free response buf [18:17:21]execute_script done [18:17:21]execute_script returns [18:17:21]free content buf [18:17:21]Sock 9.Close socket [18:17:21]Sock 9.Thread stoped [18:17:24]OFD Sender: No OFD packet to send [18:17:29]OFD Sender: No OFD packet to send [18:17:34]OFD Sender: No OFD packet to send [18:17:39]OFD Sender: No OFD packet to send [18:17:44]OFD Sender: No OFD packet to send [18:17:49]OFD Sender: No OFD packet to send [18:17:54]OFD Sender: No OFD packet to send [18:17:59]OFD Sender: No OFD packet to send [18:18:04]OFD Sender: No OFD packet to send [18:18:09]OFD Sender: No OFD packet to send [18:18:14]OFD Sender: No OFD packet to send [18:18:19]OFD Sender: No OFD packet to send [18:18:23]accept exits with 8 [18:18:23]New connection [18:18:23]New thread 3066801508 created [18:18:23]Thread 3066658148 joined [18:18:23]Waiting for new connection... [18:18:23] Sock 8.Parse request [18:18:23]Sock 8.Check first char [18:18:23]Sock 8.First char is OK [18:18:23]request: POST /json_proto HTTP/1.0 [18:18:23]Method: POST [18:18:23]URL: /json_proto [18:18:23]Method is POST - this is cgi request [18:18:23]url: /json_proto [18:18:23]query_string will be loaded in cgi processing [18:18:23]execute_cgi json_proto POST (null) [18:18:23]execute_cgi path=json_proto method=POST [18:18:23]POST find Content-Length [18:18:23]Host: 172.17.57.71:8080 [18:18:23]Content-Length: 616 [18:18:23]Content-Type: application/json [18:18:23] [18:18:23]POST finish read [18:18:23]Found Content-Length = 616 [18:18:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127550", "tax_sys" : 0, "items" : [ { "code": "48741200", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:23]execute_script... [18:18:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127550", "tax_sys" : 0, "items" : [ { "code": "48741200", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:23]POST & json_proto [18:18:23]process_json_proto [18:18:23]json parsed OK: [18:18:23]protocol is kg_v1.0 [18:18:23]action value=close_receipt [18:18:23]process_action close_receipt [18:18:23]cmd_close_receipt [18:18:23]MH_GetDate [18:18:23]Write to MH i2c: F0 00 00 1D 5F 6B [18:18:23]Write i2c OK [18:18:23]MH_I2C_Read... [18:18:23]Read from MH i2c: F0 [18:18:23]MH_I2C_Read... [18:18:23]Read from MH i2c: F0 09 00 [18:18:23]MH_I2C_Read... [18:18:23]Read from MH i2c: F0 09 00 1D 5F 00 F9 24 E7 66 33 3A A4 66 55 [18:18:23]GetLastDocTimeStamp 1726424246 [18:18:23]current date 1726424313 [18:18:23]FM_GetShiftState [18:18:23]SAM_PROTO_GetShiftState [18:18:23]wFMCommunicate request_size=4 [18:18:23]MH_SAM_APDU [18:18:23]CAPDU: 80 13 01 00 [18:18:23]Write to MH i2c: E2 08 00 1E 5F 80 13 01 00 00 00 00 00 FA [18:18:23]Write i2c OK [18:18:23]MH_I2C_Read... [18:18:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:23]Read from MH i2c: E2 [18:18:23]MH_I2C_Read... [18:18:23]Read from MH i2c: E2 0E 00 [18:18:23]MH_I2C_Read... [18:18:23]Read from MH i2c: E2 0E 00 1E 5F 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 7C [18:18:23]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [18:18:23]wFMCommunicate OK [18:18:23]SAM_PROTO_GetShiftState done [18:18:23]FM_GetShiftState done [18:18:23]opened in 1726359809 [18:18:23]opened+sec_in_day 1726446209 [18:18:23]quantity*price = 14000 [18:18:23]sum+1 = 14001 [18:18:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 109 15.09.2024 18:18 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92661 ФПД: 118679969001324 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T181833&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92661&fm=118679969001324&tin=02508201610067®Number=0000000000091423&sum=14000 0 [18:18:24]StoreToDocumentArchive [18:18:24]shift 507 fd 92661 [18:18:24]save to /storage/0507/doc_00092661 [18:18:24]save last doc name /storage/0507/doc_00092661 to /storage/kkm_last_doc_name [18:18:24]save OK [18:18:24]Clear old archive folders... [18:18:24]ProcessDocumentItem done err = 0, tmpTLVsize=268 [18:18:24]tlvbuf is 01080830 [18:18:24]SAM_PROTO_ClearQueue [18:18:24]wFMCommunicate request_size=4 [18:18:24]MH_SAM_APDU [18:18:24]CAPDU: 80 09 00 00 [18:18:24]Write to MH i2c: E2 08 00 2B 5F 80 09 00 00 00 00 00 00 FC [18:18:24]Write i2c OK [18:18:24]MH_I2C_Read... [18:18:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:18:24]Read from MH i2c: E2 [18:18:24]MH_I2C_Read... [18:18:24]Read from MH i2c: E2 03 00 [18:18:24]MH_I2C_Read... [18:18:24]Read from MH i2c: E2 03 00 2B 5F 00 90 00 FE [18:18:24]RAPDU: 90 00 [18:18:24]wFMCommunicate OK [18:18:24]SAM_PROTO_ClearQueue done [18:18:24]KKMCreateOFDPacket [18:18:24]OFDProtocolAddRootSTLVToBuf [18:18:24]FM_MakeSignedData [18:18:24]FM_MakeSignedData [18:18:24]SAM_PROTO_SignData [18:18:24]wFMCommunicate request_size=4 [18:18:24]MH_SAM_APDU [18:18:24]CAPDU: 80 0D 01 02 [18:18:24]Write to MH i2c: E2 08 00 2C 5F 80 0D 01 02 00 00 00 00 04 [18:18:24]Write i2c OK [18:18:24]MH_I2C_Read... [18:18:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:18:24]Read from MH i2c: E2 [18:18:24]MH_I2C_Read... [18:18:24]Read from MH i2c: E2 03 00 [18:18:24]MH_I2C_Read... [18:18:24]Read from MH i2c: E2 03 00 2C 5F 00 90 00 FF [18:18:24]RAPDU: 90 00 [18:18:24]wFMCommunicate OK [18:18:24]wFMCommunicate request_size=255 [18:18:24]MH_SAM_APDU [18:18:24]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 38 37 34 31 32 30 30 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 F9 24 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [18:18:24]Write to MH i2c: E2 02 01 2D 5F 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 38 37 34 31 32 30 30 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 F9 24 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 0E [18:18:24]Write i2c OK [18:18:24]MH_I2C_Read... [18:18:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:24]Read from MH i2c: E2 [18:18:24]MH_I2C_Read... [18:18:24]Read from MH i2c: E2 03 00 [18:18:24]MH_I2C_Read... [18:18:24]Read from MH i2c: E2 03 00 2D 5F 00 90 00 00 [18:18:24]RAPDU: 90 00 [18:18:24]wFMCommunicate OK [18:18:24]wFMCommunicate request_size=27 [18:18:24]MH_SAM_APDU [18:18:24]CAPDU: 80 0D 02 02 16 34 36 39 32 10 04 04 00 F5 69 01 00 35 04 06 00 6B F0 55 64 EF 6C [18:18:24]Write to MH i2c: E2 1E 00 2E 5F 80 0D 02 02 16 00 34 36 39 32 10 04 04 00 F5 69 01 00 35 04 06 00 6B F0 55 64 EF 6C 00 00 2D [18:18:24]Write i2c OK [18:18:24]MH_I2C_Read... [18:18:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:24]Read from MH i2c: E2 [18:18:24]MH_I2C_Read... [18:18:24]Read from MH i2c: E2 03 00 [18:18:24]MH_I2C_Read... [18:18:24]Read from MH i2c: E2 03 00 2E 5F 00 90 00 01 [18:18:24]RAPDU: 90 00 [18:18:24]wFMCommunicate OK [18:18:24]wFMCommunicate request_size=4 [18:18:24]MH_SAM_APDU [18:18:24]CAPDU: 80 0D 03 02 [18:18:24]Write to MH i2c: E2 08 00 2F 5F 80 0D 03 02 00 00 00 00 09 [18:18:24]Write i2c OK [18:18:24]MH_I2C_Read... [18:18:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:18:24]Read from MH i2c: E2 [18:18:24]MH_I2C_Read... [18:18:24]Read from MH i2c: E2 0B 00 [18:18:24]MH_I2C_Read... [18:18:24]Read from MH i2c: E2 0B 00 2F 5F 00 01 70 EF F5 52 FD 5A F9 90 00 01 [18:18:24]RAPDU: 01 70 EF F5 52 FD 5A F9 90 00 [18:18:24]wFMCommunicate OK [18:18:24]SAM_PROTO_SignData done [18:18:24]FM_MakeSignedData done [18:18:24]CreateOFDProtocolMessage [18:18:24]wFMCommunicate request_size=4 [18:18:24]MH_SAM_APDU [18:18:24]CAPDU: 80 11 00 00 [18:18:24]Write to MH i2c: E2 08 00 30 5F 80 11 00 00 00 00 00 00 09 [18:18:24]Write i2c OK [18:18:24]MH_I2C_Read... [18:18:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:24]Read from MH i2c: E2 [18:18:24]MH_I2C_Read... [18:18:24]Read from MH i2c: E2 17 00 [18:18:24]MH_I2C_Read... [18:18:24]Read from MH i2c: E2 17 00 30 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 60 [18:18:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [18:18:24]wFMCommunicate OK [18:18:24]CreateOFDProtocolMessage done [18:18:24]OFDSenderStorePacket 92661 [18:18:24]StoreOFDPacket docnum=92661 [18:18:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 20 01 00 00 81 F2 18 01 BA D3 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 38 37 34 31 32 30 30 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 F9 24 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F5 69 01 00 35 04 06 00 6B F0 55 64 EF 6C 01 70 EF F5 52 FD 5A F9 [18:18:24]CheckFolder [18:18:24]dirname=/storage/ofd_packets [18:18:24]CheckFolder done [18:18:24]ProducePacketName [18:18:24]name=ofd_packets/00092661 [18:18:24]NVStorageSaveData ofd_packets/00092661 [18:18:24]File name is /storage/ofd_packets/00092661 [18:18:24]Write 318 bytes [18:18:24]NVStorageSaveData done [18:18:24]OFDSenderStorePacket done [18:18:24]KKMCreateOFDPacket done [18:18:24]NVStorageSaveData kkm_last_timestamp [18:18:24]File name is /storage/kkm_last_timestamp [18:18:24]Write 4 bytes [18:18:24]NVStorageSaveData done [18:18:24]ExternCall_PrintAddStr [18:18:24]wPrintStart [18:18:24]Write to MH i2c: 01 00 00 31 5F 90 [18:18:24]Write i2c OK [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: 01 [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: 01 07 00 [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: 01 07 00 31 5F 00 00 00 00 00 FF 0F A5 [18:18:25]RasterBufferAndPrint [18:18:25]line Счет N : (3)127550 [18:18:25]line ИНН: 02508201610067 [18:18:25]line Контрольно-Кассовый Чек [18:18:25]line ПРОДАЖА [18:18:25]line Товар: 48741200 [18:18:25]line Сигареты Winston Silver [18:18:25]line 1.000 * 140.00 [18:18:25]line = 140.00 [18:18:25]line НДС 12% НСП 1% [18:18:25]line > о реализуемом товаре [18:18:25]line ИТОГО: 140.00 [18:18:25]line НСП 1% : 1.24 [18:18:25]line НДС 12% : 14.87 [18:18:25]line Наличными: 140.00 [18:18:25]line Безнал.: 0.00 [18:18:25]line Место: АЗС № 5 "Партнер Нефть" [18:18:25]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [18:18:25]line СНО: Общий режим [18:18:25]line Чек 109 15.09.2024 18:18 [18:18:25]line Смена: 507 ФФД: 1.0 [18:18:25]line ЗНМ: 03000000022 [18:18:25]line РНМ: 0000000000091423 [18:18:25]line Версия ККМ: 001 [18:18:25]line ФМ: 0000000000874692 [18:18:25]line ФД: 92661 [18:18:25]line ФПД: 118679969001324 [18:18:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T181833&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92661&fm=118679969001324&tin=02508201610067®Number=0000000000091423&sum=14000 [18:18:25]OFD Sender: Processing packet 92661 [packets to send 63, broken 62] [18:18:25]ProducePacketName [18:18:25]name=ofd_packets/00092661 [18:18:25]OFD Sender: To server: pG, [18:18:25]CommunicateWithHost lk.salyk.kg:30040 [18:18:25]ConnectInit lk.salyk.kg [18:18:25]line 0 [18:18:25]written 0, free lines is 4095 [18:18:25]Connected sock=10 [18:18:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 20 01 00 00 81 F2 18 01 BA D3 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 38 37 34 31 32 30 30 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 F9 24 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F5 69 01 00 35 04 06 00 6B F0 55 64 EF 6C 01 70 EF F5 52 FD 5A F9 [18:18:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 11 E2 47 00 11 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F5 69 01 00 F4 03 04 00 70 CD E6 66 B6 04 01 00 00 3D F8 DE 70 E4 19 85 2B [18:18:25]CommunicateWithHost err = 0 [18:18:25]CheckOFDResponse [18:18:25]1017 (14) - 77093643461234 [18:18:25]1041 (16) - 0000000000874692 [18:18:25]1040 (4) - 92661 [18:18:25]1012 (4) - 15.09.2024 12:05 [18:18:25]1206 (1) - 0 [18:18:25]OFD Sender: Remove packet 92661 [18:18:25]ProducePacketName [18:18:25]name=ofd_packets/00092661 [18:18:25]NVStorageDeleteData [18:18:25]Write to MH i2c: 01 00 00 59 5F B8 [18:18:25]Write i2c OK [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: 01 [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: 01 07 00 [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: 01 07 00 59 5F 00 00 00 00 00 2A 0D F6 [18:18:25]RasterBufferAndPrint [18:18:25]line [18:18:25]line [18:18:25]line [18:18:25]line [18:18:25]line [18:18:25]written 0, free lines is 3378 [18:18:25]MH_Cut [18:18:25]Write to MH i2c: D1 01 00 60 5F 01 91 [18:18:25]Write i2c OK [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: D1 [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: D1 01 00 [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: D1 01 00 60 5F 00 90 [18:18:25]Write to MH i2c: 01 00 00 61 5F C0 [18:18:25]Write i2c OK [18:18:25]MH_I2C_Read... [18:18:26]OFD Sender: No OFD packet to send [18:18:26]*** Cut start [18:18:26]*** Purtial cut [18:18:26]*** Stage 1: CUTSNS_PIN = 1 [18:18:28]Read from MH i2c: 01 [18:18:28]MH_I2C_Read... [18:18:28]*** Stop cut motor [18:18:28]*** Cut end [18:18:28]Read from MH i2c: 01 07 00 [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: 01 07 00 61 5F 00 00 00 00 00 FF 0F D5 [18:18:28]process_action close_receipt done [18:18:28]requested_data is exist [18:18:28]produce_requested_data [18:18:28]requested_item fm.sn is exist - process it [18:18:28]wFMCommunicate request_size=4 [18:18:28]MH_SAM_APDU [18:18:28]CAPDU: 80 11 00 00 [18:18:28]Write to MH i2c: E2 08 00 62 5F 80 11 00 00 00 00 00 00 3B [18:18:28]Write i2c OK [18:18:28]MH_I2C_Read... [18:18:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:28]Read from MH i2c: E2 [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: E2 17 00 [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: E2 17 00 62 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 92 [18:18:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [18:18:28]wFMCommunicate OK [18:18:28]requested_item fd.num is exist - process it [18:18:28]SAM_PROTO_GetFieldsCounters [18:18:28]wFMCommunicate request_size=4 [18:18:28]MH_SAM_APDU [18:18:28]CAPDU: 80 13 00 00 [18:18:28]Write to MH i2c: E2 08 00 63 5F 80 13 00 00 00 00 00 00 3E [18:18:28]Write i2c OK [18:18:28]MH_I2C_Read... [18:18:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:18:28]Read from MH i2c: E2 [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: E2 62 00 [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: E2 62 00 63 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F5 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [18:18:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F5 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:18:28]wFMCommunicate OK [18:18:28]SAM_PROTO_GetFieldsCounters done [18:18:28]requested_item shift.num is exist - process it [18:18:28]requested_item shift.opened is exist - process it [18:18:28]req_shift_opened [18:18:28]FM_GetShiftState [18:18:28]SAM_PROTO_GetShiftState [18:18:28]wFMCommunicate request_size=4 [18:18:28]MH_SAM_APDU [18:18:28]CAPDU: 80 13 01 00 [18:18:28]Write to MH i2c: E2 08 00 64 5F 80 13 01 00 00 00 00 00 40 [18:18:28]Write i2c OK [18:18:28]MH_I2C_Read... [18:18:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:28]Read from MH i2c: E2 [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: E2 0E 00 [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: E2 0E 00 64 5F 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 C2 [18:18:28]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [18:18:28]wFMCommunicate OK [18:18:28]SAM_PROTO_GetShiftState done [18:18:28]FM_GetShiftState done [18:18:28]req_shift_opened done [18:18:28]requested_item shift.open_date is exist - process it [18:18:28]req_shift_open_date [18:18:28]req_shift_open_date done [18:18:28]produce_requested_data done [18:18:28]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92661,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [18:18:28]process_action_free close_receipt [18:18:28]json_value_free [18:18:28]json_value_free done [18:18:28]process_json_proto returns [18:18:28]Send response to host [18:18:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92661,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [18:18:28]free response buf [18:18:28]execute_script done [18:18:28]execute_script returns [18:18:28]free content buf [18:18:28]Sock 8.Close socket [18:18:28]Sock 8.Thread stoped [18:18:31]OFD Sender: No OFD packet to send [18:18:36]OFD Sender: No OFD packet to send [18:18:41]OFD Sender: No OFD packet to send [18:18:46]OFD Sender: No OFD packet to send [18:18:51]OFD Sender: No OFD packet to send [18:18:56]OFD Sender: No OFD packet to send [18:19:01]OFD Sender: No OFD packet to send [18:19:06]OFD Sender: No OFD packet to send [18:19:11]OFD Sender: No OFD packet to send [18:19:16]OFD Sender: No OFD packet to send [18:19:21]OFD Sender: No OFD packet to send [18:19:26]OFD Sender: No OFD packet to send [18:19:31]OFD Sender: No OFD packet to send [18:19:36]OFD Sender: No OFD packet to send [18:19:41]OFD Sender: No OFD packet to send [18:19:46]OFD Sender: No OFD packet to send [18:19:51]OFD Sender: No OFD packet to send [18:19:56]OFD Sender: No OFD packet to send [18:20:01]OFD Sender: No OFD packet to send [18:20:06]OFD Sender: No OFD packet to send [18:20:11]OFD Sender: No OFD packet to send [18:20:16]OFD Sender: No OFD packet to send [18:20:21]OFD Sender: No OFD packet to send [18:20:26]OFD Sender: No OFD packet to send [18:20:31]OFD Sender: No OFD packet to send [18:20:36]OFD Sender: No OFD packet to send [18:20:41]OFD Sender: No OFD packet to send [18:20:46]OFD Sender: No OFD packet to send [18:20:51]OFD Sender: No OFD packet to send [18:20:56]OFD Sender: No OFD packet to send [18:21:01]OFD Sender: No OFD packet to send [18:21:06]OFD Sender: No OFD packet to send [18:21:11]OFD Sender: No OFD packet to send [18:21:16]OFD Sender: No OFD packet to send [18:21:21]OFD Sender: No OFD packet to send [18:21:26]OFD Sender: No OFD packet to send [18:21:31]OFD Sender: No OFD packet to send [18:21:36]OFD Sender: No OFD packet to send [18:21:41]OFD Sender: No OFD packet to send [18:21:46]OFD Sender: No OFD packet to send [18:21:51]OFD Sender: No OFD packet to send [18:21:56]OFD Sender: No OFD packet to send [18:22:01]OFD Sender: No OFD packet to send [18:22:06]OFD Sender: No OFD packet to send [18:22:11]OFD Sender: No OFD packet to send [18:22:16]OFD Sender: No OFD packet to send [18:22:21]OFD Sender: No OFD packet to send [18:22:26]OFD Sender: No OFD packet to send [18:22:31]OFD Sender: No OFD packet to send [18:22:36]OFD Sender: No OFD packet to send [18:22:41]OFD Sender: No OFD packet to send [18:22:46]OFD Sender: No OFD packet to send [18:22:51]OFD Sender: No OFD packet to send [18:22:56]OFD Sender: No OFD packet to send [18:23:01]OFD Sender: No OFD packet to send [18:23:06]OFD Sender: No OFD packet to send [18:23:11]OFD Sender: No OFD packet to send [18:23:16]OFD Sender: No OFD packet to send [18:23:21]OFD Sender: No OFD packet to send [18:23:26]OFD Sender: No OFD packet to send [18:23:31]OFD Sender: No OFD packet to send [18:23:36]OFD Sender: No OFD packet to send [18:23:41]OFD Sender: No OFD packet to send [18:23:46]OFD Sender: No OFD packet to send [18:23:51]OFD Sender: No OFD packet to send [18:23:56]OFD Sender: No OFD packet to send [18:24:01]OFD Sender: No OFD packet to send [18:24:06]OFD Sender: No OFD packet to send [18:24:11]OFD Sender: No OFD packet to send [18:24:16]OFD Sender: No OFD packet to send [18:24:21]OFD Sender: No OFD packet to send [18:24:26]OFD Sender: No OFD packet to send [18:24:31]OFD Sender: No OFD packet to send [18:24:36]OFD Sender: No OFD packet to send [18:24:41]OFD Sender: No OFD packet to send [18:24:46]OFD Sender: No OFD packet to send [18:24:51]OFD Sender: No OFD packet to send [18:24:56]OFD Sender: No OFD packet to send [18:25:01]OFD Sender: No OFD packet to send [18:25:06]OFD Sender: No OFD packet to send [18:25:11]OFD Sender: No OFD packet to send [18:25:16]OFD Sender: No OFD packet to send [18:25:21]OFD Sender: No OFD packet to send [18:25:26]OFD Sender: No OFD packet to send [18:25:31]OFD Sender: No OFD packet to send [18:25:36]OFD Sender: No OFD packet to send [18:25:41]OFD Sender: No OFD packet to send [18:25:46]OFD Sender: No OFD packet to send [18:25:51]OFD Sender: No OFD packet to send [18:25:56]OFD Sender: No OFD packet to send [18:26:01]OFD Sender: No OFD packet to send [18:26:06]OFD Sender: No OFD packet to send [18:26:11]OFD Sender: No OFD packet to send [18:26:16]OFD Sender: No OFD packet to send [18:26:21]OFD Sender: No OFD packet to send [18:26:26]OFD Sender: No OFD packet to send [18:26:31]OFD Sender: No OFD packet to send [18:26:36]OFD Sender: No OFD packet to send [18:26:41]OFD Sender: No OFD packet to send [18:26:46]OFD Sender: No OFD packet to send [18:26:51]OFD Sender: No OFD packet to send [18:26:56]OFD Sender: No OFD packet to send [18:27:01]OFD Sender: No OFD packet to send [18:27:06]OFD Sender: No OFD packet to send [18:27:11]OFD Sender: No OFD packet to send [18:27:16]OFD Sender: No OFD packet to send [18:27:21]OFD Sender: No OFD packet to send [18:27:26]OFD Sender: No OFD packet to send [18:27:31]OFD Sender: No OFD packet to send [18:27:36]OFD Sender: No OFD packet to send [18:27:41]OFD Sender: No OFD packet to send [18:27:46]OFD Sender: No OFD packet to send [18:27:51]OFD Sender: No OFD packet to send [18:27:56]OFD Sender: No OFD packet to send [18:28:01]OFD Sender: No OFD packet to send [18:28:06]OFD Sender: No OFD packet to send [18:28:11]OFD Sender: No OFD packet to send [18:28:16]OFD Sender: No OFD packet to send [18:28:21]OFD Sender: No OFD packet to send [18:28:26]OFD Sender: No OFD packet to send [18:28:31]OFD Sender: No OFD packet to send [18:28:36]OFD Sender: No OFD packet to send [18:28:41]OFD Sender: No OFD packet to send [18:28:46]OFD Sender: No OFD packet to send [18:28:51]OFD Sender: No OFD packet to send [18:28:56]OFD Sender: No OFD packet to send [18:29:01]OFD Sender: No OFD packet to send [18:29:06]OFD Sender: No OFD packet to send [18:29:11]OFD Sender: No OFD packet to send [18:29:16]OFD Sender: No OFD packet to send [18:29:21]OFD Sender: No OFD packet to send [18:29:26]OFD Sender: No OFD packet to send [18:29:31]OFD Sender: No OFD packet to send [18:29:36]OFD Sender: No OFD packet to send [18:29:41]OFD Sender: No OFD packet to send [18:29:46]OFD Sender: No OFD packet to send [18:29:51]OFD Sender: No OFD packet to send [18:29:56]OFD Sender: No OFD packet to send [18:30:01]OFD Sender: No OFD packet to send [18:30:06]OFD Sender: No OFD packet to send [18:30:11]OFD Sender: No OFD packet to send [18:30:16]OFD Sender: No OFD packet to send [18:30:21]OFD Sender: No OFD packet to send [18:30:26]OFD Sender: No OFD packet to send [18:30:31]OFD Sender: No OFD packet to send [18:30:36]OFD Sender: No OFD packet to send [18:30:41]OFD Sender: No OFD packet to send [18:30:46]OFD Sender: No OFD packet to send [18:30:51]OFD Sender: No OFD packet to send [18:30:56]OFD Sender: No OFD packet to send [18:31:01]OFD Sender: No OFD packet to send [18:31:06]OFD Sender: No OFD packet to send [18:31:11]OFD Sender: No OFD packet to send [18:31:16]OFD Sender: No OFD packet to send [18:31:21]OFD Sender: No OFD packet to send [18:31:26]OFD Sender: No OFD packet to send [18:31:31]OFD Sender: No OFD packet to send [18:31:36]OFD Sender: No OFD packet to send [18:31:41]OFD Sender: No OFD packet to send [18:31:46]OFD Sender: No OFD packet to send [18:31:51]OFD Sender: No OFD packet to send [18:31:56]OFD Sender: No OFD packet to send [18:32:01]OFD Sender: No OFD packet to send [18:32:06]OFD Sender: No OFD packet to send [18:32:11]OFD Sender: No OFD packet to send [18:32:16]OFD Sender: No OFD packet to send [18:32:21]OFD Sender: No OFD packet to send [18:32:26]OFD Sender: No OFD packet to send [18:32:31]OFD Sender: No OFD packet to send [18:32:36]OFD Sender: No OFD packet to send [18:32:41]OFD Sender: No OFD packet to send [18:32:46]OFD Sender: No OFD packet to send [18:32:51]OFD Sender: No OFD packet to send [18:32:56]OFD Sender: No OFD packet to send [18:33:01]OFD Sender: No OFD packet to send [18:33:06]OFD Sender: No OFD packet to send [18:33:11]OFD Sender: No OFD packet to send [18:33:16]OFD Sender: No OFD packet to send [18:33:22]OFD Sender: No OFD packet to send [18:33:27]OFD Sender: No OFD packet to send [18:33:32]OFD Sender: No OFD packet to send [18:33:37]OFD Sender: No OFD packet to send [18:33:42]OFD Sender: No OFD packet to send [18:33:47]OFD Sender: No OFD packet to send [18:33:52]OFD Sender: No OFD packet to send [18:33:57]OFD Sender: No OFD packet to send [18:34:02]OFD Sender: No OFD packet to send [18:34:07]OFD Sender: No OFD packet to send [18:34:12]OFD Sender: No OFD packet to send [18:34:17]OFD Sender: No OFD packet to send [18:34:22]OFD Sender: No OFD packet to send [18:34:27]OFD Sender: No OFD packet to send [18:34:32]OFD Sender: No OFD packet to send [18:34:37]OFD Sender: No OFD packet to send [18:34:42]OFD Sender: No OFD packet to send [18:34:47]OFD Sender: No OFD packet to send [18:34:52]OFD Sender: No OFD packet to send [18:34:57]OFD Sender: No OFD packet to send [18:35:02]OFD Sender: No OFD packet to send [18:35:07]OFD Sender: No OFD packet to send [18:35:12]OFD Sender: No OFD packet to send [18:35:17]OFD Sender: No OFD packet to send [18:35:22]OFD Sender: No OFD packet to send [18:35:27]OFD Sender: No OFD packet to send [18:35:32]OFD Sender: No OFD packet to send [18:35:37]OFD Sender: No OFD packet to send [18:35:42]OFD Sender: No OFD packet to send [18:35:47]OFD Sender: No OFD packet to send [18:35:52]OFD Sender: No OFD packet to send [18:35:57]OFD Sender: No OFD packet to send [18:36:02]OFD Sender: No OFD packet to send [18:36:07]OFD Sender: No OFD packet to send [18:36:12]OFD Sender: No OFD packet to send [18:36:17]OFD Sender: No OFD packet to send [18:36:22]OFD Sender: No OFD packet to send [18:36:27]OFD Sender: No OFD packet to send [18:36:32]OFD Sender: No OFD packet to send [18:36:37]OFD Sender: No OFD packet to send [18:36:42]OFD Sender: No OFD packet to send [18:36:47]OFD Sender: No OFD packet to send [18:36:52]OFD Sender: No OFD packet to send [18:36:57]OFD Sender: No OFD packet to send [18:37:02]OFD Sender: No OFD packet to send [18:37:07]OFD Sender: No OFD packet to send [18:37:12]OFD Sender: No OFD packet to send [18:37:17]OFD Sender: No OFD packet to send [18:37:22]OFD Sender: No OFD packet to send [18:37:27]OFD Sender: No OFD packet to send [18:37:32]OFD Sender: No OFD packet to send [18:37:37]OFD Sender: No OFD packet to send [18:37:42]OFD Sender: No OFD packet to send [18:37:47]OFD Sender: No OFD packet to send [18:37:52]OFD Sender: No OFD packet to send [18:37:57]OFD Sender: No OFD packet to send [18:38:02]OFD Sender: No OFD packet to send [18:38:07]OFD Sender: No OFD packet to send [18:38:12]OFD Sender: No OFD packet to send [18:38:17]OFD Sender: No OFD packet to send [18:38:22]OFD Sender: No OFD packet to send [18:38:27]OFD Sender: No OFD packet to send [18:38:32]OFD Sender: No OFD packet to send [18:38:37]OFD Sender: No OFD packet to send [18:38:42]OFD Sender: No OFD packet to send [18:38:47]OFD Sender: No OFD packet to send [18:38:52]OFD Sender: No OFD packet to send [18:38:57]OFD Sender: No OFD packet to send [18:39:02]OFD Sender: No OFD packet to send [18:39:07]OFD Sender: No OFD packet to send [18:39:12]OFD Sender: No OFD packet to send [18:39:17]OFD Sender: No OFD packet to send [18:39:20]accept exits with 9 [18:39:20]New connection [18:39:20]New thread 3066658148 created [18:39:20]Thread 3066801508 joined [18:39:20]Waiting for new connection... [18:39:20] Sock 9.Parse request [18:39:20]Sock 9.Check first char [18:39:20]Sock 9.First char is OK [18:39:20]request: POST /json_proto HTTP/1.0 [18:39:20]Method: POST [18:39:20]URL: /json_proto [18:39:20]Method is POST - this is cgi request [18:39:20]url: /json_proto [18:39:20]query_string will be loaded in cgi processing [18:39:20]execute_cgi json_proto POST (null) [18:39:20]execute_cgi path=json_proto method=POST [18:39:20]POST find Content-Length [18:39:20]Host: 172.17.57.71:8080 [18:39:20]Content-Length: 614 [18:39:20]Content-Type: application/json [18:39:20] [18:39:20]POST finish read [18:39:20]Found Content-Length = 614 [18:39:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127551", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:20]execute_script... [18:39:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127551", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:20]POST & json_proto [18:39:20]process_json_proto [18:39:20]json parsed OK: [18:39:20]protocol is kg_v1.0 [18:39:20]action value=close_receipt [18:39:20]process_action close_receipt [18:39:20]cmd_close_receipt [18:39:20]MH_GetDate [18:39:20]Write to MH i2c: F0 00 00 65 5F B3 [18:39:20]Write i2c OK [18:39:20]MH_I2C_Read... [18:39:20]Read from MH i2c: F0 [18:39:20]MH_I2C_Read... [18:39:20]Read from MH i2c: F0 09 00 [18:39:20]MH_I2C_Read... [18:39:20]Read from MH i2c: F0 09 00 65 5F 00 E2 29 E7 66 33 3A A4 66 8B [18:39:20]GetLastDocTimeStamp 1726424313 [18:39:20]current date 1726425570 [18:39:20]FM_GetShiftState [18:39:20]SAM_PROTO_GetShiftState [18:39:20]wFMCommunicate request_size=4 [18:39:20]MH_SAM_APDU [18:39:20]CAPDU: 80 13 01 00 [18:39:20]Write to MH i2c: E2 08 00 66 5F 80 13 01 00 00 00 00 00 42 [18:39:20]Write i2c OK [18:39:20]MH_I2C_Read... [18:39:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:20]Read from MH i2c: E2 [18:39:20]MH_I2C_Read... [18:39:20]Read from MH i2c: E2 0E 00 [18:39:20]MH_I2C_Read... [18:39:20]Read from MH i2c: E2 0E 00 66 5F 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 C4 [18:39:20]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [18:39:20]wFMCommunicate OK [18:39:20]SAM_PROTO_GetShiftState done [18:39:20]FM_GetShiftState done [18:39:20]opened in 1726359809 [18:39:20]opened+sec_in_day 1726446209 [18:39:20]quantity*price = 11000 [18:39:20]sum+1 = 11001 [18:39:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 110 15.09.2024 18:39 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92662 ФПД: 65253332778325 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T183930&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92662&fm=65253332778325&tin=02508201610067®Number=0000000000091423&sum=11000 0 [18:39:21]StoreToDocumentArchive [18:39:21]shift 507 fd 92662 [18:39:21]save to /storage/0507/doc_00092662 [18:39:21]save last doc name /storage/0507/doc_00092662 to /storage/kkm_last_doc_name [18:39:21]save OK [18:39:21]Clear old archive folders... [18:39:21]ProcessDocumentItem done err = 0, tmpTLVsize=266 [18:39:21]tlvbuf is 00FD6460 [18:39:21]SAM_PROTO_ClearQueue [18:39:21]wFMCommunicate request_size=4 [18:39:21]MH_SAM_APDU [18:39:21]CAPDU: 80 09 00 00 [18:39:21]Write to MH i2c: E2 08 00 73 5F 80 09 00 00 00 00 00 00 44 [18:39:21]Write i2c OK [18:39:21]MH_I2C_Read... [18:39:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:39:21]Read from MH i2c: E2 [18:39:21]MH_I2C_Read... [18:39:21]Read from MH i2c: E2 03 00 [18:39:21]MH_I2C_Read... [18:39:21]Read from MH i2c: E2 03 00 73 5F 00 90 00 46 [18:39:21]RAPDU: 90 00 [18:39:21]wFMCommunicate OK [18:39:21]SAM_PROTO_ClearQueue done [18:39:21]KKMCreateOFDPacket [18:39:21]OFDProtocolAddRootSTLVToBuf [18:39:21]FM_MakeSignedData [18:39:21]FM_MakeSignedData [18:39:21]SAM_PROTO_SignData [18:39:21]wFMCommunicate request_size=4 [18:39:21]MH_SAM_APDU [18:39:21]CAPDU: 80 0D 01 02 [18:39:21]Write to MH i2c: E2 08 00 74 5F 80 0D 01 02 00 00 00 00 4C [18:39:21]Write i2c OK [18:39:21]MH_I2C_Read... [18:39:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:39:21]Read from MH i2c: E2 [18:39:21]MH_I2C_Read... [18:39:21]Read from MH i2c: E2 03 00 [18:39:21]MH_I2C_Read... [18:39:21]Read from MH i2c: E2 03 00 74 5F 00 90 00 47 [18:39:21]RAPDU: 90 00 [18:39:21]wFMCommunicate OK [18:39:21]wFMCommunicate request_size=255 [18:39:21]MH_SAM_APDU [18:39:21]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 E2 29 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 [18:39:21]Write to MH i2c: E2 02 01 75 5F 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 E2 29 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 00 00 80 [18:39:21]Write i2c OK [18:39:21]MH_I2C_Read... [18:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:21]Read from MH i2c: E2 [18:39:21]MH_I2C_Read... [18:39:21]Read from MH i2c: E2 03 00 [18:39:21]MH_I2C_Read... [18:39:21]Read from MH i2c: E2 03 00 75 5F 00 90 00 48 [18:39:21]RAPDU: 90 00 [18:39:21]wFMCommunicate OK [18:39:21]wFMCommunicate request_size=25 [18:39:21]MH_SAM_APDU [18:39:21]CAPDU: 80 0D 02 02 14 39 32 10 04 04 00 F6 69 01 00 35 04 06 00 3B 58 F9 B8 7D 55 [18:39:21]Write to MH i2c: E2 1C 00 76 5F 80 0D 02 02 14 00 39 32 10 04 04 00 F6 69 01 00 35 04 06 00 3B 58 F9 B8 7D 55 00 00 AF [18:39:21]Write i2c OK [18:39:21]MH_I2C_Read... [18:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:21]Read from MH i2c: E2 [18:39:21]MH_I2C_Read... [18:39:21]Read from MH i2c: E2 03 00 [18:39:21]MH_I2C_Read... [18:39:21]Read from MH i2c: E2 03 00 76 5F 00 90 00 49 [18:39:21]RAPDU: 90 00 [18:39:21]wFMCommunicate OK [18:39:21]wFMCommunicate request_size=4 [18:39:21]MH_SAM_APDU [18:39:21]CAPDU: 80 0D 03 02 [18:39:21]Write to MH i2c: E2 08 00 77 5F 80 0D 03 02 00 00 00 00 51 [18:39:21]Write i2c OK [18:39:21]MH_I2C_Read... [18:39:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:39:21]Read from MH i2c: E2 [18:39:21]MH_I2C_Read... [18:39:21]Read from MH i2c: E2 0B 00 [18:39:21]MH_I2C_Read... [18:39:21]Read from MH i2c: E2 0B 00 77 5F 00 10 14 A1 E2 F3 D9 4C 2B 90 00 3C [18:39:21]RAPDU: 10 14 A1 E2 F3 D9 4C 2B 90 00 [18:39:21]wFMCommunicate OK [18:39:21]SAM_PROTO_SignData done [18:39:21]FM_MakeSignedData done [18:39:21]CreateOFDProtocolMessage [18:39:21]wFMCommunicate request_size=4 [18:39:21]MH_SAM_APDU [18:39:21]CAPDU: 80 11 00 00 [18:39:21]Write to MH i2c: E2 08 00 78 5F 80 11 00 00 00 00 00 00 51 [18:39:21]Write i2c OK [18:39:21]MH_I2C_Read... [18:39:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:21]Read from MH i2c: E2 [18:39:21]MH_I2C_Read... [18:39:21]Read from MH i2c: E2 17 00 [18:39:21]MH_I2C_Read... [18:39:21]Read from MH i2c: E2 17 00 78 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A8 [18:39:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [18:39:21]wFMCommunicate OK [18:39:21]CreateOFDProtocolMessage done [18:39:21]OFDSenderStorePacket 92662 [18:39:21]StoreOFDPacket docnum=92662 [18:39:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 1E 01 00 00 14 53 16 01 07 5C 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 E2 29 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F6 69 01 00 35 04 06 00 3B 58 F9 B8 7D 55 10 14 A1 E2 F3 D9 4C 2B [18:39:21]CheckFolder [18:39:21]dirname=/storage/ofd_packets [18:39:21]CheckFolder done [18:39:21]ProducePacketName [18:39:21]name=ofd_packets/00092662 [18:39:21]NVStorageSaveData ofd_packets/00092662 [18:39:21]File name is /storage/ofd_packets/00092662 [18:39:21]Write 316 bytes [18:39:21]NVStorageSaveData done [18:39:21]OFDSenderStorePacket done [18:39:21]KKMCreateOFDPacket done [18:39:21]NVStorageSaveData kkm_last_timestamp [18:39:21]File name is /storage/kkm_last_timestamp [18:39:21]Write 4 bytes [18:39:21]NVStorageSaveData done [18:39:21]ExternCall_PrintAddStr [18:39:21]wPrintStart [18:39:21]Write to MH i2c: 01 00 00 79 5F D8 [18:39:21]Write i2c OK [18:39:21]MH_I2C_Read... [18:39:21]Read from MH i2c: 01 [18:39:21]MH_I2C_Read... [18:39:21]Read from MH i2c: 01 07 00 [18:39:21]MH_I2C_Read... [18:39:21]Read from MH i2c: 01 07 00 79 5F 00 00 00 00 00 FF 0F ED [18:39:21]RasterBufferAndPrint [18:39:21]line Счет N : (3)127551 [18:39:21]line ИНН: 02508201610067 [18:39:21]line Контрольно-Кассовый Чек [18:39:21]line ПРОДАЖА [18:39:21]line Товар: 4870001570071 [18:39:21]line Напиток Pepsi 1л [18:39:21]line 1.000 * 110.00 [18:39:21]line = 110.00 [18:39:21]line НДС 12% НСП 1% [18:39:21]line > о реализуемом товаре [18:39:21]line ИТОГО: 110.00 [18:39:21]line НСП 1% : 0.97 [18:39:21]line НДС 12% : 11.68 [18:39:21]line Наличными: 110.00 [18:39:21]line Безнал.: 0.00 [18:39:21]line Место: АЗС № 5 "Партнер Нефть" [18:39:21]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [18:39:21]line СНО: Общий режим [18:39:21]line Чек 110 15.09.2024 18:39 [18:39:21]line Смена: 507 ФФД: 1.0 [18:39:21]line ЗНМ: 03000000022 [18:39:21]line РНМ: 0000000000091423 [18:39:21]line Версия ККМ: 001 [18:39:21]line ФМ: 0000000000874692 [18:39:21]line ФД: 92662 [18:39:21]line ФПД: 65253332778325 [18:39:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T183930&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92662&fm=65253332778325&tin=02508201610067®Number=0000000000091423&sum=11000 [18:39:22]OFD Sender: Processing packet 92662 [packets to send 63, broken 62] [18:39:22]ProducePacketName [18:39:22]name=ofd_packets/00092662 [18:39:22]OFD Sender: To server: pG, [18:39:22]CommunicateWithHost lk.salyk.kg:30040 [18:39:22]ConnectInit lk.salyk.kg [18:39:22]line 0 [18:39:22]written 0, free lines is 4095 [18:39:22]Connected sock=10 [18:39:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 1E 01 00 00 14 53 16 01 07 5C 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 E2 29 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F6 69 01 00 35 04 06 00 3B 58 F9 B8 7D 55 10 14 A1 E2 F3 D9 4C 2B [18:39:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 8E 4E 47 00 CF 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F6 69 01 00 F4 03 04 00 59 D2 E6 66 B6 04 01 00 00 D3 AC 3A 58 1E FD 4F 5F [18:39:22]CommunicateWithHost err = 0 [18:39:22]CheckOFDResponse [18:39:22]1017 (14) - 77093643461234 [18:39:22]1041 (16) - 0000000000874692 [18:39:22]1040 (4) - 92662 [18:39:22]1012 (4) - 15.09.2024 12:26 [18:39:22]1206 (1) - 0 [18:39:22]OFD Sender: Remove packet 92662 [18:39:22]ProducePacketName [18:39:22]name=ofd_packets/00092662 [18:39:22]NVStorageDeleteData [18:39:22]Write to MH i2c: 01 00 00 A1 5F 00 [18:39:22]Write i2c OK [18:39:22]MH_I2C_Read... [18:39:22]Read from MH i2c: 01 [18:39:22]MH_I2C_Read... [18:39:22]Read from MH i2c: 01 07 00 [18:39:22]MH_I2C_Read... [18:39:22]Read from MH i2c: 01 07 00 A1 5F 00 00 00 00 00 26 0D 3A [18:39:22]RasterBufferAndPrint [18:39:22]line [18:39:22]line [18:39:22]line [18:39:22]line [18:39:22]line [18:39:22]written 0, free lines is 3372 [18:39:22]MH_Cut [18:39:22]Write to MH i2c: D1 01 00 A8 5F 01 D9 [18:39:22]Write i2c OK [18:39:22]MH_I2C_Read... [18:39:22]Read from MH i2c: D1 [18:39:22]MH_I2C_Read... [18:39:22]Read from MH i2c: D1 01 00 [18:39:22]MH_I2C_Read... [18:39:22]Read from MH i2c: D1 01 00 A8 5F 00 D8 [18:39:22]Write to MH i2c: 01 00 00 A9 5F 08 [18:39:22]Write i2c OK [18:39:22]MH_I2C_Read... [18:39:22]OFD Sender: No OFD packet to send [18:39:23]*** Cut start [18:39:23]*** Purtial cut [18:39:23]*** Stage 1: CUTSNS_PIN = 1 [18:39:25]Read from MH i2c: 01 [18:39:25]MH_I2C_Read... [18:39:25]*** Stop cut motor [18:39:25]*** Cut end [18:39:25]Read from MH i2c: 01 07 00 [18:39:25]MH_I2C_Read... [18:39:25]Read from MH i2c: 01 07 00 A9 5F 00 00 00 00 00 FF 0F 1D [18:39:25]process_action close_receipt done [18:39:25]requested_data is exist [18:39:25]produce_requested_data [18:39:25]requested_item fm.sn is exist - process it [18:39:25]wFMCommunicate request_size=4 [18:39:25]MH_SAM_APDU [18:39:25]CAPDU: 80 11 00 00 [18:39:25]Write to MH i2c: E2 08 00 AA 5F 80 11 00 00 00 00 00 00 83 [18:39:25]Write i2c OK [18:39:25]MH_I2C_Read... [18:39:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:25]Read from MH i2c: E2 [18:39:25]MH_I2C_Read... [18:39:25]Read from MH i2c: E2 17 00 [18:39:25]MH_I2C_Read... [18:39:25]Read from MH i2c: E2 17 00 AA 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 DA [18:39:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [18:39:25]wFMCommunicate OK [18:39:25]requested_item fd.num is exist - process it [18:39:25]SAM_PROTO_GetFieldsCounters [18:39:25]wFMCommunicate request_size=4 [18:39:25]MH_SAM_APDU [18:39:25]CAPDU: 80 13 00 00 [18:39:25]Write to MH i2c: E2 08 00 AB 5F 80 13 00 00 00 00 00 00 86 [18:39:25]Write i2c OK [18:39:25]MH_I2C_Read... [18:39:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:39:25]Read from MH i2c: E2 [18:39:25]MH_I2C_Read... [18:39:25]Read from MH i2c: E2 62 00 [18:39:25]MH_I2C_Read... [18:39:25]Read from MH i2c: E2 62 00 AB 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F6 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [18:39:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F6 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:39:25]wFMCommunicate OK [18:39:25]SAM_PROTO_GetFieldsCounters done [18:39:25]requested_item shift.num is exist - process it [18:39:25]requested_item shift.opened is exist - process it [18:39:25]req_shift_opened [18:39:25]FM_GetShiftState [18:39:25]SAM_PROTO_GetShiftState [18:39:25]wFMCommunicate request_size=4 [18:39:25]MH_SAM_APDU [18:39:25]CAPDU: 80 13 01 00 [18:39:25]Write to MH i2c: E2 08 00 AC 5F 80 13 01 00 00 00 00 00 88 [18:39:25]Write i2c OK [18:39:25]MH_I2C_Read... [18:39:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:25]Read from MH i2c: E2 [18:39:25]MH_I2C_Read... [18:39:25]Read from MH i2c: E2 0E 00 [18:39:25]MH_I2C_Read... [18:39:25]Read from MH i2c: E2 0E 00 AC 5F 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 0A [18:39:25]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [18:39:25]wFMCommunicate OK [18:39:25]SAM_PROTO_GetShiftState done [18:39:25]FM_GetShiftState done [18:39:25]req_shift_opened done [18:39:25]requested_item shift.open_date is exist - process it [18:39:25]req_shift_open_date [18:39:25]req_shift_open_date done [18:39:25]produce_requested_data done [18:39:25]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92662,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [18:39:25]process_action_free close_receipt [18:39:25]json_value_free [18:39:25]json_value_free done [18:39:25]process_json_proto returns [18:39:25]Send response to host [18:39:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92662,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [18:39:25]free response buf [18:39:25]execute_script done [18:39:25]execute_script returns [18:39:25]free content buf [18:39:25]Sock 9.Close socket [18:39:25]Sock 9.Thread stoped [18:39:27]OFD Sender: No OFD packet to send [18:39:32]OFD Sender: No OFD packet to send [18:39:37]OFD Sender: No OFD packet to send [18:39:42]OFD Sender: No OFD packet to send [18:39:47]OFD Sender: No OFD packet to send [18:39:52]OFD Sender: No OFD packet to send [18:39:57]OFD Sender: No OFD packet to send [18:40:02]OFD Sender: No OFD packet to send [18:40:07]OFD Sender: No OFD packet to send [18:40:12]OFD Sender: No OFD packet to send [18:40:17]OFD Sender: No OFD packet to send [18:40:23]OFD Sender: No OFD packet to send [18:40:28]OFD Sender: No OFD packet to send [18:40:33]OFD Sender: No OFD packet to send [18:40:38]OFD Sender: No OFD packet to send [18:40:43]OFD Sender: No OFD packet to send [18:40:48]OFD Sender: No OFD packet to send [18:40:53]OFD Sender: No OFD packet to send [18:40:58]OFD Sender: No OFD packet to send [18:41:03]OFD Sender: No OFD packet to send [18:41:08]OFD Sender: No OFD packet to send [18:41:13]OFD Sender: No OFD packet to send [18:41:18]OFD Sender: No OFD packet to send [18:41:23]OFD Sender: No OFD packet to send [18:41:28]OFD Sender: No OFD packet to send [18:41:33]OFD Sender: No OFD packet to send [18:41:38]OFD Sender: No OFD packet to send [18:41:43]OFD Sender: No OFD packet to send [18:41:48]OFD Sender: No OFD packet to send [18:41:53]OFD Sender: No OFD packet to send [18:41:58]OFD Sender: No OFD packet to send [18:42:03]OFD Sender: No OFD packet to send [18:42:08]OFD Sender: No OFD packet to send [18:42:13]OFD Sender: No OFD packet to send [18:42:18]OFD Sender: No OFD packet to send [18:42:23]OFD Sender: No OFD packet to send [18:42:28]OFD Sender: No OFD packet to send [18:42:33]OFD Sender: No OFD packet to send [18:42:38]OFD Sender: No OFD packet to send [18:42:42]accept exits with 8 [18:42:42]New connection [18:42:42]New thread 3066801508 created [18:42:42]Thread 3066658148 joined [18:42:42]Waiting for new connection... [18:42:42] Sock 8.Parse request [18:42:42]Sock 8.Check first char [18:42:42]Sock 8.First char is OK [18:42:42]request: POST /json_proto HTTP/1.0 [18:42:42]Method: POST [18:42:42]URL: /json_proto [18:42:42]Method is POST - this is cgi request [18:42:42]url: /json_proto [18:42:42]query_string will be loaded in cgi processing [18:42:42]execute_cgi json_proto POST (null) [18:42:42]execute_cgi path=json_proto method=POST [18:42:42]POST find Content-Length [18:42:42]Host: 172.17.57.71:8080 [18:42:42]Content-Length: 1050 [18:42:42]Content-Type: application/json [18:42:42] [18:42:42]POST finish read [18:42:42]Found Content-Length = 1050 [18:42:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127552", "tax_sys" : 0, "items" : [ { "code": "4700000483297", "name": "\u042D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Nitro \u0410\u043D\u0430\u043D\u0430\u0441-\u0433\u0443\u0430\u0432", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100091993", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u041C\u0438\u043B\u043A\u0438 \u0412\u0435\u0439 26\u0433", "price" : 35.00, "quantity" : 2.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:42]execute_script... [18:42:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127552", "tax_sys" : 0, "items" : [ { "code": "4700000483297", "name": "\u042D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Nitro \u0410\u043D\u0430\u043D\u0430\u0441-\u0433\u0443\u0430\u0432", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100091993", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u041C\u0438\u043B\u043A\u0438 \u0412\u0435\u0439 26\u0433", "price" : 35.00, "quantity" : 2.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:42]POST & json_proto [18:42:42]process_json_proto [18:42:42]json parsed OK: [18:42:42]protocol is kg_v1.0 [18:42:42]action value=close_receipt [18:42:42]process_action close_receipt [18:42:42]cmd_close_receipt [18:42:42]MH_GetDate [18:42:42]Write to MH i2c: F0 00 00 AD 5F FB [18:42:42]Write i2c OK [18:42:42]MH_I2C_Read... [18:42:42]Read from MH i2c: F0 [18:42:42]MH_I2C_Read... [18:42:42]Read from MH i2c: F0 09 00 [18:42:42]MH_I2C_Read... [18:42:42]Read from MH i2c: F0 09 00 AD 5F 00 AC 2A E7 66 33 3A A4 66 9E [18:42:42]GetLastDocTimeStamp 1726425570 [18:42:42]current date 1726425772 [18:42:42]FM_GetShiftState [18:42:42]SAM_PROTO_GetShiftState [18:42:42]wFMCommunicate request_size=4 [18:42:42]MH_SAM_APDU [18:42:42]CAPDU: 80 13 01 00 [18:42:42]Write to MH i2c: E2 08 00 AE 5F 80 13 01 00 00 00 00 00 8A [18:42:42]Write i2c OK [18:42:42]MH_I2C_Read... [18:42:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:42]Read from MH i2c: E2 [18:42:42]MH_I2C_Read... [18:42:42]Read from MH i2c: E2 0E 00 [18:42:42]MH_I2C_Read... [18:42:42]Read from MH i2c: E2 0E 00 AE 5F 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 0C [18:42:42]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [18:42:42]wFMCommunicate OK [18:42:42]SAM_PROTO_GetShiftState done [18:42:42]FM_GetShiftState done [18:42:42]opened in 1726359809 [18:42:42]opened+sec_in_day 1726446209 [18:42:42]quantity*price = 19000 [18:42:42]sum+1 = 19001 [18:42:42]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4011100091993 Шок Батончик Милки Вей 26г 2.000 * 35.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 111 15.09.2024 18:42 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92663 ФПД: 212324588668454 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T184252&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92663&fm=212324588668454&tin=02508201610067®Number=0000000000091423&sum=26000 0 [18:42:43]StoreToDocumentArchive [18:42:43]shift 507 fd 92663 [18:42:43]save to /storage/0507/doc_00092663 [18:42:43]save last doc name /storage/0507/doc_00092663 to /storage/kkm_last_doc_name [18:42:43]save OK [18:42:43]Clear old archive folders... [18:42:43]ProcessDocumentItem done err = 0, tmpTLVsize=431 [18:42:43]tlvbuf is 01032790 [18:42:43]SAM_PROTO_ClearQueue [18:42:43]wFMCommunicate request_size=4 [18:42:43]MH_SAM_APDU [18:42:43]CAPDU: 80 09 00 00 [18:42:43]Write to MH i2c: E2 08 00 BB 5F 80 09 00 00 00 00 00 00 8C [18:42:43]Write i2c OK [18:42:43]MH_I2C_Read... [18:42:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:42:43]Read from MH i2c: E2 [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: E2 03 00 [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: E2 03 00 BB 5F 00 90 00 8E [18:42:43]RAPDU: 90 00 [18:42:43]wFMCommunicate OK [18:42:43]SAM_PROTO_ClearQueue done [18:42:43]KKMCreateOFDPacket [18:42:43]OFDProtocolAddRootSTLVToBuf [18:42:43]FM_MakeSignedData [18:42:43]FM_MakeSignedData [18:42:43]SAM_PROTO_SignData [18:42:43]wFMCommunicate request_size=4 [18:42:43]MH_SAM_APDU [18:42:43]CAPDU: 80 0D 01 02 [18:42:43]Write to MH i2c: E2 08 00 BC 5F 80 0D 01 02 00 00 00 00 94 [18:42:43]Write i2c OK [18:42:43]MH_I2C_Read... [18:42:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:42:43]Read from MH i2c: E2 [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: E2 03 00 [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: E2 03 00 BC 5F 00 90 00 8F [18:42:43]RAPDU: 90 00 [18:42:43]wFMCommunicate OK [18:42:43]wFMCommunicate request_size=255 [18:42:43]MH_SAM_APDU [18:42:43]CAPDU: 80 0D 02 02 FA 03 00 AF 01 1E 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 39 37 06 04 47 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 D0 90 D0 BD D0 B0 D0 BD D0 B0 D1 81 2D D0 B3 D1 83 D0 B0 D0 B2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 39 39 33 06 04 2E 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B8 D0 BB D0 BA D0 B8 20 D0 92 D0 B5 D0 B9 20 32 36 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 [18:42:43]Write to MH i2c: E2 02 01 BD 5F 80 0D 02 02 FA 00 03 00 AF 01 1E 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 39 37 06 04 47 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 D0 90 D0 BD D0 B0 D0 BD D0 B0 D1 81 2D D0 B3 D1 83 D0 B0 D0 B2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 39 39 33 06 04 2E 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B8 D0 BB D0 BA D0 B8 20 D0 92 D0 B5 D0 B9 20 32 36 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 00 00 B9 [18:42:43]Write i2c OK [18:42:43]MH_I2C_Read... [18:42:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:43]Read from MH i2c: E2 [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: E2 03 00 [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: E2 03 00 BD 5F 00 90 00 90 [18:42:43]RAPDU: 90 00 [18:42:43]wFMCommunicate OK [18:42:43]wFMCommunicate request_size=190 [18:42:43]MH_SAM_APDU [18:42:43]CAPDU: 80 0D 02 02 B9 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 AC 2A E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F7 69 01 00 35 04 06 00 C1 1B AB AF 46 26 [18:42:43]Write to MH i2c: E2 C1 00 BE 5F 80 0D 02 02 B9 00 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 AC 2A E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F7 69 01 00 35 04 06 00 C1 1B AB AF 46 26 00 00 4C [18:42:43]Write i2c OK [18:42:43]MH_I2C_Read... [18:42:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:44]Read from MH i2c: E2 [18:42:44]MH_I2C_Read... [18:42:44]Read from MH i2c: E2 03 00 [18:42:44]MH_I2C_Read... [18:42:44]Read from MH i2c: E2 03 00 BE 5F 00 90 00 91 [18:42:44]RAPDU: 90 00 [18:42:44]wFMCommunicate OK [18:42:44]wFMCommunicate request_size=4 [18:42:44]MH_SAM_APDU [18:42:44]CAPDU: 80 0D 03 02 [18:42:44]Write to MH i2c: E2 08 00 BF 5F 80 0D 03 02 00 00 00 00 99 [18:42:44]Write i2c OK [18:42:44]MH_I2C_Read... [18:42:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:42:44]Read from MH i2c: E2 [18:42:44]MH_I2C_Read... [18:42:44]Read from MH i2c: E2 0B 00 [18:42:44]MH_I2C_Read... [18:42:44]Read from MH i2c: E2 0B 00 BF 5F 00 45 9A 56 47 AC 72 96 7F 90 00 49 [18:42:44]RAPDU: 45 9A 56 47 AC 72 96 7F 90 00 [18:42:44]wFMCommunicate OK [18:42:44]SAM_PROTO_SignData done [18:42:44]FM_MakeSignedData done [18:42:44]CreateOFDProtocolMessage [18:42:44]wFMCommunicate request_size=4 [18:42:44]MH_SAM_APDU [18:42:44]CAPDU: 80 11 00 00 [18:42:44]Write to MH i2c: E2 08 00 C0 5F 80 11 00 00 00 00 00 00 99 [18:42:44]Write i2c OK [18:42:44]MH_I2C_Read... [18:42:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:44]Read from MH i2c: E2 [18:42:44]MH_I2C_Read... [18:42:44]Read from MH i2c: E2 17 00 [18:42:44]MH_I2C_Read... [18:42:44]Read from MH i2c: E2 17 00 C0 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F0 [18:42:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [18:42:44]wFMCommunicate OK [18:42:44]CreateOFDProtocolMessage done [18:42:44]OFDSenderStorePacket 92663 [18:42:44]StoreOFDPacket docnum=92663 [18:42:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 C3 01 00 00 7E 17 BB 01 01 00 5A 03 01 00 03 00 AF 01 1E 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 39 37 06 04 47 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 D0 90 D0 BD D0 B0 D0 BD D0 B0 D1 81 2D D0 B3 D1 83 D0 B0 D0 B2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 39 39 33 06 04 2E 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B8 D0 BB D0 BA D0 B8 20 D0 92 D0 B5 D0 B9 20 32 36 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 AC 2A E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F7 69 01 00 35 04 06 00 C1 1B AB AF 46 26 45 9A 56 47 AC 72 96 7F [18:42:44]CheckFolder [18:42:44]dirname=/storage/ofd_packets [18:42:44]CheckFolder done [18:42:44]ProducePacketName [18:42:44]name=ofd_packets/00092663 [18:42:44]NVStorageSaveData ofd_packets/00092663 [18:42:44]File name is /storage/ofd_packets/00092663 [18:42:44]Write 481 bytes [18:42:44]NVStorageSaveData done [18:42:44]OFDSenderStorePacket done [18:42:44]KKMCreateOFDPacket done [18:42:44]NVStorageSaveData kkm_last_timestamp [18:42:44]File name is /storage/kkm_last_timestamp [18:42:44]Write 4 bytes [18:42:44]NVStorageSaveData done [18:42:44]ExternCall_PrintAddStr [18:42:44]wPrintStart [18:42:44]Write to MH i2c: 01 00 00 C1 5F 20 [18:42:44]Write i2c OK [18:42:44]MH_I2C_Read... [18:42:44]Read from MH i2c: 01 [18:42:44]MH_I2C_Read... [18:42:44]Read from MH i2c: 01 07 00 [18:42:44]MH_I2C_Read... [18:42:44]Read from MH i2c: 01 07 00 C1 5F 00 00 00 00 00 FF 0F 35 [18:42:44]RasterBufferAndPrint [18:42:44]line Счет N : (3)127552 [18:42:44]line ИНН: 02508201610067 [18:42:44]line Контрольно-Кассовый Чек [18:42:44]line ПРОДАЖА [18:42:44]line Товар: 4700000483297 [18:42:44]line Энергетический напиток Nitro Ананас-гуав [18:42:44]line 2.000 * 95.00 [18:42:44]line = 190.00 [18:42:44]line НДС 12% НСП 1% [18:42:44]line > о реализуемом товаре [18:42:44]line Товар: 4011100091993 [18:42:44]line Шок Батончик Милки Вей 26г [18:42:44]line 2.000 * 35.00 [18:42:44]line = 70.00 [18:42:44]line НДС 12% НСП 1% [18:42:44]line > о реализуемом товаре [18:42:44]line ИТОГО: 260.00 [18:42:44]line НСП 1% : 2.30 [18:42:44]line НДС 12% : 27.61 [18:42:44]line Наличными: 260.00 [18:42:44]line Безнал.: 0.00 [18:42:44]line Место: АЗС № 5 "Партнер Нефть" [18:42:44]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [18:42:44]line СНО: Общий режим [18:42:44]line Чек 111 15.09.2024 18:42 [18:42:44]line Смена: 507 ФФД: 1.0 [18:42:44]line ЗНМ: 03000000022 [18:42:44]line РНМ: 0000000000091423 [18:42:44]line Версия ККМ: 001 [18:42:44]line ФМ: 0000000000874692 [18:42:44]line ФД: 92663 [18:42:44]line ФПД: 212324588668454 [18:42:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T184252&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92663&fm=212324588668454&tin=02508201610067®Number=0000000000091423&sum=26000 [18:42:44]line 0 [18:42:44]written 0, free lines is 4095 [18:42:44]OFD Sender: Processing packet 92663 [packets to send 63, broken 62] [18:42:44]ProducePacketName [18:42:44]name=ofd_packets/00092663 [18:42:44]OFD Sender: To server: pG, [18:42:44]CommunicateWithHost lk.salyk.kg:30040 [18:42:44]ConnectInit lk.salyk.kg [18:42:44]Connected sock=10 [18:42:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 C3 01 00 00 7E 17 BB 01 01 00 5A 03 01 00 03 00 AF 01 1E 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 39 37 06 04 47 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 D0 90 D0 BD D0 B0 D0 BD D0 B0 D1 81 2D D0 B3 D1 83 D0 B0 D0 B2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 39 39 33 06 04 2E 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B8 D0 BB D0 BA D0 B8 20 D0 92 D0 B5 D0 B9 20 32 36 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 AC 2A E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F7 69 01 00 35 04 06 00 C1 1B AB AF 46 26 45 9A 56 47 AC 72 96 7F [18:42:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 CE 23 47 00 2E 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F7 69 01 00 F4 03 04 00 23 D3 E6 66 B6 04 01 00 00 D4 9E 8D 4E 8A 87 97 72 [18:42:44]CommunicateWithHost err = 0 [18:42:44]CheckOFDResponse [18:42:44]1017 (14) - 77093643461234 [18:42:44]1041 (16) - 0000000000874692 [18:42:44]1040 (4) - 92663 [18:42:44]1012 (4) - 15.09.2024 12:29 [18:42:44]1206 (1) - 0 [18:42:44]OFD Sender: Remove packet 92663 [18:42:44]ProducePacketName [18:42:44]name=ofd_packets/00092663 [18:42:44]NVStorageDeleteData [18:42:45]Write to MH i2c: 01 00 00 F0 5F 4F [18:42:45]Write i2c OK [18:42:45]MH_I2C_Read... [18:42:45]Read from MH i2c: 01 [18:42:45]MH_I2C_Read... [18:42:45]Read from MH i2c: 01 07 00 [18:42:45]MH_I2C_Read... [18:42:45]Read from MH i2c: 01 07 00 F0 5F 00 00 00 00 00 D0 0C 32 [18:42:45]RasterBufferAndPrint [18:42:45]line [18:42:45]line [18:42:45]line [18:42:45]line [18:42:45]line [18:42:45]written 0, free lines is 3289 [18:42:45]MH_Cut [18:42:45]Write to MH i2c: D1 01 00 F7 5F 01 28 [18:42:45]Write i2c OK [18:42:45]MH_I2C_Read... [18:42:45]Read from MH i2c: D1 [18:42:45]MH_I2C_Read... [18:42:45]Read from MH i2c: D1 01 00 [18:42:45]MH_I2C_Read... [18:42:45]Read from MH i2c: D1 01 00 F7 5F 00 27 [18:42:45]Write to MH i2c: 01 00 00 F8 5F 57 [18:42:45]Write i2c OK [18:42:45]MH_I2C_Read... [18:42:45]OFD Sender: No OFD packet to send [18:42:45]*** Cut start [18:42:45]*** Purtial cut [18:42:45]*** Stage 1: CUTSNS_PIN = 1 [18:42:47]Read from MH i2c: 01 [18:42:47]MH_I2C_Read... [18:42:47]*** Stop cut motor [18:42:47]*** Cut end [18:42:47]Read from MH i2c: 01 07 00 [18:42:47]MH_I2C_Read... [18:42:47]Read from MH i2c: 01 07 00 F8 5F 00 00 00 00 00 FF 0F 6C [18:42:47]process_action close_receipt done [18:42:47]requested_data is exist [18:42:47]produce_requested_data [18:42:47]requested_item fm.sn is exist - process it [18:42:47]wFMCommunicate request_size=4 [18:42:47]MH_SAM_APDU [18:42:47]CAPDU: 80 11 00 00 [18:42:47]Write to MH i2c: E2 08 00 F9 5F 80 11 00 00 00 00 00 00 D2 [18:42:47]Write i2c OK [18:42:47]MH_I2C_Read... [18:42:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:47]Read from MH i2c: E2 [18:42:47]MH_I2C_Read... [18:42:47]Read from MH i2c: E2 17 00 [18:42:47]MH_I2C_Read... [18:42:47]Read from MH i2c: E2 17 00 F9 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 29 [18:42:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [18:42:47]wFMCommunicate OK [18:42:47]requested_item fd.num is exist - process it [18:42:47]SAM_PROTO_GetFieldsCounters [18:42:47]wFMCommunicate request_size=4 [18:42:47]MH_SAM_APDU [18:42:47]CAPDU: 80 13 00 00 [18:42:47]Write to MH i2c: E2 08 00 FA 5F 80 13 00 00 00 00 00 00 D5 [18:42:47]Write i2c OK [18:42:47]MH_I2C_Read... [18:42:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:42:48]Read from MH i2c: E2 [18:42:48]MH_I2C_Read... [18:42:48]Read from MH i2c: E2 62 00 [18:42:48]MH_I2C_Read... [18:42:48]Read from MH i2c: E2 62 00 FA 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F7 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [18:42:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F7 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:42:48]wFMCommunicate OK [18:42:48]SAM_PROTO_GetFieldsCounters done [18:42:48]requested_item shift.num is exist - process it [18:42:48]requested_item shift.opened is exist - process it [18:42:48]req_shift_opened [18:42:48]FM_GetShiftState [18:42:48]SAM_PROTO_GetShiftState [18:42:48]wFMCommunicate request_size=4 [18:42:48]MH_SAM_APDU [18:42:48]CAPDU: 80 13 01 00 [18:42:48]Write to MH i2c: E2 08 00 FB 5F 80 13 01 00 00 00 00 00 D7 [18:42:48]Write i2c OK [18:42:48]MH_I2C_Read... [18:42:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:48]Read from MH i2c: E2 [18:42:48]MH_I2C_Read... [18:42:48]Read from MH i2c: E2 0E 00 [18:42:48]MH_I2C_Read... [18:42:48]Read from MH i2c: E2 0E 00 FB 5F 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 59 [18:42:48]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [18:42:48]wFMCommunicate OK [18:42:48]SAM_PROTO_GetShiftState done [18:42:48]FM_GetShiftState done [18:42:48]req_shift_opened done [18:42:48]requested_item shift.open_date is exist - process it [18:42:48]req_shift_open_date [18:42:48]req_shift_open_date done [18:42:48]produce_requested_data done [18:42:48]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92663,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [18:42:48]process_action_free close_receipt [18:42:48]json_value_free [18:42:48]json_value_free done [18:42:48]process_json_proto returns [18:42:48]Send response to host [18:42:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92663,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [18:42:48]free response buf [18:42:48]execute_script done [18:42:48]execute_script returns [18:42:48]free content buf [18:42:48]Sock 8.Close socket [18:42:48]Sock 8.Thread stoped [18:42:50]OFD Sender: No OFD packet to send [18:42:55]OFD Sender: No OFD packet to send [18:43:00]OFD Sender: No OFD packet to send [18:43:05]OFD Sender: No OFD packet to send [18:43:10]OFD Sender: No OFD packet to send [18:43:15]OFD Sender: No OFD packet to send [18:43:20]OFD Sender: No OFD packet to send [18:43:25]OFD Sender: No OFD packet to send [18:43:30]OFD Sender: No OFD packet to send [18:43:35]OFD Sender: No OFD packet to send [18:43:40]OFD Sender: No OFD packet to send [18:43:45]OFD Sender: No OFD packet to send [18:43:50]OFD Sender: No OFD packet to send [18:43:55]OFD Sender: No OFD packet to send [18:44:00]OFD Sender: No OFD packet to send [18:44:05]OFD Sender: No OFD packet to send [18:44:10]OFD Sender: No OFD packet to send [18:44:15]OFD Sender: No OFD packet to send [18:44:20]OFD Sender: No OFD packet to send [18:44:25]OFD Sender: No OFD packet to send [18:44:30]OFD Sender: No OFD packet to send [18:44:35]OFD Sender: No OFD packet to send [18:44:40]OFD Sender: No OFD packet to send [18:44:45]OFD Sender: No OFD packet to send [18:44:50]OFD Sender: No OFD packet to send [18:44:55]OFD Sender: No OFD packet to send [18:45:00]OFD Sender: No OFD packet to send [18:45:05]OFD Sender: No OFD packet to send [18:45:10]OFD Sender: No OFD packet to send [18:45:15]OFD Sender: No OFD packet to send [18:45:20]OFD Sender: No OFD packet to send [18:45:25]OFD Sender: No OFD packet to send [18:45:30]OFD Sender: No OFD packet to send [18:45:35]OFD Sender: No OFD packet to send [18:45:40]OFD Sender: No OFD packet to send [18:45:45]OFD Sender: No OFD packet to send [18:45:50]OFD Sender: No OFD packet to send [18:45:55]OFD Sender: No OFD packet to send [18:46:00]OFD Sender: No OFD packet to send [18:46:05]OFD Sender: No OFD packet to send [18:46:10]OFD Sender: No OFD packet to send [18:46:15]OFD Sender: No OFD packet to send [18:46:20]OFD Sender: No OFD packet to send [18:46:25]OFD Sender: No OFD packet to send [18:46:30]OFD Sender: No OFD packet to send [18:46:35]OFD Sender: No OFD packet to send [18:46:40]OFD Sender: No OFD packet to send [18:46:45]OFD Sender: No OFD packet to send [18:46:50]OFD Sender: No OFD packet to send [18:46:55]OFD Sender: No OFD packet to send [18:47:00]OFD Sender: No OFD packet to send [18:47:05]OFD Sender: No OFD packet to send [18:47:10]OFD Sender: No OFD packet to send [18:47:15]OFD Sender: No OFD packet to send [18:47:20]OFD Sender: No OFD packet to send [18:47:25]OFD Sender: No OFD packet to send [18:47:30]OFD Sender: No OFD packet to send [18:47:35]OFD Sender: No OFD packet to send [18:47:40]OFD Sender: No OFD packet to send [18:47:45]OFD Sender: No OFD packet to send [18:47:50]OFD Sender: No OFD packet to send [18:47:55]OFD Sender: No OFD packet to send [18:48:00]OFD Sender: No OFD packet to send [18:48:05]OFD Sender: No OFD packet to send [18:48:10]OFD Sender: No OFD packet to send [18:48:15]OFD Sender: No OFD packet to send [18:48:20]OFD Sender: No OFD packet to send [18:48:25]OFD Sender: No OFD packet to send [18:48:30]OFD Sender: No OFD packet to send [18:48:35]OFD Sender: No OFD packet to send [18:48:40]OFD Sender: No OFD packet to send [18:48:45]OFD Sender: No OFD packet to send [18:48:50]OFD Sender: No OFD packet to send [18:48:55]OFD Sender: No OFD packet to send [18:49:00]OFD Sender: No OFD packet to send [18:49:05]OFD Sender: No OFD packet to send [18:49:10]OFD Sender: No OFD packet to send [18:49:15]OFD Sender: No OFD packet to send [18:49:20]OFD Sender: No OFD packet to send [18:49:25]OFD Sender: No OFD packet to send [18:49:30]OFD Sender: No OFD packet to send [18:49:35]OFD Sender: No OFD packet to send [18:49:40]OFD Sender: No OFD packet to send [18:49:45]OFD Sender: No OFD packet to send [18:49:50]OFD Sender: No OFD packet to send [18:49:55]OFD Sender: No OFD packet to send [18:50:00]OFD Sender: No OFD packet to send [18:50:05]OFD Sender: No OFD packet to send [18:50:10]OFD Sender: No OFD packet to send [18:50:15]OFD Sender: No OFD packet to send [18:50:20]OFD Sender: No OFD packet to send [18:50:25]OFD Sender: No OFD packet to send [18:50:30]OFD Sender: No OFD packet to send [18:50:35]OFD Sender: No OFD packet to send [18:50:40]OFD Sender: No OFD packet to send [18:50:45]OFD Sender: No OFD packet to send [18:50:50]OFD Sender: No OFD packet to send [18:50:55]OFD Sender: No OFD packet to send [18:51:00]OFD Sender: No OFD packet to send [18:51:05]OFD Sender: No OFD packet to send [18:51:10]OFD Sender: No OFD packet to send [18:51:15]OFD Sender: No OFD packet to send [18:51:20]OFD Sender: No OFD packet to send [18:51:25]OFD Sender: No OFD packet to send [18:51:30]OFD Sender: No OFD packet to send [18:51:35]OFD Sender: No OFD packet to send [18:51:40]OFD Sender: No OFD packet to send [18:51:45]OFD Sender: No OFD packet to send [18:51:50]OFD Sender: No OFD packet to send [18:51:55]OFD Sender: No OFD packet to send [18:52:00]OFD Sender: No OFD packet to send [18:52:05]OFD Sender: No OFD packet to send [18:52:11]OFD Sender: No OFD packet to send [18:52:16]OFD Sender: No OFD packet to send [18:52:21]OFD Sender: No OFD packet to send [18:52:26]OFD Sender: No OFD packet to send [18:52:31]OFD Sender: No OFD packet to send [18:52:36]OFD Sender: No OFD packet to send [18:52:41]OFD Sender: No OFD packet to send [18:52:46]OFD Sender: No OFD packet to send [18:52:51]OFD Sender: No OFD packet to send [18:52:56]OFD Sender: No OFD packet to send [18:53:01]OFD Sender: No OFD packet to send [18:53:06]OFD Sender: No OFD packet to send [18:53:11]OFD Sender: No OFD packet to send [18:53:16]OFD Sender: No OFD packet to send [18:53:21]OFD Sender: No OFD packet to send [18:53:26]OFD Sender: No OFD packet to send [18:53:31]OFD Sender: No OFD packet to send [18:53:36]OFD Sender: No OFD packet to send [18:53:41]OFD Sender: No OFD packet to send [18:53:46]OFD Sender: No OFD packet to send [18:53:51]OFD Sender: No OFD packet to send [18:53:56]OFD Sender: No OFD packet to send [18:54:01]OFD Sender: No OFD packet to send [18:54:06]OFD Sender: No OFD packet to send [18:54:11]OFD Sender: No OFD packet to send [18:54:16]OFD Sender: No OFD packet to send [18:54:21]OFD Sender: No OFD packet to send [18:54:26]OFD Sender: No OFD packet to send [18:54:31]OFD Sender: No OFD packet to send [18:54:36]OFD Sender: No OFD packet to send [18:54:41]OFD Sender: No OFD packet to send [18:54:46]OFD Sender: No OFD packet to send [18:54:51]OFD Sender: No OFD packet to send [18:54:56]OFD Sender: No OFD packet to send [18:55:01]OFD Sender: No OFD packet to send [18:55:06]OFD Sender: No OFD packet to send [18:55:11]OFD Sender: No OFD packet to send [18:55:16]OFD Sender: No OFD packet to send [18:55:21]OFD Sender: No OFD packet to send [18:55:26]OFD Sender: No OFD packet to send [18:55:31]OFD Sender: No OFD packet to send [18:55:36]OFD Sender: No OFD packet to send [18:55:41]OFD Sender: No OFD packet to send [18:55:46]OFD Sender: No OFD packet to send [18:55:51]OFD Sender: No OFD packet to send [18:55:56]OFD Sender: No OFD packet to send [18:56:01]OFD Sender: No OFD packet to send [18:56:06]OFD Sender: No OFD packet to send [18:56:11]OFD Sender: No OFD packet to send [18:56:16]OFD Sender: No OFD packet to send [18:56:21]OFD Sender: No OFD packet to send [18:56:26]OFD Sender: No OFD packet to send [18:56:31]OFD Sender: No OFD packet to send [18:56:36]OFD Sender: No OFD packet to send [18:56:41]OFD Sender: No OFD packet to send [18:56:46]OFD Sender: No OFD packet to send [18:56:51]OFD Sender: No OFD packet to send [18:56:56]OFD Sender: No OFD packet to send [18:57:01]OFD Sender: No OFD packet to send [18:57:06]OFD Sender: No OFD packet to send [18:57:11]OFD Sender: No OFD packet to send [18:57:16]OFD Sender: No OFD packet to send [18:57:21]OFD Sender: No OFD packet to send [18:57:26]OFD Sender: No OFD packet to send [18:57:31]OFD Sender: No OFD packet to send [18:57:36]OFD Sender: No OFD packet to send [18:57:41]OFD Sender: No OFD packet to send [18:57:46]OFD Sender: No OFD packet to send [18:57:51]OFD Sender: No OFD packet to send [18:57:56]OFD Sender: No OFD packet to send [18:58:01]OFD Sender: No OFD packet to send [18:58:06]OFD Sender: No OFD packet to send [18:58:11]OFD Sender: No OFD packet to send [18:58:16]OFD Sender: No OFD packet to send [18:58:21]OFD Sender: No OFD packet to send [18:58:26]OFD Sender: No OFD packet to send [18:58:31]OFD Sender: No OFD packet to send [18:58:36]OFD Sender: No OFD packet to send [18:58:41]OFD Sender: No OFD packet to send [18:58:46]OFD Sender: No OFD packet to send [18:58:51]OFD Sender: No OFD packet to send [18:58:56]OFD Sender: No OFD packet to send [18:59:01]OFD Sender: No OFD packet to send [18:59:06]OFD Sender: No OFD packet to send [18:59:11]OFD Sender: No OFD packet to send [18:59:16]OFD Sender: No OFD packet to send [18:59:21]OFD Sender: No OFD packet to send [18:59:26]OFD Sender: No OFD packet to send [18:59:31]OFD Sender: No OFD packet to send [18:59:36]OFD Sender: No OFD packet to send [18:59:41]OFD Sender: No OFD packet to send [18:59:46]OFD Sender: No OFD packet to send [18:59:51]OFD Sender: No OFD packet to send [18:59:56]OFD Sender: No OFD packet to send [19:00:01]OFD Sender: No OFD packet to send [19:00:06]OFD Sender: No OFD packet to send [19:00:11]OFD Sender: No OFD packet to send [19:00:16]OFD Sender: No OFD packet to send [19:00:21]OFD Sender: No OFD packet to send [19:00:26]OFD Sender: No OFD packet to send [19:00:31]OFD Sender: No OFD packet to send [19:00:36]OFD Sender: No OFD packet to send [19:00:41]OFD Sender: No OFD packet to send [19:00:46]OFD Sender: No OFD packet to send [19:00:51]OFD Sender: No OFD packet to send [19:00:56]OFD Sender: No OFD packet to send [19:01:01]OFD Sender: No OFD packet to send [19:01:06]OFD Sender: No OFD packet to send [19:01:11]OFD Sender: No OFD packet to send [19:01:16]OFD Sender: No OFD packet to send [19:01:21]OFD Sender: No OFD packet to send [19:01:26]OFD Sender: No OFD packet to send [19:01:31]OFD Sender: No OFD packet to send [19:01:36]OFD Sender: No OFD packet to send [19:01:41]OFD Sender: No OFD packet to send [19:01:46]OFD Sender: No OFD packet to send [19:01:51]OFD Sender: No OFD packet to send [19:01:56]OFD Sender: No OFD packet to send [19:02:01]OFD Sender: No OFD packet to send [19:02:06]OFD Sender: No OFD packet to send [19:02:11]OFD Sender: No OFD packet to send [19:02:16]OFD Sender: No OFD packet to send [19:02:21]OFD Sender: No OFD packet to send [19:02:26]OFD Sender: No OFD packet to send [19:02:31]OFD Sender: No OFD packet to send [19:02:36]OFD Sender: No OFD packet to send [19:02:41]OFD Sender: No OFD packet to send [19:02:46]OFD Sender: No OFD packet to send [19:02:51]OFD Sender: No OFD packet to send [19:02:56]OFD Sender: No OFD packet to send [19:03:01]OFD Sender: No OFD packet to send [19:03:06]OFD Sender: No OFD packet to send [19:03:11]OFD Sender: No OFD packet to send [19:03:16]OFD Sender: No OFD packet to send [19:03:21]OFD Sender: No OFD packet to send [19:03:26]OFD Sender: No OFD packet to send [19:03:31]OFD Sender: No OFD packet to send [19:03:36]OFD Sender: No OFD packet to send [19:03:41]OFD Sender: No OFD packet to send [19:03:46]OFD Sender: No OFD packet to send [19:03:51]OFD Sender: No OFD packet to send [19:03:56]OFD Sender: No OFD packet to send [19:04:01]OFD Sender: No OFD packet to send [19:04:06]OFD Sender: No OFD packet to send [19:04:11]OFD Sender: No OFD packet to send [19:04:16]OFD Sender: No OFD packet to send [19:04:21]OFD Sender: No OFD packet to send [19:04:26]OFD Sender: No OFD packet to send [19:04:31]OFD Sender: No OFD packet to send [19:04:36]OFD Sender: No OFD packet to send [19:04:41]OFD Sender: No OFD packet to send [19:04:46]OFD Sender: No OFD packet to send [19:04:51]OFD Sender: No OFD packet to send [19:04:56]OFD Sender: No OFD packet to send [19:05:01]OFD Sender: No OFD packet to send [19:05:06]OFD Sender: No OFD packet to send [19:05:11]OFD Sender: No OFD packet to send [19:05:16]OFD Sender: No OFD packet to send [19:05:21]OFD Sender: No OFD packet to send [19:05:26]OFD Sender: No OFD packet to send [19:05:31]OFD Sender: No OFD packet to send [19:05:36]OFD Sender: No OFD packet to send [19:05:41]OFD Sender: No OFD packet to send [19:05:46]OFD Sender: No OFD packet to send [19:05:51]OFD Sender: No OFD packet to send [19:05:56]OFD Sender: No OFD packet to send [19:06:01]OFD Sender: No OFD packet to send [19:06:06]OFD Sender: No OFD packet to send [19:06:11]OFD Sender: No OFD packet to send [19:06:16]OFD Sender: No OFD packet to send [19:06:21]OFD Sender: No OFD packet to send [19:06:26]accept exits with 9 [19:06:26]New connection [19:06:26]New thread 3066658148 created [19:06:26]Thread 3066801508 joined [19:06:26]Waiting for new connection... [19:06:26] Sock 9.Parse request [19:06:26]Sock 9.Check first char [19:06:26]Sock 9.First char is OK [19:06:26]request: POST /json_proto HTTP/1.0 [19:06:26]Method: POST [19:06:26]URL: /json_proto [19:06:26]Method is POST - this is cgi request [19:06:26]url: /json_proto [19:06:26]query_string will be loaded in cgi processing [19:06:26]execute_cgi json_proto POST (null) [19:06:26]execute_cgi path=json_proto method=POST [19:06:26]POST find Content-Length [19:06:26]Host: 172.17.57.71:8080 [19:06:26]Content-Length: 727 [19:06:26]Content-Type: application/json [19:06:26] [19:06:26]POST finish read [19:06:26]Found Content-Length = 727 [19:06:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127553", "tax_sys" : 0, "items" : [ { "code": "4600338001623", "name": "\u0412\u043E\u0434\u0430 \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043D\u0435\u0433\u0430\u0437\u0438\u0440 \u0434/\u0434\u0435\u0442\u0435\u0439 0,33\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:26]execute_script... [19:06:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127553", "tax_sys" : 0, "items" : [ { "code": "4600338001623", "name": "\u0412\u043E\u0434\u0430 \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043D\u0435\u0433\u0430\u0437\u0438\u0440 \u0434/\u0434\u0435\u0442\u0435\u0439 0,33\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:26]POST & json_proto [19:06:26]process_json_proto [19:06:26]json parsed OK: [19:06:26]protocol is kg_v1.0 [19:06:26]action value=close_receipt [19:06:26]process_action close_receipt [19:06:26]cmd_close_receipt [19:06:26]MH_GetDate [19:06:26]Write to MH i2c: F0 00 00 FC 5F 4A [19:06:26]Write i2c OK [19:06:26]MH_I2C_Read... [19:06:26]Read from MH i2c: F0 [19:06:26]MH_I2C_Read... [19:06:26]Read from MH i2c: F0 09 00 [19:06:26]MH_I2C_Read... [19:06:26]Read from MH i2c: F0 09 00 FC 5F 00 3C 30 E7 66 33 3A A4 66 83 [19:06:26]GetLastDocTimeStamp 1726425772 [19:06:26]current date 1726427196 [19:06:26]FM_GetShiftState [19:06:26]SAM_PROTO_GetShiftState [19:06:26]wFMCommunicate request_size=4 [19:06:26]MH_SAM_APDU [19:06:26]CAPDU: 80 13 01 00 [19:06:26]Write to MH i2c: E2 08 00 FD 5F 80 13 01 00 00 00 00 00 D9 [19:06:26]Write i2c OK [19:06:26]MH_I2C_Read... [19:06:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:26]Read from MH i2c: E2 [19:06:26]MH_I2C_Read... [19:06:26]Read from MH i2c: E2 0E 00 [19:06:26]MH_I2C_Read... [19:06:26]Read from MH i2c: E2 0E 00 FD 5F 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 5B [19:06:26]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [19:06:26]wFMCommunicate OK [19:06:26]SAM_PROTO_GetShiftState done [19:06:26]FM_GetShiftState done [19:06:26]opened in 1726359809 [19:06:26]opened+sec_in_day 1726446209 [19:06:26]quantity*price = 8000 [19:06:26]sum+1 = 8001 [19:06:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 112 15.09.2024 19:06 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92664 ФПД: 169242082069366 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T190636&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92664&fm=169242082069366&tin=02508201610067®Number=0000000000091423&sum=8000 0 [19:06:27]StoreToDocumentArchive [19:06:27]shift 507 fd 92664 [19:06:27]save to /storage/0507/doc_00092664 [19:06:27]save last doc name /storage/0507/doc_00092664 to /storage/kkm_last_doc_name [19:06:27]save OK [19:06:27]Clear old archive folders... [19:06:27]ProcessDocumentItem done err = 0, tmpTLVsize=306 [19:06:27]tlvbuf is 01041710 [19:06:27]SAM_PROTO_ClearQueue [19:06:27]wFMCommunicate request_size=4 [19:06:27]MH_SAM_APDU [19:06:27]CAPDU: 80 09 00 00 [19:06:27]Write to MH i2c: E2 08 00 0A 60 80 09 00 00 00 00 00 00 DC [19:06:27]Write i2c OK [19:06:27]MH_I2C_Read... [19:06:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:27]Read from MH i2c: E2 [19:06:27]MH_I2C_Read... [19:06:27]Read from MH i2c: E2 03 00 [19:06:27]MH_I2C_Read... [19:06:27]Read from MH i2c: E2 03 00 0A 60 00 90 00 DE [19:06:27]RAPDU: 90 00 [19:06:27]wFMCommunicate OK [19:06:27]SAM_PROTO_ClearQueue done [19:06:27]KKMCreateOFDPacket [19:06:27]OFDProtocolAddRootSTLVToBuf [19:06:27]FM_MakeSignedData [19:06:27]FM_MakeSignedData [19:06:27]SAM_PROTO_SignData [19:06:27]wFMCommunicate request_size=4 [19:06:27]MH_SAM_APDU [19:06:27]CAPDU: 80 0D 01 02 [19:06:27]Write to MH i2c: E2 08 00 0B 60 80 0D 01 02 00 00 00 00 E4 [19:06:27]Write i2c OK [19:06:27]MH_I2C_Read... [19:06:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:27]Read from MH i2c: E2 [19:06:27]MH_I2C_Read... [19:06:27]Read from MH i2c: E2 03 00 [19:06:27]MH_I2C_Read... [19:06:27]Read from MH i2c: E2 03 00 0B 60 00 90 00 DF [19:06:27]RAPDU: 90 00 [19:06:27]wFMCommunicate OK [19:06:27]wFMCommunicate request_size=255 [19:06:27]MH_SAM_APDU [19:06:27]CAPDU: 80 0D 02 02 FA 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 3C 30 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 [19:06:27]Write to MH i2c: E2 02 01 0C 60 80 0D 02 02 FA 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 3C 30 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 00 50 [19:06:27]Write i2c OK [19:06:27]MH_I2C_Read... [19:06:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:27]Read from MH i2c: E2 [19:06:27]MH_I2C_Read... [19:06:27]Read from MH i2c: E2 03 00 [19:06:27]MH_I2C_Read... [19:06:27]Read from MH i2c: E2 03 00 0C 60 00 90 00 E0 [19:06:27]RAPDU: 90 00 [19:06:27]wFMCommunicate OK [19:06:27]wFMCommunicate request_size=65 [19:06:27]MH_SAM_APDU [19:06:27]CAPDU: 80 0D 02 02 3C 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F8 69 01 00 35 04 06 00 99 EC BE 2E CB 76 [19:06:27]Write to MH i2c: E2 44 00 0D 60 80 0D 02 02 3C 00 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F8 69 01 00 35 04 06 00 99 EC BE 2E CB 76 00 00 48 [19:06:27]Write i2c OK [19:06:27]MH_I2C_Read... [19:06:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:27]Read from MH i2c: E2 [19:06:27]MH_I2C_Read... [19:06:27]Read from MH i2c: E2 03 00 [19:06:27]MH_I2C_Read... [19:06:27]Read from MH i2c: E2 03 00 0D 60 00 90 00 E1 [19:06:27]RAPDU: 90 00 [19:06:27]wFMCommunicate OK [19:06:27]wFMCommunicate request_size=4 [19:06:27]MH_SAM_APDU [19:06:27]CAPDU: 80 0D 03 02 [19:06:27]Write to MH i2c: E2 08 00 0E 60 80 0D 03 02 00 00 00 00 E9 [19:06:27]Write i2c OK [19:06:27]MH_I2C_Read... [19:06:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:27]Read from MH i2c: E2 [19:06:27]MH_I2C_Read... [19:06:27]Read from MH i2c: E2 0B 00 [19:06:27]MH_I2C_Read... [19:06:27]Read from MH i2c: E2 0B 00 0E 60 00 5E C6 56 2B 27 F7 1F 59 90 00 25 [19:06:27]RAPDU: 5E C6 56 2B 27 F7 1F 59 90 00 [19:06:27]wFMCommunicate OK [19:06:27]SAM_PROTO_SignData done [19:06:27]FM_MakeSignedData done [19:06:27]CreateOFDProtocolMessage [19:06:27]wFMCommunicate request_size=4 [19:06:27]MH_SAM_APDU [19:06:27]CAPDU: 80 11 00 00 [19:06:27]Write to MH i2c: E2 08 00 0F 60 80 11 00 00 00 00 00 00 E9 [19:06:27]Write i2c OK [19:06:27]MH_I2C_Read... [19:06:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:27]Read from MH i2c: E2 [19:06:27]MH_I2C_Read... [19:06:27]Read from MH i2c: E2 17 00 [19:06:27]MH_I2C_Read... [19:06:27]Read from MH i2c: E2 17 00 0F 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 40 [19:06:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:06:27]wFMCommunicate OK [19:06:27]CreateOFDProtocolMessage done [19:06:27]OFDSenderStorePacket 92664 [19:06:27]StoreOFDPacket docnum=92664 [19:06:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 46 01 00 00 94 33 3E 01 83 B0 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 3C 30 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F8 69 01 00 35 04 06 00 99 EC BE 2E CB 76 5E C6 56 2B 27 F7 1F 59 [19:06:27]CheckFolder [19:06:27]dirname=/storage/ofd_packets [19:06:27]CheckFolder done [19:06:27]ProducePacketName [19:06:27]name=ofd_packets/00092664 [19:06:27]NVStorageSaveData ofd_packets/00092664 [19:06:27]File name is /storage/ofd_packets/00092664 [19:06:27]Write 356 bytes [19:06:27]NVStorageSaveData done [19:06:27]OFDSenderStorePacket done [19:06:27]KKMCreateOFDPacket done [19:06:27]NVStorageSaveData kkm_last_timestamp [19:06:27]File name is /storage/kkm_last_timestamp [19:06:27]Write 4 bytes [19:06:27]NVStorageSaveData done [19:06:27]ExternCall_PrintAddStr [19:06:27]wPrintStart [19:06:27]Write to MH i2c: 01 00 00 10 60 70 [19:06:27]Write i2c OK [19:06:27]MH_I2C_Read... [19:06:27]Read from MH i2c: 01 [19:06:27]MH_I2C_Read... [19:06:27]Read from MH i2c: 01 07 00 [19:06:27]MH_I2C_Read... [19:06:27]Read from MH i2c: 01 07 00 10 60 00 00 00 00 00 FF 0F 85 [19:06:27]RasterBufferAndPrint [19:06:27]line Счет N : (3)127553 [19:06:27]line ИНН: 02508201610067 [19:06:27]line Контрольно-Кассовый Чек [19:06:27]line ПРОДАЖА [19:06:27]line Товар: 4600338001623 [19:06:27]line Вода Фруто НЯНЯ негазир д/детей 0,33л [19:06:27]line 1.000 * 80.00 [19:06:27]line = 80.00 [19:06:27]line НДС 12% НСП 1% [19:06:27]line > о реализуемом товаре [19:06:27]line ИТОГО: 80.00 [19:06:27]line НСП 1% : 0.71 [19:06:27]line НДС 12% : 8.50 [19:06:27]line Наличными: 80.00 [19:06:27]line Безнал.: 0.00 [19:06:27]line Место: АЗС № 5 "Партнер Нефть" [19:06:27]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:06:27]line СНО: Общий режим [19:06:27]line Чек 112 15.09.2024 19:06 [19:06:27]line Смена: 507 ФФД: 1.0 [19:06:27]line ЗНМ: 03000000022 [19:06:27]line РНМ: 0000000000091423 [19:06:27]line Версия ККМ: 001 [19:06:27]line ФМ: 0000000000874692 [19:06:27]line ФД: 92664 [19:06:27]line ФПД: 169242082069366 [19:06:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T190636&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92664&fm=169242082069366&tin=02508201610067®Number=0000000000091423&sum=8000 [19:06:28]line 0 [19:06:28]OFD Sender: Processing packet 92664 [packets to send 63, broken 62] [19:06:28]ProducePacketName [19:06:28]name=ofd_packets/00092664 [19:06:28]OFD Sender: To server: pG, [19:06:28]CommunicateWithHost lk.salyk.kg:30040 [19:06:28]ConnectInit lk.salyk.kg [19:06:28]written 0, free lines is 4095 [19:06:28]Connected sock=8 [19:06:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 46 01 00 00 94 33 3E 01 83 B0 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 3C 30 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F8 69 01 00 35 04 06 00 99 EC BE 2E CB 76 5E C6 56 2B 27 F7 1F 59 [19:06:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 6C 48 47 00 11 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F8 69 01 00 F4 03 04 00 B3 D8 E6 66 B6 04 01 00 00 A0 4B 5C 9C 0B 1F 99 64 [19:06:28]CommunicateWithHost err = 0 [19:06:28]CheckOFDResponse [19:06:28]1017 (14) - 77093643461234 [19:06:28]1041 (16) - 0000000000874692 [19:06:28]1040 (4) - 92664 [19:06:28]1012 (4) - 15.09.2024 12:53 [19:06:28]1206 (1) - 0 [19:06:28]OFD Sender: Remove packet 92664 [19:06:28]ProducePacketName [19:06:28]name=ofd_packets/00092664 [19:06:28]NVStorageDeleteData [19:06:28]Write to MH i2c: 01 00 00 39 60 99 [19:06:28]Write i2c OK [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: 01 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: 01 07 00 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: 01 07 00 39 60 00 00 00 00 00 1A 0D C7 [19:06:28]RasterBufferAndPrint [19:06:28]line [19:06:28]line [19:06:28]line [19:06:28]line [19:06:28]line [19:06:28]written 0, free lines is 3362 [19:06:28]MH_Cut [19:06:28]Write to MH i2c: D1 01 00 40 60 01 72 [19:06:28]Write i2c OK [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: D1 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: D1 01 00 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: D1 01 00 40 60 00 71 [19:06:28]Write to MH i2c: 01 00 00 41 60 A1 [19:06:28]Write i2c OK [19:06:28]MH_I2C_Read... [19:06:28]OFD Sender: No OFD packet to send [19:06:29]*** Cut start [19:06:29]*** Purtial cut [19:06:29]*** Stage 1: CUTSNS_PIN = 1 [19:06:31]Read from MH i2c: 01 [19:06:31]MH_I2C_Read... [19:06:31]*** Stop cut motor [19:06:31]*** Cut end [19:06:31]Read from MH i2c: 01 07 00 [19:06:31]MH_I2C_Read... [19:06:31]Read from MH i2c: 01 07 00 41 60 00 00 00 00 00 FF 0F B6 [19:06:31]process_action close_receipt done [19:06:31]requested_data is exist [19:06:31]produce_requested_data [19:06:31]requested_item fm.sn is exist - process it [19:06:31]wFMCommunicate request_size=4 [19:06:31]MH_SAM_APDU [19:06:31]CAPDU: 80 11 00 00 [19:06:31]Write to MH i2c: E2 08 00 42 60 80 11 00 00 00 00 00 00 1C [19:06:31]Write i2c OK [19:06:31]MH_I2C_Read... [19:06:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:31]Read from MH i2c: E2 [19:06:31]MH_I2C_Read... [19:06:31]Read from MH i2c: E2 17 00 [19:06:31]MH_I2C_Read... [19:06:31]Read from MH i2c: E2 17 00 42 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 73 [19:06:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:06:31]wFMCommunicate OK [19:06:31]requested_item fd.num is exist - process it [19:06:31]SAM_PROTO_GetFieldsCounters [19:06:31]wFMCommunicate request_size=4 [19:06:31]MH_SAM_APDU [19:06:31]CAPDU: 80 13 00 00 [19:06:31]Write to MH i2c: E2 08 00 43 60 80 13 00 00 00 00 00 00 1F [19:06:31]Write i2c OK [19:06:31]MH_I2C_Read... [19:06:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:31]Read from MH i2c: E2 [19:06:31]MH_I2C_Read... [19:06:31]Read from MH i2c: E2 62 00 [19:06:31]MH_I2C_Read... [19:06:31]Read from MH i2c: E2 62 00 43 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F8 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [19:06:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F8 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:06:31]wFMCommunicate OK [19:06:31]SAM_PROTO_GetFieldsCounters done [19:06:31]requested_item shift.num is exist - process it [19:06:31]requested_item shift.opened is exist - process it [19:06:31]req_shift_opened [19:06:31]FM_GetShiftState [19:06:31]SAM_PROTO_GetShiftState [19:06:31]wFMCommunicate request_size=4 [19:06:31]MH_SAM_APDU [19:06:31]CAPDU: 80 13 01 00 [19:06:31]Write to MH i2c: E2 08 00 44 60 80 13 01 00 00 00 00 00 21 [19:06:31]Write i2c OK [19:06:31]MH_I2C_Read... [19:06:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:31]Read from MH i2c: E2 [19:06:31]MH_I2C_Read... [19:06:31]Read from MH i2c: E2 0E 00 [19:06:31]MH_I2C_Read... [19:06:31]Read from MH i2c: E2 0E 00 44 60 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 A3 [19:06:31]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [19:06:31]wFMCommunicate OK [19:06:31]SAM_PROTO_GetShiftState done [19:06:31]FM_GetShiftState done [19:06:31]req_shift_opened done [19:06:31]requested_item shift.open_date is exist - process it [19:06:31]req_shift_open_date [19:06:31]req_shift_open_date done [19:06:31]produce_requested_data done [19:06:31]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92664,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [19:06:31]process_action_free close_receipt [19:06:31]json_value_free [19:06:31]json_value_free done [19:06:31]process_json_proto returns [19:06:31]Send response to host [19:06:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92664,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [19:06:31]free response buf [19:06:31]execute_script done [19:06:31]execute_script returns [19:06:31]free content buf [19:06:31]Sock 9.Close socket [19:06:31]Sock 9.Thread stoped [19:06:33]OFD Sender: No OFD packet to send [19:06:38]OFD Sender: No OFD packet to send [19:06:43]OFD Sender: No OFD packet to send [19:06:48]OFD Sender: No OFD packet to send [19:06:53]OFD Sender: No OFD packet to send [19:06:58]OFD Sender: No OFD packet to send [19:07:03]OFD Sender: No OFD packet to send [19:07:09]OFD Sender: No OFD packet to send [19:07:14]OFD Sender: No OFD packet to send [19:07:19]OFD Sender: No OFD packet to send [19:07:24]OFD Sender: No OFD packet to send [19:07:29]OFD Sender: No OFD packet to send [19:07:34]OFD Sender: No OFD packet to send [19:07:39]OFD Sender: No OFD packet to send [19:07:44]OFD Sender: No OFD packet to send [19:07:49]OFD Sender: No OFD packet to send [19:07:54]OFD Sender: No OFD packet to send [19:07:59]OFD Sender: No OFD packet to send [19:08:04]OFD Sender: No OFD packet to send [19:08:09]OFD Sender: No OFD packet to send [19:08:14]OFD Sender: No OFD packet to send [19:08:19]OFD Sender: No OFD packet to send [19:08:24]OFD Sender: No OFD packet to send [19:08:29]OFD Sender: No OFD packet to send [19:08:34]OFD Sender: No OFD packet to send [19:08:39]OFD Sender: No OFD packet to send [19:08:44]OFD Sender: No OFD packet to send [19:08:49]OFD Sender: No OFD packet to send [19:08:54]OFD Sender: No OFD packet to send [19:08:59]OFD Sender: No OFD packet to send [19:09:04]OFD Sender: No OFD packet to send [19:09:09]OFD Sender: No OFD packet to send [19:09:14]OFD Sender: No OFD packet to send [19:09:19]OFD Sender: No OFD packet to send [19:09:24]OFD Sender: No OFD packet to send [19:09:29]OFD Sender: No OFD packet to send [19:09:34]OFD Sender: No OFD packet to send [19:09:39]OFD Sender: No OFD packet to send [19:09:44]OFD Sender: No OFD packet to send [19:09:49]OFD Sender: No OFD packet to send [19:09:54]OFD Sender: No OFD packet to send [19:09:59]OFD Sender: No OFD packet to send [19:10:04]OFD Sender: No OFD packet to send [19:10:09]OFD Sender: No OFD packet to send [19:10:14]OFD Sender: No OFD packet to send [19:10:19]OFD Sender: No OFD packet to send [19:10:24]OFD Sender: No OFD packet to send [19:10:29]OFD Sender: No OFD packet to send [19:10:34]OFD Sender: No OFD packet to send [19:10:39]OFD Sender: No OFD packet to send [19:10:44]OFD Sender: No OFD packet to send [19:10:49]OFD Sender: No OFD packet to send [19:10:54]OFD Sender: No OFD packet to send [19:10:59]OFD Sender: No OFD packet to send [19:11:04]OFD Sender: No OFD packet to send [19:11:09]OFD Sender: No OFD packet to send [19:11:14]OFD Sender: No OFD packet to send [19:11:19]OFD Sender: No OFD packet to send [19:11:24]OFD Sender: No OFD packet to send [19:11:29]OFD Sender: No OFD packet to send [19:11:34]OFD Sender: No OFD packet to send [19:11:39]OFD Sender: No OFD packet to send [19:11:44]OFD Sender: No OFD packet to send [19:11:49]OFD Sender: No OFD packet to send [19:11:54]OFD Sender: No OFD packet to send [19:11:59]OFD Sender: No OFD packet to send [19:12:04]OFD Sender: No OFD packet to send [19:12:09]OFD Sender: No OFD packet to send [19:12:14]OFD Sender: No OFD packet to send [19:12:19]OFD Sender: No OFD packet to send [19:12:24]OFD Sender: No OFD packet to send [19:12:29]OFD Sender: No OFD packet to send [19:12:34]OFD Sender: No OFD packet to send [19:12:39]OFD Sender: No OFD packet to send [19:12:44]OFD Sender: No OFD packet to send [19:12:49]OFD Sender: No OFD packet to send [19:12:54]OFD Sender: No OFD packet to send [19:12:59]OFD Sender: No OFD packet to send [19:13:04]OFD Sender: No OFD packet to send [19:13:09]OFD Sender: No OFD packet to send [19:13:14]OFD Sender: No OFD packet to send [19:13:19]OFD Sender: No OFD packet to send [19:13:24]OFD Sender: No OFD packet to send [19:13:29]OFD Sender: No OFD packet to send [19:13:34]OFD Sender: No OFD packet to send [19:13:39]OFD Sender: No OFD packet to send [19:13:44]OFD Sender: No OFD packet to send [19:13:49]OFD Sender: No OFD packet to send [19:13:54]OFD Sender: No OFD packet to send [19:13:59]OFD Sender: No OFD packet to send [19:14:04]OFD Sender: No OFD packet to send [19:14:09]OFD Sender: No OFD packet to send [19:14:14]OFD Sender: No OFD packet to send [19:14:19]OFD Sender: No OFD packet to send [19:14:24]OFD Sender: No OFD packet to send [19:14:29]OFD Sender: No OFD packet to send [19:14:34]OFD Sender: No OFD packet to send [19:14:39]OFD Sender: No OFD packet to send [19:14:44]OFD Sender: No OFD packet to send [19:14:49]OFD Sender: No OFD packet to send [19:14:54]OFD Sender: No OFD packet to send [19:14:59]OFD Sender: No OFD packet to send [19:15:04]OFD Sender: No OFD packet to send [19:15:09]OFD Sender: No OFD packet to send [19:15:14]OFD Sender: No OFD packet to send [19:15:19]OFD Sender: No OFD packet to send [19:15:24]OFD Sender: No OFD packet to send [19:15:29]OFD Sender: No OFD packet to send [19:15:34]OFD Sender: No OFD packet to send [19:15:39]OFD Sender: No OFD packet to send [19:15:44]OFD Sender: No OFD packet to send [19:15:49]OFD Sender: No OFD packet to send [19:15:54]OFD Sender: No OFD packet to send [19:15:59]OFD Sender: No OFD packet to send [19:16:04]OFD Sender: No OFD packet to send [19:16:09]OFD Sender: No OFD packet to send [19:16:14]OFD Sender: No OFD packet to send [19:16:19]OFD Sender: No OFD packet to send [19:16:24]OFD Sender: No OFD packet to send [19:16:29]OFD Sender: No OFD packet to send [19:16:34]OFD Sender: No OFD packet to send [19:16:39]OFD Sender: No OFD packet to send [19:16:44]OFD Sender: No OFD packet to send [19:16:49]OFD Sender: No OFD packet to send [19:16:54]OFD Sender: No OFD packet to send [19:16:59]OFD Sender: No OFD packet to send [19:17:04]OFD Sender: No OFD packet to send [19:17:09]OFD Sender: No OFD packet to send [19:17:14]OFD Sender: No OFD packet to send [19:17:19]OFD Sender: No OFD packet to send [19:17:24]OFD Sender: No OFD packet to send [19:17:29]OFD Sender: No OFD packet to send [19:17:34]OFD Sender: No OFD packet to send [19:17:39]OFD Sender: No OFD packet to send [19:17:44]OFD Sender: No OFD packet to send [19:17:49]OFD Sender: No OFD packet to send [19:17:54]OFD Sender: No OFD packet to send [19:17:59]OFD Sender: No OFD packet to send [19:18:04]OFD Sender: No OFD packet to send [19:18:09]OFD Sender: No OFD packet to send [19:18:14]OFD Sender: No OFD packet to send [19:18:19]OFD Sender: No OFD packet to send [19:18:24]OFD Sender: No OFD packet to send [19:18:29]OFD Sender: No OFD packet to send [19:18:34]OFD Sender: No OFD packet to send [19:18:39]OFD Sender: No OFD packet to send [19:18:44]OFD Sender: No OFD packet to send [19:18:49]OFD Sender: No OFD packet to send [19:18:54]OFD Sender: No OFD packet to send [19:18:59]OFD Sender: No OFD packet to send [19:19:04]OFD Sender: No OFD packet to send [19:19:09]OFD Sender: No OFD packet to send [19:19:14]OFD Sender: No OFD packet to send [19:19:19]OFD Sender: No OFD packet to send [19:19:24]OFD Sender: No OFD packet to send [19:19:29]OFD Sender: No OFD packet to send [19:19:34]OFD Sender: No OFD packet to send [19:19:39]OFD Sender: No OFD packet to send [19:19:44]OFD Sender: No OFD packet to send [19:19:49]OFD Sender: No OFD packet to send [19:19:54]OFD Sender: No OFD packet to send [19:19:59]OFD Sender: No OFD packet to send [19:20:04]OFD Sender: No OFD packet to send [19:20:09]OFD Sender: No OFD packet to send [19:20:14]OFD Sender: No OFD packet to send [19:20:19]OFD Sender: No OFD packet to send [19:20:24]OFD Sender: No OFD packet to send [19:20:29]OFD Sender: No OFD packet to send [19:20:34]OFD Sender: No OFD packet to send [19:20:39]OFD Sender: No OFD packet to send [19:20:44]OFD Sender: No OFD packet to send [19:20:49]OFD Sender: No OFD packet to send [19:20:54]OFD Sender: No OFD packet to send [19:20:59]OFD Sender: No OFD packet to send [19:21:04]OFD Sender: No OFD packet to send [19:21:09]OFD Sender: No OFD packet to send [19:21:14]OFD Sender: No OFD packet to send [19:21:19]OFD Sender: No OFD packet to send [19:21:24]OFD Sender: No OFD packet to send [19:21:29]OFD Sender: No OFD packet to send [19:21:34]OFD Sender: No OFD packet to send [19:21:39]OFD Sender: No OFD packet to send [19:21:44]OFD Sender: No OFD packet to send [19:21:49]OFD Sender: No OFD packet to send [19:21:54]OFD Sender: No OFD packet to send [19:21:59]OFD Sender: No OFD packet to send [19:22:04]OFD Sender: No OFD packet to send [19:22:09]OFD Sender: No OFD packet to send [19:22:14]OFD Sender: No OFD packet to send [19:22:19]OFD Sender: No OFD packet to send [19:22:24]OFD Sender: No OFD packet to send [19:22:29]OFD Sender: No OFD packet to send [19:22:34]OFD Sender: No OFD packet to send [19:22:39]OFD Sender: No OFD packet to send [19:22:44]OFD Sender: No OFD packet to send [19:22:49]OFD Sender: No OFD packet to send [19:22:54]OFD Sender: No OFD packet to send [19:22:59]OFD Sender: No OFD packet to send [19:23:04]OFD Sender: No OFD packet to send [19:23:09]OFD Sender: No OFD packet to send [19:23:14]OFD Sender: No OFD packet to send [19:23:19]OFD Sender: No OFD packet to send [19:23:24]OFD Sender: No OFD packet to send [19:23:29]OFD Sender: No OFD packet to send [19:23:34]OFD Sender: No OFD packet to send [19:23:39]OFD Sender: No OFD packet to send [19:23:44]OFD Sender: No OFD packet to send [19:23:49]OFD Sender: No OFD packet to send [19:23:54]OFD Sender: No OFD packet to send [19:23:59]OFD Sender: No OFD packet to send [19:24:04]OFD Sender: No OFD packet to send [19:24:09]OFD Sender: No OFD packet to send [19:24:14]OFD Sender: No OFD packet to send [19:24:19]OFD Sender: No OFD packet to send [19:24:24]OFD Sender: No OFD packet to send [19:24:30]OFD Sender: No OFD packet to send [19:24:35]OFD Sender: No OFD packet to send [19:24:40]OFD Sender: No OFD packet to send [19:24:45]OFD Sender: No OFD packet to send [19:24:50]OFD Sender: No OFD packet to send [19:24:55]OFD Sender: No OFD packet to send [19:25:00]OFD Sender: No OFD packet to send [19:25:05]OFD Sender: No OFD packet to send [19:25:10]OFD Sender: No OFD packet to send [19:25:15]OFD Sender: No OFD packet to send [19:25:20]OFD Sender: No OFD packet to send [19:25:25]OFD Sender: No OFD packet to send [19:25:30]OFD Sender: No OFD packet to send [19:25:35]OFD Sender: No OFD packet to send [19:25:40]OFD Sender: No OFD packet to send [19:25:45]OFD Sender: No OFD packet to send [19:25:50]OFD Sender: No OFD packet to send [19:25:55]OFD Sender: No OFD packet to send [19:26:00]OFD Sender: No OFD packet to send [19:26:05]OFD Sender: No OFD packet to send [19:26:10]OFD Sender: No OFD packet to send [19:26:15]OFD Sender: No OFD packet to send [19:26:20]OFD Sender: No OFD packet to send [19:26:25]OFD Sender: No OFD packet to send [19:26:30]OFD Sender: No OFD packet to send [19:26:35]OFD Sender: No OFD packet to send [19:26:40]OFD Sender: No OFD packet to send [19:26:45]OFD Sender: No OFD packet to send [19:26:47]accept exits with 10 [19:26:47]New connection [19:26:47]New thread 3066801508 created [19:26:47]Thread 3066658148 joined [19:26:47]Waiting for new connection... [19:26:47] Sock 10.Parse request [19:26:47]Sock 10.Check first char [19:26:47]Sock 10.First char is OK [19:26:47]request: POST /json_proto HTTP/1.0 [19:26:47]Method: POST [19:26:47]URL: /json_proto [19:26:47]Method is POST - this is cgi request [19:26:47]url: /json_proto [19:26:47]query_string will be loaded in cgi processing [19:26:47]execute_cgi json_proto POST (null) [19:26:47]execute_cgi path=json_proto method=POST [19:26:47]POST find Content-Length [19:26:47]Host: 172.17.57.71:8080 [19:26:47]Content-Length: 667 [19:26:47]Content-Type: application/json [19:26:47] [19:26:47]POST finish read [19:26:47]Found Content-Length = 667 [19:26:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127554", "tax_sys" : 0, "items" : [ { "code": "4607049389712", "name": "\u0422\u043E\u0441\u043E\u043B \u0413\u043E\u0441\u0442\u043E\u0432\u0441\u043A\u0438\u0439 \u0410-40 1\u043B", "price" : 201.00, "quantity" : 1.000, "sum" : 201.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 201.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:47]execute_script... [19:26:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127554", "tax_sys" : 0, "items" : [ { "code": "4607049389712", "name": "\u0422\u043E\u0441\u043E\u043B \u0413\u043E\u0441\u0442\u043E\u0432\u0441\u043A\u0438\u0439 \u0410-40 1\u043B", "price" : 201.00, "quantity" : 1.000, "sum" : 201.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 201.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:47]POST & json_proto [19:26:47]process_json_proto [19:26:47]json parsed OK: [19:26:47]protocol is kg_v1.0 [19:26:47]action value=close_receipt [19:26:47]process_action close_receipt [19:26:47]cmd_close_receipt [19:26:47]MH_GetDate [19:26:47]Write to MH i2c: F0 00 00 45 60 94 [19:26:47]Write i2c OK [19:26:47]MH_I2C_Read... [19:26:47]Read from MH i2c: F0 [19:26:47]MH_I2C_Read... [19:26:47]Read from MH i2c: F0 09 00 [19:26:47]MH_I2C_Read... [19:26:47]Read from MH i2c: F0 09 00 45 60 00 01 35 E7 66 33 3A A4 66 97 [19:26:47]GetLastDocTimeStamp 1726427196 [19:26:47]current date 1726428417 [19:26:47]FM_GetShiftState [19:26:47]SAM_PROTO_GetShiftState [19:26:47]wFMCommunicate request_size=4 [19:26:47]MH_SAM_APDU [19:26:47]CAPDU: 80 13 01 00 [19:26:47]Write to MH i2c: E2 08 00 46 60 80 13 01 00 00 00 00 00 23 [19:26:47]Write i2c OK [19:26:47]MH_I2C_Read... [19:26:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:47]Read from MH i2c: E2 [19:26:47]MH_I2C_Read... [19:26:47]Read from MH i2c: E2 0E 00 [19:26:47]MH_I2C_Read... [19:26:47]Read from MH i2c: E2 0E 00 46 60 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 A5 [19:26:47]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [19:26:47]wFMCommunicate OK [19:26:47]SAM_PROTO_GetShiftState done [19:26:47]FM_GetShiftState done [19:26:47]opened in 1726359809 [19:26:47]opened+sec_in_day 1726446209 [19:26:47]quantity*price = 20100 [19:26:47]sum+1 = 20101 [19:26:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 201.00 НСП 1% : 1.78 НДС 12% : 21.34 Наличными: 201.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 113 15.09.2024 19:26 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92665 ФПД: 228084418068754 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T192657&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92665&fm=228084418068754&tin=02508201610067®Number=0000000000091423&sum=20100 0 [19:26:48]StoreToDocumentArchive [19:26:48]shift 507 fd 92665 [19:26:48]save to /storage/0507/doc_00092665 [19:26:48]save last doc name /storage/0507/doc_00092665 to /storage/kkm_last_doc_name [19:26:48]save OK [19:26:48]Clear old archive folders... [19:26:48]ProcessDocumentItem done err = 0, tmpTLVsize=283 [19:26:48]tlvbuf is 0119E380 [19:26:48]SAM_PROTO_ClearQueue [19:26:48]wFMCommunicate request_size=4 [19:26:48]MH_SAM_APDU [19:26:48]CAPDU: 80 09 00 00 [19:26:48]Write to MH i2c: E2 08 00 53 60 80 09 00 00 00 00 00 00 25 [19:26:48]Write i2c OK [19:26:48]MH_I2C_Read... [19:26:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:48]Read from MH i2c: E2 [19:26:48]MH_I2C_Read... [19:26:48]Read from MH i2c: E2 03 00 [19:26:48]MH_I2C_Read... [19:26:48]Read from MH i2c: E2 03 00 53 60 00 90 00 27 [19:26:48]RAPDU: 90 00 [19:26:48]wFMCommunicate OK [19:26:48]SAM_PROTO_ClearQueue done [19:26:48]KKMCreateOFDPacket [19:26:48]OFDProtocolAddRootSTLVToBuf [19:26:48]FM_MakeSignedData [19:26:48]FM_MakeSignedData [19:26:48]SAM_PROTO_SignData [19:26:48]wFMCommunicate request_size=4 [19:26:48]MH_SAM_APDU [19:26:48]CAPDU: 80 0D 01 02 [19:26:48]Write to MH i2c: E2 08 00 54 60 80 0D 01 02 00 00 00 00 2D [19:26:48]Write i2c OK [19:26:48]MH_I2C_Read... [19:26:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:48]Read from MH i2c: E2 [19:26:48]MH_I2C_Read... [19:26:48]Read from MH i2c: E2 03 00 [19:26:48]MH_I2C_Read... [19:26:48]Read from MH i2c: E2 03 00 54 60 00 90 00 28 [19:26:48]RAPDU: 90 00 [19:26:48]wFMCommunicate OK [19:26:48]wFMCommunicate request_size=255 [19:26:48]MH_SAM_APDU [19:26:48]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 37 30 34 39 33 38 39 37 31 32 06 04 29 00 D0 A2 D0 BE D1 81 D0 BE D0 BB 20 D0 93 D0 BE D1 81 D1 82 D0 BE D0 B2 D1 81 D0 BA D0 B8 D0 B9 20 D0 90 2D 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 4E 00 00 00 00 13 04 06 00 84 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 08 00 00 00 00 07 04 06 00 84 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 01 35 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 [19:26:48]Write to MH i2c: E2 02 01 55 60 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 37 30 34 39 33 38 39 37 31 32 06 04 29 00 D0 A2 D0 BE D1 81 D0 BE D0 BB 20 D0 93 D0 BE D1 81 D1 82 D0 BE D0 B2 D1 81 D0 BA D0 B8 D0 B9 20 D0 90 2D 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 4E 00 00 00 00 13 04 06 00 84 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 08 00 00 00 00 07 04 06 00 84 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 01 35 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 00 00 83 [19:26:48]Write i2c OK [19:26:48]MH_I2C_Read... [19:26:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:48]Read from MH i2c: E2 [19:26:48]MH_I2C_Read... [19:26:48]Read from MH i2c: E2 03 00 [19:26:48]MH_I2C_Read... [19:26:48]Read from MH i2c: E2 03 00 55 60 00 90 00 29 [19:26:48]RAPDU: 90 00 [19:26:48]wFMCommunicate OK [19:26:48]wFMCommunicate request_size=42 [19:26:48]MH_SAM_APDU [19:26:48]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F9 69 01 00 35 04 06 00 CF 71 0A B7 C1 12 [19:26:48]Write to MH i2c: E2 2D 00 56 60 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F9 69 01 00 35 04 06 00 CF 71 0A B7 C1 12 00 00 40 [19:26:48]Write i2c OK [19:26:48]MH_I2C_Read... [19:26:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:48]Read from MH i2c: E2 [19:26:48]MH_I2C_Read... [19:26:48]Read from MH i2c: E2 03 00 [19:26:48]MH_I2C_Read... [19:26:48]Read from MH i2c: E2 03 00 56 60 00 90 00 2A [19:26:48]RAPDU: 90 00 [19:26:48]wFMCommunicate OK [19:26:48]wFMCommunicate request_size=4 [19:26:48]MH_SAM_APDU [19:26:48]CAPDU: 80 0D 03 02 [19:26:48]Write to MH i2c: E2 08 00 57 60 80 0D 03 02 00 00 00 00 32 [19:26:48]Write i2c OK [19:26:48]MH_I2C_Read... [19:26:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:48]Read from MH i2c: E2 [19:26:48]MH_I2C_Read... [19:26:48]Read from MH i2c: E2 0B 00 [19:26:48]MH_I2C_Read... [19:26:48]Read from MH i2c: E2 0B 00 57 60 00 08 B8 76 4C 40 DA F7 4D 90 00 13 [19:26:48]RAPDU: 08 B8 76 4C 40 DA F7 4D 90 00 [19:26:48]wFMCommunicate OK [19:26:48]SAM_PROTO_SignData done [19:26:48]FM_MakeSignedData done [19:26:48]CreateOFDProtocolMessage [19:26:48]wFMCommunicate request_size=4 [19:26:48]MH_SAM_APDU [19:26:48]CAPDU: 80 11 00 00 [19:26:48]Write to MH i2c: E2 08 00 58 60 80 11 00 00 00 00 00 00 32 [19:26:48]Write i2c OK [19:26:48]MH_I2C_Read... [19:26:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:48]Read from MH i2c: E2 [19:26:48]MH_I2C_Read... [19:26:48]Read from MH i2c: E2 17 00 [19:26:48]MH_I2C_Read... [19:26:48]Read from MH i2c: E2 17 00 58 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 89 [19:26:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:26:48]wFMCommunicate OK [19:26:48]CreateOFDProtocolMessage done [19:26:48]OFDSenderStorePacket 92665 [19:26:48]StoreOFDPacket docnum=92665 [19:26:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2F 01 00 00 0E 63 27 01 C6 42 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 37 30 34 39 33 38 39 37 31 32 06 04 29 00 D0 A2 D0 BE D1 81 D0 BE D0 BB 20 D0 93 D0 BE D1 81 D1 82 D0 BE D0 B2 D1 81 D0 BA D0 B8 D0 B9 20 D0 90 2D 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 4E 00 00 00 00 13 04 06 00 84 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 08 00 00 00 00 07 04 06 00 84 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 01 35 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F9 69 01 00 35 04 06 00 CF 71 0A B7 C1 12 08 B8 76 4C 40 DA F7 4D [19:26:48]CheckFolder [19:26:48]dirname=/storage/ofd_packets [19:26:48]CheckFolder done [19:26:48]ProducePacketName [19:26:48]name=ofd_packets/00092665 [19:26:48]NVStorageSaveData ofd_packets/00092665 [19:26:48]File name is /storage/ofd_packets/00092665 [19:26:48]Write 333 bytes [19:26:48]NVStorageSaveData done [19:26:48]OFDSenderStorePacket done [19:26:48]KKMCreateOFDPacket done [19:26:48]NVStorageSaveData kkm_last_timestamp [19:26:48]File name is /storage/kkm_last_timestamp [19:26:48]Write 4 bytes [19:26:48]NVStorageSaveData done [19:26:48]ExternCall_PrintAddStr [19:26:48]wPrintStart [19:26:48]Write to MH i2c: 01 00 00 59 60 B9 [19:26:48]Write i2c OK [19:26:48]MH_I2C_Read... [19:26:48]Read from MH i2c: 01 [19:26:48]MH_I2C_Read... [19:26:48]Read from MH i2c: 01 07 00 [19:26:48]MH_I2C_Read... [19:26:48]Read from MH i2c: 01 07 00 59 60 00 00 00 00 00 FF 0F CE [19:26:48]RasterBufferAndPrint [19:26:48]line Счет N : (3)127554 [19:26:48]line ИНН: 02508201610067 [19:26:48]line Контрольно-Кассовый Чек [19:26:48]line ПРОДАЖА [19:26:48]line Товар: 4607049389712 [19:26:48]line Тосол Гостовский А-40 1л [19:26:48]line 1.000 * 201.00 [19:26:48]line = 201.00 [19:26:48]line НДС 12% НСП 1% [19:26:48]line > о реализуемом товаре [19:26:48]line ИТОГО: 201.00 [19:26:48]line НСП 1% : 1.78 [19:26:48]line НДС 12% : 21.34 [19:26:48]line Наличными: 201.00 [19:26:48]line Безнал.: 0.00 [19:26:48]line Место: АЗС № 5 "Партнер Нефть" [19:26:48]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:26:48]line СНО: Общий режим [19:26:48]line Чек 113 15.09.2024 19:26 [19:26:48]line Смена: 507 ФФД: 1.0 [19:26:48]line ЗНМ: 03000000022 [19:26:48]line РНМ: 0000000000091423 [19:26:48]line Версия ККМ: 001 [19:26:48]line ФМ: 0000000000874692 [19:26:48]line ФД: 92665 [19:26:48]line ФПД: 228084418068754 [19:26:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T192657&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92665&fm=228084418068754&tin=02508201610067®Number=0000000000091423&sum=20100 [19:26:49]OFD Sender: Processing packet 92665 [packets to send 63, broken 62] [19:26:49]ProducePacketName [19:26:49]name=ofd_packets/00092665 [19:26:49]OFD Sender: To server: pG, [19:26:49]CommunicateWithHost lk.salyk.kg:30040 [19:26:49]ConnectInit lk.salyk.kg [19:26:49]line 0 [19:26:49]written 0, free lines is 4095 [19:26:49]Connected sock=11 [19:26:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2F 01 00 00 0E 63 27 01 C6 42 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 37 30 34 39 33 38 39 37 31 32 06 04 29 00 D0 A2 D0 BE D1 81 D0 BE D0 BB 20 D0 93 D0 BE D1 81 D1 82 D0 BE D0 B2 D1 81 D0 BA D0 B8 D0 B9 20 D0 90 2D 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 4E 00 00 00 00 13 04 06 00 84 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 08 00 00 00 00 07 04 06 00 84 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 01 35 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F9 69 01 00 35 04 06 00 CF 71 0A B7 C1 12 08 B8 76 4C 40 DA F7 4D [19:26:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 A1 0B 47 00 DF 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F9 69 01 00 F4 03 04 00 78 DD E6 66 B6 04 01 00 00 98 B7 BE 4A 49 BB E0 F8 [19:26:49]CommunicateWithHost err = 0 [19:26:49]CheckOFDResponse [19:26:49]1017 (14) - 77093643461234 [19:26:49]1041 (16) - 0000000000874692 [19:26:49]1040 (4) - 92665 [19:26:49]1012 (4) - 15.09.2024 13:13 [19:26:49]1206 (1) - 0 [19:26:49]OFD Sender: Remove packet 92665 [19:26:49]ProducePacketName [19:26:49]name=ofd_packets/00092665 [19:26:49]NVStorageDeleteData [19:26:49]Write to MH i2c: 01 00 00 81 60 E1 [19:26:49]Write i2c OK [19:26:49]MH_I2C_Read... [19:26:49]Read from MH i2c: 01 [19:26:49]MH_I2C_Read... [19:26:49]Read from MH i2c: 01 07 00 [19:26:49]MH_I2C_Read... [19:26:49]Read from MH i2c: 01 07 00 81 60 00 00 00 00 00 1D 0D 12 [19:26:49]RasterBufferAndPrint [19:26:49]line [19:26:49]line [19:26:49]line [19:26:49]line [19:26:49]line [19:26:49]written 0, free lines is 3363 [19:26:49]MH_Cut [19:26:49]Write to MH i2c: D1 01 00 88 60 01 BA [19:26:49]Write i2c OK [19:26:49]MH_I2C_Read... [19:26:49]Read from MH i2c: D1 [19:26:49]MH_I2C_Read... [19:26:49]Read from MH i2c: D1 01 00 [19:26:49]MH_I2C_Read... [19:26:49]Read from MH i2c: D1 01 00 88 60 00 B9 [19:26:49]Write to MH i2c: 01 00 00 89 60 E9 [19:26:49]Write i2c OK [19:26:49]MH_I2C_Read... [19:26:50]OFD Sender: No OFD packet to send [19:26:50]*** Cut start [19:26:50]*** Purtial cut [19:26:50]*** Stage 1: CUTSNS_PIN = 1 [19:26:52]Read from MH i2c: 01 [19:26:52]MH_I2C_Read... [19:26:52]*** Stop cut motor [19:26:52]*** Cut end [19:26:52]Read from MH i2c: 01 07 00 [19:26:52]MH_I2C_Read... [19:26:52]Read from MH i2c: 01 07 00 89 60 00 00 00 00 00 FF 0F FE [19:26:52]process_action close_receipt done [19:26:52]requested_data is exist [19:26:52]produce_requested_data [19:26:52]requested_item fm.sn is exist - process it [19:26:52]wFMCommunicate request_size=4 [19:26:52]MH_SAM_APDU [19:26:52]CAPDU: 80 11 00 00 [19:26:52]Write to MH i2c: E2 08 00 8A 60 80 11 00 00 00 00 00 00 64 [19:26:52]Write i2c OK [19:26:52]MH_I2C_Read... [19:26:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:52]Read from MH i2c: E2 [19:26:52]MH_I2C_Read... [19:26:52]Read from MH i2c: E2 17 00 [19:26:52]MH_I2C_Read... [19:26:52]Read from MH i2c: E2 17 00 8A 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 BB [19:26:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:26:52]wFMCommunicate OK [19:26:52]requested_item fd.num is exist - process it [19:26:52]SAM_PROTO_GetFieldsCounters [19:26:52]wFMCommunicate request_size=4 [19:26:52]MH_SAM_APDU [19:26:52]CAPDU: 80 13 00 00 [19:26:52]Write to MH i2c: E2 08 00 8B 60 80 13 00 00 00 00 00 00 67 [19:26:52]Write i2c OK [19:26:52]MH_I2C_Read... [19:26:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:52]Read from MH i2c: E2 [19:26:52]MH_I2C_Read... [19:26:52]Read from MH i2c: E2 62 00 [19:26:52]MH_I2C_Read... [19:26:52]Read from MH i2c: E2 62 00 8B 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F9 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [19:26:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F9 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:26:52]wFMCommunicate OK [19:26:52]SAM_PROTO_GetFieldsCounters done [19:26:52]requested_item shift.num is exist - process it [19:26:52]requested_item shift.opened is exist - process it [19:26:52]req_shift_opened [19:26:52]FM_GetShiftState [19:26:52]SAM_PROTO_GetShiftState [19:26:52]wFMCommunicate request_size=4 [19:26:52]MH_SAM_APDU [19:26:52]CAPDU: 80 13 01 00 [19:26:52]Write to MH i2c: E2 08 00 8C 60 80 13 01 00 00 00 00 00 69 [19:26:52]Write i2c OK [19:26:52]MH_I2C_Read... [19:26:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:52]Read from MH i2c: E2 [19:26:52]MH_I2C_Read... [19:26:52]Read from MH i2c: E2 0E 00 [19:26:52]MH_I2C_Read... [19:26:52]Read from MH i2c: E2 0E 00 8C 60 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 EB [19:26:52]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [19:26:52]wFMCommunicate OK [19:26:52]SAM_PROTO_GetShiftState done [19:26:52]FM_GetShiftState done [19:26:52]req_shift_opened done [19:26:52]requested_item shift.open_date is exist - process it [19:26:52]req_shift_open_date [19:26:52]req_shift_open_date done [19:26:52]produce_requested_data done [19:26:52]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92665,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [19:26:52]process_action_free close_receipt [19:26:52]json_value_free [19:26:52]json_value_free done [19:26:52]process_json_proto returns [19:26:52]Send response to host [19:26:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92665,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [19:26:52]free response buf [19:26:52]execute_script done [19:26:52]execute_script returns [19:26:52]free content buf [19:26:52]Sock 10.Close socket [19:26:52]Sock 10.Thread stoped [19:26:55]OFD Sender: No OFD packet to send [19:27:00]OFD Sender: No OFD packet to send [19:27:05]OFD Sender: No OFD packet to send [19:27:10]OFD Sender: No OFD packet to send [19:27:15]OFD Sender: No OFD packet to send [19:27:20]OFD Sender: No OFD packet to send [19:27:25]OFD Sender: No OFD packet to send [19:27:30]OFD Sender: No OFD packet to send [19:27:35]OFD Sender: No OFD packet to send [19:27:40]OFD Sender: No OFD packet to send [19:27:45]OFD Sender: No OFD packet to send [19:27:45]accept exits with 8 [19:27:45]New connection [19:27:45]New thread 3066658148 created [19:27:45] Sock 8.Parse request [19:27:45]Sock 8.Check first char [19:27:45]Sock 8.First char is OK [19:27:45]Thread 3066801508 joined [19:27:45]Waiting for new connection... [19:27:45]request: POST /json_proto HTTP/1.0 [19:27:45]Method: POST [19:27:45]URL: /json_proto [19:27:45]Method is POST - this is cgi request [19:27:45]url: /json_proto [19:27:45]query_string will be loaded in cgi processing [19:27:45]execute_cgi json_proto POST (null) [19:27:45]execute_cgi path=json_proto method=POST [19:27:45]POST find Content-Length [19:27:45]Host: 172.17.57.71:8080 [19:27:45]Content-Length: 1086 [19:27:45]Content-Type: application/json [19:27:45] [19:27:45]POST finish read [19:27:45]Found Content-Length = 1086 [19:27:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127555", "tax_sys" : 0, "items" : [ { "code": "8683130057735", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u0417\u043E\u043B\u043E\u0442\u043E\u0439 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u0441\u0442\u0430\u043A\u0430", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681390", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u041F\u0410\u041F\u0420\u0418\u041A\u0410 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:45]execute_script... [19:27:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127555", "tax_sys" : 0, "items" : [ { "code": "8683130057735", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u0417\u043E\u043B\u043E\u0442\u043E\u0439 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u0441\u0442\u0430\u043A\u0430", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681390", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u041F\u0410\u041F\u0420\u0418\u041A\u0410 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:45]POST & json_proto [19:27:45]process_json_proto [19:27:45]json parsed OK: [19:27:45]protocol is kg_v1.0 [19:27:45]action value=close_receipt [19:27:45]process_action close_receipt [19:27:45]cmd_close_receipt [19:27:45]MH_GetDate [19:27:45]Write to MH i2c: F0 00 00 8D 60 DC [19:27:45]Write i2c OK [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: F0 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: F0 09 00 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: F0 09 00 8D 60 00 3B 35 E7 66 33 3A A4 66 19 [19:27:45]GetLastDocTimeStamp 1726428417 [19:27:45]current date 1726428475 [19:27:45]FM_GetShiftState [19:27:45]SAM_PROTO_GetShiftState [19:27:45]wFMCommunicate request_size=4 [19:27:45]MH_SAM_APDU [19:27:45]CAPDU: 80 13 01 00 [19:27:45]Write to MH i2c: E2 08 00 8E 60 80 13 01 00 00 00 00 00 6B [19:27:45]Write i2c OK [19:27:45]MH_I2C_Read... [19:27:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:45]Read from MH i2c: E2 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: E2 0E 00 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: E2 0E 00 8E 60 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 ED [19:27:45]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [19:27:45]wFMCommunicate OK [19:27:45]SAM_PROTO_GetShiftState done [19:27:45]FM_GetShiftState done [19:27:45]opened in 1726359809 [19:27:45]opened+sec_in_day 1726446209 [19:27:45]quantity*price = 9500 [19:27:45]sum+1 = 9501 [19:27:45]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870235681390 ЧИПСЫ SLANG СО ВКУСОМ ПАПРИКА 60Г 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 114 15.09.2024 19:27 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92666 ФПД: 16390984030097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T192755&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92666&fm=16390984030097&tin=02508201610067®Number=0000000000091423&sum=19000 0 [19:27:46]StoreToDocumentArchive [19:27:46]shift 507 fd 92666 [19:27:46]save to /storage/0507/doc_00092666 [19:27:46]save last doc name /storage/0507/doc_00092666 to /storage/kkm_last_doc_name [19:27:46]save OK [19:27:46]Clear old archive folders... [19:27:46]ProcessDocumentItem done err = 0, tmpTLVsize=444 [19:27:46]tlvbuf is 01041A00 [19:27:46]SAM_PROTO_ClearQueue [19:27:46]wFMCommunicate request_size=4 [19:27:46]MH_SAM_APDU [19:27:46]CAPDU: 80 09 00 00 [19:27:46]Write to MH i2c: E2 08 00 9B 60 80 09 00 00 00 00 00 00 6D [19:27:46]Write i2c OK [19:27:46]MH_I2C_Read... [19:27:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:27:46]Read from MH i2c: E2 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 03 00 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 03 00 9B 60 00 90 00 6F [19:27:46]RAPDU: 90 00 [19:27:46]wFMCommunicate OK [19:27:46]SAM_PROTO_ClearQueue done [19:27:46]KKMCreateOFDPacket [19:27:46]OFDProtocolAddRootSTLVToBuf [19:27:46]FM_MakeSignedData [19:27:46]FM_MakeSignedData [19:27:46]SAM_PROTO_SignData [19:27:46]wFMCommunicate request_size=4 [19:27:46]MH_SAM_APDU [19:27:46]CAPDU: 80 0D 01 02 [19:27:46]Write to MH i2c: E2 08 00 9C 60 80 0D 01 02 00 00 00 00 75 [19:27:46]Write i2c OK [19:27:46]MH_I2C_Read... [19:27:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:27:46]Read from MH i2c: E2 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 03 00 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 03 00 9C 60 00 90 00 70 [19:27:46]RAPDU: 90 00 [19:27:46]wFMCommunicate OK [19:27:46]wFMCommunicate request_size=255 [19:27:46]MH_SAM_APDU [19:27:46]CAPDU: 80 0D 02 02 FA 03 00 BC 01 1E 04 01 00 01 23 04 90 00 8A 04 0D 00 38 36 38 33 31 33 30 30 35 37 37 33 35 06 04 4C 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 97 D0 BE D0 BB D0 BE D1 82 D0 BE D0 B9 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 39 30 06 04 36 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9F D0 90 D0 9F D0 A0 D0 98 D0 9A D0 90 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 [19:27:46]Write to MH i2c: E2 02 01 9D 60 80 0D 02 02 FA 00 03 00 BC 01 1E 04 01 00 01 23 04 90 00 8A 04 0D 00 38 36 38 33 31 33 30 30 35 37 37 33 35 06 04 4C 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 97 D0 BE D0 BB D0 BE D1 82 D0 BE D0 B9 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 39 30 06 04 36 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9F D0 90 D0 9F D0 A0 D0 98 D0 9A D0 90 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 00 00 76 [19:27:46]Write i2c OK [19:27:46]MH_I2C_Read... [19:27:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:46]Read from MH i2c: E2 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 03 00 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 03 00 9D 60 00 90 00 71 [19:27:46]RAPDU: 90 00 [19:27:46]wFMCommunicate OK [19:27:46]wFMCommunicate request_size=203 [19:27:46]MH_SAM_APDU [19:27:46]CAPDU: 80 0D 02 02 C6 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 3B 35 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FA 69 01 00 35 04 06 00 0E E8 52 C7 D7 91 [19:27:46]Write to MH i2c: E2 CE 00 9E 60 80 0D 02 02 C6 00 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 3B 35 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FA 69 01 00 35 04 06 00 0E E8 52 C7 D7 91 00 00 38 [19:27:46]Write i2c OK [19:27:46]MH_I2C_Read... [19:27:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:47]Read from MH i2c: E2 [19:27:47]MH_I2C_Read... [19:27:47]Read from MH i2c: E2 03 00 [19:27:47]MH_I2C_Read... [19:27:47]Read from MH i2c: E2 03 00 9E 60 00 90 00 72 [19:27:47]RAPDU: 90 00 [19:27:47]wFMCommunicate OK [19:27:47]wFMCommunicate request_size=4 [19:27:47]MH_SAM_APDU [19:27:47]CAPDU: 80 0D 03 02 [19:27:47]Write to MH i2c: E2 08 00 9F 60 80 0D 03 02 00 00 00 00 7A [19:27:47]Write i2c OK [19:27:47]MH_I2C_Read... [19:27:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:27:47]Read from MH i2c: E2 [19:27:47]MH_I2C_Read... [19:27:47]Read from MH i2c: E2 0B 00 [19:27:47]MH_I2C_Read... [19:27:47]Read from MH i2c: E2 0B 00 9F 60 00 50 ED 6B 26 67 ED D1 C1 90 00 2F [19:27:47]RAPDU: 50 ED 6B 26 67 ED D1 C1 90 00 [19:27:47]wFMCommunicate OK [19:27:47]SAM_PROTO_SignData done [19:27:47]FM_MakeSignedData done [19:27:47]CreateOFDProtocolMessage [19:27:47]wFMCommunicate request_size=4 [19:27:47]MH_SAM_APDU [19:27:47]CAPDU: 80 11 00 00 [19:27:47]Write to MH i2c: E2 08 00 A0 60 80 11 00 00 00 00 00 00 7A [19:27:47]Write i2c OK [19:27:47]MH_I2C_Read... [19:27:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:47]Read from MH i2c: E2 [19:27:47]MH_I2C_Read... [19:27:47]Read from MH i2c: E2 17 00 [19:27:47]MH_I2C_Read... [19:27:47]Read from MH i2c: E2 17 00 A0 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D1 [19:27:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:27:47]wFMCommunicate OK [19:27:47]CreateOFDProtocolMessage done [19:27:47]OFDSenderStorePacket 92666 [19:27:47]StoreOFDPacket docnum=92666 [19:27:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 D0 01 00 00 99 4F C8 01 ED 08 5A 03 01 00 03 00 BC 01 1E 04 01 00 01 23 04 90 00 8A 04 0D 00 38 36 38 33 31 33 30 30 35 37 37 33 35 06 04 4C 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 97 D0 BE D0 BB D0 BE D1 82 D0 BE D0 B9 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 39 30 06 04 36 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9F D0 90 D0 9F D0 A0 D0 98 D0 9A D0 90 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 3B 35 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FA 69 01 00 35 04 06 00 0E E8 52 C7 D7 91 50 ED 6B 26 67 ED D1 C1 [19:27:47]CheckFolder [19:27:47]dirname=/storage/ofd_packets [19:27:47]CheckFolder done [19:27:47]ProducePacketName [19:27:47]name=ofd_packets/00092666 [19:27:47]NVStorageSaveData ofd_packets/00092666 [19:27:47]File name is /storage/ofd_packets/00092666 [19:27:47]Write 494 bytes [19:27:47]NVStorageSaveData done [19:27:47]OFDSenderStorePacket done [19:27:47]KKMCreateOFDPacket done [19:27:47]NVStorageSaveData kkm_last_timestamp [19:27:47]File name is /storage/kkm_last_timestamp [19:27:47]Write 4 bytes [19:27:47]NVStorageSaveData done [19:27:47]ExternCall_PrintAddStr [19:27:47]wPrintStart [19:27:47]Write to MH i2c: 01 00 00 A1 60 01 [19:27:47]OFD Sender: Processing packet 92666 [packets to send 63, broken 62] [19:27:47]ProducePacketName [19:27:47]name=ofd_packets/00092666 [19:27:47]OFD Sender: To server: pG, [19:27:47]CommunicateWithHost lk.salyk.kg:30040 [19:27:47]ConnectInit lk.salyk.kg [19:27:47]Write i2c OK [19:27:47]MH_I2C_Read... [19:27:47]Read from MH i2c: 01 [19:27:47]MH_I2C_Read... [19:27:47]Read from MH i2c: 01 07 00 [19:27:47]MH_I2C_Read... [19:27:47]Read from MH i2c: 01 07 00 A1 60 00 00 00 00 00 FF 0F 16 [19:27:47]RasterBufferAndPrint [19:27:47]line Счет N : (3)127555 [19:27:47]line ИНН: 02508201610067 [19:27:47]line Контрольно-Кассовый Чек [19:27:47]line ПРОДАЖА [19:27:47]line Товар: 8683130057735 [19:27:47]line Мороженое Золотой Стандарт Пломбир стака [19:27:47]line 1.000 * 95.00 [19:27:47]line = 95.00 [19:27:47]line НДС 12% НСП 1% [19:27:47]line > о реализуемом товаре [19:27:47]line Товар: 4870235681390 [19:27:47]line ЧИПСЫ SLANG СО ВКУСОМ ПАПРИКА 60Г [19:27:47]line 1.000 * 95.00 [19:27:47]line = 95.00 [19:27:47]line НДС 12% НСП 1% [19:27:47]line > о реализуемом товаре [19:27:47]line ИТОГО: 190.00 [19:27:47]line НСП 1% : 1.68 [19:27:47]line НДС 12% : 20.18 [19:27:47]line Наличными: 190.00 [19:27:47]line Безнал.: 0.00 [19:27:47]line Место: АЗС № 5 "Партнер Нефть" [19:27:47]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:27:47]line СНО: Общий режим [19:27:47]line Чек 114 15.09.2024 19:27 [19:27:47]line Смена: 507 ФФД: 1.0 [19:27:47]line ЗНМ: 03000000022 [19:27:47]line РНМ: 0000000000091423 [19:27:47]line Версия ККМ: 001 [19:27:47]line ФМ: 0000000000874692 [19:27:47]line ФД: 92666 [19:27:47]line ФПД: 16390984030097 [19:27:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T192755&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92666&fm=16390984030097&tin=02508201610067®Number=0000000000091423&sum=19000 [19:27:47]line 0 [19:27:47]written 0, free lines is 4095 [19:27:47]Connected sock=10 [19:27:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 D0 01 00 00 99 4F C8 01 ED 08 5A 03 01 00 03 00 BC 01 1E 04 01 00 01 23 04 90 00 8A 04 0D 00 38 36 38 33 31 33 30 30 35 37 37 33 35 06 04 4C 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 97 D0 BE D0 BB D0 BE D1 82 D0 BE D0 B9 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 39 30 06 04 36 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9F D0 90 D0 9F D0 A0 D0 98 D0 9A D0 90 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 3B 35 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FA 69 01 00 35 04 06 00 0E E8 52 C7 D7 91 50 ED 6B 26 67 ED D1 C1 [19:27:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 2D 53 47 00 E2 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FA 69 01 00 F4 03 04 00 B2 DD E6 66 B6 04 01 00 00 A0 08 FA CE D4 4C 1F 35 [19:27:47]CommunicateWithHost err = 0 [19:27:47]CheckOFDResponse [19:27:47]1017 (14) - 77093643461234 [19:27:47]1041 (16) - 0000000000874692 [19:27:47]1040 (4) - 92666 [19:27:47]1012 (4) - 15.09.2024 13:14 [19:27:47]1206 (1) - 0 [19:27:47]OFD Sender: Remove packet 92666 [19:27:47]ProducePacketName [19:27:47]name=ofd_packets/00092666 [19:27:47]NVStorageDeleteData [19:27:48]Write to MH i2c: 01 00 00 D1 60 31 [19:27:48]Write i2c OK [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: 01 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: 01 07 00 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: 01 07 00 D1 60 00 00 00 00 00 D8 0C 1C [19:27:48]RasterBufferAndPrint [19:27:48]line [19:27:48]line [19:27:48]line [19:27:48]line [19:27:48]line [19:27:48]written 0, free lines is 3298 [19:27:48]MH_Cut [19:27:48]Write to MH i2c: D1 01 00 D8 60 01 0A [19:27:48]Write i2c OK [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: D1 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: D1 01 00 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: D1 01 00 D8 60 00 09 [19:27:48]Write to MH i2c: 01 00 00 D9 60 39 [19:27:48]Write i2c OK [19:27:48]MH_I2C_Read... [19:27:48]OFD Sender: No OFD packet to send [19:27:48]*** Cut start [19:27:48]*** Purtial cut [19:27:48]*** Stage 1: CUTSNS_PIN = 1 [19:27:50]Read from MH i2c: 01 [19:27:50]MH_I2C_Read... [19:27:50]*** Stop cut motor [19:27:50]*** Cut end [19:27:50]Read from MH i2c: 01 07 00 [19:27:50]MH_I2C_Read... [19:27:50]Read from MH i2c: 01 07 00 D9 60 00 00 00 00 00 FF 0F 4E [19:27:50]process_action close_receipt done [19:27:50]requested_data is exist [19:27:50]produce_requested_data [19:27:50]requested_item fm.sn is exist - process it [19:27:50]wFMCommunicate request_size=4 [19:27:50]MH_SAM_APDU [19:27:50]CAPDU: 80 11 00 00 [19:27:50]Write to MH i2c: E2 08 00 DA 60 80 11 00 00 00 00 00 00 B4 [19:27:50]Write i2c OK [19:27:50]MH_I2C_Read... [19:27:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:50]Read from MH i2c: E2 [19:27:50]MH_I2C_Read... [19:27:50]Read from MH i2c: E2 17 00 [19:27:50]MH_I2C_Read... [19:27:50]Read from MH i2c: E2 17 00 DA 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 0B [19:27:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:27:50]wFMCommunicate OK [19:27:50]requested_item fd.num is exist - process it [19:27:50]SAM_PROTO_GetFieldsCounters [19:27:50]wFMCommunicate request_size=4 [19:27:50]MH_SAM_APDU [19:27:50]CAPDU: 80 13 00 00 [19:27:50]Write to MH i2c: E2 08 00 DB 60 80 13 00 00 00 00 00 00 B7 [19:27:50]Write i2c OK [19:27:50]MH_I2C_Read... [19:27:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:51]Read from MH i2c: E2 [19:27:51]MH_I2C_Read... [19:27:51]Read from MH i2c: E2 62 00 [19:27:51]MH_I2C_Read... [19:27:51]Read from MH i2c: E2 62 00 DB 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 FA 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [19:27:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 FA 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:27:51]wFMCommunicate OK [19:27:51]SAM_PROTO_GetFieldsCounters done [19:27:51]requested_item shift.num is exist - process it [19:27:51]requested_item shift.opened is exist - process it [19:27:51]req_shift_opened [19:27:51]FM_GetShiftState [19:27:51]SAM_PROTO_GetShiftState [19:27:51]wFMCommunicate request_size=4 [19:27:51]MH_SAM_APDU [19:27:51]CAPDU: 80 13 01 00 [19:27:51]Write to MH i2c: E2 08 00 DC 60 80 13 01 00 00 00 00 00 B9 [19:27:51]Write i2c OK [19:27:51]MH_I2C_Read... [19:27:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:51]Read from MH i2c: E2 [19:27:51]MH_I2C_Read... [19:27:51]Read from MH i2c: E2 0E 00 [19:27:51]MH_I2C_Read... [19:27:51]Read from MH i2c: E2 0E 00 DC 60 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 3B [19:27:51]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [19:27:51]wFMCommunicate OK [19:27:51]SAM_PROTO_GetShiftState done [19:27:51]FM_GetShiftState done [19:27:51]req_shift_opened done [19:27:51]requested_item shift.open_date is exist - process it [19:27:51]req_shift_open_date [19:27:51]req_shift_open_date done [19:27:51]produce_requested_data done [19:27:51]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92666,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [19:27:51]process_action_free close_receipt [19:27:51]json_value_free [19:27:51]json_value_free done [19:27:51]process_json_proto returns [19:27:51]Send response to host [19:27:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92666,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [19:27:51]free response buf [19:27:51]execute_script done [19:27:51]execute_script returns [19:27:51]free content buf [19:27:51]Sock 8.Close socket [19:27:51]Sock 8.Thread stoped [19:27:53]OFD Sender: No OFD packet to send [19:27:58]OFD Sender: No OFD packet to send [19:28:03]OFD Sender: No OFD packet to send [19:28:08]OFD Sender: No OFD packet to send [19:28:13]OFD Sender: No OFD packet to send [19:28:18]OFD Sender: No OFD packet to send [19:28:23]OFD Sender: No OFD packet to send [19:28:28]OFD Sender: No OFD packet to send [19:28:33]OFD Sender: No OFD packet to send [19:28:38]OFD Sender: No OFD packet to send [19:28:43]OFD Sender: No OFD packet to send [19:28:48]OFD Sender: No OFD packet to send [19:28:53]OFD Sender: No OFD packet to send [19:28:58]OFD Sender: No OFD packet to send [19:29:03]OFD Sender: No OFD packet to send [19:29:08]OFD Sender: No OFD packet to send [19:29:13]OFD Sender: No OFD packet to send [19:29:18]OFD Sender: No OFD packet to send [19:29:23]OFD Sender: No OFD packet to send [19:29:28]OFD Sender: No OFD packet to send [19:29:33]OFD Sender: No OFD packet to send [19:29:38]OFD Sender: No OFD packet to send [19:29:43]OFD Sender: No OFD packet to send [19:29:48]OFD Sender: No OFD packet to send [19:29:53]OFD Sender: No OFD packet to send [19:29:58]OFD Sender: No OFD packet to send [19:30:03]OFD Sender: No OFD packet to send [19:30:08]OFD Sender: No OFD packet to send [19:30:13]OFD Sender: No OFD packet to send [19:30:18]OFD Sender: No OFD packet to send [19:30:23]OFD Sender: No OFD packet to send [19:30:28]OFD Sender: No OFD packet to send [19:30:33]OFD Sender: No OFD packet to send [19:30:38]OFD Sender: No OFD packet to send [19:30:43]OFD Sender: No OFD packet to send [19:30:48]OFD Sender: No OFD packet to send [19:30:53]OFD Sender: No OFD packet to send [19:30:58]OFD Sender: No OFD packet to send [19:31:03]OFD Sender: No OFD packet to send [19:31:08]OFD Sender: No OFD packet to send [19:31:13]OFD Sender: No OFD packet to send [19:31:18]OFD Sender: No OFD packet to send [19:31:23]OFD Sender: No OFD packet to send [19:31:28]OFD Sender: No OFD packet to send [19:31:33]OFD Sender: No OFD packet to send [19:31:38]OFD Sender: No OFD packet to send [19:31:43]OFD Sender: No OFD packet to send [19:31:48]OFD Sender: No OFD packet to send [19:31:53]OFD Sender: No OFD packet to send [19:31:58]OFD Sender: No OFD packet to send [19:32:03]OFD Sender: No OFD packet to send [19:32:08]OFD Sender: No OFD packet to send [19:32:13]OFD Sender: No OFD packet to send [19:32:18]OFD Sender: No OFD packet to send [19:32:23]OFD Sender: No OFD packet to send [19:32:28]OFD Sender: No OFD packet to send [19:32:33]OFD Sender: No OFD packet to send [19:32:38]OFD Sender: No OFD packet to send [19:32:43]OFD Sender: No OFD packet to send [19:32:48]OFD Sender: No OFD packet to send [19:32:53]OFD Sender: No OFD packet to send [19:32:58]OFD Sender: No OFD packet to send [19:33:03]OFD Sender: No OFD packet to send [19:33:08]OFD Sender: No OFD packet to send [19:33:13]OFD Sender: No OFD packet to send [19:33:18]OFD Sender: No OFD packet to send [19:33:23]OFD Sender: No OFD packet to send [19:33:28]OFD Sender: No OFD packet to send [19:33:33]OFD Sender: No OFD packet to send [19:33:38]OFD Sender: No OFD packet to send [19:33:43]OFD Sender: No OFD packet to send [19:33:48]OFD Sender: No OFD packet to send [19:33:53]OFD Sender: No OFD packet to send [19:33:58]OFD Sender: No OFD packet to send [19:34:03]OFD Sender: No OFD packet to send [19:34:08]OFD Sender: No OFD packet to send [19:34:13]OFD Sender: No OFD packet to send [19:34:18]OFD Sender: No OFD packet to send [19:34:23]OFD Sender: No OFD packet to send [19:34:28]OFD Sender: No OFD packet to send [19:34:33]OFD Sender: No OFD packet to send [19:34:38]OFD Sender: No OFD packet to send [19:34:43]OFD Sender: No OFD packet to send [19:34:48]OFD Sender: No OFD packet to send [19:34:53]OFD Sender: No OFD packet to send [19:34:58]OFD Sender: No OFD packet to send [19:35:03]OFD Sender: No OFD packet to send [19:35:08]OFD Sender: No OFD packet to send [19:35:13]OFD Sender: No OFD packet to send [19:35:18]OFD Sender: No OFD packet to send [19:35:23]OFD Sender: No OFD packet to send [19:35:28]OFD Sender: No OFD packet to send [19:35:33]OFD Sender: No OFD packet to send [19:35:38]OFD Sender: No OFD packet to send [19:35:43]OFD Sender: No OFD packet to send [19:35:48]OFD Sender: No OFD packet to send [19:35:53]OFD Sender: No OFD packet to send [19:35:58]OFD Sender: No OFD packet to send [19:36:03]OFD Sender: No OFD packet to send [19:36:08]OFD Sender: No OFD packet to send [19:36:13]OFD Sender: No OFD packet to send [19:36:18]OFD Sender: No OFD packet to send [19:36:23]OFD Sender: No OFD packet to send [19:36:28]OFD Sender: No OFD packet to send [19:36:33]OFD Sender: No OFD packet to send [19:36:38]OFD Sender: No OFD packet to send [19:36:43]OFD Sender: No OFD packet to send [19:36:48]OFD Sender: No OFD packet to send [19:36:53]OFD Sender: No OFD packet to send [19:36:58]OFD Sender: No OFD packet to send [19:37:03]OFD Sender: No OFD packet to send [19:37:08]OFD Sender: No OFD packet to send [19:37:13]OFD Sender: No OFD packet to send [19:37:18]OFD Sender: No OFD packet to send [19:37:23]OFD Sender: No OFD packet to send [19:37:28]OFD Sender: No OFD packet to send [19:37:33]OFD Sender: No OFD packet to send [19:37:38]OFD Sender: No OFD packet to send [19:37:43]OFD Sender: No OFD packet to send [19:37:48]OFD Sender: No OFD packet to send [19:37:53]OFD Sender: No OFD packet to send [19:37:58]OFD Sender: No OFD packet to send [19:38:03]OFD Sender: No OFD packet to send [19:38:08]OFD Sender: No OFD packet to send [19:38:13]OFD Sender: No OFD packet to send [19:38:19]OFD Sender: No OFD packet to send [19:38:24]OFD Sender: No OFD packet to send [19:38:29]OFD Sender: No OFD packet to send [19:38:34]OFD Sender: No OFD packet to send [19:38:39]OFD Sender: No OFD packet to send [19:38:44]OFD Sender: No OFD packet to send [19:38:49]OFD Sender: No OFD packet to send [19:38:54]OFD Sender: No OFD packet to send [19:38:59]OFD Sender: No OFD packet to send [19:39:04]OFD Sender: No OFD packet to send [19:39:09]OFD Sender: No OFD packet to send [19:39:14]OFD Sender: No OFD packet to send [19:39:19]OFD Sender: No OFD packet to send [19:39:24]OFD Sender: No OFD packet to send [19:39:29]OFD Sender: No OFD packet to send [19:39:34]OFD Sender: No OFD packet to send [19:39:39]OFD Sender: No OFD packet to send [19:39:44]OFD Sender: No OFD packet to send [19:39:49]OFD Sender: No OFD packet to send [19:39:54]OFD Sender: No OFD packet to send [19:39:59]OFD Sender: No OFD packet to send [19:40:04]OFD Sender: No OFD packet to send [19:40:09]OFD Sender: No OFD packet to send [19:40:14]OFD Sender: No OFD packet to send [19:40:19]OFD Sender: No OFD packet to send [19:40:24]OFD Sender: No OFD packet to send [19:40:29]OFD Sender: No OFD packet to send [19:40:34]OFD Sender: No OFD packet to send [19:40:39]OFD Sender: No OFD packet to send [19:40:44]OFD Sender: No OFD packet to send [19:40:49]OFD Sender: No OFD packet to send [19:40:54]OFD Sender: No OFD packet to send [19:40:54]accept exits with 9 [19:40:54]New connection [19:40:54]New thread 3066801508 created [19:40:54]Thread 3066658148 joined [19:40:54]Waiting for new connection... [19:40:54] Sock 9.Parse request [19:40:54]Sock 9.Check first char [19:40:54]Sock 9.First char is OK [19:40:54]request: POST /json_proto HTTP/1.0 [19:40:54]Method: POST [19:40:54]URL: /json_proto [19:40:54]Method is POST - this is cgi request [19:40:54]url: /json_proto [19:40:54]query_string will be loaded in cgi processing [19:40:54]execute_cgi json_proto POST (null) [19:40:54]execute_cgi path=json_proto method=POST [19:40:54]POST find Content-Length [19:40:54]Host: 172.17.57.71:8080 [19:40:54]Content-Length: 1267 [19:40:54]Content-Type: application/json [19:40:54] [19:40:54]POST finish read [19:40:54]Found Content-Length = 1267 [19:40:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127556", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681376", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u041A\u0420\u0410\u0411 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:54]execute_script... [19:40:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127556", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681376", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u041A\u0420\u0410\u0411 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:54]POST & json_proto [19:40:54]process_json_proto [19:40:54]json parsed OK: [19:40:54]protocol is kg_v1.0 [19:40:54]action value=close_receipt [19:40:54]process_action close_receipt [19:40:54]cmd_close_receipt [19:40:54]MH_GetDate [19:40:54]Write to MH i2c: F0 00 00 DD 60 2C [19:40:54]Write i2c OK [19:40:54]MH_I2C_Read... [19:40:54]Read from MH i2c: F0 [19:40:54]MH_I2C_Read... [19:40:54]Read from MH i2c: F0 09 00 [19:40:54]MH_I2C_Read... [19:40:54]Read from MH i2c: F0 09 00 DD 60 00 50 38 E7 66 33 3A A4 66 81 [19:40:54]GetLastDocTimeStamp 1726428475 [19:40:54]current date 1726429264 [19:40:54]FM_GetShiftState [19:40:54]SAM_PROTO_GetShiftState [19:40:54]wFMCommunicate request_size=4 [19:40:54]MH_SAM_APDU [19:40:54]CAPDU: 80 13 01 00 [19:40:54]Write to MH i2c: E2 08 00 DE 60 80 13 01 00 00 00 00 00 BB [19:40:54]Write i2c OK [19:40:54]MH_I2C_Read... [19:40:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:54]Read from MH i2c: E2 [19:40:54]MH_I2C_Read... [19:40:54]Read from MH i2c: E2 0E 00 [19:40:54]MH_I2C_Read... [19:40:54]Read from MH i2c: E2 0E 00 DE 60 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 3D [19:40:54]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [19:40:54]wFMCommunicate OK [19:40:54]SAM_PROTO_GetShiftState done [19:40:54]FM_GetShiftState done [19:40:54]opened in 1726359809 [19:40:54]opened+sec_in_day 1726446209 [19:40:54]quantity*price = 7500 [19:40:54]sum+1 = 7501 [19:40:54]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870235681376 ЧИПСЫ SLANG СО ВКУСОМ КРАБ 60Г 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000189349 Холодный чай Fuse манго ананас 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 245.00 НСП 1% : 2.16 НДС 12% : 26.01 Наличными: 245.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 115 15.09.2024 19:41 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92667 ФПД: 272076934381993 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T194105&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92667&fm=272076934381993&tin=02508201610067®Number=0000000000091423&sum=24500 0 [19:40:55]StoreToDocumentArchive [19:40:55]shift 507 fd 92667 [19:40:55]save to /storage/0507/doc_00092667 [19:40:55]save last doc name /storage/0507/doc_00092667 to /storage/kkm_last_doc_name [19:40:55]save OK [19:40:55]Clear old archive folders... [19:40:55]ProcessDocumentItem done err = 0, tmpTLVsize=525 [19:40:55]tlvbuf is 01041340 [19:40:55]SAM_PROTO_ClearQueue [19:40:55]wFMCommunicate request_size=4 [19:40:55]MH_SAM_APDU [19:40:55]CAPDU: 80 09 00 00 [19:40:55]Write to MH i2c: E2 08 00 EB 60 80 09 00 00 00 00 00 00 BD [19:40:55]Write i2c OK [19:40:55]MH_I2C_Read... [19:40:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:40:55]Read from MH i2c: E2 [19:40:55]MH_I2C_Read... [19:40:55]Read from MH i2c: E2 03 00 [19:40:55]MH_I2C_Read... [19:40:55]Read from MH i2c: E2 03 00 EB 60 00 90 00 BF [19:40:55]RAPDU: 90 00 [19:40:55]wFMCommunicate OK [19:40:55]SAM_PROTO_ClearQueue done [19:40:55]KKMCreateOFDPacket [19:40:55]OFDProtocolAddRootSTLVToBuf [19:40:55]FM_MakeSignedData [19:40:55]FM_MakeSignedData [19:40:55]SAM_PROTO_SignData [19:40:55]wFMCommunicate request_size=4 [19:40:55]MH_SAM_APDU [19:40:55]CAPDU: 80 0D 01 02 [19:40:55]Write to MH i2c: E2 08 00 EC 60 80 0D 01 02 00 00 00 00 C5 [19:40:55]Write i2c OK [19:40:55]MH_I2C_Read... [19:40:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:40:55]Read from MH i2c: E2 [19:40:55]MH_I2C_Read... [19:40:55]Read from MH i2c: E2 03 00 [19:40:55]MH_I2C_Read... [19:40:55]Read from MH i2c: E2 03 00 EC 60 00 90 00 C0 [19:40:55]RAPDU: 90 00 [19:40:55]wFMCommunicate OK [19:40:55]wFMCommunicate request_size=255 [19:40:55]MH_SAM_APDU [19:40:55]CAPDU: 80 0D 02 02 FA 03 00 0D 02 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 [19:40:55]Write to MH i2c: E2 02 01 ED 60 80 0D 02 02 FA 00 03 00 0D 02 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 00 00 5C [19:40:55]Write i2c OK [19:40:55]MH_I2C_Read... [19:40:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:56]Read from MH i2c: E2 [19:40:56]MH_I2C_Read... [19:40:56]Read from MH i2c: E2 03 00 [19:40:56]MH_I2C_Read... [19:40:56]Read from MH i2c: E2 03 00 ED 60 00 90 00 C1 [19:40:56]RAPDU: 90 00 [19:40:56]wFMCommunicate OK [19:40:56]wFMCommunicate request_size=255 [19:40:56]MH_SAM_APDU [19:40:56]CAPDU: 80 0D 02 02 FA 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 51 38 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 [19:40:56]Write to MH i2c: E2 02 01 EE 60 80 0D 02 02 FA 00 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 51 38 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 00 00 71 [19:40:56]Write i2c OK [19:40:56]MH_I2C_Read... [19:40:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:56]Read from MH i2c: E2 [19:40:56]MH_I2C_Read... [19:40:56]Read from MH i2c: E2 03 00 [19:40:56]MH_I2C_Read... [19:40:56]Read from MH i2c: E2 03 00 EE 60 00 90 00 C2 [19:40:56]RAPDU: 90 00 [19:40:56]wFMCommunicate OK [19:40:56]wFMCommunicate request_size=34 [19:40:56]MH_SAM_APDU [19:40:56]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FB 69 01 00 35 04 06 00 F7 73 D9 06 81 A9 [19:40:56]Write to MH i2c: E2 25 00 EF 60 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FB 69 01 00 35 04 06 00 F7 73 D9 06 81 A9 00 00 66 [19:40:56]Write i2c OK [19:40:56]MH_I2C_Read... [19:40:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:56]Read from MH i2c: E2 [19:40:56]MH_I2C_Read... [19:40:56]Read from MH i2c: E2 03 00 [19:40:56]MH_I2C_Read... [19:40:56]Read from MH i2c: E2 03 00 EF 60 00 90 00 C3 [19:40:56]RAPDU: 90 00 [19:40:56]wFMCommunicate OK [19:40:56]wFMCommunicate request_size=4 [19:40:56]MH_SAM_APDU [19:40:56]CAPDU: 80 0D 03 02 [19:40:56]Write to MH i2c: E2 08 00 F0 60 80 0D 03 02 00 00 00 00 CB [19:40:56]Write i2c OK [19:40:56]MH_I2C_Read... [19:40:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:40:56]Read from MH i2c: E2 [19:40:56]MH_I2C_Read... [19:40:56]Read from MH i2c: E2 0B 00 [19:40:56]MH_I2C_Read... [19:40:56]Read from MH i2c: E2 0B 00 F0 60 00 01 49 CC 9D F5 5F 77 E8 90 00 32 [19:40:56]RAPDU: 01 49 CC 9D F5 5F 77 E8 90 00 [19:40:56]wFMCommunicate OK [19:40:56]SAM_PROTO_SignData done [19:40:56]FM_MakeSignedData done [19:40:56]CreateOFDProtocolMessage [19:40:56]wFMCommunicate request_size=4 [19:40:56]MH_SAM_APDU [19:40:56]CAPDU: 80 11 00 00 [19:40:56]Write to MH i2c: E2 08 00 F1 60 80 11 00 00 00 00 00 00 CB [19:40:56]Write i2c OK [19:40:56]MH_I2C_Read... [19:40:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:56]Read from MH i2c: E2 [19:40:56]MH_I2C_Read... [19:40:56]Read from MH i2c: E2 17 00 [19:40:56]MH_I2C_Read... [19:40:56]Read from MH i2c: E2 17 00 F1 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 22 [19:40:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:40:56]wFMCommunicate OK [19:40:56]CreateOFDProtocolMessage done [19:40:56]OFDSenderStorePacket 92667 [19:40:56]StoreOFDPacket docnum=92667 [19:40:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 21 02 00 00 AE 58 19 02 D2 AC 5A 03 01 00 03 00 0D 02 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 51 38 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FB 69 01 00 35 04 06 00 F7 73 D9 06 81 A9 01 49 CC 9D F5 5F 77 E8 [19:40:56]CheckFolder [19:40:56]dirname=/storage/ofd_packets [19:40:56]CheckFolder done [19:40:56]ProducePacketName [19:40:56]name=ofd_packets/00092667 [19:40:56]NVStorageSaveData ofd_packets/00092667 [19:40:56]File name is /storage/ofd_packets/00092667 [19:40:56]Write 575 bytes [19:40:56]NVStorageSaveData done [19:40:56]OFDSenderStorePacket done [19:40:56]KKMCreateOFDPacket done [19:40:56]NVStorageSaveData kkm_last_timestamp [19:40:56]File name is /storage/kkm_last_timestamp [19:40:56]Write 4 bytes [19:40:56]NVStorageSaveData done [19:40:56]ExternCall_PrintAddStr [19:40:56]wPrintStart [19:40:56]Write to MH i2c: 01 00 00 F2 60 52 [19:40:56]Write i2c OK [19:40:56]MH_I2C_Read... [19:40:56]Read from MH i2c: 01 [19:40:56]MH_I2C_Read... [19:40:56]Read from MH i2c: 01 07 00 [19:40:56]MH_I2C_Read... [19:40:56]Read from MH i2c: 01 07 00 F2 60 00 00 00 00 00 FF 0F 67 [19:40:56]RasterBufferAndPrint [19:40:56]line Счет N : (3)127556 [19:40:56]line ИНН: 02508201610067 [19:40:56]line Контрольно-Кассовый Чек [19:40:56]line ПРОДАЖА [19:40:56]line Товар: 54491472 [19:40:56]line Напиток Кока-Кола 0,5л [19:40:56]line 1.000 * 75.00 [19:40:56]line = 75.00 [19:40:56]line НДС 12% НСП 1% [19:40:56]line > о реализуемом товаре [19:40:56]line Товар: 4870235681376 [19:40:56]line ЧИПСЫ SLANG СО ВКУСОМ КРАБ 60Г [19:40:56]line 1.000 * 95.00 [19:40:56]line = 95.00 [19:40:56]line НДС 12% НСП 1% [19:40:56]line > о реализуемом товаре [19:40:56]line Товар: 5449000189349 [19:40:56]line Холодный чай Fuse манго ананас 0,5л [19:40:56]line 1.000 * 75.00 [19:40:56]line = 75.00 [19:40:56]line НДС 12% НСП 1% [19:40:56]line > о реализуемом товаре [19:40:56]line ИТОГО: 245.00 [19:40:56]line НСП 1% : 2.16 [19:40:56]line НДС 12% : 26.01 [19:40:56]line Наличными: 245.00 [19:40:56]line Безнал.: 0.00 [19:40:56]line Место: АЗС № 5 "Партнер Нефть" [19:40:56]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:40:56]line СНО: Общий режим [19:40:56]line Чек 115 15.09.2024 19:41 [19:40:56]line Смена: 507 ФФД: 1.0 [19:40:56]line ЗНМ: 03000000022 [19:40:56]line РНМ: 0000000000091423 [19:40:56]line Версия ККМ: 001 [19:40:56]line ФМ: 0000000000874692 [19:40:56]line ФД: 92667 [19:40:56]line ФПД: 272076934381993 [19:40:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T194105&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92667&fm=272076934381993&tin=02508201610067®Number=0000000000091423&sum=24500 [19:40:56]line 0 [19:40:56]OFD Sender: Processing packet 92667 [packets to send 63, broken 62] [19:40:56]ProducePacketName [19:40:56]name=ofd_packets/00092667 [19:40:56]OFD Sender: To server: pG, [19:40:56]CommunicateWithHost lk.salyk.kg:30040 [19:40:56]ConnectInit lk.salyk.kg [19:40:56]written 0, free lines is 4095 [19:40:56]Connected sock=10 [19:40:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 21 02 00 00 AE 58 19 02 D2 AC 5A 03 01 00 03 00 0D 02 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 51 38 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FB 69 01 00 35 04 06 00 F7 73 D9 06 81 A9 01 49 CC 9D F5 5F 77 E8 [19:40:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 38 5B 47 00 AD 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FB 69 01 00 F4 03 04 00 C7 E0 E6 66 B6 04 01 00 00 A6 BC D5 C0 CA 05 F4 97 [19:40:57]CommunicateWithHost err = 0 [19:40:57]CheckOFDResponse [19:40:57]1017 (14) - 77093643461234 [19:40:57]1041 (16) - 0000000000874692 [19:40:57]1040 (4) - 92667 [19:40:57]1012 (4) - 15.09.2024 13:27 [19:40:57]1206 (1) - 0 [19:40:57]OFD Sender: Remove packet 92667 [19:40:57]ProducePacketName [19:40:57]name=ofd_packets/00092667 [19:40:57]NVStorageDeleteData [19:40:57]Write to MH i2c: 01 00 00 28 61 89 [19:40:57]Write i2c OK [19:40:57]MH_I2C_Read... [19:40:57]Read from MH i2c: 01 [19:40:57]MH_I2C_Read... [19:40:57]Read from MH i2c: 01 07 00 [19:40:57]MH_I2C_Read... [19:40:57]Read from MH i2c: 01 07 00 28 61 00 00 00 00 00 73 0C 0F [19:40:57]RasterBufferAndPrint [19:40:57]line [19:40:57]line [19:40:57]line [19:40:57]line [19:40:57]line [19:40:57]written 0, free lines is 3197 [19:40:57]MH_Cut [19:40:57]Write to MH i2c: D1 01 00 2F 61 01 62 [19:40:57]Write i2c OK [19:40:57]MH_I2C_Read... [19:40:57]Read from MH i2c: D1 [19:40:57]MH_I2C_Read... [19:40:57]Read from MH i2c: D1 01 00 [19:40:57]MH_I2C_Read... [19:40:57]Read from MH i2c: D1 01 00 2F 61 00 61 [19:40:57]Write to MH i2c: 01 00 00 30 61 91 [19:40:57]Write i2c OK [19:40:57]MH_I2C_Read... [19:40:57]OFD Sender: No OFD packet to send [19:40:58]*** Cut start [19:40:58]*** Purtial cut [19:40:58]*** Stage 1: CUTSNS_PIN = 1 [19:41:00]Read from MH i2c: 01 [19:41:00]MH_I2C_Read... [19:41:00]Read from MH i2c: 01 07 00 [19:41:00]MH_I2C_Read... [19:41:00]*** Stop cut motor [19:41:00]*** Cut end [19:41:00]Read from MH i2c: 01 07 00 30 61 00 00 00 00 00 FF 0F A6 [19:41:00]process_action close_receipt done [19:41:00]requested_data is exist [19:41:00]produce_requested_data [19:41:00]requested_item fm.sn is exist - process it [19:41:00]wFMCommunicate request_size=4 [19:41:00]MH_SAM_APDU [19:41:00]CAPDU: 80 11 00 00 [19:41:00]Write to MH i2c: E2 08 00 31 61 80 11 00 00 00 00 00 00 0C [19:41:00]Write i2c OK [19:41:00]MH_I2C_Read... [19:41:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:00]Read from MH i2c: E2 [19:41:00]MH_I2C_Read... [19:41:00]Read from MH i2c: E2 17 00 [19:41:00]MH_I2C_Read... [19:41:00]Read from MH i2c: E2 17 00 31 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 63 [19:41:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:41:00]wFMCommunicate OK [19:41:00]requested_item fd.num is exist - process it [19:41:00]SAM_PROTO_GetFieldsCounters [19:41:00]wFMCommunicate request_size=4 [19:41:00]MH_SAM_APDU [19:41:00]CAPDU: 80 13 00 00 [19:41:00]Write to MH i2c: E2 08 00 32 61 80 13 00 00 00 00 00 00 0F [19:41:00]Write i2c OK [19:41:00]MH_I2C_Read... [19:41:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:41:00]Read from MH i2c: E2 [19:41:00]MH_I2C_Read... [19:41:00]Read from MH i2c: E2 62 00 [19:41:00]MH_I2C_Read... [19:41:00]Read from MH i2c: E2 62 00 32 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 FB 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [19:41:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 FB 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:41:00]wFMCommunicate OK [19:41:00]SAM_PROTO_GetFieldsCounters done [19:41:00]requested_item shift.num is exist - process it [19:41:00]requested_item shift.opened is exist - process it [19:41:00]req_shift_opened [19:41:00]FM_GetShiftState [19:41:00]SAM_PROTO_GetShiftState [19:41:00]wFMCommunicate request_size=4 [19:41:00]MH_SAM_APDU [19:41:00]CAPDU: 80 13 01 00 [19:41:00]Write to MH i2c: E2 08 00 33 61 80 13 01 00 00 00 00 00 11 [19:41:00]Write i2c OK [19:41:00]MH_I2C_Read... [19:41:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:00]Read from MH i2c: E2 [19:41:00]MH_I2C_Read... [19:41:00]Read from MH i2c: E2 0E 00 [19:41:00]MH_I2C_Read... [19:41:00]Read from MH i2c: E2 0E 00 33 61 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 93 [19:41:00]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [19:41:00]wFMCommunicate OK [19:41:00]SAM_PROTO_GetShiftState done [19:41:00]FM_GetShiftState done [19:41:00]req_shift_opened done [19:41:00]requested_item shift.open_date is exist - process it [19:41:00]req_shift_open_date [19:41:00]req_shift_open_date done [19:41:00]produce_requested_data done [19:41:00]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92667,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [19:41:00]process_action_free close_receipt [19:41:00]json_value_free [19:41:00]json_value_free done [19:41:00]process_json_proto returns [19:41:00]Send response to host [19:41:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92667,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [19:41:00]free response buf [19:41:00]execute_script done [19:41:00]execute_script returns [19:41:00]free content buf [19:41:00]Sock 9.Close socket [19:41:00]Sock 9.Thread stoped [19:41:02]OFD Sender: No OFD packet to send [19:41:07]OFD Sender: No OFD packet to send [19:41:12]OFD Sender: No OFD packet to send [19:41:17]OFD Sender: No OFD packet to send [19:41:22]OFD Sender: No OFD packet to send [19:41:27]OFD Sender: No OFD packet to send [19:41:30]accept exits with 8 [19:41:30]New connection [19:41:30]New thread 3066658148 created [19:41:30]Thread 3066801508 joined [19:41:30]Waiting for new connection... [19:41:30] Sock 8.Parse request [19:41:30]Sock 8.Check first char [19:41:30]Sock 8.First char is OK [19:41:30]request: POST /json_proto HTTP/1.0 [19:41:30]Method: POST [19:41:30]URL: /json_proto [19:41:30]Method is POST - this is cgi request [19:41:30]url: /json_proto [19:41:30]query_string will be loaded in cgi processing [19:41:30]execute_cgi json_proto POST (null) [19:41:30]execute_cgi path=json_proto method=POST [19:41:30]POST find Content-Length [19:41:30]Host: 172.17.57.71:8080 [19:41:30]Content-Length: 1154 [19:41:30]Content-Type: application/json [19:41:30] [19:41:30]POST finish read [19:41:30]Found Content-Length = 1154 [19:41:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127557", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 212.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:30]execute_script... [19:41:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127557", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 212.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:30]POST & json_proto [19:41:30]process_json_proto [19:41:30]json parsed OK: [19:41:30]protocol is kg_v1.0 [19:41:30]action value=close_receipt [19:41:30]process_action close_receipt [19:41:30]cmd_close_receipt [19:41:30]MH_GetDate [19:41:30]Write to MH i2c: F0 00 00 34 61 84 [19:41:30]Write i2c OK [19:41:30]MH_I2C_Read... [19:41:30]Read from MH i2c: F0 [19:41:30]MH_I2C_Read... [19:41:30]Read from MH i2c: F0 09 00 [19:41:30]MH_I2C_Read... [19:41:30]Read from MH i2c: F0 09 00 34 61 00 74 38 E7 66 33 3A A4 66 FD [19:41:30]GetLastDocTimeStamp 1726429265 [19:41:30]current date 1726429300 [19:41:30]FM_GetShiftState [19:41:30]SAM_PROTO_GetShiftState [19:41:30]wFMCommunicate request_size=4 [19:41:30]MH_SAM_APDU [19:41:30]CAPDU: 80 13 01 00 [19:41:30]Write to MH i2c: E2 08 00 35 61 80 13 01 00 00 00 00 00 13 [19:41:30]Write i2c OK [19:41:30]MH_I2C_Read... [19:41:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:30]Read from MH i2c: E2 [19:41:30]MH_I2C_Read... [19:41:30]Read from MH i2c: E2 0E 00 [19:41:30]MH_I2C_Read... [19:41:30]Read from MH i2c: E2 0E 00 35 61 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 95 [19:41:30]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [19:41:30]wFMCommunicate OK [19:41:30]SAM_PROTO_GetShiftState done [19:41:30]FM_GetShiftState done [19:41:30]opened in 1726359809 [19:41:30]opened+sec_in_day 1726446209 [19:41:30]quantity*price = 7700 [19:41:30]sum+1 = 7701 [19:41:30]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 40822938 Напиток Фанта 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160204 Вода Легенда 1,5л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 212.00 НСП 1% : 1.87 НДС 12% : 22.51 Наличными: 212.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 116 15.09.2024 19:41 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92668 ФПД: 119169131105693 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T194140&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92668&fm=119169131105693&tin=02508201610067®Number=0000000000091423&sum=21200 0 [19:41:31]StoreToDocumentArchive [19:41:31]shift 507 fd 92668 [19:41:31]save to /storage/0507/doc_00092668 [19:41:31]save last doc name /storage/0507/doc_00092668 to /storage/kkm_last_doc_name [19:41:31]save OK [19:41:31]Clear old archive folders... [19:41:31]ProcessDocumentItem done err = 0, tmpTLVsize=492 [19:41:31]tlvbuf is 010C8870 [19:41:31]SAM_PROTO_ClearQueue [19:41:31]wFMCommunicate request_size=4 [19:41:31]MH_SAM_APDU [19:41:31]CAPDU: 80 09 00 00 [19:41:31]Write to MH i2c: E2 08 00 42 61 80 09 00 00 00 00 00 00 15 [19:41:31]Write i2c OK [19:41:31]MH_I2C_Read... [19:41:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:41:31]Read from MH i2c: E2 [19:41:31]MH_I2C_Read... [19:41:31]Read from MH i2c: E2 03 00 [19:41:31]MH_I2C_Read... [19:41:31]Read from MH i2c: E2 03 00 42 61 00 90 00 17 [19:41:31]RAPDU: 90 00 [19:41:31]wFMCommunicate OK [19:41:31]SAM_PROTO_ClearQueue done [19:41:31]KKMCreateOFDPacket [19:41:31]OFDProtocolAddRootSTLVToBuf [19:41:31]FM_MakeSignedData [19:41:31]FM_MakeSignedData [19:41:31]SAM_PROTO_SignData [19:41:31]wFMCommunicate request_size=4 [19:41:31]MH_SAM_APDU [19:41:31]CAPDU: 80 0D 01 02 [19:41:31]Write to MH i2c: E2 08 00 43 61 80 0D 01 02 00 00 00 00 1D [19:41:31]Write i2c OK [19:41:31]MH_I2C_Read... [19:41:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:41:31]Read from MH i2c: E2 [19:41:31]MH_I2C_Read... [19:41:31]Read from MH i2c: E2 03 00 [19:41:31]MH_I2C_Read... [19:41:31]Read from MH i2c: E2 03 00 43 61 00 90 00 18 [19:41:31]RAPDU: 90 00 [19:41:31]wFMCommunicate OK [19:41:31]wFMCommunicate request_size=255 [19:41:31]MH_SAM_APDU [19:41:31]CAPDU: 80 0D 02 02 FA 03 00 EC 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 [19:41:31]Write to MH i2c: E2 02 01 44 61 80 0D 02 02 FA 00 03 00 EC 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 00 00 19 [19:41:32]Write i2c OK [19:41:32]MH_I2C_Read... [19:41:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:32]Read from MH i2c: E2 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: E2 03 00 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: E2 03 00 44 61 00 90 00 19 [19:41:32]RAPDU: 90 00 [19:41:32]wFMCommunicate OK [19:41:32]wFMCommunicate request_size=251 [19:41:32]MH_SAM_APDU [19:41:32]CAPDU: 80 0D 02 02 F6 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 08 00 00 00 00 07 04 06 00 D0 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 74 38 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FC 69 01 00 35 04 06 00 6C 62 39 BA 4D 9D [19:41:32]Write to MH i2c: E2 FE 00 45 61 80 0D 02 02 F6 00 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 08 00 00 00 00 07 04 06 00 D0 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 74 38 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FC 69 01 00 35 04 06 00 6C 62 39 BA 4D 9D 00 00 E5 [19:41:32]Write i2c OK [19:41:32]MH_I2C_Read... [19:41:32]OFD Sender: No OFD packet to send [19:41:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:32]Read from MH i2c: E2 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: E2 03 00 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: E2 03 00 45 61 00 90 00 1A [19:41:32]RAPDU: 90 00 [19:41:32]wFMCommunicate OK [19:41:32]wFMCommunicate request_size=4 [19:41:32]MH_SAM_APDU [19:41:32]CAPDU: 80 0D 03 02 [19:41:32]Write to MH i2c: E2 08 00 46 61 80 0D 03 02 00 00 00 00 22 [19:41:32]Write i2c OK [19:41:32]MH_I2C_Read... [19:41:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:41:32]Read from MH i2c: E2 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: E2 0B 00 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: E2 0B 00 46 61 00 02 6D CF 82 B9 E6 33 E6 90 00 9B [19:41:32]RAPDU: 02 6D CF 82 B9 E6 33 E6 90 00 [19:41:32]wFMCommunicate OK [19:41:32]SAM_PROTO_SignData done [19:41:32]FM_MakeSignedData done [19:41:32]CreateOFDProtocolMessage [19:41:32]wFMCommunicate request_size=4 [19:41:32]MH_SAM_APDU [19:41:32]CAPDU: 80 11 00 00 [19:41:32]Write to MH i2c: E2 08 00 47 61 80 11 00 00 00 00 00 00 22 [19:41:32]Write i2c OK [19:41:32]MH_I2C_Read... [19:41:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:32]Read from MH i2c: E2 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: E2 17 00 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: E2 17 00 47 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 79 [19:41:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:41:32]wFMCommunicate OK [19:41:32]CreateOFDProtocolMessage done [19:41:32]OFDSenderStorePacket 92668 [19:41:32]StoreOFDPacket docnum=92668 [19:41:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 00 02 00 00 F1 C2 F8 01 EB 46 5A 03 01 00 03 00 EC 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 08 00 00 00 00 07 04 06 00 D0 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 74 38 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FC 69 01 00 35 04 06 00 6C 62 39 BA 4D 9D 02 6D CF 82 B9 E6 33 E6 [19:41:32]CheckFolder [19:41:32]dirname=/storage/ofd_packets [19:41:32]CheckFolder done [19:41:32]ProducePacketName [19:41:32]name=ofd_packets/00092668 [19:41:32]NVStorageSaveData ofd_packets/00092668 [19:41:32]File name is /storage/ofd_packets/00092668 [19:41:32]Write 542 bytes [19:41:32]NVStorageSaveData done [19:41:32]OFDSenderStorePacket done [19:41:32]KKMCreateOFDPacket done [19:41:32]NVStorageSaveData kkm_last_timestamp [19:41:32]File name is /storage/kkm_last_timestamp [19:41:32]Write 4 bytes [19:41:32]NVStorageSaveData done [19:41:32]ExternCall_PrintAddStr [19:41:32]wPrintStart [19:41:32]Write to MH i2c: 01 00 00 48 61 A9 [19:41:32]OFD Sender: Processing packet 92668 [packets to send 63, broken 62] [19:41:32]ProducePacketName [19:41:32]name=ofd_packets/00092668 [19:41:32]OFD Sender: To server: pG, [19:41:32]CommunicateWithHost lk.salyk.kg:30040 [19:41:32]ConnectInit lk.salyk.kg [19:41:32]Write i2c OK [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: 01 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: 01 07 00 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: 01 07 00 48 61 00 00 00 00 00 FF 0F BE [19:41:32]RasterBufferAndPrint [19:41:32]line Счет N : (3)127557 [19:41:32]line ИНН: 02508201610067 [19:41:32]line Контрольно-Кассовый Чек [19:41:32]line ПРОДАЖА [19:41:32]line Товар: 4700000480050 [19:41:32]line Напиток Nitro Energy эн green ж/б 0,45л [19:41:32]line 1.000 * 77.00 [19:41:32]line = 77.00 [19:41:32]line НДС 12% НСП 1% [19:41:32]line > о реализуемом товаре [19:41:32]line Товар: 40822938 [19:41:32]line Напиток Фанта 0,5л [19:41:32]line 1.000 * 75.00 [19:41:32]line = 75.00 [19:41:32]line НДС 12% НСП 1% [19:41:32]line > о реализуемом товаре [19:41:32]line Товар: 4700000160204 [19:41:32]line Вода Легенда 1,5л [19:41:32]line 1.000 * 60.00 [19:41:32]line = 60.00 [19:41:32]line НДС 12% НСП 1% [19:41:32]line > о реализуемом товаре [19:41:32]line ИТОГО: 212.00 [19:41:32]line НСП 1% : 1.87 [19:41:32]line НДС 12% : 22.51 [19:41:32]line Наличными: 212.00 [19:41:32]line Безнал.: 0.00 [19:41:32]line Место: АЗС № 5 "Партнер Нефть" [19:41:32]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:41:32]line СНО: Общий режим [19:41:32]line Чек 116 15.09.2024 19:41 [19:41:32]line Смена: 507 ФФД: 1.0 [19:41:32]line ЗНМ: 03000000022 [19:41:32]line РНМ: 0000000000091423 [19:41:32]line Версия ККМ: 001 [19:41:32]line ФМ: 0000000000874692 [19:41:32]line ФД: 92668 [19:41:32]line ФПД: 119169131105693 [19:41:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T194140&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92668&fm=119169131105693&tin=02508201610067®Number=0000000000091423&sum=21200 [19:41:32]line 0 [19:41:32]written 0, free lines is 4095 [19:41:32]Connected sock=10 [19:41:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 00 02 00 00 F1 C2 F8 01 EB 46 5A 03 01 00 03 00 EC 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 08 00 00 00 00 07 04 06 00 D0 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 74 38 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FC 69 01 00 35 04 06 00 6C 62 39 BA 4D 9D 02 6D CF 82 B9 E6 33 E6 [19:41:33]Write to MH i2c: 01 00 00 7D 61 DE [19:41:33]Write i2c OK [19:41:33]MH_I2C_Read... [19:41:33]Read from MH i2c: 01 [19:41:33]MH_I2C_Read... [19:41:33]Read from MH i2c: 01 07 00 [19:41:33]MH_I2C_Read... [19:41:33]Read from MH i2c: 01 07 00 7D 61 00 00 00 00 00 77 0C 68 [19:41:33]RasterBufferAndPrint [19:41:33]line [19:41:33]line [19:41:33]line [19:41:33]line [19:41:33]line [19:41:33]written 0, free lines is 3200 [19:41:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 04 A1 47 00 4D 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FC 69 01 00 F4 03 04 00 EC E0 E6 66 B6 04 01 00 00 AD D8 7D BA F7 79 49 EF [19:41:33]CommunicateWithHost err = 0 [19:41:33]CheckOFDResponse [19:41:33]1017 (14) - 77093643461234 [19:41:33]1041 (16) - 0000000000874692 [19:41:33]1040 (4) - 92668 [19:41:33]1012 (4) - 15.09.2024 13:28 [19:41:33]1206 (1) - 0 [19:41:33]OFD Sender: Remove packet 92668 [19:41:33]ProducePacketName [19:41:33]name=ofd_packets/00092668 [19:41:33]NVStorageDeleteData [19:41:33]MH_Cut [19:41:33]Write to MH i2c: D1 01 00 84 61 01 B7 [19:41:33]Write i2c OK [19:41:33]MH_I2C_Read... [19:41:33]Read from MH i2c: D1 [19:41:33]MH_I2C_Read... [19:41:33]Read from MH i2c: D1 01 00 [19:41:33]MH_I2C_Read... [19:41:33]Read from MH i2c: D1 01 00 84 61 00 B6 [19:41:33]Write to MH i2c: 01 00 00 85 61 E6 [19:41:33]Write i2c OK [19:41:33]MH_I2C_Read... [19:41:34]OFD Sender: No OFD packet to send [19:41:34]*** Cut start [19:41:34]*** Purtial cut [19:41:34]*** Stage 1: CUTSNS_PIN = 1 [19:41:36]Read from MH i2c: 01 [19:41:36]MH_I2C_Read... [19:41:36]*** Stop cut motor [19:41:36]*** Cut end [19:41:36]Read from MH i2c: 01 07 00 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: 01 07 00 85 61 00 00 00 00 00 FF 0F FB [19:41:36]process_action close_receipt done [19:41:36]requested_data is exist [19:41:36]produce_requested_data [19:41:36]requested_item fm.sn is exist - process it [19:41:36]wFMCommunicate request_size=4 [19:41:36]MH_SAM_APDU [19:41:36]CAPDU: 80 11 00 00 [19:41:36]Write to MH i2c: E2 08 00 86 61 80 11 00 00 00 00 00 00 61 [19:41:36]Write i2c OK [19:41:36]MH_I2C_Read... [19:41:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:36]Read from MH i2c: E2 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 17 00 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 17 00 86 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B8 [19:41:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:41:36]wFMCommunicate OK [19:41:36]requested_item fd.num is exist - process it [19:41:36]SAM_PROTO_GetFieldsCounters [19:41:36]wFMCommunicate request_size=4 [19:41:36]MH_SAM_APDU [19:41:36]CAPDU: 80 13 00 00 [19:41:36]Write to MH i2c: E2 08 00 87 61 80 13 00 00 00 00 00 00 64 [19:41:36]Write i2c OK [19:41:36]MH_I2C_Read... [19:41:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:41:36]Read from MH i2c: E2 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 62 00 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 62 00 87 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 FC 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [19:41:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 FC 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:41:36]wFMCommunicate OK [19:41:36]SAM_PROTO_GetFieldsCounters done [19:41:36]requested_item shift.num is exist - process it [19:41:36]requested_item shift.opened is exist - process it [19:41:36]req_shift_opened [19:41:36]FM_GetShiftState [19:41:36]SAM_PROTO_GetShiftState [19:41:36]wFMCommunicate request_size=4 [19:41:36]MH_SAM_APDU [19:41:36]CAPDU: 80 13 01 00 [19:41:36]Write to MH i2c: E2 08 00 88 61 80 13 01 00 00 00 00 00 66 [19:41:36]Write i2c OK [19:41:36]MH_I2C_Read... [19:41:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:36]Read from MH i2c: E2 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 0E 00 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 0E 00 88 61 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 E8 [19:41:36]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [19:41:36]wFMCommunicate OK [19:41:36]SAM_PROTO_GetShiftState done [19:41:36]FM_GetShiftState done [19:41:36]req_shift_opened done [19:41:36]requested_item shift.open_date is exist - process it [19:41:36]req_shift_open_date [19:41:36]req_shift_open_date done [19:41:36]produce_requested_data done [19:41:36]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92668,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [19:41:36]process_action_free close_receipt [19:41:36]json_value_free [19:41:36]json_value_free done [19:41:36]process_json_proto returns [19:41:36]Send response to host [19:41:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92668,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [19:41:36]free response buf [19:41:36]execute_script done [19:41:36]execute_script returns [19:41:36]free content buf [19:41:36]Sock 8.Close socket [19:41:36]Sock 8.Thread stoped [19:41:39]OFD Sender: No OFD packet to send [19:41:44]OFD Sender: No OFD packet to send [19:41:49]OFD Sender: No OFD packet to send [19:41:54]OFD Sender: No OFD packet to send [19:41:59]OFD Sender: No OFD packet to send [19:42:04]OFD Sender: No OFD packet to send [19:42:09]OFD Sender: No OFD packet to send [19:42:14]OFD Sender: No OFD packet to send [19:42:19]OFD Sender: No OFD packet to send [19:42:24]OFD Sender: No OFD packet to send [19:42:29]OFD Sender: No OFD packet to send [19:42:34]OFD Sender: No OFD packet to send [19:42:39]OFD Sender: No OFD packet to send [19:42:40]accept exits with 9 [19:42:40]New connection [19:42:40]New thread 3066801508 created [19:42:40]Thread 3066658148 joined [19:42:40]Waiting for new connection... [19:42:40] Sock 9.Parse request [19:42:40]Sock 9.Check first char [19:42:40]Sock 9.First char is OK [19:42:40]request: POST /json_proto HTTP/1.0 [19:42:40]Method: POST [19:42:40]URL: /json_proto [19:42:40]Method is POST - this is cgi request [19:42:40]url: /json_proto [19:42:40]query_string will be loaded in cgi processing [19:42:40]execute_cgi json_proto POST (null) [19:42:40]execute_cgi path=json_proto method=POST [19:42:40]POST find Content-Length [19:42:40]Host: 172.17.57.71:8080 [19:42:40]Content-Length: 673 [19:42:40]Content-Type: application/json [19:42:40] [19:42:40]POST finish read [19:42:40]Found Content-Length = 673 [19:42:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127558", "tax_sys" : 0, "items" : [ { "code": "4670003190051", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u041640 \u043A\u0440\u0430\u0441 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:40]execute_script... [19:42:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127558", "tax_sys" : 0, "items" : [ { "code": "4670003190051", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u041640 \u043A\u0440\u0430\u0441 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:40]POST & json_proto [19:42:40]process_json_proto [19:42:40]json parsed OK: [19:42:40]protocol is kg_v1.0 [19:42:40]action value=close_receipt [19:42:40]process_action close_receipt [19:42:40]cmd_close_receipt [19:42:40]MH_GetDate [19:42:40]Write to MH i2c: F0 00 00 89 61 D9 [19:42:40]Write i2c OK [19:42:40]MH_I2C_Read... [19:42:40]Read from MH i2c: F0 [19:42:40]MH_I2C_Read... [19:42:40]Read from MH i2c: F0 09 00 [19:42:40]MH_I2C_Read... [19:42:40]Read from MH i2c: F0 09 00 89 61 00 BA 38 E7 66 33 3A A4 66 98 [19:42:40]GetLastDocTimeStamp 1726429300 [19:42:40]current date 1726429370 [19:42:40]FM_GetShiftState [19:42:40]SAM_PROTO_GetShiftState [19:42:40]wFMCommunicate request_size=4 [19:42:40]MH_SAM_APDU [19:42:40]CAPDU: 80 13 01 00 [19:42:40]Write to MH i2c: E2 08 00 8A 61 80 13 01 00 00 00 00 00 68 [19:42:40]Write i2c OK [19:42:40]MH_I2C_Read... [19:42:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:40]Read from MH i2c: E2 [19:42:40]MH_I2C_Read... [19:42:40]Read from MH i2c: E2 0E 00 [19:42:40]MH_I2C_Read... [19:42:40]Read from MH i2c: E2 0E 00 8A 61 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 EA [19:42:40]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [19:42:40]wFMCommunicate OK [19:42:40]SAM_PROTO_GetShiftState done [19:42:40]FM_GetShiftState done [19:42:40]opened in 1726359809 [19:42:40]opened+sec_in_day 1726446209 [19:42:40]quantity*price = 22500 [19:42:40]sum+1 = 22501 [19:42:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 117 15.09.2024 19:42 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92669 ФПД: 145882802036721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T194250&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92669&fm=145882802036721&tin=02508201610067®Number=0000000000091423&sum=22500 0 [19:42:41]StoreToDocumentArchive [19:42:41]shift 507 fd 92669 [19:42:41]save to /storage/0507/doc_00092669 [19:42:41]save last doc name /storage/0507/doc_00092669 to /storage/kkm_last_doc_name [19:42:41]save OK [19:42:41]Clear old archive folders... [19:42:41]ProcessDocumentItem done err = 0, tmpTLVsize=297 [19:42:41]tlvbuf is 00FD3BE0 [19:42:41]SAM_PROTO_ClearQueue [19:42:41]wFMCommunicate request_size=4 [19:42:41]MH_SAM_APDU [19:42:41]CAPDU: 80 09 00 00 [19:42:41]Write to MH i2c: E2 08 00 97 61 80 09 00 00 00 00 00 00 6A [19:42:41]Write i2c OK [19:42:41]MH_I2C_Read... [19:42:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:42:41]Read from MH i2c: E2 [19:42:41]MH_I2C_Read... [19:42:41]Read from MH i2c: E2 03 00 [19:42:41]MH_I2C_Read... [19:42:41]Read from MH i2c: E2 03 00 97 61 00 90 00 6C [19:42:41]RAPDU: 90 00 [19:42:41]wFMCommunicate OK [19:42:41]SAM_PROTO_ClearQueue done [19:42:41]KKMCreateOFDPacket [19:42:41]OFDProtocolAddRootSTLVToBuf [19:42:41]FM_MakeSignedData [19:42:41]FM_MakeSignedData [19:42:41]SAM_PROTO_SignData [19:42:41]wFMCommunicate request_size=4 [19:42:41]MH_SAM_APDU [19:42:41]CAPDU: 80 0D 01 02 [19:42:41]Write to MH i2c: E2 08 00 98 61 80 0D 01 02 00 00 00 00 72 [19:42:41]Write i2c OK [19:42:41]MH_I2C_Read... [19:42:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:42:41]Read from MH i2c: E2 [19:42:41]MH_I2C_Read... [19:42:41]Read from MH i2c: E2 03 00 [19:42:41]MH_I2C_Read... [19:42:41]Read from MH i2c: E2 03 00 98 61 00 90 00 6D [19:42:41]RAPDU: 90 00 [19:42:41]wFMCommunicate OK [19:42:41]wFMCommunicate request_size=255 [19:42:41]MH_SAM_APDU [19:42:41]CAPDU: 80 0D 02 02 FA 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 35 31 06 04 37 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 34 30 20 D0 BA D1 80 D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 BA 38 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 [19:42:41]Write to MH i2c: E2 02 01 99 61 80 0D 02 02 FA 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 35 31 06 04 37 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 34 30 20 D0 BA D1 80 D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 BA 38 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 00 00 62 [19:42:41]Write i2c OK [19:42:41]MH_I2C_Read... [19:42:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:41]Read from MH i2c: E2 [19:42:41]MH_I2C_Read... [19:42:41]Read from MH i2c: E2 03 00 [19:42:41]MH_I2C_Read... [19:42:41]Read from MH i2c: E2 03 00 99 61 00 90 00 6E [19:42:41]RAPDU: 90 00 [19:42:41]wFMCommunicate OK [19:42:41]wFMCommunicate request_size=56 [19:42:41]MH_SAM_APDU [19:42:41]CAPDU: 80 0D 02 02 33 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FD 69 01 00 35 04 06 00 84 AD FC 98 1F F1 [19:42:41]Write to MH i2c: E2 3B 00 9A 61 80 0D 02 02 33 00 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FD 69 01 00 35 04 06 00 84 AD FC 98 1F F1 00 00 3A [19:42:41]Write i2c OK [19:42:41]MH_I2C_Read... [19:42:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:41]Read from MH i2c: E2 [19:42:41]MH_I2C_Read... [19:42:41]Read from MH i2c: E2 03 00 [19:42:41]MH_I2C_Read... [19:42:41]Read from MH i2c: E2 03 00 9A 61 00 90 00 6F [19:42:41]RAPDU: 90 00 [19:42:41]wFMCommunicate OK [19:42:41]wFMCommunicate request_size=4 [19:42:41]MH_SAM_APDU [19:42:41]CAPDU: 80 0D 03 02 [19:42:41]Write to MH i2c: E2 08 00 9B 61 80 0D 03 02 00 00 00 00 77 [19:42:41]Write i2c OK [19:42:41]MH_I2C_Read... [19:42:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:42:41]Read from MH i2c: E2 [19:42:41]MH_I2C_Read... [19:42:41]Read from MH i2c: E2 0B 00 [19:42:41]MH_I2C_Read... [19:42:41]Read from MH i2c: E2 0B 00 9B 61 00 E6 5E 3A A0 2B 19 68 CF 90 00 11 [19:42:41]RAPDU: E6 5E 3A A0 2B 19 68 CF 90 00 [19:42:41]wFMCommunicate OK [19:42:41]SAM_PROTO_SignData done [19:42:41]FM_MakeSignedData done [19:42:41]CreateOFDProtocolMessage [19:42:41]wFMCommunicate request_size=4 [19:42:41]MH_SAM_APDU [19:42:41]CAPDU: 80 11 00 00 [19:42:41]Write to MH i2c: E2 08 00 9C 61 80 11 00 00 00 00 00 00 77 [19:42:41]Write i2c OK [19:42:41]MH_I2C_Read... [19:42:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:41]Read from MH i2c: E2 [19:42:41]MH_I2C_Read... [19:42:41]Read from MH i2c: E2 17 00 [19:42:41]MH_I2C_Read... [19:42:41]Read from MH i2c: E2 17 00 9C 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 CE [19:42:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:42:41]wFMCommunicate OK [19:42:41]CreateOFDProtocolMessage done [19:42:41]OFDSenderStorePacket 92669 [19:42:41]StoreOFDPacket docnum=92669 [19:42:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3D 01 00 00 A5 25 35 01 BA 66 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 35 31 06 04 37 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 34 30 20 D0 BA D1 80 D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 BA 38 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FD 69 01 00 35 04 06 00 84 AD FC 98 1F F1 E6 5E 3A A0 2B 19 68 CF [19:42:41]CheckFolder [19:42:41]dirname=/storage/ofd_packets [19:42:41]CheckFolder done [19:42:41]ProducePacketName [19:42:41]name=ofd_packets/00092669 [19:42:41]NVStorageSaveData ofd_packets/00092669 [19:42:41]File name is /storage/ofd_packets/00092669 [19:42:41]Write 347 bytes [19:42:41]NVStorageSaveData done [19:42:41]OFDSenderStorePacket done [19:42:41]KKMCreateOFDPacket done [19:42:41]NVStorageSaveData kkm_last_timestamp [19:42:41]File name is /storage/kkm_last_timestamp [19:42:41]Write 4 bytes [19:42:41]NVStorageSaveData done [19:42:41]ExternCall_PrintAddStr [19:42:41]wPrintStart [19:42:41]Write to MH i2c: 01 00 00 9D 61 FE [19:42:41]Write i2c OK [19:42:41]MH_I2C_Read... [19:42:41]Read from MH i2c: 01 [19:42:41]MH_I2C_Read... [19:42:41]Read from MH i2c: 01 07 00 [19:42:41]MH_I2C_Read... [19:42:41]Read from MH i2c: 01 07 00 9D 61 00 00 00 00 00 FF 0F 13 [19:42:41]RasterBufferAndPrint [19:42:41]line Счет N : (3)127558 [19:42:41]line ИНН: 02508201610067 [19:42:41]line Контрольно-Кассовый Чек [19:42:41]line ПРОДАЖА [19:42:41]line Товар: 4670003190051 [19:42:41]line Антифриз SIBIRIA ANTIFREEZE ОЖ40 крас 1л [19:42:41]line 1.000 * 225.00 [19:42:41]line = 225.00 [19:42:41]line НДС 12% НСП 1% [19:42:41]line > о реализуемом товаре [19:42:41]line ИТОГО: 225.00 [19:42:41]line НСП 1% : 1.99 [19:42:41]line НДС 12% : 23.89 [19:42:41]line Наличными: 225.00 [19:42:41]line Безнал.: 0.00 [19:42:41]line Место: АЗС № 5 "Партнер Нефть" [19:42:41]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:42:41]line СНО: Общий режим [19:42:41]line Чек 117 15.09.2024 19:42 [19:42:41]line Смена: 507 ФФД: 1.0 [19:42:41]line ЗНМ: 03000000022 [19:42:41]line РНМ: 0000000000091423 [19:42:41]line Версия ККМ: 001 [19:42:41]line ФМ: 0000000000874692 [19:42:41]line ФД: 92669 [19:42:41]line ФПД: 145882802036721 [19:42:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T194250&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92669&fm=145882802036721&tin=02508201610067®Number=0000000000091423&sum=22500 [19:42:42]OFD Sender: Processing packet 92669 [packets to send 63, broken 62] [19:42:42]ProducePacketName [19:42:42]name=ofd_packets/00092669 [19:42:42]OFD Sender: To server: pG, [19:42:42]CommunicateWithHost lk.salyk.kg:30040 [19:42:42]ConnectInit lk.salyk.kg [19:42:42]line 0 [19:42:42]written 0, free lines is 4095 [19:42:42]Connected sock=10 [19:42:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3D 01 00 00 A5 25 35 01 BA 66 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 35 31 06 04 37 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 34 30 20 D0 BA D1 80 D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 BA 38 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FD 69 01 00 35 04 06 00 84 AD FC 98 1F F1 E6 5E 3A A0 2B 19 68 CF [19:42:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 19 5E 47 00 3D D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FD 69 01 00 F4 03 04 00 31 E1 E6 66 B6 04 01 00 00 94 82 02 20 83 8B 7F EA [19:42:42]CommunicateWithHost err = 0 [19:42:42]CheckOFDResponse [19:42:42]1017 (14) - 77093643461234 [19:42:42]1041 (16) - 0000000000874692 [19:42:42]1040 (4) - 92669 [19:42:42]1012 (4) - 15.09.2024 13:29 [19:42:42]1206 (1) - 0 [19:42:42]OFD Sender: Remove packet 92669 [19:42:42]ProducePacketName [19:42:42]name=ofd_packets/00092669 [19:42:42]NVStorageDeleteData [19:42:42]Write to MH i2c: 01 00 00 C6 61 27 [19:42:42]Write i2c OK [19:42:42]MH_I2C_Read... [19:42:42]Read from MH i2c: 01 [19:42:42]MH_I2C_Read... [19:42:42]Read from MH i2c: 01 07 00 [19:42:42]MH_I2C_Read... [19:42:42]Read from MH i2c: 01 07 00 C6 61 00 00 00 00 00 15 0D 50 [19:42:42]RasterBufferAndPrint [19:42:42]line [19:42:42]line [19:42:42]line [19:42:42]line [19:42:42]line [19:42:42]written 0, free lines is 3360 [19:42:42]MH_Cut [19:42:42]Write to MH i2c: D1 01 00 CD 61 01 00 [19:42:42]Write i2c OK [19:42:42]MH_I2C_Read... [19:42:42]Read from MH i2c: D1 [19:42:42]MH_I2C_Read... [19:42:42]Read from MH i2c: D1 01 00 [19:42:42]MH_I2C_Read... [19:42:42]Read from MH i2c: D1 01 00 CD 61 00 FF [19:42:42]Write to MH i2c: 01 00 00 CE 61 2F [19:42:42]Write i2c OK [19:42:42]MH_I2C_Read... [19:42:43]OFD Sender: No OFD packet to send [19:42:43]*** Cut start [19:42:43]*** Purtial cut [19:42:43]*** Stage 1: CUTSNS_PIN = 1 [19:42:45]Read from MH i2c: 01 [19:42:45]MH_I2C_Read... [19:42:45]*** Stop cut motor [19:42:45]*** Cut end [19:42:45]Read from MH i2c: 01 07 00 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: 01 07 00 CE 61 00 00 00 00 00 FF 0F 44 [19:42:45]process_action close_receipt done [19:42:45]requested_data is exist [19:42:45]produce_requested_data [19:42:45]requested_item fm.sn is exist - process it [19:42:45]wFMCommunicate request_size=4 [19:42:45]MH_SAM_APDU [19:42:45]CAPDU: 80 11 00 00 [19:42:45]Write to MH i2c: E2 08 00 CF 61 80 11 00 00 00 00 00 00 AA [19:42:45]Write i2c OK [19:42:45]MH_I2C_Read... [19:42:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:45]Read from MH i2c: E2 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: E2 17 00 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: E2 17 00 CF 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 01 [19:42:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:42:45]wFMCommunicate OK [19:42:45]requested_item fd.num is exist - process it [19:42:45]SAM_PROTO_GetFieldsCounters [19:42:45]wFMCommunicate request_size=4 [19:42:45]MH_SAM_APDU [19:42:45]CAPDU: 80 13 00 00 [19:42:45]Write to MH i2c: E2 08 00 D0 61 80 13 00 00 00 00 00 00 AD [19:42:45]Write i2c OK [19:42:45]MH_I2C_Read... [19:42:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:42:45]Read from MH i2c: E2 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: E2 62 00 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: E2 62 00 D0 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 FD 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [19:42:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 FD 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:42:45]wFMCommunicate OK [19:42:45]SAM_PROTO_GetFieldsCounters done [19:42:45]requested_item shift.num is exist - process it [19:42:45]requested_item shift.opened is exist - process it [19:42:45]req_shift_opened [19:42:45]FM_GetShiftState [19:42:45]SAM_PROTO_GetShiftState [19:42:45]wFMCommunicate request_size=4 [19:42:45]MH_SAM_APDU [19:42:45]CAPDU: 80 13 01 00 [19:42:45]Write to MH i2c: E2 08 00 D1 61 80 13 01 00 00 00 00 00 AF [19:42:45]Write i2c OK [19:42:45]MH_I2C_Read... [19:42:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:45]Read from MH i2c: E2 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: E2 0E 00 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: E2 0E 00 D1 61 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 31 [19:42:45]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [19:42:45]wFMCommunicate OK [19:42:45]SAM_PROTO_GetShiftState done [19:42:45]FM_GetShiftState done [19:42:45]req_shift_opened done [19:42:45]requested_item shift.open_date is exist - process it [19:42:45]req_shift_open_date [19:42:45]req_shift_open_date done [19:42:45]produce_requested_data done [19:42:45]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92669,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [19:42:45]process_action_free close_receipt [19:42:45]json_value_free [19:42:45]json_value_free done [19:42:45]process_json_proto returns [19:42:45]Send response to host [19:42:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92669,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [19:42:45]free response buf [19:42:45]execute_script done [19:42:45]execute_script returns [19:42:45]free content buf [19:42:45]Sock 9.Close socket [19:42:45]Sock 9.Thread stoped [19:42:48]OFD Sender: No OFD packet to send [19:42:53]OFD Sender: No OFD packet to send [19:42:58]OFD Sender: No OFD packet to send [19:43:03]OFD Sender: No OFD packet to send [19:43:08]OFD Sender: No OFD packet to send [19:43:13]OFD Sender: No OFD packet to send [19:43:18]OFD Sender: No OFD packet to send [19:43:23]OFD Sender: No OFD packet to send [19:43:25]accept exits with 8 [19:43:25]New connection [19:43:25]New thread 3066658148 created [19:43:25]Thread 3066801508 joined [19:43:25]Waiting for new connection... [19:43:25] Sock 8.Parse request [19:43:25]Sock 8.Check first char [19:43:25]Sock 8.First char is OK [19:43:25]request: POST /json_proto HTTP/1.0 [19:43:25]Method: POST [19:43:25]URL: /json_proto [19:43:25]Method is POST - this is cgi request [19:43:25]url: /json_proto [19:43:25]query_string will be loaded in cgi processing [19:43:25]execute_cgi json_proto POST (null) [19:43:25]execute_cgi path=json_proto method=POST [19:43:25]POST find Content-Length [19:43:25]Host: 172.17.57.71:8080 [19:43:25]Content-Length: 917 [19:43:25]Content-Type: application/json [19:43:25] [19:43:25]POST finish read [19:43:25]Found Content-Length = 917 [19:43:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127559", "tax_sys" : 0, "items" : [ { "code": "4870002329951", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u0437\u0435\u043B \u0447\u0430\u0439 Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:43:25]execute_script... [19:43:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127559", "tax_sys" : 0, "items" : [ { "code": "4870002329951", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u0437\u0435\u043B \u0447\u0430\u0439 Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:43:25]POST & json_proto [19:43:25]process_json_proto [19:43:25]json parsed OK: [19:43:25]protocol is kg_v1.0 [19:43:25]action value=close_receipt [19:43:25]process_action close_receipt [19:43:25]cmd_close_receipt [19:43:25]MH_GetDate [19:43:25]Write to MH i2c: F0 00 00 D2 61 22 [19:43:25]Write i2c OK [19:43:25]MH_I2C_Read... [19:43:25]Read from MH i2c: F0 [19:43:25]MH_I2C_Read... [19:43:25]Read from MH i2c: F0 09 00 [19:43:25]MH_I2C_Read... [19:43:25]Read from MH i2c: F0 09 00 D2 61 00 E8 38 E7 66 33 3A A4 66 0F [19:43:25]GetLastDocTimeStamp 1726429370 [19:43:25]current date 1726429416 [19:43:25]FM_GetShiftState [19:43:25]SAM_PROTO_GetShiftState [19:43:25]wFMCommunicate request_size=4 [19:43:25]MH_SAM_APDU [19:43:25]CAPDU: 80 13 01 00 [19:43:25]Write to MH i2c: E2 08 00 D3 61 80 13 01 00 00 00 00 00 B1 [19:43:25]Write i2c OK [19:43:25]MH_I2C_Read... [19:43:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:25]Read from MH i2c: E2 [19:43:25]MH_I2C_Read... [19:43:25]Read from MH i2c: E2 0E 00 [19:43:25]MH_I2C_Read... [19:43:25]Read from MH i2c: E2 0E 00 D3 61 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 33 [19:43:25]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [19:43:25]wFMCommunicate OK [19:43:25]SAM_PROTO_GetShiftState done [19:43:25]FM_GetShiftState done [19:43:25]opened in 1726359809 [19:43:25]opened+sec_in_day 1726446209 [19:43:25]quantity*price = 13000 [19:43:25]sum+1 = 13001 [19:43:25]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 118 15.09.2024 19:43 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92670 ФПД: 100005449447526 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T194336&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92670&fm=100005449447526&tin=02508201610067®Number=0000000000091423&sum=17000 0 [19:43:27]StoreToDocumentArchive [19:43:27]shift 507 fd 92670 [19:43:27]save to /storage/0507/doc_00092670 [19:43:27]save last doc name /storage/0507/doc_00092670 to /storage/kkm_last_doc_name [19:43:27]save OK [19:43:27]Clear old archive folders... [19:43:27]ProcessDocumentItem done err = 0, tmpTLVsize=397 [19:43:27]tlvbuf is 01040F80 [19:43:27]SAM_PROTO_ClearQueue [19:43:27]wFMCommunicate request_size=4 [19:43:27]MH_SAM_APDU [19:43:27]CAPDU: 80 09 00 00 [19:43:27]Write to MH i2c: E2 08 00 E0 61 80 09 00 00 00 00 00 00 B3 [19:43:27]Write i2c OK [19:43:27]MH_I2C_Read... [19:43:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:43:27]Read from MH i2c: E2 [19:43:27]MH_I2C_Read... [19:43:27]Read from MH i2c: E2 03 00 [19:43:27]MH_I2C_Read... [19:43:27]Read from MH i2c: E2 03 00 E0 61 00 90 00 B5 [19:43:27]RAPDU: 90 00 [19:43:27]wFMCommunicate OK [19:43:27]SAM_PROTO_ClearQueue done [19:43:27]KKMCreateOFDPacket [19:43:27]OFDProtocolAddRootSTLVToBuf [19:43:27]FM_MakeSignedData [19:43:27]FM_MakeSignedData [19:43:27]SAM_PROTO_SignData [19:43:27]wFMCommunicate request_size=4 [19:43:27]MH_SAM_APDU [19:43:27]CAPDU: 80 0D 01 02 [19:43:27]Write to MH i2c: E2 08 00 E1 61 80 0D 01 02 00 00 00 00 BB [19:43:27]Write i2c OK [19:43:27]MH_I2C_Read... [19:43:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:43:27]Read from MH i2c: E2 [19:43:27]MH_I2C_Read... [19:43:27]Read from MH i2c: E2 03 00 [19:43:27]MH_I2C_Read... [19:43:27]Read from MH i2c: E2 03 00 E1 61 00 90 00 B6 [19:43:27]RAPDU: 90 00 [19:43:27]wFMCommunicate OK [19:43:27]wFMCommunicate request_size=255 [19:43:27]MH_SAM_APDU [19:43:27]CAPDU: 80 0D 02 02 FA 03 00 8D 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 [19:43:27]Write to MH i2c: E2 02 01 E2 61 80 0D 02 02 FA 00 03 00 8D 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 00 00 AD [19:43:27]Write i2c OK [19:43:27]MH_I2C_Read... [19:43:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:27]Read from MH i2c: E2 [19:43:27]MH_I2C_Read... [19:43:27]Read from MH i2c: E2 03 00 [19:43:27]MH_I2C_Read... [19:43:27]Read from MH i2c: E2 03 00 E2 61 00 90 00 B7 [19:43:27]RAPDU: 90 00 [19:43:27]wFMCommunicate OK [19:43:27]wFMCommunicate request_size=156 [19:43:27]MH_SAM_APDU [19:43:27]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 E8 38 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FE 69 01 00 35 04 06 00 5A F4 55 4A 38 66 [19:43:27]Write to MH i2c: E2 9F 00 E3 61 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 E8 38 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FE 69 01 00 35 04 06 00 5A F4 55 4A 38 66 00 00 39 [19:43:27]Write i2c OK [19:43:27]MH_I2C_Read... [19:43:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:27]Read from MH i2c: E2 [19:43:27]MH_I2C_Read... [19:43:27]Read from MH i2c: E2 03 00 [19:43:27]MH_I2C_Read... [19:43:27]Read from MH i2c: E2 03 00 E3 61 00 90 00 B8 [19:43:27]RAPDU: 90 00 [19:43:27]wFMCommunicate OK [19:43:27]wFMCommunicate request_size=4 [19:43:27]MH_SAM_APDU [19:43:27]CAPDU: 80 0D 03 02 [19:43:27]Write to MH i2c: E2 08 00 E4 61 80 0D 03 02 00 00 00 00 C0 [19:43:27]Write i2c OK [19:43:27]MH_I2C_Read... [19:43:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:43:27]Read from MH i2c: E2 [19:43:27]MH_I2C_Read... [19:43:27]Read from MH i2c: E2 0B 00 [19:43:27]MH_I2C_Read... [19:43:27]Read from MH i2c: E2 0B 00 E4 61 00 A9 DB 60 B5 97 4C 34 37 90 00 A8 [19:43:27]RAPDU: A9 DB 60 B5 97 4C 34 37 90 00 [19:43:27]wFMCommunicate OK [19:43:27]SAM_PROTO_SignData done [19:43:27]FM_MakeSignedData done [19:43:27]CreateOFDProtocolMessage [19:43:27]wFMCommunicate request_size=4 [19:43:27]MH_SAM_APDU [19:43:27]CAPDU: 80 11 00 00 [19:43:27]Write to MH i2c: E2 08 00 E5 61 80 11 00 00 00 00 00 00 C0 [19:43:27]Write i2c OK [19:43:27]MH_I2C_Read... [19:43:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:27]Read from MH i2c: E2 [19:43:27]MH_I2C_Read... [19:43:27]Read from MH i2c: E2 17 00 [19:43:27]MH_I2C_Read... [19:43:27]Read from MH i2c: E2 17 00 E5 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 17 [19:43:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:43:27]wFMCommunicate OK [19:43:27]CreateOFDProtocolMessage done [19:43:27]OFDSenderStorePacket 92670 [19:43:27]StoreOFDPacket docnum=92670 [19:43:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A1 01 00 00 45 8D 99 01 FE 61 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 E8 38 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FE 69 01 00 35 04 06 00 5A F4 55 4A 38 66 A9 DB 60 B5 97 4C 34 37 [19:43:27]CheckFolder [19:43:27]dirname=/storage/ofd_packets [19:43:27]CheckFolder done [19:43:27]ProducePacketName [19:43:27]name=ofd_packets/00092670 [19:43:27]NVStorageSaveData ofd_packets/00092670 [19:43:27]File name is /storage/ofd_packets/00092670 [19:43:27]Write 447 bytes [19:43:27]NVStorageSaveData done [19:43:27]OFDSenderStorePacket done [19:43:27]KKMCreateOFDPacket done [19:43:27]NVStorageSaveData kkm_last_timestamp [19:43:27]File name is /storage/kkm_last_timestamp [19:43:27]Write 4 bytes [19:43:27]NVStorageSaveData done [19:43:27]ExternCall_PrintAddStr [19:43:27]wPrintStart [19:43:27]Write to MH i2c: 01 00 00 E6 61 47 [19:43:27]Write i2c OK [19:43:27]MH_I2C_Read... [19:43:27]Read from MH i2c: 01 [19:43:27]MH_I2C_Read... [19:43:27]Read from MH i2c: 01 07 00 [19:43:27]MH_I2C_Read... [19:43:27]Read from MH i2c: 01 07 00 E6 61 00 00 00 00 00 FF 0F 5C [19:43:27]RasterBufferAndPrint [19:43:27]line Счет N : (3)127559 [19:43:27]line ИНН: 02508201610067 [19:43:27]line Контрольно-Кассовый Чек [19:43:27]line ПРОДАЖА [19:43:27]line Товар: 4870002329951 [19:43:27]line Напиток Lipton IceTea 1л зел чай Regular [19:43:27]line 1.000 * 130.00 [19:43:27]line = 130.00 [19:43:27]line НДС 12% НСП 1% [19:43:28]line > о реализуемом товаре [19:43:28]line Товар: 4700000160211 [19:43:28]line Вода Легенда 0,5л [19:43:28]line 1.000 * 40.00 [19:43:28]line = 40.00 [19:43:28]line НДС 12% НСП 1% [19:43:28]line > о реализуемом товаре [19:43:28]line ИТОГО: 170.00 [19:43:28]line НСП 1% : 1.50 [19:43:28]line НДС 12% : 18.05 [19:43:28]line Наличными: 170.00 [19:43:28]line Безнал.: 0.00 [19:43:28]line Место: АЗС № 5 "Партнер Нефть" [19:43:28]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:43:28]line СНО: Общий режим [19:43:28]line Чек 118 15.09.2024 19:43 [19:43:28]line Смена: 507 ФФД: 1.0 [19:43:28]line ЗНМ: 03000000022 [19:43:28]line РНМ: 0000000000091423 [19:43:28]line Версия ККМ: 001 [19:43:28]line ФМ: 0000000000874692 [19:43:28]line ФД: 92670 [19:43:28]line ФПД: 100005449447526 [19:43:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T194336&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92670&fm=100005449447526&tin=02508201610067®Number=0000000000091423&sum=17000 [19:43:28]OFD Sender: Processing packet 92670 [packets to send 63, broken 62] [19:43:28]ProducePacketName [19:43:28]name=ofd_packets/00092670 [19:43:28]OFD Sender: To server: pG, [19:43:28]CommunicateWithHost lk.salyk.kg:30040 [19:43:28]ConnectInit lk.salyk.kg [19:43:28]line 0 [19:43:28]written 0, free lines is 4095 [19:43:28]Connected sock=9 [19:43:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A1 01 00 00 45 8D 99 01 FE 61 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 E8 38 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FE 69 01 00 35 04 06 00 5A F4 55 4A 38 66 A9 DB 60 B5 97 4C 34 37 [19:43:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 84 4E 47 00 50 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FE 69 01 00 F4 03 04 00 5F E1 E6 66 B6 04 01 00 00 FA 28 58 5F C8 6D AF D6 [19:43:28]CommunicateWithHost err = 0 [19:43:28]CheckOFDResponse [19:43:28]1017 (14) - 77093643461234 [19:43:28]1041 (16) - 0000000000874692 [19:43:28]1040 (4) - 92670 [19:43:28]1012 (4) - 15.09.2024 13:30 [19:43:28]1206 (1) - 0 [19:43:28]OFD Sender: Remove packet 92670 [19:43:28]ProducePacketName [19:43:28]name=ofd_packets/00092670 [19:43:28]NVStorageDeleteData [19:43:28]Write to MH i2c: 01 00 00 15 62 77 [19:43:28]Write i2c OK [19:43:28]MH_I2C_Read... [19:43:28]Read from MH i2c: 01 [19:43:28]MH_I2C_Read... [19:43:28]Read from MH i2c: 01 07 00 [19:43:28]MH_I2C_Read... [19:43:28]Read from MH i2c: 01 07 00 15 62 00 00 00 00 00 CB 0C 55 [19:43:28]RasterBufferAndPrint [19:43:28]line [19:43:28]line [19:43:28]line [19:43:28]line [19:43:28]line [19:43:28]written 0, free lines is 3283 [19:43:28]MH_Cut [19:43:28]Write to MH i2c: D1 01 00 1C 62 01 50 [19:43:28]Write i2c OK [19:43:28]MH_I2C_Read... [19:43:28]Read from MH i2c: D1 [19:43:28]MH_I2C_Read... [19:43:28]Read from MH i2c: D1 01 00 [19:43:28]MH_I2C_Read... [19:43:28]Read from MH i2c: D1 01 00 1C 62 00 4F [19:43:28]Write to MH i2c: 01 00 00 1D 62 7F [19:43:28]Write i2c OK [19:43:28]MH_I2C_Read... [19:43:28]OFD Sender: No OFD packet to send [19:43:29]*** Cut start [19:43:29]*** Purtial cut [19:43:29]*** Stage 1: CUTSNS_PIN = 1 [19:43:31]Read from MH i2c: 01 [19:43:31]MH_I2C_Read... [19:43:31]*** Stop cut motor [19:43:31]*** Cut end [19:43:31]Read from MH i2c: 01 07 00 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: 01 07 00 1D 62 00 00 00 00 00 FF 0F 94 [19:43:31]process_action close_receipt done [19:43:31]requested_data is exist [19:43:31]produce_requested_data [19:43:31]requested_item fm.sn is exist - process it [19:43:31]wFMCommunicate request_size=4 [19:43:31]MH_SAM_APDU [19:43:31]CAPDU: 80 11 00 00 [19:43:31]Write to MH i2c: E2 08 00 1E 62 80 11 00 00 00 00 00 00 FA [19:43:31]Write i2c OK [19:43:31]MH_I2C_Read... [19:43:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:31]Read from MH i2c: E2 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 17 00 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 17 00 1E 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 51 [19:43:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:43:31]wFMCommunicate OK [19:43:31]requested_item fd.num is exist - process it [19:43:31]SAM_PROTO_GetFieldsCounters [19:43:31]wFMCommunicate request_size=4 [19:43:31]MH_SAM_APDU [19:43:31]CAPDU: 80 13 00 00 [19:43:31]Write to MH i2c: E2 08 00 1F 62 80 13 00 00 00 00 00 00 FD [19:43:31]Write i2c OK [19:43:31]MH_I2C_Read... [19:43:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:43:31]Read from MH i2c: E2 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 62 00 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 62 00 1F 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 FE 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [19:43:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 FE 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:43:31]wFMCommunicate OK [19:43:31]SAM_PROTO_GetFieldsCounters done [19:43:31]requested_item shift.num is exist - process it [19:43:31]requested_item shift.opened is exist - process it [19:43:31]req_shift_opened [19:43:31]FM_GetShiftState [19:43:31]SAM_PROTO_GetShiftState [19:43:31]wFMCommunicate request_size=4 [19:43:31]MH_SAM_APDU [19:43:31]CAPDU: 80 13 01 00 [19:43:31]Write to MH i2c: E2 08 00 20 62 80 13 01 00 00 00 00 00 FF [19:43:31]Write i2c OK [19:43:31]MH_I2C_Read... [19:43:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:31]Read from MH i2c: E2 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 0E 00 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 0E 00 20 62 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 81 [19:43:31]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [19:43:31]wFMCommunicate OK [19:43:31]SAM_PROTO_GetShiftState done [19:43:31]FM_GetShiftState done [19:43:31]req_shift_opened done [19:43:31]requested_item shift.open_date is exist - process it [19:43:31]req_shift_open_date [19:43:31]req_shift_open_date done [19:43:31]produce_requested_data done [19:43:31]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92670,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [19:43:31]process_action_free close_receipt [19:43:31]json_value_free [19:43:31]json_value_free done [19:43:31]process_json_proto returns [19:43:31]Send response to host [19:43:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92670,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [19:43:31]free response buf [19:43:31]execute_script done [19:43:31]execute_script returns [19:43:31]free content buf [19:43:31]Sock 8.Close socket [19:43:31]Sock 8.Thread stoped [19:43:33]OFD Sender: No OFD packet to send [19:43:38]OFD Sender: No OFD packet to send [19:43:43]OFD Sender: No OFD packet to send [19:43:48]OFD Sender: No OFD packet to send [19:43:53]OFD Sender: No OFD packet to send [19:43:58]OFD Sender: No OFD packet to send [19:44:03]OFD Sender: No OFD packet to send [19:44:08]OFD Sender: No OFD packet to send [19:44:13]OFD Sender: No OFD packet to send [19:44:18]OFD Sender: No OFD packet to send [19:44:23]OFD Sender: No OFD packet to send [19:44:28]OFD Sender: No OFD packet to send [19:44:33]OFD Sender: No OFD packet to send [19:44:38]OFD Sender: No OFD packet to send [19:44:43]OFD Sender: No OFD packet to send [19:44:48]OFD Sender: No OFD packet to send [19:44:53]OFD Sender: No OFD packet to send [19:44:59]OFD Sender: No OFD packet to send [19:45:04]OFD Sender: No OFD packet to send [19:45:09]OFD Sender: No OFD packet to send [19:45:14]OFD Sender: No OFD packet to send [19:45:19]OFD Sender: No OFD packet to send [19:45:24]OFD Sender: No OFD packet to send [19:45:29]OFD Sender: No OFD packet to send [19:45:34]OFD Sender: No OFD packet to send [19:45:39]OFD Sender: No OFD packet to send [19:45:44]OFD Sender: No OFD packet to send [19:45:49]OFD Sender: No OFD packet to send [19:45:54]OFD Sender: No OFD packet to send [19:45:59]OFD Sender: No OFD packet to send [19:46:04]OFD Sender: No OFD packet to send [19:46:09]OFD Sender: No OFD packet to send [19:46:14]OFD Sender: No OFD packet to send [19:46:19]OFD Sender: No OFD packet to send [19:46:24]OFD Sender: No OFD packet to send [19:46:29]OFD Sender: No OFD packet to send [19:46:34]OFD Sender: No OFD packet to send [19:46:39]OFD Sender: No OFD packet to send [19:46:44]OFD Sender: No OFD packet to send [19:46:49]OFD Sender: No OFD packet to send [19:46:54]OFD Sender: No OFD packet to send [19:46:59]OFD Sender: No OFD packet to send [19:47:04]OFD Sender: No OFD packet to send [19:47:09]OFD Sender: No OFD packet to send [19:47:14]OFD Sender: No OFD packet to send [19:47:19]OFD Sender: No OFD packet to send [19:47:24]OFD Sender: No OFD packet to send [19:47:29]OFD Sender: No OFD packet to send [19:47:34]OFD Sender: No OFD packet to send [19:47:39]OFD Sender: No OFD packet to send [19:47:44]OFD Sender: No OFD packet to send [19:47:49]OFD Sender: No OFD packet to send [19:47:54]OFD Sender: No OFD packet to send [19:47:59]OFD Sender: No OFD packet to send [19:48:04]OFD Sender: No OFD packet to send [19:48:09]OFD Sender: No OFD packet to send [19:48:14]OFD Sender: No OFD packet to send [19:48:19]OFD Sender: No OFD packet to send [19:48:24]OFD Sender: No OFD packet to send [19:48:29]OFD Sender: No OFD packet to send [19:48:34]OFD Sender: No OFD packet to send [19:48:39]OFD Sender: No OFD packet to send [19:48:44]OFD Sender: No OFD packet to send [19:48:49]OFD Sender: No OFD packet to send [19:48:54]OFD Sender: No OFD packet to send [19:48:59]OFD Sender: No OFD packet to send [19:49:04]OFD Sender: No OFD packet to send [19:49:09]OFD Sender: No OFD packet to send [19:49:14]OFD Sender: No OFD packet to send [19:49:19]OFD Sender: No OFD packet to send [19:49:24]OFD Sender: No OFD packet to send [19:49:29]OFD Sender: No OFD packet to send [19:49:34]OFD Sender: No OFD packet to send [19:49:39]OFD Sender: No OFD packet to send [19:49:44]OFD Sender: No OFD packet to send [19:49:49]OFD Sender: No OFD packet to send [19:49:54]OFD Sender: No OFD packet to send [19:49:59]OFD Sender: No OFD packet to send [19:50:04]OFD Sender: No OFD packet to send [19:50:09]OFD Sender: No OFD packet to send [19:50:14]OFD Sender: No OFD packet to send [19:50:19]OFD Sender: No OFD packet to send [19:50:24]OFD Sender: No OFD packet to send [19:50:29]OFD Sender: No OFD packet to send [19:50:34]OFD Sender: No OFD packet to send [19:50:39]OFD Sender: No OFD packet to send [19:50:44]OFD Sender: No OFD packet to send [19:50:49]OFD Sender: No OFD packet to send [19:50:54]OFD Sender: No OFD packet to send [19:50:59]OFD Sender: No OFD packet to send [19:51:04]OFD Sender: No OFD packet to send [19:51:09]OFD Sender: No OFD packet to send [19:51:14]OFD Sender: No OFD packet to send [19:51:19]OFD Sender: No OFD packet to send [19:51:24]OFD Sender: No OFD packet to send [19:51:29]OFD Sender: No OFD packet to send [19:51:34]OFD Sender: No OFD packet to send [19:51:39]OFD Sender: No OFD packet to send [19:51:44]OFD Sender: No OFD packet to send [19:51:49]OFD Sender: No OFD packet to send [19:51:54]OFD Sender: No OFD packet to send [19:51:59]OFD Sender: No OFD packet to send [19:52:04]OFD Sender: No OFD packet to send [19:52:09]OFD Sender: No OFD packet to send [19:52:14]OFD Sender: No OFD packet to send [19:52:19]OFD Sender: No OFD packet to send [19:52:24]OFD Sender: No OFD packet to send [19:52:29]OFD Sender: No OFD packet to send [19:52:34]OFD Sender: No OFD packet to send [19:52:39]OFD Sender: No OFD packet to send [19:52:44]OFD Sender: No OFD packet to send [19:52:49]OFD Sender: No OFD packet to send [19:52:54]OFD Sender: No OFD packet to send [19:52:59]OFD Sender: No OFD packet to send [19:53:04]OFD Sender: No OFD packet to send [19:53:09]OFD Sender: No OFD packet to send [19:53:14]OFD Sender: No OFD packet to send [19:53:19]OFD Sender: No OFD packet to send [19:53:24]OFD Sender: No OFD packet to send [19:53:29]OFD Sender: No OFD packet to send [19:53:34]OFD Sender: No OFD packet to send [19:53:39]OFD Sender: No OFD packet to send [19:53:44]OFD Sender: No OFD packet to send [19:53:49]OFD Sender: No OFD packet to send [19:53:54]OFD Sender: No OFD packet to send [19:53:59]OFD Sender: No OFD packet to send [19:54:04]OFD Sender: No OFD packet to send [19:54:09]OFD Sender: No OFD packet to send [19:54:14]OFD Sender: No OFD packet to send [19:54:19]OFD Sender: No OFD packet to send [19:54:24]OFD Sender: No OFD packet to send [19:54:29]OFD Sender: No OFD packet to send [19:54:34]OFD Sender: No OFD packet to send [19:54:39]OFD Sender: No OFD packet to send [19:54:44]OFD Sender: No OFD packet to send [19:54:49]OFD Sender: No OFD packet to send [19:54:54]OFD Sender: No OFD packet to send [19:54:59]OFD Sender: No OFD packet to send [19:55:04]OFD Sender: No OFD packet to send [19:55:09]OFD Sender: No OFD packet to send [19:55:14]OFD Sender: No OFD packet to send [19:55:19]OFD Sender: No OFD packet to send [19:55:24]OFD Sender: No OFD packet to send [19:55:29]OFD Sender: No OFD packet to send [19:55:34]OFD Sender: No OFD packet to send [19:55:39]OFD Sender: No OFD packet to send [19:55:44]OFD Sender: No OFD packet to send [19:55:49]OFD Sender: No OFD packet to send [19:55:54]OFD Sender: No OFD packet to send [19:55:59]OFD Sender: No OFD packet to send [19:56:04]OFD Sender: No OFD packet to send [19:56:09]OFD Sender: No OFD packet to send [19:56:14]OFD Sender: No OFD packet to send [19:56:19]OFD Sender: No OFD packet to send [19:56:24]OFD Sender: No OFD packet to send [19:56:29]OFD Sender: No OFD packet to send [19:56:34]OFD Sender: No OFD packet to send [19:56:39]OFD Sender: No OFD packet to send [19:56:44]OFD Sender: No OFD packet to send [19:56:49]OFD Sender: No OFD packet to send [19:56:54]OFD Sender: No OFD packet to send [19:56:59]OFD Sender: No OFD packet to send [19:57:04]OFD Sender: No OFD packet to send [19:57:09]OFD Sender: No OFD packet to send [19:57:14]OFD Sender: No OFD packet to send [19:57:19]OFD Sender: No OFD packet to send [19:57:24]OFD Sender: No OFD packet to send [19:57:29]OFD Sender: No OFD packet to send [19:57:34]OFD Sender: No OFD packet to send [19:57:39]OFD Sender: No OFD packet to send [19:57:44]OFD Sender: No OFD packet to send [19:57:49]OFD Sender: No OFD packet to send [19:57:54]OFD Sender: No OFD packet to send [19:57:59]OFD Sender: No OFD packet to send [19:58:04]OFD Sender: No OFD packet to send [19:58:09]OFD Sender: No OFD packet to send [19:58:14]OFD Sender: No OFD packet to send [19:58:19]OFD Sender: No OFD packet to send [19:58:24]OFD Sender: No OFD packet to send [19:58:29]OFD Sender: No OFD packet to send [19:58:34]OFD Sender: No OFD packet to send [19:58:39]OFD Sender: No OFD packet to send [19:58:44]OFD Sender: No OFD packet to send [19:58:49]OFD Sender: No OFD packet to send [19:58:54]OFD Sender: No OFD packet to send [19:58:59]OFD Sender: No OFD packet to send [19:59:04]OFD Sender: No OFD packet to send [19:59:09]OFD Sender: No OFD packet to send [19:59:14]OFD Sender: No OFD packet to send [19:59:19]OFD Sender: No OFD packet to send [19:59:24]OFD Sender: No OFD packet to send [19:59:29]OFD Sender: No OFD packet to send [19:59:34]OFD Sender: No OFD packet to send [19:59:39]OFD Sender: No OFD packet to send [19:59:44]OFD Sender: No OFD packet to send [19:59:49]OFD Sender: No OFD packet to send [19:59:54]OFD Sender: No OFD packet to send [19:59:59]OFD Sender: No OFD packet to send [20:00:04]OFD Sender: No OFD packet to send [20:00:09]OFD Sender: No OFD packet to send [20:00:14]OFD Sender: No OFD packet to send [20:00:19]OFD Sender: No OFD packet to send [20:00:24]OFD Sender: No OFD packet to send [20:00:29]OFD Sender: No OFD packet to send [20:00:34]OFD Sender: No OFD packet to send [20:00:39]OFD Sender: No OFD packet to send [20:00:44]OFD Sender: No OFD packet to send [20:00:49]OFD Sender: No OFD packet to send [20:00:54]OFD Sender: No OFD packet to send [20:00:59]OFD Sender: No OFD packet to send [20:01:04]OFD Sender: No OFD packet to send [20:01:09]OFD Sender: No OFD packet to send [20:01:14]OFD Sender: No OFD packet to send [20:01:19]OFD Sender: No OFD packet to send [20:01:24]OFD Sender: No OFD packet to send [20:01:29]OFD Sender: No OFD packet to send [20:01:34]OFD Sender: No OFD packet to send [20:01:39]OFD Sender: No OFD packet to send [20:01:44]OFD Sender: No OFD packet to send [20:01:49]OFD Sender: No OFD packet to send [20:01:54]OFD Sender: No OFD packet to send [20:01:59]OFD Sender: No OFD packet to send [20:02:04]OFD Sender: No OFD packet to send [20:02:09]OFD Sender: No OFD packet to send [20:02:14]OFD Sender: No OFD packet to send [20:02:19]OFD Sender: No OFD packet to send [20:02:24]OFD Sender: No OFD packet to send [20:02:30]OFD Sender: No OFD packet to send [20:02:35]OFD Sender: No OFD packet to send [20:02:40]OFD Sender: No OFD packet to send [20:02:45]OFD Sender: No OFD packet to send [20:02:50]OFD Sender: No OFD packet to send [20:02:55]OFD Sender: No OFD packet to send [20:03:00]OFD Sender: No OFD packet to send [20:03:05]OFD Sender: No OFD packet to send [20:03:10]OFD Sender: No OFD packet to send [20:03:15]OFD Sender: No OFD packet to send [20:03:20]OFD Sender: No OFD packet to send [20:03:25]OFD Sender: No OFD packet to send [20:03:30]OFD Sender: No OFD packet to send [20:03:35]OFD Sender: No OFD packet to send [20:03:40]OFD Sender: No OFD packet to send [20:03:45]OFD Sender: No OFD packet to send [20:03:50]OFD Sender: No OFD packet to send [20:03:55]OFD Sender: No OFD packet to send [20:04:00]OFD Sender: No OFD packet to send [20:04:05]OFD Sender: No OFD packet to send [20:04:10]OFD Sender: No OFD packet to send [20:04:15]OFD Sender: No OFD packet to send [20:04:20]OFD Sender: No OFD packet to send [20:04:25]OFD Sender: No OFD packet to send [20:04:30]OFD Sender: No OFD packet to send [20:04:35]OFD Sender: No OFD packet to send [20:04:40]OFD Sender: No OFD packet to send [20:04:45]OFD Sender: No OFD packet to send [20:04:50]OFD Sender: No OFD packet to send [20:04:55]OFD Sender: No OFD packet to send [20:05:00]OFD Sender: No OFD packet to send [20:05:05]OFD Sender: No OFD packet to send [20:05:10]OFD Sender: No OFD packet to send [20:05:15]OFD Sender: No OFD packet to send [20:05:20]OFD Sender: No OFD packet to send [20:05:25]OFD Sender: No OFD packet to send [20:05:30]OFD Sender: No OFD packet to send [20:05:35]OFD Sender: No OFD packet to send [20:05:40]OFD Sender: No OFD packet to send [20:05:45]OFD Sender: No OFD packet to send [20:05:50]OFD Sender: No OFD packet to send [20:05:55]OFD Sender: No OFD packet to send [20:06:00]OFD Sender: No OFD packet to send [20:06:05]OFD Sender: No OFD packet to send [20:06:10]OFD Sender: No OFD packet to send [20:06:15]OFD Sender: No OFD packet to send [20:06:20]OFD Sender: No OFD packet to send [20:06:25]OFD Sender: No OFD packet to send [20:06:30]OFD Sender: No OFD packet to send [20:06:35]OFD Sender: No OFD packet to send [20:06:40]OFD Sender: No OFD packet to send [20:06:45]OFD Sender: No OFD packet to send [20:06:50]OFD Sender: No OFD packet to send [20:06:55]OFD Sender: No OFD packet to send [20:07:00]OFD Sender: No OFD packet to send [20:07:05]OFD Sender: No OFD packet to send [20:07:10]OFD Sender: No OFD packet to send [20:07:15]OFD Sender: No OFD packet to send [20:07:20]OFD Sender: No OFD packet to send [20:07:25]OFD Sender: No OFD packet to send [20:07:30]OFD Sender: No OFD packet to send [20:07:35]OFD Sender: No OFD packet to send [20:07:40]OFD Sender: No OFD packet to send [20:07:45]OFD Sender: No OFD packet to send [20:07:50]OFD Sender: No OFD packet to send [20:07:55]OFD Sender: No OFD packet to send [20:08:00]OFD Sender: No OFD packet to send [20:08:05]OFD Sender: No OFD packet to send [20:08:10]OFD Sender: No OFD packet to send [20:08:15]OFD Sender: No OFD packet to send [20:08:20]OFD Sender: No OFD packet to send [20:08:25]OFD Sender: No OFD packet to send [20:08:30]OFD Sender: No OFD packet to send [20:08:35]OFD Sender: No OFD packet to send [20:08:40]OFD Sender: No OFD packet to send [20:08:45]OFD Sender: No OFD packet to send [20:08:50]OFD Sender: No OFD packet to send [20:08:55]OFD Sender: No OFD packet to send [20:09:00]OFD Sender: No OFD packet to send [20:09:05]OFD Sender: No OFD packet to send [20:09:10]OFD Sender: No OFD packet to send [20:09:15]OFD Sender: No OFD packet to send [20:09:20]OFD Sender: No OFD packet to send [20:09:25]OFD Sender: No OFD packet to send [20:09:30]OFD Sender: No OFD packet to send [20:09:35]OFD Sender: No OFD packet to send [20:09:40]OFD Sender: No OFD packet to send [20:09:45]OFD Sender: No OFD packet to send [20:09:50]OFD Sender: No OFD packet to send [20:09:55]OFD Sender: No OFD packet to send [20:10:00]OFD Sender: No OFD packet to send [20:10:05]OFD Sender: No OFD packet to send [20:10:10]OFD Sender: No OFD packet to send [20:10:15]OFD Sender: No OFD packet to send [20:10:20]OFD Sender: No OFD packet to send [20:10:25]OFD Sender: No OFD packet to send [20:10:30]OFD Sender: No OFD packet to send [20:10:35]OFD Sender: No OFD packet to send [20:10:40]OFD Sender: No OFD packet to send [20:10:45]OFD Sender: No OFD packet to send [20:10:50]OFD Sender: No OFD packet to send [20:10:55]OFD Sender: No OFD packet to send [20:11:00]OFD Sender: No OFD packet to send [20:11:05]OFD Sender: No OFD packet to send [20:11:10]OFD Sender: No OFD packet to send [20:11:15]OFD Sender: No OFD packet to send [20:11:20]OFD Sender: No OFD packet to send [20:11:25]OFD Sender: No OFD packet to send [20:11:30]OFD Sender: No OFD packet to send [20:11:35]OFD Sender: No OFD packet to send [20:11:40]OFD Sender: No OFD packet to send [20:11:45]OFD Sender: No OFD packet to send [20:11:50]OFD Sender: No OFD packet to send [20:11:55]OFD Sender: No OFD packet to send [20:12:00]OFD Sender: No OFD packet to send [20:12:05]OFD Sender: No OFD packet to send [20:12:10]OFD Sender: No OFD packet to send [20:12:15]OFD Sender: No OFD packet to send [20:12:20]OFD Sender: No OFD packet to send [20:12:25]OFD Sender: No OFD packet to send [20:12:30]OFD Sender: No OFD packet to send [20:12:35]OFD Sender: No OFD packet to send [20:12:40]OFD Sender: No OFD packet to send [20:12:45]OFD Sender: No OFD packet to send [20:12:50]OFD Sender: No OFD packet to send [20:12:55]OFD Sender: No OFD packet to send [20:13:00]OFD Sender: No OFD packet to send [20:13:05]OFD Sender: No OFD packet to send [20:13:10]OFD Sender: No OFD packet to send [20:13:15]OFD Sender: No OFD packet to send [20:13:20]OFD Sender: No OFD packet to send [20:13:25]OFD Sender: No OFD packet to send [20:13:30]OFD Sender: No OFD packet to send [20:13:35]OFD Sender: No OFD packet to send [20:13:40]OFD Sender: No OFD packet to send [20:13:45]OFD Sender: No OFD packet to send [20:13:50]OFD Sender: No OFD packet to send [20:13:55]OFD Sender: No OFD packet to send [20:14:00]OFD Sender: No OFD packet to send [20:14:05]OFD Sender: No OFD packet to send [20:14:10]OFD Sender: No OFD packet to send [20:14:15]OFD Sender: No OFD packet to send [20:14:20]OFD Sender: No OFD packet to send [20:14:25]OFD Sender: No OFD packet to send [20:14:30]OFD Sender: No OFD packet to send [20:14:35]OFD Sender: No OFD packet to send [20:14:40]OFD Sender: No OFD packet to send [20:14:45]OFD Sender: No OFD packet to send [20:14:50]OFD Sender: No OFD packet to send [20:14:55]OFD Sender: No OFD packet to send [20:15:00]OFD Sender: No OFD packet to send [20:15:05]OFD Sender: No OFD packet to send [20:15:10]OFD Sender: No OFD packet to send [20:15:15]OFD Sender: No OFD packet to send [20:15:20]OFD Sender: No OFD packet to send [20:15:25]OFD Sender: No OFD packet to send [20:15:30]OFD Sender: No OFD packet to send [20:15:35]OFD Sender: No OFD packet to send [20:15:40]OFD Sender: No OFD packet to send [20:15:45]OFD Sender: No OFD packet to send [20:15:50]OFD Sender: No OFD packet to send [20:15:55]OFD Sender: No OFD packet to send [20:16:00]OFD Sender: No OFD packet to send [20:16:05]OFD Sender: No OFD packet to send [20:16:10]OFD Sender: No OFD packet to send [20:16:15]OFD Sender: No OFD packet to send [20:16:20]OFD Sender: No OFD packet to send [20:16:25]OFD Sender: No OFD packet to send [20:16:30]OFD Sender: No OFD packet to send [20:16:35]OFD Sender: No OFD packet to send [20:16:40]OFD Sender: No OFD packet to send [20:16:45]OFD Sender: No OFD packet to send [20:16:50]OFD Sender: No OFD packet to send [20:16:55]OFD Sender: No OFD packet to send [20:17:00]OFD Sender: No OFD packet to send [20:17:05]OFD Sender: No OFD packet to send [20:17:10]OFD Sender: No OFD packet to send [20:17:15]OFD Sender: No OFD packet to send [20:17:20]OFD Sender: No OFD packet to send [20:17:25]OFD Sender: No OFD packet to send [20:17:30]OFD Sender: No OFD packet to send [20:17:35]OFD Sender: No OFD packet to send [20:17:40]OFD Sender: No OFD packet to send [20:17:45]OFD Sender: No OFD packet to send [20:17:50]OFD Sender: No OFD packet to send [20:17:55]OFD Sender: No OFD packet to send [20:18:00]OFD Sender: No OFD packet to send [20:18:05]OFD Sender: No OFD packet to send [20:18:10]OFD Sender: No OFD packet to send [20:18:15]OFD Sender: No OFD packet to send [20:18:20]OFD Sender: No OFD packet to send [20:18:25]OFD Sender: No OFD packet to send [20:18:30]OFD Sender: No OFD packet to send [20:18:35]OFD Sender: No OFD packet to send [20:18:40]OFD Sender: No OFD packet to send [20:18:45]OFD Sender: No OFD packet to send [20:18:50]OFD Sender: No OFD packet to send [20:18:55]OFD Sender: No OFD packet to send [20:19:00]OFD Sender: No OFD packet to send [20:19:05]OFD Sender: No OFD packet to send [20:19:10]OFD Sender: No OFD packet to send [20:19:15]OFD Sender: No OFD packet to send [20:19:20]OFD Sender: No OFD packet to send [20:19:25]OFD Sender: No OFD packet to send [20:19:30]OFD Sender: No OFD packet to send [20:19:35]OFD Sender: No OFD packet to send [20:19:40]OFD Sender: No OFD packet to send [20:19:45]OFD Sender: No OFD packet to send [20:19:50]OFD Sender: No OFD packet to send [20:19:55]OFD Sender: No OFD packet to send [20:20:01]OFD Sender: No OFD packet to send [20:20:06]OFD Sender: No OFD packet to send [20:20:11]OFD Sender: No OFD packet to send [20:20:16]OFD Sender: No OFD packet to send [20:20:21]OFD Sender: No OFD packet to send [20:20:26]OFD Sender: No OFD packet to send [20:20:31]OFD Sender: No OFD packet to send [20:20:36]OFD Sender: No OFD packet to send [20:20:41]OFD Sender: No OFD packet to send [20:20:46]OFD Sender: No OFD packet to send [20:20:51]OFD Sender: No OFD packet to send [20:20:56]OFD Sender: No OFD packet to send [20:21:01]OFD Sender: No OFD packet to send [20:21:06]OFD Sender: No OFD packet to send [20:21:11]OFD Sender: No OFD packet to send [20:21:16]OFD Sender: No OFD packet to send [20:21:21]OFD Sender: No OFD packet to send [20:21:26]OFD Sender: No OFD packet to send [20:21:31]OFD Sender: No OFD packet to send [20:21:36]OFD Sender: No OFD packet to send [20:21:41]OFD Sender: No OFD packet to send [20:21:46]OFD Sender: No OFD packet to send [20:21:51]OFD Sender: No OFD packet to send [20:21:56]OFD Sender: No OFD packet to send [20:22:01]OFD Sender: No OFD packet to send [20:22:06]OFD Sender: No OFD packet to send [20:22:11]OFD Sender: No OFD packet to send [20:22:16]OFD Sender: No OFD packet to send [20:22:21]OFD Sender: No OFD packet to send [20:22:26]OFD Sender: No OFD packet to send [20:22:31]OFD Sender: No OFD packet to send [20:22:36]OFD Sender: No OFD packet to send [20:22:41]OFD Sender: No OFD packet to send [20:22:46]OFD Sender: No OFD packet to send [20:22:51]OFD Sender: No OFD packet to send [20:22:56]OFD Sender: No OFD packet to send [20:23:01]OFD Sender: No OFD packet to send [20:23:06]OFD Sender: No OFD packet to send [20:23:11]OFD Sender: No OFD packet to send [20:23:16]OFD Sender: No OFD packet to send [20:23:21]OFD Sender: No OFD packet to send [20:23:26]OFD Sender: No OFD packet to send [20:23:31]OFD Sender: No OFD packet to send [20:23:36]OFD Sender: No OFD packet to send [20:23:41]OFD Sender: No OFD packet to send [20:23:46]OFD Sender: No OFD packet to send [20:23:51]OFD Sender: No OFD packet to send [20:23:56]OFD Sender: No OFD packet to send [20:24:01]OFD Sender: No OFD packet to send [20:24:06]OFD Sender: No OFD packet to send [20:24:11]OFD Sender: No OFD packet to send [20:24:16]OFD Sender: No OFD packet to send [20:24:21]OFD Sender: No OFD packet to send [20:24:26]OFD Sender: No OFD packet to send [20:24:31]OFD Sender: No OFD packet to send [20:24:36]OFD Sender: No OFD packet to send [20:24:41]OFD Sender: No OFD packet to send [20:24:46]OFD Sender: No OFD packet to send [20:24:51]OFD Sender: No OFD packet to send [20:24:56]OFD Sender: No OFD packet to send [20:25:01]OFD Sender: No OFD packet to send [20:25:06]OFD Sender: No OFD packet to send [20:25:11]OFD Sender: No OFD packet to send [20:25:16]OFD Sender: No OFD packet to send [20:25:21]OFD Sender: No OFD packet to send [20:25:26]OFD Sender: No OFD packet to send [20:25:31]OFD Sender: No OFD packet to send [20:25:36]OFD Sender: No OFD packet to send [20:25:41]OFD Sender: No OFD packet to send [20:25:46]OFD Sender: No OFD packet to send [20:25:51]OFD Sender: No OFD packet to send [20:25:56]OFD Sender: No OFD packet to send [20:26:01]OFD Sender: No OFD packet to send [20:26:06]OFD Sender: No OFD packet to send [20:26:11]OFD Sender: No OFD packet to send [20:26:16]OFD Sender: No OFD packet to send [20:26:21]OFD Sender: No OFD packet to send [20:26:26]OFD Sender: No OFD packet to send [20:26:31]OFD Sender: No OFD packet to send [20:26:36]OFD Sender: No OFD packet to send [20:26:41]OFD Sender: No OFD packet to send [20:26:46]OFD Sender: No OFD packet to send [20:26:51]OFD Sender: No OFD packet to send [20:26:56]OFD Sender: No OFD packet to send [20:27:01]OFD Sender: No OFD packet to send [20:27:06]OFD Sender: No OFD packet to send [20:27:11]OFD Sender: No OFD packet to send [20:27:16]OFD Sender: No OFD packet to send [20:27:21]OFD Sender: No OFD packet to send [20:27:26]OFD Sender: No OFD packet to send [20:27:31]OFD Sender: No OFD packet to send [20:27:36]OFD Sender: No OFD packet to send [20:27:41]OFD Sender: No OFD packet to send [20:27:46]OFD Sender: No OFD packet to send [20:27:51]OFD Sender: No OFD packet to send [20:27:56]OFD Sender: No OFD packet to send [20:28:01]OFD Sender: No OFD packet to send [20:28:06]OFD Sender: No OFD packet to send [20:28:11]OFD Sender: No OFD packet to send [20:28:16]OFD Sender: No OFD packet to send [20:28:21]OFD Sender: No OFD packet to send [20:28:26]OFD Sender: No OFD packet to send [20:28:31]OFD Sender: No OFD packet to send [20:28:36]OFD Sender: No OFD packet to send [20:28:41]OFD Sender: No OFD packet to send [20:28:46]OFD Sender: No OFD packet to send [20:28:51]OFD Sender: No OFD packet to send [20:28:56]OFD Sender: No OFD packet to send [20:29:01]OFD Sender: No OFD packet to send [20:29:06]OFD Sender: No OFD packet to send [20:29:11]OFD Sender: No OFD packet to send [20:29:16]OFD Sender: No OFD packet to send [20:29:21]OFD Sender: No OFD packet to send [20:29:26]OFD Sender: No OFD packet to send [20:29:31]OFD Sender: No OFD packet to send [20:29:36]OFD Sender: No OFD packet to send [20:29:41]OFD Sender: No OFD packet to send [20:29:46]OFD Sender: No OFD packet to send [20:29:51]OFD Sender: No OFD packet to send [20:29:56]OFD Sender: No OFD packet to send [20:30:01]OFD Sender: No OFD packet to send [20:30:06]OFD Sender: No OFD packet to send [20:30:11]OFD Sender: No OFD packet to send [20:30:16]OFD Sender: No OFD packet to send [20:30:21]OFD Sender: No OFD packet to send [20:30:26]OFD Sender: No OFD packet to send [20:30:31]OFD Sender: No OFD packet to send [20:30:36]OFD Sender: No OFD packet to send [20:30:41]OFD Sender: No OFD packet to send [20:30:46]OFD Sender: No OFD packet to send [20:30:51]OFD Sender: No OFD packet to send [20:30:56]OFD Sender: No OFD packet to send [20:31:01]OFD Sender: No OFD packet to send [20:31:06]OFD Sender: No OFD packet to send [20:31:11]OFD Sender: No OFD packet to send [20:31:16]OFD Sender: No OFD packet to send [20:31:21]OFD Sender: No OFD packet to send [20:31:26]OFD Sender: No OFD packet to send [20:31:31]OFD Sender: No OFD packet to send [20:31:36]OFD Sender: No OFD packet to send [20:31:41]OFD Sender: No OFD packet to send [20:31:46]OFD Sender: No OFD packet to send [20:31:51]OFD Sender: No OFD packet to send [20:31:56]OFD Sender: No OFD packet to send [20:32:01]OFD Sender: No OFD packet to send [20:32:06]OFD Sender: No OFD packet to send [20:32:11]OFD Sender: No OFD packet to send [20:32:16]OFD Sender: No OFD packet to send [20:32:21]OFD Sender: No OFD packet to send [20:32:26]OFD Sender: No OFD packet to send [20:32:31]OFD Sender: No OFD packet to send [20:32:36]OFD Sender: No OFD packet to send [20:32:41]OFD Sender: No OFD packet to send [20:32:46]OFD Sender: No OFD packet to send [20:32:51]OFD Sender: No OFD packet to send [20:32:56]OFD Sender: No OFD packet to send [20:33:01]OFD Sender: No OFD packet to send [20:33:06]OFD Sender: No OFD packet to send [20:33:11]OFD Sender: No OFD packet to send [20:33:16]OFD Sender: No OFD packet to send [20:33:21]OFD Sender: No OFD packet to send [20:33:26]OFD Sender: No OFD packet to send [20:33:31]OFD Sender: No OFD packet to send [20:33:36]OFD Sender: No OFD packet to send [20:33:41]OFD Sender: No OFD packet to send [20:33:46]OFD Sender: No OFD packet to send [20:33:51]OFD Sender: No OFD packet to send [20:33:56]OFD Sender: No OFD packet to send [20:34:01]OFD Sender: No OFD packet to send [20:34:06]OFD Sender: No OFD packet to send [20:34:11]OFD Sender: No OFD packet to send [20:34:16]OFD Sender: No OFD packet to send [20:34:21]OFD Sender: No OFD packet to send [20:34:26]OFD Sender: No OFD packet to send [20:34:31]OFD Sender: No OFD packet to send [20:34:36]OFD Sender: No OFD packet to send [20:34:41]OFD Sender: No OFD packet to send [20:34:46]OFD Sender: No OFD packet to send [20:34:51]OFD Sender: No OFD packet to send [20:34:56]OFD Sender: No OFD packet to send [20:35:01]OFD Sender: No OFD packet to send [20:35:06]OFD Sender: No OFD packet to send [20:35:11]OFD Sender: No OFD packet to send [20:35:16]OFD Sender: No OFD packet to send [20:35:21]OFD Sender: No OFD packet to send [20:35:26]OFD Sender: No OFD packet to send [20:35:31]OFD Sender: No OFD packet to send [20:35:36]OFD Sender: No OFD packet to send [20:35:41]OFD Sender: No OFD packet to send [20:35:46]OFD Sender: No OFD packet to send [20:35:51]OFD Sender: No OFD packet to send [20:35:56]OFD Sender: No OFD packet to send [20:36:01]OFD Sender: No OFD packet to send [20:36:06]OFD Sender: No OFD packet to send [20:36:11]OFD Sender: No OFD packet to send [20:36:16]OFD Sender: No OFD packet to send [20:36:21]OFD Sender: No OFD packet to send [20:36:26]OFD Sender: No OFD packet to send [20:36:31]OFD Sender: No OFD packet to send [20:36:36]OFD Sender: No OFD packet to send [20:36:41]OFD Sender: No OFD packet to send [20:36:46]OFD Sender: No OFD packet to send [20:36:51]OFD Sender: No OFD packet to send [20:36:56]OFD Sender: No OFD packet to send [20:37:01]OFD Sender: No OFD packet to send [20:37:06]OFD Sender: No OFD packet to send [20:37:11]OFD Sender: No OFD packet to send [20:37:16]OFD Sender: No OFD packet to send [20:37:21]OFD Sender: No OFD packet to send [20:37:27]OFD Sender: No OFD packet to send [20:37:32]OFD Sender: No OFD packet to send [20:37:37]OFD Sender: No OFD packet to send [20:37:42]OFD Sender: No OFD packet to send [20:37:47]OFD Sender: No OFD packet to send [20:37:52]OFD Sender: No OFD packet to send [20:37:57]OFD Sender: No OFD packet to send [20:38:02]OFD Sender: No OFD packet to send [20:38:07]OFD Sender: No OFD packet to send [20:38:12]OFD Sender: No OFD packet to send [20:38:17]OFD Sender: No OFD packet to send [20:38:22]OFD Sender: No OFD packet to send [20:38:27]OFD Sender: No OFD packet to send [20:38:32]OFD Sender: No OFD packet to send [20:38:37]OFD Sender: No OFD packet to send [20:38:42]OFD Sender: No OFD packet to send [20:38:47]OFD Sender: No OFD packet to send [20:38:52]OFD Sender: No OFD packet to send [20:38:57]OFD Sender: No OFD packet to send [20:39:02]OFD Sender: No OFD packet to send [20:39:07]OFD Sender: No OFD packet to send [20:39:12]OFD Sender: No OFD packet to send [20:39:17]OFD Sender: No OFD packet to send [20:39:22]OFD Sender: No OFD packet to send [20:39:27]OFD Sender: No OFD packet to send [20:39:32]OFD Sender: No OFD packet to send [20:39:37]OFD Sender: No OFD packet to send [20:39:42]OFD Sender: No OFD packet to send [20:39:47]OFD Sender: No OFD packet to send [20:39:52]OFD Sender: No OFD packet to send [20:39:57]OFD Sender: No OFD packet to send [20:40:02]OFD Sender: No OFD packet to send [20:40:07]OFD Sender: No OFD packet to send [20:40:12]OFD Sender: No OFD packet to send [20:40:17]OFD Sender: No OFD packet to send [20:40:22]OFD Sender: No OFD packet to send [20:40:27]OFD Sender: No OFD packet to send [20:40:32]OFD Sender: No OFD packet to send [20:40:37]OFD Sender: No OFD packet to send [20:40:42]OFD Sender: No OFD packet to send [20:40:47]OFD Sender: No OFD packet to send [20:40:52]OFD Sender: No OFD packet to send [20:40:57]OFD Sender: No OFD packet to send [20:41:02]OFD Sender: No OFD packet to send [20:41:07]OFD Sender: No OFD packet to send [20:41:12]OFD Sender: No OFD packet to send [20:41:12]accept exits with 10 [20:41:12]New connection [20:41:12]New thread 3066801508 created [20:41:12]Thread 3066658148 joined [20:41:12]Waiting for new connection... [20:41:12] Sock 10.Parse request [20:41:12]Sock 10.Check first char [20:41:12]Sock 10.First char is OK [20:41:12]request: POST /json_proto HTTP/1.0 [20:41:12]Method: POST [20:41:12]URL: /json_proto [20:41:12]Method is POST - this is cgi request [20:41:12]url: /json_proto [20:41:12]query_string will be loaded in cgi processing [20:41:12]execute_cgi json_proto POST (null) [20:41:12]execute_cgi path=json_proto method=POST [20:41:12]POST find Content-Length [20:41:12]Host: 172.17.57.71:8080 [20:41:12]Content-Length: 974 [20:41:12]Content-Type: application/json [20:41:12] [20:41:12]POST finish read [20:41:12]Found Content-Length = 974 [20:41:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127560", "tax_sys" : 0, "items" : [ { "code": "58411125749", "name": "\u0422\u0435 \u0441\u0430\u043C\u044B\u0435 \u043C\u0430\u043A\u0430\u0440\u043E\u043D", "price" : 195.00, "quantity" : 3.000, "sum" : 585.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481965", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u0434\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 680.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:12]execute_script... [20:41:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127560", "tax_sys" : 0, "items" : [ { "code": "58411125749", "name": "\u0422\u0435 \u0441\u0430\u043C\u044B\u0435 \u043C\u0430\u043A\u0430\u0440\u043E\u043D", "price" : 195.00, "quantity" : 3.000, "sum" : 585.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481965", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u0434\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 680.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:12]POST & json_proto [20:41:12]process_json_proto [20:41:12]json parsed OK: [20:41:12]protocol is kg_v1.0 [20:41:12]action value=close_receipt [20:41:12]process_action close_receipt [20:41:12]cmd_close_receipt [20:41:12]MH_GetDate [20:41:12]Write to MH i2c: F0 00 00 21 62 72 [20:41:12]Write i2c OK [20:41:12]MH_I2C_Read... [20:41:12]Read from MH i2c: F0 [20:41:12]MH_I2C_Read... [20:41:12]Read from MH i2c: F0 09 00 [20:41:12]MH_I2C_Read... [20:41:12]Read from MH i2c: F0 09 00 21 62 00 72 46 E7 66 33 3A A4 66 F7 [20:41:12]GetLastDocTimeStamp 1726429416 [20:41:12]current date 1726432882 [20:41:12]FM_GetShiftState [20:41:12]SAM_PROTO_GetShiftState [20:41:12]wFMCommunicate request_size=4 [20:41:12]MH_SAM_APDU [20:41:12]CAPDU: 80 13 01 00 [20:41:12]Write to MH i2c: E2 08 00 22 62 80 13 01 00 00 00 00 00 01 [20:41:12]Write i2c OK [20:41:12]MH_I2C_Read... [20:41:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:12]Read from MH i2c: E2 [20:41:12]MH_I2C_Read... [20:41:12]Read from MH i2c: E2 0E 00 [20:41:12]MH_I2C_Read... [20:41:12]Read from MH i2c: E2 0E 00 22 62 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 83 [20:41:12]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [20:41:12]wFMCommunicate OK [20:41:12]SAM_PROTO_GetShiftState done [20:41:12]FM_GetShiftState done [20:41:12]opened in 1726359809 [20:41:12]opened+sec_in_day 1726446209 [20:41:12]quantity*price = 58500 [20:41:12]sum+1 = 58501 [20:41:12]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000481965 Напиток энерг Nitro дикие ягоды 0,45 ж/б 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 680.00 НСП 1% : 6.02 НДС 12% : 72.21 Наличными: 680.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 119 15.09.2024 20:41 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92671 ФПД: 210327776966013 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T204122&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92671&fm=210327776966013&tin=02508201610067®Number=0000000000091423&sum=68000 0 [20:41:13]StoreToDocumentArchive [20:41:13]shift 507 fd 92671 [20:41:13]save to /storage/0507/doc_00092671 [20:41:13]save last doc name /storage/0507/doc_00092671 to /storage/kkm_last_doc_name [20:41:13]save OK [20:41:13]Clear old archive folders... [20:41:13]ProcessDocumentItem done err = 0, tmpTLVsize=406 [20:41:13]tlvbuf is 0117A3F0 [20:41:13]SAM_PROTO_ClearQueue [20:41:13]wFMCommunicate request_size=4 [20:41:13]MH_SAM_APDU [20:41:13]CAPDU: 80 09 00 00 [20:41:13]Write to MH i2c: E2 08 00 2F 62 80 09 00 00 00 00 00 00 03 [20:41:13]Write i2c OK [20:41:13]MH_I2C_Read... [20:41:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:41:13]Read from MH i2c: E2 [20:41:13]MH_I2C_Read... [20:41:13]Read from MH i2c: E2 03 00 [20:41:13]MH_I2C_Read... [20:41:13]Read from MH i2c: E2 03 00 2F 62 00 90 00 05 [20:41:13]RAPDU: 90 00 [20:41:13]wFMCommunicate OK [20:41:13]SAM_PROTO_ClearQueue done [20:41:13]KKMCreateOFDPacket [20:41:13]OFDProtocolAddRootSTLVToBuf [20:41:13]FM_MakeSignedData [20:41:13]FM_MakeSignedData [20:41:13]SAM_PROTO_SignData [20:41:13]wFMCommunicate request_size=4 [20:41:13]MH_SAM_APDU [20:41:13]CAPDU: 80 0D 01 02 [20:41:13]Write to MH i2c: E2 08 00 30 62 80 0D 01 02 00 00 00 00 0B [20:41:13]Write i2c OK [20:41:13]MH_I2C_Read... [20:41:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:41:13]Read from MH i2c: E2 [20:41:13]MH_I2C_Read... [20:41:13]Read from MH i2c: E2 03 00 [20:41:13]MH_I2C_Read... [20:41:13]Read from MH i2c: E2 03 00 30 62 00 90 00 06 [20:41:13]RAPDU: 90 00 [20:41:13]wFMCommunicate OK [20:41:13]wFMCommunicate request_size=255 [20:41:13]MH_SAM_APDU [20:41:13]CAPDU: 80 0D 02 02 FA 03 00 96 01 1E 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 84 E4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 [20:41:13]Write to MH i2c: E2 02 01 31 62 80 0D 02 02 FA 00 03 00 96 01 1E 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 84 E4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 00 00 CC [20:41:13]Write i2c OK [20:41:13]MH_I2C_Read... [20:41:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:13]Read from MH i2c: E2 [20:41:13]MH_I2C_Read... [20:41:13]Read from MH i2c: E2 03 00 [20:41:13]MH_I2C_Read... [20:41:13]Read from MH i2c: E2 03 00 31 62 00 90 00 07 [20:41:13]RAPDU: 90 00 [20:41:13]wFMCommunicate OK [20:41:13]wFMCommunicate request_size=165 [20:41:13]MH_SAM_APDU [20:41:13]CAPDU: 80 0D 02 02 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 72 46 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FF 69 01 00 35 04 06 00 BF 4A C0 6E B5 7D [20:41:13]Write to MH i2c: E2 A8 00 32 62 80 0D 02 02 A0 00 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 72 46 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FF 69 01 00 35 04 06 00 BF 4A C0 6E B5 7D 00 00 34 [20:41:13]Write i2c OK [20:41:13]MH_I2C_Read... [20:41:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:14]Read from MH i2c: E2 [20:41:14]MH_I2C_Read... [20:41:14]Read from MH i2c: E2 03 00 [20:41:14]MH_I2C_Read... [20:41:14]Read from MH i2c: E2 03 00 32 62 00 90 00 08 [20:41:14]RAPDU: 90 00 [20:41:14]wFMCommunicate OK [20:41:14]wFMCommunicate request_size=4 [20:41:14]MH_SAM_APDU [20:41:14]CAPDU: 80 0D 03 02 [20:41:14]Write to MH i2c: E2 08 00 33 62 80 0D 03 02 00 00 00 00 10 [20:41:14]Write i2c OK [20:41:14]MH_I2C_Read... [20:41:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:41:14]Read from MH i2c: E2 [20:41:14]MH_I2C_Read... [20:41:14]Read from MH i2c: E2 0B 00 [20:41:14]MH_I2C_Read... [20:41:14]Read from MH i2c: E2 0B 00 33 62 00 DC 5F 1C 62 B4 B2 A9 2A 90 00 03 [20:41:14]RAPDU: DC 5F 1C 62 B4 B2 A9 2A 90 00 [20:41:14]wFMCommunicate OK [20:41:14]SAM_PROTO_SignData done [20:41:14]FM_MakeSignedData done [20:41:14]CreateOFDProtocolMessage [20:41:14]wFMCommunicate request_size=4 [20:41:14]MH_SAM_APDU [20:41:14]CAPDU: 80 11 00 00 [20:41:14]Write to MH i2c: E2 08 00 34 62 80 11 00 00 00 00 00 00 10 [20:41:14]Write i2c OK [20:41:14]MH_I2C_Read... [20:41:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:14]Read from MH i2c: E2 [20:41:14]MH_I2C_Read... [20:41:14]Read from MH i2c: E2 17 00 [20:41:14]MH_I2C_Read... [20:41:14]Read from MH i2c: E2 17 00 34 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 67 [20:41:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:41:14]wFMCommunicate OK [20:41:14]CreateOFDProtocolMessage done [20:41:14]OFDSenderStorePacket 92671 [20:41:14]StoreOFDPacket docnum=92671 [20:41:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 AA 01 00 00 06 53 A2 01 0B 21 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 84 E4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 72 46 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FF 69 01 00 35 04 06 00 BF 4A C0 6E B5 7D DC 5F 1C 62 B4 B2 A9 2A [20:41:14]CheckFolder [20:41:14]dirname=/storage/ofd_packets [20:41:14]CheckFolder done [20:41:14]ProducePacketName [20:41:14]name=ofd_packets/00092671 [20:41:14]NVStorageSaveData ofd_packets/00092671 [20:41:14]File name is /storage/ofd_packets/00092671 [20:41:14]Write 456 bytes [20:41:14]NVStorageSaveData done [20:41:14]OFDSenderStorePacket done [20:41:14]KKMCreateOFDPacket done [20:41:14]NVStorageSaveData kkm_last_timestamp [20:41:14]File name is /storage/kkm_last_timestamp [20:41:14]Write 4 bytes [20:41:14]NVStorageSaveData done [20:41:14]ExternCall_PrintAddStr [20:41:14]wPrintStart [20:41:14]Write to MH i2c: 01 00 00 35 62 97 [20:41:14]Write i2c OK [20:41:14]MH_I2C_Read... [20:41:14]Read from MH i2c: 01 [20:41:14]MH_I2C_Read... [20:41:14]Read from MH i2c: 01 07 00 [20:41:14]MH_I2C_Read... [20:41:14]Read from MH i2c: 01 07 00 35 62 00 00 00 00 00 FF 0F AC [20:41:14]RasterBufferAndPrint [20:41:14]line Счет N : (3)127560 [20:41:14]line ИНН: 02508201610067 [20:41:14]line Контрольно-Кассовый Чек [20:41:14]line ПРОДАЖА [20:41:14]line Товар: 58411125749 [20:41:14]line Те самые макарон [20:41:14]line 3.000 * 195.00 [20:41:14]line = 585.00 [20:41:14]line НДС 12% НСП 1% [20:41:14]line > о реализуемом товаре [20:41:14]line Товар: 4700000481965 [20:41:14]line Напиток энерг Nitro дикие ягоды 0,45 ж/б [20:41:14]line 1.000 * 95.00 [20:41:14]line = 95.00 [20:41:14]line НДС 12% НСП 1% [20:41:14]line > о реализуемом товаре [20:41:14]line ИТОГО: 680.00 [20:41:14]line НСП 1% : 6.02 [20:41:14]line НДС 12% : 72.21 [20:41:14]line Наличными: 680.00 [20:41:14]line Безнал.: 0.00 [20:41:14]line Место: АЗС № 5 "Партнер Нефть" [20:41:14]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [20:41:14]line СНО: Общий режим [20:41:14]line Чек 119 15.09.2024 20:41 [20:41:14]line Смена: 507 ФФД: 1.0 [20:41:14]line ЗНМ: 03000000022 [20:41:14]line РНМ: 0000000000091423 [20:41:14]line Версия ККМ: 001 [20:41:14]line ФМ: 0000000000874692 [20:41:14]line ФД: 92671 [20:41:14]line ФПД: 210327776966013 [20:41:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T204122&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92671&fm=210327776966013&tin=02508201610067®Number=0000000000091423&sum=68000 [20:41:14]line 0 [20:41:14]OFD Sender: Processing packet 92671 [packets to send 63, broken 62] [20:41:14]ProducePacketName [20:41:14]name=ofd_packets/00092671 [20:41:14]OFD Sender: To server: pG, [20:41:14]CommunicateWithHost lk.salyk.kg:30040 [20:41:14]ConnectInit lk.salyk.kg [20:41:14]written 0, free lines is 4095 [20:41:14]Connected sock=11 [20:41:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 AA 01 00 00 06 53 A2 01 0B 21 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 84 E4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 72 46 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FF 69 01 00 35 04 06 00 BF 4A C0 6E B5 7D DC 5F 1C 62 B4 B2 A9 2A [20:41:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 D2 00 47 00 B2 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FF 69 01 00 F4 03 04 00 E9 EE E6 66 B6 04 01 00 00 D5 C1 F1 01 1F CE BB 33 [20:41:14]CommunicateWithHost err = 0 [20:41:14]CheckOFDResponse [20:41:14]1017 (14) - 77093643461234 [20:41:14]1041 (16) - 0000000000874692 [20:41:14]1040 (4) - 92671 [20:41:14]1012 (4) - 15.09.2024 14:27 [20:41:14]1206 (1) - 0 [20:41:14]OFD Sender: Remove packet 92671 [20:41:14]ProducePacketName [20:41:14]name=ofd_packets/00092671 [20:41:14]NVStorageDeleteData [20:41:14]Write to MH i2c: 01 00 00 64 62 C6 [20:41:14]Write i2c OK [20:41:14]MH_I2C_Read... [20:41:14]Read from MH i2c: 01 [20:41:14]MH_I2C_Read... [20:41:14]Read from MH i2c: 01 07 00 [20:41:14]MH_I2C_Read... [20:41:14]Read from MH i2c: 01 07 00 64 62 00 00 00 00 00 C7 0C A0 [20:41:14]RasterBufferAndPrint [20:41:14]line [20:41:14]line [20:41:14]line [20:41:14]line [20:41:14]line [20:41:14]written 0, free lines is 3278 [20:41:14]MH_Cut [20:41:14]Write to MH i2c: D1 01 00 6B 62 01 9F [20:41:14]Write i2c OK [20:41:14]MH_I2C_Read... [20:41:14]Read from MH i2c: D1 [20:41:14]MH_I2C_Read... [20:41:14]Read from MH i2c: D1 01 00 [20:41:14]MH_I2C_Read... [20:41:14]Read from MH i2c: D1 01 00 6B 62 00 9E [20:41:14]Write to MH i2c: 01 00 00 6C 62 CE [20:41:14]Write i2c OK [20:41:14]MH_I2C_Read... [20:41:15]OFD Sender: No OFD packet to send [20:41:15]*** Cut start [20:41:15]*** Purtial cut [20:41:15]*** Stage 1: CUTSNS_PIN = 1 [20:41:17]Read from MH i2c: 01 [20:41:17]MH_I2C_Read... [20:41:17]*** Stop cut motor [20:41:17]*** Cut end [20:41:17]Read from MH i2c: 01 07 00 [20:41:17]MH_I2C_Read... [20:41:17]Read from MH i2c: 01 07 00 6C 62 00 00 00 00 00 FF 0F E3 [20:41:17]process_action close_receipt done [20:41:17]requested_data is exist [20:41:17]produce_requested_data [20:41:17]requested_item fm.sn is exist - process it [20:41:17]wFMCommunicate request_size=4 [20:41:17]MH_SAM_APDU [20:41:17]CAPDU: 80 11 00 00 [20:41:17]Write to MH i2c: E2 08 00 6D 62 80 11 00 00 00 00 00 00 49 [20:41:17]Write i2c OK [20:41:17]MH_I2C_Read... [20:41:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:17]Read from MH i2c: E2 [20:41:17]MH_I2C_Read... [20:41:17]Read from MH i2c: E2 17 00 [20:41:17]MH_I2C_Read... [20:41:17]Read from MH i2c: E2 17 00 6D 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A0 [20:41:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:41:17]wFMCommunicate OK [20:41:17]requested_item fd.num is exist - process it [20:41:17]SAM_PROTO_GetFieldsCounters [20:41:17]wFMCommunicate request_size=4 [20:41:17]MH_SAM_APDU [20:41:17]CAPDU: 80 13 00 00 [20:41:17]Write to MH i2c: E2 08 00 6E 62 80 13 00 00 00 00 00 00 4C [20:41:17]Write i2c OK [20:41:17]MH_I2C_Read... [20:41:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:41:17]Read from MH i2c: E2 [20:41:17]MH_I2C_Read... [20:41:17]Read from MH i2c: E2 62 00 [20:41:17]MH_I2C_Read... [20:41:17]Read from MH i2c: E2 62 00 6E 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 FF 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [20:41:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 FF 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:41:17]wFMCommunicate OK [20:41:17]SAM_PROTO_GetFieldsCounters done [20:41:17]requested_item shift.num is exist - process it [20:41:17]requested_item shift.opened is exist - process it [20:41:17]req_shift_opened [20:41:17]FM_GetShiftState [20:41:17]SAM_PROTO_GetShiftState [20:41:17]wFMCommunicate request_size=4 [20:41:17]MH_SAM_APDU [20:41:17]CAPDU: 80 13 01 00 [20:41:17]Write to MH i2c: E2 08 00 6F 62 80 13 01 00 00 00 00 00 4E [20:41:17]Write i2c OK [20:41:17]MH_I2C_Read... [20:41:17]Read from MH i2c: E2 [20:41:17]MH_I2C_Read... [20:41:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:17]Read from MH i2c: E2 0E 00 [20:41:17]MH_I2C_Read... [20:41:17]Read from MH i2c: E2 0E 00 6F 62 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 D0 [20:41:17]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [20:41:17]wFMCommunicate OK [20:41:17]SAM_PROTO_GetShiftState done [20:41:17]FM_GetShiftState done [20:41:17]req_shift_opened done [20:41:17]requested_item shift.open_date is exist - process it [20:41:17]req_shift_open_date [20:41:17]req_shift_open_date done [20:41:17]produce_requested_data done [20:41:17]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92671,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [20:41:17]process_action_free close_receipt [20:41:17]json_value_free [20:41:17]json_value_free done [20:41:17]process_json_proto returns [20:41:17]Send response to host [20:41:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92671,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [20:41:17]free response buf [20:41:17]execute_script done [20:41:17]execute_script returns [20:41:17]free content buf [20:41:17]Sock 10.Close socket [20:41:17]Sock 10.Thread stoped [20:41:20]OFD Sender: No OFD packet to send [20:41:25]OFD Sender: No OFD packet to send [20:41:30]OFD Sender: No OFD packet to send [20:41:35]OFD Sender: No OFD packet to send [20:41:40]OFD Sender: No OFD packet to send [20:41:45]OFD Sender: No OFD packet to send [20:41:50]OFD Sender: No OFD packet to send [20:41:55]OFD Sender: No OFD packet to send [20:42:00]OFD Sender: No OFD packet to send [20:42:05]OFD Sender: No OFD packet to send [20:42:10]OFD Sender: No OFD packet to send [20:42:15]OFD Sender: No OFD packet to send [20:42:20]OFD Sender: No OFD packet to send [20:42:25]OFD Sender: No OFD packet to send [20:42:30]OFD Sender: No OFD packet to send [20:42:35]OFD Sender: No OFD packet to send [20:42:40]OFD Sender: No OFD packet to send [20:42:45]OFD Sender: No OFD packet to send [20:42:50]OFD Sender: No OFD packet to send [20:42:55]OFD Sender: No OFD packet to send [20:43:00]OFD Sender: No OFD packet to send [20:43:05]OFD Sender: No OFD packet to send [20:43:10]OFD Sender: No OFD packet to send [20:43:15]OFD Sender: No OFD packet to send [20:43:20]OFD Sender: No OFD packet to send [20:43:25]OFD Sender: No OFD packet to send [20:43:30]OFD Sender: No OFD packet to send [20:43:35]OFD Sender: No OFD packet to send [20:43:40]OFD Sender: No OFD packet to send [20:43:45]OFD Sender: No OFD packet to send [20:43:50]OFD Sender: No OFD packet to send [20:43:55]OFD Sender: No OFD packet to send [20:44:00]OFD Sender: No OFD packet to send [20:44:05]OFD Sender: No OFD packet to send [20:44:10]OFD Sender: No OFD packet to send [20:44:15]OFD Sender: No OFD packet to send [20:44:20]OFD Sender: No OFD packet to send [20:44:25]OFD Sender: No OFD packet to send [20:44:30]OFD Sender: No OFD packet to send [20:44:35]OFD Sender: No OFD packet to send [20:44:40]OFD Sender: No OFD packet to send [20:44:45]OFD Sender: No OFD packet to send [20:44:50]OFD Sender: No OFD packet to send [20:44:55]OFD Sender: No OFD packet to send [20:45:00]OFD Sender: No OFD packet to send [20:45:05]OFD Sender: No OFD packet to send [20:45:10]OFD Sender: No OFD packet to send [20:45:15]OFD Sender: No OFD packet to send [20:45:20]OFD Sender: No OFD packet to send [20:45:25]OFD Sender: No OFD packet to send [20:45:30]OFD Sender: No OFD packet to send [20:45:35]OFD Sender: No OFD packet to send [20:45:40]OFD Sender: No OFD packet to send [20:45:45]OFD Sender: No OFD packet to send [20:45:50]OFD Sender: No OFD packet to send [20:45:55]OFD Sender: No OFD packet to send [20:46:00]OFD Sender: No OFD packet to send [20:46:05]OFD Sender: No OFD packet to send [20:46:10]OFD Sender: No OFD packet to send [20:46:15]OFD Sender: No OFD packet to send [20:46:20]OFD Sender: No OFD packet to send [20:46:25]OFD Sender: No OFD packet to send [20:46:30]OFD Sender: No OFD packet to send [20:46:35]OFD Sender: No OFD packet to send [20:46:40]OFD Sender: No OFD packet to send [20:46:45]OFD Sender: No OFD packet to send [20:46:50]OFD Sender: No OFD packet to send [20:46:55]OFD Sender: No OFD packet to send [20:47:00]OFD Sender: No OFD packet to send [20:47:05]OFD Sender: No OFD packet to send [20:47:10]OFD Sender: No OFD packet to send [20:47:15]OFD Sender: No OFD packet to send [20:47:20]OFD Sender: No OFD packet to send [20:47:25]OFD Sender: No OFD packet to send [20:47:30]OFD Sender: No OFD packet to send [20:47:35]OFD Sender: No OFD packet to send [20:47:40]OFD Sender: No OFD packet to send [20:47:45]OFD Sender: No OFD packet to send [20:47:50]OFD Sender: No OFD packet to send [20:47:55]OFD Sender: No OFD packet to send [20:48:00]OFD Sender: No OFD packet to send [20:48:05]OFD Sender: No OFD packet to send [20:48:10]OFD Sender: No OFD packet to send [20:48:15]OFD Sender: No OFD packet to send [20:48:20]OFD Sender: No OFD packet to send [20:48:25]OFD Sender: No OFD packet to send [20:48:30]OFD Sender: No OFD packet to send [20:48:35]OFD Sender: No OFD packet to send [20:48:40]OFD Sender: No OFD packet to send [20:48:45]OFD Sender: No OFD packet to send [20:48:50]OFD Sender: No OFD packet to send [20:48:55]OFD Sender: No OFD packet to send [20:49:00]OFD Sender: No OFD packet to send [20:49:05]OFD Sender: No OFD packet to send [20:49:10]OFD Sender: No OFD packet to send [20:49:15]OFD Sender: No OFD packet to send [20:49:20]OFD Sender: No OFD packet to send [20:49:25]OFD Sender: No OFD packet to send [20:49:30]OFD Sender: No OFD packet to send [20:49:35]OFD Sender: No OFD packet to send [20:49:40]OFD Sender: No OFD packet to send [20:49:45]OFD Sender: No OFD packet to send [20:49:50]OFD Sender: No OFD packet to send [20:49:54]accept exits with 8 [20:49:54]New connection [20:49:54]New thread 3066658148 created [20:49:54]Thread 3066801508 joined [20:49:54]Waiting for new connection... [20:49:54] Sock 8.Parse request [20:49:54]Sock 8.Check first char [20:49:54]Sock 8.First char is OK [20:49:54]request: POST /json_proto HTTP/1.0 [20:49:54]Method: POST [20:49:54]URL: /json_proto [20:49:54]Method is POST - this is cgi request [20:49:54]url: /json_proto [20:49:54]query_string will be loaded in cgi processing [20:49:54]execute_cgi json_proto POST (null) [20:49:54]execute_cgi path=json_proto method=POST [20:49:54]POST find Content-Length [20:49:54]Host: 172.17.57.71:8080 [20:49:54]Content-Length: 709 [20:49:54]Content-Type: application/json [20:49:54] [20:49:54]POST finish read [20:49:54]Found Content-Length = 709 [20:49:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127561", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:54]execute_script... [20:49:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127561", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:54]POST & json_proto [20:49:54]process_json_proto [20:49:54]json parsed OK: [20:49:54]protocol is kg_v1.0 [20:49:54]action value=close_receipt [20:49:54]process_action close_receipt [20:49:54]cmd_close_receipt [20:49:54]MH_GetDate [20:49:54]Write to MH i2c: F0 00 00 70 62 C1 [20:49:54]Write i2c OK [20:49:54]MH_I2C_Read... [20:49:54]Read from MH i2c: F0 [20:49:54]MH_I2C_Read... [20:49:54]Read from MH i2c: F0 09 00 [20:49:54]MH_I2C_Read... [20:49:54]Read from MH i2c: F0 09 00 70 62 00 7D 48 E7 66 33 3A A4 66 53 [20:49:54]GetLastDocTimeStamp 1726432882 [20:49:54]current date 1726433405 [20:49:54]FM_GetShiftState [20:49:54]SAM_PROTO_GetShiftState [20:49:54]wFMCommunicate request_size=4 [20:49:54]MH_SAM_APDU [20:49:54]CAPDU: 80 13 01 00 [20:49:54]Write to MH i2c: E2 08 00 71 62 80 13 01 00 00 00 00 00 50 [20:49:54]Write i2c OK [20:49:54]MH_I2C_Read... [20:49:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:54]Read from MH i2c: E2 [20:49:54]MH_I2C_Read... [20:49:54]Read from MH i2c: E2 0E 00 [20:49:54]MH_I2C_Read... [20:49:54]Read from MH i2c: E2 0E 00 71 62 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 D2 [20:49:54]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [20:49:55]wFMCommunicate OK [20:49:55]SAM_PROTO_GetShiftState done [20:49:55]FM_GetShiftState done [20:49:55]opened in 1726359809 [20:49:55]opened+sec_in_day 1726446209 [20:49:55]quantity*price = 9500 [20:49:55]sum+1 = 9501 [20:49:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 120 15.09.2024 20:50 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92672 ФПД: 231698558647141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T205005&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92672&fm=231698558647141&tin=02508201610067®Number=0000000000091423&sum=9500 0 [20:49:56]StoreToDocumentArchive [20:49:56]shift 507 fd 92672 [20:49:56]save to /storage/0507/doc_00092672 [20:49:56]save last doc name /storage/0507/doc_00092672 to /storage/kkm_last_doc_name [20:49:56]save OK [20:49:56]Clear old archive folders... [20:49:56]ProcessDocumentItem done err = 0, tmpTLVsize=304 [20:49:56]tlvbuf is 01082800 [20:49:56]SAM_PROTO_ClearQueue [20:49:56]wFMCommunicate request_size=4 [20:49:56]MH_SAM_APDU [20:49:56]CAPDU: 80 09 00 00 [20:49:56]Write to MH i2c: E2 08 00 7E 62 80 09 00 00 00 00 00 00 52 [20:49:56]Write i2c OK [20:49:56]MH_I2C_Read... [20:49:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:49:56]Read from MH i2c: E2 [20:49:56]MH_I2C_Read... [20:49:56]Read from MH i2c: E2 03 00 [20:49:56]MH_I2C_Read... [20:49:56]Read from MH i2c: E2 03 00 7E 62 00 90 00 54 [20:49:56]RAPDU: 90 00 [20:49:56]wFMCommunicate OK [20:49:56]SAM_PROTO_ClearQueue done [20:49:56]KKMCreateOFDPacket [20:49:56]OFDProtocolAddRootSTLVToBuf [20:49:56]FM_MakeSignedData [20:49:56]FM_MakeSignedData [20:49:56]SAM_PROTO_SignData [20:49:56]wFMCommunicate request_size=4 [20:49:56]MH_SAM_APDU [20:49:56]CAPDU: 80 0D 01 02 [20:49:56]Write to MH i2c: E2 08 00 7F 62 80 0D 01 02 00 00 00 00 5A [20:49:56]Write i2c OK [20:49:56]MH_I2C_Read... [20:49:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:49:56]Read from MH i2c: E2 [20:49:56]MH_I2C_Read... [20:49:56]Read from MH i2c: E2 03 00 [20:49:56]MH_I2C_Read... [20:49:56]Read from MH i2c: E2 03 00 7F 62 00 90 00 55 [20:49:56]RAPDU: 90 00 [20:49:56]wFMCommunicate OK [20:49:56]wFMCommunicate request_size=255 [20:49:56]MH_SAM_APDU [20:49:56]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 7D 48 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 [20:49:56]Write to MH i2c: E2 02 01 80 62 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 7D 48 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 00 00 26 [20:49:56]Write i2c OK [20:49:56]MH_I2C_Read... [20:49:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:56]Read from MH i2c: E2 [20:49:56]MH_I2C_Read... [20:49:56]Read from MH i2c: E2 03 00 [20:49:56]MH_I2C_Read... [20:49:56]Read from MH i2c: E2 03 00 80 62 00 90 00 56 [20:49:56]RAPDU: 90 00 [20:49:56]wFMCommunicate OK [20:49:56]wFMCommunicate request_size=63 [20:49:56]MH_SAM_APDU [20:49:56]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 00 6A 01 00 35 04 06 00 D2 BA 86 48 7B 65 [20:49:56]Write to MH i2c: E2 42 00 81 62 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 00 6A 01 00 35 04 06 00 D2 BA 86 48 7B 65 00 00 4A [20:49:56]Write i2c OK [20:49:56]MH_I2C_Read... [20:49:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:56]Read from MH i2c: E2 [20:49:56]MH_I2C_Read... [20:49:56]Read from MH i2c: E2 03 00 [20:49:56]MH_I2C_Read... [20:49:56]Read from MH i2c: E2 03 00 81 62 00 90 00 57 [20:49:56]RAPDU: 90 00 [20:49:56]wFMCommunicate OK [20:49:56]wFMCommunicate request_size=4 [20:49:56]MH_SAM_APDU [20:49:56]CAPDU: 80 0D 03 02 [20:49:56]Write to MH i2c: E2 08 00 82 62 80 0D 03 02 00 00 00 00 5F [20:49:56]Write i2c OK [20:49:56]MH_I2C_Read... [20:49:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:49:56]Read from MH i2c: E2 [20:49:56]MH_I2C_Read... [20:49:56]Read from MH i2c: E2 0B 00 [20:49:56]MH_I2C_Read... [20:49:56]Read from MH i2c: E2 0B 00 82 62 00 3D EF EC 3B 03 7A F1 D0 90 00 F1 [20:49:56]RAPDU: 3D EF EC 3B 03 7A F1 D0 90 00 [20:49:56]wFMCommunicate OK [20:49:56]SAM_PROTO_SignData done [20:49:56]FM_MakeSignedData done [20:49:56]CreateOFDProtocolMessage [20:49:56]wFMCommunicate request_size=4 [20:49:56]MH_SAM_APDU [20:49:56]CAPDU: 80 11 00 00 [20:49:56]Write to MH i2c: E2 08 00 83 62 80 11 00 00 00 00 00 00 5F [20:49:56]Write i2c OK [20:49:56]MH_I2C_Read... [20:49:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:56]Read from MH i2c: E2 [20:49:56]MH_I2C_Read... [20:49:56]Read from MH i2c: E2 17 00 [20:49:56]MH_I2C_Read... [20:49:56]Read from MH i2c: E2 17 00 83 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B6 [20:49:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:49:56]wFMCommunicate OK [20:49:56]CreateOFDProtocolMessage done [20:49:56]OFDSenderStorePacket 92672 [20:49:56]StoreOFDPacket docnum=92672 [20:49:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 44 01 00 00 43 0D 3C 01 31 3C 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 7D 48 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 00 6A 01 00 35 04 06 00 D2 BA 86 48 7B 65 3D EF EC 3B 03 7A F1 D0 [20:49:56]CheckFolder [20:49:56]dirname=/storage/ofd_packets [20:49:56]CheckFolder done [20:49:56]ProducePacketName [20:49:56]name=ofd_packets/00092672 [20:49:56]NVStorageSaveData ofd_packets/00092672 [20:49:56]File name is /storage/ofd_packets/00092672 [20:49:56]Write 354 bytes [20:49:56]NVStorageSaveData done [20:49:56]OFDSenderStorePacket done [20:49:56]KKMCreateOFDPacket done [20:49:56]NVStorageSaveData kkm_last_timestamp [20:49:56]File name is /storage/kkm_last_timestamp [20:49:56]Write 4 bytes [20:49:56]NVStorageSaveData done [20:49:56]ExternCall_PrintAddStr [20:49:56]wPrintStart [20:49:56]Write to MH i2c: 01 00 00 84 62 E6 [20:49:56]Write i2c OK [20:49:56]MH_I2C_Read... [20:49:56]Read from MH i2c: 01 [20:49:56]MH_I2C_Read... [20:49:56]Read from MH i2c: 01 07 00 [20:49:56]MH_I2C_Read... [20:49:56]Read from MH i2c: 01 07 00 84 62 00 00 00 00 00 FF 0F FB [20:49:56]RasterBufferAndPrint [20:49:56]line Счет N : (3)127561 [20:49:56]line ИНН: 02508201610067 [20:49:56]line Контрольно-Кассовый Чек [20:49:56]line ПРОДАЖА [20:49:56]line Товар: 4700000480302 [20:49:56]line Напиток энерг Nitro манго-клуб 0.45 ж/б [20:49:56]line 1.000 * 95.00 [20:49:56]line = 95.00 [20:49:56]line НДС 12% НСП 1% [20:49:56]line > о реализуемом товаре [20:49:56]line ИТОГО: 95.00 [20:49:56]line НСП 1% : 0.84 [20:49:56]line НДС 12% : 10.09 [20:49:56]line Наличными: 95.00 [20:49:56]line Безнал.: 0.00 [20:49:56]line Место: АЗС № 5 "Партнер Нефть" [20:49:56]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [20:49:56]line СНО: Общий режим [20:49:56]line Чек 120 15.09.2024 20:50 [20:49:56]line Смена: 507 ФФД: 1.0 [20:49:56]line ЗНМ: 03000000022 [20:49:56]line РНМ: 0000000000091423 [20:49:56]line Версия ККМ: 001 [20:49:56]line ФМ: 0000000000874692 [20:49:56]line ФД: 92672 [20:49:56]line ФПД: 231698558647141 [20:49:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T205005&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92672&fm=231698558647141&tin=02508201610067®Number=0000000000091423&sum=9500 [20:49:56]line 0 [20:49:56]OFD Sender: Processing packet 92672 [packets to send 63, broken 62] [20:49:56]ProducePacketName [20:49:56]name=ofd_packets/00092672 [20:49:56]OFD Sender: To server: pG, [20:49:56]CommunicateWithHost lk.salyk.kg:30040 [20:49:56]ConnectInit lk.salyk.kg [20:49:56]written 0, free lines is 4095 [20:49:57]Connected sock=10 [20:49:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 44 01 00 00 43 0D 3C 01 31 3C 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 7D 48 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 00 6A 01 00 35 04 06 00 D2 BA 86 48 7B 65 3D EF EC 3B 03 7A F1 D0 [20:49:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 60 7D 47 00 95 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 00 6A 01 00 F4 03 04 00 F4 F0 E6 66 B6 04 01 00 00 AE B8 DD C4 27 31 24 7F [20:49:57]CommunicateWithHost err = 0 [20:49:57]CheckOFDResponse [20:49:57]1017 (14) - 77093643461234 [20:49:57]1041 (16) - 0000000000874692 [20:49:57]1040 (4) - 92672 [20:49:57]1012 (4) - 15.09.2024 14:36 [20:49:57]1206 (1) - 0 [20:49:57]OFD Sender: Remove packet 92672 [20:49:57]ProducePacketName [20:49:57]name=ofd_packets/00092672 [20:49:57]NVStorageDeleteData [20:49:57]Write to MH i2c: 01 00 00 AD 62 0F [20:49:57]Write i2c OK [20:49:57]MH_I2C_Read... [20:49:57]Read from MH i2c: 01 [20:49:57]MH_I2C_Read... [20:49:57]Read from MH i2c: 01 07 00 [20:49:57]MH_I2C_Read... [20:49:57]Read from MH i2c: 01 07 00 AD 62 00 00 00 00 00 12 0D 35 [20:49:57]RasterBufferAndPrint [20:49:57]line [20:49:57]line [20:49:57]line [20:49:57]line [20:49:57]line [20:49:57]written 0, free lines is 3353 [20:49:57]MH_Cut [20:49:57]Write to MH i2c: D1 01 00 B4 62 01 E8 [20:49:57]Write i2c OK [20:49:57]MH_I2C_Read... [20:49:57]Read from MH i2c: D1 [20:49:57]MH_I2C_Read... [20:49:57]Read from MH i2c: D1 01 00 [20:49:57]MH_I2C_Read... [20:49:57]Read from MH i2c: D1 01 00 B4 62 00 E7 [20:49:57]Write to MH i2c: 01 00 00 B5 62 17 [20:49:57]Write i2c OK [20:49:57]MH_I2C_Read... [20:49:57]OFD Sender: No OFD packet to send [20:49:58]*** Cut start [20:49:58]*** Purtial cut [20:49:58]*** Stage 1: CUTSNS_PIN = 1 [20:50:00]Read from MH i2c: 01 [20:50:00]MH_I2C_Read... [20:50:00]*** Stop cut motor [20:50:00]*** Cut end [20:50:00]Read from MH i2c: 01 07 00 [20:50:00]MH_I2C_Read... [20:50:00]Read from MH i2c: 01 07 00 B5 62 00 00 00 00 00 FF 0F 2C [20:50:00]process_action close_receipt done [20:50:00]requested_data is exist [20:50:00]produce_requested_data [20:50:00]requested_item fm.sn is exist - process it [20:50:00]wFMCommunicate request_size=4 [20:50:00]MH_SAM_APDU [20:50:00]CAPDU: 80 11 00 00 [20:50:00]Write to MH i2c: E2 08 00 B6 62 80 11 00 00 00 00 00 00 92 [20:50:00]Write i2c OK [20:50:00]MH_I2C_Read... [20:50:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:00]Read from MH i2c: E2 [20:50:00]MH_I2C_Read... [20:50:00]Read from MH i2c: E2 17 00 [20:50:00]MH_I2C_Read... [20:50:00]Read from MH i2c: E2 17 00 B6 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E9 [20:50:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:50:00]wFMCommunicate OK [20:50:00]requested_item fd.num is exist - process it [20:50:00]SAM_PROTO_GetFieldsCounters [20:50:00]wFMCommunicate request_size=4 [20:50:00]MH_SAM_APDU [20:50:00]CAPDU: 80 13 00 00 [20:50:00]Write to MH i2c: E2 08 00 B7 62 80 13 00 00 00 00 00 00 95 [20:50:00]Write i2c OK [20:50:00]MH_I2C_Read... [20:50:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:50:00]Read from MH i2c: E2 [20:50:00]MH_I2C_Read... [20:50:00]Read from MH i2c: E2 62 00 [20:50:00]MH_I2C_Read... [20:50:00]Read from MH i2c: E2 62 00 B7 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 00 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [20:50:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 00 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:50:00]wFMCommunicate OK [20:50:00]SAM_PROTO_GetFieldsCounters done [20:50:00]requested_item shift.num is exist - process it [20:50:00]requested_item shift.opened is exist - process it [20:50:00]req_shift_opened [20:50:00]FM_GetShiftState [20:50:00]SAM_PROTO_GetShiftState [20:50:00]wFMCommunicate request_size=4 [20:50:00]MH_SAM_APDU [20:50:00]CAPDU: 80 13 01 00 [20:50:00]Write to MH i2c: E2 08 00 B8 62 80 13 01 00 00 00 00 00 97 [20:50:00]Write i2c OK [20:50:00]MH_I2C_Read... [20:50:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:00]Read from MH i2c: E2 [20:50:00]MH_I2C_Read... [20:50:00]Read from MH i2c: E2 0E 00 [20:50:00]MH_I2C_Read... [20:50:00]Read from MH i2c: E2 0E 00 B8 62 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 19 [20:50:00]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [20:50:00]wFMCommunicate OK [20:50:00]SAM_PROTO_GetShiftState done [20:50:00]FM_GetShiftState done [20:50:00]req_shift_opened done [20:50:00]requested_item shift.open_date is exist - process it [20:50:00]req_shift_open_date [20:50:00]req_shift_open_date done [20:50:00]produce_requested_data done [20:50:00]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92672,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [20:50:00]process_action_free close_receipt [20:50:00]json_value_free [20:50:00]json_value_free done [20:50:00]process_json_proto returns [20:50:00]Send response to host [20:50:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92672,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [20:50:00]free response buf [20:50:00]execute_script done [20:50:00]execute_script returns [20:50:00]free content buf [20:50:00]Sock 8.Close socket [20:50:00]Sock 8.Thread stoped [20:50:02]OFD Sender: No OFD packet to send [20:50:07]OFD Sender: No OFD packet to send [20:50:12]OFD Sender: No OFD packet to send [20:50:17]OFD Sender: No OFD packet to send [20:50:22]OFD Sender: No OFD packet to send [20:50:27]OFD Sender: No OFD packet to send [20:50:32]OFD Sender: No OFD packet to send [20:50:37]OFD Sender: No OFD packet to send [20:50:42]OFD Sender: No OFD packet to send [20:50:47]OFD Sender: No OFD packet to send [20:50:52]OFD Sender: No OFD packet to send [20:50:57]OFD Sender: No OFD packet to send [20:51:02]OFD Sender: No OFD packet to send [20:51:07]OFD Sender: No OFD packet to send [20:51:12]OFD Sender: No OFD packet to send [20:51:17]OFD Sender: No OFD packet to send [20:51:22]OFD Sender: No OFD packet to send [20:51:27]OFD Sender: No OFD packet to send [20:51:32]OFD Sender: No OFD packet to send [20:51:37]OFD Sender: No OFD packet to send [20:51:42]OFD Sender: No OFD packet to send [20:51:47]OFD Sender: No OFD packet to send [20:51:52]OFD Sender: No OFD packet to send [20:51:57]OFD Sender: No OFD packet to send [20:52:02]OFD Sender: No OFD packet to send [20:52:07]OFD Sender: No OFD packet to send [20:52:12]OFD Sender: No OFD packet to send [20:52:17]OFD Sender: No OFD packet to send [20:52:22]OFD Sender: No OFD packet to send [20:52:27]OFD Sender: No OFD packet to send [20:52:32]OFD Sender: No OFD packet to send [20:52:37]OFD Sender: No OFD packet to send [20:52:42]OFD Sender: No OFD packet to send [20:52:47]OFD Sender: No OFD packet to send [20:52:52]OFD Sender: No OFD packet to send [20:52:57]OFD Sender: No OFD packet to send [20:53:02]OFD Sender: No OFD packet to send [20:53:07]OFD Sender: No OFD packet to send [20:53:12]OFD Sender: No OFD packet to send [20:53:17]OFD Sender: No OFD packet to send [20:53:22]OFD Sender: No OFD packet to send [20:53:27]OFD Sender: No OFD packet to send [20:53:32]OFD Sender: No OFD packet to send [20:53:37]OFD Sender: No OFD packet to send [20:53:42]OFD Sender: No OFD packet to send [20:53:47]OFD Sender: No OFD packet to send [20:53:52]OFD Sender: No OFD packet to send [20:53:57]OFD Sender: No OFD packet to send [20:54:02]OFD Sender: No OFD packet to send [20:54:07]OFD Sender: No OFD packet to send [20:54:13]OFD Sender: No OFD packet to send [20:54:18]OFD Sender: No OFD packet to send [20:54:23]OFD Sender: No OFD packet to send [20:54:28]OFD Sender: No OFD packet to send [20:54:33]OFD Sender: No OFD packet to send [20:54:38]OFD Sender: No OFD packet to send [20:54:43]OFD Sender: No OFD packet to send [20:54:48]OFD Sender: No OFD packet to send [20:54:53]OFD Sender: No OFD packet to send [20:54:58]OFD Sender: No OFD packet to send [20:55:03]OFD Sender: No OFD packet to send [20:55:08]OFD Sender: No OFD packet to send [20:55:13]OFD Sender: No OFD packet to send [20:55:18]OFD Sender: No OFD packet to send [20:55:23]OFD Sender: No OFD packet to send [20:55:28]OFD Sender: No OFD packet to send [20:55:33]OFD Sender: No OFD packet to send [20:55:38]OFD Sender: No OFD packet to send [20:55:43]OFD Sender: No OFD packet to send [20:55:48]OFD Sender: No OFD packet to send [20:55:53]OFD Sender: No OFD packet to send [20:55:58]OFD Sender: No OFD packet to send [20:56:03]OFD Sender: No OFD packet to send [20:56:08]OFD Sender: No OFD packet to send [20:56:13]OFD Sender: No OFD packet to send [20:56:18]OFD Sender: No OFD packet to send [20:56:23]OFD Sender: No OFD packet to send [20:56:28]OFD Sender: No OFD packet to send [20:56:33]OFD Sender: No OFD packet to send [20:56:38]OFD Sender: No OFD packet to send [20:56:43]OFD Sender: No OFD packet to send [20:56:48]OFD Sender: No OFD packet to send [20:56:53]OFD Sender: No OFD packet to send [20:56:58]OFD Sender: No OFD packet to send [20:57:03]OFD Sender: No OFD packet to send [20:57:08]OFD Sender: No OFD packet to send [20:57:13]OFD Sender: No OFD packet to send [20:57:18]OFD Sender: No OFD packet to send [20:57:23]OFD Sender: No OFD packet to send [20:57:28]OFD Sender: No OFD packet to send [20:57:33]OFD Sender: No OFD packet to send [20:57:38]OFD Sender: No OFD packet to send [20:57:43]OFD Sender: No OFD packet to send [20:57:48]OFD Sender: No OFD packet to send [20:57:53]OFD Sender: No OFD packet to send [20:57:58]OFD Sender: No OFD packet to send [20:58:03]OFD Sender: No OFD packet to send [20:58:08]OFD Sender: No OFD packet to send [20:58:13]OFD Sender: No OFD packet to send [20:58:18]OFD Sender: No OFD packet to send [20:58:23]OFD Sender: No OFD packet to send [20:58:28]OFD Sender: No OFD packet to send [20:58:33]OFD Sender: No OFD packet to send [20:58:38]OFD Sender: No OFD packet to send [20:58:43]OFD Sender: No OFD packet to send [20:58:48]OFD Sender: No OFD packet to send [20:58:53]OFD Sender: No OFD packet to send [20:58:58]OFD Sender: No OFD packet to send [20:59:03]OFD Sender: No OFD packet to send [20:59:08]OFD Sender: No OFD packet to send [20:59:13]OFD Sender: No OFD packet to send [20:59:18]OFD Sender: No OFD packet to send [20:59:23]OFD Sender: No OFD packet to send [20:59:28]OFD Sender: No OFD packet to send [20:59:33]OFD Sender: No OFD packet to send [20:59:38]OFD Sender: No OFD packet to send [20:59:43]OFD Sender: No OFD packet to send [20:59:48]OFD Sender: No OFD packet to send [20:59:53]OFD Sender: No OFD packet to send [20:59:58]OFD Sender: No OFD packet to send [21:00:03]OFD Sender: No OFD packet to send [21:00:08]OFD Sender: No OFD packet to send [21:00:13]OFD Sender: No OFD packet to send [21:00:18]OFD Sender: No OFD packet to send [21:00:23]OFD Sender: No OFD packet to send [21:00:28]OFD Sender: No OFD packet to send [21:00:33]OFD Sender: No OFD packet to send [21:00:38]OFD Sender: No OFD packet to send [21:00:43]OFD Sender: No OFD packet to send [21:00:48]OFD Sender: No OFD packet to send [21:00:53]OFD Sender: No OFD packet to send [21:00:58]OFD Sender: No OFD packet to send [21:01:03]OFD Sender: No OFD packet to send [21:01:08]OFD Sender: No OFD packet to send [21:01:13]OFD Sender: No OFD packet to send [21:01:18]OFD Sender: No OFD packet to send [21:01:23]OFD Sender: No OFD packet to send [21:01:28]OFD Sender: No OFD packet to send [21:01:33]OFD Sender: No OFD packet to send [21:01:38]OFD Sender: No OFD packet to send [21:01:43]OFD Sender: No OFD packet to send [21:01:48]OFD Sender: No OFD packet to send [21:01:53]OFD Sender: No OFD packet to send [21:01:58]OFD Sender: No OFD packet to send [21:02:03]OFD Sender: No OFD packet to send [21:02:08]OFD Sender: No OFD packet to send [21:02:13]OFD Sender: No OFD packet to send [21:02:18]OFD Sender: No OFD packet to send [21:02:23]OFD Sender: No OFD packet to send [21:02:28]OFD Sender: No OFD packet to send [21:02:33]OFD Sender: No OFD packet to send [21:02:38]OFD Sender: No OFD packet to send [21:02:43]OFD Sender: No OFD packet to send [21:02:48]OFD Sender: No OFD packet to send [21:02:53]OFD Sender: No OFD packet to send [21:02:58]OFD Sender: No OFD packet to send [21:03:03]OFD Sender: No OFD packet to send [21:03:08]OFD Sender: No OFD packet to send [21:03:13]OFD Sender: No OFD packet to send [21:03:18]OFD Sender: No OFD packet to send [21:03:23]OFD Sender: No OFD packet to send [21:03:28]OFD Sender: No OFD packet to send [21:03:33]OFD Sender: No OFD packet to send [21:03:38]OFD Sender: No OFD packet to send [21:03:43]OFD Sender: No OFD packet to send [21:03:48]OFD Sender: No OFD packet to send [21:03:53]OFD Sender: No OFD packet to send [21:03:58]OFD Sender: No OFD packet to send [21:04:03]OFD Sender: No OFD packet to send [21:04:08]OFD Sender: No OFD packet to send [21:04:13]OFD Sender: No OFD packet to send [21:04:18]OFD Sender: No OFD packet to send [21:04:23]OFD Sender: No OFD packet to send [21:04:28]OFD Sender: No OFD packet to send [21:04:33]OFD Sender: No OFD packet to send [21:04:38]OFD Sender: No OFD packet to send [21:04:43]OFD Sender: No OFD packet to send [21:04:48]OFD Sender: No OFD packet to send [21:04:53]OFD Sender: No OFD packet to send [21:04:58]OFD Sender: No OFD packet to send [21:05:03]OFD Sender: No OFD packet to send [21:05:08]OFD Sender: No OFD packet to send [21:05:13]OFD Sender: No OFD packet to send [21:05:18]OFD Sender: No OFD packet to send [21:05:23]OFD Sender: No OFD packet to send [21:05:28]OFD Sender: No OFD packet to send [21:05:33]OFD Sender: No OFD packet to send [21:05:38]OFD Sender: No OFD packet to send [21:05:43]OFD Sender: No OFD packet to send [21:05:48]OFD Sender: No OFD packet to send [21:05:53]OFD Sender: No OFD packet to send [21:05:58]OFD Sender: No OFD packet to send [21:06:03]OFD Sender: No OFD packet to send [21:06:08]OFD Sender: No OFD packet to send [21:06:13]OFD Sender: No OFD packet to send [21:06:18]OFD Sender: No OFD packet to send [21:06:23]OFD Sender: No OFD packet to send [21:06:28]OFD Sender: No OFD packet to send [21:06:33]OFD Sender: No OFD packet to send [21:06:38]OFD Sender: No OFD packet to send [21:06:43]OFD Sender: No OFD packet to send [21:06:48]OFD Sender: No OFD packet to send [21:06:53]OFD Sender: No OFD packet to send [21:06:54]accept exits with 9 [21:06:54]New connection [21:06:54]New thread 3066801508 created [21:06:54]Thread 3066658148 joined [21:06:54]Waiting for new connection... [21:06:54] Sock 9.Parse request [21:06:54]Sock 9.Check first char [21:06:54]Sock 9.First char is OK [21:06:54]request: POST /json_proto HTTP/1.0 [21:06:54]Method: POST [21:06:54]URL: /json_proto [21:06:54]Method is POST - this is cgi request [21:06:54]url: /json_proto [21:06:54]query_string will be loaded in cgi processing [21:06:54]execute_cgi json_proto POST (null) [21:06:54]execute_cgi path=json_proto method=POST [21:06:54]POST find Content-Length [21:06:54]Host: 172.17.57.71:8080 [21:06:54]Content-Length: 820 [21:06:54]Content-Type: application/json [21:06:54] [21:06:54]POST finish read [21:06:54]Found Content-Length = 820 [21:06:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127562", "tax_sys" : 0, "items" : [ { "code": "46214638", "name": "\u0420/\u0436 mentos p.white \u043D\u0435\u0436\u043D\u0430\u044F \u043C\u044F\u0442\u0430 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:54]execute_script... [21:06:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127562", "tax_sys" : 0, "items" : [ { "code": "46214638", "name": "\u0420/\u0436 mentos p.white \u043D\u0435\u0436\u043D\u0430\u044F \u043C\u044F\u0442\u0430 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:54]POST & json_proto [21:06:54]process_json_proto [21:06:54]json parsed OK: [21:06:54]protocol is kg_v1.0 [21:06:54]action value=close_receipt [21:06:54]process_action close_receipt [21:06:54]cmd_close_receipt [21:06:54]MH_GetDate [21:06:54]Write to MH i2c: F0 00 00 B9 62 0A [21:06:54]Write i2c OK [21:06:54]MH_I2C_Read... [21:06:54]Read from MH i2c: F0 [21:06:54]MH_I2C_Read... [21:06:54]Read from MH i2c: F0 09 00 [21:06:54]MH_I2C_Read... [21:06:54]Read from MH i2c: F0 09 00 B9 62 00 79 4C E7 66 33 3A A4 66 9C [21:06:54]GetLastDocTimeStamp 1726433405 [21:06:54]current date 1726434425 [21:06:54]FM_GetShiftState [21:06:54]SAM_PROTO_GetShiftState [21:06:54]wFMCommunicate request_size=4 [21:06:54]MH_SAM_APDU [21:06:54]CAPDU: 80 13 01 00 [21:06:54]Write to MH i2c: E2 08 00 BA 62 80 13 01 00 00 00 00 00 99 [21:06:54]Write i2c OK [21:06:54]MH_I2C_Read... [21:06:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:55]Read from MH i2c: E2 [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: E2 0E 00 [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: E2 0E 00 BA 62 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 1B [21:06:55]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [21:06:55]wFMCommunicate OK [21:06:55]SAM_PROTO_GetShiftState done [21:06:55]FM_GetShiftState done [21:06:55]opened in 1726359809 [21:06:55]opened+sec_in_day 1726446209 [21:06:55]quantity*price = 4900 [21:06:55]sum+1 = 4901 [21:06:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 0.00 Безнал.: 49.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 121 15.09.2024 21:07 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92673 ФПД: 219230433533399 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T210705&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92673&fm=219230433533399&tin=02508201610067®Number=0000000000091423&sum=4900 0 [21:06:56]StoreToDocumentArchive [21:06:56]shift 507 fd 92673 [21:06:56]save to /storage/0507/doc_00092673 [21:06:56]save last doc name /storage/0507/doc_00092673 to /storage/kkm_last_doc_name [21:06:56]save OK [21:06:56]Clear old archive folders... [21:06:56]ProcessDocumentItem done err = 0, tmpTLVsize=289 [21:06:56]tlvbuf is 00F92D50 [21:06:56]SAM_PROTO_ClearQueue [21:06:56]wFMCommunicate request_size=4 [21:06:56]MH_SAM_APDU [21:06:56]CAPDU: 80 09 00 00 [21:06:56]Write to MH i2c: E2 08 00 C7 62 80 09 00 00 00 00 00 00 9B [21:06:56]Write i2c OK [21:06:56]MH_I2C_Read... [21:06:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:06:56]Read from MH i2c: E2 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 03 00 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 03 00 C7 62 00 90 00 9D [21:06:56]RAPDU: 90 00 [21:06:56]wFMCommunicate OK [21:06:56]SAM_PROTO_ClearQueue done [21:06:56]KKMCreateOFDPacket [21:06:56]OFDProtocolAddRootSTLVToBuf [21:06:56]FM_MakeSignedData [21:06:56]FM_MakeSignedData [21:06:56]SAM_PROTO_SignData [21:06:56]wFMCommunicate request_size=4 [21:06:56]MH_SAM_APDU [21:06:56]CAPDU: 80 0D 01 02 [21:06:56]Write to MH i2c: E2 08 00 C8 62 80 0D 01 02 00 00 00 00 A3 [21:06:56]Write i2c OK [21:06:56]MH_I2C_Read... [21:06:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:06:56]Read from MH i2c: E2 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 03 00 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 03 00 C8 62 00 90 00 9E [21:06:56]RAPDU: 90 00 [21:06:56]wFMCommunicate OK [21:06:56]wFMCommunicate request_size=255 [21:06:56]MH_SAM_APDU [21:06:56]CAPDU: 80 0D 02 02 FA 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 79 4C E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 [21:06:56]Write to MH i2c: E2 02 01 C9 62 80 0D 02 02 FA 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 79 4C E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 00 00 F0 [21:06:56]Write i2c OK [21:06:56]MH_I2C_Read... [21:06:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:56]Read from MH i2c: E2 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 03 00 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 03 00 C9 62 00 90 00 9F [21:06:56]RAPDU: 90 00 [21:06:56]wFMCommunicate OK [21:06:56]wFMCommunicate request_size=48 [21:06:56]MH_SAM_APDU [21:06:56]CAPDU: 80 0D 02 02 2B 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 01 6A 01 00 35 04 06 00 C7 63 90 1D 5D D7 [21:06:56]Write to MH i2c: E2 33 00 CA 62 80 0D 02 02 2B 00 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 01 6A 01 00 35 04 06 00 C7 63 90 1D 5D D7 00 00 16 [21:06:56]Write i2c OK [21:06:56]MH_I2C_Read... [21:06:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:56]Read from MH i2c: E2 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 03 00 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 03 00 CA 62 00 90 00 A0 [21:06:56]RAPDU: 90 00 [21:06:56]wFMCommunicate OK [21:06:56]wFMCommunicate request_size=4 [21:06:56]MH_SAM_APDU [21:06:56]CAPDU: 80 0D 03 02 [21:06:56]Write to MH i2c: E2 08 00 CB 62 80 0D 03 02 00 00 00 00 A8 [21:06:56]Write i2c OK [21:06:56]MH_I2C_Read... [21:06:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:06:56]Read from MH i2c: E2 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 0B 00 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 0B 00 CB 62 00 28 50 83 9A E1 D6 51 01 90 00 47 [21:06:56]RAPDU: 28 50 83 9A E1 D6 51 01 90 00 [21:06:56]wFMCommunicate OK [21:06:56]SAM_PROTO_SignData done [21:06:56]FM_MakeSignedData done [21:06:56]CreateOFDProtocolMessage [21:06:56]wFMCommunicate request_size=4 [21:06:56]MH_SAM_APDU [21:06:56]CAPDU: 80 11 00 00 [21:06:56]Write to MH i2c: E2 08 00 CC 62 80 11 00 00 00 00 00 00 A8 [21:06:56]Write i2c OK [21:06:56]MH_I2C_Read... [21:06:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:56]Read from MH i2c: E2 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 17 00 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 17 00 CC 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 FF [21:06:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:06:56]wFMCommunicate OK [21:06:56]CreateOFDProtocolMessage done [21:06:56]OFDSenderStorePacket 92673 [21:06:56]StoreOFDPacket docnum=92673 [21:06:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 35 01 00 00 D7 09 2D 01 FB C4 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 79 4C E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 01 6A 01 00 35 04 06 00 C7 63 90 1D 5D D7 28 50 83 9A E1 D6 51 01 [21:06:56]CheckFolder [21:06:56]dirname=/storage/ofd_packets [21:06:56]CheckFolder done [21:06:56]ProducePacketName [21:06:56]name=ofd_packets/00092673 [21:06:56]NVStorageSaveData ofd_packets/00092673 [21:06:56]File name is /storage/ofd_packets/00092673 [21:06:56]Write 339 bytes [21:06:56]NVStorageSaveData done [21:06:56]OFDSenderStorePacket done [21:06:56]KKMCreateOFDPacket done [21:06:56]NVStorageSaveData kkm_last_timestamp [21:06:56]File name is /storage/kkm_last_timestamp [21:06:56]Write 4 bytes [21:06:56]NVStorageSaveData done [21:06:56]ExternCall_PrintAddStr [21:06:56]wPrintStart [21:06:56]Write to MH i2c: 01 00 00 CD 62 2F [21:06:56]Write i2c OK [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: 01 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: 01 07 00 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: 01 07 00 CD 62 00 00 00 00 00 FF 0F 44 [21:06:56]RasterBufferAndPrint [21:06:56]line Счет N : (3)127562 [21:06:56]line ИНН: 02508201610067 [21:06:56]line Контрольно-Кассовый Чек [21:06:56]line ПРОДАЖА [21:06:56]line Товар: 46214638 [21:06:56]line Р/ж mentos p.white нежная мята 16/15,5г [21:06:56]line 1.000 * 49.00 [21:06:56]line = 49.00 [21:06:56]line НДС 12% НСП 1% [21:06:56]line > о реализуемом товаре [21:06:56]line ИТОГО: 49.00 [21:06:56]line НСП 1% : 0.43 [21:06:56]line НДС 12% : 5.20 [21:06:56]line Наличными: 0.00 [21:06:56]line Безнал.: 49.00 [21:06:56]line Место: АЗС № 5 "Партнер Нефть" [21:06:56]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [21:06:56]line СНО: Общий режим [21:06:56]line Чек 121 15.09.2024 21:07 [21:06:56]line Смена: 507 ФФД: 1.0 [21:06:56]line ЗНМ: 03000000022 [21:06:56]line РНМ: 0000000000091423 [21:06:56]line Версия ККМ: 001 [21:06:56]line Платежная система: О! деньги [21:06:56]line ФМ: 0000000000874692 [21:06:56]line ФД: 92673 [21:06:56]line ФПД: 219230433533399 [21:06:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T210705&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92673&fm=219230433533399&tin=02508201610067®Number=0000000000091423&sum=4900 [21:06:57]OFD Sender: Processing packet 92673 [packets to send 63, broken 62] [21:06:57]ProducePacketName [21:06:57]name=ofd_packets/00092673 [21:06:57]OFD Sender: To server: pG, [21:06:57]CommunicateWithHost lk.salyk.kg:30040 [21:06:57]ConnectInit lk.salyk.kg [21:06:57]line 0 [21:06:57]written 0, free lines is 4095 [21:06:57]Connected sock=10 [21:06:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 35 01 00 00 D7 09 2D 01 FB C4 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 79 4C E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 01 6A 01 00 35 04 06 00 C7 63 90 1D 5D D7 28 50 83 9A E1 D6 51 01 [21:06:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 0C D4 47 00 90 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 01 6A 01 00 F4 03 04 00 F0 F4 E6 66 B6 04 01 00 00 3B 17 D8 D7 B4 79 98 5D [21:06:57]CommunicateWithHost err = 0 [21:06:57]CheckOFDResponse [21:06:57]1017 (14) - 77093643461234 [21:06:57]1041 (16) - 0000000000874692 [21:06:57]1040 (4) - 92673 [21:06:57]1012 (4) - 15.09.2024 14:53 [21:06:57]1206 (1) - 0 [21:06:57]OFD Sender: Remove packet 92673 [21:06:57]ProducePacketName [21:06:57]name=ofd_packets/00092673 [21:06:57]NVStorageDeleteData [21:06:57]Write to MH i2c: 01 00 00 F8 62 5A [21:06:57]Write i2c OK [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: 01 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: 01 07 00 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: 01 07 00 F8 62 00 00 00 00 00 F2 0C 5F [21:06:57]RasterBufferAndPrint [21:06:57]line [21:06:57]line [21:06:57]line [21:06:57]line [21:06:57]line [21:06:57]written 0, free lines is 3323 [21:06:57]MH_Cut [21:06:57]Write to MH i2c: D1 01 00 FF 62 01 33 [21:06:57]Write i2c OK [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: D1 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: D1 01 00 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: D1 01 00 FF 62 00 32 [21:06:57]Write to MH i2c: 01 00 00 00 63 63 [21:06:57]Write i2c OK [21:06:57]MH_I2C_Read... [21:06:57]OFD Sender: No OFD packet to send [21:06:58]*** Cut start [21:06:58]*** Purtial cut [21:06:58]*** Stage 1: CUTSNS_PIN = 1 [21:07:00]Read from MH i2c: 01 [21:07:00]MH_I2C_Read... [21:07:00]*** Stop cut motor [21:07:00]*** Cut end [21:07:00]Read from MH i2c: 01 07 00 [21:07:00]MH_I2C_Read... [21:07:00]Read from MH i2c: 01 07 00 00 63 00 00 00 00 00 FF 0F 78 [21:07:00]process_action close_receipt done [21:07:00]requested_data is exist [21:07:00]produce_requested_data [21:07:00]requested_item fm.sn is exist - process it [21:07:00]wFMCommunicate request_size=4 [21:07:00]MH_SAM_APDU [21:07:00]CAPDU: 80 11 00 00 [21:07:00]Write to MH i2c: E2 08 00 01 63 80 11 00 00 00 00 00 00 DE [21:07:00]Write i2c OK [21:07:00]MH_I2C_Read... [21:07:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:00]Read from MH i2c: E2 [21:07:00]MH_I2C_Read... [21:07:00]Read from MH i2c: E2 17 00 [21:07:00]MH_I2C_Read... [21:07:00]Read from MH i2c: E2 17 00 01 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 35 [21:07:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:07:00]wFMCommunicate OK [21:07:00]requested_item fd.num is exist - process it [21:07:00]SAM_PROTO_GetFieldsCounters [21:07:00]wFMCommunicate request_size=4 [21:07:00]MH_SAM_APDU [21:07:00]CAPDU: 80 13 00 00 [21:07:00]Write to MH i2c: E2 08 00 02 63 80 13 00 00 00 00 00 00 E1 [21:07:00]Write i2c OK [21:07:00]MH_I2C_Read... [21:07:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:07:00]Read from MH i2c: E2 [21:07:00]MH_I2C_Read... [21:07:00]Read from MH i2c: E2 62 00 [21:07:00]MH_I2C_Read... [21:07:00]Read from MH i2c: E2 62 00 02 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 01 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [21:07:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 01 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:07:00]wFMCommunicate OK [21:07:00]SAM_PROTO_GetFieldsCounters done [21:07:00]requested_item shift.num is exist - process it [21:07:00]requested_item shift.opened is exist - process it [21:07:00]req_shift_opened [21:07:00]FM_GetShiftState [21:07:00]SAM_PROTO_GetShiftState [21:07:00]wFMCommunicate request_size=4 [21:07:00]MH_SAM_APDU [21:07:00]CAPDU: 80 13 01 00 [21:07:00]Write to MH i2c: E2 08 00 03 63 80 13 01 00 00 00 00 00 E3 [21:07:00]Write i2c OK [21:07:00]MH_I2C_Read... [21:07:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:00]Read from MH i2c: E2 [21:07:00]MH_I2C_Read... [21:07:00]Read from MH i2c: E2 0E 00 [21:07:00]MH_I2C_Read... [21:07:00]Read from MH i2c: E2 0E 00 03 63 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 65 [21:07:00]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [21:07:00]wFMCommunicate OK [21:07:00]SAM_PROTO_GetShiftState done [21:07:00]FM_GetShiftState done [21:07:00]req_shift_opened done [21:07:00]requested_item shift.open_date is exist - process it [21:07:00]req_shift_open_date [21:07:00]req_shift_open_date done [21:07:00]produce_requested_data done [21:07:00]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92673,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [21:07:00]process_action_free close_receipt [21:07:00]json_value_free [21:07:00]json_value_free done [21:07:00]process_json_proto returns [21:07:00]Send response to host [21:07:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92673,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [21:07:00]free response buf [21:07:00]execute_script done [21:07:00]execute_script returns [21:07:00]free content buf [21:07:00]Sock 9.Close socket [21:07:00]Sock 9.Thread stoped [21:07:02]OFD Sender: No OFD packet to send [21:07:07]OFD Sender: No OFD packet to send [21:07:12]OFD Sender: No OFD packet to send [21:07:17]OFD Sender: No OFD packet to send [21:07:22]OFD Sender: No OFD packet to send [21:07:27]OFD Sender: No OFD packet to send [21:07:32]OFD Sender: No OFD packet to send [21:07:37]OFD Sender: No OFD packet to send [21:07:42]OFD Sender: No OFD packet to send [21:07:47]OFD Sender: No OFD packet to send [21:07:52]OFD Sender: No OFD packet to send [21:07:57]OFD Sender: No OFD packet to send [21:08:02]OFD Sender: No OFD packet to send [21:08:07]OFD Sender: No OFD packet to send [21:08:12]OFD Sender: No OFD packet to send [21:08:17]OFD Sender: No OFD packet to send [21:08:22]OFD Sender: No OFD packet to send [21:08:27]OFD Sender: No OFD packet to send [21:08:32]OFD Sender: No OFD packet to send [21:08:37]OFD Sender: No OFD packet to send [21:08:42]OFD Sender: No OFD packet to send [21:08:47]OFD Sender: No OFD packet to send [21:08:52]OFD Sender: No OFD packet to send [21:08:57]OFD Sender: No OFD packet to send [21:09:02]OFD Sender: No OFD packet to send [21:09:07]OFD Sender: No OFD packet to send [21:09:12]OFD Sender: No OFD packet to send [21:09:17]OFD Sender: No OFD packet to send [21:09:22]OFD Sender: No OFD packet to send [21:09:27]OFD Sender: No OFD packet to send [21:09:32]OFD Sender: No OFD packet to send [21:09:37]OFD Sender: No OFD packet to send [21:09:43]OFD Sender: No OFD packet to send [21:09:48]OFD Sender: No OFD packet to send [21:09:53]OFD Sender: No OFD packet to send [21:09:58]OFD Sender: No OFD packet to send [21:10:03]OFD Sender: No OFD packet to send [21:10:08]OFD Sender: No OFD packet to send [21:10:13]OFD Sender: No OFD packet to send [21:10:18]OFD Sender: No OFD packet to send [21:10:23]OFD Sender: No OFD packet to send [21:10:28]OFD Sender: No OFD packet to send [21:10:33]OFD Sender: No OFD packet to send [21:10:38]OFD Sender: No OFD packet to send [21:10:43]OFD Sender: No OFD packet to send [21:10:48]OFD Sender: No OFD packet to send [21:10:53]OFD Sender: No OFD packet to send [21:10:58]OFD Sender: No OFD packet to send [21:11:03]OFD Sender: No OFD packet to send [21:11:08]OFD Sender: No OFD packet to send [21:11:13]OFD Sender: No OFD packet to send [21:11:18]OFD Sender: No OFD packet to send [21:11:23]OFD Sender: No OFD packet to send [21:11:28]OFD Sender: No OFD packet to send [21:11:33]OFD Sender: No OFD packet to send [21:11:38]OFD Sender: No OFD packet to send [21:11:43]OFD Sender: No OFD packet to send [21:11:48]OFD Sender: No OFD packet to send [21:11:53]OFD Sender: No OFD packet to send [21:11:58]OFD Sender: No OFD packet to send [21:12:03]OFD Sender: No OFD packet to send [21:12:08]OFD Sender: No OFD packet to send [21:12:13]OFD Sender: No OFD packet to send [21:12:18]OFD Sender: No OFD packet to send [21:12:23]OFD Sender: No OFD packet to send [21:12:28]OFD Sender: No OFD packet to send [21:12:33]OFD Sender: No OFD packet to send [21:12:38]OFD Sender: No OFD packet to send [21:12:43]OFD Sender: No OFD packet to send [21:12:48]OFD Sender: No OFD packet to send [21:12:53]OFD Sender: No OFD packet to send [21:12:58]OFD Sender: No OFD packet to send [21:13:03]OFD Sender: No OFD packet to send [21:13:08]OFD Sender: No OFD packet to send [21:13:13]OFD Sender: No OFD packet to send [21:13:18]OFD Sender: No OFD packet to send [21:13:23]OFD Sender: No OFD packet to send [21:13:28]OFD Sender: No OFD packet to send [21:13:33]OFD Sender: No OFD packet to send [21:13:38]OFD Sender: No OFD packet to send [21:13:43]OFD Sender: No OFD packet to send [21:13:48]OFD Sender: No OFD packet to send [21:13:53]OFD Sender: No OFD packet to send [21:13:58]OFD Sender: No OFD packet to send [21:14:03]OFD Sender: No OFD packet to send [21:14:08]OFD Sender: No OFD packet to send [21:14:13]OFD Sender: No OFD packet to send [21:14:18]OFD Sender: No OFD packet to send [21:14:23]OFD Sender: No OFD packet to send [21:14:28]OFD Sender: No OFD packet to send [21:14:33]OFD Sender: No OFD packet to send [21:14:38]OFD Sender: No OFD packet to send [21:14:43]OFD Sender: No OFD packet to send [21:14:48]OFD Sender: No OFD packet to send [21:14:53]OFD Sender: No OFD packet to send [21:14:58]OFD Sender: No OFD packet to send [21:15:03]OFD Sender: No OFD packet to send [21:15:08]OFD Sender: No OFD packet to send [21:15:13]OFD Sender: No OFD packet to send [21:15:18]OFD Sender: No OFD packet to send [21:15:23]OFD Sender: No OFD packet to send [21:15:28]OFD Sender: No OFD packet to send [21:15:33]OFD Sender: No OFD packet to send [21:15:38]OFD Sender: No OFD packet to send [21:15:43]OFD Sender: No OFD packet to send [21:15:48]OFD Sender: No OFD packet to send [21:15:53]OFD Sender: No OFD packet to send [21:15:58]OFD Sender: No OFD packet to send [21:16:03]OFD Sender: No OFD packet to send [21:16:08]OFD Sender: No OFD packet to send [21:16:13]OFD Sender: No OFD packet to send [21:16:18]OFD Sender: No OFD packet to send [21:16:23]OFD Sender: No OFD packet to send [21:16:28]OFD Sender: No OFD packet to send [21:16:33]OFD Sender: No OFD packet to send [21:16:38]OFD Sender: No OFD packet to send [21:16:43]OFD Sender: No OFD packet to send [21:16:48]OFD Sender: No OFD packet to send [21:16:53]OFD Sender: No OFD packet to send [21:16:58]OFD Sender: No OFD packet to send [21:17:00]accept exits with 8 [21:17:00]New connection [21:17:00]New thread 3066658148 created [21:17:00]Thread 3066801508 joined [21:17:00]Waiting for new connection... [21:17:00] Sock 8.Parse request [21:17:00]Sock 8.Check first char [21:17:00]Sock 8.First char is OK [21:17:00]request: POST /json_proto HTTP/1.0 [21:17:00]Method: POST [21:17:00]URL: /json_proto [21:17:00]Method is POST - this is cgi request [21:17:00]url: /json_proto [21:17:00]query_string will be loaded in cgi processing [21:17:00]execute_cgi json_proto POST (null) [21:17:00]execute_cgi path=json_proto method=POST [21:17:00]POST find Content-Length [21:17:00]Host: 172.17.57.71:8080 [21:17:00]Content-Length: 1198 [21:17:00]Content-Type: application/json [21:17:00] [21:17:00]POST finish read [21:17:00]Found Content-Length = 1198 [21:17:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127563", "tax_sys" : 0, "items" : [ { "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42113164", "name": "\u0416\u0435\u0432 Orbit White Spearmint", "price" : 37.00, "quantity" : 1.000, "sum" : 37.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 187.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:17:00]execute_script... [21:17:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127563", "tax_sys" : 0, "items" : [ { "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42113164", "name": "\u0416\u0435\u0432 Orbit White Spearmint", "price" : 37.00, "quantity" : 1.000, "sum" : 37.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 187.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:17:00]POST & json_proto [21:17:00]process_json_proto [21:17:00]json parsed OK: [21:17:00]protocol is kg_v1.0 [21:17:00]action value=close_receipt [21:17:00]process_action close_receipt [21:17:00]cmd_close_receipt [21:17:00]MH_GetDate [21:17:00]Write to MH i2c: F0 00 00 04 63 56 [21:17:00]Write i2c OK [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: F0 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: F0 09 00 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: F0 09 00 04 63 00 D6 4E E7 66 33 3A A4 66 47 [21:17:00]GetLastDocTimeStamp 1726434425 [21:17:00]current date 1726435030 [21:17:00]FM_GetShiftState [21:17:00]SAM_PROTO_GetShiftState [21:17:00]wFMCommunicate request_size=4 [21:17:00]MH_SAM_APDU [21:17:00]CAPDU: 80 13 01 00 [21:17:00]Write to MH i2c: E2 08 00 05 63 80 13 01 00 00 00 00 00 E5 [21:17:00]Write i2c OK [21:17:00]MH_I2C_Read... [21:17:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:00]Read from MH i2c: E2 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 0E 00 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 0E 00 05 63 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 67 [21:17:00]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [21:17:00]wFMCommunicate OK [21:17:00]SAM_PROTO_GetShiftState done [21:17:00]FM_GetShiftState done [21:17:00]opened in 1726359809 [21:17:00]opened+sec_in_day 1726446209 [21:17:00]quantity*price = 7500 [21:17:00]sum+1 = 7501 [21:17:00]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189394 Холодный чай Fuse ягода 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 42113164 Жев Orbit White Spearmint 1.000 * 37.00 = 37.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 187.00 НСП 1% : 1.65 НДС 12% : 19.85 Наличными: 187.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 122 15.09.2024 21:17 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92674 ФПД: 92840090880246 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T211710&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92674&fm=92840090880246&tin=02508201610067®Number=0000000000091423&sum=18700 0 [21:17:01]StoreToDocumentArchive [21:17:01]shift 507 fd 92674 [21:17:01]save to /storage/0507/doc_00092674 [21:17:01]save last doc name /storage/0507/doc_00092674 to /storage/kkm_last_doc_name [21:17:01]save OK [21:17:01]Clear old archive folders... [21:17:01]ProcessDocumentItem done err = 0, tmpTLVsize=512 [21:17:01]tlvbuf is 0101EB90 [21:17:01]SAM_PROTO_ClearQueue [21:17:01]wFMCommunicate request_size=4 [21:17:01]MH_SAM_APDU [21:17:01]CAPDU: 80 09 00 00 [21:17:01]Write to MH i2c: E2 08 00 12 63 80 09 00 00 00 00 00 00 E7 [21:17:01]Write i2c OK [21:17:01]MH_I2C_Read... [21:17:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:17:01]Read from MH i2c: E2 [21:17:01]MH_I2C_Read... [21:17:01]Read from MH i2c: E2 03 00 [21:17:01]MH_I2C_Read... [21:17:01]Read from MH i2c: E2 03 00 12 63 00 90 00 E9 [21:17:01]RAPDU: 90 00 [21:17:01]wFMCommunicate OK [21:17:01]SAM_PROTO_ClearQueue done [21:17:01]KKMCreateOFDPacket [21:17:01]OFDProtocolAddRootSTLVToBuf [21:17:01]FM_MakeSignedData [21:17:01]FM_MakeSignedData [21:17:01]SAM_PROTO_SignData [21:17:01]wFMCommunicate request_size=4 [21:17:01]MH_SAM_APDU [21:17:01]CAPDU: 80 0D 01 02 [21:17:01]Write to MH i2c: E2 08 00 13 63 80 0D 01 02 00 00 00 00 EF [21:17:01]Write i2c OK [21:17:01]MH_I2C_Read... [21:17:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:17:01]Read from MH i2c: E2 [21:17:01]MH_I2C_Read... [21:17:01]Read from MH i2c: E2 03 00 [21:17:01]MH_I2C_Read... [21:17:01]Read from MH i2c: E2 03 00 13 63 00 90 00 EA [21:17:01]RAPDU: 90 00 [21:17:01]wFMCommunicate OK [21:17:01]wFMCommunicate request_size=255 [21:17:01]MH_SAM_APDU [21:17:01]CAPDU: 80 0D 02 02 FA 03 00 00 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 [21:17:02]Write to MH i2c: E2 02 01 14 63 80 0D 02 02 FA 00 03 00 00 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 00 B1 [21:17:02]Write i2c OK [21:17:02]MH_I2C_Read... [21:17:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:02]Read from MH i2c: E2 [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: E2 03 00 [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: E2 03 00 14 63 00 90 00 EB [21:17:02]RAPDU: 90 00 [21:17:02]wFMCommunicate OK [21:17:02]wFMCommunicate request_size=255 [21:17:02]MH_SAM_APDU [21:17:02]CAPDU: 80 0D 02 02 FA 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 07 00 00 00 00 07 04 06 00 0C 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 D6 4E E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 [21:17:02]Write to MH i2c: E2 02 01 15 63 80 0D 02 02 FA 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 07 00 00 00 00 07 04 06 00 0C 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 D6 4E E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 00 00 08 [21:17:02]Write i2c OK [21:17:02]MH_I2C_Read... [21:17:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:02]Read from MH i2c: E2 [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: E2 03 00 [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: E2 03 00 15 63 00 90 00 EC [21:17:02]RAPDU: 90 00 [21:17:02]wFMCommunicate OK [21:17:02]wFMCommunicate request_size=21 [21:17:02]MH_SAM_APDU [21:17:02]CAPDU: 80 0D 02 02 10 04 00 02 6A 01 00 35 04 06 00 54 70 04 A3 48 F6 [21:17:02]Write to MH i2c: E2 18 00 16 63 80 0D 02 02 10 00 04 00 02 6A 01 00 35 04 06 00 54 70 04 A3 48 F6 00 00 6C [21:17:02]Write i2c OK [21:17:02]MH_I2C_Read... [21:17:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:02]Read from MH i2c: E2 [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: E2 03 00 [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: E2 03 00 16 63 00 90 00 ED [21:17:02]RAPDU: 90 00 [21:17:02]wFMCommunicate OK [21:17:02]wFMCommunicate request_size=4 [21:17:02]MH_SAM_APDU [21:17:02]CAPDU: 80 0D 03 02 [21:17:02]Write to MH i2c: E2 08 00 17 63 80 0D 03 02 00 00 00 00 F5 [21:17:02]Write i2c OK [21:17:02]MH_I2C_Read... [21:17:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:17:02]Read from MH i2c: E2 [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: E2 0B 00 [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: E2 0B 00 17 63 00 E3 3E 60 51 25 A4 64 FE 90 00 F3 [21:17:02]RAPDU: E3 3E 60 51 25 A4 64 FE 90 00 [21:17:02]wFMCommunicate OK [21:17:02]SAM_PROTO_SignData done [21:17:02]FM_MakeSignedData done [21:17:02]CreateOFDProtocolMessage [21:17:02]wFMCommunicate request_size=4 [21:17:02]MH_SAM_APDU [21:17:02]CAPDU: 80 11 00 00 [21:17:02]Write to MH i2c: E2 08 00 18 63 80 11 00 00 00 00 00 00 F5 [21:17:02]Write i2c OK [21:17:02]MH_I2C_Read... [21:17:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:02]Read from MH i2c: E2 [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: E2 17 00 [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: E2 17 00 18 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 4C [21:17:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:17:02]wFMCommunicate OK [21:17:02]CreateOFDProtocolMessage done [21:17:02]OFDSenderStorePacket 92674 [21:17:02]StoreOFDPacket docnum=92674 [21:17:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 14 02 00 00 03 36 0C 02 A1 C3 5A 03 01 00 03 00 00 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 07 00 00 00 00 07 04 06 00 0C 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 D6 4E E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 02 6A 01 00 35 04 06 00 54 70 04 A3 48 F6 E3 3E 60 51 25 A4 64 FE [21:17:02]CheckFolder [21:17:02]dirname=/storage/ofd_packets [21:17:02]CheckFolder done [21:17:02]ProducePacketName [21:17:02]name=ofd_packets/00092674 [21:17:02]NVStorageSaveData ofd_packets/00092674 [21:17:02]File name is /storage/ofd_packets/00092674 [21:17:02]Write 562 bytes [21:17:02]NVStorageSaveData done [21:17:02]OFDSenderStorePacket done [21:17:02]KKMCreateOFDPacket done [21:17:02]NVStorageSaveData kkm_last_timestamp [21:17:02]File name is /storage/kkm_last_timestamp [21:17:02]Write 4 bytes [21:17:02]NVStorageSaveData done [21:17:02]ExternCall_PrintAddStr [21:17:02]wPrintStart [21:17:02]Write to MH i2c: 01 00 00 19 63 7C [21:17:02]Write i2c OK [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: 01 [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: 01 07 00 [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: 01 07 00 19 63 00 00 00 00 00 FF 0F 91 [21:17:02]RasterBufferAndPrint [21:17:02]line Счет N : (3)127563 [21:17:02]line ИНН: 02508201610067 [21:17:02]line Контрольно-Кассовый Чек [21:17:02]line ПРОДАЖА [21:17:02]line Товар: 5449000189349 [21:17:02]line Холодный чай Fuse манго ананас 0,5л [21:17:02]line 1.000 * 75.00 [21:17:02]line = 75.00 [21:17:02]line НДС 12% НСП 1% [21:17:02]line > о реализуемом товаре [21:17:02]line Товар: 5449000189394 [21:17:02]line Холодный чай Fuse ягода 0,5л [21:17:02]line 1.000 * 75.00 [21:17:02]line = 75.00 [21:17:02]line НДС 12% НСП 1% [21:17:02]line > о реализуемом товаре [21:17:02]line Товар: 42113164 [21:17:02]line Жев Orbit White Spearmint [21:17:02]line 1.000 * 37.00 [21:17:02]line = 37.00 [21:17:02]line НДС 12% НСП 1% [21:17:02]line > о реализуемом товаре [21:17:02]line ИТОГО: 187.00 [21:17:02]line НСП 1% : 1.65 [21:17:02]line НДС 12% : 19.85 [21:17:02]line Наличными: 187.00 [21:17:02]line Безнал.: 0.00 [21:17:02]line Место: АЗС № 5 "Партнер Нефть" [21:17:02]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [21:17:02]line СНО: Общий режим [21:17:02]line Чек 122 15.09.2024 21:17 [21:17:02]line Смена: 507 ФФД: 1.0 [21:17:02]line ЗНМ: 03000000022 [21:17:02]line РНМ: 0000000000091423 [21:17:02]line Версия ККМ: 001 [21:17:02]line ФМ: 0000000000874692 [21:17:02]line ФД: 92674 [21:17:02]line ФПД: 92840090880246 [21:17:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T211710&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92674&fm=92840090880246&tin=02508201610067®Number=0000000000091423&sum=18700 [21:17:03]OFD Sender: Processing packet 92674 [packets to send 63, broken 62] [21:17:03]ProducePacketName [21:17:03]name=ofd_packets/00092674 [21:17:03]OFD Sender: To server: pG, [21:17:03]CommunicateWithHost lk.salyk.kg:30040 [21:17:03]ConnectInit lk.salyk.kg [21:17:03]line 0 [21:17:03]written 0, free lines is 4095 [21:17:03]Connected sock=10 [21:17:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 14 02 00 00 03 36 0C 02 A1 C3 5A 03 01 00 03 00 00 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 07 00 00 00 00 07 04 06 00 0C 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 D6 4E E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 02 6A 01 00 35 04 06 00 54 70 04 A3 48 F6 E3 3E 60 51 25 A4 64 FE [21:17:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 20 58 47 00 D5 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 02 6A 01 00 F4 03 04 00 4E F7 E6 66 B6 04 01 00 00 8B ED C2 C8 CC 47 EA D1 [21:17:03]CommunicateWithHost err = 0 [21:17:03]CheckOFDResponse [21:17:03]1017 (14) - 77093643461234 [21:17:03]1041 (16) - 0000000000874692 [21:17:03]1040 (4) - 92674 [21:17:03]1012 (4) - 15.09.2024 15:03 [21:17:03]1206 (1) - 0 [21:17:03]OFD Sender: Remove packet 92674 [21:17:03]ProducePacketName [21:17:03]name=ofd_packets/00092674 [21:17:03]NVStorageDeleteData [21:17:03]Write to MH i2c: 01 00 00 4E 63 B1 [21:17:03]Write i2c OK [21:17:03]MH_I2C_Read... [21:17:03]Read from MH i2c: 01 [21:17:03]MH_I2C_Read... [21:17:03]Read from MH i2c: 01 07 00 [21:17:03]MH_I2C_Read... [21:17:03]Read from MH i2c: 01 07 00 4E 63 00 00 00 00 00 77 0C 3B [21:17:03]RasterBufferAndPrint [21:17:03]line [21:17:03]line [21:17:03]line [21:17:03]line [21:17:03]line [21:17:03]written 0, free lines is 3202 [21:17:03]MH_Cut [21:17:03]Write to MH i2c: D1 01 00 55 63 01 8A [21:17:03]Write i2c OK [21:17:03]MH_I2C_Read... [21:17:03]Read from MH i2c: D1 [21:17:03]MH_I2C_Read... [21:17:03]Read from MH i2c: D1 01 00 [21:17:03]MH_I2C_Read... [21:17:03]Read from MH i2c: D1 01 00 55 63 00 89 [21:17:03]Write to MH i2c: 01 00 00 56 63 B9 [21:17:03]Write i2c OK [21:17:03]MH_I2C_Read... [21:17:03]OFD Sender: No OFD packet to send [21:17:04]*** Cut start [21:17:04]*** Purtial cut [21:17:04]*** Stage 1: CUTSNS_PIN = 1 [21:17:06]Read from MH i2c: 01 [21:17:06]MH_I2C_Read... [21:17:06]*** Stop cut motor [21:17:06]*** Cut end [21:17:06]Read from MH i2c: 01 07 00 [21:17:06]MH_I2C_Read... [21:17:06]Read from MH i2c: 01 07 00 56 63 00 00 00 00 00 FF 0F CE [21:17:06]process_action close_receipt done [21:17:06]requested_data is exist [21:17:06]produce_requested_data [21:17:06]requested_item fm.sn is exist - process it [21:17:06]wFMCommunicate request_size=4 [21:17:06]MH_SAM_APDU [21:17:06]CAPDU: 80 11 00 00 [21:17:06]Write to MH i2c: E2 08 00 57 63 80 11 00 00 00 00 00 00 34 [21:17:06]Write i2c OK [21:17:06]MH_I2C_Read... [21:17:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:06]Read from MH i2c: E2 [21:17:06]MH_I2C_Read... [21:17:06]Read from MH i2c: E2 17 00 [21:17:06]MH_I2C_Read... [21:17:06]Read from MH i2c: E2 17 00 57 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 8B [21:17:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:17:06]wFMCommunicate OK [21:17:06]requested_item fd.num is exist - process it [21:17:06]SAM_PROTO_GetFieldsCounters [21:17:06]wFMCommunicate request_size=4 [21:17:06]MH_SAM_APDU [21:17:06]CAPDU: 80 13 00 00 [21:17:06]Write to MH i2c: E2 08 00 58 63 80 13 00 00 00 00 00 00 37 [21:17:06]Write i2c OK [21:17:06]MH_I2C_Read... [21:17:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:17:06]Read from MH i2c: E2 [21:17:06]MH_I2C_Read... [21:17:06]Read from MH i2c: E2 62 00 [21:17:06]MH_I2C_Read... [21:17:06]Read from MH i2c: E2 62 00 58 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 02 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [21:17:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 02 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:17:06]wFMCommunicate OK [21:17:06]SAM_PROTO_GetFieldsCounters done [21:17:06]requested_item shift.num is exist - process it [21:17:06]requested_item shift.opened is exist - process it [21:17:06]req_shift_opened [21:17:06]FM_GetShiftState [21:17:06]SAM_PROTO_GetShiftState [21:17:06]wFMCommunicate request_size=4 [21:17:06]MH_SAM_APDU [21:17:06]CAPDU: 80 13 01 00 [21:17:06]Write to MH i2c: E2 08 00 59 63 80 13 01 00 00 00 00 00 39 [21:17:06]Write i2c OK [21:17:06]MH_I2C_Read... [21:17:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:06]Read from MH i2c: E2 [21:17:06]MH_I2C_Read... [21:17:06]Read from MH i2c: E2 0E 00 [21:17:06]MH_I2C_Read... [21:17:06]Read from MH i2c: E2 0E 00 59 63 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 BB [21:17:06]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [21:17:06]wFMCommunicate OK [21:17:06]SAM_PROTO_GetShiftState done [21:17:06]FM_GetShiftState done [21:17:06]req_shift_opened done [21:17:06]requested_item shift.open_date is exist - process it [21:17:06]req_shift_open_date [21:17:06]req_shift_open_date done [21:17:06]produce_requested_data done [21:17:06]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92674,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [21:17:06]process_action_free close_receipt [21:17:06]json_value_free [21:17:06]json_value_free done [21:17:06]process_json_proto returns [21:17:06]Send response to host [21:17:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92674,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [21:17:06]free response buf [21:17:06]execute_script done [21:17:06]execute_script returns [21:17:06]free content buf [21:17:06]Sock 8.Close socket [21:17:06]Sock 8.Thread stoped [21:17:08]OFD Sender: No OFD packet to send [21:17:13]OFD Sender: No OFD packet to send [21:17:18]OFD Sender: No OFD packet to send [21:17:23]OFD Sender: No OFD packet to send [21:17:28]OFD Sender: No OFD packet to send [21:17:33]OFD Sender: No OFD packet to send [21:17:38]OFD Sender: No OFD packet to send [21:17:43]OFD Sender: No OFD packet to send [21:17:48]OFD Sender: No OFD packet to send [21:17:53]OFD Sender: No OFD packet to send [21:17:58]OFD Sender: No OFD packet to send [21:18:03]OFD Sender: No OFD packet to send [21:18:08]OFD Sender: No OFD packet to send [21:18:13]OFD Sender: No OFD packet to send [21:18:18]OFD Sender: No OFD packet to send [21:18:23]OFD Sender: No OFD packet to send [21:18:28]OFD Sender: No OFD packet to send [21:18:33]OFD Sender: No OFD packet to send [21:18:38]OFD Sender: No OFD packet to send [21:18:43]OFD Sender: No OFD packet to send [21:18:48]OFD Sender: No OFD packet to send [21:18:53]OFD Sender: No OFD packet to send [21:18:58]OFD Sender: No OFD packet to send [21:19:03]OFD Sender: No OFD packet to send [21:19:08]OFD Sender: No OFD packet to send [21:19:13]OFD Sender: No OFD packet to send [21:19:18]OFD Sender: No OFD packet to send [21:19:24]OFD Sender: No OFD packet to send [21:19:29]OFD Sender: No OFD packet to send [21:19:34]OFD Sender: No OFD packet to send [21:19:39]OFD Sender: No OFD packet to send [21:19:44]OFD Sender: No OFD packet to send [21:19:49]OFD Sender: No OFD packet to send [21:19:54]OFD Sender: No OFD packet to send [21:19:59]OFD Sender: No OFD packet to send [21:20:04]OFD Sender: No OFD packet to send [21:20:09]OFD Sender: No OFD packet to send [21:20:14]OFD Sender: No OFD packet to send [21:20:19]OFD Sender: No OFD packet to send [21:20:24]OFD Sender: No OFD packet to send [21:20:29]OFD Sender: No OFD packet to send [21:20:34]OFD Sender: No OFD packet to send [21:20:39]OFD Sender: No OFD packet to send [21:20:44]OFD Sender: No OFD packet to send [21:20:49]OFD Sender: No OFD packet to send [21:20:54]OFD Sender: No OFD packet to send [21:20:59]OFD Sender: No OFD packet to send [21:21:04]OFD Sender: No OFD packet to send [21:21:09]OFD Sender: No OFD packet to send [21:21:14]OFD Sender: No OFD packet to send [21:21:19]OFD Sender: No OFD packet to send [21:21:24]OFD Sender: No OFD packet to send [21:21:29]OFD Sender: No OFD packet to send [21:21:34]OFD Sender: No OFD packet to send [21:21:39]OFD Sender: No OFD packet to send [21:21:44]OFD Sender: No OFD packet to send [21:21:49]OFD Sender: No OFD packet to send [21:21:54]OFD Sender: No OFD packet to send [21:21:59]OFD Sender: No OFD packet to send [21:22:04]OFD Sender: No OFD packet to send [21:22:09]OFD Sender: No OFD packet to send [21:22:14]OFD Sender: No OFD packet to send [21:22:19]OFD Sender: No OFD packet to send [21:22:24]OFD Sender: No OFD packet to send [21:22:29]OFD Sender: No OFD packet to send [21:22:34]OFD Sender: No OFD packet to send [21:22:39]OFD Sender: No OFD packet to send [21:22:44]OFD Sender: No OFD packet to send [21:22:49]OFD Sender: No OFD packet to send [21:22:54]OFD Sender: No OFD packet to send [21:22:59]OFD Sender: No OFD packet to send [21:23:04]OFD Sender: No OFD packet to send [21:23:09]OFD Sender: No OFD packet to send [21:23:14]OFD Sender: No OFD packet to send [21:23:19]OFD Sender: No OFD packet to send [21:23:24]OFD Sender: No OFD packet to send [21:23:29]OFD Sender: No OFD packet to send [21:23:34]OFD Sender: No OFD packet to send [21:23:39]OFD Sender: No OFD packet to send [21:23:44]OFD Sender: No OFD packet to send [21:23:49]OFD Sender: No OFD packet to send [21:23:54]OFD Sender: No OFD packet to send [21:23:59]OFD Sender: No OFD packet to send [21:24:04]OFD Sender: No OFD packet to send [21:24:09]OFD Sender: No OFD packet to send [21:24:14]OFD Sender: No OFD packet to send [21:24:19]OFD Sender: No OFD packet to send [21:24:24]OFD Sender: No OFD packet to send [21:24:29]OFD Sender: No OFD packet to send [21:24:34]OFD Sender: No OFD packet to send [21:24:39]OFD Sender: No OFD packet to send [21:24:44]OFD Sender: No OFD packet to send [21:24:49]OFD Sender: No OFD packet to send [21:24:54]OFD Sender: No OFD packet to send [21:24:59]OFD Sender: No OFD packet to send [21:25:04]OFD Sender: No OFD packet to send [21:25:09]OFD Sender: No OFD packet to send [21:25:14]OFD Sender: No OFD packet to send [21:25:19]OFD Sender: No OFD packet to send [21:25:24]OFD Sender: No OFD packet to send [21:25:29]OFD Sender: No OFD packet to send [21:25:34]OFD Sender: No OFD packet to send [21:25:39]OFD Sender: No OFD packet to send [21:25:44]OFD Sender: No OFD packet to send [21:25:49]OFD Sender: No OFD packet to send [21:25:54]OFD Sender: No OFD packet to send [21:25:59]OFD Sender: No OFD packet to send [21:26:04]OFD Sender: No OFD packet to send [21:26:09]OFD Sender: No OFD packet to send [21:26:14]OFD Sender: No OFD packet to send [21:26:19]OFD Sender: No OFD packet to send [21:26:24]OFD Sender: No OFD packet to send [21:26:29]OFD Sender: No OFD packet to send [21:26:34]OFD Sender: No OFD packet to send [21:26:39]OFD Sender: No OFD packet to send [21:26:44]OFD Sender: No OFD packet to send [21:26:49]OFD Sender: No OFD packet to send [21:26:54]OFD Sender: No OFD packet to send [21:26:59]OFD Sender: No OFD packet to send [21:27:04]OFD Sender: No OFD packet to send [21:27:09]OFD Sender: No OFD packet to send [21:27:14]OFD Sender: No OFD packet to send [21:27:19]OFD Sender: No OFD packet to send [21:27:24]OFD Sender: No OFD packet to send [21:27:29]OFD Sender: No OFD packet to send [21:27:34]OFD Sender: No OFD packet to send [21:27:39]OFD Sender: No OFD packet to send [21:27:44]OFD Sender: No OFD packet to send [21:27:49]OFD Sender: No OFD packet to send [21:27:54]OFD Sender: No OFD packet to send [21:27:59]OFD Sender: No OFD packet to send [21:28:03]accept exits with 9 [21:28:03]New connection [21:28:03]New thread 3066801508 created [21:28:03]Thread 3066658148 joined [21:28:03]Waiting for new connection... [21:28:03] Sock 9.Parse request [21:28:03]Sock 9.Check first char [21:28:03]Sock 9.First char is OK [21:28:03]request: POST /json_proto HTTP/1.0 [21:28:03]Method: POST [21:28:03]URL: /json_proto [21:28:03]Method is POST - this is cgi request [21:28:03]url: /json_proto [21:28:03]query_string will be loaded in cgi processing [21:28:03]execute_cgi json_proto POST (null) [21:28:03]execute_cgi path=json_proto method=POST [21:28:03]POST find Content-Length [21:28:03]Host: 172.17.57.71:8080 [21:28:03]Content-Length: 668 [21:28:03]Content-Type: application/json [21:28:03] [21:28:03]POST finish read [21:28:03]Found Content-Length = 668 [21:28:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127564", "tax_sys" : 0, "items" : [ { "code": "8690637820052", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 Algida Cornetto Classico \u0414\u0432\u043E\u0439\u043D", "price" : 100.00, "quantity" : 2.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:28:03]execute_script... [21:28:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127564", "tax_sys" : 0, "items" : [ { "code": "8690637820052", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 Algida Cornetto Classico \u0414\u0432\u043E\u0439\u043D", "price" : 100.00, "quantity" : 2.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:28:03]POST & json_proto [21:28:03]process_json_proto [21:28:03]json parsed OK: [21:28:03]protocol is kg_v1.0 [21:28:03]action value=close_receipt [21:28:03]process_action close_receipt [21:28:03]cmd_close_receipt [21:28:03]MH_GetDate [21:28:03]Write to MH i2c: F0 00 00 5A 63 AC [21:28:03]Write i2c OK [21:28:03]MH_I2C_Read... [21:28:03]Read from MH i2c: F0 [21:28:03]MH_I2C_Read... [21:28:03]Read from MH i2c: F0 09 00 [21:28:03]MH_I2C_Read... [21:28:03]Read from MH i2c: F0 09 00 5A 63 00 6E 51 E7 66 33 3A A4 66 38 [21:28:03]GetLastDocTimeStamp 1726435030 [21:28:03]current date 1726435694 [21:28:03]FM_GetShiftState [21:28:03]SAM_PROTO_GetShiftState [21:28:03]wFMCommunicate request_size=4 [21:28:03]MH_SAM_APDU [21:28:03]CAPDU: 80 13 01 00 [21:28:03]Write to MH i2c: E2 08 00 5B 63 80 13 01 00 00 00 00 00 3B [21:28:03]Write i2c OK [21:28:03]MH_I2C_Read... [21:28:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:03]Read from MH i2c: E2 [21:28:03]MH_I2C_Read... [21:28:03]Read from MH i2c: E2 0E 00 [21:28:03]MH_I2C_Read... [21:28:03]Read from MH i2c: E2 0E 00 5B 63 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 BD [21:28:03]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [21:28:03]wFMCommunicate OK [21:28:03]SAM_PROTO_GetShiftState done [21:28:03]FM_GetShiftState done [21:28:03]opened in 1726359809 [21:28:03]opened+sec_in_day 1726446209 [21:28:03]quantity*price = 20000 [21:28:03]sum+1 = 20001 [21:28:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 123 15.09.2024 21:28 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92675 ФПД: 77089054694650 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T212814&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92675&fm=77089054694650&tin=02508201610067®Number=0000000000091423&sum=20000 0 [21:28:05]StoreToDocumentArchive [21:28:05]shift 507 fd 92675 [21:28:05]save to /storage/0507/doc_00092675 [21:28:05]save last doc name /storage/0507/doc_00092675 to /storage/kkm_last_doc_name [21:28:05]save OK [21:28:05]Clear old archive folders... [21:28:05]ProcessDocumentItem done err = 0, tmpTLVsize=296 [21:28:05]tlvbuf is 010D6830 [21:28:05]SAM_PROTO_ClearQueue [21:28:05]wFMCommunicate request_size=4 [21:28:05]MH_SAM_APDU [21:28:05]CAPDU: 80 09 00 00 [21:28:05]Write to MH i2c: E2 08 00 68 63 80 09 00 00 00 00 00 00 3D [21:28:05]Write i2c OK [21:28:05]MH_I2C_Read... [21:28:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:28:05]Read from MH i2c: E2 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: E2 03 00 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: E2 03 00 68 63 00 90 00 3F [21:28:05]RAPDU: 90 00 [21:28:05]wFMCommunicate OK [21:28:05]SAM_PROTO_ClearQueue done [21:28:05]KKMCreateOFDPacket [21:28:05]OFDProtocolAddRootSTLVToBuf [21:28:05]FM_MakeSignedData [21:28:05]FM_MakeSignedData [21:28:05]SAM_PROTO_SignData [21:28:05]wFMCommunicate request_size=4 [21:28:05]MH_SAM_APDU [21:28:05]CAPDU: 80 0D 01 02 [21:28:05]Write to MH i2c: E2 08 00 69 63 80 0D 01 02 00 00 00 00 45 [21:28:05]Write i2c OK [21:28:05]MH_I2C_Read... [21:28:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:28:05]Read from MH i2c: E2 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: E2 03 00 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: E2 03 00 69 63 00 90 00 40 [21:28:05]RAPDU: 90 00 [21:28:05]wFMCommunicate OK [21:28:05]wFMCommunicate request_size=255 [21:28:05]MH_SAM_APDU [21:28:05]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 38 36 39 30 36 33 37 38 32 30 30 35 32 06 04 36 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 41 6C 67 69 64 61 20 43 6F 72 6E 65 74 74 6F 20 43 6C 61 73 73 69 63 6F 20 D0 94 D0 B2 D0 BE D0 B9 D0 BD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 6E 51 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [21:28:05]Write to MH i2c: E2 02 01 6A 63 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 38 36 39 30 36 33 37 38 32 30 30 35 32 06 04 36 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 41 6C 67 69 64 61 20 43 6F 72 6E 65 74 74 6F 20 43 6C 61 73 73 69 63 6F 20 D0 94 D0 B2 D0 BE D0 B9 D0 BD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 6E 51 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 4B [21:28:05]Write i2c OK [21:28:05]MH_I2C_Read... [21:28:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:05]Read from MH i2c: E2 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: E2 03 00 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: E2 03 00 6A 63 00 90 00 41 [21:28:05]RAPDU: 90 00 [21:28:05]wFMCommunicate OK [21:28:05]wFMCommunicate request_size=55 [21:28:05]MH_SAM_APDU [21:28:05]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 03 6A 01 00 35 04 06 00 46 1C B1 B8 9C FA [21:28:05]Write to MH i2c: E2 3A 00 6B 63 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 03 6A 01 00 35 04 06 00 46 1C B1 B8 9C FA 00 00 6E [21:28:05]Write i2c OK [21:28:05]MH_I2C_Read... [21:28:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:05]Read from MH i2c: E2 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: E2 03 00 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: E2 03 00 6B 63 00 90 00 42 [21:28:05]RAPDU: 90 00 [21:28:05]wFMCommunicate OK [21:28:05]wFMCommunicate request_size=4 [21:28:05]MH_SAM_APDU [21:28:05]CAPDU: 80 0D 03 02 [21:28:05]Write to MH i2c: E2 08 00 6C 63 80 0D 03 02 00 00 00 00 4A [21:28:05]Write i2c OK [21:28:05]MH_I2C_Read... [21:28:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:28:05]Read from MH i2c: E2 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: E2 0B 00 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: E2 0B 00 6C 63 00 83 83 2B F6 E4 05 F9 42 90 00 96 [21:28:05]RAPDU: 83 83 2B F6 E4 05 F9 42 90 00 [21:28:05]wFMCommunicate OK [21:28:05]SAM_PROTO_SignData done [21:28:05]FM_MakeSignedData done [21:28:05]CreateOFDProtocolMessage [21:28:05]wFMCommunicate request_size=4 [21:28:05]MH_SAM_APDU [21:28:05]CAPDU: 80 11 00 00 [21:28:05]Write to MH i2c: E2 08 00 6D 63 80 11 00 00 00 00 00 00 4A [21:28:05]Write i2c OK [21:28:05]MH_I2C_Read... [21:28:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:05]Read from MH i2c: E2 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: E2 17 00 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: E2 17 00 6D 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A1 [21:28:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:28:05]wFMCommunicate OK [21:28:05]CreateOFDProtocolMessage done [21:28:05]OFDSenderStorePacket 92675 [21:28:05]StoreOFDPacket docnum=92675 [21:28:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3C 01 00 00 76 19 34 01 D8 09 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 38 36 39 30 36 33 37 38 32 30 30 35 32 06 04 36 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 41 6C 67 69 64 61 20 43 6F 72 6E 65 74 74 6F 20 43 6C 61 73 73 69 63 6F 20 D0 94 D0 B2 D0 BE D0 B9 D0 BD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 6E 51 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 03 6A 01 00 35 04 06 00 46 1C B1 B8 9C FA 83 83 2B F6 E4 05 F9 42 [21:28:05]CheckFolder [21:28:05]dirname=/storage/ofd_packets [21:28:05]CheckFolder done [21:28:05]ProducePacketName [21:28:05]name=ofd_packets/00092675 [21:28:05]NVStorageSaveData ofd_packets/00092675 [21:28:05]File name is /storage/ofd_packets/00092675 [21:28:05]Write 346 bytes [21:28:05]NVStorageSaveData done [21:28:05]OFDSenderStorePacket done [21:28:05]KKMCreateOFDPacket done [21:28:05]NVStorageSaveData kkm_last_timestamp [21:28:05]File name is /storage/kkm_last_timestamp [21:28:05]Write 4 bytes [21:28:05]NVStorageSaveData done [21:28:05]ExternCall_PrintAddStr [21:28:05]wPrintStart [21:28:05]Write to MH i2c: 01 00 00 6E 63 D1 [21:28:05]Write i2c OK [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: 01 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: 01 07 00 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: 01 07 00 6E 63 00 00 00 00 00 FF 0F E6 [21:28:05]RasterBufferAndPrint [21:28:05]line Счет N : (3)127564 [21:28:05]line ИНН: 02508201610067 [21:28:05]line Контрольно-Кассовый Чек [21:28:05]line ПРОДАЖА [21:28:05]line Товар: 8690637820052 [21:28:05]line Мороженое Algida Cornetto Classico Двойн [21:28:05]line 2.000 * 100.00 [21:28:05]line = 200.00 [21:28:05]line НДС 12% НСП 1% [21:28:05]line > о реализуемом товаре [21:28:05]line ИТОГО: 200.00 [21:28:05]line НСП 1% : 1.77 [21:28:05]line НДС 12% : 21.24 [21:28:05]line Наличными: 200.00 [21:28:05]line Безнал.: 0.00 [21:28:05]line Место: АЗС № 5 "Партнер Нефть" [21:28:05]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [21:28:05]line СНО: Общий режим [21:28:05]line Чек 123 15.09.2024 21:28 [21:28:05]line Смена: 507 ФФД: 1.0 [21:28:05]line ЗНМ: 03000000022 [21:28:05]line РНМ: 0000000000091423 [21:28:05]line Версия ККМ: 001 [21:28:05]line ФМ: 0000000000874692 [21:28:05]line ФД: 92675 [21:28:05]line ФПД: 77089054694650 [21:28:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T212814&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92675&fm=77089054694650&tin=02508201610067®Number=0000000000091423&sum=20000 [21:28:05]line 0 [21:28:05]OFD Sender: Processing packet 92675 [packets to send 63, broken 62] [21:28:05]ProducePacketName [21:28:05]name=ofd_packets/00092675 [21:28:05]OFD Sender: To server: pG, [21:28:05]CommunicateWithHost lk.salyk.kg:30040 [21:28:05]ConnectInit lk.salyk.kg [21:28:05]written 0, free lines is 4095 [21:28:06]Connected sock=10 [21:28:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3C 01 00 00 76 19 34 01 D8 09 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 38 36 39 30 36 33 37 38 32 30 30 35 32 06 04 36 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 41 6C 67 69 64 61 20 43 6F 72 6E 65 74 74 6F 20 43 6C 61 73 73 69 63 6F 20 D0 94 D0 B2 D0 BE D0 B9 D0 BD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 6E 51 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 03 6A 01 00 35 04 06 00 46 1C B1 B8 9C FA 83 83 2B F6 E4 05 F9 42 [21:28:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 A7 6D 47 00 84 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 03 6A 01 00 F4 03 04 00 E5 F9 E6 66 B6 04 01 00 00 4C 65 26 93 BA 71 4A C9 [21:28:06]CommunicateWithHost err = 0 [21:28:06]CheckOFDResponse [21:28:06]1017 (14) - 77093643461234 [21:28:06]1041 (16) - 0000000000874692 [21:28:06]1040 (4) - 92675 [21:28:06]1012 (4) - 15.09.2024 15:14 [21:28:06]1206 (1) - 0 [21:28:06]OFD Sender: Remove packet 92675 [21:28:06]ProducePacketName [21:28:06]name=ofd_packets/00092675 [21:28:06]NVStorageDeleteData [21:28:06]Write to MH i2c: 01 00 00 97 63 FA [21:28:06]Write i2c OK [21:28:06]MH_I2C_Read... [21:28:06]Read from MH i2c: 01 [21:28:06]MH_I2C_Read... [21:28:06]Read from MH i2c: 01 07 00 [21:28:06]MH_I2C_Read... [21:28:06]Read from MH i2c: 01 07 00 97 63 00 00 00 00 00 1D 0D 2B [21:28:06]RasterBufferAndPrint [21:28:06]line [21:28:06]line [21:28:06]line [21:28:06]line [21:28:06]line [21:28:06]written 0, free lines is 3364 [21:28:06]MH_Cut [21:28:06]Write to MH i2c: D1 01 00 9E 63 01 D3 [21:28:06]Write i2c OK [21:28:06]MH_I2C_Read... [21:28:06]Read from MH i2c: D1 [21:28:06]MH_I2C_Read... [21:28:06]Read from MH i2c: D1 01 00 [21:28:06]MH_I2C_Read... [21:28:06]Read from MH i2c: D1 01 00 9E 63 00 D2 [21:28:06]Write to MH i2c: 01 00 00 9F 63 02 [21:28:06]Write i2c OK [21:28:06]MH_I2C_Read... [21:28:06]OFD Sender: No OFD packet to send [21:28:07]*** Cut start [21:28:07]*** Purtial cut [21:28:07]*** Stage 1: CUTSNS_PIN = 1 [21:28:09]Read from MH i2c: 01 [21:28:09]MH_I2C_Read... [21:28:09]*** Stop cut motor [21:28:09]*** Cut end [21:28:09]Read from MH i2c: 01 07 00 [21:28:09]MH_I2C_Read... [21:28:09]Read from MH i2c: 01 07 00 9F 63 00 00 00 00 00 FF 0F 17 [21:28:09]process_action close_receipt done [21:28:09]requested_data is exist [21:28:09]produce_requested_data [21:28:09]requested_item fm.sn is exist - process it [21:28:09]wFMCommunicate request_size=4 [21:28:09]MH_SAM_APDU [21:28:09]CAPDU: 80 11 00 00 [21:28:09]Write to MH i2c: E2 08 00 A0 63 80 11 00 00 00 00 00 00 7D [21:28:09]Write i2c OK [21:28:09]MH_I2C_Read... [21:28:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:09]Read from MH i2c: E2 [21:28:09]MH_I2C_Read... [21:28:09]Read from MH i2c: E2 17 00 [21:28:09]MH_I2C_Read... [21:28:09]Read from MH i2c: E2 17 00 A0 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D4 [21:28:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:28:09]wFMCommunicate OK [21:28:09]requested_item fd.num is exist - process it [21:28:09]SAM_PROTO_GetFieldsCounters [21:28:09]wFMCommunicate request_size=4 [21:28:09]MH_SAM_APDU [21:28:09]CAPDU: 80 13 00 00 [21:28:09]Write to MH i2c: E2 08 00 A1 63 80 13 00 00 00 00 00 00 80 [21:28:09]Write i2c OK [21:28:09]MH_I2C_Read... [21:28:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:28:09]Read from MH i2c: E2 [21:28:09]MH_I2C_Read... [21:28:09]Read from MH i2c: E2 62 00 [21:28:09]MH_I2C_Read... [21:28:09]Read from MH i2c: E2 62 00 A1 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 03 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [21:28:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 03 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:28:09]wFMCommunicate OK [21:28:09]SAM_PROTO_GetFieldsCounters done [21:28:09]requested_item shift.num is exist - process it [21:28:09]requested_item shift.opened is exist - process it [21:28:09]req_shift_opened [21:28:09]FM_GetShiftState [21:28:09]SAM_PROTO_GetShiftState [21:28:09]wFMCommunicate request_size=4 [21:28:09]MH_SAM_APDU [21:28:09]CAPDU: 80 13 01 00 [21:28:09]Write to MH i2c: E2 08 00 A2 63 80 13 01 00 00 00 00 00 82 [21:28:09]Write i2c OK [21:28:09]MH_I2C_Read... [21:28:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:09]Read from MH i2c: E2 [21:28:09]MH_I2C_Read... [21:28:09]Read from MH i2c: E2 0E 00 [21:28:09]MH_I2C_Read... [21:28:09]Read from MH i2c: E2 0E 00 A2 63 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 04 [21:28:09]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [21:28:09]wFMCommunicate OK [21:28:09]SAM_PROTO_GetShiftState done [21:28:09]FM_GetShiftState done [21:28:09]req_shift_opened done [21:28:09]requested_item shift.open_date is exist - process it [21:28:09]req_shift_open_date [21:28:09]req_shift_open_date done [21:28:09]produce_requested_data done [21:28:09]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92675,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [21:28:09]process_action_free close_receipt [21:28:09]json_value_free [21:28:09]json_value_free done [21:28:09]process_json_proto returns [21:28:09]Send response to host [21:28:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92675,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [21:28:09]free response buf [21:28:09]execute_script done [21:28:09]execute_script returns [21:28:09]free content buf [21:28:09]Sock 9.Close socket [21:28:09]Sock 9.Thread stoped [21:28:11]OFD Sender: No OFD packet to send [21:28:16]OFD Sender: No OFD packet to send [21:28:21]OFD Sender: No OFD packet to send [21:28:26]OFD Sender: No OFD packet to send [21:28:31]OFD Sender: No OFD packet to send [21:28:36]OFD Sender: No OFD packet to send [21:28:41]OFD Sender: No OFD packet to send [21:28:46]OFD Sender: No OFD packet to send [21:28:51]OFD Sender: No OFD packet to send [21:28:56]OFD Sender: No OFD packet to send [21:29:01]OFD Sender: No OFD packet to send [21:29:06]OFD Sender: No OFD packet to send [21:29:11]OFD Sender: No OFD packet to send [21:29:16]OFD Sender: No OFD packet to send [21:29:21]OFD Sender: No OFD packet to send [21:29:26]OFD Sender: No OFD packet to send [21:29:31]OFD Sender: No OFD packet to send [21:29:36]OFD Sender: No OFD packet to send [21:29:41]OFD Sender: No OFD packet to send [21:29:46]OFD Sender: No OFD packet to send [21:29:51]OFD Sender: No OFD packet to send [21:29:56]OFD Sender: No OFD packet to send [21:30:01]OFD Sender: No OFD packet to send [21:30:06]OFD Sender: No OFD packet to send [21:30:11]OFD Sender: No OFD packet to send [21:30:16]OFD Sender: No OFD packet to send [21:30:21]OFD Sender: No OFD packet to send [21:30:26]OFD Sender: No OFD packet to send [21:30:31]OFD Sender: No OFD packet to send [21:30:36]OFD Sender: No OFD packet to send [21:30:41]OFD Sender: No OFD packet to send [21:30:46]OFD Sender: No OFD packet to send [21:30:51]OFD Sender: No OFD packet to send [21:30:56]OFD Sender: No OFD packet to send [21:31:01]OFD Sender: No OFD packet to send [21:31:06]OFD Sender: No OFD packet to send [21:31:11]OFD Sender: No OFD packet to send [21:31:16]OFD Sender: No OFD packet to send [21:31:21]OFD Sender: No OFD packet to send [21:31:26]OFD Sender: No OFD packet to send [21:31:31]OFD Sender: No OFD packet to send [21:31:36]OFD Sender: No OFD packet to send [21:31:41]OFD Sender: No OFD packet to send [21:31:46]OFD Sender: No OFD packet to send [21:31:51]OFD Sender: No OFD packet to send [21:31:56]OFD Sender: No OFD packet to send [21:32:01]OFD Sender: No OFD packet to send [21:32:06]OFD Sender: No OFD packet to send [21:32:11]OFD Sender: No OFD packet to send [21:32:16]OFD Sender: No OFD packet to send [21:32:21]OFD Sender: No OFD packet to send [21:32:26]OFD Sender: No OFD packet to send [21:32:31]OFD Sender: No OFD packet to send [21:32:36]OFD Sender: No OFD packet to send [21:32:41]OFD Sender: No OFD packet to send [21:32:46]OFD Sender: No OFD packet to send [21:32:51]OFD Sender: No OFD packet to send [21:32:56]OFD Sender: No OFD packet to send [21:33:01]OFD Sender: No OFD packet to send [21:33:06]OFD Sender: No OFD packet to send [21:33:12]OFD Sender: No OFD packet to send [21:33:17]OFD Sender: No OFD packet to send [21:33:22]OFD Sender: No OFD packet to send [21:33:27]OFD Sender: No OFD packet to send [21:33:32]OFD Sender: No OFD packet to send [21:33:37]OFD Sender: No OFD packet to send [21:33:42]OFD Sender: No OFD packet to send [21:33:47]OFD Sender: No OFD packet to send [21:33:52]OFD Sender: No OFD packet to send [21:33:57]OFD Sender: No OFD packet to send [21:34:02]OFD Sender: No OFD packet to send [21:34:07]OFD Sender: No OFD packet to send [21:34:12]OFD Sender: No OFD packet to send [21:34:17]OFD Sender: No OFD packet to send [21:34:22]OFD Sender: No OFD packet to send [21:34:27]OFD Sender: No OFD packet to send [21:34:32]OFD Sender: No OFD packet to send [21:34:37]OFD Sender: No OFD packet to send [21:34:42]OFD Sender: No OFD packet to send [21:34:47]OFD Sender: No OFD packet to send [21:34:52]OFD Sender: No OFD packet to send [21:34:57]OFD Sender: No OFD packet to send [21:35:02]OFD Sender: No OFD packet to send [21:35:07]OFD Sender: No OFD packet to send [21:35:12]OFD Sender: No OFD packet to send [21:35:17]OFD Sender: No OFD packet to send [21:35:22]OFD Sender: No OFD packet to send [21:35:27]OFD Sender: No OFD packet to send [21:35:32]OFD Sender: No OFD packet to send [21:35:37]OFD Sender: No OFD packet to send [21:35:42]OFD Sender: No OFD packet to send [21:35:47]OFD Sender: No OFD packet to send [21:35:52]OFD Sender: No OFD packet to send [21:35:57]OFD Sender: No OFD packet to send [21:36:02]OFD Sender: No OFD packet to send [21:36:07]OFD Sender: No OFD packet to send [21:36:12]OFD Sender: No OFD packet to send [21:36:17]OFD Sender: No OFD packet to send [21:36:22]OFD Sender: No OFD packet to send [21:36:27]OFD Sender: No OFD packet to send [21:36:32]OFD Sender: No OFD packet to send [21:36:37]OFD Sender: No OFD packet to send [21:36:42]OFD Sender: No OFD packet to send [21:36:47]OFD Sender: No OFD packet to send [21:36:52]OFD Sender: No OFD packet to send [21:36:57]OFD Sender: No OFD packet to send [21:37:02]OFD Sender: No OFD packet to send [21:37:07]OFD Sender: No OFD packet to send [21:37:12]OFD Sender: No OFD packet to send [21:37:17]OFD Sender: No OFD packet to send [21:37:22]OFD Sender: No OFD packet to send [21:37:27]OFD Sender: No OFD packet to send [21:37:32]OFD Sender: No OFD packet to send [21:37:37]OFD Sender: No OFD packet to send [21:37:42]OFD Sender: No OFD packet to send [21:37:47]OFD Sender: No OFD packet to send [21:37:47]accept exits with 8 [21:37:47]New connection [21:37:47]New thread 3066658148 created [21:37:47]Thread 3066801508 joined [21:37:47]Waiting for new connection... [21:37:47] Sock 8.Parse request [21:37:47]Sock 8.Check first char [21:37:47]Sock 8.First char is OK [21:37:47]request: POST /json_proto HTTP/1.0 [21:37:47]Method: POST [21:37:47]URL: /json_proto [21:37:47]Method is POST - this is cgi request [21:37:47]url: /json_proto [21:37:47]query_string will be loaded in cgi processing [21:37:47]execute_cgi json_proto POST (null) [21:37:47]execute_cgi path=json_proto method=POST [21:37:47]POST find Content-Length [21:37:47]Host: 172.17.57.71:8080 [21:37:47]Content-Length: 623 [21:37:47]Content-Type: application/json [21:37:47] [21:37:47]POST finish read [21:37:47]Found Content-Length = 623 [21:37:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127565", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:37:47]execute_script... [21:37:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127565", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:37:47]POST & json_proto [21:37:47]process_json_proto [21:37:47]json parsed OK: [21:37:47]protocol is kg_v1.0 [21:37:47]action value=close_receipt [21:37:47]process_action close_receipt [21:37:47]cmd_close_receipt [21:37:47]MH_GetDate [21:37:47]Write to MH i2c: F0 00 00 A3 63 F5 [21:37:47]Write i2c OK [21:37:47]MH_I2C_Read... [21:37:47]Read from MH i2c: F0 [21:37:47]MH_I2C_Read... [21:37:47]Read from MH i2c: F0 09 00 [21:37:47]MH_I2C_Read... [21:37:47]Read from MH i2c: F0 09 00 A3 63 00 B6 53 E7 66 33 3A A4 66 CB [21:37:47]GetLastDocTimeStamp 1726435694 [21:37:47]current date 1726436278 [21:37:47]FM_GetShiftState [21:37:47]SAM_PROTO_GetShiftState [21:37:47]wFMCommunicate request_size=4 [21:37:47]MH_SAM_APDU [21:37:47]CAPDU: 80 13 01 00 [21:37:47]Write to MH i2c: E2 08 00 A4 63 80 13 01 00 00 00 00 00 84 [21:37:47]Write i2c OK [21:37:47]MH_I2C_Read... [21:37:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:47]Read from MH i2c: E2 [21:37:47]MH_I2C_Read... [21:37:47]Read from MH i2c: E2 0E 00 [21:37:47]MH_I2C_Read... [21:37:47]Read from MH i2c: E2 0E 00 A4 63 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 06 [21:37:47]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [21:37:47]wFMCommunicate OK [21:37:47]SAM_PROTO_GetShiftState done [21:37:47]FM_GetShiftState done [21:37:47]opened in 1726359809 [21:37:47]opened+sec_in_day 1726446209 [21:37:47]quantity*price = 14400 [21:37:47]sum+1 = 14401 [21:37:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 124 15.09.2024 21:37 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92676 ФПД: 81463702056456 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T213758&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92676&fm=81463702056456&tin=02508201610067®Number=0000000000091423&sum=14400 0 [21:37:49]StoreToDocumentArchive [21:37:49]shift 507 fd 92676 [21:37:49]save to /storage/0507/doc_00092676 [21:37:49]save last doc name /storage/0507/doc_00092676 to /storage/kkm_last_doc_name [21:37:49]save OK [21:37:49]Clear old archive folders... [21:37:49]ProcessDocumentItem done err = 0, tmpTLVsize=275 [21:37:49]tlvbuf is 00FD3E10 [21:37:49]SAM_PROTO_ClearQueue [21:37:49]wFMCommunicate request_size=4 [21:37:49]MH_SAM_APDU [21:37:49]CAPDU: 80 09 00 00 [21:37:49]Write to MH i2c: E2 08 00 B1 63 80 09 00 00 00 00 00 00 86 [21:37:49]Write i2c OK [21:37:49]MH_I2C_Read... [21:37:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:37:49]Read from MH i2c: E2 [21:37:49]MH_I2C_Read... [21:37:49]Read from MH i2c: E2 03 00 [21:37:49]MH_I2C_Read... [21:37:49]Read from MH i2c: E2 03 00 B1 63 00 90 00 88 [21:37:49]RAPDU: 90 00 [21:37:49]wFMCommunicate OK [21:37:49]SAM_PROTO_ClearQueue done [21:37:49]KKMCreateOFDPacket [21:37:49]OFDProtocolAddRootSTLVToBuf [21:37:49]FM_MakeSignedData [21:37:49]FM_MakeSignedData [21:37:49]SAM_PROTO_SignData [21:37:49]wFMCommunicate request_size=4 [21:37:49]MH_SAM_APDU [21:37:49]CAPDU: 80 0D 01 02 [21:37:49]Write to MH i2c: E2 08 00 B2 63 80 0D 01 02 00 00 00 00 8E [21:37:49]Write i2c OK [21:37:49]MH_I2C_Read... [21:37:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:37:49]Read from MH i2c: E2 [21:37:49]MH_I2C_Read... [21:37:49]Read from MH i2c: E2 03 00 [21:37:49]MH_I2C_Read... [21:37:49]Read from MH i2c: E2 03 00 B2 63 00 90 00 89 [21:37:49]RAPDU: 90 00 [21:37:49]wFMCommunicate OK [21:37:49]wFMCommunicate request_size=255 [21:37:49]MH_SAM_APDU [21:37:49]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 B6 53 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 [21:37:49]Write to MH i2c: E2 02 01 B3 63 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 B6 53 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 00 00 5B [21:37:49]Write i2c OK [21:37:49]MH_I2C_Read... [21:37:49]Read from MH i2c: E2 [21:37:49]MH_I2C_Read... [21:37:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:49]Read from MH i2c: E2 03 00 [21:37:49]MH_I2C_Read... [21:37:49]Read from MH i2c: E2 03 00 B3 63 00 90 00 8A [21:37:49]RAPDU: 90 00 [21:37:49]wFMCommunicate OK [21:37:49]wFMCommunicate request_size=34 [21:37:49]MH_SAM_APDU [21:37:49]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 04 6A 01 00 35 04 06 00 4A 17 3F 05 EE 08 [21:37:49]Write to MH i2c: E2 25 00 B4 63 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 04 6A 01 00 35 04 06 00 4A 17 3F 05 EE 08 00 00 60 [21:37:49]Write i2c OK [21:37:49]MH_I2C_Read... [21:37:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:49]Read from MH i2c: E2 [21:37:49]MH_I2C_Read... [21:37:49]Read from MH i2c: E2 03 00 [21:37:49]MH_I2C_Read... [21:37:49]Read from MH i2c: E2 03 00 B4 63 00 90 00 8B [21:37:49]RAPDU: 90 00 [21:37:49]wFMCommunicate OK [21:37:49]wFMCommunicate request_size=4 [21:37:49]MH_SAM_APDU [21:37:49]CAPDU: 80 0D 03 02 [21:37:49]Write to MH i2c: E2 08 00 B5 63 80 0D 03 02 00 00 00 00 93 [21:37:49]Write i2c OK [21:37:49]MH_I2C_Read... [21:37:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:37:49]Read from MH i2c: E2 [21:37:49]MH_I2C_Read... [21:37:49]Read from MH i2c: E2 0B 00 [21:37:49]MH_I2C_Read... [21:37:49]Read from MH i2c: E2 0B 00 B5 63 00 F6 53 BA B6 81 04 4F 00 90 00 21 [21:37:49]RAPDU: F6 53 BA B6 81 04 4F 00 90 00 [21:37:49]wFMCommunicate OK [21:37:49]SAM_PROTO_SignData done [21:37:49]FM_MakeSignedData done [21:37:49]CreateOFDProtocolMessage [21:37:49]wFMCommunicate request_size=4 [21:37:49]MH_SAM_APDU [21:37:49]CAPDU: 80 11 00 00 [21:37:49]Write to MH i2c: E2 08 00 B6 63 80 11 00 00 00 00 00 00 93 [21:37:49]Write i2c OK [21:37:49]MH_I2C_Read... [21:37:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:49]Read from MH i2c: E2 [21:37:49]MH_I2C_Read... [21:37:49]Read from MH i2c: E2 17 00 [21:37:49]MH_I2C_Read... [21:37:49]Read from MH i2c: E2 17 00 B6 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 EA [21:37:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:37:49]wFMCommunicate OK [21:37:49]CreateOFDProtocolMessage done [21:37:49]OFDSenderStorePacket 92676 [21:37:49]StoreOFDPacket docnum=92676 [21:37:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 67 E3 1F 01 7A 1A 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 B6 53 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 04 6A 01 00 35 04 06 00 4A 17 3F 05 EE 08 F6 53 BA B6 81 04 4F 00 [21:37:49]CheckFolder [21:37:49]dirname=/storage/ofd_packets [21:37:49]CheckFolder done [21:37:49]ProducePacketName [21:37:49]name=ofd_packets/00092676 [21:37:49]NVStorageSaveData ofd_packets/00092676 [21:37:49]File name is /storage/ofd_packets/00092676 [21:37:49]Write 325 bytes [21:37:49]NVStorageSaveData done [21:37:49]OFDSenderStorePacket done [21:37:49]KKMCreateOFDPacket done [21:37:49]NVStorageSaveData kkm_last_timestamp [21:37:49]File name is /storage/kkm_last_timestamp [21:37:49]Write 4 bytes [21:37:49]NVStorageSaveData done [21:37:49]ExternCall_PrintAddStr [21:37:49]wPrintStart [21:37:49]Write to MH i2c: 01 00 00 B7 63 1A [21:37:49]Write i2c OK [21:37:49]MH_I2C_Read... [21:37:49]Read from MH i2c: 01 [21:37:49]MH_I2C_Read... [21:37:49]Read from MH i2c: 01 07 00 [21:37:49]MH_I2C_Read... [21:37:49]Read from MH i2c: 01 07 00 B7 63 00 00 00 00 00 FF 0F 2F [21:37:49]RasterBufferAndPrint [21:37:49]line Счет N : (3)127565 [21:37:49]line ИНН: 02508201610067 [21:37:49]line Контрольно-Кассовый Чек [21:37:49]line ПРОДАЖА [21:37:49]line Товар: 48743587 [21:37:49]line Сигареты Winston XStyle Silver [21:37:49]line 1.000 * 144.00 [21:37:49]line = 144.00 [21:37:49]line НДС 12% НСП 1% [21:37:49]line > о реализуемом товаре [21:37:49]line ИТОГО: 144.00 [21:37:49]line НСП 1% : 1.27 [21:37:49]line НДС 12% : 15.29 [21:37:49]line Наличными: 144.00 [21:37:49]line Безнал.: 0.00 [21:37:49]line Место: АЗС № 5 "Партнер Нефть" [21:37:49]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [21:37:49]line СНО: Общий режим [21:37:49]line Чек 124 15.09.2024 21:37 [21:37:49]line Смена: 507 ФФД: 1.0 [21:37:49]line ЗНМ: 03000000022 [21:37:49]line РНМ: 0000000000091423 [21:37:49]line Версия ККМ: 001 [21:37:49]line ФМ: 0000000000874692 [21:37:49]line ФД: 92676 [21:37:49]line ФПД: 81463702056456 [21:37:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T213758&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92676&fm=81463702056456&tin=02508201610067®Number=0000000000091423&sum=14400 [21:37:49]line 0 [21:37:49]OFD Sender: Processing packet 92676 [packets to send 63, broken 62] [21:37:49]ProducePacketName [21:37:49]name=ofd_packets/00092676 [21:37:49]OFD Sender: To server: pG, [21:37:49]CommunicateWithHost lk.salyk.kg:30040 [21:37:49]ConnectInit lk.salyk.kg [21:37:49]written 0, free lines is 4095 [21:37:50]Connected sock=10 [21:37:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 67 E3 1F 01 7A 1A 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 B6 53 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 04 6A 01 00 35 04 06 00 4A 17 3F 05 EE 08 F6 53 BA B6 81 04 4F 00 [21:37:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 8D 09 47 00 06 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 04 6A 01 00 F4 03 04 00 2D FC E6 66 B6 04 01 00 00 A3 B7 64 C4 1B 56 0E F3 [21:37:50]CommunicateWithHost err = 0 [21:37:50]CheckOFDResponse [21:37:50]1017 (14) - 77093643461234 [21:37:50]1041 (16) - 0000000000874692 [21:37:50]1040 (4) - 92676 [21:37:50]1012 (4) - 15.09.2024 15:24 [21:37:50]1206 (1) - 0 [21:37:50]OFD Sender: Remove packet 92676 [21:37:50]ProducePacketName [21:37:50]name=ofd_packets/00092676 [21:37:50]NVStorageDeleteData [21:37:50]Write to MH i2c: 01 00 00 E0 63 43 [21:37:50]Write i2c OK [21:37:50]MH_I2C_Read... [21:37:50]Read from MH i2c: 01 [21:37:50]MH_I2C_Read... [21:37:50]Read from MH i2c: 01 07 00 [21:37:50]MH_I2C_Read... [21:37:50]Read from MH i2c: 01 07 00 E0 63 00 00 00 00 00 FF 0C 55 [21:37:50]RasterBufferAndPrint [21:37:50]line [21:37:50]line [21:37:50]line [21:37:50]line [21:37:50]line [21:37:50]written 0, free lines is 3333 [21:37:50]MH_Cut [21:37:50]Write to MH i2c: D1 01 00 E7 63 01 1C [21:37:50]Write i2c OK [21:37:50]MH_I2C_Read... [21:37:50]Read from MH i2c: D1 [21:37:50]MH_I2C_Read... [21:37:50]Read from MH i2c: D1 01 00 [21:37:50]MH_I2C_Read... [21:37:50]Read from MH i2c: D1 01 00 E7 63 00 1B [21:37:50]Write to MH i2c: 01 00 00 E8 63 4B [21:37:50]Write i2c OK [21:37:50]MH_I2C_Read... [21:37:50]OFD Sender: No OFD packet to send [21:37:51]*** Cut start [21:37:51]*** Purtial cut [21:37:51]*** Stage 1: CUTSNS_PIN = 1 [21:37:53]Read from MH i2c: 01 [21:37:53]MH_I2C_Read... [21:37:53]*** Stop cut motor [21:37:53]*** Cut end [21:37:53]Read from MH i2c: 01 07 00 [21:37:53]MH_I2C_Read... [21:37:53]Read from MH i2c: 01 07 00 E8 63 00 00 00 00 00 FF 0F 60 [21:37:53]process_action close_receipt done [21:37:53]requested_data is exist [21:37:53]produce_requested_data [21:37:53]requested_item fm.sn is exist - process it [21:37:53]wFMCommunicate request_size=4 [21:37:53]MH_SAM_APDU [21:37:53]CAPDU: 80 11 00 00 [21:37:53]Write to MH i2c: E2 08 00 E9 63 80 11 00 00 00 00 00 00 C6 [21:37:53]Write i2c OK [21:37:53]MH_I2C_Read... [21:37:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:53]Read from MH i2c: E2 [21:37:53]MH_I2C_Read... [21:37:53]Read from MH i2c: E2 17 00 [21:37:53]MH_I2C_Read... [21:37:53]Read from MH i2c: E2 17 00 E9 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 1D [21:37:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:37:53]wFMCommunicate OK [21:37:53]requested_item fd.num is exist - process it [21:37:53]SAM_PROTO_GetFieldsCounters [21:37:53]wFMCommunicate request_size=4 [21:37:53]MH_SAM_APDU [21:37:53]CAPDU: 80 13 00 00 [21:37:53]Write to MH i2c: E2 08 00 EA 63 80 13 00 00 00 00 00 00 C9 [21:37:53]Write i2c OK [21:37:53]MH_I2C_Read... [21:37:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:37:53]Read from MH i2c: E2 [21:37:53]MH_I2C_Read... [21:37:53]Read from MH i2c: E2 62 00 [21:37:53]MH_I2C_Read... [21:37:53]Read from MH i2c: E2 62 00 EA 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 04 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [21:37:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 04 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:37:53]wFMCommunicate OK [21:37:53]SAM_PROTO_GetFieldsCounters done [21:37:53]requested_item shift.num is exist - process it [21:37:53]requested_item shift.opened is exist - process it [21:37:53]req_shift_opened [21:37:53]FM_GetShiftState [21:37:53]SAM_PROTO_GetShiftState [21:37:53]wFMCommunicate request_size=4 [21:37:53]MH_SAM_APDU [21:37:53]CAPDU: 80 13 01 00 [21:37:53]Write to MH i2c: E2 08 00 EB 63 80 13 01 00 00 00 00 00 CB [21:37:53]Write i2c OK [21:37:53]MH_I2C_Read... [21:37:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:53]Read from MH i2c: E2 [21:37:53]MH_I2C_Read... [21:37:53]Read from MH i2c: E2 0E 00 [21:37:53]MH_I2C_Read... [21:37:53]Read from MH i2c: E2 0E 00 EB 63 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 4D [21:37:53]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [21:37:53]wFMCommunicate OK [21:37:53]SAM_PROTO_GetShiftState done [21:37:53]FM_GetShiftState done [21:37:53]req_shift_opened done [21:37:53]requested_item shift.open_date is exist - process it [21:37:53]req_shift_open_date [21:37:53]req_shift_open_date done [21:37:53]produce_requested_data done [21:37:53]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92676,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [21:37:53]process_action_free close_receipt [21:37:53]json_value_free [21:37:53]json_value_free done [21:37:53]process_json_proto returns [21:37:53]Send response to host [21:37:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92676,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [21:37:53]free response buf [21:37:53]execute_script done [21:37:53]execute_script returns [21:37:53]free content buf [21:37:53]Sock 8.Close socket [21:37:53]Sock 8.Thread stoped [21:37:55]OFD Sender: No OFD packet to send [21:38:00]OFD Sender: No OFD packet to send [21:38:05]OFD Sender: No OFD packet to send [21:38:10]OFD Sender: No OFD packet to send [21:38:15]OFD Sender: No OFD packet to send [21:38:20]OFD Sender: No OFD packet to send [21:38:25]OFD Sender: No OFD packet to send [21:38:30]OFD Sender: No OFD packet to send [21:38:35]OFD Sender: No OFD packet to send [21:38:40]OFD Sender: No OFD packet to send [21:38:45]OFD Sender: No OFD packet to send [21:38:50]OFD Sender: No OFD packet to send [21:38:55]OFD Sender: No OFD packet to send [21:39:00]OFD Sender: No OFD packet to send [21:39:05]OFD Sender: No OFD packet to send [21:39:10]OFD Sender: No OFD packet to send [21:39:15]OFD Sender: No OFD packet to send [21:39:20]OFD Sender: No OFD packet to send [21:39:25]OFD Sender: No OFD packet to send [21:39:30]OFD Sender: No OFD packet to send [21:39:35]OFD Sender: No OFD packet to send [21:39:40]OFD Sender: No OFD packet to send [21:39:45]OFD Sender: No OFD packet to send [21:39:50]OFD Sender: No OFD packet to send [21:39:55]OFD Sender: No OFD packet to send [21:40:00]OFD Sender: No OFD packet to send [21:40:05]OFD Sender: No OFD packet to send [21:40:10]OFD Sender: No OFD packet to send [21:40:15]OFD Sender: No OFD packet to send [21:40:20]OFD Sender: No OFD packet to send [21:40:25]OFD Sender: No OFD packet to send [21:40:30]OFD Sender: No OFD packet to send [21:40:35]OFD Sender: No OFD packet to send [21:40:40]OFD Sender: No OFD packet to send [21:40:45]OFD Sender: No OFD packet to send [21:40:50]OFD Sender: No OFD packet to send [21:40:55]OFD Sender: No OFD packet to send [21:41:00]OFD Sender: No OFD packet to send [21:41:05]OFD Sender: No OFD packet to send [21:41:10]OFD Sender: No OFD packet to send [21:41:15]OFD Sender: No OFD packet to send [21:41:20]OFD Sender: No OFD packet to send [21:41:25]OFD Sender: No OFD packet to send [21:41:30]OFD Sender: No OFD packet to send [21:41:35]OFD Sender: No OFD packet to send [21:41:40]OFD Sender: No OFD packet to send [21:41:45]OFD Sender: No OFD packet to send [21:41:50]OFD Sender: No OFD packet to send [21:41:55]OFD Sender: No OFD packet to send [21:42:00]OFD Sender: No OFD packet to send [21:42:05]OFD Sender: No OFD packet to send [21:42:10]OFD Sender: No OFD packet to send [21:42:15]OFD Sender: No OFD packet to send [21:42:20]OFD Sender: No OFD packet to send [21:42:25]OFD Sender: No OFD packet to send [21:42:30]OFD Sender: No OFD packet to send [21:42:35]OFD Sender: No OFD packet to send [21:42:40]OFD Sender: No OFD packet to send [21:42:46]OFD Sender: No OFD packet to send [21:42:51]OFD Sender: No OFD packet to send [21:42:56]OFD Sender: No OFD packet to send [21:43:01]OFD Sender: No OFD packet to send [21:43:06]OFD Sender: No OFD packet to send [21:43:11]OFD Sender: No OFD packet to send [21:43:16]OFD Sender: No OFD packet to send [21:43:21]OFD Sender: No OFD packet to send [21:43:26]OFD Sender: No OFD packet to send [21:43:31]OFD Sender: No OFD packet to send [21:43:36]OFD Sender: No OFD packet to send [21:43:41]OFD Sender: No OFD packet to send [21:43:46]OFD Sender: No OFD packet to send [21:43:51]OFD Sender: No OFD packet to send [21:43:56]OFD Sender: No OFD packet to send [21:43:56]accept exits with 9 [21:43:56]New connection [21:43:56]New thread 3066801508 created [21:43:56]Thread 3066658148 joined [21:43:56]Waiting for new connection... [21:43:56] Sock 9.Parse request [21:43:56]Sock 9.Check first char [21:43:56]Sock 9.First char is OK [21:43:56]request: POST /json_proto HTTP/1.0 [21:43:56]Method: POST [21:43:56]URL: /json_proto [21:43:56]Method is POST - this is cgi request [21:43:56]url: /json_proto [21:43:56]query_string will be loaded in cgi processing [21:43:56]execute_cgi json_proto POST (null) [21:43:56]execute_cgi path=json_proto method=POST [21:43:56]POST find Content-Length [21:43:56]Host: 172.17.57.71:8080 [21:43:56]Content-Length: 728 [21:43:56]Content-Type: application/json [21:43:56] [21:43:56]POST finish read [21:43:56]Found Content-Length = 728 [21:43:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127566", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:56]execute_script... [21:43:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127566", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:56]POST & json_proto [21:43:56]process_json_proto [21:43:56]json parsed OK: [21:43:56]protocol is kg_v1.0 [21:43:56]action value=close_receipt [21:43:56]process_action close_receipt [21:43:56]cmd_close_receipt [21:43:56]MH_GetDate [21:43:56]Write to MH i2c: F0 00 00 EC 63 3E [21:43:56]Write i2c OK [21:43:56]MH_I2C_Read... [21:43:56]Read from MH i2c: F0 [21:43:56]MH_I2C_Read... [21:43:56]Read from MH i2c: F0 09 00 [21:43:56]MH_I2C_Read... [21:43:56]Read from MH i2c: F0 09 00 EC 63 00 26 55 E7 66 33 3A A4 66 86 [21:43:56]GetLastDocTimeStamp 1726436278 [21:43:56]current date 1726436646 [21:43:56]FM_GetShiftState [21:43:56]SAM_PROTO_GetShiftState [21:43:56]wFMCommunicate request_size=4 [21:43:56]MH_SAM_APDU [21:43:56]CAPDU: 80 13 01 00 [21:43:56]Write to MH i2c: E2 08 00 ED 63 80 13 01 00 00 00 00 00 CD [21:43:56]Write i2c OK [21:43:56]MH_I2C_Read... [21:43:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:56]Read from MH i2c: E2 [21:43:56]MH_I2C_Read... [21:43:56]Read from MH i2c: E2 0E 00 [21:43:56]MH_I2C_Read... [21:43:56]Read from MH i2c: E2 0E 00 ED 63 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 4F [21:43:56]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [21:43:56]wFMCommunicate OK [21:43:56]SAM_PROTO_GetShiftState done [21:43:56]FM_GetShiftState done [21:43:56]opened in 1726359809 [21:43:56]opened+sec_in_day 1726446209 [21:43:56]quantity*price = 21000 [21:43:56]sum+1 = 21001 [21:43:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.86 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 125 15.09.2024 21:44 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92677 ФПД: 43186539066783 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T214406&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92677&fm=43186539066783&tin=02508201610067®Number=0000000000091423&sum=21000 0 [21:43:57]StoreToDocumentArchive [21:43:57]shift 507 fd 92677 [21:43:57]save to /storage/0507/doc_00092677 [21:43:57]save last doc name /storage/0507/doc_00092677 to /storage/kkm_last_doc_name [21:43:57]save OK [21:43:57]Clear old archive folders... [21:43:57]ProcessDocumentItem done err = 0, tmpTLVsize=308 [21:43:57]tlvbuf is 00FD6210 [21:43:57]SAM_PROTO_ClearQueue [21:43:57]wFMCommunicate request_size=4 [21:43:57]MH_SAM_APDU [21:43:57]CAPDU: 80 09 00 00 [21:43:57]Write to MH i2c: E2 08 00 FA 63 80 09 00 00 00 00 00 00 CF [21:43:57]Write i2c OK [21:43:57]MH_I2C_Read... [21:43:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:43:57]Read from MH i2c: E2 [21:43:57]MH_I2C_Read... [21:43:57]Read from MH i2c: E2 03 00 [21:43:57]MH_I2C_Read... [21:43:57]Read from MH i2c: E2 03 00 FA 63 00 90 00 D1 [21:43:57]RAPDU: 90 00 [21:43:57]wFMCommunicate OK [21:43:57]SAM_PROTO_ClearQueue done [21:43:57]KKMCreateOFDPacket [21:43:57]OFDProtocolAddRootSTLVToBuf [21:43:57]FM_MakeSignedData [21:43:57]FM_MakeSignedData [21:43:57]SAM_PROTO_SignData [21:43:57]wFMCommunicate request_size=4 [21:43:57]MH_SAM_APDU [21:43:57]CAPDU: 80 0D 01 02 [21:43:57]Write to MH i2c: E2 08 00 FB 63 80 0D 01 02 00 00 00 00 D7 [21:43:57]Write i2c OK [21:43:57]MH_I2C_Read... [21:43:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:43:57]Read from MH i2c: E2 [21:43:57]MH_I2C_Read... [21:43:57]Read from MH i2c: E2 03 00 [21:43:57]MH_I2C_Read... [21:43:57]Read from MH i2c: E2 03 00 FB 63 00 90 00 D2 [21:43:57]RAPDU: 90 00 [21:43:57]wFMCommunicate OK [21:43:57]wFMCommunicate request_size=255 [21:43:57]MH_SAM_APDU [21:43:57]CAPDU: 80 0D 02 02 FA 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 26 55 E7 66 0E 04 04 00 FB 01 00 00 B9 [21:43:57]Write to MH i2c: E2 02 01 FC 63 80 0D 02 02 FA 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 26 55 E7 66 0E 04 04 00 FB 01 00 00 B9 00 00 47 [21:43:57]Write i2c OK [21:43:57]MH_I2C_Read... [21:43:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:57]Read from MH i2c: E2 [21:43:57]MH_I2C_Read... [21:43:57]Read from MH i2c: E2 03 00 [21:43:57]MH_I2C_Read... [21:43:57]Read from MH i2c: E2 03 00 FC 63 00 90 00 D3 [21:43:57]RAPDU: 90 00 [21:43:57]wFMCommunicate OK [21:43:57]wFMCommunicate request_size=67 [21:43:57]MH_SAM_APDU [21:43:57]CAPDU: 80 0D 02 02 3E 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 05 6A 01 00 35 04 06 00 27 47 26 51 F5 9F [21:43:57]Write to MH i2c: E2 46 00 FD 63 80 0D 02 02 3E 00 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 05 6A 01 00 35 04 06 00 27 47 26 51 F5 9F 00 00 19 [21:43:57]Write i2c OK [21:43:57]MH_I2C_Read... [21:43:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:57]Read from MH i2c: E2 [21:43:57]MH_I2C_Read... [21:43:57]Read from MH i2c: E2 03 00 [21:43:57]MH_I2C_Read... [21:43:57]Read from MH i2c: E2 03 00 FD 63 00 90 00 D4 [21:43:57]RAPDU: 90 00 [21:43:57]wFMCommunicate OK [21:43:57]wFMCommunicate request_size=4 [21:43:57]MH_SAM_APDU [21:43:57]CAPDU: 80 0D 03 02 [21:43:57]Write to MH i2c: E2 08 00 FE 63 80 0D 03 02 00 00 00 00 DC [21:43:57]Write i2c OK [21:43:57]MH_I2C_Read... [21:43:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:43:57]Read from MH i2c: E2 [21:43:57]MH_I2C_Read... [21:43:57]Read from MH i2c: E2 0B 00 [21:43:57]MH_I2C_Read... [21:43:57]Read from MH i2c: E2 0B 00 FE 63 00 14 2E AB BA AA E7 F0 37 90 00 3C [21:43:57]RAPDU: 14 2E AB BA AA E7 F0 37 90 00 [21:43:57]wFMCommunicate OK [21:43:57]SAM_PROTO_SignData done [21:43:57]FM_MakeSignedData done [21:43:57]CreateOFDProtocolMessage [21:43:57]wFMCommunicate request_size=4 [21:43:57]MH_SAM_APDU [21:43:57]CAPDU: 80 11 00 00 [21:43:57]Write to MH i2c: E2 08 00 FF 63 80 11 00 00 00 00 00 00 DC [21:43:57]Write i2c OK [21:43:57]MH_I2C_Read... [21:43:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:57]Read from MH i2c: E2 [21:43:57]MH_I2C_Read... [21:43:57]Read from MH i2c: E2 17 00 [21:43:57]MH_I2C_Read... [21:43:57]Read from MH i2c: E2 17 00 FF 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 33 [21:43:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:43:57]wFMCommunicate OK [21:43:57]CreateOFDProtocolMessage done [21:43:57]OFDSenderStorePacket 92677 [21:43:57]StoreOFDPacket docnum=92677 [21:43:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 48 01 00 00 0D 49 40 01 5A E5 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 26 55 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 05 6A 01 00 35 04 06 00 27 47 26 51 F5 9F 14 2E AB BA AA E7 F0 37 [21:43:57]CheckFolder [21:43:57]dirname=/storage/ofd_packets [21:43:57]CheckFolder done [21:43:57]ProducePacketName [21:43:57]name=ofd_packets/00092677 [21:43:57]NVStorageSaveData ofd_packets/00092677 [21:43:57]File name is /storage/ofd_packets/00092677 [21:43:57]Write 358 bytes [21:43:57]NVStorageSaveData done [21:43:57]OFDSenderStorePacket done [21:43:57]KKMCreateOFDPacket done [21:43:57]NVStorageSaveData kkm_last_timestamp [21:43:57]File name is /storage/kkm_last_timestamp [21:43:57]Write 4 bytes [21:43:57]NVStorageSaveData done [21:43:57]ExternCall_PrintAddStr [21:43:57]wPrintStart [21:43:57]Write to MH i2c: 01 00 00 00 64 64 [21:43:57]Write i2c OK [21:43:57]MH_I2C_Read... [21:43:57]Read from MH i2c: 01 [21:43:57]MH_I2C_Read... [21:43:57]Read from MH i2c: 01 07 00 [21:43:57]MH_I2C_Read... [21:43:57]Read from MH i2c: 01 07 00 00 64 00 00 00 00 00 FF 0F 79 [21:43:57]RasterBufferAndPrint [21:43:57]line Счет N : (3)127566 [21:43:57]line ИНН: 02508201610067 [21:43:57]line Контрольно-Кассовый Чек [21:43:57]line ПРОДАЖА [21:43:57]line Товар: 5449000027474 [21:43:57]line Напиток FuzeTea зел чай манго,ромашка 1л [21:43:57]line 2.000 * 105.00 [21:43:57]line = 210.00 [21:43:57]line НДС 12% НСП 1% [21:43:57]line > о реализуемом товаре [21:43:57]line ИТОГО: 210.00 [21:43:57]line НСП 1% : 1.86 [21:43:57]line НДС 12% : 22.30 [21:43:57]line Наличными: 210.00 [21:43:57]line Безнал.: 0.00 [21:43:57]line Место: АЗС № 5 "Партнер Нефть" [21:43:57]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [21:43:57]line СНО: Общий режим [21:43:57]line Чек 125 15.09.2024 21:44 [21:43:57]line Смена: 507 ФФД: 1.0 [21:43:57]line ЗНМ: 03000000022 [21:43:57]line РНМ: 0000000000091423 [21:43:57]line Версия ККМ: 001 [21:43:57]line ФМ: 0000000000874692 [21:43:57]line ФД: 92677 [21:43:57]line ФПД: 43186539066783 [21:43:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T214406&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92677&fm=43186539066783&tin=02508201610067®Number=0000000000091423&sum=21000 [21:43:58]line 0 [21:43:58]OFD Sender: Processing packet 92677 [packets to send 63, broken 62] [21:43:58]ProducePacketName [21:43:58]name=ofd_packets/00092677 [21:43:58]OFD Sender: To server: pG, [21:43:58]CommunicateWithHost lk.salyk.kg:30040 [21:43:58]ConnectInit lk.salyk.kg [21:43:58]written 0, free lines is 4095 [21:43:58]Connected sock=10 [21:43:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 48 01 00 00 0D 49 40 01 5A E5 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 26 55 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 05 6A 01 00 35 04 06 00 27 47 26 51 F5 9F 14 2E AB BA AA E7 F0 37 [21:43:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 29 0B 47 00 8D 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 05 6A 01 00 F4 03 04 00 9D FD E6 66 B6 04 01 00 00 DB 12 2E 7E 81 D5 C2 70 [21:43:58]CommunicateWithHost err = 0 [21:43:58]CheckOFDResponse [21:43:58]1017 (14) - 77093643461234 [21:43:58]1041 (16) - 0000000000874692 [21:43:58]1040 (4) - 92677 [21:43:58]1012 (4) - 15.09.2024 15:30 [21:43:58]1206 (1) - 0 [21:43:58]OFD Sender: Remove packet 92677 [21:43:58]ProducePacketName [21:43:58]name=ofd_packets/00092677 [21:43:58]NVStorageDeleteData [21:43:58]Write to MH i2c: 01 00 00 29 64 8D [21:43:58]Write i2c OK [21:43:58]MH_I2C_Read... [21:43:58]Read from MH i2c: 01 [21:43:58]MH_I2C_Read... [21:43:58]Read from MH i2c: 01 07 00 [21:43:58]MH_I2C_Read... [21:43:58]Read from MH i2c: 01 07 00 29 64 00 00 00 00 00 19 0D BA [21:43:58]RasterBufferAndPrint [21:43:58]line [21:43:58]line [21:43:58]line [21:43:58]line [21:43:58]line [21:43:58]written 0, free lines is 3359 [21:43:58]MH_Cut [21:43:58]Write to MH i2c: D1 01 00 30 64 01 66 [21:43:58]Write i2c OK [21:43:58]MH_I2C_Read... [21:43:58]Read from MH i2c: D1 [21:43:58]MH_I2C_Read... [21:43:58]Read from MH i2c: D1 01 00 [21:43:58]MH_I2C_Read... [21:43:58]Read from MH i2c: D1 01 00 30 64 00 65 [21:43:58]Write to MH i2c: 01 00 00 31 64 95 [21:43:58]Write i2c OK [21:43:58]MH_I2C_Read... [21:43:59]OFD Sender: No OFD packet to send [21:43:59]*** Cut start [21:43:59]*** Purtial cut [21:43:59]*** Stage 1: CUTSNS_PIN = 1 [21:44:01]Read from MH i2c: 01 [21:44:01]MH_I2C_Read... [21:44:01]*** Stop cut motor [21:44:01]*** Cut end [21:44:01]Read from MH i2c: 01 07 00 [21:44:01]MH_I2C_Read... [21:44:01]Read from MH i2c: 01 07 00 31 64 00 00 00 00 00 FF 0F AA [21:44:01]process_action close_receipt done [21:44:01]requested_data is exist [21:44:01]produce_requested_data [21:44:01]requested_item fm.sn is exist - process it [21:44:01]wFMCommunicate request_size=4 [21:44:01]MH_SAM_APDU [21:44:01]CAPDU: 80 11 00 00 [21:44:01]Write to MH i2c: E2 08 00 32 64 80 11 00 00 00 00 00 00 10 [21:44:01]Write i2c OK [21:44:01]MH_I2C_Read... [21:44:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:44:01]Read from MH i2c: E2 [21:44:01]MH_I2C_Read... [21:44:01]Read from MH i2c: E2 17 00 [21:44:01]MH_I2C_Read... [21:44:01]Read from MH i2c: E2 17 00 32 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 67 [21:44:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:44:01]wFMCommunicate OK [21:44:01]requested_item fd.num is exist - process it [21:44:01]SAM_PROTO_GetFieldsCounters [21:44:01]wFMCommunicate request_size=4 [21:44:01]MH_SAM_APDU [21:44:01]CAPDU: 80 13 00 00 [21:44:01]Write to MH i2c: E2 08 00 33 64 80 13 00 00 00 00 00 00 13 [21:44:01]Write i2c OK [21:44:01]MH_I2C_Read... [21:44:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:44:01]Read from MH i2c: E2 [21:44:01]MH_I2C_Read... [21:44:01]Read from MH i2c: E2 62 00 [21:44:01]MH_I2C_Read... [21:44:01]Read from MH i2c: E2 62 00 33 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 05 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [21:44:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 05 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:44:01]wFMCommunicate OK [21:44:01]SAM_PROTO_GetFieldsCounters done [21:44:01]requested_item shift.num is exist - process it [21:44:01]requested_item shift.opened is exist - process it [21:44:01]req_shift_opened [21:44:01]FM_GetShiftState [21:44:01]SAM_PROTO_GetShiftState [21:44:01]wFMCommunicate request_size=4 [21:44:01]MH_SAM_APDU [21:44:01]CAPDU: 80 13 01 00 [21:44:01]Write to MH i2c: E2 08 00 34 64 80 13 01 00 00 00 00 00 15 [21:44:01]Write i2c OK [21:44:01]MH_I2C_Read... [21:44:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:44:01]Read from MH i2c: E2 [21:44:01]MH_I2C_Read... [21:44:01]Read from MH i2c: E2 0E 00 [21:44:01]MH_I2C_Read... [21:44:01]Read from MH i2c: E2 0E 00 34 64 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 97 [21:44:01]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [21:44:01]wFMCommunicate OK [21:44:01]SAM_PROTO_GetShiftState done [21:44:01]FM_GetShiftState done [21:44:01]req_shift_opened done [21:44:01]requested_item shift.open_date is exist - process it [21:44:01]req_shift_open_date [21:44:01]req_shift_open_date done [21:44:01]produce_requested_data done [21:44:01]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92677,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [21:44:01]process_action_free close_receipt [21:44:01]json_value_free [21:44:01]json_value_free done [21:44:01]process_json_proto returns [21:44:01]Send response to host [21:44:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92677,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [21:44:01]free response buf [21:44:01]execute_script done [21:44:01]execute_script returns [21:44:01]free content buf [21:44:01]Sock 9.Close socket [21:44:01]Sock 9.Thread stoped [21:44:04]OFD Sender: No OFD packet to send [21:44:09]OFD Sender: No OFD packet to send [21:44:14]OFD Sender: No OFD packet to send [21:44:19]OFD Sender: No OFD packet to send [21:44:24]OFD Sender: No OFD packet to send [21:44:29]OFD Sender: No OFD packet to send [21:44:34]OFD Sender: No OFD packet to send [21:44:39]OFD Sender: No OFD packet to send [21:44:44]OFD Sender: No OFD packet to send [21:44:49]OFD Sender: No OFD packet to send [21:44:54]OFD Sender: No OFD packet to send [21:44:59]OFD Sender: No OFD packet to send [21:45:04]OFD Sender: No OFD packet to send [21:45:09]OFD Sender: No OFD packet to send [21:45:14]OFD Sender: No OFD packet to send [21:45:19]OFD Sender: No OFD packet to send [21:45:24]OFD Sender: No OFD packet to send [21:45:29]OFD Sender: No OFD packet to send [21:45:34]OFD Sender: No OFD packet to send [21:45:39]OFD Sender: No OFD packet to send [21:45:44]OFD Sender: No OFD packet to send [21:45:49]OFD Sender: No OFD packet to send [21:45:54]OFD Sender: No OFD packet to send [21:45:59]OFD Sender: No OFD packet to send [21:46:04]OFD Sender: No OFD packet to send [21:46:09]OFD Sender: No OFD packet to send [21:46:14]OFD Sender: No OFD packet to send [21:46:19]OFD Sender: No OFD packet to send [21:46:24]OFD Sender: No OFD packet to send [21:46:29]OFD Sender: No OFD packet to send [21:46:34]OFD Sender: No OFD packet to send [21:46:39]OFD Sender: No OFD packet to send [21:46:44]OFD Sender: No OFD packet to send [21:46:49]OFD Sender: No OFD packet to send [21:46:54]OFD Sender: No OFD packet to send [21:46:59]OFD Sender: No OFD packet to send [21:47:04]OFD Sender: No OFD packet to send [21:47:09]OFD Sender: No OFD packet to send [21:47:14]OFD Sender: No OFD packet to send [21:47:19]OFD Sender: No OFD packet to send [21:47:24]OFD Sender: No OFD packet to send [21:47:29]OFD Sender: No OFD packet to send [21:47:34]OFD Sender: No OFD packet to send [21:47:39]OFD Sender: No OFD packet to send [21:47:44]OFD Sender: No OFD packet to send [21:47:49]OFD Sender: No OFD packet to send [21:47:54]OFD Sender: No OFD packet to send [21:47:59]OFD Sender: No OFD packet to send [21:48:04]OFD Sender: No OFD packet to send [21:48:09]OFD Sender: No OFD packet to send [21:48:14]OFD Sender: No OFD packet to send [21:48:19]OFD Sender: No OFD packet to send [21:48:24]OFD Sender: No OFD packet to send [21:48:29]OFD Sender: No OFD packet to send [21:48:34]OFD Sender: No OFD packet to send [21:48:39]OFD Sender: No OFD packet to send [21:48:44]OFD Sender: No OFD packet to send [21:48:49]OFD Sender: No OFD packet to send [21:48:54]OFD Sender: No OFD packet to send [21:48:59]OFD Sender: No OFD packet to send [21:49:04]OFD Sender: No OFD packet to send [21:49:09]OFD Sender: No OFD packet to send [21:49:14]OFD Sender: No OFD packet to send [21:49:19]OFD Sender: No OFD packet to send [21:49:24]OFD Sender: No OFD packet to send [21:49:29]OFD Sender: No OFD packet to send [21:49:34]OFD Sender: No OFD packet to send [21:49:39]OFD Sender: No OFD packet to send [21:49:44]OFD Sender: No OFD packet to send [21:49:49]OFD Sender: No OFD packet to send [21:49:54]OFD Sender: No OFD packet to send [21:49:59]OFD Sender: No OFD packet to send [21:50:04]OFD Sender: No OFD packet to send [21:50:09]OFD Sender: No OFD packet to send [21:50:14]OFD Sender: No OFD packet to send [21:50:19]OFD Sender: No OFD packet to send [21:50:24]OFD Sender: No OFD packet to send [21:50:29]OFD Sender: No OFD packet to send [21:50:34]OFD Sender: No OFD packet to send [21:50:39]OFD Sender: No OFD packet to send [21:50:44]OFD Sender: No OFD packet to send [21:50:49]OFD Sender: No OFD packet to send [21:50:54]OFD Sender: No OFD packet to send [21:50:59]OFD Sender: No OFD packet to send [21:51:04]OFD Sender: No OFD packet to send [21:51:09]OFD Sender: No OFD packet to send [21:51:14]OFD Sender: No OFD packet to send [21:51:19]OFD Sender: No OFD packet to send [21:51:24]OFD Sender: No OFD packet to send [21:51:29]OFD Sender: No OFD packet to send [21:51:34]OFD Sender: No OFD packet to send [21:51:39]OFD Sender: No OFD packet to send [21:51:44]OFD Sender: No OFD packet to send [21:51:49]OFD Sender: No OFD packet to send [21:51:54]OFD Sender: No OFD packet to send [21:51:59]OFD Sender: No OFD packet to send [21:52:04]OFD Sender: No OFD packet to send [21:52:09]OFD Sender: No OFD packet to send [21:52:14]OFD Sender: No OFD packet to send [21:52:19]OFD Sender: No OFD packet to send [21:52:24]OFD Sender: No OFD packet to send [21:52:29]OFD Sender: No OFD packet to send [21:52:34]OFD Sender: No OFD packet to send [21:52:39]OFD Sender: No OFD packet to send [21:52:44]OFD Sender: No OFD packet to send [21:52:49]OFD Sender: No OFD packet to send [21:52:54]OFD Sender: No OFD packet to send [21:52:59]OFD Sender: No OFD packet to send [21:53:04]OFD Sender: No OFD packet to send [21:53:09]OFD Sender: No OFD packet to send [21:53:14]OFD Sender: No OFD packet to send [21:53:19]OFD Sender: No OFD packet to send [21:53:24]OFD Sender: No OFD packet to send [21:53:29]OFD Sender: No OFD packet to send [21:53:34]OFD Sender: No OFD packet to send [21:53:39]OFD Sender: No OFD packet to send [21:53:44]OFD Sender: No OFD packet to send [21:53:49]OFD Sender: No OFD packet to send [21:53:54]OFD Sender: No OFD packet to send [21:53:59]OFD Sender: No OFD packet to send [21:54:04]OFD Sender: No OFD packet to send [21:54:09]OFD Sender: No OFD packet to send [21:54:14]OFD Sender: No OFD packet to send [21:54:19]OFD Sender: No OFD packet to send [21:54:24]OFD Sender: No OFD packet to send [21:54:29]OFD Sender: No OFD packet to send [21:54:34]OFD Sender: No OFD packet to send [21:54:39]OFD Sender: No OFD packet to send [21:54:44]OFD Sender: No OFD packet to send [21:54:49]OFD Sender: No OFD packet to send [21:54:54]OFD Sender: No OFD packet to send [21:54:59]OFD Sender: No OFD packet to send [21:55:04]OFD Sender: No OFD packet to send [21:55:09]OFD Sender: No OFD packet to send [21:55:14]OFD Sender: No OFD packet to send [21:55:19]OFD Sender: No OFD packet to send [21:55:24]OFD Sender: No OFD packet to send [21:55:29]OFD Sender: No OFD packet to send [21:55:34]OFD Sender: No OFD packet to send [21:55:39]OFD Sender: No OFD packet to send [21:55:44]OFD Sender: No OFD packet to send [21:55:49]OFD Sender: No OFD packet to send [21:55:54]OFD Sender: No OFD packet to send [21:55:59]OFD Sender: No OFD packet to send [21:56:04]OFD Sender: No OFD packet to send [21:56:09]OFD Sender: No OFD packet to send [21:56:14]OFD Sender: No OFD packet to send [21:56:19]OFD Sender: No OFD packet to send [21:56:24]OFD Sender: No OFD packet to send [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:39]OFD Sender: No OFD packet to send [21:56:44]OFD Sender: No OFD packet to send [21:56:49]OFD Sender: No OFD packet to send [21:56:54]OFD Sender: No OFD packet to send [21:56:59]OFD Sender: No OFD packet to send [21:57:04]OFD Sender: No OFD packet to send [21:57:09]OFD Sender: No OFD packet to send [21:57:14]OFD Sender: No OFD packet to send [21:57:19]OFD Sender: No OFD packet to send [21:57:24]OFD Sender: No OFD packet to send [21:57:29]OFD Sender: No OFD packet to send [21:57:34]OFD Sender: No OFD packet to send [21:57:39]OFD Sender: No OFD packet to send [21:57:44]OFD Sender: No OFD packet to send [21:57:49]OFD Sender: No OFD packet to send [21:57:54]OFD Sender: No OFD packet to send [21:57:59]OFD Sender: No OFD packet to send [21:58:04]OFD Sender: No OFD packet to send [21:58:09]OFD Sender: No OFD packet to send [21:58:14]OFD Sender: No OFD packet to send [21:58:19]OFD Sender: No OFD packet to send [21:58:24]OFD Sender: No OFD packet to send [21:58:29]OFD Sender: No OFD packet to send [21:58:34]OFD Sender: No OFD packet to send [21:58:39]OFD Sender: No OFD packet to send [21:58:44]OFD Sender: No OFD packet to send [21:58:49]OFD Sender: No OFD packet to send [21:58:54]OFD Sender: No OFD packet to send [21:58:59]OFD Sender: No OFD packet to send [21:59:04]OFD Sender: No OFD packet to send [21:59:09]OFD Sender: No OFD packet to send [21:59:14]OFD Sender: No OFD packet to send [21:59:19]OFD Sender: No OFD packet to send [21:59:24]OFD Sender: No OFD packet to send [21:59:29]OFD Sender: No OFD packet to send [21:59:34]OFD Sender: No OFD packet to send [21:59:39]OFD Sender: No OFD packet to send [21:59:44]OFD Sender: No OFD packet to send [21:59:49]OFD Sender: No OFD packet to send [21:59:54]OFD Sender: No OFD packet to send [21:59:59]OFD Sender: No OFD packet to send [22:00:04]OFD Sender: No OFD packet to send [22:00:09]OFD Sender: No OFD packet to send [22:00:14]OFD Sender: No OFD packet to send [22:00:19]OFD Sender: No OFD packet to send [22:00:24]OFD Sender: No OFD packet to send [22:00:29]OFD Sender: No OFD packet to send [22:00:34]OFD Sender: No OFD packet to send [22:00:39]OFD Sender: No OFD packet to send [22:00:44]OFD Sender: No OFD packet to send [22:00:49]OFD Sender: No OFD packet to send [22:00:54]OFD Sender: No OFD packet to send [22:01:00]OFD Sender: No OFD packet to send [22:01:05]OFD Sender: No OFD packet to send [22:01:10]OFD Sender: No OFD packet to send [22:01:15]OFD Sender: No OFD packet to send [22:01:20]OFD Sender: No OFD packet to send [22:01:25]OFD Sender: No OFD packet to send [22:01:30]OFD Sender: No OFD packet to send [22:01:35]OFD Sender: No OFD packet to send [22:01:40]OFD Sender: No OFD packet to send [22:01:45]OFD Sender: No OFD packet to send [22:01:50]OFD Sender: No OFD packet to send [22:01:55]OFD Sender: No OFD packet to send [22:02:00]OFD Sender: No OFD packet to send [22:02:05]OFD Sender: No OFD packet to send [22:02:10]OFD Sender: No OFD packet to send [22:02:15]OFD Sender: No OFD packet to send [22:02:20]OFD Sender: No OFD packet to send [22:02:25]OFD Sender: No OFD packet to send [22:02:30]OFD Sender: No OFD packet to send [22:02:35]OFD Sender: No OFD packet to send [22:02:40]OFD Sender: No OFD packet to send [22:02:45]OFD Sender: No OFD packet to send [22:02:50]OFD Sender: No OFD packet to send [22:02:55]OFD Sender: No OFD packet to send [22:03:00]OFD Sender: No OFD packet to send [22:03:05]OFD Sender: No OFD packet to send [22:03:10]OFD Sender: No OFD packet to send [22:03:15]OFD Sender: No OFD packet to send [22:03:20]OFD Sender: No OFD packet to send [22:03:25]OFD Sender: No OFD packet to send [22:03:30]OFD Sender: No OFD packet to send [22:03:35]OFD Sender: No OFD packet to send [22:03:40]OFD Sender: No OFD packet to send [22:03:45]OFD Sender: No OFD packet to send [22:03:50]OFD Sender: No OFD packet to send [22:03:55]OFD Sender: No OFD packet to send [22:04:00]OFD Sender: No OFD packet to send [22:04:05]OFD Sender: No OFD packet to send [22:04:10]OFD Sender: No OFD packet to send [22:04:15]OFD Sender: No OFD packet to send [22:04:20]OFD Sender: No OFD packet to send [22:04:25]OFD Sender: No OFD packet to send [22:04:30]OFD Sender: No OFD packet to send [22:04:35]OFD Sender: No OFD packet to send [22:04:40]OFD Sender: No OFD packet to send [22:04:45]OFD Sender: No OFD packet to send [22:04:50]OFD Sender: No OFD packet to send [22:04:55]OFD Sender: No OFD packet to send [22:05:00]OFD Sender: No OFD packet to send [22:05:05]OFD Sender: No OFD packet to send [22:05:10]OFD Sender: No OFD packet to send [22:05:15]OFD Sender: No OFD packet to send [22:05:20]OFD Sender: No OFD packet to send [22:05:25]OFD Sender: No OFD packet to send [22:05:30]OFD Sender: No OFD packet to send [22:05:35]OFD Sender: No OFD packet to send [22:05:40]OFD Sender: No OFD packet to send [22:05:45]OFD Sender: No OFD packet to send [22:05:50]OFD Sender: No OFD packet to send [22:05:55]OFD Sender: No OFD packet to send [22:06:00]OFD Sender: No OFD packet to send [22:06:05]OFD Sender: No OFD packet to send [22:06:10]OFD Sender: No OFD packet to send [22:06:15]OFD Sender: No OFD packet to send [22:06:20]OFD Sender: No OFD packet to send [22:06:25]OFD Sender: No OFD packet to send [22:06:30]OFD Sender: No OFD packet to send [22:06:35]OFD Sender: No OFD packet to send [22:06:40]OFD Sender: No OFD packet to send [22:06:45]OFD Sender: No OFD packet to send [22:06:50]OFD Sender: No OFD packet to send [22:06:55]OFD Sender: No OFD packet to send [22:07:00]OFD Sender: No OFD packet to send [22:07:05]OFD Sender: No OFD packet to send [22:07:10]OFD Sender: No OFD packet to send [22:07:15]OFD Sender: No OFD packet to send [22:07:20]OFD Sender: No OFD packet to send [22:07:25]OFD Sender: No OFD packet to send [22:07:30]OFD Sender: No OFD packet to send [22:07:35]OFD Sender: No OFD packet to send [22:07:40]OFD Sender: No OFD packet to send [22:07:45]OFD Sender: No OFD packet to send [22:07:50]OFD Sender: No OFD packet to send [22:07:55]OFD Sender: No OFD packet to send [22:08:00]OFD Sender: No OFD packet to send [22:08:05]OFD Sender: No OFD packet to send [22:08:10]OFD Sender: No OFD packet to send [22:08:15]OFD Sender: No OFD packet to send [22:08:20]OFD Sender: No OFD packet to send [22:08:25]OFD Sender: No OFD packet to send [22:08:30]OFD Sender: No OFD packet to send [22:08:35]OFD Sender: No OFD packet to send [22:08:40]OFD Sender: No OFD packet to send [22:08:45]OFD Sender: No OFD packet to send [22:08:50]OFD Sender: No OFD packet to send [22:08:55]OFD Sender: No OFD packet to send [22:09:00]OFD Sender: No OFD packet to send [22:09:05]OFD Sender: No OFD packet to send [22:09:10]OFD Sender: No OFD packet to send [22:09:15]OFD Sender: No OFD packet to send [22:09:20]OFD Sender: No OFD packet to send [22:09:25]OFD Sender: No OFD packet to send [22:09:30]OFD Sender: No OFD packet to send [22:09:35]OFD Sender: No OFD packet to send [22:09:40]OFD Sender: No OFD packet to send [22:09:45]OFD Sender: No OFD packet to send [22:09:50]OFD Sender: No OFD packet to send [22:09:55]OFD Sender: No OFD packet to send [22:10:00]OFD Sender: No OFD packet to send [22:10:05]OFD Sender: No OFD packet to send [22:10:10]OFD Sender: No OFD packet to send [22:10:15]OFD Sender: No OFD packet to send [22:10:20]OFD Sender: No OFD packet to send [22:10:25]OFD Sender: No OFD packet to send [22:10:30]OFD Sender: No OFD packet to send [22:10:35]OFD Sender: No OFD packet to send [22:10:40]OFD Sender: No OFD packet to send [22:10:45]OFD Sender: No OFD packet to send [22:10:50]OFD Sender: No OFD packet to send [22:10:55]OFD Sender: No OFD packet to send [22:11:00]OFD Sender: No OFD packet to send [22:11:05]OFD Sender: No OFD packet to send [22:11:10]OFD Sender: No OFD packet to send [22:11:15]OFD Sender: No OFD packet to send [22:11:20]OFD Sender: No OFD packet to send [22:11:25]OFD Sender: No OFD packet to send [22:11:30]OFD Sender: No OFD packet to send [22:11:35]OFD Sender: No OFD packet to send [22:11:40]OFD Sender: No OFD packet to send [22:11:45]OFD Sender: No OFD packet to send [22:11:50]OFD Sender: No OFD packet to send [22:11:55]OFD Sender: No OFD packet to send [22:12:00]OFD Sender: No OFD packet to send [22:12:05]OFD Sender: No OFD packet to send [22:12:10]OFD Sender: No OFD packet to send [22:12:15]OFD Sender: No OFD packet to send [22:12:20]OFD Sender: No OFD packet to send [22:12:25]OFD Sender: No OFD packet to send [22:12:30]OFD Sender: No OFD packet to send [22:12:35]OFD Sender: No OFD packet to send [22:12:40]OFD Sender: No OFD packet to send [22:12:45]OFD Sender: No OFD packet to send [22:12:50]OFD Sender: No OFD packet to send [22:12:55]OFD Sender: No OFD packet to send [22:13:00]OFD Sender: No OFD packet to send [22:13:05]OFD Sender: No OFD packet to send [22:13:10]OFD Sender: No OFD packet to send [22:13:15]OFD Sender: No OFD packet to send [22:13:20]OFD Sender: No OFD packet to send [22:13:25]OFD Sender: No OFD packet to send [22:13:30]OFD Sender: No OFD packet to send [22:13:35]OFD Sender: No OFD packet to send [22:13:40]OFD Sender: No OFD packet to send [22:13:45]OFD Sender: No OFD packet to send [22:13:50]OFD Sender: No OFD packet to send [22:13:55]OFD Sender: No OFD packet to send [22:14:00]OFD Sender: No OFD packet to send [22:14:05]OFD Sender: No OFD packet to send [22:14:10]OFD Sender: No OFD packet to send [22:14:15]OFD Sender: No OFD packet to send [22:14:20]OFD Sender: No OFD packet to send [22:14:25]OFD Sender: No OFD packet to send [22:14:30]OFD Sender: No OFD packet to send [22:14:35]OFD Sender: No OFD packet to send [22:14:40]OFD Sender: No OFD packet to send [22:14:45]OFD Sender: No OFD packet to send [22:14:50]OFD Sender: No OFD packet to send [22:14:55]OFD Sender: No OFD packet to send [22:15:00]OFD Sender: No OFD packet to send [22:15:05]OFD Sender: No OFD packet to send [22:15:10]OFD Sender: No OFD packet to send [22:15:15]OFD Sender: No OFD packet to send [22:15:20]OFD Sender: No OFD packet to send [22:15:25]OFD Sender: No OFD packet to send [22:15:30]OFD Sender: No OFD packet to send [22:15:35]OFD Sender: No OFD packet to send [22:15:40]OFD Sender: No OFD packet to send [22:15:45]OFD Sender: No OFD packet to send [22:15:50]OFD Sender: No OFD packet to send [22:15:55]OFD Sender: No OFD packet to send [22:16:00]OFD Sender: No OFD packet to send [22:16:04]accept exits with 8 [22:16:04]New connection [22:16:04]New thread 3066658148 created [22:16:04]Thread 3066801508 joined [22:16:04]Waiting for new connection... [22:16:04] Sock 8.Parse request [22:16:04]Sock 8.Check first char [22:16:04]Sock 8.First char is OK [22:16:04]request: POST /json_proto HTTP/1.0 [22:16:04]Method: POST [22:16:04]URL: /json_proto [22:16:04]Method is POST - this is cgi request [22:16:04]url: /json_proto [22:16:04]query_string will be loaded in cgi processing [22:16:04]execute_cgi json_proto POST (null) [22:16:04]execute_cgi path=json_proto method=POST [22:16:04]POST find Content-Length [22:16:04]Host: 172.17.57.71:8080 [22:16:04]Content-Length: 622 [22:16:04]Content-Type: application/json [22:16:04] [22:16:04]POST finish read [22:16:04]Found Content-Length = 622 [22:16:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127567", "tax_sys" : 0, "items" : [ { "code": "4640030091621", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange W", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:04]execute_script... [22:16:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127567", "tax_sys" : 0, "items" : [ { "code": "4640030091621", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange W", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:04]POST & json_proto [22:16:04]process_json_proto [22:16:04]json parsed OK: [22:16:04]protocol is kg_v1.0 [22:16:04]action value=close_receipt [22:16:04]process_action close_receipt [22:16:04]cmd_close_receipt [22:16:04]MH_GetDate [22:16:04]Write to MH i2c: F0 00 00 35 64 88 [22:16:04]Write i2c OK [22:16:04]MH_I2C_Read... [22:16:04]Read from MH i2c: F0 [22:16:04]MH_I2C_Read... [22:16:04]Read from MH i2c: F0 09 00 [22:16:04]MH_I2C_Read... [22:16:04]Read from MH i2c: F0 09 00 35 64 00 AF 5C E7 66 33 3A A4 66 60 [22:16:04]GetLastDocTimeStamp 1726436646 [22:16:04]current date 1726438575 [22:16:04]FM_GetShiftState [22:16:04]SAM_PROTO_GetShiftState [22:16:04]wFMCommunicate request_size=4 [22:16:04]MH_SAM_APDU [22:16:04]CAPDU: 80 13 01 00 [22:16:04]Write to MH i2c: E2 08 00 36 64 80 13 01 00 00 00 00 00 17 [22:16:04]Write i2c OK [22:16:04]MH_I2C_Read... [22:16:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:04]Read from MH i2c: E2 [22:16:04]MH_I2C_Read... [22:16:04]Read from MH i2c: E2 0E 00 [22:16:04]MH_I2C_Read... [22:16:04]Read from MH i2c: E2 0E 00 36 64 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 99 [22:16:04]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [22:16:04]wFMCommunicate OK [22:16:04]SAM_PROTO_GetShiftState done [22:16:04]FM_GetShiftState done [22:16:04]opened in 1726359809 [22:16:04]opened+sec_in_day 1726446209 [22:16:04]quantity*price = 15000 [22:16:04]sum+1 = 15001 [22:16:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 126 15.09.2024 22:16 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92678 ФПД: 28568716887108 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T221615&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92678&fm=28568716887108&tin=02508201610067®Number=0000000000091423&sum=15000 0 [22:16:06]StoreToDocumentArchive [22:16:06]shift 507 fd 92678 [22:16:06]save to /storage/0507/doc_00092678 [22:16:06]save last doc name /storage/0507/doc_00092678 to /storage/kkm_last_doc_name [22:16:06]save OK [22:16:06]Clear old archive folders... [22:16:06]ProcessDocumentItem done err = 0, tmpTLVsize=274 [22:16:06]tlvbuf is 0108E080 [22:16:06]SAM_PROTO_ClearQueue [22:16:06]wFMCommunicate request_size=4 [22:16:06]MH_SAM_APDU [22:16:06]CAPDU: 80 09 00 00 [22:16:06]Write to MH i2c: E2 08 00 43 64 80 09 00 00 00 00 00 00 19 [22:16:06]Write i2c OK [22:16:06]MH_I2C_Read... [22:16:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:16:06]Read from MH i2c: E2 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: E2 03 00 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: E2 03 00 43 64 00 90 00 1B [22:16:06]RAPDU: 90 00 [22:16:06]wFMCommunicate OK [22:16:06]SAM_PROTO_ClearQueue done [22:16:06]KKMCreateOFDPacket [22:16:06]OFDProtocolAddRootSTLVToBuf [22:16:06]FM_MakeSignedData [22:16:06]FM_MakeSignedData [22:16:06]SAM_PROTO_SignData [22:16:06]wFMCommunicate request_size=4 [22:16:06]MH_SAM_APDU [22:16:06]CAPDU: 80 0D 01 02 [22:16:06]Write to MH i2c: E2 08 00 44 64 80 0D 01 02 00 00 00 00 21 [22:16:06]Write i2c OK [22:16:06]MH_I2C_Read... [22:16:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:16:06]Read from MH i2c: E2 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: E2 03 00 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: E2 03 00 44 64 00 90 00 1C [22:16:06]RAPDU: 90 00 [22:16:06]wFMCommunicate OK [22:16:06]wFMCommunicate request_size=255 [22:16:06]MH_SAM_APDU [22:16:06]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 32 31 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 57 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 AF 5C E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 [22:16:06]Write to MH i2c: E2 02 01 45 64 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 32 31 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 57 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 AF 5C E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 00 00 8E [22:16:06]Write i2c OK [22:16:06]MH_I2C_Read... [22:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:06]Read from MH i2c: E2 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: E2 03 00 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: E2 03 00 45 64 00 90 00 1D [22:16:06]RAPDU: 90 00 [22:16:06]wFMCommunicate OK [22:16:06]wFMCommunicate request_size=33 [22:16:06]MH_SAM_APDU [22:16:06]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 39 32 10 04 04 00 06 6A 01 00 35 04 06 00 19 FB AC 38 C4 44 [22:16:06]Write to MH i2c: E2 24 00 46 64 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 39 32 10 04 04 00 06 6A 01 00 35 04 06 00 19 FB AC 38 C4 44 00 00 28 [22:16:06]Write i2c OK [22:16:06]MH_I2C_Read... [22:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:06]Read from MH i2c: E2 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: E2 03 00 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: E2 03 00 46 64 00 90 00 1E [22:16:06]RAPDU: 90 00 [22:16:06]wFMCommunicate OK [22:16:06]wFMCommunicate request_size=4 [22:16:06]MH_SAM_APDU [22:16:06]CAPDU: 80 0D 03 02 [22:16:06]Write to MH i2c: E2 08 00 47 64 80 0D 03 02 00 00 00 00 26 [22:16:06]Write i2c OK [22:16:06]MH_I2C_Read... [22:16:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:16:06]Read from MH i2c: E2 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: E2 0B 00 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: E2 0B 00 47 64 00 D4 42 2C 22 CB 8F 8F DD 90 00 51 [22:16:06]RAPDU: D4 42 2C 22 CB 8F 8F DD 90 00 [22:16:06]wFMCommunicate OK [22:16:06]SAM_PROTO_SignData done [22:16:06]FM_MakeSignedData done [22:16:06]CreateOFDProtocolMessage [22:16:06]wFMCommunicate request_size=4 [22:16:06]MH_SAM_APDU [22:16:06]CAPDU: 80 11 00 00 [22:16:06]Write to MH i2c: E2 08 00 48 64 80 11 00 00 00 00 00 00 26 [22:16:06]Write i2c OK [22:16:06]MH_I2C_Read... [22:16:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:06]Read from MH i2c: E2 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: E2 17 00 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: E2 17 00 48 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 7D [22:16:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [22:16:06]wFMCommunicate OK [22:16:06]CreateOFDProtocolMessage done [22:16:06]OFDSenderStorePacket 92678 [22:16:06]StoreOFDPacket docnum=92678 [22:16:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 26 01 00 00 93 E6 1E 01 D6 3E 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 32 31 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 57 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 AF 5C E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 06 6A 01 00 35 04 06 00 19 FB AC 38 C4 44 D4 42 2C 22 CB 8F 8F DD [22:16:06]CheckFolder [22:16:06]dirname=/storage/ofd_packets [22:16:06]CheckFolder done [22:16:06]ProducePacketName [22:16:06]name=ofd_packets/00092678 [22:16:06]NVStorageSaveData ofd_packets/00092678 [22:16:06]File name is /storage/ofd_packets/00092678 [22:16:06]Write 324 bytes [22:16:06]NVStorageSaveData done [22:16:06]OFDSenderStorePacket done [22:16:06]KKMCreateOFDPacket done [22:16:06]NVStorageSaveData kkm_last_timestamp [22:16:06]File name is /storage/kkm_last_timestamp [22:16:06]Write 4 bytes [22:16:06]NVStorageSaveData done [22:16:06]ExternCall_PrintAddStr [22:16:06]wPrintStart [22:16:06]Write to MH i2c: 01 00 00 49 64 AD [22:16:06]Write i2c OK [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: 01 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: 01 07 00 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: 01 07 00 49 64 00 00 00 00 00 FF 0F C2 [22:16:06]RasterBufferAndPrint [22:16:06]line Счет N : (3)127567 [22:16:06]line ИНН: 02508201610067 [22:16:06]line Контрольно-Кассовый Чек [22:16:06]line ПРОДАЖА [22:16:06]line Товар: 4640030091621 [22:16:06]line Сигареты ESSE Exchange W [22:16:06]line 1.000 * 150.00 [22:16:06]line = 150.00 [22:16:06]line НДС 12% НСП 1% [22:16:06]line > о реализуемом товаре [22:16:06]line ИТОГО: 150.00 [22:16:06]line НСП 1% : 1.33 [22:16:06]line НДС 12% : 15.93 [22:16:06]line Наличными: 150.00 [22:16:06]line Безнал.: 0.00 [22:16:06]line Место: АЗС № 5 "Партнер Нефть" [22:16:06]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [22:16:06]line СНО: Общий режим [22:16:06]line Чек 126 15.09.2024 22:16 [22:16:06]line Смена: 507 ФФД: 1.0 [22:16:06]line ЗНМ: 03000000022 [22:16:06]line РНМ: 0000000000091423 [22:16:06]line Версия ККМ: 001 [22:16:06]line ФМ: 0000000000874692 [22:16:06]line ФД: 92678 [22:16:06]line ФПД: 28568716887108 [22:16:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T221615&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92678&fm=28568716887108&tin=02508201610067®Number=0000000000091423&sum=15000 [22:16:06]line 0 [22:16:06]written 0, free lines is 4095 [22:16:06]OFD Sender: Processing packet 92678 [packets to send 63, broken 62] [22:16:06]ProducePacketName [22:16:06]name=ofd_packets/00092678 [22:16:06]OFD Sender: To server: pG, [22:16:06]CommunicateWithHost lk.salyk.kg:30040 [22:16:06]ConnectInit lk.salyk.kg [22:16:07]Connected sock=10 [22:16:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 26 01 00 00 93 E6 1E 01 D6 3E 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 32 31 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 57 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 AF 5C E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 06 6A 01 00 35 04 06 00 19 FB AC 38 C4 44 D4 42 2C 22 CB 8F 8F DD [22:16:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 2B 9C 47 00 90 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 06 6A 01 00 F4 03 04 00 26 05 E7 66 B6 04 01 00 00 26 80 74 89 66 BE 04 AC [22:16:07]CommunicateWithHost err = 0 [22:16:07]CheckOFDResponse [22:16:07]1017 (14) - 77093643461234 [22:16:07]1041 (16) - 0000000000874692 [22:16:07]1040 (4) - 92678 [22:16:07]1012 (4) - 15.09.2024 16:02 [22:16:07]1206 (1) - 0 [22:16:07]OFD Sender: Remove packet 92678 [22:16:07]ProducePacketName [22:16:07]name=ofd_packets/00092678 [22:16:07]NVStorageDeleteData [22:16:07]Write to MH i2c: 01 00 00 71 64 D5 [22:16:07]Write i2c OK [22:16:07]MH_I2C_Read... [22:16:07]Read from MH i2c: 01 [22:16:07]MH_I2C_Read... [22:16:07]Read from MH i2c: 01 07 00 [22:16:07]MH_I2C_Read... [22:16:07]Read from MH i2c: 01 07 00 71 64 00 00 00 00 00 21 0D 0A [22:16:07]RasterBufferAndPrint [22:16:07]line [22:16:07]line [22:16:07]line [22:16:07]line [22:16:07]line [22:16:07]written 0, free lines is 3368 [22:16:07]MH_Cut [22:16:07]Write to MH i2c: D1 01 00 78 64 01 AE [22:16:07]Write i2c OK [22:16:07]MH_I2C_Read... [22:16:07]Read from MH i2c: D1 [22:16:07]MH_I2C_Read... [22:16:07]Read from MH i2c: D1 01 00 [22:16:07]MH_I2C_Read... [22:16:07]Read from MH i2c: D1 01 00 78 64 00 AD [22:16:07]Write to MH i2c: 01 00 00 79 64 DD [22:16:07]Write i2c OK [22:16:07]MH_I2C_Read... [22:16:07]OFD Sender: No OFD packet to send [22:16:08]*** Cut start [22:16:08]*** Purtial cut [22:16:08]*** Stage 1: CUTSNS_PIN = 1 [22:16:10]Read from MH i2c: 01 [22:16:10]MH_I2C_Read... [22:16:10]*** Stop cut motor [22:16:10]*** Cut end [22:16:10]Read from MH i2c: 01 07 00 [22:16:10]MH_I2C_Read... [22:16:10]Read from MH i2c: 01 07 00 79 64 00 00 00 00 00 FF 0F F2 [22:16:10]process_action close_receipt done [22:16:10]requested_data is exist [22:16:10]produce_requested_data [22:16:10]requested_item fm.sn is exist - process it [22:16:10]wFMCommunicate request_size=4 [22:16:10]MH_SAM_APDU [22:16:10]CAPDU: 80 11 00 00 [22:16:10]Write to MH i2c: E2 08 00 7A 64 80 11 00 00 00 00 00 00 58 [22:16:10]Write i2c OK [22:16:10]MH_I2C_Read... [22:16:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:10]Read from MH i2c: E2 [22:16:10]MH_I2C_Read... [22:16:10]Read from MH i2c: E2 17 00 [22:16:10]MH_I2C_Read... [22:16:10]Read from MH i2c: E2 17 00 7A 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 AF [22:16:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [22:16:10]wFMCommunicate OK [22:16:10]requested_item fd.num is exist - process it [22:16:10]SAM_PROTO_GetFieldsCounters [22:16:10]wFMCommunicate request_size=4 [22:16:10]MH_SAM_APDU [22:16:10]CAPDU: 80 13 00 00 [22:16:10]Write to MH i2c: E2 08 00 7B 64 80 13 00 00 00 00 00 00 5B [22:16:10]Write i2c OK [22:16:10]MH_I2C_Read... [22:16:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:16:10]Read from MH i2c: E2 [22:16:10]MH_I2C_Read... [22:16:10]Read from MH i2c: E2 62 00 [22:16:10]MH_I2C_Read... [22:16:10]Read from MH i2c: E2 62 00 7B 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 06 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [22:16:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 06 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:16:10]wFMCommunicate OK [22:16:10]SAM_PROTO_GetFieldsCounters done [22:16:10]requested_item shift.num is exist - process it [22:16:10]requested_item shift.opened is exist - process it [22:16:10]req_shift_opened [22:16:10]FM_GetShiftState [22:16:10]SAM_PROTO_GetShiftState [22:16:10]wFMCommunicate request_size=4 [22:16:10]MH_SAM_APDU [22:16:10]CAPDU: 80 13 01 00 [22:16:10]Write to MH i2c: E2 08 00 7C 64 80 13 01 00 00 00 00 00 5D [22:16:10]Write i2c OK [22:16:10]MH_I2C_Read... [22:16:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:10]Read from MH i2c: E2 [22:16:10]MH_I2C_Read... [22:16:10]Read from MH i2c: E2 0E 00 [22:16:10]MH_I2C_Read... [22:16:10]Read from MH i2c: E2 0E 00 7C 64 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 DF [22:16:10]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [22:16:10]wFMCommunicate OK [22:16:10]SAM_PROTO_GetShiftState done [22:16:10]FM_GetShiftState done [22:16:10]req_shift_opened done [22:16:10]requested_item shift.open_date is exist - process it [22:16:10]req_shift_open_date [22:16:10]req_shift_open_date done [22:16:10]produce_requested_data done [22:16:10]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92678,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [22:16:10]process_action_free close_receipt [22:16:10]json_value_free [22:16:10]json_value_free done [22:16:10]process_json_proto returns [22:16:10]Send response to host [22:16:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92678,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [22:16:10]free response buf [22:16:10]execute_script done [22:16:10]execute_script returns [22:16:10]free content buf [22:16:10]Sock 8.Close socket [22:16:10]Sock 8.Thread stoped [22:16:12]OFD Sender: No OFD packet to send [22:16:17]OFD Sender: No OFD packet to send [22:16:22]OFD Sender: No OFD packet to send [22:16:27]OFD Sender: No OFD packet to send [22:16:32]OFD Sender: No OFD packet to send [22:16:37]OFD Sender: No OFD packet to send [22:16:42]OFD Sender: No OFD packet to send [22:16:47]OFD Sender: No OFD packet to send [22:16:52]OFD Sender: No OFD packet to send [22:16:57]OFD Sender: No OFD packet to send [22:17:02]OFD Sender: No OFD packet to send [22:17:07]OFD Sender: No OFD packet to send [22:17:12]OFD Sender: No OFD packet to send [22:17:17]OFD Sender: No OFD packet to send [22:17:22]OFD Sender: No OFD packet to send [22:17:27]OFD Sender: No OFD packet to send [22:17:32]OFD Sender: No OFD packet to send [22:17:37]OFD Sender: No OFD packet to send [22:17:42]OFD Sender: No OFD packet to send [22:17:47]OFD Sender: No OFD packet to send [22:17:52]OFD Sender: No OFD packet to send [22:17:57]OFD Sender: No OFD packet to send [22:18:02]OFD Sender: No OFD packet to send [22:18:07]OFD Sender: No OFD packet to send [22:18:12]OFD Sender: No OFD packet to send [22:18:17]OFD Sender: No OFD packet to send [22:18:22]OFD Sender: No OFD packet to send [22:18:27]OFD Sender: No OFD packet to send [22:18:32]OFD Sender: No OFD packet to send [22:18:37]OFD Sender: No OFD packet to send [22:18:42]OFD Sender: No OFD packet to send [22:18:47]OFD Sender: No OFD packet to send [22:18:52]OFD Sender: No OFD packet to send [22:18:57]OFD Sender: No OFD packet to send [22:19:02]OFD Sender: No OFD packet to send [22:19:03]accept exits with 9 [22:19:03]New connection [22:19:03]New thread 3066801508 created [22:19:03]Thread 3066658148 joined [22:19:03]Waiting for new connection... [22:19:03] Sock 9.Parse request [22:19:03]Sock 9.Check first char [22:19:03]Sock 9.First char is OK [22:19:03]request: POST /json_proto HTTP/1.0 [22:19:03]Method: POST [22:19:03]URL: /json_proto [22:19:03]Method is POST - this is cgi request [22:19:03]url: /json_proto [22:19:03]query_string will be loaded in cgi processing [22:19:03]execute_cgi json_proto POST (null) [22:19:03]execute_cgi path=json_proto method=POST [22:19:03]POST find Content-Length [22:19:03]Host: 172.17.57.71:8080 [22:19:03]Content-Length: 626 [22:19:03]Content-Type: application/json [22:19:03] [22:19:03]POST finish read [22:19:03]Found Content-Length = 626 [22:19:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127568", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:19:03]execute_script... [22:19:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127568", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:19:03]POST & json_proto [22:19:03]process_json_proto [22:19:03]json parsed OK: [22:19:03]protocol is kg_v1.0 [22:19:03]action value=close_receipt [22:19:03]process_action close_receipt [22:19:03]cmd_close_receipt [22:19:03]MH_GetDate [22:19:03]Write to MH i2c: F0 00 00 7D 64 D0 [22:19:03]Write i2c OK [22:19:03]MH_I2C_Read... [22:19:03]Read from MH i2c: F0 [22:19:03]MH_I2C_Read... [22:19:03]Read from MH i2c: F0 09 00 [22:19:03]MH_I2C_Read... [22:19:03]Read from MH i2c: F0 09 00 7D 64 00 62 5D E7 66 33 3A A4 66 5C [22:19:03]GetLastDocTimeStamp 1726438575 [22:19:03]current date 1726438754 [22:19:03]FM_GetShiftState [22:19:03]SAM_PROTO_GetShiftState [22:19:03]wFMCommunicate request_size=4 [22:19:03]MH_SAM_APDU [22:19:03]CAPDU: 80 13 01 00 [22:19:03]Write to MH i2c: E2 08 00 7E 64 80 13 01 00 00 00 00 00 5F [22:19:03]Write i2c OK [22:19:03]MH_I2C_Read... [22:19:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:19:03]Read from MH i2c: E2 [22:19:03]MH_I2C_Read... [22:19:03]Read from MH i2c: E2 0E 00 [22:19:03]MH_I2C_Read... [22:19:03]Read from MH i2c: E2 0E 00 7E 64 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 E1 [22:19:03]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [22:19:03]wFMCommunicate OK [22:19:03]SAM_PROTO_GetShiftState done [22:19:03]FM_GetShiftState done [22:19:03]opened in 1726359809 [22:19:03]opened+sec_in_day 1726446209 [22:19:03]quantity*price = 15000 [22:19:03]sum+1 = 15001 [22:19:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 127 15.09.2024 22:19 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92679 ФПД: 195208466442457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T221914&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92679&fm=195208466442457&tin=02508201610067®Number=0000000000091423&sum=15000 0 [22:19:05]StoreToDocumentArchive [22:19:05]shift 507 fd 92679 [22:19:05]save to /storage/0507/doc_00092679 [22:19:05]save last doc name /storage/0507/doc_00092679 to /storage/kkm_last_doc_name [22:19:05]save OK [22:19:05]Clear old archive folders... [22:19:05]ProcessDocumentItem done err = 0, tmpTLVsize=278 [22:19:05]tlvbuf is 010D6D20 [22:19:05]SAM_PROTO_ClearQueue [22:19:05]wFMCommunicate request_size=4 [22:19:05]MH_SAM_APDU [22:19:05]CAPDU: 80 09 00 00 [22:19:05]Write to MH i2c: E2 08 00 8B 64 80 09 00 00 00 00 00 00 61 [22:19:05]Write i2c OK [22:19:05]MH_I2C_Read... [22:19:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:19:05]Read from MH i2c: E2 [22:19:05]MH_I2C_Read... [22:19:05]Read from MH i2c: E2 03 00 [22:19:05]MH_I2C_Read... [22:19:05]Read from MH i2c: E2 03 00 8B 64 00 90 00 63 [22:19:05]RAPDU: 90 00 [22:19:05]wFMCommunicate OK [22:19:05]SAM_PROTO_ClearQueue done [22:19:05]KKMCreateOFDPacket [22:19:05]OFDProtocolAddRootSTLVToBuf [22:19:05]FM_MakeSignedData [22:19:05]FM_MakeSignedData [22:19:05]SAM_PROTO_SignData [22:19:05]wFMCommunicate request_size=4 [22:19:05]MH_SAM_APDU [22:19:05]CAPDU: 80 0D 01 02 [22:19:05]Write to MH i2c: E2 08 00 8C 64 80 0D 01 02 00 00 00 00 69 [22:19:05]Write i2c OK [22:19:05]MH_I2C_Read... [22:19:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:19:05]Read from MH i2c: E2 [22:19:05]MH_I2C_Read... [22:19:05]Read from MH i2c: E2 03 00 [22:19:05]MH_I2C_Read... [22:19:05]Read from MH i2c: E2 03 00 8C 64 00 90 00 64 [22:19:05]RAPDU: 90 00 [22:19:05]wFMCommunicate OK [22:19:05]wFMCommunicate request_size=255 [22:19:05]MH_SAM_APDU [22:19:05]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 62 5D E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 [22:19:05]Write to MH i2c: E2 02 01 8D 64 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 62 5D E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 00 00 0F [22:19:05]Write i2c OK [22:19:05]MH_I2C_Read... [22:19:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:05]Read from MH i2c: E2 [22:19:05]MH_I2C_Read... [22:19:05]Read from MH i2c: E2 03 00 [22:19:05]MH_I2C_Read... [22:19:05]Read from MH i2c: E2 03 00 8D 64 00 90 00 65 [22:19:05]RAPDU: 90 00 [22:19:05]wFMCommunicate OK [22:19:05]wFMCommunicate request_size=37 [22:19:05]MH_SAM_APDU [22:19:05]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 07 6A 01 00 35 04 06 00 B1 8A 83 4C A8 D9 [22:19:05]Write to MH i2c: E2 28 00 8E 64 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 07 6A 01 00 35 04 06 00 B1 8A 83 4C A8 D9 00 00 C4 [22:19:05]Write i2c OK [22:19:05]MH_I2C_Read... [22:19:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:05]Read from MH i2c: E2 [22:19:05]MH_I2C_Read... [22:19:05]Read from MH i2c: E2 03 00 [22:19:05]MH_I2C_Read... [22:19:05]Read from MH i2c: E2 03 00 8E 64 00 90 00 66 [22:19:05]RAPDU: 90 00 [22:19:05]wFMCommunicate OK [22:19:05]wFMCommunicate request_size=4 [22:19:05]MH_SAM_APDU [22:19:05]CAPDU: 80 0D 03 02 [22:19:05]Write to MH i2c: E2 08 00 8F 64 80 0D 03 02 00 00 00 00 6E [22:19:05]Write i2c OK [22:19:05]MH_I2C_Read... [22:19:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:19:05]Read from MH i2c: E2 [22:19:05]MH_I2C_Read... [22:19:05]Read from MH i2c: E2 0B 00 [22:19:05]MH_I2C_Read... [22:19:05]Read from MH i2c: E2 0B 00 8F 64 00 3F CC 78 49 1D 29 5F 25 90 00 05 [22:19:05]RAPDU: 3F CC 78 49 1D 29 5F 25 90 00 [22:19:05]wFMCommunicate OK [22:19:05]SAM_PROTO_SignData done [22:19:05]FM_MakeSignedData done [22:19:05]CreateOFDProtocolMessage [22:19:05]wFMCommunicate request_size=4 [22:19:05]MH_SAM_APDU [22:19:05]CAPDU: 80 11 00 00 [22:19:05]Write to MH i2c: E2 08 00 90 64 80 11 00 00 00 00 00 00 6E [22:19:05]Write i2c OK [22:19:05]MH_I2C_Read... [22:19:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:19:05]Read from MH i2c: E2 [22:19:05]MH_I2C_Read... [22:19:05]Read from MH i2c: E2 17 00 [22:19:05]MH_I2C_Read... [22:19:05]Read from MH i2c: E2 17 00 90 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C5 [22:19:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [22:19:05]wFMCommunicate OK [22:19:05]CreateOFDProtocolMessage done [22:19:05]OFDSenderStorePacket 92679 [22:19:05]StoreOFDPacket docnum=92679 [22:19:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2A 01 00 00 13 1D 22 01 34 80 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 62 5D E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 07 6A 01 00 35 04 06 00 B1 8A 83 4C A8 D9 3F CC 78 49 1D 29 5F 25 [22:19:05]CheckFolder [22:19:05]dirname=/storage/ofd_packets [22:19:05]CheckFolder done [22:19:05]ProducePacketName [22:19:05]name=ofd_packets/00092679 [22:19:05]NVStorageSaveData ofd_packets/00092679 [22:19:05]File name is /storage/ofd_packets/00092679 [22:19:05]Write 328 bytes [22:19:05]NVStorageSaveData done [22:19:05]OFDSenderStorePacket done [22:19:05]KKMCreateOFDPacket done [22:19:05]NVStorageSaveData kkm_last_timestamp [22:19:05]File name is /storage/kkm_last_timestamp [22:19:05]Write 4 bytes [22:19:05]NVStorageSaveData done [22:19:05]ExternCall_PrintAddStr [22:19:05]wPrintStart [22:19:05]Write to MH i2c: 01 00 00 91 64 F5 [22:19:05]OFD Sender: Processing packet 92679 [packets to send 63, broken 62] [22:19:05]ProducePacketName [22:19:05]name=ofd_packets/00092679 [22:19:05]OFD Sender: To server: pG, [22:19:05]CommunicateWithHost lk.salyk.kg:30040 [22:19:05]ConnectInit lk.salyk.kg [22:19:05]Write i2c OK [22:19:05]MH_I2C_Read... [22:19:05]Read from MH i2c: 01 [22:19:05]MH_I2C_Read... [22:19:05]Read from MH i2c: 01 07 00 [22:19:05]MH_I2C_Read... [22:19:05]Read from MH i2c: 01 07 00 91 64 00 00 00 00 00 FF 0F 0A [22:19:05]RasterBufferAndPrint [22:19:05]line Счет N : (3)127568 [22:19:05]line ИНН: 02508201610067 [22:19:05]line Контрольно-Кассовый Чек [22:19:05]line ПРОДАЖА [22:19:05]line Товар: 4640030092499 [22:19:05]line Сигареты ESSE SENSE Himalaya [22:19:05]line 1.000 * 150.00 [22:19:05]line = 150.00 [22:19:05]line НДС 12% НСП 1% [22:19:05]line > о реализуемом товаре [22:19:05]line ИТОГО: 150.00 [22:19:05]line НСП 1% : 1.33 [22:19:05]line НДС 12% : 15.93 [22:19:05]line Наличными: 150.00 [22:19:05]line Безнал.: 0.00 [22:19:05]line Место: АЗС № 5 "Партнер Нефть" [22:19:05]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [22:19:05]line СНО: Общий режим [22:19:05]line Чек 127 15.09.2024 22:19 [22:19:05]line Смена: 507 ФФД: 1.0 [22:19:05]line ЗНМ: 03000000022 [22:19:05]line РНМ: 0000000000091423 [22:19:05]line Версия ККМ: 001 [22:19:05]line ФМ: 0000000000874692 [22:19:05]line ФД: 92679 [22:19:05]line ФПД: 195208466442457 [22:19:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T221914&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92679&fm=195208466442457&tin=02508201610067®Number=0000000000091423&sum=15000 [22:19:05]line 0 [22:19:05]Connected sock=10 [22:19:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2A 01 00 00 13 1D 22 01 34 80 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 62 5D E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 07 6A 01 00 35 04 06 00 B1 8A 83 4C A8 D9 3F CC 78 49 1D 29 5F 25 [22:19:05]written 0, free lines is 4095 [22:19:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 1A 25 47 00 E6 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 07 6A 01 00 F4 03 04 00 D9 05 E7 66 B6 04 01 00 00 6B 54 1B 04 B8 25 E1 A4 [22:19:06]CommunicateWithHost err = 0 [22:19:06]CheckOFDResponse [22:19:06]1017 (14) - 77093643461234 [22:19:06]1041 (16) - 0000000000874692 [22:19:06]1040 (4) - 92679 [22:19:06]1012 (4) - 15.09.2024 16:05 [22:19:06]1206 (1) - 0 [22:19:06]OFD Sender: Remove packet 92679 [22:19:06]ProducePacketName [22:19:06]name=ofd_packets/00092679 [22:19:06]NVStorageDeleteData [22:19:06]Write to MH i2c: 01 00 00 BA 64 1E [22:19:06]Write i2c OK [22:19:06]MH_I2C_Read... [22:19:06]Read from MH i2c: 01 [22:19:06]MH_I2C_Read... [22:19:06]Read from MH i2c: 01 07 00 [22:19:06]MH_I2C_Read... [22:19:06]Read from MH i2c: 01 07 00 BA 64 00 00 00 00 00 0E 0D 40 [22:19:06]RasterBufferAndPrint [22:19:06]line [22:19:06]line [22:19:06]line [22:19:06]line [22:19:06]line [22:19:06]written 0, free lines is 3350 [22:19:06]MH_Cut [22:19:06]Write to MH i2c: D1 01 00 C1 64 01 F7 [22:19:06]Write i2c OK [22:19:06]MH_I2C_Read... [22:19:06]Read from MH i2c: D1 [22:19:06]MH_I2C_Read... [22:19:06]Read from MH i2c: D1 01 00 [22:19:06]MH_I2C_Read... [22:19:06]Read from MH i2c: D1 01 00 C1 64 00 F6 [22:19:06]Write to MH i2c: 01 00 00 C2 64 26 [22:19:06]Write i2c OK [22:19:06]MH_I2C_Read... [22:19:06]OFD Sender: No OFD packet to send [22:19:07]*** Cut start [22:19:07]*** Purtial cut [22:19:07]*** Stage 1: CUTSNS_PIN = 1 [22:19:09]Read from MH i2c: 01 [22:19:09]MH_I2C_Read... [22:19:09]*** Stop cut motor [22:19:09]Read from MH i2c: 01 07 00 [22:19:09]MH_I2C_Read... [22:19:09]*** Cut end [22:19:09]Read from MH i2c: 01 07 00 C2 64 00 00 00 00 00 FF 0F 3B [22:19:09]process_action close_receipt done [22:19:09]requested_data is exist [22:19:09]produce_requested_data [22:19:09]requested_item fm.sn is exist - process it [22:19:09]wFMCommunicate request_size=4 [22:19:09]MH_SAM_APDU [22:19:09]CAPDU: 80 11 00 00 [22:19:09]Write to MH i2c: E2 08 00 C3 64 80 11 00 00 00 00 00 00 A1 [22:19:09]Write i2c OK [22:19:09]MH_I2C_Read... [22:19:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:19:09]Read from MH i2c: E2 [22:19:09]MH_I2C_Read... [22:19:09]Read from MH i2c: E2 17 00 [22:19:09]MH_I2C_Read... [22:19:09]Read from MH i2c: E2 17 00 C3 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F8 [22:19:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [22:19:09]wFMCommunicate OK [22:19:09]requested_item fd.num is exist - process it [22:19:09]SAM_PROTO_GetFieldsCounters [22:19:09]wFMCommunicate request_size=4 [22:19:09]MH_SAM_APDU [22:19:09]CAPDU: 80 13 00 00 [22:19:09]Write to MH i2c: E2 08 00 C4 64 80 13 00 00 00 00 00 00 A4 [22:19:09]Write i2c OK [22:19:09]MH_I2C_Read... [22:19:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:19:09]Read from MH i2c: E2 [22:19:09]MH_I2C_Read... [22:19:09]Read from MH i2c: E2 62 00 [22:19:09]MH_I2C_Read... [22:19:09]Read from MH i2c: E2 62 00 C4 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 07 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [22:19:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 07 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:19:09]wFMCommunicate OK [22:19:09]SAM_PROTO_GetFieldsCounters done [22:19:09]requested_item shift.num is exist - process it [22:19:09]requested_item shift.opened is exist - process it [22:19:09]req_shift_opened [22:19:09]FM_GetShiftState [22:19:09]SAM_PROTO_GetShiftState [22:19:09]wFMCommunicate request_size=4 [22:19:09]MH_SAM_APDU [22:19:09]CAPDU: 80 13 01 00 [22:19:09]Write to MH i2c: E2 08 00 C5 64 80 13 01 00 00 00 00 00 A6 [22:19:09]Write i2c OK [22:19:09]MH_I2C_Read... [22:19:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:19:09]Read from MH i2c: E2 [22:19:09]MH_I2C_Read... [22:19:09]Read from MH i2c: E2 0E 00 [22:19:09]MH_I2C_Read... [22:19:09]Read from MH i2c: E2 0E 00 C5 64 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 28 [22:19:09]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [22:19:09]wFMCommunicate OK [22:19:09]SAM_PROTO_GetShiftState done [22:19:09]FM_GetShiftState done [22:19:09]req_shift_opened done [22:19:09]requested_item shift.open_date is exist - process it [22:19:09]req_shift_open_date [22:19:09]req_shift_open_date done [22:19:09]produce_requested_data done [22:19:09]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92679,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [22:19:09]process_action_free close_receipt [22:19:09]json_value_free [22:19:09]json_value_free done [22:19:09]process_json_proto returns [22:19:09]Send response to host [22:19:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92679,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [22:19:09]free response buf [22:19:09]execute_script done [22:19:09]execute_script returns [22:19:09]free content buf [22:19:09]Sock 9.Close socket [22:19:09]Sock 9.Thread stoped [22:19:11]OFD Sender: No OFD packet to send [22:19:16]OFD Sender: No OFD packet to send [22:19:21]OFD Sender: No OFD packet to send [22:19:26]OFD Sender: No OFD packet to send [22:19:31]OFD Sender: No OFD packet to send [22:19:36]OFD Sender: No OFD packet to send [22:19:41]OFD Sender: No OFD packet to send [22:19:46]OFD Sender: No OFD packet to send [22:19:51]OFD Sender: No OFD packet to send [22:19:56]OFD Sender: No OFD packet to send [22:20:01]OFD Sender: No OFD packet to send [22:20:06]OFD Sender: No OFD packet to send [22:20:11]OFD Sender: No OFD packet to send [22:20:16]OFD Sender: No OFD packet to send [22:20:21]OFD Sender: No OFD packet to send [22:20:26]OFD Sender: No OFD packet to send [22:20:31]OFD Sender: No OFD packet to send [22:20:36]OFD Sender: No OFD packet to send [22:20:41]OFD Sender: No OFD packet to send [22:20:46]OFD Sender: No OFD packet to send [22:20:51]OFD Sender: No OFD packet to send [22:20:56]OFD Sender: No OFD packet to send [22:21:01]OFD Sender: No OFD packet to send [22:21:06]OFD Sender: No OFD packet to send [22:21:11]OFD Sender: No OFD packet to send [22:21:16]OFD Sender: No OFD packet to send [22:21:21]OFD Sender: No OFD packet to send [22:21:26]OFD Sender: No OFD packet to send [22:21:31]OFD Sender: No OFD packet to send [22:21:36]OFD Sender: No OFD packet to send [22:21:41]OFD Sender: No OFD packet to send [22:21:46]OFD Sender: No OFD packet to send [22:21:51]OFD Sender: No OFD packet to send [22:21:56]OFD Sender: No OFD packet to send [22:22:01]OFD Sender: No OFD packet to send [22:22:06]OFD Sender: No OFD packet to send [22:22:11]OFD Sender: No OFD packet to send [22:22:16]OFD Sender: No OFD packet to send [22:22:21]OFD Sender: No OFD packet to send [22:22:26]OFD Sender: No OFD packet to send [22:22:31]OFD Sender: No OFD packet to send [22:22:36]OFD Sender: No OFD packet to send [22:22:41]OFD Sender: No OFD packet to send [22:22:46]OFD Sender: No OFD packet to send [22:22:51]OFD Sender: No OFD packet to send [22:22:56]OFD Sender: No OFD packet to send [22:23:01]OFD Sender: No OFD packet to send [22:23:06]OFD Sender: No OFD packet to send [22:23:11]OFD Sender: No OFD packet to send [22:23:16]OFD Sender: No OFD packet to send [22:23:21]OFD Sender: No OFD packet to send [22:23:26]OFD Sender: No OFD packet to send [22:23:31]OFD Sender: No OFD packet to send [22:23:36]OFD Sender: No OFD packet to send [22:23:41]OFD Sender: No OFD packet to send [22:23:46]OFD Sender: No OFD packet to send [22:23:51]OFD Sender: No OFD packet to send [22:23:56]OFD Sender: No OFD packet to send [22:24:01]OFD Sender: No OFD packet to send [22:24:06]OFD Sender: No OFD packet to send [22:24:11]OFD Sender: No OFD packet to send [22:24:16]OFD Sender: No OFD packet to send [22:24:21]OFD Sender: No OFD packet to send [22:24:26]OFD Sender: No OFD packet to send [22:24:31]OFD Sender: No OFD packet to send [22:24:36]OFD Sender: No OFD packet to send [22:24:41]OFD Sender: No OFD packet to send [22:24:46]OFD Sender: No OFD packet to send [22:24:51]OFD Sender: No OFD packet to send [22:24:56]OFD Sender: No OFD packet to send [22:25:01]OFD Sender: No OFD packet to send [22:25:06]OFD Sender: No OFD packet to send [22:25:11]OFD Sender: No OFD packet to send [22:25:16]OFD Sender: No OFD packet to send [22:25:21]OFD Sender: No OFD packet to send [22:25:26]OFD Sender: No OFD packet to send [22:25:31]OFD Sender: No OFD packet to send [22:25:36]OFD Sender: No OFD packet to send [22:25:42]OFD Sender: No OFD packet to send [22:25:47]OFD Sender: No OFD packet to send [22:25:52]OFD Sender: No OFD packet to send [22:25:57]OFD Sender: No OFD packet to send [22:26:02]OFD Sender: No OFD packet to send [22:26:07]OFD Sender: No OFD packet to send [22:26:12]OFD Sender: No OFD packet to send [22:26:17]OFD Sender: No OFD packet to send [22:26:22]OFD Sender: No OFD packet to send [22:26:27]OFD Sender: No OFD packet to send [22:26:32]OFD Sender: No OFD packet to send [22:26:37]OFD Sender: No OFD packet to send [22:26:42]OFD Sender: No OFD packet to send [22:26:47]OFD Sender: No OFD packet to send [22:26:52]OFD Sender: No OFD packet to send [22:26:57]OFD Sender: No OFD packet to send [22:27:02]OFD Sender: No OFD packet to send [22:27:07]OFD Sender: No OFD packet to send [22:27:12]OFD Sender: No OFD packet to send [22:27:17]OFD Sender: No OFD packet to send [22:27:22]OFD Sender: No OFD packet to send [22:27:27]OFD Sender: No OFD packet to send [22:27:32]OFD Sender: No OFD packet to send [22:27:37]OFD Sender: No OFD packet to send [22:27:42]OFD Sender: No OFD packet to send [22:27:47]OFD Sender: No OFD packet to send [22:27:52]OFD Sender: No OFD packet to send [22:27:57]OFD Sender: No OFD packet to send [22:28:02]OFD Sender: No OFD packet to send [22:28:07]OFD Sender: No OFD packet to send [22:28:12]OFD Sender: No OFD packet to send [22:28:17]OFD Sender: No OFD packet to send [22:28:22]OFD Sender: No OFD packet to send [22:28:27]OFD Sender: No OFD packet to send [22:28:32]OFD Sender: No OFD packet to send [22:28:37]OFD Sender: No OFD packet to send [22:28:42]OFD Sender: No OFD packet to send [22:28:47]OFD Sender: No OFD packet to send [22:28:52]OFD Sender: No OFD packet to send [22:28:57]OFD Sender: No OFD packet to send [22:29:02]OFD Sender: No OFD packet to send [22:29:07]OFD Sender: No OFD packet to send [22:29:12]OFD Sender: No OFD packet to send [22:29:17]OFD Sender: No OFD packet to send [22:29:22]OFD Sender: No OFD packet to send [22:29:27]OFD Sender: No OFD packet to send [22:29:32]OFD Sender: No OFD packet to send [22:29:37]OFD Sender: No OFD packet to send [22:29:42]OFD Sender: No OFD packet to send [22:29:47]OFD Sender: No OFD packet to send [22:29:52]OFD Sender: No OFD packet to send [22:29:57]OFD Sender: No OFD packet to send [22:30:02]OFD Sender: No OFD packet to send [22:30:07]OFD Sender: No OFD packet to send [22:30:12]OFD Sender: No OFD packet to send [22:30:17]OFD Sender: No OFD packet to send [22:30:22]OFD Sender: No OFD packet to send [22:30:27]OFD Sender: No OFD packet to send [22:30:32]OFD Sender: No OFD packet to send [22:30:37]OFD Sender: No OFD packet to send [22:30:42]OFD Sender: No OFD packet to send [22:30:47]OFD Sender: No OFD packet to send [22:30:52]OFD Sender: No OFD packet to send [22:30:57]OFD Sender: No OFD packet to send [22:31:02]OFD Sender: No OFD packet to send [22:31:07]OFD Sender: No OFD packet to send [22:31:12]OFD Sender: No OFD packet to send [22:31:17]OFD Sender: No OFD packet to send [22:31:22]OFD Sender: No OFD packet to send [22:31:27]OFD Sender: No OFD packet to send [22:31:32]OFD Sender: No OFD packet to send [22:31:37]OFD Sender: No OFD packet to send [22:31:42]OFD Sender: No OFD packet to send [22:31:47]OFD Sender: No OFD packet to send [22:31:52]OFD Sender: No OFD packet to send [22:31:57]OFD Sender: No OFD packet to send [22:32:02]OFD Sender: No OFD packet to send [22:32:07]OFD Sender: No OFD packet to send [22:32:12]OFD Sender: No OFD packet to send [22:32:17]OFD Sender: No OFD packet to send [22:32:22]OFD Sender: No OFD packet to send [22:32:27]OFD Sender: No OFD packet to send [22:32:32]OFD Sender: No OFD packet to send [22:32:37]OFD Sender: No OFD packet to send [22:32:42]OFD Sender: No OFD packet to send [22:32:47]OFD Sender: No OFD packet to send [22:32:52]OFD Sender: No OFD packet to send [22:32:57]OFD Sender: No OFD packet to send [22:33:02]OFD Sender: No OFD packet to send [22:33:07]OFD Sender: No OFD packet to send [22:33:12]OFD Sender: No OFD packet to send [22:33:17]OFD Sender: No OFD packet to send [22:33:18]accept exits with 8 [22:33:18]New connection [22:33:18]New thread 3066658148 created [22:33:18]Thread 3066801508 joined [22:33:18]Waiting for new connection... [22:33:18] Sock 8.Parse request [22:33:18]Sock 8.Check first char [22:33:18]Sock 8.First char is OK [22:33:18]request: POST /json_proto HTTP/1.0 [22:33:18]Method: POST [22:33:18]URL: /json_proto [22:33:18]Method is POST - this is cgi request [22:33:18]url: /json_proto [22:33:18]query_string will be loaded in cgi processing [22:33:18]execute_cgi json_proto POST (null) [22:33:18]execute_cgi path=json_proto method=POST [22:33:18]POST find Content-Length [22:33:18]Host: 172.17.57.71:8080 [22:33:18]Content-Length: 827 [22:33:18]Content-Type: application/json [22:33:18] [22:33:18]POST finish read [22:33:18]Found Content-Length = 827 [22:33:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127569", "tax_sys" : 0, "items" : [ { "code": "4870002329999", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043B\u0438\u043C\u043E\u043D Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:33:18]execute_script... [22:33:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127569", "tax_sys" : 0, "items" : [ { "code": "4870002329999", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043B\u0438\u043C\u043E\u043D Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:33:18]POST & json_proto [22:33:18]process_json_proto [22:33:18]json parsed OK: [22:33:18]protocol is kg_v1.0 [22:33:18]action value=close_receipt [22:33:18]process_action close_receipt [22:33:18]cmd_close_receipt [22:33:18]MH_GetDate [22:33:18]Write to MH i2c: F0 00 00 C6 64 19 [22:33:18]Write i2c OK [22:33:18]MH_I2C_Read... [22:33:18]Read from MH i2c: F0 [22:33:18]MH_I2C_Read... [22:33:18]Read from MH i2c: F0 09 00 [22:33:18]MH_I2C_Read... [22:33:18]Read from MH i2c: F0 09 00 C6 64 00 B9 60 E7 66 33 3A A4 66 FF [22:33:18]GetLastDocTimeStamp 1726438754 [22:33:18]current date 1726439609 [22:33:18]FM_GetShiftState [22:33:18]SAM_PROTO_GetShiftState [22:33:18]wFMCommunicate request_size=4 [22:33:18]MH_SAM_APDU [22:33:18]CAPDU: 80 13 01 00 [22:33:18]Write to MH i2c: E2 08 00 C7 64 80 13 01 00 00 00 00 00 A8 [22:33:18]Write i2c OK [22:33:18]MH_I2C_Read... [22:33:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:18]Read from MH i2c: E2 [22:33:18]MH_I2C_Read... [22:33:18]Read from MH i2c: E2 0E 00 [22:33:18]MH_I2C_Read... [22:33:18]Read from MH i2c: E2 0E 00 C7 64 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 2A [22:33:18]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [22:33:18]wFMCommunicate OK [22:33:18]SAM_PROTO_GetShiftState done [22:33:18]FM_GetShiftState done [22:33:18]opened in 1726359809 [22:33:18]opened+sec_in_day 1726446209 [22:33:18]quantity*price = 13000 [22:33:18]sum+1 = 13001 [22:33:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 128 15.09.2024 22:33 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92680 ФПД: 9923556795162 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T223329&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92680&fm=9923556795162&tin=02508201610067®Number=0000000000091423&sum=13000 0 [22:33:19]StoreToDocumentArchive [22:33:19]shift 507 fd 92680 [22:33:19]save to /storage/0507/doc_00092680 [22:33:19]save last doc name /storage/0507/doc_00092680 to /storage/kkm_last_doc_name [22:33:19]save OK [22:33:19]Clear old archive folders... [22:33:19]ProcessDocumentItem done err = 0, tmpTLVsize=293 [22:33:19]tlvbuf is 010D6B10 [22:33:19]SAM_PROTO_ClearQueue [22:33:19]wFMCommunicate request_size=4 [22:33:19]MH_SAM_APDU [22:33:19]CAPDU: 80 09 00 00 [22:33:19]Write to MH i2c: E2 08 00 D4 64 80 09 00 00 00 00 00 00 AA [22:33:19]Write i2c OK [22:33:19]MH_I2C_Read... [22:33:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:33:19]Read from MH i2c: E2 [22:33:19]MH_I2C_Read... [22:33:19]Read from MH i2c: E2 03 00 [22:33:19]MH_I2C_Read... [22:33:19]Read from MH i2c: E2 03 00 D4 64 00 90 00 AC [22:33:19]RAPDU: 90 00 [22:33:19]wFMCommunicate OK [22:33:19]SAM_PROTO_ClearQueue done [22:33:19]KKMCreateOFDPacket [22:33:19]OFDProtocolAddRootSTLVToBuf [22:33:19]FM_MakeSignedData [22:33:19]FM_MakeSignedData [22:33:19]SAM_PROTO_SignData [22:33:19]wFMCommunicate request_size=4 [22:33:19]MH_SAM_APDU [22:33:19]CAPDU: 80 0D 01 02 [22:33:19]Write to MH i2c: E2 08 00 D5 64 80 0D 01 02 00 00 00 00 B2 [22:33:19]Write i2c OK [22:33:19]MH_I2C_Read... [22:33:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:33:20]Read from MH i2c: E2 [22:33:20]MH_I2C_Read... [22:33:20]Read from MH i2c: E2 03 00 [22:33:20]MH_I2C_Read... [22:33:20]Read from MH i2c: E2 03 00 D5 64 00 90 00 AD [22:33:20]RAPDU: 90 00 [22:33:20]wFMCommunicate OK [22:33:20]wFMCommunicate request_size=255 [22:33:20]MH_SAM_APDU [22:33:20]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 B9 60 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [22:33:20]Write to MH i2c: E2 02 01 D6 64 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 B9 60 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 9F [22:33:20]Write i2c OK [22:33:20]MH_I2C_Read... [22:33:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:20]Read from MH i2c: E2 [22:33:20]MH_I2C_Read... [22:33:20]Read from MH i2c: E2 03 00 [22:33:20]MH_I2C_Read... [22:33:20]Read from MH i2c: E2 03 00 D6 64 00 90 00 AE [22:33:20]RAPDU: 90 00 [22:33:20]wFMCommunicate OK [22:33:20]wFMCommunicate request_size=52 [22:33:20]MH_SAM_APDU [22:33:20]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 08 6A 01 00 35 04 06 00 09 06 82 13 E3 1A [22:33:20]Write to MH i2c: E2 37 00 D7 64 80 0D 02 02 2F 00 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 08 6A 01 00 35 04 06 00 09 06 82 13 E3 1A 00 00 8A [22:33:20]Write i2c OK [22:33:20]MH_I2C_Read... [22:33:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:20]Read from MH i2c: E2 [22:33:20]MH_I2C_Read... [22:33:20]Read from MH i2c: E2 03 00 [22:33:20]MH_I2C_Read... [22:33:20]Read from MH i2c: E2 03 00 D7 64 00 90 00 AF [22:33:20]RAPDU: 90 00 [22:33:20]wFMCommunicate OK [22:33:20]wFMCommunicate request_size=4 [22:33:20]MH_SAM_APDU [22:33:20]CAPDU: 80 0D 03 02 [22:33:20]Write to MH i2c: E2 08 00 D8 64 80 0D 03 02 00 00 00 00 B7 [22:33:20]Write i2c OK [22:33:20]MH_I2C_Read... [22:33:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:33:20]Read from MH i2c: E2 [22:33:20]MH_I2C_Read... [22:33:20]Read from MH i2c: E2 0B 00 [22:33:20]MH_I2C_Read... [22:33:20]Read from MH i2c: E2 0B 00 D8 64 00 5D AD 36 71 D0 BD 34 90 90 00 BA [22:33:20]RAPDU: 5D AD 36 71 D0 BD 34 90 90 00 [22:33:20]wFMCommunicate OK [22:33:20]SAM_PROTO_SignData done [22:33:20]FM_MakeSignedData done [22:33:20]CreateOFDProtocolMessage [22:33:20]wFMCommunicate request_size=4 [22:33:20]MH_SAM_APDU [22:33:20]CAPDU: 80 11 00 00 [22:33:20]Write to MH i2c: E2 08 00 D9 64 80 11 00 00 00 00 00 00 B7 [22:33:20]Write i2c OK [22:33:20]MH_I2C_Read... [22:33:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:20]Read from MH i2c: E2 [22:33:20]MH_I2C_Read... [22:33:20]Read from MH i2c: E2 17 00 [22:33:20]MH_I2C_Read... [22:33:20]Read from MH i2c: E2 17 00 D9 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 0E [22:33:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [22:33:20]wFMCommunicate OK [22:33:20]CreateOFDProtocolMessage done [22:33:20]OFDSenderStorePacket 92680 [22:33:20]StoreOFDPacket docnum=92680 [22:33:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 39 01 00 00 EF C7 31 01 8D 8A 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 B9 60 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 08 6A 01 00 35 04 06 00 09 06 82 13 E3 1A 5D AD 36 71 D0 BD 34 90 [22:33:20]CheckFolder [22:33:20]dirname=/storage/ofd_packets [22:33:20]CheckFolder done [22:33:20]ProducePacketName [22:33:20]name=ofd_packets/00092680 [22:33:20]NVStorageSaveData ofd_packets/00092680 [22:33:20]File name is /storage/ofd_packets/00092680 [22:33:20]Write 343 bytes [22:33:20]NVStorageSaveData done [22:33:20]OFDSenderStorePacket done [22:33:20]KKMCreateOFDPacket done [22:33:20]NVStorageSaveData kkm_last_timestamp [22:33:20]File name is /storage/kkm_last_timestamp [22:33:20]Write 4 bytes [22:33:20]NVStorageSaveData done [22:33:20]ExternCall_PrintAddStr [22:33:20]wPrintStart [22:33:20]Write to MH i2c: 01 00 00 DA 64 3E [22:33:20]Write i2c OK [22:33:20]MH_I2C_Read... [22:33:20]Read from MH i2c: 01 [22:33:20]MH_I2C_Read... [22:33:20]Read from MH i2c: 01 07 00 [22:33:20]MH_I2C_Read... [22:33:20]Read from MH i2c: 01 07 00 DA 64 00 00 00 00 00 FF 0F 53 [22:33:20]RasterBufferAndPrint [22:33:20]line Счет N : (3)127569 [22:33:20]line ИНН: 02508201610067 [22:33:20]line Контрольно-Кассовый Чек [22:33:20]line ПРОДАЖА [22:33:20]line Товар: 4870002329999 [22:33:20]line Напиток Lipton IceTea 1л лимон Regular [22:33:20]line 1.000 * 130.00 [22:33:20]line = 130.00 [22:33:20]line НДС 12% НСП 1% [22:33:20]line > о реализуемом товаре [22:33:20]line ИТОГО: 130.00 [22:33:20]line НСП 1% : 1.15 [22:33:20]line НДС 12% : 13.80 [22:33:20]line Наличными: 0.00 [22:33:20]line Безнал.: 130.00 [22:33:20]line Место: АЗС № 5 "Партнер Нефть" [22:33:20]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [22:33:20]line СНО: Общий режим [22:33:20]line Чек 128 15.09.2024 22:33 [22:33:20]line Смена: 507 ФФД: 1.0 [22:33:20]line ЗНМ: 03000000022 [22:33:20]line РНМ: 0000000000091423 [22:33:20]line Версия ККМ: 001 [22:33:20]line Платежная система: О! деньги [22:33:20]line ФМ: 0000000000874692 [22:33:20]line ФД: 92680 [22:33:20]line ФПД: 9923556795162 [22:33:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T223329&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92680&fm=9923556795162&tin=02508201610067®Number=0000000000091423&sum=13000 [22:33:20]line 0 [22:33:20]OFD Sender: Processing packet 92680 [packets to send 63, broken 62] [22:33:20]ProducePacketName [22:33:20]name=ofd_packets/00092680 [22:33:20]OFD Sender: To server: pG, [22:33:20]CommunicateWithHost lk.salyk.kg:30040 [22:33:20]ConnectInit lk.salyk.kg [22:33:20]written 0, free lines is 4095 [22:33:20]Connected sock=10 [22:33:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 39 01 00 00 EF C7 31 01 8D 8A 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 B9 60 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 08 6A 01 00 35 04 06 00 09 06 82 13 E3 1A 5D AD 36 71 D0 BD 34 90 [22:33:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 3B 89 47 00 3A 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 08 6A 01 00 F4 03 04 00 30 09 E7 66 B6 04 01 00 00 83 84 78 BB EA EC 42 F3 [22:33:21]CommunicateWithHost err = 0 [22:33:21]CheckOFDResponse [22:33:21]1017 (14) - 77093643461234 [22:33:21]1041 (16) - 0000000000874692 [22:33:21]1040 (4) - 92680 [22:33:21]1012 (4) - 15.09.2024 16:20 [22:33:21]1206 (1) - 0 [22:33:21]OFD Sender: Remove packet 92680 [22:33:21]ProducePacketName [22:33:21]name=ofd_packets/00092680 [22:33:21]NVStorageDeleteData [22:33:21]Write to MH i2c: 01 00 00 05 65 6A [22:33:21]Write i2c OK [22:33:21]MH_I2C_Read... [22:33:21]Read from MH i2c: 01 [22:33:21]MH_I2C_Read... [22:33:21]Read from MH i2c: 01 07 00 [22:33:21]MH_I2C_Read... [22:33:21]Read from MH i2c: 01 07 00 05 65 00 00 00 00 00 ED 0C 6A [22:33:21]RasterBufferAndPrint [22:33:21]line [22:33:21]line [22:33:21]line [22:33:21]line [22:33:21]line [22:33:21]written 0, free lines is 3317 [22:33:21]MH_Cut [22:33:21]Write to MH i2c: D1 01 00 0C 65 01 43 [22:33:21]Write i2c OK [22:33:21]MH_I2C_Read... [22:33:21]Read from MH i2c: D1 [22:33:21]MH_I2C_Read... [22:33:21]Read from MH i2c: D1 01 00 [22:33:21]MH_I2C_Read... [22:33:21]Read from MH i2c: D1 01 00 0C 65 00 42 [22:33:21]Write to MH i2c: 01 00 00 0D 65 72 [22:33:21]Write i2c OK [22:33:21]MH_I2C_Read... [22:33:21]OFD Sender: No OFD packet to send [22:33:21]*** Cut start [22:33:21]*** Purtial cut [22:33:21]*** Stage 1: CUTSNS_PIN = 1 [22:33:23]Read from MH i2c: 01 [22:33:23]MH_I2C_Read... [22:33:23]*** Stop cut motor [22:33:23]*** Cut end [22:33:23]Read from MH i2c: 01 07 00 [22:33:23]MH_I2C_Read... [22:33:23]Read from MH i2c: 01 07 00 0D 65 00 00 00 00 00 FF 0F 87 [22:33:23]process_action close_receipt done [22:33:23]requested_data is exist [22:33:23]produce_requested_data [22:33:23]requested_item fm.sn is exist - process it [22:33:23]wFMCommunicate request_size=4 [22:33:23]MH_SAM_APDU [22:33:23]CAPDU: 80 11 00 00 [22:33:23]Write to MH i2c: E2 08 00 0E 65 80 11 00 00 00 00 00 00 ED [22:33:23]Write i2c OK [22:33:23]MH_I2C_Read... [22:33:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:24]Read from MH i2c: E2 [22:33:24]MH_I2C_Read... [22:33:24]Read from MH i2c: E2 17 00 [22:33:24]MH_I2C_Read... [22:33:24]Read from MH i2c: E2 17 00 0E 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 44 [22:33:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [22:33:24]wFMCommunicate OK [22:33:24]requested_item fd.num is exist - process it [22:33:24]SAM_PROTO_GetFieldsCounters [22:33:24]wFMCommunicate request_size=4 [22:33:24]MH_SAM_APDU [22:33:24]CAPDU: 80 13 00 00 [22:33:24]Write to MH i2c: E2 08 00 0F 65 80 13 00 00 00 00 00 00 F0 [22:33:24]Write i2c OK [22:33:24]MH_I2C_Read... [22:33:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:33:24]Read from MH i2c: E2 [22:33:24]MH_I2C_Read... [22:33:24]Read from MH i2c: E2 62 00 [22:33:24]MH_I2C_Read... [22:33:24]Read from MH i2c: E2 62 00 0F 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 08 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [22:33:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 08 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:33:24]wFMCommunicate OK [22:33:24]SAM_PROTO_GetFieldsCounters done [22:33:24]requested_item shift.num is exist - process it [22:33:24]requested_item shift.opened is exist - process it [22:33:24]req_shift_opened [22:33:24]FM_GetShiftState [22:33:24]SAM_PROTO_GetShiftState [22:33:24]wFMCommunicate request_size=4 [22:33:24]MH_SAM_APDU [22:33:24]CAPDU: 80 13 01 00 [22:33:24]Write to MH i2c: E2 08 00 10 65 80 13 01 00 00 00 00 00 F2 [22:33:24]Write i2c OK [22:33:24]MH_I2C_Read... [22:33:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:24]Read from MH i2c: E2 [22:33:24]MH_I2C_Read... [22:33:24]Read from MH i2c: E2 0E 00 [22:33:24]MH_I2C_Read... [22:33:24]Read from MH i2c: E2 0E 00 10 65 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 74 [22:33:24]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [22:33:24]wFMCommunicate OK [22:33:24]SAM_PROTO_GetShiftState done [22:33:24]FM_GetShiftState done [22:33:24]req_shift_opened done [22:33:24]requested_item shift.open_date is exist - process it [22:33:24]req_shift_open_date [22:33:24]req_shift_open_date done [22:33:24]produce_requested_data done [22:33:24]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92680,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [22:33:24]process_action_free close_receipt [22:33:24]json_value_free [22:33:24]json_value_free done [22:33:24]process_json_proto returns [22:33:24]Send response to host [22:33:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92680,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [22:33:24]free response buf [22:33:24]execute_script done [22:33:24]execute_script returns [22:33:24]free content buf [22:33:24]Sock 8.Close socket [22:33:24]Sock 8.Thread stoped [22:33:26]OFD Sender: No OFD packet to send [22:33:31]OFD Sender: No OFD packet to send [22:33:36]OFD Sender: No OFD packet to send [22:33:41]OFD Sender: No OFD packet to send [22:33:46]OFD Sender: No OFD packet to send [22:33:51]OFD Sender: No OFD packet to send [22:33:56]OFD Sender: No OFD packet to send [22:34:01]OFD Sender: No OFD packet to send [22:34:06]OFD Sender: No OFD packet to send [22:34:11]OFD Sender: No OFD packet to send [22:34:16]OFD Sender: No OFD packet to send [22:34:21]OFD Sender: No OFD packet to send [22:34:26]OFD Sender: No OFD packet to send [22:34:31]OFD Sender: No OFD packet to send [22:34:36]OFD Sender: No OFD packet to send [22:34:41]OFD Sender: No OFD packet to send [22:34:46]OFD Sender: No OFD packet to send [22:34:51]OFD Sender: No OFD packet to send [22:34:56]OFD Sender: No OFD packet to send [22:35:01]OFD Sender: No OFD packet to send [22:35:06]OFD Sender: No OFD packet to send [22:35:11]OFD Sender: No OFD packet to send [22:35:16]OFD Sender: No OFD packet to send [22:35:21]OFD Sender: No OFD packet to send [22:35:26]OFD Sender: No OFD packet to send [22:35:31]OFD Sender: No OFD packet to send [22:35:36]OFD Sender: No OFD packet to send [22:35:41]OFD Sender: No OFD packet to send [22:35:46]OFD Sender: No OFD packet to send [22:35:51]OFD Sender: No OFD packet to send [22:35:56]OFD Sender: No OFD packet to send [22:36:01]OFD Sender: No OFD packet to send [22:36:06]OFD Sender: No OFD packet to send [22:36:11]OFD Sender: No OFD packet to send [22:36:16]OFD Sender: No OFD packet to send [22:36:21]OFD Sender: No OFD packet to send [22:36:26]OFD Sender: No OFD packet to send [22:36:31]OFD Sender: No OFD packet to send [22:36:36]OFD Sender: No OFD packet to send [22:36:41]OFD Sender: No OFD packet to send [22:36:46]OFD Sender: No OFD packet to send [22:36:51]OFD Sender: No OFD packet to send [22:36:56]OFD Sender: No OFD packet to send [22:37:01]OFD Sender: No OFD packet to send [22:37:06]OFD Sender: No OFD packet to send [22:37:11]OFD Sender: No OFD packet to send [22:37:16]OFD Sender: No OFD packet to send [22:37:21]OFD Sender: No OFD packet to send [22:37:26]OFD Sender: No OFD packet to send [22:37:31]OFD Sender: No OFD packet to send [22:37:36]OFD Sender: No OFD packet to send [22:37:41]OFD Sender: No OFD packet to send [22:37:46]OFD Sender: No OFD packet to send [22:37:51]OFD Sender: No OFD packet to send [22:37:56]OFD Sender: No OFD packet to send [22:38:01]OFD Sender: No OFD packet to send [22:38:06]OFD Sender: No OFD packet to send [22:38:11]OFD Sender: No OFD packet to send [22:38:16]OFD Sender: No OFD packet to send [22:38:21]OFD Sender: No OFD packet to send [22:38:26]OFD Sender: No OFD packet to send [22:38:31]OFD Sender: No OFD packet to send [22:38:36]OFD Sender: No OFD packet to send [22:38:41]OFD Sender: No OFD packet to send [22:38:46]OFD Sender: No OFD packet to send [22:38:51]OFD Sender: No OFD packet to send [22:38:56]OFD Sender: No OFD packet to send [22:39:01]OFD Sender: No OFD packet to send [22:39:06]OFD Sender: No OFD packet to send [22:39:11]OFD Sender: No OFD packet to send [22:39:16]OFD Sender: No OFD packet to send [22:39:21]OFD Sender: No OFD packet to send [22:39:26]OFD Sender: No OFD packet to send [22:39:31]OFD Sender: No OFD packet to send [22:39:36]OFD Sender: No OFD packet to send [22:39:41]OFD Sender: No OFD packet to send [22:39:47]OFD Sender: No OFD packet to send [22:39:52]OFD Sender: No OFD packet to send [22:39:57]OFD Sender: No OFD packet to send [22:40:02]OFD Sender: No OFD packet to send [22:40:07]OFD Sender: No OFD packet to send [22:40:12]OFD Sender: No OFD packet to send [22:40:17]OFD Sender: No OFD packet to send [22:40:22]OFD Sender: No OFD packet to send [22:40:27]OFD Sender: No OFD packet to send [22:40:32]OFD Sender: No OFD packet to send [22:40:37]OFD Sender: No OFD packet to send [22:40:42]OFD Sender: No OFD packet to send [22:40:47]OFD Sender: No OFD packet to send [22:40:52]OFD Sender: No OFD packet to send [22:40:57]OFD Sender: No OFD packet to send [22:41:02]OFD Sender: No OFD packet to send [22:41:07]OFD Sender: No OFD packet to send [22:41:12]OFD Sender: No OFD packet to send [22:41:17]OFD Sender: No OFD packet to send [22:41:22]OFD Sender: No OFD packet to send [22:41:27]OFD Sender: No OFD packet to send [22:41:32]OFD Sender: No OFD packet to send [22:41:37]OFD Sender: No OFD packet to send [22:41:42]OFD Sender: No OFD packet to send [22:41:47]OFD Sender: No OFD packet to send [22:41:52]OFD Sender: No OFD packet to send [22:41:57]OFD Sender: No OFD packet to send [22:42:02]OFD Sender: No OFD packet to send [22:42:07]OFD Sender: No OFD packet to send [22:42:12]OFD Sender: No OFD packet to send [22:42:17]OFD Sender: No OFD packet to send [22:42:22]OFD Sender: No OFD packet to send [22:42:27]OFD Sender: No OFD packet to send [22:42:32]OFD Sender: No OFD packet to send [22:42:37]OFD Sender: No OFD packet to send [22:42:42]OFD Sender: No OFD packet to send [22:42:47]OFD Sender: No OFD packet to send [22:42:52]OFD Sender: No OFD packet to send [22:42:57]OFD Sender: No OFD packet to send [22:43:02]OFD Sender: No OFD packet to send [22:43:07]OFD Sender: No OFD packet to send [22:43:12]OFD Sender: No OFD packet to send [22:43:17]OFD Sender: No OFD packet to send [22:43:22]OFD Sender: No OFD packet to send [22:43:27]OFD Sender: No OFD packet to send [22:43:32]OFD Sender: No OFD packet to send [22:43:37]OFD Sender: No OFD packet to send [22:43:42]OFD Sender: No OFD packet to send [22:43:47]OFD Sender: No OFD packet to send [22:43:52]OFD Sender: No OFD packet to send [22:43:57]OFD Sender: No OFD packet to send [22:44:02]OFD Sender: No OFD packet to send [22:44:07]OFD Sender: No OFD packet to send [22:44:12]OFD Sender: No OFD packet to send [22:44:17]OFD Sender: No OFD packet to send [22:44:22]OFD Sender: No OFD packet to send [22:44:27]OFD Sender: No OFD packet to send [22:44:32]OFD Sender: No OFD packet to send [22:44:37]OFD Sender: No OFD packet to send [22:44:42]OFD Sender: No OFD packet to send [22:44:47]OFD Sender: No OFD packet to send [22:44:52]OFD Sender: No OFD packet to send [22:44:57]OFD Sender: No OFD packet to send [22:45:02]OFD Sender: No OFD packet to send [22:45:07]OFD Sender: No OFD packet to send [22:45:12]OFD Sender: No OFD packet to send [22:45:17]OFD Sender: No OFD packet to send [22:45:22]OFD Sender: No OFD packet to send [22:45:27]OFD Sender: No OFD packet to send [22:45:32]OFD Sender: No OFD packet to send [22:45:37]OFD Sender: No OFD packet to send [22:45:42]OFD Sender: No OFD packet to send [22:45:47]OFD Sender: No OFD packet to send [22:45:52]OFD Sender: No OFD packet to send [22:45:57]OFD Sender: No OFD packet to send [22:46:02]OFD Sender: No OFD packet to send [22:46:07]OFD Sender: No OFD packet to send [22:46:12]OFD Sender: No OFD packet to send [22:46:17]OFD Sender: No OFD packet to send [22:46:22]OFD Sender: No OFD packet to send [22:46:27]OFD Sender: No OFD packet to send [22:46:32]OFD Sender: No OFD packet to send [22:46:37]OFD Sender: No OFD packet to send [22:46:42]OFD Sender: No OFD packet to send [22:46:47]OFD Sender: No OFD packet to send [22:46:52]OFD Sender: No OFD packet to send [22:46:57]OFD Sender: No OFD packet to send [22:47:02]OFD Sender: No OFD packet to send [22:47:07]OFD Sender: No OFD packet to send [22:47:12]OFD Sender: No OFD packet to send [22:47:17]OFD Sender: No OFD packet to send [22:47:22]OFD Sender: No OFD packet to send [22:47:27]OFD Sender: No OFD packet to send [22:47:32]OFD Sender: No OFD packet to send [22:47:37]OFD Sender: No OFD packet to send [22:47:42]OFD Sender: No OFD packet to send [22:47:47]OFD Sender: No OFD packet to send [22:47:52]OFD Sender: No OFD packet to send [22:47:57]OFD Sender: No OFD packet to send [22:48:02]OFD Sender: No OFD packet to send [22:48:07]OFD Sender: No OFD packet to send [22:48:12]OFD Sender: No OFD packet to send [22:48:17]OFD Sender: No OFD packet to send [22:48:22]OFD Sender: No OFD packet to send [22:48:27]OFD Sender: No OFD packet to send [22:48:32]OFD Sender: No OFD packet to send [22:48:37]OFD Sender: No OFD packet to send [22:48:42]OFD Sender: No OFD packet to send [22:48:47]OFD Sender: No OFD packet to send [22:48:52]OFD Sender: No OFD packet to send [22:48:57]OFD Sender: No OFD packet to send [22:49:02]OFD Sender: No OFD packet to send [22:49:07]OFD Sender: No OFD packet to send [22:49:12]OFD Sender: No OFD packet to send [22:49:14]accept exits with 9 [22:49:14]New connection [22:49:14]New thread 3066801508 created [22:49:14]Thread 3066658148 joined [22:49:14]Waiting for new connection... [22:49:14] Sock 9.Parse request [22:49:14]Sock 9.Check first char [22:49:14]Sock 9.First char is OK [22:49:14]request: POST /json_proto HTTP/1.0 [22:49:14]Method: POST [22:49:14]URL: /json_proto [22:49:14]Method is POST - this is cgi request [22:49:14]url: /json_proto [22:49:14]query_string will be loaded in cgi processing [22:49:14]execute_cgi json_proto POST (null) [22:49:14]execute_cgi path=json_proto method=POST [22:49:14]POST find Content-Length [22:49:14]Host: 172.17.57.71:8080 [22:49:14]Content-Length: 1473 [22:49:14]Content-Type: application/json [22:49:14] [22:49:14]POST finish read [22:49:14]Found Content-Length = 1473 [22:49:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127570", "tax_sys" : 0, "items" : [ { "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189325", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681390", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u041F\u0410\u041F\u0420\u0418\u041A\u0410 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:49:14]execute_script... [22:49:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127570", "tax_sys" : 0, "items" : [ { "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189325", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681390", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u041F\u0410\u041F\u0420\u0418\u041A\u0410 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:49:14]POST & json_proto [22:49:14]process_json_proto [22:49:14]json parsed OK: [22:49:14]protocol is kg_v1.0 [22:49:14]action value=close_receipt [22:49:14]process_action close_receipt [22:49:14]cmd_close_receipt [22:49:14]MH_GetDate [22:49:14]Write to MH i2c: F0 00 00 11 65 65 [22:49:14]Write i2c OK [22:49:14]MH_I2C_Read... [22:49:14]Read from MH i2c: F0 [22:49:14]MH_I2C_Read... [22:49:14]Read from MH i2c: F0 09 00 [22:49:14]MH_I2C_Read... [22:49:14]Read from MH i2c: F0 09 00 11 65 00 75 64 E7 66 33 3A A4 66 0B [22:49:14]GetLastDocTimeStamp 1726439609 [22:49:14]current date 1726440565 [22:49:14]FM_GetShiftState [22:49:14]SAM_PROTO_GetShiftState [22:49:14]wFMCommunicate request_size=4 [22:49:14]MH_SAM_APDU [22:49:14]CAPDU: 80 13 01 00 [22:49:14]Write to MH i2c: E2 08 00 12 65 80 13 01 00 00 00 00 00 F4 [22:49:14]Write i2c OK [22:49:14]MH_I2C_Read... [22:49:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:49:14]Read from MH i2c: E2 [22:49:14]MH_I2C_Read... [22:49:14]Read from MH i2c: E2 0E 00 [22:49:14]MH_I2C_Read... [22:49:14]Read from MH i2c: E2 0E 00 12 65 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 76 [22:49:14]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [22:49:14]wFMCommunicate OK [22:49:14]SAM_PROTO_GetShiftState done [22:49:14]FM_GetShiftState done [22:49:14]opened in 1726359809 [22:49:14]opened+sec_in_day 1726446209 [22:49:14]quantity*price = 7500 [22:49:14]sum+1 = 7501 [22:49:14]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189325 Холодный чай Fuse персик 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870235681390 ЧИПСЫ SLANG СО ВКУСОМ ПАПРИКА 60Г 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 245.00 НСП 1% : 2.16 НДС 12% : 26.01 Наличными: 0.00 Безнал.: 245.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 129 15.09.2024 22:49 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92681 ФПД: 197673892632558 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T224925&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92681&fm=197673892632558&tin=02508201610067®Number=0000000000091423&sum=24500 0 [22:49:15]StoreToDocumentArchive [22:49:15]shift 507 fd 92681 [22:49:15]save to /storage/0507/doc_00092681 [22:49:15]save last doc name /storage/0507/doc_00092681 to /storage/kkm_last_doc_name [22:49:15]save OK [22:49:15]Clear old archive folders... [22:49:15]ProcessDocumentItem done err = 0, tmpTLVsize=545 [22:49:15]tlvbuf is 010327B0 [22:49:15]SAM_PROTO_ClearQueue [22:49:15]wFMCommunicate request_size=4 [22:49:15]MH_SAM_APDU [22:49:15]CAPDU: 80 09 00 00 [22:49:15]Write to MH i2c: E2 08 00 1F 65 80 09 00 00 00 00 00 00 F6 [22:49:15]Write i2c OK [22:49:15]MH_I2C_Read... [22:49:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:49:15]Read from MH i2c: E2 [22:49:15]MH_I2C_Read... [22:49:15]Read from MH i2c: E2 03 00 [22:49:15]MH_I2C_Read... [22:49:15]Read from MH i2c: E2 03 00 1F 65 00 90 00 F8 [22:49:15]RAPDU: 90 00 [22:49:15]wFMCommunicate OK [22:49:15]SAM_PROTO_ClearQueue done [22:49:15]KKMCreateOFDPacket [22:49:15]OFDProtocolAddRootSTLVToBuf [22:49:15]FM_MakeSignedData [22:49:15]FM_MakeSignedData [22:49:15]SAM_PROTO_SignData [22:49:15]wFMCommunicate request_size=4 [22:49:15]MH_SAM_APDU [22:49:15]CAPDU: 80 0D 01 02 [22:49:15]Write to MH i2c: E2 08 00 20 65 80 0D 01 02 00 00 00 00 FE [22:49:15]Write i2c OK [22:49:15]MH_I2C_Read... [22:49:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:49:15]Read from MH i2c: E2 [22:49:15]MH_I2C_Read... [22:49:15]Read from MH i2c: E2 03 00 [22:49:15]MH_I2C_Read... [22:49:15]Read from MH i2c: E2 03 00 20 65 00 90 00 F9 [22:49:15]RAPDU: 90 00 [22:49:15]wFMCommunicate OK [22:49:15]wFMCommunicate request_size=255 [22:49:15]MH_SAM_APDU [22:49:15]CAPDU: 80 0D 02 02 FA 03 00 21 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 [22:49:15]Write to MH i2c: E2 02 01 21 65 80 0D 02 02 FA 00 03 00 21 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 00 00 32 [22:49:15]Write i2c OK [22:49:15]MH_I2C_Read... [22:49:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:49:16]Read from MH i2c: E2 [22:49:16]MH_I2C_Read... [22:49:16]Read from MH i2c: E2 03 00 [22:49:16]MH_I2C_Read... [22:49:16]Read from MH i2c: E2 03 00 21 65 00 90 00 FA [22:49:16]RAPDU: 90 00 [22:49:16]wFMCommunicate OK [22:49:16]wFMCommunicate request_size=255 [22:49:16]MH_SAM_APDU [22:49:16]CAPDU: 80 0D 02 02 FA 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 39 30 06 04 36 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9F D0 90 D0 9F D0 A0 D0 98 D0 9A D0 90 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 5F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 75 64 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [22:49:16]Write to MH i2c: E2 02 01 22 65 80 0D 02 02 FA 00 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 39 30 06 04 36 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9F D0 90 D0 9F D0 A0 D0 98 D0 9A D0 90 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 5F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 75 64 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 1C [22:49:16]Write i2c OK [22:49:16]MH_I2C_Read... [22:49:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:49:16]Read from MH i2c: E2 [22:49:16]MH_I2C_Read... [22:49:16]Read from MH i2c: E2 03 00 [22:49:16]MH_I2C_Read... [22:49:16]Read from MH i2c: E2 03 00 22 65 00 90 00 FB [22:49:16]RAPDU: 90 00 [22:49:16]wFMCommunicate OK [22:49:16]wFMCommunicate request_size=54 [22:49:16]MH_SAM_APDU [22:49:16]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 09 6A 01 00 35 04 06 00 B3 C8 8A 26 D7 EE [22:49:16]Write to MH i2c: E2 39 00 23 65 80 0D 02 02 31 00 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 09 6A 01 00 35 04 06 00 B3 C8 8A 26 D7 EE 00 00 8B [22:49:16]Write i2c OK [22:49:16]MH_I2C_Read... [22:49:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:49:16]Read from MH i2c: E2 [22:49:16]MH_I2C_Read... [22:49:16]Read from MH i2c: E2 03 00 [22:49:16]MH_I2C_Read... [22:49:16]Read from MH i2c: E2 03 00 23 65 00 90 00 FC [22:49:16]RAPDU: 90 00 [22:49:16]wFMCommunicate OK [22:49:16]wFMCommunicate request_size=4 [22:49:16]MH_SAM_APDU [22:49:16]CAPDU: 80 0D 03 02 [22:49:16]Write to MH i2c: E2 08 00 24 65 80 0D 03 02 00 00 00 00 04 [22:49:16]Write i2c OK [22:49:16]MH_I2C_Read... [22:49:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:49:16]Read from MH i2c: E2 [22:49:16]MH_I2C_Read... [22:49:16]Read from MH i2c: E2 0B 00 [22:49:16]MH_I2C_Read... [22:49:16]Read from MH i2c: E2 0B 00 24 65 00 BB F8 D8 26 0D 66 E1 83 90 00 8D [22:49:16]RAPDU: BB F8 D8 26 0D 66 E1 83 90 00 [22:49:16]wFMCommunicate OK [22:49:16]SAM_PROTO_SignData done [22:49:16]FM_MakeSignedData done [22:49:16]CreateOFDProtocolMessage [22:49:16]wFMCommunicate request_size=4 [22:49:16]MH_SAM_APDU [22:49:16]CAPDU: 80 11 00 00 [22:49:16]Write to MH i2c: E2 08 00 25 65 80 11 00 00 00 00 00 00 04 [22:49:16]Write i2c OK [22:49:16]MH_I2C_Read... [22:49:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:49:16]Read from MH i2c: E2 [22:49:16]MH_I2C_Read... [22:49:16]Read from MH i2c: E2 17 00 [22:49:16]MH_I2C_Read... [22:49:16]Read from MH i2c: E2 17 00 25 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 5B [22:49:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [22:49:16]wFMCommunicate OK [22:49:16]CreateOFDProtocolMessage done [22:49:16]OFDSenderStorePacket 92681 [22:49:16]StoreOFDPacket docnum=92681 [22:49:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 35 02 00 00 CE 3E 2D 02 19 78 5A 03 01 00 03 00 21 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 39 30 06 04 36 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9F D0 90 D0 9F D0 A0 D0 98 D0 9A D0 90 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 5F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 75 64 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 09 6A 01 00 35 04 06 00 B3 C8 8A 26 D7 EE BB F8 D8 26 0D 66 E1 83 [22:49:16]CheckFolder [22:49:16]dirname=/storage/ofd_packets [22:49:16]CheckFolder done [22:49:16]ProducePacketName [22:49:16]name=ofd_packets/00092681 [22:49:16]NVStorageSaveData ofd_packets/00092681 [22:49:16]File name is /storage/ofd_packets/00092681 [22:49:16]Write 595 bytes [22:49:16]NVStorageSaveData done [22:49:16]OFDSenderStorePacket done [22:49:16]KKMCreateOFDPacket done [22:49:16]NVStorageSaveData kkm_last_timestamp [22:49:16]File name is /storage/kkm_last_timestamp [22:49:16]Write 4 bytes [22:49:16]NVStorageSaveData done [22:49:16]ExternCall_PrintAddStr [22:49:16]wPrintStart [22:49:16]Write to MH i2c: 01 00 00 26 65 8B [22:49:16]Write i2c OK [22:49:16]MH_I2C_Read... [22:49:16]Read from MH i2c: 01 [22:49:16]MH_I2C_Read... [22:49:16]Read from MH i2c: 01 07 00 [22:49:16]MH_I2C_Read... [22:49:16]Read from MH i2c: 01 07 00 26 65 00 00 00 00 00 FF 0F A0 [22:49:16]RasterBufferAndPrint [22:49:16]line Счет N : (3)127570 [22:49:16]line ИНН: 02508201610067 [22:49:16]line Контрольно-Кассовый Чек [22:49:16]line ПРОДАЖА [22:49:16]line Товар: 5449000189349 [22:49:16]line Холодный чай Fuse манго ананас 0,5л [22:49:16]line 1.000 * 75.00 [22:49:16]line = 75.00 [22:49:16]line НДС 12% НСП 1% [22:49:16]line > о реализуемом товаре [22:49:16]line Товар: 5449000189325 [22:49:16]line Холодный чай Fuse персик 0,5л [22:49:16]line 1.000 * 75.00 [22:49:16]line = 75.00 [22:49:16]line НДС 12% НСП 1% [22:49:16]line > о реализуемом товаре [22:49:16]line Товар: 4870235681390 [22:49:16]line ЧИПСЫ SLANG СО ВКУСОМ ПАПРИКА 60Г [22:49:16]line 1.000 * 95.00 [22:49:16]line = 95.00 [22:49:16]line НДС 12% НСП 1% [22:49:16]line > о реализуемом товаре [22:49:16]line ИТОГО: 245.00 [22:49:16]line НСП 1% : 2.16 [22:49:16]line НДС 12% : 26.01 [22:49:16]line Наличными: 0.00 [22:49:16]line Безнал.: 245.00 [22:49:16]line Место: АЗС № 5 "Партнер Нефть" [22:49:16]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [22:49:16]line СНО: Общий режим [22:49:16]line Чек 129 15.09.2024 22:49 [22:49:16]line Смена: 507 ФФД: 1.0 [22:49:16]line ЗНМ: 03000000022 [22:49:16]line РНМ: 0000000000091423 [22:49:16]line Версия ККМ: 001 [22:49:16]line Платежная система: О! деньги [22:49:16]line ФМ: 0000000000874692 [22:49:16]line ФД: 92681 [22:49:16]line ФПД: 197673892632558 [22:49:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T224925&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92681&fm=197673892632558&tin=02508201610067®Number=0000000000091423&sum=24500 [22:49:16]line 0 [22:49:16]written 0, free lines is 4095 [22:49:16]OFD Sender: Processing packet 92681 [packets to send 63, broken 62] [22:49:16]ProducePacketName [22:49:16]name=ofd_packets/00092681 [22:49:16]OFD Sender: To server: pG, [22:49:16]CommunicateWithHost lk.salyk.kg:30040 [22:49:16]ConnectInit lk.salyk.kg [22:49:16]Connected sock=10 [22:49:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 35 02 00 00 CE 3E 2D 02 19 78 5A 03 01 00 03 00 21 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 39 30 06 04 36 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9F D0 90 D0 9F D0 A0 D0 98 D0 9A D0 90 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 5F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 75 64 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 09 6A 01 00 35 04 06 00 B3 C8 8A 26 D7 EE BB F8 D8 26 0D 66 E1 83 [22:49:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 CD AD 47 00 50 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 09 6A 01 00 F4 03 04 00 EB 0C E7 66 B6 04 01 00 00 4A D7 64 5D AE C2 6A 09 [22:49:16]CommunicateWithHost err = 0 [22:49:16]CheckOFDResponse [22:49:16]1017 (14) - 77093643461234 [22:49:16]1041 (16) - 0000000000874692 [22:49:16]1040 (4) - 92681 [22:49:16]1012 (4) - 15.09.2024 16:35 [22:49:16]1206 (1) - 0 [22:49:16]OFD Sender: Remove packet 92681 [22:49:16]ProducePacketName [22:49:16]name=ofd_packets/00092681 [22:49:16]NVStorageDeleteData [22:49:17]Write to MH i2c: 01 00 00 5F 65 C4 [22:49:17]Write i2c OK [22:49:17]MH_I2C_Read... [22:49:17]Read from MH i2c: 01 [22:49:17]MH_I2C_Read... [22:49:17]Read from MH i2c: 01 07 00 [22:49:17]MH_I2C_Read... [22:49:17]Read from MH i2c: 01 07 00 5F 65 00 00 00 00 00 38 0C 0F [22:49:17]RasterBufferAndPrint [22:49:17]line [22:49:17]line [22:49:17]line [22:49:17]line [22:49:17]line [22:49:17]written 0, free lines is 3138 [22:49:17]MH_Cut [22:49:17]Write to MH i2c: D1 01 00 66 65 01 9D [22:49:17]Write i2c OK [22:49:17]MH_I2C_Read... [22:49:17]Read from MH i2c: D1 [22:49:17]MH_I2C_Read... [22:49:17]Read from MH i2c: D1 01 00 [22:49:17]MH_I2C_Read... [22:49:17]Read from MH i2c: D1 01 00 66 65 00 9C [22:49:17]Write to MH i2c: 01 00 00 67 65 CC [22:49:17]Write i2c OK [22:49:17]MH_I2C_Read... [22:49:17]OFD Sender: No OFD packet to send [22:49:17]*** Cut start [22:49:17]*** Purtial cut [22:49:17]*** Stage 1: CUTSNS_PIN = 1 [22:49:19]Read from MH i2c: 01 [22:49:19]MH_I2C_Read... [22:49:19]*** Stop cut motor [22:49:19]*** Cut end [22:49:19]Read from MH i2c: 01 07 00 [22:49:19]MH_I2C_Read... [22:49:19]Read from MH i2c: 01 07 00 67 65 00 00 00 00 00 FF 0F E1 [22:49:19]process_action close_receipt done [22:49:19]requested_data is exist [22:49:19]produce_requested_data [22:49:19]requested_item fm.sn is exist - process it [22:49:19]wFMCommunicate request_size=4 [22:49:19]MH_SAM_APDU [22:49:19]CAPDU: 80 11 00 00 [22:49:19]Write to MH i2c: E2 08 00 68 65 80 11 00 00 00 00 00 00 47 [22:49:19]Write i2c OK [22:49:19]MH_I2C_Read... [22:49:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:49:19]Read from MH i2c: E2 [22:49:19]MH_I2C_Read... [22:49:19]Read from MH i2c: E2 17 00 [22:49:19]MH_I2C_Read... [22:49:19]Read from MH i2c: E2 17 00 68 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 9E [22:49:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [22:49:19]wFMCommunicate OK [22:49:19]requested_item fd.num is exist - process it [22:49:19]SAM_PROTO_GetFieldsCounters [22:49:19]wFMCommunicate request_size=4 [22:49:19]MH_SAM_APDU [22:49:19]CAPDU: 80 13 00 00 [22:49:19]Write to MH i2c: E2 08 00 69 65 80 13 00 00 00 00 00 00 4A [22:49:19]Write i2c OK [22:49:19]MH_I2C_Read... [22:49:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:49:20]Read from MH i2c: E2 [22:49:20]MH_I2C_Read... [22:49:20]Read from MH i2c: E2 62 00 [22:49:20]MH_I2C_Read... [22:49:20]Read from MH i2c: E2 62 00 69 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 09 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [22:49:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 09 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:49:20]wFMCommunicate OK [22:49:20]SAM_PROTO_GetFieldsCounters done [22:49:20]requested_item shift.num is exist - process it [22:49:20]requested_item shift.opened is exist - process it [22:49:20]req_shift_opened [22:49:20]FM_GetShiftState [22:49:20]SAM_PROTO_GetShiftState [22:49:20]wFMCommunicate request_size=4 [22:49:20]MH_SAM_APDU [22:49:20]CAPDU: 80 13 01 00 [22:49:20]Write to MH i2c: E2 08 00 6A 65 80 13 01 00 00 00 00 00 4C [22:49:20]Write i2c OK [22:49:20]MH_I2C_Read... [22:49:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:49:20]Read from MH i2c: E2 [22:49:20]MH_I2C_Read... [22:49:20]Read from MH i2c: E2 0E 00 [22:49:20]MH_I2C_Read... [22:49:20]Read from MH i2c: E2 0E 00 6A 65 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 CE [22:49:20]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [22:49:20]wFMCommunicate OK [22:49:20]SAM_PROTO_GetShiftState done [22:49:20]FM_GetShiftState done [22:49:20]req_shift_opened done [22:49:20]requested_item shift.open_date is exist - process it [22:49:20]req_shift_open_date [22:49:20]req_shift_open_date done [22:49:20]produce_requested_data done [22:49:20]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92681,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [22:49:20]process_action_free close_receipt [22:49:20]json_value_free [22:49:20]json_value_free done [22:49:20]process_json_proto returns [22:49:20]Send response to host [22:49:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92681,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [22:49:20]free response buf [22:49:20]execute_script done [22:49:20]execute_script returns [22:49:20]free content buf [22:49:20]Sock 9.Close socket [22:49:20]Sock 9.Thread stoped [22:49:22]OFD Sender: No OFD packet to send [22:49:27]OFD Sender: No OFD packet to send [22:49:32]OFD Sender: No OFD packet to send [22:49:37]OFD Sender: No OFD packet to send [22:49:42]OFD Sender: No OFD packet to send [22:49:43]accept exits with 8 [22:49:43]New connection [22:49:43]New thread 3066658148 created [22:49:43]Thread 3066801508 joined [22:49:43]Waiting for new connection... [22:49:43] Sock 8.Parse request [22:49:43]Sock 8.Check first char [22:49:43]Sock 8.First char is OK [22:49:43]request: POST /json_proto HTTP/1.0 [22:49:43]Method: POST [22:49:43]URL: /json_proto [22:49:43]Method is POST - this is cgi request [22:49:43]url: /json_proto [22:49:43]query_string will be loaded in cgi processing [22:49:43]execute_cgi json_proto POST (null) [22:49:43]execute_cgi path=json_proto method=POST [22:49:43]POST find Content-Length [22:49:43]Host: 172.17.57.71:8080 [22:49:43]Content-Length: 851 [22:49:43]Content-Type: application/json [22:49:43] [22:49:43]POST finish read [22:49:43]Found Content-Length = 851 [22:49:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127571", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42113164", "name": "\u0416\u0435\u0432 Orbit White Spearmint", "price" : 37.00, "quantity" : 1.000, "sum" : 37.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 79.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:49:43]execute_script... [22:49:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127571", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42113164", "name": "\u0416\u0435\u0432 Orbit White Spearmint", "price" : 37.00, "quantity" : 1.000, "sum" : 37.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 79.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:49:43]POST & json_proto [22:49:43]process_json_proto [22:49:43]json parsed OK: [22:49:43]protocol is kg_v1.0 [22:49:43]action value=close_receipt [22:49:43]process_action close_receipt [22:49:43]cmd_close_receipt [22:49:43]MH_GetDate [22:49:43]Write to MH i2c: F0 00 00 6B 65 BF [22:49:43]Write i2c OK [22:49:43]MH_I2C_Read... [22:49:43]Read from MH i2c: F0 [22:49:43]MH_I2C_Read... [22:49:43]Read from MH i2c: F0 09 00 [22:49:43]MH_I2C_Read... [22:49:43]Read from MH i2c: F0 09 00 6B 65 00 92 64 E7 66 33 3A A4 66 82 [22:49:43]GetLastDocTimeStamp 1726440565 [22:49:43]current date 1726440594 [22:49:43]FM_GetShiftState [22:49:43]SAM_PROTO_GetShiftState [22:49:43]wFMCommunicate request_size=4 [22:49:43]MH_SAM_APDU [22:49:43]CAPDU: 80 13 01 00 [22:49:43]Write to MH i2c: E2 08 00 6C 65 80 13 01 00 00 00 00 00 4E [22:49:43]Write i2c OK [22:49:43]MH_I2C_Read... [22:49:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:49:44]Read from MH i2c: E2 [22:49:44]MH_I2C_Read... [22:49:44]Read from MH i2c: E2 0E 00 [22:49:44]MH_I2C_Read... [22:49:44]Read from MH i2c: E2 0E 00 6C 65 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 D0 [22:49:44]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [22:49:44]wFMCommunicate OK [22:49:44]SAM_PROTO_GetShiftState done [22:49:44]FM_GetShiftState done [22:49:44]opened in 1726359809 [22:49:44]opened+sec_in_day 1726446209 [22:49:44]quantity*price = 4200 [22:49:44]sum+1 = 4201 [22:49:44]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 42113164 Жев Orbit White Spearmint 1.000 * 37.00 = 37.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 79.00 НСП 1% : 0.70 НДС 12% : 8.39 Наличными: 79.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 130 15.09.2024 22:49 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92682 ФПД: 251359320025284 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T224954&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92682&fm=251359320025284&tin=02508201610067®Number=0000000000091423&sum=7900 0 [22:49:45]StoreToDocumentArchive [22:49:45]shift 507 fd 92682 [22:49:45]save to /storage/0507/doc_00092682 [22:49:45]save last doc name /storage/0507/doc_00092682 to /storage/kkm_last_doc_name [22:49:45]save OK [22:49:45]Clear old archive folders... [22:49:45]ProcessDocumentItem done err = 0, tmpTLVsize=370 [22:49:45]tlvbuf is 00FC3720 [22:49:45]SAM_PROTO_ClearQueue [22:49:45]wFMCommunicate request_size=4 [22:49:45]MH_SAM_APDU [22:49:45]CAPDU: 80 09 00 00 [22:49:45]Write to MH i2c: E2 08 00 79 65 80 09 00 00 00 00 00 00 50 [22:49:45]Write i2c OK [22:49:45]MH_I2C_Read... [22:49:45]Read from MH i2c: E2 [22:49:45]MH_I2C_Read... [22:49:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:49:45]Read from MH i2c: E2 03 00 [22:49:45]MH_I2C_Read... [22:49:45]Read from MH i2c: E2 03 00 79 65 00 90 00 52 [22:49:45]RAPDU: 90 00 [22:49:45]wFMCommunicate OK [22:49:45]SAM_PROTO_ClearQueue done [22:49:45]KKMCreateOFDPacket [22:49:45]OFDProtocolAddRootSTLVToBuf [22:49:45]FM_MakeSignedData [22:49:45]FM_MakeSignedData [22:49:45]SAM_PROTO_SignData [22:49:45]wFMCommunicate request_size=4 [22:49:45]MH_SAM_APDU [22:49:45]CAPDU: 80 0D 01 02 [22:49:45]Write to MH i2c: E2 08 00 7A 65 80 0D 01 02 00 00 00 00 58 [22:49:45]Write i2c OK [22:49:45]MH_I2C_Read... [22:49:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:49:45]Read from MH i2c: E2 [22:49:45]MH_I2C_Read... [22:49:45]Read from MH i2c: E2 03 00 [22:49:45]MH_I2C_Read... [22:49:45]Read from MH i2c: E2 03 00 7A 65 00 90 00 53 [22:49:45]RAPDU: 90 00 [22:49:45]wFMCommunicate OK [22:49:45]wFMCommunicate request_size=255 [22:49:45]MH_SAM_APDU [22:49:45]CAPDU: 80 0D 02 02 FA 03 00 72 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 [22:49:45]Write to MH i2c: E2 02 01 7B 65 80 0D 02 02 FA 00 03 00 72 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 00 00 4E [22:49:45]Write i2c OK [22:49:45]MH_I2C_Read... [22:49:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:49:45]Read from MH i2c: E2 [22:49:45]MH_I2C_Read... [22:49:45]Read from MH i2c: E2 03 00 [22:49:45]MH_I2C_Read... [22:49:45]Read from MH i2c: E2 03 00 7B 65 00 90 00 54 [22:49:45]RAPDU: 90 00 [22:49:45]wFMCommunicate OK [22:49:45]wFMCommunicate request_size=129 [22:49:45]MH_SAM_APDU [22:49:45]CAPDU: 80 0D 02 02 7C 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 92 64 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0A 6A 01 00 35 04 06 00 E4 9C 26 FB 28 C4 [22:49:45]Write to MH i2c: E2 84 00 7C 65 80 0D 02 02 7C 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 92 64 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0A 6A 01 00 35 04 06 00 E4 9C 26 FB 28 C4 00 00 8F [22:49:45]Write i2c OK [22:49:45]MH_I2C_Read... [22:49:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:49:45]Read from MH i2c: E2 [22:49:45]MH_I2C_Read... [22:49:45]Read from MH i2c: E2 03 00 [22:49:45]MH_I2C_Read... [22:49:45]Read from MH i2c: E2 03 00 7C 65 00 90 00 55 [22:49:45]RAPDU: 90 00 [22:49:45]wFMCommunicate OK [22:49:45]wFMCommunicate request_size=4 [22:49:45]MH_SAM_APDU [22:49:45]CAPDU: 80 0D 03 02 [22:49:45]Write to MH i2c: E2 08 00 7D 65 80 0D 03 02 00 00 00 00 5D [22:49:45]Write i2c OK [22:49:45]MH_I2C_Read... [22:49:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:49:45]Read from MH i2c: E2 [22:49:45]MH_I2C_Read... [22:49:45]Read from MH i2c: E2 0B 00 [22:49:45]MH_I2C_Read... [22:49:45]Read from MH i2c: E2 0B 00 7D 65 00 3A 24 FD 07 C3 3E 1D F4 90 00 D2 [22:49:45]RAPDU: 3A 24 FD 07 C3 3E 1D F4 90 00 [22:49:45]wFMCommunicate OK [22:49:45]SAM_PROTO_SignData done [22:49:45]FM_MakeSignedData done [22:49:45]CreateOFDProtocolMessage [22:49:45]wFMCommunicate request_size=4 [22:49:45]MH_SAM_APDU [22:49:45]CAPDU: 80 11 00 00 [22:49:45]Write to MH i2c: E2 08 00 7E 65 80 11 00 00 00 00 00 00 5D [22:49:45]Write i2c OK [22:49:45]MH_I2C_Read... [22:49:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:49:45]Read from MH i2c: E2 [22:49:45]MH_I2C_Read... [22:49:45]Read from MH i2c: E2 17 00 [22:49:45]MH_I2C_Read... [22:49:45]Read from MH i2c: E2 17 00 7E 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B4 [22:49:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [22:49:45]wFMCommunicate OK [22:49:45]CreateOFDProtocolMessage done [22:49:45]OFDSenderStorePacket 92682 [22:49:45]StoreOFDPacket docnum=92682 [22:49:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 86 01 00 00 22 8F 7E 01 34 10 5A 03 01 00 03 00 72 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 92 64 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0A 6A 01 00 35 04 06 00 E4 9C 26 FB 28 C4 3A 24 FD 07 C3 3E 1D F4 [22:49:45]CheckFolder [22:49:45]dirname=/storage/ofd_packets [22:49:45]CheckFolder done [22:49:45]ProducePacketName [22:49:45]name=ofd_packets/00092682 [22:49:45]NVStorageSaveData ofd_packets/00092682 [22:49:45]File name is /storage/ofd_packets/00092682 [22:49:45]Write 420 bytes [22:49:45]NVStorageSaveData done [22:49:45]OFDSenderStorePacket done [22:49:45]KKMCreateOFDPacket done [22:49:45]NVStorageSaveData kkm_last_timestamp [22:49:45]File name is /storage/kkm_last_timestamp [22:49:45]Write 4 bytes [22:49:45]NVStorageSaveData done [22:49:45]ExternCall_PrintAddStr [22:49:45]wPrintStart [22:49:45]Write to MH i2c: 01 00 00 7F 65 E4 [22:49:45]Write i2c OK [22:49:45]MH_I2C_Read... [22:49:45]Read from MH i2c: 01 [22:49:45]MH_I2C_Read... [22:49:45]Read from MH i2c: 01 07 00 [22:49:45]MH_I2C_Read... [22:49:45]Read from MH i2c: 01 07 00 7F 65 00 00 00 00 00 FF 0F F9 [22:49:45]RasterBufferAndPrint [22:49:45]line Счет N : (3)127571 [22:49:45]line ИНН: 02508201610067 [22:49:45]line Контрольно-Кассовый Чек [22:49:45]line ПРОДАЖА [22:49:45]line Товар: 5449000005489 [22:49:45]line Вода Бонаква 1л б/г [22:49:45]line 1.000 * 42.00 [22:49:45]line = 42.00 [22:49:45]line НДС 12% НСП 1% [22:49:45]line > о реализуемом товаре [22:49:45]line Товар: 42113164 [22:49:45]line Жев Orbit White Spearmint [22:49:45]line 1.000 * 37.00 [22:49:45]line = 37.00 [22:49:45]line НДС 12% НСП 1% [22:49:45]line > о реализуемом товаре [22:49:45]line ИТОГО: 79.00 [22:49:45]line НСП 1% : 0.70 [22:49:45]line НДС 12% : 8.39 [22:49:46]line Наличными: 79.00 [22:49:46]line Безнал.: 0.00 [22:49:46]line Место: АЗС № 5 "Партнер Нефть" [22:49:46]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [22:49:46]line СНО: Общий режим [22:49:46]line Чек 130 15.09.2024 22:49 [22:49:46]line Смена: 507 ФФД: 1.0 [22:49:46]line ЗНМ: 03000000022 [22:49:46]line РНМ: 0000000000091423 [22:49:46]line Версия ККМ: 001 [22:49:46]line ФМ: 0000000000874692 [22:49:46]line ФД: 92682 [22:49:46]line ФПД: 251359320025284 [22:49:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T224954&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92682&fm=251359320025284&tin=02508201610067®Number=0000000000091423&sum=7900 [22:49:46]line 0 [22:49:46]OFD Sender: Processing packet 92682 [packets to send 63, broken 62] [22:49:46]ProducePacketName [22:49:46]name=ofd_packets/00092682 [22:49:46]OFD Sender: To server: pG, [22:49:46]CommunicateWithHost lk.salyk.kg:30040 [22:49:46]ConnectInit lk.salyk.kg [22:49:46]written 0, free lines is 4095 [22:49:46]Connected sock=10 [22:49:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 86 01 00 00 22 8F 7E 01 34 10 5A 03 01 00 03 00 72 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 92 64 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0A 6A 01 00 35 04 06 00 E4 9C 26 FB 28 C4 3A 24 FD 07 C3 3E 1D F4 [22:49:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 9B BF 47 00 3E AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0A 6A 01 00 F4 03 04 00 09 0D E7 66 B6 04 01 00 00 B3 22 9A 94 78 A4 8C 55 [22:49:46]CommunicateWithHost err = 0 [22:49:46]CheckOFDResponse [22:49:46]1017 (14) - 77093643461234 [22:49:46]1041 (16) - 0000000000874692 [22:49:46]1040 (4) - 92682 [22:49:46]1012 (4) - 15.09.2024 16:36 [22:49:46]1206 (1) - 0 [22:49:46]OFD Sender: Remove packet 92682 [22:49:46]ProducePacketName [22:49:46]name=ofd_packets/00092682 [22:49:46]NVStorageDeleteData [22:49:46]Write to MH i2c: 01 00 00 AD 65 12 [22:49:46]Write i2c OK [22:49:46]MH_I2C_Read... [22:49:46]Read from MH i2c: 01 [22:49:46]MH_I2C_Read... [22:49:46]Read from MH i2c: 01 07 00 [22:49:46]MH_I2C_Read... [22:49:46]Read from MH i2c: 01 07 00 AD 65 00 00 00 00 00 D0 0C F5 [22:49:46]RasterBufferAndPrint [22:49:46]line [22:49:46]line [22:49:46]line [22:49:46]line [22:49:46]line [22:49:46]written 0, free lines is 3288 [22:49:46]MH_Cut [22:49:46]Write to MH i2c: D1 01 00 B4 65 01 EB [22:49:46]Write i2c OK [22:49:46]MH_I2C_Read... [22:49:46]Read from MH i2c: D1 [22:49:46]MH_I2C_Read... [22:49:46]Read from MH i2c: D1 01 00 [22:49:46]MH_I2C_Read... [22:49:46]Read from MH i2c: D1 01 00 B4 65 00 EA [22:49:46]Write to MH i2c: 01 00 00 B5 65 1A [22:49:46]Write i2c OK [22:49:46]MH_I2C_Read... [22:49:46]OFD Sender: No OFD packet to send [22:49:47]*** Cut start [22:49:47]*** Purtial cut [22:49:47]*** Stage 1: CUTSNS_PIN = 1 [22:49:49]Read from MH i2c: 01 [22:49:49]MH_I2C_Read... [22:49:49]*** Stop cut motor [22:49:49]*** Cut end [22:49:49]Read from MH i2c: 01 07 00 [22:49:49]MH_I2C_Read... [22:49:49]Read from MH i2c: 01 07 00 B5 65 00 00 00 00 00 FF 0F 2F [22:49:49]process_action close_receipt done [22:49:49]requested_data is exist [22:49:49]produce_requested_data [22:49:49]requested_item fm.sn is exist - process it [22:49:49]wFMCommunicate request_size=4 [22:49:49]MH_SAM_APDU [22:49:49]CAPDU: 80 11 00 00 [22:49:49]Write to MH i2c: E2 08 00 B6 65 80 11 00 00 00 00 00 00 95 [22:49:49]Write i2c OK [22:49:49]MH_I2C_Read... [22:49:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:49:49]Read from MH i2c: E2 [22:49:49]MH_I2C_Read... [22:49:49]Read from MH i2c: E2 17 00 [22:49:49]MH_I2C_Read... [22:49:49]Read from MH i2c: E2 17 00 B6 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 EC [22:49:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [22:49:49]wFMCommunicate OK [22:49:49]requested_item fd.num is exist - process it [22:49:49]SAM_PROTO_GetFieldsCounters [22:49:49]wFMCommunicate request_size=4 [22:49:49]MH_SAM_APDU [22:49:49]CAPDU: 80 13 00 00 [22:49:49]Write to MH i2c: E2 08 00 B7 65 80 13 00 00 00 00 00 00 98 [22:49:49]Write i2c OK [22:49:49]MH_I2C_Read... [22:49:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:49:49]Read from MH i2c: E2 [22:49:49]MH_I2C_Read... [22:49:49]Read from MH i2c: E2 62 00 [22:49:49]MH_I2C_Read... [22:49:49]Read from MH i2c: E2 62 00 B7 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 0A 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [22:49:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 0A 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:49:49]wFMCommunicate OK [22:49:49]SAM_PROTO_GetFieldsCounters done [22:49:49]requested_item shift.num is exist - process it [22:49:49]requested_item shift.opened is exist - process it [22:49:49]req_shift_opened [22:49:49]FM_GetShiftState [22:49:49]SAM_PROTO_GetShiftState [22:49:49]wFMCommunicate request_size=4 [22:49:49]MH_SAM_APDU [22:49:49]CAPDU: 80 13 01 00 [22:49:49]Write to MH i2c: E2 08 00 B8 65 80 13 01 00 00 00 00 00 9A [22:49:49]Write i2c OK [22:49:49]MH_I2C_Read... [22:49:49]Read from MH i2c: E2 [22:49:49]MH_I2C_Read... [22:49:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:49:49]Read from MH i2c: E2 0E 00 [22:49:49]MH_I2C_Read... [22:49:49]Read from MH i2c: E2 0E 00 B8 65 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 1C [22:49:49]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [22:49:49]wFMCommunicate OK [22:49:49]SAM_PROTO_GetShiftState done [22:49:49]FM_GetShiftState done [22:49:49]req_shift_opened done [22:49:49]requested_item shift.open_date is exist - process it [22:49:49]req_shift_open_date [22:49:49]req_shift_open_date done [22:49:49]produce_requested_data done [22:49:49]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92682,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [22:49:49]process_action_free close_receipt [22:49:49]json_value_free [22:49:49]json_value_free done [22:49:49]process_json_proto returns [22:49:49]Send response to host [22:49:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92682,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [22:49:49]free response buf [22:49:49]execute_script done [22:49:49]execute_script returns [22:49:49]free content buf [22:49:49]Sock 8.Close socket [22:49:49]Sock 8.Thread stoped [22:49:51]OFD Sender: No OFD packet to send [22:49:56]OFD Sender: No OFD packet to send [22:50:01]OFD Sender: No OFD packet to send [22:50:06]OFD Sender: No OFD packet to send [22:50:11]OFD Sender: No OFD packet to send [22:50:16]OFD Sender: No OFD packet to send [22:50:21]OFD Sender: No OFD packet to send [22:50:26]OFD Sender: No OFD packet to send [22:50:31]OFD Sender: No OFD packet to send [22:50:36]OFD Sender: No OFD packet to send [22:50:41]OFD Sender: No OFD packet to send [22:50:46]OFD Sender: No OFD packet to send [22:50:51]OFD Sender: No OFD packet to send [22:50:56]OFD Sender: No OFD packet to send [22:51:01]OFD Sender: No OFD packet to send [22:51:06]OFD Sender: No OFD packet to send [22:51:07]accept exits with 9 [22:51:07]New connection [22:51:07]New thread 3066801508 created [22:51:07]Thread 3066658148 joined [22:51:07]Waiting for new connection... [22:51:07] Sock 9.Parse request [22:51:07]Sock 9.Check first char [22:51:07]Sock 9.First char is OK [22:51:07]request: POST /json_proto HTTP/1.0 [22:51:07]Method: POST [22:51:07]URL: /json_proto [22:51:07]Method is POST - this is cgi request [22:51:07]url: /json_proto [22:51:07]query_string will be loaded in cgi processing [22:51:07]execute_cgi json_proto POST (null) [22:51:07]execute_cgi path=json_proto method=POST [22:51:07]POST find Content-Length [22:51:07]Host: 172.17.57.71:8080 [22:51:07]Content-Length: 1734 [22:51:07]Content-Type: application/json [22:51:07] [22:51:07]POST finish read [22:51:07]Found Content-Length = 1734 [22:51:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127572", "tax_sys" : 0, "items" : [ { "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160181", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4780111550484", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0438\u0437 \u0427\u0415\u0420\u041D\u041E\u0413\u041E\u041B \u0433\u0430\u0437 \u0442\u0430\u0440\u0445\u0443\u043D \u0441\u0442 0,5\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 323.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:51:07]execute_script... [22:51:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127572", "tax_sys" : 0, "items" : [ { "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160181", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4780111550484", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0438\u0437 \u0427\u0415\u0420\u041D\u041E\u0413\u041E\u041B \u0433\u0430\u0437 \u0442\u0430\u0440\u0445\u0443\u043D \u0441\u0442 0,5\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 323.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:51:07]POST & json_proto [22:51:07]process_json_proto [22:51:07]json parsed OK: [22:51:07]protocol is kg_v1.0 [22:51:07]action value=close_receipt [22:51:07]process_action close_receipt [22:51:07]cmd_close_receipt [22:51:07]MH_GetDate [22:51:07]Write to MH i2c: F0 00 00 B9 65 0D [22:51:07]Write i2c OK [22:51:07]MH_I2C_Read... [22:51:07]Read from MH i2c: F0 [22:51:07]MH_I2C_Read... [22:51:07]Read from MH i2c: F0 09 00 [22:51:07]MH_I2C_Read... [22:51:07]Read from MH i2c: F0 09 00 B9 65 00 E6 64 E7 66 33 3A A4 66 24 [22:51:07]GetLastDocTimeStamp 1726440594 [22:51:07]current date 1726440678 [22:51:07]FM_GetShiftState [22:51:07]SAM_PROTO_GetShiftState [22:51:07]wFMCommunicate request_size=4 [22:51:07]MH_SAM_APDU [22:51:07]CAPDU: 80 13 01 00 [22:51:07]Write to MH i2c: E2 08 00 BA 65 80 13 01 00 00 00 00 00 9C [22:51:07]Write i2c OK [22:51:07]MH_I2C_Read... [22:51:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:51:07]Read from MH i2c: E2 [22:51:07]MH_I2C_Read... [22:51:07]Read from MH i2c: E2 0E 00 [22:51:07]MH_I2C_Read... [22:51:07]Read from MH i2c: E2 0E 00 BA 65 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 1E [22:51:07]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [22:51:07]wFMCommunicate OK [22:51:07]SAM_PROTO_GetShiftState done [22:51:07]FM_GetShiftState done [22:51:07]opened in 1726359809 [22:51:07]opened+sec_in_day 1726446209 [22:51:07]quantity*price = 8900 [22:51:07]sum+1 = 8901 [22:51:07]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160181 Вода Байтик 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4780111550484 Напиток из ЧЕРНОГОЛ газ тархун ст 0,5л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 323.00 НСП 1% : 2.86 НДС 12% : 34.29 Наличными: 0.00 Безнал.: 323.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 131 15.09.2024 22:51 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92683 ФПД: 67033357088755 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T225118&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92683&fm=67033357088755&tin=02508201610067®Number=0000000000091423&sum=32300 0 [22:51:08]StoreToDocumentArchive [22:51:08]shift 507 fd 92683 [22:51:08]save to /storage/0507/doc_00092683 [22:51:08]save last doc name /storage/0507/doc_00092683 to /storage/kkm_last_doc_name [22:51:08]save OK [22:51:08]Clear old archive folders... [22:51:08]ProcessDocumentItem done err = 0, tmpTLVsize=641 [22:51:08]tlvbuf is 01040FF0 [22:51:08]SAM_PROTO_ClearQueue [22:51:08]wFMCommunicate request_size=4 [22:51:08]MH_SAM_APDU [22:51:08]CAPDU: 80 09 00 00 [22:51:08]Write to MH i2c: E2 08 00 C7 65 80 09 00 00 00 00 00 00 9E [22:51:08]Write i2c OK [22:51:08]MH_I2C_Read... [22:51:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:51:08]Read from MH i2c: E2 [22:51:08]MH_I2C_Read... [22:51:08]Read from MH i2c: E2 03 00 [22:51:08]MH_I2C_Read... [22:51:08]Read from MH i2c: E2 03 00 C7 65 00 90 00 A0 [22:51:08]RAPDU: 90 00 [22:51:08]wFMCommunicate OK [22:51:08]SAM_PROTO_ClearQueue done [22:51:08]KKMCreateOFDPacket [22:51:08]OFDProtocolAddRootSTLVToBuf [22:51:08]FM_MakeSignedData [22:51:08]FM_MakeSignedData [22:51:08]SAM_PROTO_SignData [22:51:08]wFMCommunicate request_size=4 [22:51:08]MH_SAM_APDU [22:51:08]CAPDU: 80 0D 01 02 [22:51:08]Write to MH i2c: E2 08 00 C8 65 80 0D 01 02 00 00 00 00 A6 [22:51:08]Write i2c OK [22:51:08]MH_I2C_Read... [22:51:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:51:08]Read from MH i2c: E2 [22:51:08]MH_I2C_Read... [22:51:08]Read from MH i2c: E2 03 00 [22:51:08]MH_I2C_Read... [22:51:08]Read from MH i2c: E2 03 00 C8 65 00 90 00 A1 [22:51:08]RAPDU: 90 00 [22:51:08]wFMCommunicate OK [22:51:08]wFMCommunicate request_size=255 [22:51:08]MH_SAM_APDU [22:51:08]CAPDU: 80 0D 02 02 FA 03 00 81 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 [22:51:08]Write to MH i2c: E2 02 01 C9 65 80 0D 02 02 FA 00 03 00 81 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 00 00 70 [22:51:08]Write i2c OK [22:51:08]MH_I2C_Read... [22:51:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:51:09]Read from MH i2c: E2 [22:51:09]MH_I2C_Read... [22:51:09]Read from MH i2c: E2 03 00 [22:51:09]MH_I2C_Read... [22:51:09]Read from MH i2c: E2 03 00 C9 65 00 90 00 A2 [22:51:09]RAPDU: 90 00 [22:51:09]wFMCommunicate OK [22:51:09]wFMCommunicate request_size=255 [22:51:09]MH_SAM_APDU [22:51:09]CAPDU: 80 0D 02 02 FA 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 37 38 30 31 31 31 35 35 30 34 38 34 06 04 43 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B8 D0 B7 20 D0 A7 D0 95 D0 A0 D0 9D D0 9E D0 93 D0 9E D0 9B 20 D0 B3 D0 B0 D0 B7 20 D1 82 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 D1 81 D1 82 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 [22:51:09]Write to MH i2c: E2 02 01 CA 65 80 0D 02 02 FA 00 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 37 38 30 31 31 31 35 35 30 34 38 34 06 04 43 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B8 D0 B7 20 D0 A7 D0 95 D0 A0 D0 9D D0 9E D0 93 D0 9E D0 9B 20 D0 B3 D0 B0 D0 B7 20 D1 82 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 D1 81 D1 82 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 00 00 A5 [22:51:09]Write i2c OK [22:51:09]MH_I2C_Read... [22:51:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:51:09]Read from MH i2c: E2 [22:51:09]MH_I2C_Read... [22:51:09]Read from MH i2c: E2 03 00 [22:51:09]MH_I2C_Read... [22:51:09]Read from MH i2c: E2 03 00 CA 65 00 90 00 A3 [22:51:09]RAPDU: 90 00 [22:51:09]wFMCommunicate OK [22:51:09]wFMCommunicate request_size=150 [22:51:09]MH_SAM_APDU [22:51:09]CAPDU: 80 0D 02 02 91 01 00 01 F7 03 06 00 1E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 7E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 E6 64 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0B 6A 01 00 35 04 06 00 3C F7 6B 6F F7 F3 [22:51:09]Write to MH i2c: E2 99 00 CB 65 80 0D 02 02 91 00 01 00 01 F7 03 06 00 1E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 7E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 E6 64 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0B 6A 01 00 35 04 06 00 3C F7 6B 6F F7 F3 00 00 B7 [22:51:09]Write i2c OK [22:51:09]MH_I2C_Read... [22:51:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:51:09]Read from MH i2c: E2 [22:51:09]MH_I2C_Read... [22:51:09]Read from MH i2c: E2 03 00 [22:51:09]MH_I2C_Read... [22:51:09]Read from MH i2c: E2 03 00 CB 65 00 90 00 A4 [22:51:09]RAPDU: 90 00 [22:51:09]wFMCommunicate OK [22:51:09]wFMCommunicate request_size=4 [22:51:09]MH_SAM_APDU [22:51:09]CAPDU: 80 0D 03 02 [22:51:09]Write to MH i2c: E2 08 00 CC 65 80 0D 03 02 00 00 00 00 AC [22:51:09]Write i2c OK [22:51:09]MH_I2C_Read... [22:51:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:51:09]Read from MH i2c: E2 [22:51:09]MH_I2C_Read... [22:51:09]Read from MH i2c: E2 0B 00 [22:51:09]MH_I2C_Read... [22:51:09]Read from MH i2c: E2 0B 00 CC 65 00 B9 E2 1D 9D 48 BC 0B A6 90 00 B7 [22:51:09]RAPDU: B9 E2 1D 9D 48 BC 0B A6 90 00 [22:51:09]wFMCommunicate OK [22:51:09]SAM_PROTO_SignData done [22:51:09]FM_MakeSignedData done [22:51:09]CreateOFDProtocolMessage [22:51:09]wFMCommunicate request_size=4 [22:51:09]MH_SAM_APDU [22:51:09]CAPDU: 80 11 00 00 [22:51:09]Write to MH i2c: E2 08 00 CD 65 80 11 00 00 00 00 00 00 AC [22:51:09]Write i2c OK [22:51:09]MH_I2C_Read... [22:51:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:51:09]Read from MH i2c: E2 [22:51:09]MH_I2C_Read... [22:51:09]Read from MH i2c: E2 17 00 [22:51:09]MH_I2C_Read... [22:51:09]Read from MH i2c: E2 17 00 CD 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 03 [22:51:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [22:51:09]wFMCommunicate OK [22:51:09]CreateOFDProtocolMessage done [22:51:09]OFDSenderStorePacket 92683 [22:51:09]StoreOFDPacket docnum=92683 [22:51:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 95 02 00 00 76 8C 8D 02 E1 3F 5A 03 01 00 03 00 81 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 37 38 30 31 31 31 35 35 30 34 38 34 06 04 43 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B8 D0 B7 20 D0 A7 D0 95 D0 A0 D0 9D D0 9E D0 93 D0 9E D0 9B 20 D0 B3 D0 B0 D0 B7 20 D1 82 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 D1 81 D1 82 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 7E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 E6 64 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0B 6A 01 00 35 04 06 00 3C F7 6B 6F F7 F3 B9 E2 1D 9D 48 BC 0B A6 [22:51:09]CheckFolder [22:51:09]dirname=/storage/ofd_packets [22:51:09]CheckFolder done [22:51:09]ProducePacketName [22:51:09]name=ofd_packets/00092683 [22:51:09]NVStorageSaveData ofd_packets/00092683 [22:51:09]File name is /storage/ofd_packets/00092683 [22:51:09]Write 691 bytes [22:51:09]NVStorageSaveData done [22:51:09]OFDSenderStorePacket done [22:51:09]KKMCreateOFDPacket done [22:51:09]NVStorageSaveData kkm_last_timestamp [22:51:09]File name is /storage/kkm_last_timestamp [22:51:09]Write 4 bytes [22:51:09]NVStorageSaveData done [22:51:09]ExternCall_PrintAddStr [22:51:09]wPrintStart [22:51:09]Write to MH i2c: 01 00 00 CE 65 33 [22:51:09]Write i2c OK [22:51:09]MH_I2C_Read... [22:51:09]Read from MH i2c: 01 [22:51:09]MH_I2C_Read... [22:51:09]Read from MH i2c: 01 07 00 [22:51:09]MH_I2C_Read... [22:51:09]Read from MH i2c: 01 07 00 CE 65 00 00 00 00 00 FF 0F 48 [22:51:09]RasterBufferAndPrint [22:51:09]line Счет N : (3)127572 [22:51:09]line ИНН: 02508201610067 [22:51:09]line Контрольно-Кассовый Чек [22:51:09]line ПРОДАЖА [22:51:10]line Товар: 5000159390729 [22:51:10]line Шок Батончик Твикс Экстра 82г [22:51:10]line 1.000 * 89.00 [22:51:10]line = 89.00 [22:51:10]line НДС 12% НСП 1% [22:51:10]line > о реализуемом товаре [22:51:10]line Товар: 4607065001445 [22:51:10]line Шок батончик Snickers 50,5г [22:51:10]line 1.000 * 59.00 [22:51:10]line = 59.00 [22:51:10]line НДС 12% НСП 1% [22:51:10]line > о реализуемом товаре [22:51:10]line Товар: 4700000160181 [22:51:10]line Вода Байтик 1л [22:51:10]line 1.000 * 50.00 [22:51:10]line = 50.00 [22:51:10]line НДС 12% НСП 1% [22:51:10]line > о реализуемом товаре [22:51:10]line Товар: 4780111550484 [22:51:10]line Напиток из ЧЕРНОГОЛ газ тархун ст 0,5л [22:51:10]line 1.000 * 125.00 [22:51:10]line = 125.00 [22:51:10]line НДС 12% НСП 1% [22:51:10]line > о реализуемом товаре [22:51:10]line ИТОГО: 323.00 [22:51:10]line НСП 1% : 2.86 [22:51:10]line НДС 12% : 34.29 [22:51:10]line Наличными: 0.00 [22:51:10]line Безнал.: 323.00 [22:51:10]line Место: АЗС № 5 "Партнер Нефть" [22:51:10]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [22:51:10]line СНО: Общий режим [22:51:10]line Чек 131 15.09.2024 22:51 [22:51:10]line Смена: 507 ФФД: 1.0 [22:51:10]line ЗНМ: 03000000022 [22:51:10]line РНМ: 0000000000091423 [22:51:10]line Версия ККМ: 001 [22:51:10]line Платежная система: Бакай Банк [22:51:10]line ФМ: 0000000000874692 [22:51:10]line ФД: 92683 [22:51:10]line ФПД: 67033357088755 [22:51:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T225118&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92683&fm=67033357088755&tin=02508201610067®Number=0000000000091423&sum=32300 [22:51:10]OFD Sender: Processing packet 92683 [packets to send 63, broken 62] [22:51:10]ProducePacketName [22:51:10]name=ofd_packets/00092683 [22:51:10]OFD Sender: To server: pG, [22:51:10]CommunicateWithHost lk.salyk.kg:30040 [22:51:10]ConnectInit lk.salyk.kg [22:51:10]line 0 [22:51:10]written 0, free lines is 4095 [22:51:10]Connected sock=10 [22:51:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 95 02 00 00 76 8C 8D 02 E1 3F 5A 03 01 00 03 00 81 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 37 38 30 31 31 31 35 35 30 34 38 34 06 04 43 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B8 D0 B7 20 D0 A7 D0 95 D0 A0 D0 9D D0 9E D0 93 D0 9E D0 9B 20 D0 B3 D0 B0 D0 B7 20 D1 82 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 D1 81 D1 82 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 7E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 E6 64 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0B 6A 01 00 35 04 06 00 3C F7 6B 6F F7 F3 B9 E2 1D 9D 48 BC 0B A6 [22:51:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 C9 2B 47 00 34 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0B 6A 01 00 F4 03 04 00 5D 0D E7 66 B6 04 01 00 00 98 E6 AD 1C 12 2E AB 51 [22:51:10]CommunicateWithHost err = 0 [22:51:10]CheckOFDResponse [22:51:10]1017 (14) - 77093643461234 [22:51:10]1041 (16) - 0000000000874692 [22:51:10]1040 (4) - 92683 [22:51:10]1012 (4) - 15.09.2024 16:37 [22:51:10]1206 (1) - 0 [22:51:10]OFD Sender: Remove packet 92683 [22:51:10]ProducePacketName [22:51:10]name=ofd_packets/00092683 [22:51:10]NVStorageDeleteData [22:51:10]Write to MH i2c: 01 00 00 0C 66 72 [22:51:10]Write i2c OK [22:51:10]MH_I2C_Read... [22:51:10]Read from MH i2c: 01 [22:51:10]MH_I2C_Read... [22:51:10]Read from MH i2c: 01 07 00 [22:51:10]MH_I2C_Read... [22:51:10]Read from MH i2c: 01 07 00 0C 66 00 00 00 00 00 06 0C 8B [22:51:10]RasterBufferAndPrint [22:51:10]line [22:51:10]line [22:51:10]line [22:51:10]line [22:51:10]line [22:51:10]written 0, free lines is 3090 [22:51:10]MH_Cut [22:51:10]Write to MH i2c: D1 01 00 13 66 01 4B [22:51:10]Write i2c OK [22:51:10]MH_I2C_Read... [22:51:10]Read from MH i2c: D1 [22:51:10]MH_I2C_Read... [22:51:10]Read from MH i2c: D1 01 00 [22:51:10]MH_I2C_Read... [22:51:10]Read from MH i2c: D1 01 00 13 66 00 4A [22:51:10]Write to MH i2c: 01 00 00 14 66 7A [22:51:10]Write i2c OK [22:51:10]MH_I2C_Read... [22:51:10]OFD Sender: No OFD packet to send [22:51:11]*** Cut start [22:51:11]*** Purtial cut [22:51:11]*** Stage 1: CUTSNS_PIN = 1 [22:51:13]Read from MH i2c: 01 [22:51:13]MH_I2C_Read... [22:51:13]*** Stop cut motor [22:51:13]*** Cut end [22:51:13]Read from MH i2c: 01 07 00 [22:51:13]MH_I2C_Read... [22:51:13]Read from MH i2c: 01 07 00 14 66 00 00 00 00 00 FF 0F 8F [22:51:13]process_action close_receipt done [22:51:13]requested_data is exist [22:51:13]produce_requested_data [22:51:13]requested_item fm.sn is exist - process it [22:51:13]wFMCommunicate request_size=4 [22:51:13]MH_SAM_APDU [22:51:13]CAPDU: 80 11 00 00 [22:51:13]Write to MH i2c: E2 08 00 15 66 80 11 00 00 00 00 00 00 F5 [22:51:13]Write i2c OK [22:51:13]MH_I2C_Read... [22:51:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:51:13]Read from MH i2c: E2 [22:51:13]MH_I2C_Read... [22:51:13]Read from MH i2c: E2 17 00 [22:51:13]MH_I2C_Read... [22:51:13]Read from MH i2c: E2 17 00 15 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 4C [22:51:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [22:51:13]wFMCommunicate OK [22:51:13]requested_item fd.num is exist - process it [22:51:13]SAM_PROTO_GetFieldsCounters [22:51:13]wFMCommunicate request_size=4 [22:51:13]MH_SAM_APDU [22:51:13]CAPDU: 80 13 00 00 [22:51:13]Write to MH i2c: E2 08 00 16 66 80 13 00 00 00 00 00 00 F8 [22:51:13]Write i2c OK [22:51:13]MH_I2C_Read... [22:51:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:51:13]Read from MH i2c: E2 [22:51:13]MH_I2C_Read... [22:51:13]Read from MH i2c: E2 62 00 [22:51:13]MH_I2C_Read... [22:51:13]Read from MH i2c: E2 62 00 16 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 0B 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [22:51:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 0B 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:51:13]wFMCommunicate OK [22:51:13]SAM_PROTO_GetFieldsCounters done [22:51:13]requested_item shift.num is exist - process it [22:51:13]requested_item shift.opened is exist - process it [22:51:13]req_shift_opened [22:51:13]FM_GetShiftState [22:51:13]SAM_PROTO_GetShiftState [22:51:13]wFMCommunicate request_size=4 [22:51:13]MH_SAM_APDU [22:51:13]CAPDU: 80 13 01 00 [22:51:13]Write to MH i2c: E2 08 00 17 66 80 13 01 00 00 00 00 00 FA [22:51:13]Write i2c OK [22:51:13]MH_I2C_Read... [22:51:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:51:13]Read from MH i2c: E2 [22:51:13]MH_I2C_Read... [22:51:13]Read from MH i2c: E2 0E 00 [22:51:13]MH_I2C_Read... [22:51:13]Read from MH i2c: E2 0E 00 17 66 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 7C [22:51:13]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [22:51:13]wFMCommunicate OK [22:51:13]SAM_PROTO_GetShiftState done [22:51:13]FM_GetShiftState done [22:51:13]req_shift_opened done [22:51:13]requested_item shift.open_date is exist - process it [22:51:13]req_shift_open_date [22:51:13]req_shift_open_date done [22:51:13]produce_requested_data done [22:51:13]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92683,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [22:51:13]process_action_free close_receipt [22:51:13]json_value_free [22:51:13]json_value_free done [22:51:13]process_json_proto returns [22:51:13]Send response to host [22:51:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92683,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [22:51:13]free response buf [22:51:13]execute_script done [22:51:13]execute_script returns [22:51:13]free content buf [22:51:13]Sock 9.Close socket [22:51:13]Sock 9.Thread stoped [22:51:15]OFD Sender: No OFD packet to send [22:51:20]OFD Sender: No OFD packet to send [22:51:25]OFD Sender: No OFD packet to send [22:51:30]OFD Sender: No OFD packet to send [22:51:35]OFD Sender: No OFD packet to send [22:51:40]OFD Sender: No OFD packet to send [22:51:45]OFD Sender: No OFD packet to send [22:51:50]OFD Sender: No OFD packet to send [22:51:55]OFD Sender: No OFD packet to send [22:52:00]OFD Sender: No OFD packet to send [22:52:06]OFD Sender: No OFD packet to send [22:52:11]OFD Sender: No OFD packet to send [22:52:16]OFD Sender: No OFD packet to send [22:52:21]OFD Sender: No OFD packet to send [22:52:26]OFD Sender: No OFD packet to send [22:52:31]OFD Sender: No OFD packet to send [22:52:36]OFD Sender: No OFD packet to send [22:52:41]OFD Sender: No OFD packet to send [22:52:46]OFD Sender: No OFD packet to send [22:52:51]OFD Sender: No OFD packet to send [22:52:56]OFD Sender: No OFD packet to send [22:53:01]OFD Sender: No OFD packet to send [22:53:06]OFD Sender: No OFD packet to send [22:53:11]OFD Sender: No OFD packet to send [22:53:16]OFD Sender: No OFD packet to send [22:53:21]OFD Sender: No OFD packet to send [22:53:26]OFD Sender: No OFD packet to send [22:53:31]OFD Sender: No OFD packet to send [22:53:36]OFD Sender: No OFD packet to send [22:53:41]OFD Sender: No OFD packet to send [22:53:46]OFD Sender: No OFD packet to send [22:53:51]OFD Sender: No OFD packet to send [22:53:56]OFD Sender: No OFD packet to send [22:54:01]OFD Sender: No OFD packet to send [22:54:06]OFD Sender: No OFD packet to send [22:54:11]OFD Sender: No OFD packet to send [22:54:16]OFD Sender: No OFD packet to send [22:54:21]OFD Sender: No OFD packet to send [22:54:26]OFD Sender: No OFD packet to send [22:54:31]OFD Sender: No OFD packet to send [22:54:36]OFD Sender: No OFD packet to send [22:54:41]OFD Sender: No OFD packet to send [22:54:46]OFD Sender: No OFD packet to send [22:54:51]OFD Sender: No OFD packet to send [22:54:56]OFD Sender: No OFD packet to send [22:55:01]OFD Sender: No OFD packet to send [22:55:06]OFD Sender: No OFD packet to send [22:55:11]OFD Sender: No OFD packet to send [22:55:16]OFD Sender: No OFD packet to send [22:55:21]OFD Sender: No OFD packet to send [22:55:26]OFD Sender: No OFD packet to send [22:55:31]OFD Sender: No OFD packet to send [22:55:36]OFD Sender: No OFD packet to send [22:55:41]OFD Sender: No OFD packet to send [22:55:46]OFD Sender: No OFD packet to send [22:55:51]OFD Sender: No OFD packet to send [22:55:56]OFD Sender: No OFD packet to send [22:56:01]OFD Sender: No OFD packet to send [22:56:06]OFD Sender: No OFD packet to send [22:56:11]OFD Sender: No OFD packet to send [22:56:16]OFD Sender: No OFD packet to send [22:56:21]OFD Sender: No OFD packet to send [22:56:26]OFD Sender: No OFD packet to send [22:56:31]OFD Sender: No OFD packet to send [22:56:36]OFD Sender: No OFD packet to send [22:56:41]OFD Sender: No OFD packet to send [22:56:46]OFD Sender: No OFD packet to send [22:56:51]OFD Sender: No OFD packet to send [22:56:56]OFD Sender: No OFD packet to send [22:57:01]OFD Sender: No OFD packet to send [22:57:06]OFD Sender: No OFD packet to send [22:57:11]OFD Sender: No OFD packet to send [22:57:16]OFD Sender: No OFD packet to send [22:57:21]OFD Sender: No OFD packet to send [22:57:26]OFD Sender: No OFD packet to send [22:57:31]OFD Sender: No OFD packet to send [22:57:36]OFD Sender: No OFD packet to send [22:57:41]OFD Sender: No OFD packet to send [22:57:46]OFD Sender: No OFD packet to send [22:57:51]OFD Sender: No OFD packet to send [22:57:56]OFD Sender: No OFD packet to send [22:58:01]OFD Sender: No OFD packet to send [22:58:06]OFD Sender: No OFD packet to send [22:58:11]OFD Sender: No OFD packet to send [22:58:16]OFD Sender: No OFD packet to send [22:58:21]OFD Sender: No OFD packet to send [22:58:26]OFD Sender: No OFD packet to send [22:58:31]OFD Sender: No OFD packet to send [22:58:36]OFD Sender: No OFD packet to send [22:58:41]OFD Sender: No OFD packet to send [22:58:46]OFD Sender: No OFD packet to send [22:58:51]OFD Sender: No OFD packet to send [22:58:56]OFD Sender: No OFD packet to send [22:59:01]OFD Sender: No OFD packet to send [22:59:06]OFD Sender: No OFD packet to send [22:59:11]OFD Sender: No OFD packet to send [22:59:16]OFD Sender: No OFD packet to send [22:59:21]OFD Sender: No OFD packet to send [22:59:26]OFD Sender: No OFD packet to send [22:59:31]OFD Sender: No OFD packet to send [22:59:36]OFD Sender: No OFD packet to send [22:59:41]OFD Sender: No OFD packet to send [22:59:46]OFD Sender: No OFD packet to send [22:59:51]OFD Sender: No OFD packet to send [22:59:56]OFD Sender: No OFD packet to send [23:00:01]OFD Sender: No OFD packet to send [23:00:06]OFD Sender: No OFD packet to send [23:00:11]OFD Sender: No OFD packet to send [23:00:16]OFD Sender: No OFD packet to send [23:00:21]OFD Sender: No OFD packet to send [23:00:26]OFD Sender: No OFD packet to send [23:00:31]OFD Sender: No OFD packet to send [23:00:36]OFD Sender: No OFD packet to send [23:00:41]OFD Sender: No OFD packet to send [23:00:46]OFD Sender: No OFD packet to send [23:00:51]OFD Sender: No OFD packet to send [23:00:56]OFD Sender: No OFD packet to send [23:01:01]OFD Sender: No OFD packet to send [23:01:06]OFD Sender: No OFD packet to send [23:01:11]OFD Sender: No OFD packet to send [23:01:16]OFD Sender: No OFD packet to send [23:01:21]OFD Sender: No OFD packet to send [23:01:26]OFD Sender: No OFD packet to send [23:01:31]OFD Sender: No OFD packet to send [23:01:36]OFD Sender: No OFD packet to send [23:01:41]OFD Sender: No OFD packet to send [23:01:46]OFD Sender: No OFD packet to send [23:01:51]OFD Sender: No OFD packet to send [23:01:56]OFD Sender: No OFD packet to send [23:02:01]OFD Sender: No OFD packet to send [23:02:06]OFD Sender: No OFD packet to send [23:02:11]OFD Sender: No OFD packet to send [23:02:16]OFD Sender: No OFD packet to send [23:02:21]OFD Sender: No OFD packet to send [23:02:26]OFD Sender: No OFD packet to send [23:02:31]OFD Sender: No OFD packet to send [23:02:36]OFD Sender: No OFD packet to send [23:02:41]OFD Sender: No OFD packet to send [23:02:46]OFD Sender: No OFD packet to send [23:02:51]OFD Sender: No OFD packet to send [23:02:56]OFD Sender: No OFD packet to send [23:03:01]OFD Sender: No OFD packet to send [23:03:06]OFD Sender: No OFD packet to send [23:03:11]OFD Sender: No OFD packet to send [23:03:16]OFD Sender: No OFD packet to send [23:03:21]OFD Sender: No OFD packet to send [23:03:26]OFD Sender: No OFD packet to send [23:03:31]OFD Sender: No OFD packet to send [23:03:36]OFD Sender: No OFD packet to send [23:03:41]OFD Sender: No OFD packet to send [23:03:46]OFD Sender: No OFD packet to send [23:03:51]OFD Sender: No OFD packet to send [23:03:56]OFD Sender: No OFD packet to send [23:04:01]OFD Sender: No OFD packet to send [23:04:06]OFD Sender: No OFD packet to send [23:04:11]OFD Sender: No OFD packet to send [23:04:16]OFD Sender: No OFD packet to send [23:04:21]OFD Sender: No OFD packet to send [23:04:26]OFD Sender: No OFD packet to send [23:04:31]OFD Sender: No OFD packet to send [23:04:36]OFD Sender: No OFD packet to send [23:04:41]OFD Sender: No OFD packet to send [23:04:46]OFD Sender: No OFD packet to send [23:04:51]OFD Sender: No OFD packet to send [23:04:56]OFD Sender: No OFD packet to send [23:05:01]OFD Sender: No OFD packet to send [23:05:06]OFD Sender: No OFD packet to send [23:05:11]OFD Sender: No OFD packet to send [23:05:16]OFD Sender: No OFD packet to send [23:05:21]OFD Sender: No OFD packet to send [23:05:26]OFD Sender: No OFD packet to send [23:05:31]OFD Sender: No OFD packet to send [23:05:36]OFD Sender: No OFD packet to send [23:05:41]OFD Sender: No OFD packet to send [23:05:46]OFD Sender: No OFD packet to send [23:05:51]OFD Sender: No OFD packet to send [23:05:56]OFD Sender: No OFD packet to send [23:06:01]OFD Sender: No OFD packet to send [23:06:06]OFD Sender: No OFD packet to send [23:06:11]OFD Sender: No OFD packet to send [23:06:16]OFD Sender: No OFD packet to send [23:06:21]OFD Sender: No OFD packet to send [23:06:26]OFD Sender: No OFD packet to send [23:06:31]OFD Sender: No OFD packet to send [23:06:36]OFD Sender: No OFD packet to send [23:06:41]OFD Sender: No OFD packet to send [23:06:46]OFD Sender: No OFD packet to send [23:06:51]OFD Sender: No OFD packet to send [23:06:56]OFD Sender: No OFD packet to send [23:07:01]OFD Sender: No OFD packet to send [23:07:06]OFD Sender: No OFD packet to send [23:07:11]OFD Sender: No OFD packet to send [23:07:16]OFD Sender: No OFD packet to send [23:07:21]OFD Sender: No OFD packet to send [23:07:26]OFD Sender: No OFD packet to send [23:07:31]OFD Sender: No OFD packet to send [23:07:36]OFD Sender: No OFD packet to send [23:07:41]OFD Sender: No OFD packet to send [23:07:46]OFD Sender: No OFD packet to send [23:07:51]OFD Sender: No OFD packet to send [23:07:56]OFD Sender: No OFD packet to send [23:08:01]OFD Sender: No OFD packet to send [23:08:06]OFD Sender: No OFD packet to send [23:08:11]OFD Sender: No OFD packet to send [23:08:16]OFD Sender: No OFD packet to send [23:08:21]OFD Sender: No OFD packet to send [23:08:26]OFD Sender: No OFD packet to send [23:08:31]OFD Sender: No OFD packet to send [23:08:36]OFD Sender: No OFD packet to send [23:08:41]OFD Sender: No OFD packet to send [23:08:46]OFD Sender: No OFD packet to send [23:08:51]OFD Sender: No OFD packet to send [23:08:56]OFD Sender: No OFD packet to send [23:09:01]OFD Sender: No OFD packet to send [23:09:06]OFD Sender: No OFD packet to send [23:09:11]OFD Sender: No OFD packet to send [23:09:16]OFD Sender: No OFD packet to send [23:09:21]OFD Sender: No OFD packet to send [23:09:27]OFD Sender: No OFD packet to send [23:09:32]OFD Sender: No OFD packet to send [23:09:37]OFD Sender: No OFD packet to send [23:09:42]OFD Sender: No OFD packet to send [23:09:47]OFD Sender: No OFD packet to send [23:09:52]OFD Sender: No OFD packet to send [23:09:57]OFD Sender: No OFD packet to send [23:10:02]OFD Sender: No OFD packet to send [23:10:07]OFD Sender: No OFD packet to send [23:10:12]OFD Sender: No OFD packet to send [23:10:17]OFD Sender: No OFD packet to send [23:10:22]OFD Sender: No OFD packet to send [23:10:27]OFD Sender: No OFD packet to send [23:10:32]OFD Sender: No OFD packet to send [23:10:37]OFD Sender: No OFD packet to send [23:10:42]OFD Sender: No OFD packet to send [23:10:47]OFD Sender: No OFD packet to send [23:10:52]OFD Sender: No OFD packet to send [23:10:57]OFD Sender: No OFD packet to send [23:11:02]OFD Sender: No OFD packet to send [23:11:07]OFD Sender: No OFD packet to send [23:11:12]OFD Sender: No OFD packet to send [23:11:17]OFD Sender: No OFD packet to send [23:11:18]accept exits with 8 [23:11:18]New connection [23:11:18]New thread 3066658148 created [23:11:18]Thread 3066801508 joined [23:11:18]Waiting for new connection... [23:11:18] Sock 8.Parse request [23:11:18]Sock 8.Check first char [23:11:18]Sock 8.First char is OK [23:11:18]request: POST /json_proto HTTP/1.0 [23:11:18]Method: POST [23:11:18]URL: /json_proto [23:11:18]Method is POST - this is cgi request [23:11:18]url: /json_proto [23:11:18]query_string will be loaded in cgi processing [23:11:18]execute_cgi json_proto POST (null) [23:11:18]execute_cgi path=json_proto method=POST [23:11:18]POST find Content-Length [23:11:18]Host: 172.17.57.71:8080 [23:11:18]Content-Length: 701 [23:11:18]Content-Type: application/json [23:11:18] [23:11:18]POST finish read [23:11:18]Found Content-Length = 701 [23:11:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127573", "tax_sys" : 0, "items" : [ { "code": "4870235681079", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u043B\u0430\u0434\u043A\u0438\u0439 \u0447\u0438\u043B\u0438 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:11:18]execute_script... [23:11:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127573", "tax_sys" : 0, "items" : [ { "code": "4870235681079", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u043B\u0430\u0434\u043A\u0438\u0439 \u0447\u0438\u043B\u0438 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:11:18]POST & json_proto [23:11:18]process_json_proto [23:11:18]json parsed OK: [23:11:18]protocol is kg_v1.0 [23:11:18]action value=close_receipt [23:11:18]process_action close_receipt [23:11:18]cmd_close_receipt [23:11:18]MH_GetDate [23:11:18]Write to MH i2c: F0 00 00 18 66 6D [23:11:18]Write i2c OK [23:11:18]MH_I2C_Read... [23:11:18]Read from MH i2c: F0 [23:11:18]MH_I2C_Read... [23:11:18]Read from MH i2c: F0 09 00 [23:11:18]MH_I2C_Read... [23:11:18]Read from MH i2c: F0 09 00 18 66 00 A1 69 E7 66 33 3A A4 66 44 [23:11:18]GetLastDocTimeStamp 1726440678 [23:11:18]current date 1726441889 [23:11:18]FM_GetShiftState [23:11:18]SAM_PROTO_GetShiftState [23:11:18]wFMCommunicate request_size=4 [23:11:18]MH_SAM_APDU [23:11:18]CAPDU: 80 13 01 00 [23:11:18]Write to MH i2c: E2 08 00 19 66 80 13 01 00 00 00 00 00 FC [23:11:18]Write i2c OK [23:11:18]MH_I2C_Read... [23:11:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:11:18]Read from MH i2c: E2 [23:11:18]MH_I2C_Read... [23:11:18]Read from MH i2c: E2 0E 00 [23:11:18]MH_I2C_Read... [23:11:18]Read from MH i2c: E2 0E 00 19 66 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 7E [23:11:18]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [23:11:18]wFMCommunicate OK [23:11:18]SAM_PROTO_GetShiftState done [23:11:18]FM_GetShiftState done [23:11:18]opened in 1726359809 [23:11:18]opened+sec_in_day 1726446209 [23:11:18]quantity*price = 9000 [23:11:18]sum+1 = 9001 [23:11:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 132 15.09.2024 23:11 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92684 ФПД: 251929223951273 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T231129&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92684&fm=251929223951273&tin=02508201610067®Number=0000000000091423&sum=9000 0 [23:11:19]StoreToDocumentArchive [23:11:19]shift 507 fd 92684 [23:11:19]save to /storage/0507/doc_00092684 [23:11:19]save last doc name /storage/0507/doc_00092684 to /storage/kkm_last_doc_name [23:11:19]save OK [23:11:19]Clear old archive folders... [23:11:19]ProcessDocumentItem done err = 0, tmpTLVsize=300 [23:11:19]tlvbuf is 01062040 [23:11:19]SAM_PROTO_ClearQueue [23:11:19]wFMCommunicate request_size=4 [23:11:19]MH_SAM_APDU [23:11:19]CAPDU: 80 09 00 00 [23:11:19]Write to MH i2c: E2 08 00 26 66 80 09 00 00 00 00 00 00 FE [23:11:19]Write i2c OK [23:11:19]MH_I2C_Read... [23:11:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:11:19]Read from MH i2c: E2 [23:11:19]MH_I2C_Read... [23:11:19]Read from MH i2c: E2 03 00 [23:11:19]MH_I2C_Read... [23:11:19]Read from MH i2c: E2 03 00 26 66 00 90 00 00 [23:11:19]RAPDU: 90 00 [23:11:19]wFMCommunicate OK [23:11:19]SAM_PROTO_ClearQueue done [23:11:19]KKMCreateOFDPacket [23:11:19]OFDProtocolAddRootSTLVToBuf [23:11:19]FM_MakeSignedData [23:11:19]FM_MakeSignedData [23:11:19]SAM_PROTO_SignData [23:11:19]wFMCommunicate request_size=4 [23:11:19]MH_SAM_APDU [23:11:19]CAPDU: 80 0D 01 02 [23:11:19]Write to MH i2c: E2 08 00 27 66 80 0D 01 02 00 00 00 00 06 [23:11:19]Write i2c OK [23:11:19]MH_I2C_Read... [23:11:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:11:19]Read from MH i2c: E2 [23:11:19]MH_I2C_Read... [23:11:19]Read from MH i2c: E2 03 00 [23:11:19]MH_I2C_Read... [23:11:19]Read from MH i2c: E2 03 00 27 66 00 90 00 01 [23:11:19]RAPDU: 90 00 [23:11:19]wFMCommunicate OK [23:11:19]wFMCommunicate request_size=255 [23:11:19]MH_SAM_APDU [23:11:19]CAPDU: 80 0D 02 02 FA 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 A1 69 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 [23:11:19]Write to MH i2c: E2 02 01 28 66 80 0D 02 02 FA 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 A1 69 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 00 00 C7 [23:11:19]Write i2c OK [23:11:19]MH_I2C_Read... [23:11:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:11:20]Read from MH i2c: E2 [23:11:20]MH_I2C_Read... [23:11:20]Read from MH i2c: E2 03 00 [23:11:20]MH_I2C_Read... [23:11:20]Read from MH i2c: E2 03 00 28 66 00 90 00 02 [23:11:20]RAPDU: 90 00 [23:11:20]wFMCommunicate OK [23:11:20]wFMCommunicate request_size=59 [23:11:20]MH_SAM_APDU [23:11:20]CAPDU: 80 0D 02 02 36 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0C 6A 01 00 35 04 06 00 E5 20 D7 E6 F3 A9 [23:11:20]Write to MH i2c: E2 3E 00 29 66 80 0D 02 02 36 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0C 6A 01 00 35 04 06 00 E5 20 D7 E6 F3 A9 00 00 FD [23:11:20]Write i2c OK [23:11:20]MH_I2C_Read... [23:11:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:11:20]Read from MH i2c: E2 [23:11:20]MH_I2C_Read... [23:11:20]Read from MH i2c: E2 03 00 [23:11:20]MH_I2C_Read... [23:11:20]Read from MH i2c: E2 03 00 29 66 00 90 00 03 [23:11:20]RAPDU: 90 00 [23:11:20]wFMCommunicate OK [23:11:20]wFMCommunicate request_size=4 [23:11:20]MH_SAM_APDU [23:11:20]CAPDU: 80 0D 03 02 [23:11:20]Write to MH i2c: E2 08 00 2A 66 80 0D 03 02 00 00 00 00 0B [23:11:20]Write i2c OK [23:11:20]MH_I2C_Read... [23:11:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:11:20]Read from MH i2c: E2 [23:11:20]MH_I2C_Read... [23:11:20]Read from MH i2c: E2 0B 00 [23:11:20]MH_I2C_Read... [23:11:20]Read from MH i2c: E2 0B 00 2A 66 00 94 A1 67 8C CB 9F 70 DB 90 00 E9 [23:11:20]RAPDU: 94 A1 67 8C CB 9F 70 DB 90 00 [23:11:20]wFMCommunicate OK [23:11:20]SAM_PROTO_SignData done [23:11:20]FM_MakeSignedData done [23:11:20]CreateOFDProtocolMessage [23:11:20]wFMCommunicate request_size=4 [23:11:20]MH_SAM_APDU [23:11:20]CAPDU: 80 11 00 00 [23:11:20]Write to MH i2c: E2 08 00 2B 66 80 11 00 00 00 00 00 00 0B [23:11:20]Write i2c OK [23:11:20]MH_I2C_Read... [23:11:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:11:20]Read from MH i2c: E2 [23:11:20]MH_I2C_Read... [23:11:20]Read from MH i2c: E2 17 00 [23:11:20]MH_I2C_Read... [23:11:20]Read from MH i2c: E2 17 00 2B 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 62 [23:11:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:11:20]wFMCommunicate OK [23:11:20]CreateOFDProtocolMessage done [23:11:20]OFDSenderStorePacket 92684 [23:11:20]StoreOFDPacket docnum=92684 [23:11:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 40 01 00 00 FF 80 38 01 00 A2 5A 03 01 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 A1 69 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0C 6A 01 00 35 04 06 00 E5 20 D7 E6 F3 A9 94 A1 67 8C CB 9F 70 DB [23:11:20]CheckFolder [23:11:20]dirname=/storage/ofd_packets [23:11:20]CheckFolder done [23:11:20]ProducePacketName [23:11:20]name=ofd_packets/00092684 [23:11:20]NVStorageSaveData ofd_packets/00092684 [23:11:20]File name is /storage/ofd_packets/00092684 [23:11:20]Write 350 bytes [23:11:20]NVStorageSaveData done [23:11:20]OFDSenderStorePacket done [23:11:20]KKMCreateOFDPacket done [23:11:20]NVStorageSaveData kkm_last_timestamp [23:11:20]File name is /storage/kkm_last_timestamp [23:11:20]Write 4 bytes [23:11:20]NVStorageSaveData done [23:11:20]ExternCall_PrintAddStr [23:11:20]wPrintStart [23:11:20]Write to MH i2c: 01 00 00 2C 66 92 [23:11:20]Write i2c OK [23:11:20]MH_I2C_Read... [23:11:20]Read from MH i2c: 01 [23:11:20]MH_I2C_Read... [23:11:20]Read from MH i2c: 01 07 00 [23:11:20]MH_I2C_Read... [23:11:20]Read from MH i2c: 01 07 00 2C 66 00 00 00 00 00 FF 0F A7 [23:11:20]RasterBufferAndPrint [23:11:20]line Счет N : (3)127573 [23:11:20]line ИНН: 02508201610067 [23:11:20]line Контрольно-Кассовый Чек [23:11:20]line ПРОДАЖА [23:11:20]line Товар: 4870235681079 [23:11:20]line Grizzly волнистые Сладкий чили 55 гр [23:11:20]line 1.000 * 90.00 [23:11:20]line = 90.00 [23:11:20]line НДС 12% НСП 1% [23:11:20]line > о реализуемом товаре [23:11:20]line ИТОГО: 90.00 [23:11:20]line НСП 1% : 0.80 [23:11:20]line НДС 12% : 9.56 [23:11:20]line Наличными: 90.00 [23:11:20]line Безнал.: 0.00 [23:11:20]line Место: АЗС № 5 "Партнер Нефть" [23:11:20]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [23:11:20]line СНО: Общий режим [23:11:20]line Чек 132 15.09.2024 23:11 [23:11:20]line Смена: 507 ФФД: 1.0 [23:11:20]line ЗНМ: 03000000022 [23:11:20]line РНМ: 0000000000091423 [23:11:20]line Версия ККМ: 001 [23:11:20]line ФМ: 0000000000874692 [23:11:20]line ФД: 92684 [23:11:20]line ФПД: 251929223951273 [23:11:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T231129&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92684&fm=251929223951273&tin=02508201610067®Number=0000000000091423&sum=9000 [23:11:20]line 0 [23:11:20]OFD Sender: Processing packet 92684 [packets to send 63, broken 62] [23:11:20]ProducePacketName [23:11:20]name=ofd_packets/00092684 [23:11:20]OFD Sender: To server: pG, [23:11:20]CommunicateWithHost lk.salyk.kg:30040 [23:11:20]ConnectInit lk.salyk.kg [23:11:20]written 0, free lines is 4095 [23:11:20]Connected sock=10 [23:11:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 40 01 00 00 FF 80 38 01 00 A2 5A 03 01 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 A1 69 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0C 6A 01 00 35 04 06 00 E5 20 D7 E6 F3 A9 94 A1 67 8C CB 9F 70 DB [23:11:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 E8 F3 47 00 5B 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0C 6A 01 00 F4 03 04 00 18 12 E7 66 B6 04 01 00 00 16 AB E6 63 ED 10 FD E3 [23:11:21]CommunicateWithHost err = 0 [23:11:21]CheckOFDResponse [23:11:21]1017 (14) - 77093643461234 [23:11:21]1041 (16) - 0000000000874692 [23:11:21]1040 (4) - 92684 [23:11:21]1012 (4) - 15.09.2024 16:58 [23:11:21]1206 (1) - 0 [23:11:21]OFD Sender: Remove packet 92684 [23:11:21]ProducePacketName [23:11:21]name=ofd_packets/00092684 [23:11:21]NVStorageDeleteData [23:11:21]Write to MH i2c: 01 00 00 55 66 BB [23:11:21]Write i2c OK [23:11:21]MH_I2C_Read... [23:11:21]Read from MH i2c: 01 [23:11:21]MH_I2C_Read... [23:11:21]Read from MH i2c: 01 07 00 [23:11:21]MH_I2C_Read... [23:11:21]Read from MH i2c: 01 07 00 55 66 00 00 00 00 00 17 0D E6 [23:11:21]RasterBufferAndPrint [23:11:21]line [23:11:21]line [23:11:21]line [23:11:21]line [23:11:21]line [23:11:21]written 0, free lines is 3359 [23:11:21]MH_Cut [23:11:21]Write to MH i2c: D1 01 00 5C 66 01 94 [23:11:21]Write i2c OK [23:11:21]MH_I2C_Read... [23:11:21]Read from MH i2c: D1 [23:11:21]MH_I2C_Read... [23:11:21]Read from MH i2c: D1 01 00 [23:11:21]MH_I2C_Read... [23:11:21]Read from MH i2c: D1 01 00 5C 66 00 93 [23:11:21]Write to MH i2c: 01 00 00 5D 66 C3 [23:11:21]Write i2c OK [23:11:21]MH_I2C_Read... [23:11:21]OFD Sender: No OFD packet to send [23:11:21]*** Cut start [23:11:21]*** Purtial cut [23:11:21]*** Stage 1: CUTSNS_PIN = 1 [23:11:23]Read from MH i2c: 01 [23:11:23]MH_I2C_Read... [23:11:23]*** Stop cut motor [23:11:23]*** Cut end [23:11:23]Read from MH i2c: 01 07 00 [23:11:23]MH_I2C_Read... [23:11:23]Read from MH i2c: 01 07 00 5D 66 00 00 00 00 00 FF 0F D8 [23:11:23]process_action close_receipt done [23:11:23]requested_data is exist [23:11:23]produce_requested_data [23:11:23]requested_item fm.sn is exist - process it [23:11:23]wFMCommunicate request_size=4 [23:11:23]MH_SAM_APDU [23:11:23]CAPDU: 80 11 00 00 [23:11:23]Write to MH i2c: E2 08 00 5E 66 80 11 00 00 00 00 00 00 3E [23:11:23]Write i2c OK [23:11:23]MH_I2C_Read... [23:11:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:11:23]Read from MH i2c: E2 [23:11:23]MH_I2C_Read... [23:11:23]Read from MH i2c: E2 17 00 [23:11:23]MH_I2C_Read... [23:11:23]Read from MH i2c: E2 17 00 5E 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 95 [23:11:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:11:23]wFMCommunicate OK [23:11:23]requested_item fd.num is exist - process it [23:11:23]SAM_PROTO_GetFieldsCounters [23:11:23]wFMCommunicate request_size=4 [23:11:23]MH_SAM_APDU [23:11:23]CAPDU: 80 13 00 00 [23:11:23]Write to MH i2c: E2 08 00 5F 66 80 13 00 00 00 00 00 00 41 [23:11:23]Write i2c OK [23:11:23]MH_I2C_Read... [23:11:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:11:24]Read from MH i2c: E2 [23:11:24]MH_I2C_Read... [23:11:24]Read from MH i2c: E2 62 00 [23:11:24]MH_I2C_Read... [23:11:24]Read from MH i2c: E2 62 00 5F 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 0C 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [23:11:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 0C 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:11:24]wFMCommunicate OK [23:11:24]SAM_PROTO_GetFieldsCounters done [23:11:24]requested_item shift.num is exist - process it [23:11:24]requested_item shift.opened is exist - process it [23:11:24]req_shift_opened [23:11:24]FM_GetShiftState [23:11:24]SAM_PROTO_GetShiftState [23:11:24]wFMCommunicate request_size=4 [23:11:24]MH_SAM_APDU [23:11:24]CAPDU: 80 13 01 00 [23:11:24]Write to MH i2c: E2 08 00 60 66 80 13 01 00 00 00 00 00 43 [23:11:24]Write i2c OK [23:11:24]MH_I2C_Read... [23:11:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:11:24]Read from MH i2c: E2 [23:11:24]MH_I2C_Read... [23:11:24]Read from MH i2c: E2 0E 00 [23:11:24]MH_I2C_Read... [23:11:24]Read from MH i2c: E2 0E 00 60 66 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 C5 [23:11:24]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [23:11:24]wFMCommunicate OK [23:11:24]SAM_PROTO_GetShiftState done [23:11:24]FM_GetShiftState done [23:11:24]req_shift_opened done [23:11:24]requested_item shift.open_date is exist - process it [23:11:24]req_shift_open_date [23:11:24]req_shift_open_date done [23:11:24]produce_requested_data done [23:11:24]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92684,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [23:11:24]process_action_free close_receipt [23:11:24]json_value_free [23:11:24]json_value_free done [23:11:24]process_json_proto returns [23:11:24]Send response to host [23:11:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92684,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [23:11:24]free response buf [23:11:24]execute_script done [23:11:24]execute_script returns [23:11:24]free content buf [23:11:24]Sock 8.Close socket [23:11:24]Sock 8.Thread stoped [23:11:26]OFD Sender: No OFD packet to send [23:11:31]OFD Sender: No OFD packet to send [23:11:36]OFD Sender: No OFD packet to send [23:11:41]OFD Sender: No OFD packet to send [23:11:46]OFD Sender: No OFD packet to send [23:11:51]OFD Sender: No OFD packet to send [23:11:56]OFD Sender: No OFD packet to send [23:12:01]OFD Sender: No OFD packet to send [23:12:06]OFD Sender: No OFD packet to send [23:12:11]OFD Sender: No OFD packet to send [23:12:16]OFD Sender: No OFD packet to send [23:12:21]OFD Sender: No OFD packet to send [23:12:26]OFD Sender: No OFD packet to send [23:12:31]OFD Sender: No OFD packet to send [23:12:36]OFD Sender: No OFD packet to send [23:12:41]OFD Sender: No OFD packet to send [23:12:46]OFD Sender: No OFD packet to send [23:12:51]OFD Sender: No OFD packet to send [23:12:56]OFD Sender: No OFD packet to send [23:13:01]OFD Sender: No OFD packet to send [23:13:03]accept exits with 9 [23:13:03]New connection [23:13:03]New thread 3066801508 created [23:13:03]Thread 3066658148 joined [23:13:03]Waiting for new connection... [23:13:03] Sock 9.Parse request [23:13:03]Sock 9.Check first char [23:13:03]Sock 9.First char is OK [23:13:03]request: POST /json_proto HTTP/1.0 [23:13:03]Method: POST [23:13:03]URL: /json_proto [23:13:03]Method is POST - this is cgi request [23:13:03]url: /json_proto [23:13:03]query_string will be loaded in cgi processing [23:13:03]execute_cgi json_proto POST (null) [23:13:03]execute_cgi path=json_proto method=POST [23:13:03]POST find Content-Length [23:13:03]Host: 172.17.57.71:8080 [23:13:03]Content-Length: 2330 [23:13:03]Content-Type: application/json [23:13:03] [23:13:03]POST finish read [23:13:03]Found Content-Length = 2330 [23:13:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127574", "tax_sys" : 0, "items" : [ { "code": "3800020453407", "name": "Nestle KIT-KAT \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A chunky 36x40\u0433", "price" : 80.00, "quantity" : 5.000, "sum" : 400.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 85.00, "quantity" : 3.000, "sum" : 255.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46116482", "name": "\u0416\u0435\u0432 Orbit \u044F\u0433\u043E\u0434\u043D\u044B\u0439 \u043C\u0438\u043A\u0441", "price" : 45.00, "quantity" : 2.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607084351385", "name": "\u0411\u0438\u0441\u043A\u0432\u0438\u0442 \u0427\u043E\u043A\u043E \u043F\u0430\u0439 12\u0448\u0442", "price" : 340.00, "quantity" : 2.000, "sum" : 680.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700041420084", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST ANTIBACTERIAL 100 \u0448\u0442", "price" : 190.00, "quantity" : 1.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1865.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:13:03]execute_script... [23:13:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127574", "tax_sys" : 0, "items" : [ { "code": "3800020453407", "name": "Nestle KIT-KAT \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A chunky 36x40\u0433", "price" : 80.00, "quantity" : 5.000, "sum" : 400.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 85.00, "quantity" : 3.000, "sum" : 255.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46116482", "name": "\u0416\u0435\u0432 Orbit \u044F\u0433\u043E\u0434\u043D\u044B\u0439 \u043C\u0438\u043A\u0441", "price" : 45.00, "quantity" : 2.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607084351385", "name": "\u0411\u0438\u0441\u043A\u0432\u0438\u0442 \u0427\u043E\u043A\u043E \u043F\u0430\u0439 12\u0448\u0442", "price" : 340.00, "quantity" : 2.000, "sum" : 680.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700041420084", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST ANTIBACTERIAL 100 \u0448\u0442", "price" : 190.00, "quantity" : 1.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1865.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:13:04]POST & json_proto [23:13:04]process_json_proto [23:13:04]json parsed OK: [23:13:04]protocol is kg_v1.0 [23:13:04]action value=close_receipt [23:13:04]process_action close_receipt [23:13:04]cmd_close_receipt [23:13:04]MH_GetDate [23:13:04]Write to MH i2c: F0 00 00 61 66 B6 [23:13:04]Write i2c OK [23:13:04]MH_I2C_Read... [23:13:04]Read from MH i2c: F0 [23:13:04]MH_I2C_Read... [23:13:04]Read from MH i2c: F0 09 00 [23:13:04]MH_I2C_Read... [23:13:04]Read from MH i2c: F0 09 00 61 66 00 0B 6A E7 66 33 3A A4 66 F8 [23:13:04]GetLastDocTimeStamp 1726441889 [23:13:04]current date 1726441995 [23:13:04]FM_GetShiftState [23:13:04]SAM_PROTO_GetShiftState [23:13:04]wFMCommunicate request_size=4 [23:13:04]MH_SAM_APDU [23:13:04]CAPDU: 80 13 01 00 [23:13:04]Write to MH i2c: E2 08 00 62 66 80 13 01 00 00 00 00 00 45 [23:13:04]Write i2c OK [23:13:04]MH_I2C_Read... [23:13:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:13:04]Read from MH i2c: E2 [23:13:04]MH_I2C_Read... [23:13:04]Read from MH i2c: E2 0E 00 [23:13:04]MH_I2C_Read... [23:13:04]Read from MH i2c: E2 0E 00 62 66 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 C7 [23:13:04]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [23:13:04]wFMCommunicate OK [23:13:04]SAM_PROTO_GetShiftState done [23:13:04]FM_GetShiftState done [23:13:04]opened in 1726359809 [23:13:04]opened+sec_in_day 1726446209 [23:13:04]quantity*price = 40000 [23:13:04]sum+1 = 40001 [23:13:04]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4660085515163 Шок Батончик Сникерс супер 95/80г 3.000 * 85.00 = 255.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46116482 Жев Orbit ягодный микс 2.000 * 45.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607084351385 Бисквит Чоко пай 12шт 2.000 * 340.00 = 680.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870202521254 Чай холодный MAXI черный со вкусом клубн 2.000 * 125.00 = 250.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700041420084 Салфетки влажн BEST ANTIBACTERIAL 100 шт 1.000 * 190.00 = 190.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1865.00 НСП 1% : 16.51 НДС 12% : 198.06 Наличными: 0.00 Безнал.: 1865.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 133 15.09.2024 23:13 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92685 ФПД: 161115728656686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T231315&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92685&fm=161115728656686&tin=02508201610067®Number=0000000000091423&sum=186500 0 [23:13:05]StoreToDocumentArchive [23:13:05]shift 507 fd 92685 [23:13:05]save to /storage/0507/doc_00092685 [23:13:05]save last doc name /storage/0507/doc_00092685 to /storage/kkm_last_doc_name [23:13:05]save OK [23:13:05]Clear old archive folders... [23:13:05]ProcessDocumentItem done err = 0, tmpTLVsize=898 [23:13:05]tlvbuf is B6F30010 [23:13:05]SAM_PROTO_ClearQueue [23:13:05]wFMCommunicate request_size=4 [23:13:05]MH_SAM_APDU [23:13:05]CAPDU: 80 09 00 00 [23:13:05]Write to MH i2c: E2 08 00 6F 66 80 09 00 00 00 00 00 00 47 [23:13:05]Write i2c OK [23:13:05]MH_I2C_Read... [23:13:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:13:05]Read from MH i2c: E2 [23:13:05]MH_I2C_Read... [23:13:05]Read from MH i2c: E2 03 00 [23:13:05]MH_I2C_Read... [23:13:05]Read from MH i2c: E2 03 00 6F 66 00 90 00 49 [23:13:05]RAPDU: 90 00 [23:13:05]wFMCommunicate OK [23:13:05]SAM_PROTO_ClearQueue done [23:13:05]KKMCreateOFDPacket [23:13:05]OFDProtocolAddRootSTLVToBuf [23:13:05]FM_MakeSignedData [23:13:05]FM_MakeSignedData [23:13:05]SAM_PROTO_SignData [23:13:05]wFMCommunicate request_size=4 [23:13:05]MH_SAM_APDU [23:13:05]CAPDU: 80 0D 01 02 [23:13:05]Write to MH i2c: E2 08 00 70 66 80 0D 01 02 00 00 00 00 4F [23:13:05]Write i2c OK [23:13:05]MH_I2C_Read... [23:13:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:13:05]Read from MH i2c: E2 [23:13:05]MH_I2C_Read... [23:13:05]Read from MH i2c: E2 03 00 [23:13:05]MH_I2C_Read... [23:13:05]Read from MH i2c: E2 03 00 70 66 00 90 00 4A [23:13:05]RAPDU: 90 00 [23:13:05]wFMCommunicate OK [23:13:05]wFMCommunicate request_size=255 [23:13:05]MH_SAM_APDU [23:13:05]CAPDU: 80 0D 02 02 FA 03 00 82 03 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 33 38 30 30 30 32 30 34 35 33 34 30 37 06 04 2E 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 63 68 75 6E 6B 79 20 33 36 78 34 30 D0 B3 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 9C 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 [23:13:05]Write to MH i2c: E2 02 01 71 66 80 0D 02 02 FA 00 03 00 82 03 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 33 38 30 30 30 32 30 34 35 33 34 30 37 06 04 2E 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 63 68 75 6E 6B 79 20 33 36 78 34 30 D0 B3 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 9C 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 00 25 [23:13:05]Write i2c OK [23:13:05]MH_I2C_Read... [23:13:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:13:06]Read from MH i2c: E2 [23:13:06]MH_I2C_Read... [23:13:06]Read from MH i2c: E2 03 00 [23:13:06]MH_I2C_Read... [23:13:06]Read from MH i2c: E2 03 00 71 66 00 90 00 4B [23:13:06]RAPDU: 90 00 [23:13:06]wFMCommunicate OK [23:13:06]wFMCommunicate request_size=255 [23:13:06]MH_SAM_APDU [23:13:06]CAPDU: 80 0D 02 02 FA 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 31 31 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 38 35 06 04 25 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 31 32 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D0 84 00 00 00 00 13 04 06 00 A0 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 [23:13:06]Write to MH i2c: E2 02 01 72 66 80 0D 02 02 FA 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 31 31 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 38 35 06 04 25 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 31 32 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D0 84 00 00 00 00 13 04 06 00 A0 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 00 00 12 [23:13:06]Write i2c OK [23:13:06]MH_I2C_Read... [23:13:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:13:06]Read from MH i2c: E2 [23:13:06]MH_I2C_Read... [23:13:06]Read from MH i2c: E2 03 00 [23:13:06]MH_I2C_Read... [23:13:06]Read from MH i2c: E2 03 00 72 66 00 90 00 4C [23:13:06]RAPDU: 90 00 [23:13:06]wFMCommunicate OK [23:13:06]wFMCommunicate request_size=255 [23:13:06]MH_SAM_APDU [23:13:06]CAPDU: 80 0D 02 02 FA D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 30 38 34 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 41 4E 54 49 42 41 43 54 45 52 49 41 4C 20 31 30 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 D8 02 00 00 00 EB 03 26 [23:13:06]Write to MH i2c: E2 02 01 73 66 80 0D 02 02 FA 00 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 30 38 34 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 41 4E 54 49 42 41 43 54 45 52 49 41 4C 20 31 30 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 D8 02 00 00 00 EB 03 26 00 00 7E [23:13:06]Write i2c OK [23:13:06]MH_I2C_Read... [23:13:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:13:06]Read from MH i2c: E2 [23:13:06]MH_I2C_Read... [23:13:06]Read from MH i2c: E2 03 00 [23:13:06]MH_I2C_Read... [23:13:06]Read from MH i2c: E2 03 00 73 66 00 90 00 4D [23:13:06]RAPDU: 90 00 [23:13:06]wFMCommunicate OK [23:13:06]wFMCommunicate request_size=157 [23:13:06]MH_SAM_APDU [23:13:06]CAPDU: 80 0D 02 02 98 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 4D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 D8 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 0B 6A E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0D 6A 01 00 35 04 06 00 92 88 AD C6 39 2E [23:13:06]Write to MH i2c: E2 A0 00 74 66 80 0D 02 02 98 00 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 4D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 D8 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 0B 6A E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0D 6A 01 00 35 04 06 00 92 88 AD C6 39 2E 00 00 DC [23:13:06]Write i2c OK [23:13:06]MH_I2C_Read... [23:13:06]OFD Sender: No OFD packet to send [23:13:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:13:06]Read from MH i2c: E2 [23:13:06]MH_I2C_Read... [23:13:06]Read from MH i2c: E2 03 00 [23:13:06]MH_I2C_Read... [23:13:06]Read from MH i2c: E2 03 00 74 66 00 90 00 4E [23:13:06]RAPDU: 90 00 [23:13:06]wFMCommunicate OK [23:13:06]wFMCommunicate request_size=4 [23:13:06]MH_SAM_APDU [23:13:06]CAPDU: 80 0D 03 02 [23:13:06]Write to MH i2c: E2 08 00 75 66 80 0D 03 02 00 00 00 00 56 [23:13:06]Write i2c OK [23:13:06]MH_I2C_Read... [23:13:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:13:06]Read from MH i2c: E2 [23:13:06]MH_I2C_Read... [23:13:06]Read from MH i2c: E2 0B 00 [23:13:06]MH_I2C_Read... [23:13:06]Read from MH i2c: E2 0B 00 75 66 00 54 4F 5E 1A C6 6D 74 3A 90 00 53 [23:13:06]RAPDU: 54 4F 5E 1A C6 6D 74 3A 90 00 [23:13:06]wFMCommunicate OK [23:13:06]SAM_PROTO_SignData done [23:13:06]FM_MakeSignedData done [23:13:06]CreateOFDProtocolMessage [23:13:06]wFMCommunicate request_size=4 [23:13:06]MH_SAM_APDU [23:13:06]CAPDU: 80 11 00 00 [23:13:06]Write to MH i2c: E2 08 00 76 66 80 11 00 00 00 00 00 00 56 [23:13:06]Write i2c OK [23:13:06]MH_I2C_Read... [23:13:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:13:06]Read from MH i2c: E2 [23:13:06]MH_I2C_Read... [23:13:06]Read from MH i2c: E2 17 00 [23:13:06]MH_I2C_Read... [23:13:06]Read from MH i2c: E2 17 00 76 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 AD [23:13:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:13:06]wFMCommunicate OK [23:13:06]CreateOFDProtocolMessage done [23:13:06]OFDSenderStorePacket 92685 [23:13:06]StoreOFDPacket docnum=92685 [23:13:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 96 03 00 00 9A 76 8E 03 09 9B 5A 03 01 00 03 00 82 03 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 33 38 30 30 30 32 30 34 35 33 34 30 37 06 04 2E 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 63 68 75 6E 6B 79 20 33 36 78 34 30 D0 B3 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 9C 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 31 31 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 38 35 06 04 25 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 31 32 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D0 84 00 00 00 00 13 04 06 00 A0 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 30 38 34 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 41 4E 54 49 42 41 43 54 45 52 49 41 4C 20 31 30 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 D8 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 4D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 D8 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 0B 6A E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0D 6A 01 00 35 04 06 00 92 88 AD C6 39 2E 54 4F 5E 1A C6 6D 74 3A [23:13:07]CheckFolder [23:13:07]dirname=/storage/ofd_packets [23:13:07]CheckFolder done [23:13:07]ProducePacketName [23:13:07]name=ofd_packets/00092685 [23:13:07]NVStorageSaveData ofd_packets/00092685 [23:13:07]File name is /storage/ofd_packets/00092685 [23:13:07]Write 948 bytes [23:13:07]NVStorageSaveData done [23:13:07]OFDSenderStorePacket done [23:13:07]KKMCreateOFDPacket done [23:13:07]NVStorageSaveData kkm_last_timestamp [23:13:07]File name is /storage/kkm_last_timestamp [23:13:07]Write 4 bytes [23:13:07]NVStorageSaveData done [23:13:07]ExternCall_PrintAddStr [23:13:07]wPrintStart [23:13:07]Write to MH i2c: 01 00 00 77 66 DD [23:13:07]Write i2c OK [23:13:07]MH_I2C_Read... [23:13:07]Read from MH i2c: 01 [23:13:07]MH_I2C_Read... [23:13:07]Read from MH i2c: 01 07 00 [23:13:07]MH_I2C_Read... [23:13:07]Read from MH i2c: 01 07 00 77 66 00 00 00 00 00 FF 0F F2 [23:13:07]RasterBufferAndPrint [23:13:07]line Счет N : (3)127574 [23:13:07]line ИНН: 02508201610067 [23:13:07]line Контрольно-Кассовый Чек [23:13:07]line ПРОДАЖА [23:13:07]line Товар: 3800020453407 [23:13:07]line Nestle KIT-KAT батончик chunky 36x40г [23:13:07]line 5.000 * 80.00 [23:13:07]line = 400.00 [23:13:07]line НДС 12% НСП 1% [23:13:07]line > о реализуемом товаре [23:13:07]line Товар: 4660085515163 [23:13:07]line Шок Батончик Сникерс супер 95/80г [23:13:07]line 3.000 * 85.00 [23:13:07]line = 255.00 [23:13:07]line НДС 12% НСП 1% [23:13:07]line > о реализуемом товаре [23:13:07]line Товар: 46116482 [23:13:07]line Жев Orbit ягодный микс [23:13:07]line 2.000 * 45.00 [23:13:07]line = 90.00 [23:13:07]line НДС 12% НСП 1% [23:13:07]line > о реализуемом товаре [23:13:07]line Товар: 4607084351385 [23:13:07]line Бисквит Чоко пай 12шт [23:13:07]line 2.000 * 340.00 [23:13:07]line = 680.00 [23:13:07]line НДС 12% НСП 1% [23:13:07]line > о реализуемом товаре [23:13:07]line Товар: 4870202521254 [23:13:07]line Чай холодный MAXI черный со вкусом клубн [23:13:07]line 2.000 * 125.00 [23:13:07]line = 250.00 [23:13:07]line НДС 12% НСП 1% [23:13:07]line > о реализуемом товаре [23:13:07]line Товар: 4700041420084 [23:13:07]line Салфетки влажн BEST ANTIBACTERIAL 100 шт [23:13:07]line 1.000 * 190.00 [23:13:07]line = 190.00 [23:13:07]line НДС 12% НСП 1% [23:13:07]OFD Sender: Processing packet 92685 [packets to send 63, broken 62] [23:13:07]ProducePacketName [23:13:07]name=ofd_packets/00092685 [23:13:07]OFD Sender: To server: pG, [23:13:07]CommunicateWithHost lk.salyk.kg:30040 [23:13:07]ConnectInit lk.salyk.kg [23:13:07]line > о реализуемом товаре [23:13:07]line ИТОГО: 1865.00 [23:13:07]line НСП 1% : 16.51 [23:13:07]line НДС 12% : 198.06 [23:13:07]line Наличными: 0.00 [23:13:07]line Безнал.: 1865.00 [23:13:07]line Место: АЗС № 5 "Партнер Нефть" [23:13:07]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [23:13:07]line СНО: Общий режим [23:13:07]line Чек 133 15.09.2024 23:13 [23:13:07]line Смена: 507 ФФД: 1.0 [23:13:07]line ЗНМ: 03000000022 [23:13:07]line РНМ: 0000000000091423 [23:13:07]line Версия ККМ: 001 [23:13:07]line Платежная система: Бакай Банк [23:13:07]line ФМ: 0000000000874692 [23:13:07]line ФД: 92685 [23:13:07]line ФПД: 161115728656686 [23:13:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T231315&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92685&fm=161115728656686&tin=02508201610067®Number=0000000000091423&sum=186500 [23:13:07]line 0 [23:13:07]written 0, free lines is 4095 [23:13:07]Connected sock=10 [23:13:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 96 03 00 00 9A 76 8E 03 09 9B 5A 03 01 00 03 00 82 03 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 33 38 30 30 30 32 30 34 35 33 34 30 37 06 04 2E 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 63 68 75 6E 6B 79 20 33 36 78 34 30 D0 B3 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 9C 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 31 31 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 38 35 06 04 25 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 31 32 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D0 84 00 00 00 00 13 04 06 00 A0 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 30 38 34 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 41 4E 54 49 42 41 43 54 45 52 49 41 4C 20 31 30 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 D8 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 4D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 D8 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 0B 6A E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0D 6A 01 00 35 04 06 00 92 88 AD C6 39 2E 54 4F 5E 1A C6 6D 74 3A [23:13:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 FB 23 47 00 9C DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0D 6A 01 00 F4 03 04 00 82 12 E7 66 B6 04 01 00 00 86 36 EA 63 F1 AC 85 8E [23:13:07]CommunicateWithHost err = 0 [23:13:07]CheckOFDResponse [23:13:07]1017 (14) - 77093643461234 [23:13:07]1041 (16) - 0000000000874692 [23:13:07]1040 (4) - 92685 [23:13:07]1012 (4) - 15.09.2024 16:59 [23:13:07]1206 (1) - 0 [23:13:07]OFD Sender: Remove packet 92685 [23:13:07]ProducePacketName [23:13:07]name=ofd_packets/00092685 [23:13:07]NVStorageDeleteData [23:13:08]Write to MH i2c: 01 00 00 C3 66 29 [23:13:08]Write i2c OK [23:13:08]MH_I2C_Read... [23:13:08]Read from MH i2c: 01 [23:13:08]MH_I2C_Read... [23:13:08]Read from MH i2c: 01 07 00 [23:13:08]MH_I2C_Read... [23:13:08]Read from MH i2c: 01 07 00 C3 66 00 00 00 00 00 7F 0B BA [23:13:08]RasterBufferAndPrint [23:13:08]line [23:13:08]line [23:13:08]line [23:13:08]line [23:13:08]line [23:13:08]written 0, free lines is 2956 [23:13:08]MH_Cut [23:13:08]Write to MH i2c: D1 01 00 CA 66 01 02 [23:13:08]Write i2c OK [23:13:08]MH_I2C_Read... [23:13:08]Read from MH i2c: D1 [23:13:08]MH_I2C_Read... [23:13:08]Read from MH i2c: D1 01 00 [23:13:08]MH_I2C_Read... [23:13:08]Read from MH i2c: D1 01 00 CA 66 00 01 [23:13:08]Write to MH i2c: 01 00 00 CB 66 31 [23:13:08]Write i2c OK [23:13:08]MH_I2C_Read... [23:13:08]OFD Sender: No OFD packet to send [23:13:09]*** Cut start [23:13:09]*** Purtial cut [23:13:09]*** Stage 1: CUTSNS_PIN = 1 [23:13:11]Read from MH i2c: 01 [23:13:11]MH_I2C_Read... [23:13:11]*** Stop cut motor [23:13:11]*** Cut end [23:13:11]Read from MH i2c: 01 07 00 [23:13:11]MH_I2C_Read... [23:13:11]Read from MH i2c: 01 07 00 CB 66 00 00 00 00 00 FF 0F 46 [23:13:11]process_action close_receipt done [23:13:11]requested_data is exist [23:13:11]produce_requested_data [23:13:11]requested_item fm.sn is exist - process it [23:13:11]wFMCommunicate request_size=4 [23:13:11]MH_SAM_APDU [23:13:11]CAPDU: 80 11 00 00 [23:13:11]Write to MH i2c: E2 08 00 CC 66 80 11 00 00 00 00 00 00 AC [23:13:11]Write i2c OK [23:13:11]MH_I2C_Read... [23:13:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:13:11]Read from MH i2c: E2 [23:13:11]MH_I2C_Read... [23:13:11]Read from MH i2c: E2 17 00 [23:13:11]MH_I2C_Read... [23:13:11]Read from MH i2c: E2 17 00 CC 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 03 [23:13:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:13:11]wFMCommunicate OK [23:13:11]requested_item fd.num is exist - process it [23:13:11]SAM_PROTO_GetFieldsCounters [23:13:11]wFMCommunicate request_size=4 [23:13:11]MH_SAM_APDU [23:13:11]CAPDU: 80 13 00 00 [23:13:11]Write to MH i2c: E2 08 00 CD 66 80 13 00 00 00 00 00 00 AF [23:13:11]Write i2c OK [23:13:11]MH_I2C_Read... [23:13:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:13:11]Read from MH i2c: E2 [23:13:11]MH_I2C_Read... [23:13:11]Read from MH i2c: E2 62 00 [23:13:11]MH_I2C_Read... [23:13:11]Read from MH i2c: E2 62 00 CD 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 0D 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [23:13:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 0D 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:13:11]wFMCommunicate OK [23:13:11]SAM_PROTO_GetFieldsCounters done [23:13:11]requested_item shift.num is exist - process it [23:13:11]requested_item shift.opened is exist - process it [23:13:11]req_shift_opened [23:13:11]FM_GetShiftState [23:13:11]SAM_PROTO_GetShiftState [23:13:11]wFMCommunicate request_size=4 [23:13:11]MH_SAM_APDU [23:13:11]CAPDU: 80 13 01 00 [23:13:11]Write to MH i2c: E2 08 00 CE 66 80 13 01 00 00 00 00 00 B1 [23:13:11]Write i2c OK [23:13:11]MH_I2C_Read... [23:13:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:13:11]Read from MH i2c: E2 [23:13:11]MH_I2C_Read... [23:13:11]Read from MH i2c: E2 0E 00 [23:13:11]MH_I2C_Read... [23:13:11]Read from MH i2c: E2 0E 00 CE 66 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 33 [23:13:11]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [23:13:11]wFMCommunicate OK [23:13:11]SAM_PROTO_GetShiftState done [23:13:11]FM_GetShiftState done [23:13:11]req_shift_opened done [23:13:11]requested_item shift.open_date is exist - process it [23:13:11]req_shift_open_date [23:13:11]req_shift_open_date done [23:13:11]produce_requested_data done [23:13:11]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92685,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [23:13:11]process_action_free close_receipt [23:13:11]json_value_free [23:13:11]json_value_free done [23:13:11]process_json_proto returns [23:13:11]Send response to host [23:13:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92685,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [23:13:11]free response buf [23:13:11]execute_script done [23:13:11]execute_script returns [23:13:11]free content buf [23:13:11]Sock 9.Close socket [23:13:11]Sock 9.Thread stoped [23:13:13]OFD Sender: No OFD packet to send [23:13:18]OFD Sender: No OFD packet to send [23:13:23]OFD Sender: No OFD packet to send [23:13:28]OFD Sender: No OFD packet to send [23:13:32]accept exits with 8 [23:13:32]New connection [23:13:32]New thread 3066658148 created [23:13:32]Thread 3066801508 joined [23:13:32]Waiting for new connection... [23:13:32] Sock 8.Parse request [23:13:32]Sock 8.Check first char [23:13:32]Sock 8.First char is OK [23:13:32]request: POST /json_proto HTTP/1.0 [23:13:32]Method: POST [23:13:32]URL: /json_proto [23:13:32]Method is POST - this is cgi request [23:13:32]url: /json_proto [23:13:32]query_string will be loaded in cgi processing [23:13:32]execute_cgi json_proto POST (null) [23:13:32]execute_cgi path=json_proto method=POST [23:13:32]POST find Content-Length [23:13:32]Host: 172.17.57.71:8080 [23:13:32]Content-Length: 677 [23:13:32]Content-Type: application/json [23:13:32] [23:13:32]POST finish read [23:13:32]Found Content-Length = 677 [23:13:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 6.770, "sum" : 500.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:13:32]execute_script... [23:13:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 6.770, "sum" : 500.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:13:32]POST & json_proto [23:13:32]process_json_proto [23:13:32]json parsed OK: [23:13:32]protocol is kg_v1.0 [23:13:32]action value=close_receipt [23:13:32]process_action close_receipt [23:13:32]cmd_close_receipt [23:13:32]MH_GetDate [23:13:32]Write to MH i2c: F0 00 00 CF 66 24 [23:13:32]Write i2c OK [23:13:32]MH_I2C_Read... [23:13:32]Read from MH i2c: F0 [23:13:32]MH_I2C_Read... [23:13:32]Read from MH i2c: F0 09 00 [23:13:32]MH_I2C_Read... [23:13:32]Read from MH i2c: F0 09 00 CF 66 00 27 6A E7 66 33 3A A4 66 82 [23:13:32]GetLastDocTimeStamp 1726441995 [23:13:32]current date 1726442023 [23:13:32]FM_GetShiftState [23:13:32]SAM_PROTO_GetShiftState [23:13:32]wFMCommunicate request_size=4 [23:13:32]MH_SAM_APDU [23:13:32]CAPDU: 80 13 01 00 [23:13:32]Write to MH i2c: E2 08 00 D0 66 80 13 01 00 00 00 00 00 B3 [23:13:32]Write i2c OK [23:13:32]MH_I2C_Read... [23:13:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:13:32]Read from MH i2c: E2 [23:13:32]MH_I2C_Read... [23:13:32]Read from MH i2c: E2 0E 00 [23:13:32]MH_I2C_Read... [23:13:32]Read from MH i2c: E2 0E 00 D0 66 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 35 [23:13:32]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [23:13:32]wFMCommunicate OK [23:13:32]SAM_PROTO_GetShiftState done [23:13:32]FM_GetShiftState done [23:13:32]opened in 1726359809 [23:13:32]opened+sec_in_day 1726446209 [23:13:32]quantity*price = 50030 [23:13:32]sum+1 = 50031 [23:13:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 134 15.09.2024 23:13 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92686 ФПД: 249264792221030 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T231343&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92686&fm=249264792221030&tin=02508201610067®Number=0000000000091423&sum=50000 [23:13:33]StoreToDocumentArchive [23:13:33]shift 507 fd 92686 [23:13:33]save to /storage/0507/doc_00092686 [23:13:33]save last doc name /storage/0507/doc_00092686 to /storage/kkm_last_doc_name [23:13:33]save OK [23:13:33]Clear old archive folders... [23:13:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:13:33]tlvbuf is 010881D0 [23:13:33]SAM_PROTO_ClearQueue [23:13:33]wFMCommunicate request_size=4 [23:13:33]MH_SAM_APDU [23:13:33]CAPDU: 80 09 00 00 [23:13:33]Write to MH i2c: E2 08 00 DD 66 80 09 00 00 00 00 00 00 B5 [23:13:33]Write i2c OK [23:13:33]MH_I2C_Read... [23:13:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:13:33]Read from MH i2c: E2 [23:13:33]MH_I2C_Read... [23:13:33]Read from MH i2c: E2 03 00 [23:13:33]MH_I2C_Read... [23:13:33]Read from MH i2c: E2 03 00 DD 66 00 90 00 B7 [23:13:33]RAPDU: 90 00 [23:13:33]wFMCommunicate OK [23:13:33]SAM_PROTO_ClearQueue done [23:13:33]KKMCreateOFDPacket [23:13:33]OFDProtocolAddRootSTLVToBuf [23:13:33]FM_MakeSignedData [23:13:33]FM_MakeSignedData [23:13:33]SAM_PROTO_SignData [23:13:33]wFMCommunicate request_size=4 [23:13:33]MH_SAM_APDU [23:13:33]CAPDU: 80 0D 01 02 [23:13:33]Write to MH i2c: E2 08 00 DE 66 80 0D 01 02 00 00 00 00 BD [23:13:33]Write i2c OK [23:13:33]MH_I2C_Read... [23:13:33]OFD Sender: No OFD packet to send [23:13:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:13:33]Read from MH i2c: E2 [23:13:33]MH_I2C_Read... [23:13:33]Read from MH i2c: E2 03 00 [23:13:33]MH_I2C_Read... [23:13:33]Read from MH i2c: E2 03 00 DE 66 00 90 00 B8 [23:13:33]RAPDU: 90 00 [23:13:33]wFMCommunicate OK [23:13:33]wFMCommunicate request_size=255 [23:13:33]MH_SAM_APDU [23:13:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 27 6A E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0E 6A 01 00 35 04 06 00 E2 [23:13:33]Write to MH i2c: E2 02 01 DF 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 27 6A E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0E 6A 01 00 35 04 06 00 E2 00 00 F2 [23:13:33]Write i2c OK [23:13:33]MH_I2C_Read... [23:13:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:13:33]Read from MH i2c: E2 [23:13:33]MH_I2C_Read... [23:13:33]Read from MH i2c: E2 03 00 [23:13:33]MH_I2C_Read... [23:13:33]Read from MH i2c: E2 03 00 DF 66 00 90 00 B9 [23:13:33]RAPDU: 90 00 [23:13:33]wFMCommunicate OK [23:13:33]wFMCommunicate request_size=10 [23:13:33]MH_SAM_APDU [23:13:33]CAPDU: 80 0D 02 02 05 B4 7B 65 35 66 [23:13:33]Write to MH i2c: E2 0D 00 E0 66 80 0D 02 02 05 00 B4 7B 65 35 66 00 00 F9 [23:13:33]Write i2c OK [23:13:33]MH_I2C_Read... [23:13:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:13:33]Read from MH i2c: E2 [23:13:33]MH_I2C_Read... [23:13:33]Read from MH i2c: E2 03 00 [23:13:33]MH_I2C_Read... [23:13:33]Read from MH i2c: E2 03 00 E0 66 00 90 00 BA [23:13:33]RAPDU: 90 00 [23:13:33]wFMCommunicate OK [23:13:33]wFMCommunicate request_size=4 [23:13:33]MH_SAM_APDU [23:13:33]CAPDU: 80 0D 03 02 [23:13:33]Write to MH i2c: E2 08 00 E1 66 80 0D 03 02 00 00 00 00 C2 [23:13:33]Write i2c OK [23:13:33]MH_I2C_Read... [23:13:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:13:33]Read from MH i2c: E2 [23:13:33]MH_I2C_Read... [23:13:33]Read from MH i2c: E2 0B 00 [23:13:33]MH_I2C_Read... [23:13:33]Read from MH i2c: E2 0B 00 E1 66 00 75 0F E1 0E F9 FC DD F3 90 00 FB [23:13:33]RAPDU: 75 0F E1 0E F9 FC DD F3 90 00 [23:13:33]wFMCommunicate OK [23:13:33]SAM_PROTO_SignData done [23:13:33]FM_MakeSignedData done [23:13:33]CreateOFDProtocolMessage [23:13:33]wFMCommunicate request_size=4 [23:13:33]MH_SAM_APDU [23:13:33]CAPDU: 80 11 00 00 [23:13:33]Write to MH i2c: E2 08 00 E2 66 80 11 00 00 00 00 00 00 C2 [23:13:33]Write i2c OK [23:13:33]MH_I2C_Read... [23:13:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:13:33]Read from MH i2c: E2 [23:13:33]MH_I2C_Read... [23:13:33]Read from MH i2c: E2 17 00 [23:13:33]MH_I2C_Read... [23:13:33]Read from MH i2c: E2 17 00 E2 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 19 [23:13:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:13:33]wFMCommunicate OK [23:13:33]CreateOFDProtocolMessage done [23:13:33]OFDSenderStorePacket 92686 [23:13:33]StoreOFDPacket docnum=92686 [23:13:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 EC 8F 07 01 92 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 27 6A E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0E 6A 01 00 35 04 06 00 E2 B4 7B 65 35 66 75 0F E1 0E F9 FC DD F3 [23:13:33]CheckFolder [23:13:33]dirname=/storage/ofd_packets [23:13:33]CheckFolder done [23:13:33]ProducePacketName [23:13:33]name=ofd_packets/00092686 [23:13:33]NVStorageSaveData ofd_packets/00092686 [23:13:33]File name is /storage/ofd_packets/00092686 [23:13:33]Write 301 bytes [23:13:33]NVStorageSaveData done [23:13:33]OFDSenderStorePacket done [23:13:33]KKMCreateOFDPacket done [23:13:33]NVStorageSaveData kkm_last_timestamp [23:13:33]File name is /storage/kkm_last_timestamp [23:13:33]Write 4 bytes [23:13:33]NVStorageSaveData done [23:13:33]ExternCall_PrintAddStr [23:13:33]wPrintStart [23:13:33]Write to MH i2c: 01 00 00 E3 66 49 [23:13:33]Write i2c OK [23:13:33]MH_I2C_Read... [23:13:33]Read from MH i2c: 01 [23:13:33]MH_I2C_Read... [23:13:33]Read from MH i2c: 01 07 00 [23:13:33]MH_I2C_Read... [23:13:33]Read from MH i2c: 01 07 00 E3 66 00 00 00 00 00 FF 0F 5E [23:13:33]RasterBufferAndPrint [23:13:33]line Счет N : (1)648758 [23:13:33]line ИНН: 02508201610067 [23:13:33]line Контрольно-Кассовый Чек [23:13:33]line ПРОДАЖА [23:13:33]line ТРК (МРК, ГНК) : 22 [23:13:33]line Товар: 2710124500 [23:13:33]line Аи-95-К-5 [23:13:33]line 6.770 * 73.90 [23:13:33]line = 500.30 [23:13:33]line НДС 12% НСП 1% [23:13:33]line > о реализуемом товаре [23:13:33]line ОКРУГЛЕНИЕ: -0.30 [23:13:33]line ИТОГО: 500.00 [23:13:33]line Внесено: 500.00 [23:13:33]line СДАЧА: 0.00 [23:13:33]line НСП 1% : 4.43 [23:13:33]line НДС 12% : 53.13 [23:13:33]line Наличными: 500.00 [23:13:33]line Безнал.: 0.00 [23:13:33]line Место: АЗС № 5 "Партнер Нефть" [23:13:33]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [23:13:33]line СНО: Общий режим [23:13:33]line Чек 134 15.09.2024 23:13 [23:13:33]line Смена: 507 ФФД: 1.0 [23:13:33]line ЗНМ: 03000000022 [23:13:33]line РНМ: 0000000000091423 [23:13:33]line Версия ККМ: 001 [23:13:33]line ФМ: 0000000000874692 [23:13:33]line ФД: 92686 [23:13:33]line ФПД: 249264792221030 [23:13:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T231343&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92686&fm=249264792221030&tin=02508201610067®Number=0000000000091423&sum=50000 [23:13:34]OFD Sender: Processing packet 92686 [packets to send 63, broken 62] [23:13:34]ProducePacketName [23:13:34]name=ofd_packets/00092686 [23:13:34]OFD Sender: To server: pG, [23:13:34]CommunicateWithHost lk.salyk.kg:30040 [23:13:34]ConnectInit lk.salyk.kg [23:13:34]written 0, free lines is 4095 [23:13:34]Connected sock=10 [23:13:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 EC 8F 07 01 92 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 27 6A E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0E 6A 01 00 35 04 06 00 E2 B4 7B 65 35 66 75 0F E1 0E F9 FC DD F3 [23:13:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 49 F7 47 00 B1 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0E 6A 01 00 F4 03 04 00 9D 12 E7 66 B6 04 01 00 00 61 47 6A DA A9 81 E1 82 [23:13:34]CommunicateWithHost err = 0 [23:13:34]CheckOFDResponse [23:13:34]1017 (14) - 77093643461234 [23:13:34]1041 (16) - 0000000000874692 [23:13:34]1040 (4) - 92686 [23:13:34]1012 (4) - 15.09.2024 17:00 [23:13:34]1206 (1) - 0 [23:13:34]OFD Sender: Remove packet 92686 [23:13:34]ProducePacketName [23:13:34]name=ofd_packets/00092686 [23:13:34]NVStorageDeleteData [23:13:34]Write to MH i2c: 01 00 00 0E 67 75 [23:13:34]Write i2c OK [23:13:34]MH_I2C_Read... [23:13:34]Read from MH i2c: 01 [23:13:34]MH_I2C_Read... [23:13:34]Read from MH i2c: 01 07 00 [23:13:34]MH_I2C_Read... [23:13:34]Read from MH i2c: 01 07 00 0E 67 00 00 00 00 00 FF 0C 87 [23:13:34]RasterBufferAndPrint [23:13:34]line [23:13:34]line [23:13:34]line [23:13:34]line [23:13:34]line [23:13:34]written 0, free lines is 3334 [23:13:34]MH_Cut [23:13:34]Write to MH i2c: D1 01 00 15 67 01 4E [23:13:34]Write i2c OK [23:13:34]MH_I2C_Read... [23:13:34]Read from MH i2c: D1 [23:13:34]MH_I2C_Read... [23:13:34]Read from MH i2c: D1 01 00 [23:13:34]MH_I2C_Read... [23:13:34]Read from MH i2c: D1 01 00 15 67 00 4D [23:13:34]Write to MH i2c: 01 00 00 16 67 7D [23:13:34]Write i2c OK [23:13:34]MH_I2C_Read... [23:13:34]OFD Sender: No OFD packet to send [23:13:35]*** Cut start [23:13:35]*** Purtial cut [23:13:35]*** Stage 1: CUTSNS_PIN = 1 [23:13:37]Read from MH i2c: 01 [23:13:37]MH_I2C_Read... [23:13:37]*** Stop cut motor [23:13:37]*** Cut end [23:13:37]Read from MH i2c: 01 07 00 [23:13:37]MH_I2C_Read... [23:13:37]Read from MH i2c: 01 07 00 16 67 00 00 00 00 00 FF 0F 92 [23:13:37]process_action close_receipt done [23:13:37]requested_data is exist [23:13:37]produce_requested_data [23:13:37]requested_item fm.sn is exist - process it [23:13:37]wFMCommunicate request_size=4 [23:13:37]MH_SAM_APDU [23:13:37]CAPDU: 80 11 00 00 [23:13:37]Write to MH i2c: E2 08 00 17 67 80 11 00 00 00 00 00 00 F8 [23:13:37]Write i2c OK [23:13:37]MH_I2C_Read... [23:13:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:13:37]Read from MH i2c: E2 [23:13:37]MH_I2C_Read... [23:13:37]Read from MH i2c: E2 17 00 [23:13:37]MH_I2C_Read... [23:13:37]Read from MH i2c: E2 17 00 17 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 4F [23:13:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:13:37]wFMCommunicate OK [23:13:37]requested_item fd.num is exist - process it [23:13:37]SAM_PROTO_GetFieldsCounters [23:13:37]wFMCommunicate request_size=4 [23:13:37]MH_SAM_APDU [23:13:37]CAPDU: 80 13 00 00 [23:13:37]Write to MH i2c: E2 08 00 18 67 80 13 00 00 00 00 00 00 FB [23:13:37]Write i2c OK [23:13:37]MH_I2C_Read... [23:13:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:13:37]Read from MH i2c: E2 [23:13:37]MH_I2C_Read... [23:13:37]Read from MH i2c: E2 62 00 [23:13:37]MH_I2C_Read... [23:13:37]Read from MH i2c: E2 62 00 18 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 0E 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [23:13:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 0E 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:13:37]wFMCommunicate OK [23:13:37]SAM_PROTO_GetFieldsCounters done [23:13:37]requested_item shift.num is exist - process it [23:13:37]requested_item shift.opened is exist - process it [23:13:37]req_shift_opened [23:13:37]FM_GetShiftState [23:13:37]SAM_PROTO_GetShiftState [23:13:37]wFMCommunicate request_size=4 [23:13:37]MH_SAM_APDU [23:13:37]CAPDU: 80 13 01 00 [23:13:37]Write to MH i2c: E2 08 00 19 67 80 13 01 00 00 00 00 00 FD [23:13:37]Write i2c OK [23:13:37]MH_I2C_Read... [23:13:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:13:37]Read from MH i2c: E2 [23:13:37]MH_I2C_Read... [23:13:37]Read from MH i2c: E2 0E 00 [23:13:37]MH_I2C_Read... [23:13:37]Read from MH i2c: E2 0E 00 19 67 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 7F [23:13:37]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [23:13:37]wFMCommunicate OK [23:13:37]SAM_PROTO_GetShiftState done [23:13:37]FM_GetShiftState done [23:13:37]req_shift_opened done [23:13:37]requested_item shift.open_date is exist - process it [23:13:37]req_shift_open_date [23:13:37]req_shift_open_date done [23:13:37]produce_requested_data done [23:13:37]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92686,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [23:13:37]process_action_free close_receipt [23:13:37]json_value_free [23:13:37]json_value_free done [23:13:37]process_json_proto returns [23:13:37]Send response to host [23:13:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92686,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [23:13:37]free response buf [23:13:37]execute_script done [23:13:37]execute_script returns [23:13:37]free content buf [23:13:37]Sock 8.Close socket [23:13:37]Sock 8.Thread stoped [23:13:39]OFD Sender: No OFD packet to send [23:13:44]OFD Sender: No OFD packet to send [23:13:49]OFD Sender: No OFD packet to send [23:13:54]OFD Sender: No OFD packet to send [23:13:59]OFD Sender: No OFD packet to send [23:14:04]OFD Sender: No OFD packet to send [23:14:09]OFD Sender: No OFD packet to send [23:14:14]OFD Sender: No OFD packet to send [23:14:19]OFD Sender: No OFD packet to send [23:14:24]OFD Sender: No OFD packet to send [23:14:29]OFD Sender: No OFD packet to send [23:14:34]OFD Sender: No OFD packet to send [23:14:37]accept exits with 9 [23:14:37]New connection [23:14:37]New thread 3066801508 created [23:14:37]Thread 3066658148 joined [23:14:37]Waiting for new connection... [23:14:37] Sock 9.Parse request [23:14:37]Sock 9.Check first char [23:14:37]Sock 9.First char is OK [23:14:37]request: POST /json_proto HTTP/1.0 [23:14:37]Method: POST [23:14:37]URL: /json_proto [23:14:37]Method is POST - this is cgi request [23:14:37]url: /json_proto [23:14:37]query_string will be loaded in cgi processing [23:14:37]execute_cgi json_proto POST (null) [23:14:37]execute_cgi path=json_proto method=POST [23:14:37]POST find Content-Length [23:14:37]Host: 172.17.57.71:8080 [23:14:37]Content-Length: 819 [23:14:37]Content-Type: application/json [23:14:37] [23:14:37]POST finish read [23:14:37]Found Content-Length = 819 [23:14:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 40.600, "sum" : 3000.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3000.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:14:37]execute_script... [23:14:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 40.600, "sum" : 3000.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3000.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:14:37]POST & json_proto [23:14:37]process_json_proto [23:14:37]json parsed OK: [23:14:37]protocol is kg_v1.0 [23:14:37]action value=close_receipt [23:14:37]process_action close_receipt [23:14:37]cmd_close_receipt [23:14:37]MH_GetDate [23:14:37]Write to MH i2c: F0 00 00 1A 67 70 [23:14:37]Write i2c OK [23:14:37]MH_I2C_Read... [23:14:37]Read from MH i2c: F0 [23:14:37]MH_I2C_Read... [23:14:37]Read from MH i2c: F0 09 00 [23:14:37]MH_I2C_Read... [23:14:37]Read from MH i2c: F0 09 00 1A 67 00 68 6A E7 66 33 3A A4 66 0F [23:14:37]GetLastDocTimeStamp 1726442023 [23:14:37]current date 1726442088 [23:14:37]FM_GetShiftState [23:14:37]SAM_PROTO_GetShiftState [23:14:37]wFMCommunicate request_size=4 [23:14:37]MH_SAM_APDU [23:14:37]CAPDU: 80 13 01 00 [23:14:37]Write to MH i2c: E2 08 00 1B 67 80 13 01 00 00 00 00 00 FF [23:14:37]Write i2c OK [23:14:37]MH_I2C_Read... [23:14:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:37]Read from MH i2c: E2 [23:14:37]MH_I2C_Read... [23:14:37]Read from MH i2c: E2 0E 00 [23:14:37]MH_I2C_Read... [23:14:37]Read from MH i2c: E2 0E 00 1B 67 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 81 [23:14:37]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [23:14:37]wFMCommunicate OK [23:14:37]SAM_PROTO_GetShiftState done [23:14:37]FM_GetShiftState done [23:14:37]opened in 1726359809 [23:14:37]opened+sec_in_day 1726446209 [23:14:37]quantity*price = 300034 [23:14:37]sum+1 = 300035 [23:14:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.34 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 0.00 Безнал.: 3000.34 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 135 15.09.2024 23:14 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92687 ФПД: 44135880768283 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T231448&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92687&fm=44135880768283&tin=02508201610067®Number=0000000000091423&sum=300034 [23:14:38]StoreToDocumentArchive [23:14:38]shift 507 fd 92687 [23:14:38]save to /storage/0507/doc_00092687 [23:14:38]save last doc name /storage/0507/doc_00092687 to /storage/kkm_last_doc_name [23:14:38]save OK [23:14:38]Clear old archive folders... [23:14:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:14:38]tlvbuf is 0109A1A0 [23:14:38]SAM_PROTO_ClearQueue [23:14:38]wFMCommunicate request_size=4 [23:14:38]MH_SAM_APDU [23:14:38]CAPDU: 80 09 00 00 [23:14:38]Write to MH i2c: E2 08 00 28 67 80 09 00 00 00 00 00 00 01 [23:14:38]Write i2c OK [23:14:38]MH_I2C_Read... [23:14:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:14:38]Read from MH i2c: E2 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: E2 03 00 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: E2 03 00 28 67 00 90 00 03 [23:14:38]RAPDU: 90 00 [23:14:38]wFMCommunicate OK [23:14:38]SAM_PROTO_ClearQueue done [23:14:38]KKMCreateOFDPacket [23:14:38]OFDProtocolAddRootSTLVToBuf [23:14:38]FM_MakeSignedData [23:14:38]FM_MakeSignedData [23:14:38]SAM_PROTO_SignData [23:14:38]wFMCommunicate request_size=4 [23:14:38]MH_SAM_APDU [23:14:38]CAPDU: 80 0D 01 02 [23:14:38]Write to MH i2c: E2 08 00 29 67 80 0D 01 02 00 00 00 00 09 [23:14:38]Write i2c OK [23:14:38]MH_I2C_Read... [23:14:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:14:38]Read from MH i2c: E2 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: E2 03 00 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: E2 03 00 29 67 00 90 00 04 [23:14:38]RAPDU: 90 00 [23:14:38]wFMCommunicate OK [23:14:38]wFMCommunicate request_size=255 [23:14:38]MH_SAM_APDU [23:14:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 02 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 68 6A E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0F 6A 01 00 35 04 06 00 28 [23:14:38]Write to MH i2c: E2 02 01 2A 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 02 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 68 6A E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0F 6A 01 00 35 04 06 00 28 00 00 B2 [23:14:38]Write i2c OK [23:14:38]MH_I2C_Read... [23:14:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:38]Read from MH i2c: E2 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: E2 03 00 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: E2 03 00 2A 67 00 90 00 05 [23:14:38]RAPDU: 90 00 [23:14:38]wFMCommunicate OK [23:14:38]wFMCommunicate request_size=10 [23:14:38]MH_SAM_APDU [23:14:38]CAPDU: 80 0D 02 02 05 24 2F 7E BB 1B [23:14:38]Write to MH i2c: E2 0D 00 2B 67 80 0D 02 02 05 00 24 2F 7E BB 1B 00 00 BD [23:14:38]Write i2c OK [23:14:38]MH_I2C_Read... [23:14:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:38]Read from MH i2c: E2 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: E2 03 00 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: E2 03 00 2B 67 00 90 00 06 [23:14:38]RAPDU: 90 00 [23:14:38]wFMCommunicate OK [23:14:38]wFMCommunicate request_size=4 [23:14:38]MH_SAM_APDU [23:14:38]CAPDU: 80 0D 03 02 [23:14:38]Write to MH i2c: E2 08 00 2C 67 80 0D 03 02 00 00 00 00 0E [23:14:38]Write i2c OK [23:14:38]MH_I2C_Read... [23:14:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:14:38]Read from MH i2c: E2 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: E2 0B 00 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: E2 0B 00 2C 67 00 BA D5 61 DC 13 83 8A B7 90 00 B2 [23:14:38]RAPDU: BA D5 61 DC 13 83 8A B7 90 00 [23:14:38]wFMCommunicate OK [23:14:38]SAM_PROTO_SignData done [23:14:38]FM_MakeSignedData done [23:14:38]CreateOFDProtocolMessage [23:14:38]wFMCommunicate request_size=4 [23:14:38]MH_SAM_APDU [23:14:38]CAPDU: 80 11 00 00 [23:14:38]Write to MH i2c: E2 08 00 2D 67 80 11 00 00 00 00 00 00 0E [23:14:38]Write i2c OK [23:14:38]MH_I2C_Read... [23:14:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:38]Read from MH i2c: E2 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: E2 17 00 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: E2 17 00 2D 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 65 [23:14:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:14:38]wFMCommunicate OK [23:14:38]CreateOFDProtocolMessage done [23:14:38]OFDSenderStorePacket 92687 [23:14:38]StoreOFDPacket docnum=92687 [23:14:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 A2 34 07 01 3C A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 02 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 68 6A E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0F 6A 01 00 35 04 06 00 28 24 2F 7E BB 1B BA D5 61 DC 13 83 8A B7 [23:14:38]CheckFolder [23:14:38]dirname=/storage/ofd_packets [23:14:38]CheckFolder done [23:14:38]ProducePacketName [23:14:38]name=ofd_packets/00092687 [23:14:38]NVStorageSaveData ofd_packets/00092687 [23:14:38]File name is /storage/ofd_packets/00092687 [23:14:38]Write 301 bytes [23:14:38]NVStorageSaveData done [23:14:38]OFDSenderStorePacket done [23:14:38]KKMCreateOFDPacket done [23:14:38]NVStorageSaveData kkm_last_timestamp [23:14:38]File name is /storage/kkm_last_timestamp [23:14:38]Write 4 bytes [23:14:38]NVStorageSaveData done [23:14:38]ExternCall_PrintAddStr [23:14:38]wPrintStart [23:14:38]Write to MH i2c: 01 00 00 2E 67 95 [23:14:38]Write i2c OK [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: 01 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: 01 07 00 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: 01 07 00 2E 67 00 00 00 00 00 FF 0F AA [23:14:38]RasterBufferAndPrint [23:14:38]line Счет N : (1)648757 [23:14:38]line ИНН: 02508201610067 [23:14:38]line Контрольно-Кассовый Чек [23:14:38]line ПРОДАЖА [23:14:38]line ТРК (МРК, ГНК) : 62 [23:14:38]line Товар: 2710124500 [23:14:38]line Аи-95-К-5 [23:14:38]line 40.600 * 73.90 [23:14:38]line = 3000.34 [23:14:38]line НДС 12% НСП 1% [23:14:38]line > о реализуемом товаре [23:14:38]line ИТОГО: 3000.34 [23:14:38]line НСП 1% : 26.55 [23:14:38]line НДС 12% : 318.62 [23:14:38]line Наличными: 0.00 [23:14:38]line Безнал.: 3000.34 [23:14:38]line Место: АЗС № 5 "Партнер Нефть" [23:14:38]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [23:14:38]line СНО: Общий режим [23:14:38]line Чек 135 15.09.2024 23:14 [23:14:38]line Смена: 507 ФФД: 1.0 [23:14:38]line ЗНМ: 03000000022 [23:14:38]line РНМ: 0000000000091423 [23:14:38]line Версия ККМ: 001 [23:14:38]line Платежная система: Бакай Банк [23:14:38]line ФМ: 0000000000874692 [23:14:38]line ФД: 92687 [23:14:38]line ФПД: 44135880768283 [23:14:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T231448&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92687&fm=44135880768283&tin=02508201610067®Number=0000000000091423&sum=300034 [23:14:39]OFD Sender: Processing packet 92687 [packets to send 63, broken 62] [23:14:39]ProducePacketName [23:14:39]name=ofd_packets/00092687 [23:14:39]OFD Sender: To server: pG, [23:14:39]CommunicateWithHost lk.salyk.kg:30040 [23:14:39]ConnectInit lk.salyk.kg [23:14:39]written 0, free lines is 4095 [23:14:39]Connected sock=10 [23:14:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 A2 34 07 01 3C A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 02 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 68 6A E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0F 6A 01 00 35 04 06 00 28 24 2F 7E BB 1B BA D5 61 DC 13 83 8A B7 [23:14:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 85 E6 47 00 49 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0F 6A 01 00 F4 03 04 00 DE 12 E7 66 B6 04 01 00 00 72 51 32 A3 46 95 6B 8B [23:14:39]CommunicateWithHost err = 0 [23:14:39]CheckOFDResponse [23:14:39]1017 (14) - 77093643461234 [23:14:39]1041 (16) - 0000000000874692 [23:14:39]1040 (4) - 92687 [23:14:39]1012 (4) - 15.09.2024 17:01 [23:14:39]1206 (1) - 0 [23:14:39]OFD Sender: Remove packet 92687 [23:14:39]ProducePacketName [23:14:39]name=ofd_packets/00092687 [23:14:39]NVStorageDeleteData [23:14:39]Write to MH i2c: 01 00 00 58 67 BF [23:14:39]Write i2c OK [23:14:39]MH_I2C_Read... [23:14:39]Read from MH i2c: 01 [23:14:39]MH_I2C_Read... [23:14:39]Read from MH i2c: 01 07 00 [23:14:39]MH_I2C_Read... [23:14:39]Read from MH i2c: 01 07 00 58 67 00 00 00 00 00 03 0D D6 [23:14:39]RasterBufferAndPrint [23:14:39]line [23:14:39]line [23:14:39]line [23:14:39]line [23:14:39]line [23:14:39]written 0, free lines is 3338 [23:14:39]MH_Cut [23:14:39]Write to MH i2c: D1 01 00 5F 67 01 98 [23:14:39]Write i2c OK [23:14:39]MH_I2C_Read... [23:14:39]Read from MH i2c: D1 [23:14:39]MH_I2C_Read... [23:14:39]Read from MH i2c: D1 01 00 [23:14:39]MH_I2C_Read... [23:14:39]Read from MH i2c: D1 01 00 5F 67 00 97 [23:14:39]Write to MH i2c: 01 00 00 60 67 C7 [23:14:39]Write i2c OK [23:14:39]MH_I2C_Read... [23:14:39]OFD Sender: No OFD packet to send [23:14:40]*** Cut start [23:14:40]*** Purtial cut [23:14:40]*** Stage 1: CUTSNS_PIN = 1 [23:14:42]Read from MH i2c: 01 [23:14:42]MH_I2C_Read... [23:14:42]*** Stop cut motor [23:14:42]*** Cut end [23:14:42]Read from MH i2c: 01 07 00 [23:14:42]MH_I2C_Read... [23:14:42]Read from MH i2c: 01 07 00 60 67 00 00 00 00 00 FF 0F DC [23:14:42]process_action close_receipt done [23:14:42]requested_data is exist [23:14:42]produce_requested_data [23:14:42]requested_item fm.sn is exist - process it [23:14:42]wFMCommunicate request_size=4 [23:14:42]MH_SAM_APDU [23:14:42]CAPDU: 80 11 00 00 [23:14:42]Write to MH i2c: E2 08 00 61 67 80 11 00 00 00 00 00 00 42 [23:14:42]Write i2c OK [23:14:42]MH_I2C_Read... [23:14:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:42]Read from MH i2c: E2 [23:14:42]MH_I2C_Read... [23:14:42]Read from MH i2c: E2 17 00 [23:14:42]MH_I2C_Read... [23:14:42]Read from MH i2c: E2 17 00 61 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 99 [23:14:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:14:42]wFMCommunicate OK [23:14:42]requested_item fd.num is exist - process it [23:14:42]SAM_PROTO_GetFieldsCounters [23:14:42]wFMCommunicate request_size=4 [23:14:42]MH_SAM_APDU [23:14:42]CAPDU: 80 13 00 00 [23:14:42]Write to MH i2c: E2 08 00 62 67 80 13 00 00 00 00 00 00 45 [23:14:42]Write i2c OK [23:14:42]MH_I2C_Read... [23:14:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:14:42]Read from MH i2c: E2 [23:14:42]MH_I2C_Read... [23:14:42]Read from MH i2c: E2 62 00 [23:14:42]MH_I2C_Read... [23:14:42]Read from MH i2c: E2 62 00 62 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 0F 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [23:14:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 0F 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:14:42]wFMCommunicate OK [23:14:42]SAM_PROTO_GetFieldsCounters done [23:14:42]requested_item shift.num is exist - process it [23:14:42]requested_item shift.opened is exist - process it [23:14:42]req_shift_opened [23:14:42]FM_GetShiftState [23:14:42]SAM_PROTO_GetShiftState [23:14:42]wFMCommunicate request_size=4 [23:14:42]MH_SAM_APDU [23:14:42]CAPDU: 80 13 01 00 [23:14:42]Write to MH i2c: E2 08 00 63 67 80 13 01 00 00 00 00 00 47 [23:14:42]Write i2c OK [23:14:42]MH_I2C_Read... [23:14:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:42]Read from MH i2c: E2 [23:14:42]MH_I2C_Read... [23:14:42]Read from MH i2c: E2 0E 00 [23:14:42]MH_I2C_Read... [23:14:42]Read from MH i2c: E2 0E 00 63 67 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 C9 [23:14:42]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [23:14:42]wFMCommunicate OK [23:14:42]SAM_PROTO_GetShiftState done [23:14:42]FM_GetShiftState done [23:14:42]req_shift_opened done [23:14:42]requested_item shift.open_date is exist - process it [23:14:42]req_shift_open_date [23:14:42]req_shift_open_date done [23:14:42]produce_requested_data done [23:14:42]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92687,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [23:14:42]process_action_free close_receipt [23:14:42]json_value_free [23:14:42]json_value_free done [23:14:42]process_json_proto returns [23:14:42]Send response to host [23:14:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92687,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [23:14:42]free response buf [23:14:42]execute_script done [23:14:42]execute_script returns [23:14:42]free content buf [23:14:42]Sock 9.Close socket [23:14:42]Sock 9.Thread stoped [23:14:44]OFD Sender: No OFD packet to send [23:14:49]OFD Sender: No OFD packet to send [23:14:55]OFD Sender: No OFD packet to send [23:15:00]OFD Sender: No OFD packet to send [23:15:05]OFD Sender: No OFD packet to send [23:15:10]OFD Sender: No OFD packet to send [23:15:15]OFD Sender: No OFD packet to send [23:15:20]OFD Sender: No OFD packet to send [23:15:25]OFD Sender: No OFD packet to send [23:15:30]OFD Sender: No OFD packet to send [23:15:35]OFD Sender: No OFD packet to send [23:15:40]OFD Sender: No OFD packet to send [23:15:45]OFD Sender: No OFD packet to send [23:15:50]OFD Sender: No OFD packet to send [23:15:55]OFD Sender: No OFD packet to send [23:16:00]OFD Sender: No OFD packet to send [23:16:05]OFD Sender: No OFD packet to send [23:16:10]OFD Sender: No OFD packet to send [23:16:15]OFD Sender: No OFD packet to send [23:16:20]OFD Sender: No OFD packet to send [23:16:25]OFD Sender: No OFD packet to send [23:16:30]OFD Sender: No OFD packet to send [23:16:35]OFD Sender: No OFD packet to send [23:16:40]OFD Sender: No OFD packet to send [23:16:45]OFD Sender: No OFD packet to send [23:16:50]OFD Sender: No OFD packet to send [23:16:55]OFD Sender: No OFD packet to send [23:17:00]OFD Sender: No OFD packet to send [23:17:05]OFD Sender: No OFD packet to send [23:17:10]OFD Sender: No OFD packet to send [23:17:15]OFD Sender: No OFD packet to send [23:17:20]OFD Sender: No OFD packet to send [23:17:25]OFD Sender: No OFD packet to send [23:17:30]OFD Sender: No OFD packet to send [23:17:35]OFD Sender: No OFD packet to send [23:17:40]OFD Sender: No OFD packet to send [23:17:45]OFD Sender: No OFD packet to send [23:17:50]OFD Sender: No OFD packet to send [23:17:55]OFD Sender: No OFD packet to send [23:18:00]OFD Sender: No OFD packet to send [23:18:05]OFD Sender: No OFD packet to send [23:18:10]OFD Sender: No OFD packet to send [23:18:15]OFD Sender: No OFD packet to send [23:18:20]OFD Sender: No OFD packet to send [23:18:25]OFD Sender: No OFD packet to send [23:18:30]OFD Sender: No OFD packet to send [23:18:35]OFD Sender: No OFD packet to send [23:18:40]OFD Sender: No OFD packet to send [23:18:45]OFD Sender: No OFD packet to send [23:18:50]OFD Sender: No OFD packet to send [23:18:55]OFD Sender: No OFD packet to send [23:19:00]OFD Sender: No OFD packet to send [23:19:05]OFD Sender: No OFD packet to send [23:19:10]OFD Sender: No OFD packet to send [23:19:15]OFD Sender: No OFD packet to send [23:19:20]OFD Sender: No OFD packet to send [23:19:25]OFD Sender: No OFD packet to send [23:19:30]OFD Sender: No OFD packet to send [23:19:35]OFD Sender: No OFD packet to send [23:19:40]OFD Sender: No OFD packet to send [23:19:45]OFD Sender: No OFD packet to send [23:19:50]OFD Sender: No OFD packet to send [23:19:55]OFD Sender: No OFD packet to send [23:20:00]OFD Sender: No OFD packet to send [23:20:05]OFD Sender: No OFD packet to send [23:20:10]OFD Sender: No OFD packet to send [23:20:15]OFD Sender: No OFD packet to send [23:20:20]OFD Sender: No OFD packet to send [23:20:25]OFD Sender: No OFD packet to send [23:20:30]OFD Sender: No OFD packet to send [23:20:35]OFD Sender: No OFD packet to send [23:20:40]OFD Sender: No OFD packet to send [23:20:45]OFD Sender: No OFD packet to send [23:20:50]OFD Sender: No OFD packet to send [23:20:55]OFD Sender: No OFD packet to send [23:21:00]OFD Sender: No OFD packet to send [23:21:05]OFD Sender: No OFD packet to send [23:21:10]OFD Sender: No OFD packet to send [23:21:15]OFD Sender: No OFD packet to send [23:21:20]OFD Sender: No OFD packet to send [23:21:25]OFD Sender: No OFD packet to send [23:21:30]OFD Sender: No OFD packet to send [23:21:35]OFD Sender: No OFD packet to send [23:21:40]OFD Sender: No OFD packet to send [23:21:45]OFD Sender: No OFD packet to send [23:21:50]OFD Sender: No OFD packet to send [23:21:55]OFD Sender: No OFD packet to send [23:22:00]OFD Sender: No OFD packet to send [23:22:05]OFD Sender: No OFD packet to send [23:22:10]OFD Sender: No OFD packet to send [23:22:15]OFD Sender: No OFD packet to send [23:22:20]OFD Sender: No OFD packet to send [23:22:25]OFD Sender: No OFD packet to send [23:22:30]OFD Sender: No OFD packet to send [23:22:35]OFD Sender: No OFD packet to send [23:22:40]OFD Sender: No OFD packet to send [23:22:45]OFD Sender: No OFD packet to send [23:22:50]OFD Sender: No OFD packet to send [23:22:55]OFD Sender: No OFD packet to send [23:23:00]OFD Sender: No OFD packet to send [23:23:05]OFD Sender: No OFD packet to send [23:23:10]OFD Sender: No OFD packet to send [23:23:15]OFD Sender: No OFD packet to send [23:23:20]OFD Sender: No OFD packet to send [23:23:21]accept exits with 8 [23:23:21]New connection [23:23:21]New thread 3066658148 created [23:23:21]Thread 3066801508 joined [23:23:21]Waiting for new connection... [23:23:21] Sock 8.Parse request [23:23:21]Sock 8.Check first char [23:23:21]Sock 8.First char is OK [23:23:21]request: POST /json_proto HTTP/1.0 [23:23:21]Method: POST [23:23:21]URL: /json_proto [23:23:21]Method is POST - this is cgi request [23:23:21]url: /json_proto [23:23:21]query_string will be loaded in cgi processing [23:23:21]execute_cgi json_proto POST (null) [23:23:21]execute_cgi path=json_proto method=POST [23:23:21]POST find Content-Length [23:23:21]Host: 172.17.57.71:8080 [23:23:21]Content-Length: 599 [23:23:21]Content-Type: application/json [23:23:21] [23:23:21]POST finish read [23:23:21]Found Content-Length = 599 [23:23:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127575", "tax_sys" : 0, "items" : [ { "code": "40099484", "name": "\u0416\u0435\u0432 Orbit White \u043F\u043E\u0434", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:21]execute_script... [23:23:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127575", "tax_sys" : 0, "items" : [ { "code": "40099484", "name": "\u0416\u0435\u0432 Orbit White \u043F\u043E\u0434", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:21]POST & json_proto [23:23:21]process_json_proto [23:23:21]json parsed OK: [23:23:21]protocol is kg_v1.0 [23:23:21]action value=close_receipt [23:23:21]process_action close_receipt [23:23:21]cmd_close_receipt [23:23:21]MH_GetDate [23:23:21]Write to MH i2c: F0 00 00 64 67 BA [23:23:21]Write i2c OK [23:23:21]MH_I2C_Read... [23:23:21]Read from MH i2c: F0 [23:23:21]MH_I2C_Read... [23:23:21]Read from MH i2c: F0 09 00 [23:23:21]MH_I2C_Read... [23:23:21]Read from MH i2c: F0 09 00 64 67 00 74 6C E7 66 33 3A A4 66 67 [23:23:21]GetLastDocTimeStamp 1726442088 [23:23:21]current date 1726442612 [23:23:21]FM_GetShiftState [23:23:21]SAM_PROTO_GetShiftState [23:23:21]wFMCommunicate request_size=4 [23:23:21]MH_SAM_APDU [23:23:21]CAPDU: 80 13 01 00 [23:23:21]Write to MH i2c: E2 08 00 65 67 80 13 01 00 00 00 00 00 49 [23:23:21]Write i2c OK [23:23:21]MH_I2C_Read... [23:23:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:21]Read from MH i2c: E2 [23:23:21]MH_I2C_Read... [23:23:21]Read from MH i2c: E2 0E 00 [23:23:21]MH_I2C_Read... [23:23:21]Read from MH i2c: E2 0E 00 65 67 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 CB [23:23:21]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [23:23:21]wFMCommunicate OK [23:23:21]SAM_PROTO_GetShiftState done [23:23:21]FM_GetShiftState done [23:23:21]opened in 1726359809 [23:23:21]opened+sec_in_day 1726446209 [23:23:21]quantity*price = 4500 [23:23:21]sum+1 = 4501 [23:23:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 136 15.09.2024 23:23 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92688 ФПД: 124380764142758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T232332&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92688&fm=124380764142758&tin=02508201610067®Number=0000000000091423&sum=4500 0 [23:23:22]StoreToDocumentArchive [23:23:22]shift 507 fd 92688 [23:23:22]save to /storage/0507/doc_00092688 [23:23:22]save last doc name /storage/0507/doc_00092688 to /storage/kkm_last_doc_name [23:23:22]save OK [23:23:22]Clear old archive folders... [23:23:22]ProcessDocumentItem done err = 0, tmpTLVsize=262 [23:23:22]tlvbuf is 00FB93F0 [23:23:22]SAM_PROTO_ClearQueue [23:23:22]wFMCommunicate request_size=4 [23:23:22]MH_SAM_APDU [23:23:22]CAPDU: 80 09 00 00 [23:23:22]Write to MH i2c: E2 08 00 72 67 80 09 00 00 00 00 00 00 4B [23:23:22]Write i2c OK [23:23:22]MH_I2C_Read... [23:23:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:23:23]Read from MH i2c: E2 [23:23:23]MH_I2C_Read... [23:23:23]Read from MH i2c: E2 03 00 [23:23:23]MH_I2C_Read... [23:23:23]Read from MH i2c: E2 03 00 72 67 00 90 00 4D [23:23:23]RAPDU: 90 00 [23:23:23]wFMCommunicate OK [23:23:23]SAM_PROTO_ClearQueue done [23:23:23]KKMCreateOFDPacket [23:23:23]OFDProtocolAddRootSTLVToBuf [23:23:23]FM_MakeSignedData [23:23:23]FM_MakeSignedData [23:23:23]SAM_PROTO_SignData [23:23:23]wFMCommunicate request_size=4 [23:23:23]MH_SAM_APDU [23:23:23]CAPDU: 80 0D 01 02 [23:23:23]Write to MH i2c: E2 08 00 73 67 80 0D 01 02 00 00 00 00 53 [23:23:23]Write i2c OK [23:23:23]MH_I2C_Read... [23:23:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:23:23]Read from MH i2c: E2 [23:23:23]MH_I2C_Read... [23:23:23]Read from MH i2c: E2 03 00 [23:23:23]MH_I2C_Read... [23:23:23]Read from MH i2c: E2 03 00 73 67 00 90 00 4E [23:23:23]RAPDU: 90 00 [23:23:23]wFMCommunicate OK [23:23:23]wFMCommunicate request_size=255 [23:23:23]MH_SAM_APDU [23:23:23]CAPDU: 80 0D 02 02 FA 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 08 00 34 30 30 39 39 34 38 34 06 04 19 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 74 6C E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 [23:23:23]Write to MH i2c: E2 02 01 74 67 80 0D 02 02 FA 00 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 08 00 34 30 30 39 39 34 38 34 06 04 19 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 74 6C E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 00 00 18 [23:23:23]Write i2c OK [23:23:23]MH_I2C_Read... [23:23:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:23]Read from MH i2c: E2 [23:23:23]MH_I2C_Read... [23:23:23]Read from MH i2c: E2 03 00 [23:23:23]MH_I2C_Read... [23:23:23]Read from MH i2c: E2 03 00 74 67 00 90 00 4F [23:23:23]RAPDU: 90 00 [23:23:23]wFMCommunicate OK [23:23:23]wFMCommunicate request_size=21 [23:23:23]MH_SAM_APDU [23:23:23]CAPDU: 80 0D 02 02 10 04 00 10 6A 01 00 35 04 06 00 71 1F A7 43 7C A6 [23:23:23]Write to MH i2c: E2 18 00 75 67 80 0D 02 02 10 00 04 00 10 6A 01 00 35 04 06 00 71 1F A7 43 7C A6 00 00 D0 [23:23:23]Write i2c OK [23:23:23]MH_I2C_Read... [23:23:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:23]Read from MH i2c: E2 [23:23:23]MH_I2C_Read... [23:23:23]Read from MH i2c: E2 03 00 [23:23:23]MH_I2C_Read... [23:23:23]Read from MH i2c: E2 03 00 75 67 00 90 00 50 [23:23:23]RAPDU: 90 00 [23:23:23]wFMCommunicate OK [23:23:23]wFMCommunicate request_size=4 [23:23:23]MH_SAM_APDU [23:23:23]CAPDU: 80 0D 03 02 [23:23:23]Write to MH i2c: E2 08 00 76 67 80 0D 03 02 00 00 00 00 58 [23:23:23]Write i2c OK [23:23:23]MH_I2C_Read... [23:23:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:23:23]Read from MH i2c: E2 [23:23:23]MH_I2C_Read... [23:23:23]Read from MH i2c: E2 0B 00 [23:23:23]MH_I2C_Read... [23:23:23]Read from MH i2c: E2 0B 00 76 67 00 08 D7 24 90 99 88 24 5B 90 00 8C [23:23:23]RAPDU: 08 D7 24 90 99 88 24 5B 90 00 [23:23:23]wFMCommunicate OK [23:23:23]SAM_PROTO_SignData done [23:23:23]FM_MakeSignedData done [23:23:23]CreateOFDProtocolMessage [23:23:23]wFMCommunicate request_size=4 [23:23:23]MH_SAM_APDU [23:23:23]CAPDU: 80 11 00 00 [23:23:23]Write to MH i2c: E2 08 00 77 67 80 11 00 00 00 00 00 00 58 [23:23:23]Write i2c OK [23:23:23]MH_I2C_Read... [23:23:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:23]Read from MH i2c: E2 [23:23:23]MH_I2C_Read... [23:23:23]Read from MH i2c: E2 17 00 [23:23:23]MH_I2C_Read... [23:23:23]Read from MH i2c: E2 17 00 77 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 AF [23:23:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:23:23]wFMCommunicate OK [23:23:23]CreateOFDProtocolMessage done [23:23:23]OFDSenderStorePacket 92688 [23:23:23]StoreOFDPacket docnum=92688 [23:23:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 1A 01 00 00 3E 8B 12 01 E3 43 5A 03 01 00 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 08 00 34 30 30 39 39 34 38 34 06 04 19 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 74 6C E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 10 6A 01 00 35 04 06 00 71 1F A7 43 7C A6 08 D7 24 90 99 88 24 5B [23:23:23]CheckFolder [23:23:23]dirname=/storage/ofd_packets [23:23:23]CheckFolder done [23:23:23]ProducePacketName [23:23:23]name=ofd_packets/00092688 [23:23:23]NVStorageSaveData ofd_packets/00092688 [23:23:23]File name is /storage/ofd_packets/00092688 [23:23:23]Write 312 bytes [23:23:23]NVStorageSaveData done [23:23:23]OFDSenderStorePacket done [23:23:23]KKMCreateOFDPacket done [23:23:23]NVStorageSaveData kkm_last_timestamp [23:23:23]File name is /storage/kkm_last_timestamp [23:23:23]Write 4 bytes [23:23:23]NVStorageSaveData done [23:23:23]ExternCall_PrintAddStr [23:23:23]wPrintStart [23:23:23]Write to MH i2c: 01 00 00 78 67 DF [23:23:23]Write i2c OK [23:23:23]MH_I2C_Read... [23:23:23]Read from MH i2c: 01 [23:23:23]MH_I2C_Read... [23:23:23]Read from MH i2c: 01 07 00 [23:23:23]MH_I2C_Read... [23:23:23]Read from MH i2c: 01 07 00 78 67 00 00 00 00 00 FF 0F F4 [23:23:23]RasterBufferAndPrint [23:23:23]line Счет N : (3)127575 [23:23:23]line ИНН: 02508201610067 [23:23:23]line Контрольно-Кассовый Чек [23:23:23]line ПРОДАЖА [23:23:23]line Товар: 40099484 [23:23:23]line Жев Orbit White под [23:23:23]line 1.000 * 45.00 [23:23:23]line = 45.00 [23:23:23]line НДС 12% НСП 1% [23:23:23]line > о реализуемом товаре [23:23:23]line ИТОГО: 45.00 [23:23:23]line НСП 1% : 0.40 [23:23:23]line НДС 12% : 4.78 [23:23:23]line Наличными: 45.00 [23:23:23]line Безнал.: 0.00 [23:23:23]line Место: АЗС № 5 "Партнер Нефть" [23:23:23]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [23:23:23]line СНО: Общий режим [23:23:23]line Чек 136 15.09.2024 23:23 [23:23:23]line Смена: 507 ФФД: 1.0 [23:23:23]line ЗНМ: 03000000022 [23:23:23]line РНМ: 0000000000091423 [23:23:23]line Версия ККМ: 001 [23:23:23]line ФМ: 0000000000874692 [23:23:23]line ФД: 92688 [23:23:23]line ФПД: 124380764142758 [23:23:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T232332&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92688&fm=124380764142758&tin=02508201610067®Number=0000000000091423&sum=4500 [23:23:23]line 0 [23:23:23]written 0, free lines is 4095 [23:23:23]OFD Sender: Processing packet 92688 [packets to send 63, broken 62] [23:23:23]ProducePacketName [23:23:23]name=ofd_packets/00092688 [23:23:23]OFD Sender: To server: pG, [23:23:23]CommunicateWithHost lk.salyk.kg:30040 [23:23:23]ConnectInit lk.salyk.kg [23:23:23]Connected sock=10 [23:23:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 1A 01 00 00 3E 8B 12 01 E3 43 5A 03 01 00 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 08 00 34 30 30 39 39 34 38 34 06 04 19 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 74 6C E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 10 6A 01 00 35 04 06 00 71 1F A7 43 7C A6 08 D7 24 90 99 88 24 5B [23:23:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 C7 7F 47 00 FC 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 10 6A 01 00 F4 03 04 00 EB 14 E7 66 B6 04 01 00 00 23 95 01 C0 1B 21 23 A4 [23:23:24]CommunicateWithHost err = 0 [23:23:24]CheckOFDResponse [23:23:24]1017 (14) - 77093643461234 [23:23:24]1041 (16) - 0000000000874692 [23:23:24]1040 (4) - 92688 [23:23:24]1012 (4) - 15.09.2024 17:10 [23:23:24]1206 (1) - 0 [23:23:24]OFD Sender: Remove packet 92688 [23:23:24]ProducePacketName [23:23:24]name=ofd_packets/00092688 [23:23:24]NVStorageDeleteData [23:23:24]Write to MH i2c: 01 00 00 A0 67 07 [23:23:24]Write i2c OK [23:23:24]MH_I2C_Read... [23:23:24]Read from MH i2c: 01 [23:23:24]MH_I2C_Read... [23:23:24]Read from MH i2c: 01 07 00 [23:23:24]MH_I2C_Read... [23:23:24]Read from MH i2c: 01 07 00 A0 67 00 00 00 00 00 12 0D 2D [23:23:24]RasterBufferAndPrint [23:23:24]line [23:23:24]line [23:23:24]line [23:23:24]line [23:23:24]line [23:23:24]written 0, free lines is 3353 [23:23:24]MH_Cut [23:23:24]Write to MH i2c: D1 01 00 A7 67 01 E0 [23:23:24]Write i2c OK [23:23:24]MH_I2C_Read... [23:23:24]Read from MH i2c: D1 [23:23:24]MH_I2C_Read... [23:23:24]Read from MH i2c: D1 01 00 [23:23:24]MH_I2C_Read... [23:23:24]Read from MH i2c: D1 01 00 A7 67 00 DF [23:23:24]Write to MH i2c: 01 00 00 A8 67 0F [23:23:24]Write i2c OK [23:23:24]MH_I2C_Read... [23:23:24]OFD Sender: No OFD packet to send [23:23:24]*** Cut start [23:23:24]*** Purtial cut [23:23:24]*** Stage 1: CUTSNS_PIN = 1 [23:23:26]Read from MH i2c: 01 [23:23:26]MH_I2C_Read... [23:23:26]*** Stop cut motor [23:23:26]*** Cut end [23:23:26]Read from MH i2c: 01 07 00 [23:23:26]MH_I2C_Read... [23:23:26]Read from MH i2c: 01 07 00 A8 67 00 00 00 00 00 FF 0F 24 [23:23:26]process_action close_receipt done [23:23:26]requested_data is exist [23:23:26]produce_requested_data [23:23:26]requested_item fm.sn is exist - process it [23:23:26]wFMCommunicate request_size=4 [23:23:26]MH_SAM_APDU [23:23:26]CAPDU: 80 11 00 00 [23:23:26]Write to MH i2c: E2 08 00 A9 67 80 11 00 00 00 00 00 00 8A [23:23:26]Write i2c OK [23:23:26]MH_I2C_Read... [23:23:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:26]Read from MH i2c: E2 [23:23:26]MH_I2C_Read... [23:23:26]Read from MH i2c: E2 17 00 [23:23:26]MH_I2C_Read... [23:23:26]Read from MH i2c: E2 17 00 A9 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E1 [23:23:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:23:26]wFMCommunicate OK [23:23:26]requested_item fd.num is exist - process it [23:23:26]SAM_PROTO_GetFieldsCounters [23:23:26]wFMCommunicate request_size=4 [23:23:26]MH_SAM_APDU [23:23:26]CAPDU: 80 13 00 00 [23:23:26]Write to MH i2c: E2 08 00 AA 67 80 13 00 00 00 00 00 00 8D [23:23:26]Write i2c OK [23:23:26]MH_I2C_Read... [23:23:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:23:27]Read from MH i2c: E2 [23:23:27]MH_I2C_Read... [23:23:27]Read from MH i2c: E2 62 00 [23:23:27]MH_I2C_Read... [23:23:27]Read from MH i2c: E2 62 00 AA 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 10 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [23:23:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 10 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:23:27]wFMCommunicate OK [23:23:27]SAM_PROTO_GetFieldsCounters done [23:23:27]requested_item shift.num is exist - process it [23:23:27]requested_item shift.opened is exist - process it [23:23:27]req_shift_opened [23:23:27]FM_GetShiftState [23:23:27]SAM_PROTO_GetShiftState [23:23:27]wFMCommunicate request_size=4 [23:23:27]MH_SAM_APDU [23:23:27]CAPDU: 80 13 01 00 [23:23:27]Write to MH i2c: E2 08 00 AB 67 80 13 01 00 00 00 00 00 8F [23:23:27]Write i2c OK [23:23:27]MH_I2C_Read... [23:23:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:27]Read from MH i2c: E2 [23:23:27]MH_I2C_Read... [23:23:27]Read from MH i2c: E2 0E 00 [23:23:27]MH_I2C_Read... [23:23:27]Read from MH i2c: E2 0E 00 AB 67 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 11 [23:23:27]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [23:23:27]wFMCommunicate OK [23:23:27]SAM_PROTO_GetShiftState done [23:23:27]FM_GetShiftState done [23:23:27]req_shift_opened done [23:23:27]requested_item shift.open_date is exist - process it [23:23:27]req_shift_open_date [23:23:27]req_shift_open_date done [23:23:27]produce_requested_data done [23:23:27]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92688,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [23:23:27]process_action_free close_receipt [23:23:27]json_value_free [23:23:27]json_value_free done [23:23:27]process_json_proto returns [23:23:27]Send response to host [23:23:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92688,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [23:23:27]free response buf [23:23:27]execute_script done [23:23:27]execute_script returns [23:23:27]free content buf [23:23:27]Sock 8.Close socket [23:23:27]Sock 8.Thread stoped [23:23:29]OFD Sender: No OFD packet to send [23:23:34]OFD Sender: No OFD packet to send [23:23:39]OFD Sender: No OFD packet to send [23:23:44]OFD Sender: No OFD packet to send [23:23:49]OFD Sender: No OFD packet to send [23:23:54]OFD Sender: No OFD packet to send [23:23:59]OFD Sender: No OFD packet to send [23:24:04]OFD Sender: No OFD packet to send [23:24:09]OFD Sender: No OFD packet to send [23:24:14]OFD Sender: No OFD packet to send [23:24:17]accept exits with 9 [23:24:17]New connection [23:24:17]New thread 3066801508 created [23:24:17]Thread 3066658148 joined [23:24:17]Waiting for new connection... [23:24:17] Sock 9.Parse request [23:24:17]Sock 9.Check first char [23:24:17]Sock 9.First char is OK [23:24:17]request: POST /json_proto HTTP/1.0 [23:24:17]Method: POST [23:24:17]URL: /json_proto [23:24:17]Method is POST - this is cgi request [23:24:17]url: /json_proto [23:24:17]query_string will be loaded in cgi processing [23:24:17]execute_cgi json_proto POST (null) [23:24:17]execute_cgi path=json_proto method=POST [23:24:17]POST find Content-Length [23:24:17]Host: 172.17.57.71:8080 [23:24:17]Content-Length: 1204 [23:24:17]Content-Type: application/json [23:24:17] [23:24:17]POST finish read [23:24:17]Found Content-Length = 1204 [23:24:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127576", "tax_sys" : 0, "items" : [ { "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46177872", "name": "\u0416\u0435\u0432 Orbit \u043F\u043E\u0434\u0443\u0448\u043A\u0438 Citrus", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 434.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:24:17]execute_script... [23:24:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127576", "tax_sys" : 0, "items" : [ { "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46177872", "name": "\u0416\u0435\u0432 Orbit \u043F\u043E\u0434\u0443\u0448\u043A\u0438 Citrus", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 434.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:24:17]POST & json_proto [23:24:17]process_json_proto [23:24:17]json parsed OK: [23:24:17]protocol is kg_v1.0 [23:24:17]action value=close_receipt [23:24:17]process_action close_receipt [23:24:17]cmd_close_receipt [23:24:17]MH_GetDate [23:24:17]Write to MH i2c: F0 00 00 AC 67 02 [23:24:17]Write i2c OK [23:24:17]MH_I2C_Read... [23:24:17]Read from MH i2c: F0 [23:24:17]MH_I2C_Read... [23:24:17]Read from MH i2c: F0 09 00 [23:24:17]MH_I2C_Read... [23:24:17]Read from MH i2c: F0 09 00 AC 67 00 AC 6C E7 66 33 3A A4 66 E7 [23:24:17]GetLastDocTimeStamp 1726442612 [23:24:17]current date 1726442668 [23:24:17]FM_GetShiftState [23:24:17]SAM_PROTO_GetShiftState [23:24:17]wFMCommunicate request_size=4 [23:24:17]MH_SAM_APDU [23:24:17]CAPDU: 80 13 01 00 [23:24:17]Write to MH i2c: E2 08 00 AD 67 80 13 01 00 00 00 00 00 91 [23:24:17]Write i2c OK [23:24:17]MH_I2C_Read... [23:24:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:17]Read from MH i2c: E2 [23:24:17]MH_I2C_Read... [23:24:17]Read from MH i2c: E2 0E 00 [23:24:17]MH_I2C_Read... [23:24:17]Read from MH i2c: E2 0E 00 AD 67 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 13 [23:24:17]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [23:24:17]wFMCommunicate OK [23:24:17]SAM_PROTO_GetShiftState done [23:24:17]FM_GetShiftState done [23:24:17]opened in 1726359809 [23:24:17]opened+sec_in_day 1726446209 [23:24:17]quantity*price = 26500 [23:24:17]sum+1 = 26501 [23:24:17]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5000159390729 Шок Батончик Твикс Экстра 82г 1.000 * 89.00 = 89.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46177872 Жев Orbit подушки Citrus 2.000 * 40.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 434.00 НСП 1% : 3.84 НДС 12% : 46.09 Наличными: 434.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 137 15.09.2024 23:24 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92689 ФПД: 53450560139698 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T232428&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92689&fm=53450560139698&tin=02508201610067®Number=0000000000091423&sum=43400 0 [23:24:18]StoreToDocumentArchive [23:24:18]shift 507 fd 92689 [23:24:18]save to /storage/0507/doc_00092689 [23:24:18]save last doc name /storage/0507/doc_00092689 to /storage/kkm_last_doc_name [23:24:18]save OK [23:24:18]Clear old archive folders... [23:24:18]ProcessDocumentItem done err = 0, tmpTLVsize=504 [23:24:18]tlvbuf is 011C7A40 [23:24:18]SAM_PROTO_ClearQueue [23:24:18]wFMCommunicate request_size=4 [23:24:18]MH_SAM_APDU [23:24:18]CAPDU: 80 09 00 00 [23:24:18]Write to MH i2c: E2 08 00 BA 67 80 09 00 00 00 00 00 00 93 [23:24:18]Write i2c OK [23:24:18]MH_I2C_Read... [23:24:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:24:18]Read from MH i2c: E2 [23:24:18]MH_I2C_Read... [23:24:18]Read from MH i2c: E2 03 00 [23:24:18]MH_I2C_Read... [23:24:18]Read from MH i2c: E2 03 00 BA 67 00 90 00 95 [23:24:18]RAPDU: 90 00 [23:24:18]wFMCommunicate OK [23:24:18]SAM_PROTO_ClearQueue done [23:24:18]KKMCreateOFDPacket [23:24:18]OFDProtocolAddRootSTLVToBuf [23:24:18]FM_MakeSignedData [23:24:18]FM_MakeSignedData [23:24:18]SAM_PROTO_SignData [23:24:18]wFMCommunicate request_size=4 [23:24:18]MH_SAM_APDU [23:24:18]CAPDU: 80 0D 01 02 [23:24:18]Write to MH i2c: E2 08 00 BB 67 80 0D 01 02 00 00 00 00 9B [23:24:18]Write i2c OK [23:24:18]MH_I2C_Read... [23:24:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:24:18]Read from MH i2c: E2 [23:24:18]MH_I2C_Read... [23:24:18]Read from MH i2c: E2 03 00 [23:24:18]MH_I2C_Read... [23:24:18]Read from MH i2c: E2 03 00 BB 67 00 90 00 96 [23:24:18]RAPDU: 90 00 [23:24:18]wFMCommunicate OK [23:24:18]wFMCommunicate request_size=255 [23:24:18]MH_SAM_APDU [23:24:18]CAPDU: 80 0D 02 02 FA 03 00 F8 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 08 00 [23:24:18]Write to MH i2c: E2 02 01 BC 67 80 0D 02 02 FA 00 03 00 F8 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 08 00 00 00 C1 [23:24:18]Write i2c OK [23:24:18]MH_I2C_Read... [23:24:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:19]Read from MH i2c: E2 [23:24:19]MH_I2C_Read... [23:24:19]Read from MH i2c: E2 03 00 [23:24:19]MH_I2C_Read... [23:24:19]Read from MH i2c: E2 03 00 BC 67 00 90 00 97 [23:24:19]RAPDU: 90 00 [23:24:19]wFMCommunicate OK [23:24:19]wFMCommunicate request_size=255 [23:24:19]MH_SAM_APDU [23:24:19]CAPDU: 80 0D 02 02 FA 34 36 31 37 37 38 37 32 06 04 22 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 BF D0 BE D0 B4 D1 83 D1 88 D0 BA D0 B8 20 43 69 74 72 75 73 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 12 00 00 00 00 07 04 06 00 88 A9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 AC 6C E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 11 6A 01 00 35 04 [23:24:19]Write to MH i2c: E2 02 01 BD 67 80 0D 02 02 FA 00 34 36 31 37 37 38 37 32 06 04 22 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 BF D0 BE D0 B4 D1 83 D1 88 D0 BA D0 B8 20 43 69 74 72 75 73 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 12 00 00 00 00 07 04 06 00 88 A9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 AC 6C E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 11 6A 01 00 35 04 00 00 AA [23:24:19]Write i2c OK [23:24:19]MH_I2C_Read... [23:24:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:19]Read from MH i2c: E2 [23:24:19]MH_I2C_Read... [23:24:19]Read from MH i2c: E2 03 00 [23:24:19]MH_I2C_Read... [23:24:19]Read from MH i2c: E2 03 00 BD 67 00 90 00 98 [23:24:19]RAPDU: 90 00 [23:24:19]wFMCommunicate OK [23:24:19]wFMCommunicate request_size=13 [23:24:19]MH_SAM_APDU [23:24:19]CAPDU: 80 0D 02 02 08 06 00 30 9C ED A6 71 B2 [23:24:19]Write to MH i2c: E2 10 00 BE 67 80 0D 02 02 08 00 06 00 30 9C ED A6 71 B2 00 00 37 [23:24:19]Write i2c OK [23:24:19]MH_I2C_Read... [23:24:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:19]Read from MH i2c: E2 [23:24:19]MH_I2C_Read... [23:24:19]Read from MH i2c: E2 03 00 [23:24:19]MH_I2C_Read... [23:24:19]Read from MH i2c: E2 03 00 BE 67 00 90 00 99 [23:24:19]RAPDU: 90 00 [23:24:19]wFMCommunicate OK [23:24:19]wFMCommunicate request_size=4 [23:24:19]MH_SAM_APDU [23:24:19]CAPDU: 80 0D 03 02 [23:24:19]Write to MH i2c: E2 08 00 BF 67 80 0D 03 02 00 00 00 00 A1 [23:24:19]Write i2c OK [23:24:19]MH_I2C_Read... [23:24:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:24:19]Read from MH i2c: E2 [23:24:19]MH_I2C_Read... [23:24:19]Read from MH i2c: E2 0B 00 [23:24:19]MH_I2C_Read... [23:24:19]Read from MH i2c: E2 0B 00 BF 67 00 55 64 73 9C 59 D5 5A 81 90 00 73 [23:24:19]RAPDU: 55 64 73 9C 59 D5 5A 81 90 00 [23:24:19]wFMCommunicate OK [23:24:19]SAM_PROTO_SignData done [23:24:19]FM_MakeSignedData done [23:24:19]CreateOFDProtocolMessage [23:24:19]wFMCommunicate request_size=4 [23:24:19]MH_SAM_APDU [23:24:19]CAPDU: 80 11 00 00 [23:24:19]Write to MH i2c: E2 08 00 C0 67 80 11 00 00 00 00 00 00 A1 [23:24:19]Write i2c OK [23:24:19]MH_I2C_Read... [23:24:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:19]Read from MH i2c: E2 [23:24:19]MH_I2C_Read... [23:24:19]Read from MH i2c: E2 17 00 [23:24:19]MH_I2C_Read... [23:24:19]Read from MH i2c: E2 17 00 C0 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F8 [23:24:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:24:19]wFMCommunicate OK [23:24:19]CreateOFDProtocolMessage done [23:24:19]OFDSenderStorePacket 92689 [23:24:19]StoreOFDPacket docnum=92689 [23:24:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0C 02 00 00 64 7F 04 02 7A 8E 5A 03 01 00 03 00 F8 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 08 00 34 36 31 37 37 38 37 32 06 04 22 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 BF D0 BE D0 B4 D1 83 D1 88 D0 BA D0 B8 20 43 69 74 72 75 73 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 12 00 00 00 00 07 04 06 00 88 A9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 AC 6C E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 11 6A 01 00 35 04 06 00 30 9C ED A6 71 B2 55 64 73 9C 59 D5 5A 81 [23:24:19]CheckFolder [23:24:19]dirname=/storage/ofd_packets [23:24:19]CheckFolder done [23:24:19]ProducePacketName [23:24:19]name=ofd_packets/00092689 [23:24:19]NVStorageSaveData ofd_packets/00092689 [23:24:19]File name is /storage/ofd_packets/00092689 [23:24:19]Write 554 bytes [23:24:19]NVStorageSaveData done [23:24:19]OFDSenderStorePacket done [23:24:19]KKMCreateOFDPacket done [23:24:19]NVStorageSaveData kkm_last_timestamp [23:24:19]File name is /storage/kkm_last_timestamp [23:24:19]Write 4 bytes [23:24:19]NVStorageSaveData done [23:24:19]ExternCall_PrintAddStr [23:24:19]wPrintStart [23:24:19]Write to MH i2c: 01 00 00 C1 67 28 [23:24:19]Write i2c OK [23:24:19]MH_I2C_Read... [23:24:19]Read from MH i2c: 01 [23:24:19]MH_I2C_Read... [23:24:19]Read from MH i2c: 01 07 00 [23:24:19]MH_I2C_Read... [23:24:19]Read from MH i2c: 01 07 00 C1 67 00 00 00 00 00 FF 0F 3D [23:24:19]RasterBufferAndPrint [23:24:19]line Счет N : (3)127576 [23:24:19]line ИНН: 02508201610067 [23:24:19]line Контрольно-Кассовый Чек [23:24:19]line ПРОДАЖА [23:24:19]line Товар: 90448300 [23:24:19]line Энерг напиток Red Bull 0,355л [23:24:19]line 1.000 * 265.00 [23:24:19]line = 265.00 [23:24:19]line НДС 12% НСП 1% [23:24:19]line > о реализуемом товаре [23:24:19]line Товар: 5000159390729 [23:24:19]line Шок Батончик Твикс Экстра 82г [23:24:19]line 1.000 * 89.00 [23:24:19]line = 89.00 [23:24:19]line НДС 12% НСП 1% [23:24:19]line > о реализуемом товаре [23:24:19]line Товар: 46177872 [23:24:19]line Жев Orbit подушки Citrus [23:24:19]line 2.000 * 40.00 [23:24:19]line = 80.00 [23:24:19]line НДС 12% НСП 1% [23:24:19]line > о реализуемом товаре [23:24:19]line ИТОГО: 434.00 [23:24:19]line НСП 1% : 3.84 [23:24:19]line НДС 12% : 46.09 [23:24:19]line Наличными: 434.00 [23:24:19]line Безнал.: 0.00 [23:24:19]line Место: АЗС № 5 "Партнер Нефть" [23:24:19]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [23:24:19]line СНО: Общий режим [23:24:19]line Чек 137 15.09.2024 23:24 [23:24:19]line Смена: 507 ФФД: 1.0 [23:24:19]line ЗНМ: 03000000022 [23:24:19]line РНМ: 0000000000091423 [23:24:19]line Версия ККМ: 001 [23:24:19]line ФМ: 0000000000874692 [23:24:19]line ФД: 92689 [23:24:19]line ФПД: 53450560139698 [23:24:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T232428&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92689&fm=53450560139698&tin=02508201610067®Number=0000000000091423&sum=43400 [23:24:19]line 0 [23:24:19]written 0, free lines is 4095 [23:24:19]OFD Sender: Processing packet 92689 [packets to send 63, broken 62] [23:24:19]ProducePacketName [23:24:19]name=ofd_packets/00092689 [23:24:19]OFD Sender: To server: pG, [23:24:19]CommunicateWithHost lk.salyk.kg:30040 [23:24:19]ConnectInit lk.salyk.kg [23:24:19]Connected sock=10 [23:24:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0C 02 00 00 64 7F 04 02 7A 8E 5A 03 01 00 03 00 F8 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 08 00 34 36 31 37 37 38 37 32 06 04 22 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 BF D0 BE D0 B4 D1 83 D1 88 D0 BA D0 B8 20 43 69 74 72 75 73 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 12 00 00 00 00 07 04 06 00 88 A9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 AC 6C E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 11 6A 01 00 35 04 06 00 30 9C ED A6 71 B2 55 64 73 9C 59 D5 5A 81 [23:24:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 E5 E0 47 00 5A 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 11 6A 01 00 F4 03 04 00 23 15 E7 66 B6 04 01 00 00 75 85 BF 72 75 F9 9B 5E [23:24:19]CommunicateWithHost err = 0 [23:24:19]CheckOFDResponse [23:24:19]1017 (14) - 77093643461234 [23:24:19]1041 (16) - 0000000000874692 [23:24:19]1040 (4) - 92689 [23:24:19]1012 (4) - 15.09.2024 17:10 [23:24:19]1206 (1) - 0 [23:24:19]OFD Sender: Remove packet 92689 [23:24:19]ProducePacketName [23:24:19]name=ofd_packets/00092689 [23:24:20]NVStorageDeleteData [23:24:20]Write to MH i2c: 01 00 00 F6 67 5D [23:24:20]Write i2c OK [23:24:20]MH_I2C_Read... [23:24:20]Read from MH i2c: 01 [23:24:20]MH_I2C_Read... [23:24:20]Read from MH i2c: 01 07 00 [23:24:20]MH_I2C_Read... [23:24:20]Read from MH i2c: 01 07 00 F6 67 00 00 00 00 00 71 0C E1 [23:24:20]RasterBufferAndPrint [23:24:20]line [23:24:20]line [23:24:20]line [23:24:20]line [23:24:20]line [23:24:20]written 0, free lines is 3195 [23:24:20]MH_Cut [23:24:20]Write to MH i2c: D1 01 00 FD 67 01 36 [23:24:20]Write i2c OK [23:24:20]MH_I2C_Read... [23:24:20]Read from MH i2c: D1 [23:24:20]MH_I2C_Read... [23:24:20]Read from MH i2c: D1 01 00 [23:24:20]MH_I2C_Read... [23:24:20]Read from MH i2c: D1 01 00 FD 67 00 35 [23:24:20]Write to MH i2c: 01 00 00 FE 67 65 [23:24:20]Write i2c OK [23:24:20]MH_I2C_Read... [23:24:20]OFD Sender: No OFD packet to send [23:24:20]*** Cut start [23:24:20]*** Purtial cut [23:24:20]*** Stage 1: CUTSNS_PIN = 1 [23:24:22]Read from MH i2c: 01 [23:24:22]MH_I2C_Read... [23:24:22]*** Stop cut motor [23:24:22]*** Cut end [23:24:22]Read from MH i2c: 01 07 00 [23:24:22]MH_I2C_Read... [23:24:22]Read from MH i2c: 01 07 00 FE 67 00 00 00 00 00 FF 0F 7A [23:24:22]process_action close_receipt done [23:24:22]requested_data is exist [23:24:22]produce_requested_data [23:24:22]requested_item fm.sn is exist - process it [23:24:22]wFMCommunicate request_size=4 [23:24:22]MH_SAM_APDU [23:24:22]CAPDU: 80 11 00 00 [23:24:22]Write to MH i2c: E2 08 00 FF 67 80 11 00 00 00 00 00 00 E0 [23:24:22]Write i2c OK [23:24:22]MH_I2C_Read... [23:24:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:23]Read from MH i2c: E2 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: E2 17 00 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: E2 17 00 FF 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 37 [23:24:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:24:23]wFMCommunicate OK [23:24:23]requested_item fd.num is exist - process it [23:24:23]SAM_PROTO_GetFieldsCounters [23:24:23]wFMCommunicate request_size=4 [23:24:23]MH_SAM_APDU [23:24:23]CAPDU: 80 13 00 00 [23:24:23]Write to MH i2c: E2 08 00 00 68 80 13 00 00 00 00 00 00 E4 [23:24:23]Write i2c OK [23:24:23]MH_I2C_Read... [23:24:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:24:23]Read from MH i2c: E2 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: E2 62 00 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: E2 62 00 00 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 11 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [23:24:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 11 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:24:23]wFMCommunicate OK [23:24:23]SAM_PROTO_GetFieldsCounters done [23:24:23]requested_item shift.num is exist - process it [23:24:23]requested_item shift.opened is exist - process it [23:24:23]req_shift_opened [23:24:23]FM_GetShiftState [23:24:23]SAM_PROTO_GetShiftState [23:24:23]wFMCommunicate request_size=4 [23:24:23]MH_SAM_APDU [23:24:23]CAPDU: 80 13 01 00 [23:24:23]Write to MH i2c: E2 08 00 01 68 80 13 01 00 00 00 00 00 E6 [23:24:23]Write i2c OK [23:24:23]MH_I2C_Read... [23:24:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:23]Read from MH i2c: E2 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: E2 0E 00 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: E2 0E 00 01 68 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 68 [23:24:23]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [23:24:23]wFMCommunicate OK [23:24:23]SAM_PROTO_GetShiftState done [23:24:23]FM_GetShiftState done [23:24:23]req_shift_opened done [23:24:23]requested_item shift.open_date is exist - process it [23:24:23]req_shift_open_date [23:24:23]req_shift_open_date done [23:24:23]produce_requested_data done [23:24:23]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92689,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [23:24:23]process_action_free close_receipt [23:24:23]json_value_free [23:24:23]json_value_free done [23:24:23]process_json_proto returns [23:24:23]Send response to host [23:24:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92689,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [23:24:23]free response buf [23:24:23]execute_script done [23:24:23]execute_script returns [23:24:23]free content buf [23:24:23]Sock 9.Close socket [23:24:23]Sock 9.Thread stoped [23:24:25]OFD Sender: No OFD packet to send [23:24:26]accept exits with 8 [23:24:26]New connection [23:24:26]New thread 3066658148 created [23:24:26]Thread 3066801508 joined [23:24:26]Waiting for new connection... [23:24:26] Sock 8.Parse request [23:24:26]Sock 8.Check first char [23:24:26]Sock 8.First char is OK [23:24:26]request: POST /json_proto HTTP/1.0 [23:24:26]Method: POST [23:24:26]URL: /json_proto [23:24:26]Method is POST - this is cgi request [23:24:26]url: /json_proto [23:24:26]query_string will be loaded in cgi processing [23:24:26]execute_cgi json_proto POST (null) [23:24:26]execute_cgi path=json_proto method=POST [23:24:26]POST find Content-Length [23:24:26]Host: 172.17.57.71:8080 [23:24:26]Content-Length: 682 [23:24:26]Content-Type: application/json [23:24:26] [23:24:26]POST finish read [23:24:26]Found Content-Length = 682 [23:24:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:24:26]execute_script... [23:24:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:24:26]POST & json_proto [23:24:26]process_json_proto [23:24:26]json parsed OK: [23:24:26]protocol is kg_v1.0 [23:24:26]action value=close_receipt [23:24:26]process_action close_receipt [23:24:26]cmd_close_receipt [23:24:26]MH_GetDate [23:24:26]Write to MH i2c: F0 00 00 02 68 59 [23:24:26]Write i2c OK [23:24:26]MH_I2C_Read... [23:24:26]Read from MH i2c: F0 [23:24:26]MH_I2C_Read... [23:24:26]Read from MH i2c: F0 09 00 [23:24:26]MH_I2C_Read... [23:24:26]Read from MH i2c: F0 09 00 02 68 00 B5 6C E7 66 33 3A A4 66 47 [23:24:26]GetLastDocTimeStamp 1726442668 [23:24:26]current date 1726442677 [23:24:26]FM_GetShiftState [23:24:26]SAM_PROTO_GetShiftState [23:24:26]wFMCommunicate request_size=4 [23:24:26]MH_SAM_APDU [23:24:26]CAPDU: 80 13 01 00 [23:24:26]Write to MH i2c: E2 08 00 03 68 80 13 01 00 00 00 00 00 E8 [23:24:26]Write i2c OK [23:24:26]MH_I2C_Read... [23:24:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:26]Read from MH i2c: E2 [23:24:26]MH_I2C_Read... [23:24:26]Read from MH i2c: E2 0E 00 [23:24:26]MH_I2C_Read... [23:24:26]Read from MH i2c: E2 0E 00 03 68 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 6A [23:24:26]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [23:24:26]wFMCommunicate OK [23:24:26]SAM_PROTO_GetShiftState done [23:24:26]FM_GetShiftState done [23:24:26]opened in 1726359809 [23:24:26]opened+sec_in_day 1726446209 [23:24:26]quantity*price = 100015 [23:24:26]sum+1 = 100017 [23:24:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 138 15.09.2024 23:24 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92690 ФПД: 18211642047193 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T232437&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92690&fm=18211642047193&tin=02508201610067®Number=0000000000091423&sum=100000 [23:24:27]StoreToDocumentArchive [23:24:27]shift 507 fd 92690 [23:24:27]save to /storage/0507/doc_00092690 [23:24:27]save last doc name /storage/0507/doc_00092690 to /storage/kkm_last_doc_name [23:24:27]save OK [23:24:27]Clear old archive folders... [23:24:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:24:27]tlvbuf is 010D98B0 [23:24:27]SAM_PROTO_ClearQueue [23:24:27]wFMCommunicate request_size=4 [23:24:27]MH_SAM_APDU [23:24:27]CAPDU: 80 09 00 00 [23:24:27]Write to MH i2c: E2 08 00 10 68 80 09 00 00 00 00 00 00 EA [23:24:27]Write i2c OK [23:24:27]MH_I2C_Read... [23:24:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:24:27]Read from MH i2c: E2 [23:24:27]MH_I2C_Read... [23:24:27]Read from MH i2c: E2 03 00 [23:24:27]MH_I2C_Read... [23:24:27]Read from MH i2c: E2 03 00 10 68 00 90 00 EC [23:24:27]RAPDU: 90 00 [23:24:27]wFMCommunicate OK [23:24:27]SAM_PROTO_ClearQueue done [23:24:27]KKMCreateOFDPacket [23:24:27]OFDProtocolAddRootSTLVToBuf [23:24:27]FM_MakeSignedData [23:24:27]FM_MakeSignedData [23:24:27]SAM_PROTO_SignData [23:24:27]wFMCommunicate request_size=4 [23:24:27]MH_SAM_APDU [23:24:27]CAPDU: 80 0D 01 02 [23:24:27]Write to MH i2c: E2 08 00 11 68 80 0D 01 02 00 00 00 00 F2 [23:24:27]Write i2c OK [23:24:27]MH_I2C_Read... [23:24:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:24:27]Read from MH i2c: E2 [23:24:27]MH_I2C_Read... [23:24:27]Read from MH i2c: E2 03 00 [23:24:27]MH_I2C_Read... [23:24:27]Read from MH i2c: E2 03 00 11 68 00 90 00 ED [23:24:27]RAPDU: 90 00 [23:24:27]wFMCommunicate OK [23:24:27]wFMCommunicate request_size=255 [23:24:27]MH_SAM_APDU [23:24:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 B5 6C E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 12 6A 01 00 35 04 06 00 10 [23:24:27]Write to MH i2c: E2 02 01 12 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 B5 6C E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 12 6A 01 00 35 04 06 00 10 00 00 FA [23:24:27]Write i2c OK [23:24:27]MH_I2C_Read... [23:24:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:28]Read from MH i2c: E2 [23:24:28]MH_I2C_Read... [23:24:28]Read from MH i2c: E2 03 00 [23:24:28]MH_I2C_Read... [23:24:28]Read from MH i2c: E2 03 00 12 68 00 90 00 EE [23:24:28]RAPDU: 90 00 [23:24:28]wFMCommunicate OK [23:24:28]wFMCommunicate request_size=10 [23:24:28]MH_SAM_APDU [23:24:28]CAPDU: 80 0D 02 02 05 90 3A 74 7A D9 [23:24:28]Write to MH i2c: E2 0D 00 13 68 80 0D 02 02 05 00 90 3A 74 7A D9 00 00 90 [23:24:28]Write i2c OK [23:24:28]MH_I2C_Read... [23:24:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:28]Read from MH i2c: E2 [23:24:28]MH_I2C_Read... [23:24:28]Read from MH i2c: E2 03 00 [23:24:28]MH_I2C_Read... [23:24:28]Read from MH i2c: E2 03 00 13 68 00 90 00 EF [23:24:28]RAPDU: 90 00 [23:24:28]wFMCommunicate OK [23:24:28]wFMCommunicate request_size=4 [23:24:28]MH_SAM_APDU [23:24:28]CAPDU: 80 0D 03 02 [23:24:28]Write to MH i2c: E2 08 00 14 68 80 0D 03 02 00 00 00 00 F7 [23:24:28]Write i2c OK [23:24:28]MH_I2C_Read... [23:24:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:24:28]Read from MH i2c: E2 [23:24:28]MH_I2C_Read... [23:24:28]Read from MH i2c: E2 0B 00 [23:24:28]MH_I2C_Read... [23:24:28]Read from MH i2c: E2 0B 00 14 68 00 DB 91 6E E8 73 93 91 F6 90 00 47 [23:24:28]RAPDU: DB 91 6E E8 73 93 91 F6 90 00 [23:24:28]wFMCommunicate OK [23:24:28]SAM_PROTO_SignData done [23:24:28]FM_MakeSignedData done [23:24:28]CreateOFDProtocolMessage [23:24:28]wFMCommunicate request_size=4 [23:24:28]MH_SAM_APDU [23:24:28]CAPDU: 80 11 00 00 [23:24:28]Write to MH i2c: E2 08 00 15 68 80 11 00 00 00 00 00 00 F7 [23:24:28]Write i2c OK [23:24:28]MH_I2C_Read... [23:24:28]Read from MH i2c: E2 [23:24:28]MH_I2C_Read... [23:24:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:28]Read from MH i2c: E2 17 00 [23:24:28]MH_I2C_Read... [23:24:28]Read from MH i2c: E2 17 00 15 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 4E [23:24:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:24:28]wFMCommunicate OK [23:24:28]CreateOFDProtocolMessage done [23:24:28]OFDSenderStorePacket 92690 [23:24:28]StoreOFDPacket docnum=92690 [23:24:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 AD 2C 07 01 16 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 B5 6C E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 12 6A 01 00 35 04 06 00 10 90 3A 74 7A D9 DB 91 6E E8 73 93 91 F6 [23:24:28]CheckFolder [23:24:28]dirname=/storage/ofd_packets [23:24:28]CheckFolder done [23:24:28]ProducePacketName [23:24:28]name=ofd_packets/00092690 [23:24:28]NVStorageSaveData ofd_packets/00092690 [23:24:28]File name is /storage/ofd_packets/00092690 [23:24:28]Write 301 bytes [23:24:28]NVStorageSaveData done [23:24:28]OFDSenderStorePacket done [23:24:28]KKMCreateOFDPacket done [23:24:28]NVStorageSaveData kkm_last_timestamp [23:24:28]File name is /storage/kkm_last_timestamp [23:24:28]Write 4 bytes [23:24:28]NVStorageSaveData done [23:24:28]ExternCall_PrintAddStr [23:24:28]wPrintStart [23:24:28]Write to MH i2c: 01 00 00 16 68 7E [23:24:28]Write i2c OK [23:24:28]MH_I2C_Read... [23:24:28]Read from MH i2c: 01 [23:24:28]MH_I2C_Read... [23:24:28]Read from MH i2c: 01 07 00 [23:24:28]MH_I2C_Read... [23:24:28]Read from MH i2c: 01 07 00 16 68 00 00 00 00 00 FF 0F 93 [23:24:28]RasterBufferAndPrint [23:24:28]line Счет N : (1)648762 [23:24:28]line ИНН: 02508201610067 [23:24:28]line Контрольно-Кассовый Чек [23:24:28]line ПРОДАЖА [23:24:28]line ТРК (МРК, ГНК) : 13 [23:24:28]line Товар: 2710124130 [23:24:28]line Аи-92-К-5 [23:24:28]line 14.950 * 66.90 [23:24:28]line = 1000.16 [23:24:28]line НДС 12% НСП 1% [23:24:28]line > о реализуемом товаре [23:24:28]line ОКРУГЛЕНИЕ: -0.16 [23:24:28]line ИТОГО: 1000.00 [23:24:28]line Внесено: 1000.00 [23:24:28]line СДАЧА: 0.00 [23:24:28]line НСП 1% : 8.85 [23:24:28]line НДС 12% : 106.21 [23:24:28]line Наличными: 1000.00 [23:24:28]line Безнал.: 0.00 [23:24:28]line Место: АЗС № 5 "Партнер Нефть" [23:24:28]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [23:24:28]line СНО: Общий режим [23:24:28]line Чек 138 15.09.2024 23:24 [23:24:28]line Смена: 507 ФФД: 1.0 [23:24:28]line ЗНМ: 03000000022 [23:24:28]line РНМ: 0000000000091423 [23:24:28]line Версия ККМ: 001 [23:24:28]line ФМ: 0000000000874692 [23:24:28]line ФД: 92690 [23:24:28]line ФПД: 18211642047193 [23:24:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T232437&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92690&fm=18211642047193&tin=02508201610067®Number=0000000000091423&sum=100000 [23:24:28]written 0, free lines is 4095 [23:24:28]OFD Sender: Processing packet 92690 [packets to send 63, broken 62] [23:24:28]ProducePacketName [23:24:28]name=ofd_packets/00092690 [23:24:28]OFD Sender: To server: pG, [23:24:28]CommunicateWithHost lk.salyk.kg:30040 [23:24:28]ConnectInit lk.salyk.kg [23:24:28]Connected sock=10 [23:24:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 AD 2C 07 01 16 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 B5 6C E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 12 6A 01 00 35 04 06 00 10 90 3A 74 7A D9 DB 91 6E E8 73 93 91 F6 [23:24:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 83 BF 47 00 B2 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 12 6A 01 00 F4 03 04 00 2B 15 E7 66 B6 04 01 00 00 72 36 5A C7 EE A6 7C 92 [23:24:28]CommunicateWithHost err = 0 [23:24:28]CheckOFDResponse [23:24:28]1017 (14) - 77093643461234 [23:24:28]1041 (16) - 0000000000874692 [23:24:28]1040 (4) - 92690 [23:24:28]1012 (4) - 15.09.2024 17:11 [23:24:28]1206 (1) - 0 [23:24:28]OFD Sender: Remove packet 92690 [23:24:28]ProducePacketName [23:24:28]name=ofd_packets/00092690 [23:24:28]NVStorageDeleteData [23:24:28]Write to MH i2c: 01 00 00 41 68 A9 [23:24:28]Write i2c OK [23:24:28]MH_I2C_Read... [23:24:28]Read from MH i2c: 01 [23:24:28]MH_I2C_Read... [23:24:28]Read from MH i2c: 01 07 00 [23:24:28]MH_I2C_Read... [23:24:28]Read from MH i2c: 01 07 00 41 68 00 00 00 00 00 F0 0C AC [23:24:28]RasterBufferAndPrint [23:24:28]line [23:24:28]line [23:24:28]line [23:24:28]line [23:24:28]line [23:24:28]written 0, free lines is 3326 [23:24:28]MH_Cut [23:24:28]Write to MH i2c: D1 01 00 48 68 01 82 [23:24:28]Write i2c OK [23:24:28]MH_I2C_Read... [23:24:28]Read from MH i2c: D1 [23:24:28]MH_I2C_Read... [23:24:28]Read from MH i2c: D1 01 00 [23:24:28]MH_I2C_Read... [23:24:28]Read from MH i2c: D1 01 00 48 68 00 81 [23:24:28]Write to MH i2c: 01 00 00 49 68 B1 [23:24:28]Write i2c OK [23:24:28]MH_I2C_Read... [23:24:29]OFD Sender: No OFD packet to send [23:24:29]*** Cut start [23:24:29]*** Purtial cut [23:24:29]*** Stage 1: CUTSNS_PIN = 1 [23:24:31]Read from MH i2c: 01 [23:24:31]MH_I2C_Read... [23:24:31]*** Stop cut motor [23:24:31]*** Cut end [23:24:31]Read from MH i2c: 01 07 00 [23:24:31]MH_I2C_Read... [23:24:31]Read from MH i2c: 01 07 00 49 68 00 00 00 00 00 FF 0F C6 [23:24:31]process_action close_receipt done [23:24:31]requested_data is exist [23:24:31]produce_requested_data [23:24:31]requested_item fm.sn is exist - process it [23:24:31]wFMCommunicate request_size=4 [23:24:31]MH_SAM_APDU [23:24:31]CAPDU: 80 11 00 00 [23:24:31]Write to MH i2c: E2 08 00 4A 68 80 11 00 00 00 00 00 00 2C [23:24:31]Write i2c OK [23:24:31]MH_I2C_Read... [23:24:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:31]Read from MH i2c: E2 [23:24:31]MH_I2C_Read... [23:24:31]Read from MH i2c: E2 17 00 [23:24:31]MH_I2C_Read... [23:24:31]Read from MH i2c: E2 17 00 4A 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 83 [23:24:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:24:31]wFMCommunicate OK [23:24:31]requested_item fd.num is exist - process it [23:24:31]SAM_PROTO_GetFieldsCounters [23:24:31]wFMCommunicate request_size=4 [23:24:31]MH_SAM_APDU [23:24:31]CAPDU: 80 13 00 00 [23:24:31]Write to MH i2c: E2 08 00 4B 68 80 13 00 00 00 00 00 00 2F [23:24:31]Write i2c OK [23:24:31]MH_I2C_Read... [23:24:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:24:31]Read from MH i2c: E2 [23:24:31]MH_I2C_Read... [23:24:31]Read from MH i2c: E2 62 00 [23:24:31]MH_I2C_Read... [23:24:31]Read from MH i2c: E2 62 00 4B 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 12 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [23:24:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 12 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:24:31]wFMCommunicate OK [23:24:31]SAM_PROTO_GetFieldsCounters done [23:24:31]requested_item shift.num is exist - process it [23:24:31]requested_item shift.opened is exist - process it [23:24:31]req_shift_opened [23:24:31]FM_GetShiftState [23:24:31]SAM_PROTO_GetShiftState [23:24:31]wFMCommunicate request_size=4 [23:24:31]MH_SAM_APDU [23:24:31]CAPDU: 80 13 01 00 [23:24:31]Write to MH i2c: E2 08 00 4C 68 80 13 01 00 00 00 00 00 31 [23:24:31]Write i2c OK [23:24:31]MH_I2C_Read... [23:24:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:31]Read from MH i2c: E2 [23:24:31]MH_I2C_Read... [23:24:31]Read from MH i2c: E2 0E 00 [23:24:31]MH_I2C_Read... [23:24:31]Read from MH i2c: E2 0E 00 4C 68 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 B3 [23:24:31]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [23:24:31]wFMCommunicate OK [23:24:31]SAM_PROTO_GetShiftState done [23:24:31]FM_GetShiftState done [23:24:31]req_shift_opened done [23:24:31]requested_item shift.open_date is exist - process it [23:24:31]req_shift_open_date [23:24:31]req_shift_open_date done [23:24:31]produce_requested_data done [23:24:31]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92690,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [23:24:31]process_action_free close_receipt [23:24:31]json_value_free [23:24:31]json_value_free done [23:24:31]process_json_proto returns [23:24:31]Send response to host [23:24:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92690,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [23:24:31]free response buf [23:24:31]execute_script done [23:24:31]execute_script returns [23:24:31]free content buf [23:24:31]Sock 8.Close socket [23:24:31]Sock 8.Thread stoped [23:24:34]OFD Sender: No OFD packet to send [23:24:39]OFD Sender: No OFD packet to send [23:24:44]OFD Sender: No OFD packet to send [23:24:49]OFD Sender: No OFD packet to send [23:24:54]OFD Sender: No OFD packet to send [23:24:59]OFD Sender: No OFD packet to send [23:25:04]OFD Sender: No OFD packet to send [23:25:09]OFD Sender: No OFD packet to send [23:25:14]OFD Sender: No OFD packet to send [23:25:19]OFD Sender: No OFD packet to send [23:25:24]OFD Sender: No OFD packet to send [23:25:29]OFD Sender: No OFD packet to send [23:25:34]OFD Sender: No OFD packet to send [23:25:39]OFD Sender: No OFD packet to send [23:25:44]OFD Sender: No OFD packet to send [23:25:49]OFD Sender: No OFD packet to send [23:25:54]OFD Sender: No OFD packet to send [23:25:59]OFD Sender: No OFD packet to send [23:26:04]OFD Sender: No OFD packet to send [23:26:09]OFD Sender: No OFD packet to send [23:26:14]OFD Sender: No OFD packet to send [23:26:14]accept exits with 9 [23:26:14]New connection [23:26:14]New thread 3066801508 created [23:26:14]Thread 3066658148 joined [23:26:14]Waiting for new connection... [23:26:14] Sock 9.Parse request [23:26:14]Sock 9.Check first char [23:26:14]Sock 9.First char is OK [23:26:14]request: POST /json_proto HTTP/1.0 [23:26:14]Method: POST [23:26:14]URL: /json_proto [23:26:14]Method is POST - this is cgi request [23:26:14]url: /json_proto [23:26:14]query_string will be loaded in cgi processing [23:26:14]execute_cgi json_proto POST (null) [23:26:14]execute_cgi path=json_proto method=POST [23:26:14]POST find Content-Length [23:26:14]Host: 172.17.57.71:8080 [23:26:14]Content-Length: 738 [23:26:14]Content-Type: application/json [23:26:14] [23:26:14]POST finish read [23:26:14]Found Content-Length = 738 [23:26:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 92690, "base_FM": "0000000000874692", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:26:14]execute_script... [23:26:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 92690, "base_FM": "0000000000874692", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:26:14]POST & json_proto [23:26:14]process_json_proto [23:26:14]json parsed OK: [23:26:14]protocol is kg_v1.0 [23:26:14]action value=close_receipt [23:26:14]process_action close_receipt [23:26:14]cmd_close_receipt [23:26:14]MH_GetDate [23:26:14]Write to MH i2c: F0 00 00 4D 68 A4 [23:26:14]Write i2c OK [23:26:14]MH_I2C_Read... [23:26:14]Read from MH i2c: F0 [23:26:14]MH_I2C_Read... [23:26:14]Read from MH i2c: F0 09 00 [23:26:14]MH_I2C_Read... [23:26:14]Read from MH i2c: F0 09 00 4D 68 00 21 6D E7 66 33 3A A4 66 FF [23:26:14]GetLastDocTimeStamp 1726442677 [23:26:14]current date 1726442785 [23:26:14]FM_GetShiftState [23:26:14]SAM_PROTO_GetShiftState [23:26:14]wFMCommunicate request_size=4 [23:26:14]MH_SAM_APDU [23:26:14]CAPDU: 80 13 01 00 [23:26:14]Write to MH i2c: E2 08 00 4E 68 80 13 01 00 00 00 00 00 33 [23:26:14]Write i2c OK [23:26:14]MH_I2C_Read... [23:26:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:26:14]Read from MH i2c: E2 [23:26:14]MH_I2C_Read... [23:26:14]Read from MH i2c: E2 0E 00 [23:26:14]MH_I2C_Read... [23:26:14]Read from MH i2c: E2 0E 00 4E 68 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 B5 [23:26:14]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [23:26:14]wFMCommunicate OK [23:26:14]SAM_PROTO_GetShiftState done [23:26:14]FM_GetShiftState done [23:26:14]opened in 1726359809 [23:26:14]opened+sec_in_day 1726446209 [23:26:14]quantity*price = 100015 [23:26:14]sum+1 = 100017 [23:26:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 139 15.09.2024 23:26 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФД осн.: 92690 ФМ осн.: 0000000000874692 ФМ: 0000000000874692 ФД: 92691 ФПД: 50694492268832 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T232625&type=2&operation_type=1&fn_number=0000000000874692&fd_number=92691&fm=50694492268832&tin=02508201610067®Number=0000000000091423&sum=100000 [23:26:16]StoreToDocumentArchive [23:26:16]shift 507 fd 92691 [23:26:16]save to /storage/0507/doc_00092691 [23:26:16]save last doc name /storage/0507/doc_00092691 to /storage/kkm_last_doc_name [23:26:16]save OK [23:26:16]Clear old archive folders... [23:26:16]ProcessDocumentItem done err = 0, tmpTLVsize=279 [23:26:16]tlvbuf is 01038190 [23:26:16]SAM_PROTO_ClearQueue [23:26:16]wFMCommunicate request_size=4 [23:26:16]MH_SAM_APDU [23:26:16]CAPDU: 80 09 00 00 [23:26:16]Write to MH i2c: E2 08 00 5D 68 80 09 00 00 00 00 00 00 37 [23:26:16]Write i2c OK [23:26:16]MH_I2C_Read... [23:26:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:26:16]Read from MH i2c: E2 [23:26:16]MH_I2C_Read... [23:26:16]Read from MH i2c: E2 03 00 [23:26:16]MH_I2C_Read... [23:26:16]Read from MH i2c: E2 03 00 5D 68 00 90 00 39 [23:26:16]RAPDU: 90 00 [23:26:16]wFMCommunicate OK [23:26:16]SAM_PROTO_ClearQueue done [23:26:16]KKMCreateOFDPacket [23:26:16]OFDProtocolAddRootSTLVToBuf [23:26:16]FM_MakeSignedData [23:26:16]FM_MakeSignedData [23:26:16]SAM_PROTO_SignData [23:26:16]wFMCommunicate request_size=4 [23:26:16]MH_SAM_APDU [23:26:16]CAPDU: 80 0D 01 02 [23:26:16]Write to MH i2c: E2 08 00 5E 68 80 0D 01 02 00 00 00 00 3F [23:26:16]Write i2c OK [23:26:16]MH_I2C_Read... [23:26:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:26:16]Read from MH i2c: E2 [23:26:16]MH_I2C_Read... [23:26:16]Read from MH i2c: E2 03 00 [23:26:16]MH_I2C_Read... [23:26:16]Read from MH i2c: E2 03 00 5E 68 00 90 00 3A [23:26:16]RAPDU: 90 00 [23:26:16]wFMCommunicate OK [23:26:16]wFMCommunicate request_size=255 [23:26:16]MH_SAM_APDU [23:26:16]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 21 6D E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 27 04 04 00 12 6A 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 11 04 10 00 30 [23:26:16]Write to MH i2c: E2 02 01 5F 68 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 21 6D E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 27 04 04 00 12 6A 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 11 04 10 00 30 00 00 07 [23:26:16]Write i2c OK [23:26:16]MH_I2C_Read... [23:26:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:26:16]Read from MH i2c: E2 [23:26:16]MH_I2C_Read... [23:26:16]Read from MH i2c: E2 03 00 [23:26:16]MH_I2C_Read... [23:26:16]Read from MH i2c: E2 03 00 5F 68 00 90 00 3B [23:26:16]RAPDU: 90 00 [23:26:16]wFMCommunicate OK [23:26:16]wFMCommunicate request_size=38 [23:26:16]MH_SAM_APDU [23:26:16]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 13 6A 01 00 35 04 06 00 2E 1B 3B 34 29 20 [23:26:16]Write to MH i2c: E2 29 00 60 68 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 13 6A 01 00 35 04 06 00 2E 1B 3B 34 29 20 00 00 4E [23:26:16]Write i2c OK [23:26:16]MH_I2C_Read... [23:26:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:26:16]Read from MH i2c: E2 [23:26:16]MH_I2C_Read... [23:26:16]Read from MH i2c: E2 03 00 [23:26:16]MH_I2C_Read... [23:26:16]Read from MH i2c: E2 03 00 60 68 00 90 00 3C [23:26:16]RAPDU: 90 00 [23:26:16]wFMCommunicate OK [23:26:16]wFMCommunicate request_size=4 [23:26:16]MH_SAM_APDU [23:26:16]CAPDU: 80 0D 03 02 [23:26:16]Write to MH i2c: E2 08 00 61 68 80 0D 03 02 00 00 00 00 44 [23:26:16]Write i2c OK [23:26:16]MH_I2C_Read... [23:26:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:26:16]Read from MH i2c: E2 [23:26:16]MH_I2C_Read... [23:26:16]Read from MH i2c: E2 0B 00 [23:26:16]MH_I2C_Read... [23:26:16]Read from MH i2c: E2 0B 00 61 68 00 6F B5 CE D7 FC DD 38 BA 90 00 D9 [23:26:16]RAPDU: 6F B5 CE D7 FC DD 38 BA 90 00 [23:26:16]wFMCommunicate OK [23:26:16]SAM_PROTO_SignData done [23:26:16]FM_MakeSignedData done [23:26:16]CreateOFDProtocolMessage [23:26:16]wFMCommunicate request_size=4 [23:26:16]MH_SAM_APDU [23:26:16]CAPDU: 80 11 00 00 [23:26:16]Write to MH i2c: E2 08 00 62 68 80 11 00 00 00 00 00 00 44 [23:26:16]Write i2c OK [23:26:16]MH_I2C_Read... [23:26:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:26:16]Read from MH i2c: E2 [23:26:16]MH_I2C_Read... [23:26:16]Read from MH i2c: E2 17 00 [23:26:16]MH_I2C_Read... [23:26:16]Read from MH i2c: E2 17 00 62 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 9B [23:26:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:26:16]wFMCommunicate OK [23:26:16]CreateOFDProtocolMessage done [23:26:16]OFDSenderStorePacket 92691 [23:26:16]StoreOFDPacket docnum=92691 [23:26:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2B 01 00 00 61 DF 23 01 46 9C 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 21 6D E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 27 04 04 00 12 6A 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 13 6A 01 00 35 04 06 00 2E 1B 3B 34 29 20 6F B5 CE D7 FC DD 38 BA [23:26:16]CheckFolder [23:26:16]dirname=/storage/ofd_packets [23:26:16]CheckFolder done [23:26:16]ProducePacketName [23:26:16]name=ofd_packets/00092691 [23:26:16]NVStorageSaveData ofd_packets/00092691 [23:26:16]File name is /storage/ofd_packets/00092691 [23:26:16]Write 329 bytes [23:26:16]NVStorageSaveData done [23:26:16]OFDSenderStorePacket done [23:26:16]KKMCreateOFDPacket done [23:26:16]NVStorageSaveData kkm_last_timestamp [23:26:16]File name is /storage/kkm_last_timestamp [23:26:16]Write 4 bytes [23:26:16]NVStorageSaveData done [23:26:16]ExternCall_PrintAddStr [23:26:16]wPrintStart [23:26:16]Write to MH i2c: 01 00 00 63 68 CB [23:26:16]Write i2c OK [23:26:16]MH_I2C_Read... [23:26:16]Read from MH i2c: 01 [23:26:16]MH_I2C_Read... [23:26:16]Read from MH i2c: 01 07 00 [23:26:16]MH_I2C_Read... [23:26:16]Read from MH i2c: 01 07 00 63 68 00 00 00 00 00 FF 0F E0 [23:26:16]RasterBufferAndPrint [23:26:16]line Счет N : (1)648762 [23:26:16]line ИНН: 02508201610067 [23:26:16]line Контрольно-Кассовый Чек [23:26:16]line ВОЗВРАТ ПРОДАЖИ [23:26:16]line ТРК (МРК, ГНК) : 13 [23:26:16]line Товар: 2710124130 [23:26:16]line Аи-92-К-5 [23:26:16]line 14.950 * 66.90 [23:26:16]line = 1000.16 [23:26:16]line НДС 12% НСП 1% [23:26:16]line > о реализуемом товаре [23:26:16]line ОКРУГЛЕНИЕ: -0.16 [23:26:16]line ИТОГО: 1000.00 [23:26:16]line НСП 1% : 8.85 [23:26:16]line НДС 12% : 106.21 [23:26:16]line Наличными: 1000.00 [23:26:16]line Безнал.: 0.00 [23:26:16]line Место: АЗС № 5 "Партнер Нефть" [23:26:16]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [23:26:16]line СНО: Общий режим [23:26:16]line Чек 139 15.09.2024 23:26 [23:26:16]line Смена: 507 ФФД: 1.0 [23:26:16]line ЗНМ: 03000000022 [23:26:16]line РНМ: 0000000000091423 [23:26:16]line Версия ККМ: 001 [23:26:16]line ФД осн.: 92690 [23:26:16]line ФМ осн.: 0000000000874692 [23:26:16]line ФМ: 0000000000874692 [23:26:16]line ФД: 92691 [23:26:16]line ФПД: 50694492268832 [23:26:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T232625&type=2&operation_type=1&fn_number=0000000000874692&fd_number=92691&fm=50694492268832&tin=02508201610067®Number=0000000000091423&sum=100000 [23:26:16]OFD Sender: Processing packet 92691 [packets to send 63, broken 62] [23:26:16]ProducePacketName [23:26:16]name=ofd_packets/00092691 [23:26:16]OFD Sender: To server: pG, [23:26:16]CommunicateWithHost lk.salyk.kg:30040 [23:26:16]ConnectInit lk.salyk.kg [23:26:16]written 0, free lines is 4095 [23:26:17]Connected sock=10 [23:26:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2B 01 00 00 61 DF 23 01 46 9C 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 21 6D E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 27 04 04 00 12 6A 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 13 6A 01 00 35 04 06 00 2E 1B 3B 34 29 20 6F B5 CE D7 FC DD 38 BA [23:26:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 4B 6C 47 00 D2 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 13 6A 01 00 F4 03 04 00 98 15 E7 66 B6 04 01 00 00 C2 39 BD A2 92 40 5F CB [23:26:17]CommunicateWithHost err = 0 [23:26:17]CheckOFDResponse [23:26:17]1017 (14) - 77093643461234 [23:26:17]1041 (16) - 0000000000874692 [23:26:17]1040 (4) - 92691 [23:26:17]1012 (4) - 15.09.2024 17:12 [23:26:17]1206 (1) - 0 [23:26:17]OFD Sender: Remove packet 92691 [23:26:17]ProducePacketName [23:26:17]name=ofd_packets/00092691 [23:26:17]NVStorageDeleteData [23:26:17]Write to MH i2c: 01 00 00 8E 68 F6 [23:26:17]Write i2c OK [23:26:17]MH_I2C_Read... [23:26:17]Read from MH i2c: 01 [23:26:17]MH_I2C_Read... [23:26:17]Read from MH i2c: 01 07 00 [23:26:17]MH_I2C_Read... [23:26:17]Read from MH i2c: 01 07 00 8E 68 00 00 00 00 00 09 0D 13 [23:26:17]RasterBufferAndPrint [23:26:17]line [23:26:17]line [23:26:17]line [23:26:17]line [23:26:17]line [23:26:17]written 0, free lines is 3345 [23:26:17]MH_Cut [23:26:17]Write to MH i2c: D1 01 00 95 68 01 CF [23:26:17]Write i2c OK [23:26:17]MH_I2C_Read... [23:26:17]Read from MH i2c: D1 [23:26:17]MH_I2C_Read... [23:26:17]Read from MH i2c: D1 01 00 [23:26:17]MH_I2C_Read... [23:26:17]Read from MH i2c: D1 01 00 95 68 00 CE [23:26:17]Write to MH i2c: 01 00 00 96 68 FE [23:26:17]Write i2c OK [23:26:17]MH_I2C_Read... [23:26:17]OFD Sender: No OFD packet to send [23:26:18]*** Cut start [23:26:18]*** Purtial cut [23:26:18]*** Stage 1: CUTSNS_PIN = 1 [23:26:20]Read from MH i2c: 01 [23:26:20]MH_I2C_Read... [23:26:20]*** Stop cut motor [23:26:20]*** Cut end [23:26:20]Read from MH i2c: 01 07 00 [23:26:20]MH_I2C_Read... [23:26:20]Read from MH i2c: 01 07 00 96 68 00 00 00 00 00 FF 0F 13 [23:26:20]process_action close_receipt done [23:26:20]requested_data is exist [23:26:20]produce_requested_data [23:26:20]requested_item fm.sn is exist - process it [23:26:20]wFMCommunicate request_size=4 [23:26:20]MH_SAM_APDU [23:26:20]CAPDU: 80 11 00 00 [23:26:20]Write to MH i2c: E2 08 00 97 68 80 11 00 00 00 00 00 00 79 [23:26:20]Write i2c OK [23:26:20]MH_I2C_Read... [23:26:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:26:20]Read from MH i2c: E2 [23:26:20]MH_I2C_Read... [23:26:20]Read from MH i2c: E2 17 00 [23:26:20]MH_I2C_Read... [23:26:20]Read from MH i2c: E2 17 00 97 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D0 [23:26:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:26:20]wFMCommunicate OK [23:26:20]requested_item fd.num is exist - process it [23:26:20]SAM_PROTO_GetFieldsCounters [23:26:20]wFMCommunicate request_size=4 [23:26:20]MH_SAM_APDU [23:26:20]CAPDU: 80 13 00 00 [23:26:20]Write to MH i2c: E2 08 00 98 68 80 13 00 00 00 00 00 00 7C [23:26:20]Write i2c OK [23:26:20]MH_I2C_Read... [23:26:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:26:20]Read from MH i2c: E2 [23:26:20]MH_I2C_Read... [23:26:20]Read from MH i2c: E2 62 00 [23:26:20]MH_I2C_Read... [23:26:20]Read from MH i2c: E2 62 00 98 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 13 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [23:26:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 13 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:26:20]wFMCommunicate OK [23:26:20]SAM_PROTO_GetFieldsCounters done [23:26:20]requested_item shift.num is exist - process it [23:26:20]requested_item shift.opened is exist - process it [23:26:20]req_shift_opened [23:26:20]FM_GetShiftState [23:26:20]SAM_PROTO_GetShiftState [23:26:20]wFMCommunicate request_size=4 [23:26:20]MH_SAM_APDU [23:26:20]CAPDU: 80 13 01 00 [23:26:20]Write to MH i2c: E2 08 00 99 68 80 13 01 00 00 00 00 00 7E [23:26:20]Write i2c OK [23:26:20]MH_I2C_Read... [23:26:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:26:20]Read from MH i2c: E2 [23:26:20]MH_I2C_Read... [23:26:20]Read from MH i2c: E2 0E 00 [23:26:20]MH_I2C_Read... [23:26:20]Read from MH i2c: E2 0E 00 99 68 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 00 [23:26:20]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [23:26:20]wFMCommunicate OK [23:26:20]SAM_PROTO_GetShiftState done [23:26:20]FM_GetShiftState done [23:26:20]req_shift_opened done [23:26:20]requested_item shift.open_date is exist - process it [23:26:20]req_shift_open_date [23:26:20]req_shift_open_date done [23:26:20]produce_requested_data done [23:26:20]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92691,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [23:26:20]process_action_free close_receipt [23:26:20]json_value_free [23:26:20]json_value_free done [23:26:20]process_json_proto returns [23:26:20]Send response to host [23:26:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92691,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [23:26:20]free response buf [23:26:20]execute_script done [23:26:20]execute_script returns [23:26:20]free content buf [23:26:20]Sock 9.Close socket [23:26:20]Sock 9.Thread stoped [23:26:20]accept exits with 8 [23:26:20]New connection [23:26:20]New thread 3066658148 created [23:26:20]Thread 3066801508 joined [23:26:20]Waiting for new connection... [23:26:20] Sock 8.Parse request [23:26:20]Sock 8.Check first char [23:26:20]Sock 8.First char is OK [23:26:20]request: POST /json_proto HTTP/1.0 [23:26:20]Method: POST [23:26:20]URL: /json_proto [23:26:20]Method is POST - this is cgi request [23:26:20]url: /json_proto [23:26:20]query_string will be loaded in cgi processing [23:26:20]execute_cgi json_proto POST (null) [23:26:20]execute_cgi path=json_proto method=POST [23:26:20]POST find Content-Length [23:26:20]Host: 172.17.57.71:8080 [23:26:20]Content-Length: 682 [23:26:20]Content-Type: application/json [23:26:20] [23:26:20]POST finish read [23:26:20]Found Content-Length = 682 [23:26:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:26:20]execute_script... [23:26:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:26:20]POST & json_proto [23:26:20]process_json_proto [23:26:20]json parsed OK: [23:26:20]protocol is kg_v1.0 [23:26:20]action value=close_receipt [23:26:20]process_action close_receipt [23:26:20]cmd_close_receipt [23:26:20]MH_GetDate [23:26:20]Write to MH i2c: F0 00 00 9A 68 F1 [23:26:20]Write i2c OK [23:26:20]MH_I2C_Read... [23:26:20]Read from MH i2c: F0 [23:26:20]MH_I2C_Read... [23:26:20]Read from MH i2c: F0 09 00 [23:26:20]MH_I2C_Read... [23:26:20]Read from MH i2c: F0 09 00 9A 68 00 27 6D E7 66 33 3A A4 66 52 [23:26:20]GetLastDocTimeStamp 1726442785 [23:26:20]current date 1726442791 [23:26:20]FM_GetShiftState [23:26:20]SAM_PROTO_GetShiftState [23:26:20]wFMCommunicate request_size=4 [23:26:20]MH_SAM_APDU [23:26:20]CAPDU: 80 13 01 00 [23:26:20]Write to MH i2c: E2 08 00 9B 68 80 13 01 00 00 00 00 00 80 [23:26:20]Write i2c OK [23:26:20]MH_I2C_Read... [23:26:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:26:20]Read from MH i2c: E2 [23:26:20]MH_I2C_Read... [23:26:20]Read from MH i2c: E2 0E 00 [23:26:20]MH_I2C_Read... [23:26:20]Read from MH i2c: E2 0E 00 9B 68 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 02 [23:26:20]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [23:26:20]wFMCommunicate OK [23:26:20]SAM_PROTO_GetShiftState done [23:26:20]FM_GetShiftState done [23:26:20]opened in 1726359809 [23:26:20]opened+sec_in_day 1726446209 [23:26:20]quantity*price = 100060 [23:26:20]sum+1 = 100062 [23:26:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 140 15.09.2024 23:26 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92692 ФПД: 249340385448614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T232631&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92692&fm=249340385448614&tin=02508201610067®Number=0000000000091423&sum=100000 [23:26:21]StoreToDocumentArchive [23:26:21]shift 507 fd 92692 [23:26:21]save to /storage/0507/doc_00092692 [23:26:21]save last doc name /storage/0507/doc_00092692 to /storage/kkm_last_doc_name [23:26:21]save OK [23:26:21]Clear old archive folders... [23:26:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:26:21]tlvbuf is 010C8770 [23:26:21]SAM_PROTO_ClearQueue [23:26:21]wFMCommunicate request_size=4 [23:26:21]MH_SAM_APDU [23:26:21]CAPDU: 80 09 00 00 [23:26:21]Write to MH i2c: E2 08 00 A8 68 80 09 00 00 00 00 00 00 82 [23:26:21]Write i2c OK [23:26:21]MH_I2C_Read... [23:26:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:26:21]Read from MH i2c: E2 [23:26:21]MH_I2C_Read... [23:26:21]Read from MH i2c: E2 03 00 [23:26:21]MH_I2C_Read... [23:26:21]Read from MH i2c: E2 03 00 A8 68 00 90 00 84 [23:26:21]RAPDU: 90 00 [23:26:21]wFMCommunicate OK [23:26:21]SAM_PROTO_ClearQueue done [23:26:21]KKMCreateOFDPacket [23:26:21]OFDProtocolAddRootSTLVToBuf [23:26:21]FM_MakeSignedData [23:26:21]FM_MakeSignedData [23:26:21]SAM_PROTO_SignData [23:26:21]wFMCommunicate request_size=4 [23:26:21]MH_SAM_APDU [23:26:21]CAPDU: 80 0D 01 02 [23:26:21]Write to MH i2c: E2 08 00 A9 68 80 0D 01 02 00 00 00 00 8A [23:26:21]Write i2c OK [23:26:21]MH_I2C_Read... [23:26:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:26:22]Read from MH i2c: E2 [23:26:22]MH_I2C_Read... [23:26:22]Read from MH i2c: E2 03 00 [23:26:22]MH_I2C_Read... [23:26:22]Read from MH i2c: E2 03 00 A9 68 00 90 00 85 [23:26:22]RAPDU: 90 00 [23:26:22]wFMCommunicate OK [23:26:22]wFMCommunicate request_size=255 [23:26:22]MH_SAM_APDU [23:26:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 27 6D E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 14 6A 01 00 35 04 06 00 E2 [23:26:22]Write to MH i2c: E2 02 01 AA 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 27 6D E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 14 6A 01 00 35 04 06 00 E2 00 00 47 [23:26:22]Write i2c OK [23:26:22]MH_I2C_Read... [23:26:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:26:22]Read from MH i2c: E2 [23:26:22]MH_I2C_Read... [23:26:22]Read from MH i2c: E2 03 00 [23:26:22]MH_I2C_Read... [23:26:22]Read from MH i2c: E2 03 00 AA 68 00 90 00 86 [23:26:22]RAPDU: 90 00 [23:26:22]wFMCommunicate OK [23:26:22]wFMCommunicate request_size=10 [23:26:22]MH_SAM_APDU [23:26:22]CAPDU: 80 0D 02 02 05 C6 15 1A 52 A6 [23:26:22]Write to MH i2c: E2 0D 00 AB 68 80 0D 02 02 05 00 C6 15 1A 52 A6 00 00 84 [23:26:22]Write i2c OK [23:26:22]MH_I2C_Read... [23:26:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:26:22]Read from MH i2c: E2 [23:26:22]MH_I2C_Read... [23:26:22]Read from MH i2c: E2 03 00 [23:26:22]MH_I2C_Read... [23:26:22]Read from MH i2c: E2 03 00 AB 68 00 90 00 87 [23:26:22]RAPDU: 90 00 [23:26:22]wFMCommunicate OK [23:26:22]wFMCommunicate request_size=4 [23:26:22]MH_SAM_APDU [23:26:22]CAPDU: 80 0D 03 02 [23:26:22]Write to MH i2c: E2 08 00 AC 68 80 0D 03 02 00 00 00 00 8F [23:26:22]Write i2c OK [23:26:22]MH_I2C_Read... [23:26:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:26:22]Read from MH i2c: E2 [23:26:22]MH_I2C_Read... [23:26:22]Read from MH i2c: E2 0B 00 [23:26:22]MH_I2C_Read... [23:26:22]Read from MH i2c: E2 0B 00 AC 68 00 E0 F0 CF DA 21 56 B9 3C 90 00 75 [23:26:22]RAPDU: E0 F0 CF DA 21 56 B9 3C 90 00 [23:26:22]wFMCommunicate OK [23:26:22]SAM_PROTO_SignData done [23:26:22]FM_MakeSignedData done [23:26:22]CreateOFDProtocolMessage [23:26:22]wFMCommunicate request_size=4 [23:26:22]MH_SAM_APDU [23:26:22]CAPDU: 80 11 00 00 [23:26:22]Write to MH i2c: E2 08 00 AD 68 80 11 00 00 00 00 00 00 8F [23:26:22]Write i2c OK [23:26:22]MH_I2C_Read... [23:26:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:26:22]Read from MH i2c: E2 [23:26:22]MH_I2C_Read... [23:26:22]Read from MH i2c: E2 17 00 [23:26:22]MH_I2C_Read... [23:26:22]Read from MH i2c: E2 17 00 AD 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E6 [23:26:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:26:22]wFMCommunicate OK [23:26:22]CreateOFDProtocolMessage done [23:26:22]OFDSenderStorePacket 92692 [23:26:22]StoreOFDPacket docnum=92692 [23:26:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 A9 3A 07 01 4A 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 27 6D E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 14 6A 01 00 35 04 06 00 E2 C6 15 1A 52 A6 E0 F0 CF DA 21 56 B9 3C [23:26:22]CheckFolder [23:26:22]dirname=/storage/ofd_packets [23:26:22]CheckFolder done [23:26:22]ProducePacketName [23:26:22]name=ofd_packets/00092692 [23:26:22]NVStorageSaveData ofd_packets/00092692 [23:26:22]File name is /storage/ofd_packets/00092692 [23:26:22]Write 301 bytes [23:26:22]NVStorageSaveData done [23:26:22]OFDSenderStorePacket done [23:26:22]KKMCreateOFDPacket done [23:26:22]NVStorageSaveData kkm_last_timestamp [23:26:22]File name is /storage/kkm_last_timestamp [23:26:22]Write 4 bytes [23:26:22]NVStorageSaveData done [23:26:22]ExternCall_PrintAddStr [23:26:22]wPrintStart [23:26:22]Write to MH i2c: 01 00 00 AE 68 16 [23:26:22]Write i2c OK [23:26:22]MH_I2C_Read... [23:26:22]Read from MH i2c: 01 [23:26:22]MH_I2C_Read... [23:26:22]Read from MH i2c: 01 07 00 [23:26:22]MH_I2C_Read... [23:26:22]Read from MH i2c: 01 07 00 AE 68 00 00 00 00 00 FF 0F 2B [23:26:22]RasterBufferAndPrint [23:26:22]line Счет N : (1)648766 [23:26:22]line ИНН: 02508201610067 [23:26:22]line Контрольно-Кассовый Чек [23:26:22]line ПРОДАЖА [23:26:22]line ТРК (МРК, ГНК) : 12 [23:26:22]line Товар: 2710124500 [23:26:22]line Аи-95-К-5 [23:26:23]line 13.540 * 73.90 [23:26:23]line = 1000.61 [23:26:23]line НДС 12% НСП 1% [23:26:23]line > о реализуемом товаре [23:26:23]line ОКРУГЛЕНИЕ: -0.61 [23:26:23]line ИТОГО: 1000.00 [23:26:23]line Внесено: 1000.00 [23:26:23]line СДАЧА: 0.00 [23:26:23]line НСП 1% : 8.85 [23:26:23]line НДС 12% : 106.26 [23:26:23]line Наличными: 1000.00 [23:26:23]line Безнал.: 0.00 [23:26:23]line Место: АЗС № 5 "Партнер Нефть" [23:26:23]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [23:26:23]line СНО: Общий режим [23:26:23]line Чек 140 15.09.2024 23:26 [23:26:23]line Смена: 507 ФФД: 1.0 [23:26:23]line ЗНМ: 03000000022 [23:26:23]line РНМ: 0000000000091423 [23:26:23]line Версия ККМ: 001 [23:26:23]line ФМ: 0000000000874692 [23:26:23]line ФД: 92692 [23:26:23]line ФПД: 249340385448614 [23:26:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T232631&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92692&fm=249340385448614&tin=02508201610067®Number=0000000000091423&sum=100000 [23:26:23]OFD Sender: Processing packet 92692 [packets to send 63, broken 62] [23:26:23]ProducePacketName [23:26:23]name=ofd_packets/00092692 [23:26:23]OFD Sender: To server: pG, [23:26:23]CommunicateWithHost lk.salyk.kg:30040 [23:26:23]ConnectInit lk.salyk.kg [23:26:23]written 0, free lines is 4095 [23:26:23]Connected sock=10 [23:26:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 A9 3A 07 01 4A 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 27 6D E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 14 6A 01 00 35 04 06 00 E2 C6 15 1A 52 A6 E0 F0 CF DA 21 56 B9 3C [23:26:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 7C 51 47 00 83 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 14 6A 01 00 F4 03 04 00 9E 15 E7 66 B6 04 01 00 00 57 0A D4 19 9D 05 E4 6A [23:26:23]CommunicateWithHost err = 0 [23:26:23]CheckOFDResponse [23:26:23]1017 (14) - 77093643461234 [23:26:23]1041 (16) - 0000000000874692 [23:26:23]1040 (4) - 92692 [23:26:23]1012 (4) - 15.09.2024 17:13 [23:26:23]1206 (1) - 0 [23:26:23]OFD Sender: Remove packet 92692 [23:26:23]ProducePacketName [23:26:23]name=ofd_packets/00092692 [23:26:23]NVStorageDeleteData [23:26:23]Write to MH i2c: 01 00 00 D9 68 41 [23:26:23]Write i2c OK [23:26:23]MH_I2C_Read... [23:26:23]Read from MH i2c: 01 [23:26:23]MH_I2C_Read... [23:26:23]Read from MH i2c: 01 07 00 [23:26:23]MH_I2C_Read... [23:26:23]Read from MH i2c: 01 07 00 D9 68 00 00 00 00 00 F0 0C 44 [23:26:23]RasterBufferAndPrint [23:26:23]line [23:26:23]line [23:26:23]line [23:26:23]line [23:26:23]line [23:26:23]written 0, free lines is 3330 [23:26:23]MH_Cut [23:26:23]Write to MH i2c: D1 01 00 E0 68 01 1A [23:26:23]Write i2c OK [23:26:23]MH_I2C_Read... [23:26:23]Read from MH i2c: D1 [23:26:23]MH_I2C_Read... [23:26:23]Read from MH i2c: D1 01 00 [23:26:23]MH_I2C_Read... [23:26:23]Read from MH i2c: D1 01 00 E0 68 00 19 [23:26:23]Write to MH i2c: 01 00 00 E1 68 49 [23:26:23]Write i2c OK [23:26:23]MH_I2C_Read... [23:26:23]OFD Sender: No OFD packet to send [23:26:24]*** Cut start [23:26:24]*** Purtial cut [23:26:24]*** Stage 1: CUTSNS_PIN = 1 [23:26:26]Read from MH i2c: 01 [23:26:26]MH_I2C_Read... [23:26:26]*** Stop cut motor [23:26:26]Read from MH i2c: 01 07 00 [23:26:26]MH_I2C_Read... [23:26:26]*** Cut end [23:26:26]Read from MH i2c: 01 07 00 E1 68 00 00 00 00 00 FF 0F 5E [23:26:26]process_action close_receipt done [23:26:26]requested_data is exist [23:26:26]produce_requested_data [23:26:26]requested_item fm.sn is exist - process it [23:26:26]wFMCommunicate request_size=4 [23:26:26]MH_SAM_APDU [23:26:26]CAPDU: 80 11 00 00 [23:26:26]Write to MH i2c: E2 08 00 E2 68 80 11 00 00 00 00 00 00 C4 [23:26:26]Write i2c OK [23:26:26]MH_I2C_Read... [23:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:26:26]Read from MH i2c: E2 [23:26:26]MH_I2C_Read... [23:26:26]Read from MH i2c: E2 17 00 [23:26:26]MH_I2C_Read... [23:26:26]Read from MH i2c: E2 17 00 E2 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 1B [23:26:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:26:26]wFMCommunicate OK [23:26:26]requested_item fd.num is exist - process it [23:26:26]SAM_PROTO_GetFieldsCounters [23:26:26]wFMCommunicate request_size=4 [23:26:26]MH_SAM_APDU [23:26:26]CAPDU: 80 13 00 00 [23:26:26]Write to MH i2c: E2 08 00 E3 68 80 13 00 00 00 00 00 00 C7 [23:26:26]Write i2c OK [23:26:26]MH_I2C_Read... [23:26:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:26:26]Read from MH i2c: E2 [23:26:26]MH_I2C_Read... [23:26:26]Read from MH i2c: E2 62 00 [23:26:26]MH_I2C_Read... [23:26:26]Read from MH i2c: E2 62 00 E3 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 14 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [23:26:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 14 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:26:26]wFMCommunicate OK [23:26:26]SAM_PROTO_GetFieldsCounters done [23:26:26]requested_item shift.num is exist - process it [23:26:26]requested_item shift.opened is exist - process it [23:26:26]req_shift_opened [23:26:26]FM_GetShiftState [23:26:26]SAM_PROTO_GetShiftState [23:26:26]wFMCommunicate request_size=4 [23:26:26]MH_SAM_APDU [23:26:26]CAPDU: 80 13 01 00 [23:26:26]Write to MH i2c: E2 08 00 E4 68 80 13 01 00 00 00 00 00 C9 [23:26:26]Write i2c OK [23:26:26]MH_I2C_Read... [23:26:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:26:26]Read from MH i2c: E2 [23:26:26]MH_I2C_Read... [23:26:26]Read from MH i2c: E2 0E 00 [23:26:26]MH_I2C_Read... [23:26:26]Read from MH i2c: E2 0E 00 E4 68 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 4B [23:26:26]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [23:26:26]wFMCommunicate OK [23:26:26]SAM_PROTO_GetShiftState done [23:26:26]FM_GetShiftState done [23:26:26]req_shift_opened done [23:26:26]requested_item shift.open_date is exist - process it [23:26:26]req_shift_open_date [23:26:26]req_shift_open_date done [23:26:26]produce_requested_data done [23:26:26]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92692,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [23:26:26]process_action_free close_receipt [23:26:26]json_value_free [23:26:26]json_value_free done [23:26:26]process_json_proto returns [23:26:26]Send response to host [23:26:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92692,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [23:26:26]free response buf [23:26:26]execute_script done [23:26:26]execute_script returns [23:26:26]free content buf [23:26:26]Sock 8.Close socket [23:26:26]Sock 8.Thread stoped [23:26:28]OFD Sender: No OFD packet to send [23:26:33]OFD Sender: No OFD packet to send [23:26:38]OFD Sender: No OFD packet to send [23:26:43]OFD Sender: No OFD packet to send [23:26:48]OFD Sender: No OFD packet to send [23:26:53]OFD Sender: No OFD packet to send [23:26:58]OFD Sender: No OFD packet to send [23:27:03]OFD Sender: No OFD packet to send [23:27:08]OFD Sender: No OFD packet to send [23:27:13]OFD Sender: No OFD packet to send [23:27:18]OFD Sender: No OFD packet to send [23:27:24]OFD Sender: No OFD packet to send [23:27:29]OFD Sender: No OFD packet to send [23:27:34]OFD Sender: No OFD packet to send [23:27:39]OFD Sender: No OFD packet to send [23:27:44]OFD Sender: No OFD packet to send [23:27:49]OFD Sender: No OFD packet to send [23:27:54]OFD Sender: No OFD packet to send [23:27:59]OFD Sender: No OFD packet to send [23:28:04]OFD Sender: No OFD packet to send [23:28:09]OFD Sender: No OFD packet to send [23:28:14]OFD Sender: No OFD packet to send [23:28:19]OFD Sender: No OFD packet to send [23:28:24]OFD Sender: No OFD packet to send [23:28:29]OFD Sender: No OFD packet to send [23:28:34]OFD Sender: No OFD packet to send [23:28:39]OFD Sender: No OFD packet to send [23:28:44]OFD Sender: No OFD packet to send [23:28:49]OFD Sender: No OFD packet to send [23:28:54]OFD Sender: No OFD packet to send [23:28:59]OFD Sender: No OFD packet to send [23:29:04]OFD Sender: No OFD packet to send [23:29:09]OFD Sender: No OFD packet to send [23:29:14]OFD Sender: No OFD packet to send [23:29:19]OFD Sender: No OFD packet to send [23:29:24]OFD Sender: No OFD packet to send [23:29:29]OFD Sender: No OFD packet to send [23:29:34]OFD Sender: No OFD packet to send [23:29:39]OFD Sender: No OFD packet to send [23:29:44]OFD Sender: No OFD packet to send [23:29:49]OFD Sender: No OFD packet to send [23:29:54]OFD Sender: No OFD packet to send [23:29:59]OFD Sender: No OFD packet to send [23:30:04]OFD Sender: No OFD packet to send [23:30:09]OFD Sender: No OFD packet to send [23:30:14]OFD Sender: No OFD packet to send [23:30:19]OFD Sender: No OFD packet to send [23:30:24]OFD Sender: No OFD packet to send [23:30:29]OFD Sender: No OFD packet to send [23:30:34]OFD Sender: No OFD packet to send [23:30:39]OFD Sender: No OFD packet to send [23:30:44]OFD Sender: No OFD packet to send [23:30:49]OFD Sender: No OFD packet to send [23:30:54]OFD Sender: No OFD packet to send [23:30:59]OFD Sender: No OFD packet to send [23:31:04]OFD Sender: No OFD packet to send [23:31:09]OFD Sender: No OFD packet to send [23:31:14]OFD Sender: No OFD packet to send [23:31:19]OFD Sender: No OFD packet to send [23:31:24]OFD Sender: No OFD packet to send [23:31:29]OFD Sender: No OFD packet to send [23:31:34]OFD Sender: No OFD packet to send [23:31:39]OFD Sender: No OFD packet to send [23:31:44]OFD Sender: No OFD packet to send [23:31:49]OFD Sender: No OFD packet to send [23:31:54]OFD Sender: No OFD packet to send [23:31:59]OFD Sender: No OFD packet to send [23:32:04]OFD Sender: No OFD packet to send [23:32:09]OFD Sender: No OFD packet to send [23:32:14]OFD Sender: No OFD packet to send [23:32:19]OFD Sender: No OFD packet to send [23:32:24]OFD Sender: No OFD packet to send [23:32:29]OFD Sender: No OFD packet to send [23:32:34]OFD Sender: No OFD packet to send [23:32:39]OFD Sender: No OFD packet to send [23:32:44]OFD Sender: No OFD packet to send [23:32:49]OFD Sender: No OFD packet to send [23:32:54]OFD Sender: No OFD packet to send [23:32:59]OFD Sender: No OFD packet to send [23:33:04]OFD Sender: No OFD packet to send [23:33:09]OFD Sender: No OFD packet to send [23:33:14]OFD Sender: No OFD packet to send [23:33:19]OFD Sender: No OFD packet to send [23:33:24]OFD Sender: No OFD packet to send [23:33:29]OFD Sender: No OFD packet to send [23:33:34]OFD Sender: No OFD packet to send [23:33:39]OFD Sender: No OFD packet to send [23:33:44]OFD Sender: No OFD packet to send [23:33:49]OFD Sender: No OFD packet to send [23:33:54]OFD Sender: No OFD packet to send [23:33:59]OFD Sender: No OFD packet to send [23:34:04]OFD Sender: No OFD packet to send [23:34:09]OFD Sender: No OFD packet to send [23:34:14]OFD Sender: No OFD packet to send [23:34:19]OFD Sender: No OFD packet to send [23:34:24]OFD Sender: No OFD packet to send [23:34:29]OFD Sender: No OFD packet to send [23:34:34]OFD Sender: No OFD packet to send [23:34:39]OFD Sender: No OFD packet to send [23:34:44]OFD Sender: No OFD packet to send [23:34:49]OFD Sender: No OFD packet to send [23:34:54]OFD Sender: No OFD packet to send [23:34:59]OFD Sender: No OFD packet to send [23:35:04]OFD Sender: No OFD packet to send [23:35:09]OFD Sender: No OFD packet to send [23:35:14]OFD Sender: No OFD packet to send [23:35:19]OFD Sender: No OFD packet to send [23:35:24]OFD Sender: No OFD packet to send [23:35:29]OFD Sender: No OFD packet to send [23:35:34]OFD Sender: No OFD packet to send [23:35:39]OFD Sender: No OFD packet to send [23:35:44]OFD Sender: No OFD packet to send [23:35:49]OFD Sender: No OFD packet to send [23:35:54]OFD Sender: No OFD packet to send [23:35:59]OFD Sender: No OFD packet to send [23:36:04]OFD Sender: No OFD packet to send [23:36:09]OFD Sender: No OFD packet to send [23:36:14]OFD Sender: No OFD packet to send [23:36:19]OFD Sender: No OFD packet to send [23:36:24]OFD Sender: No OFD packet to send [23:36:29]OFD Sender: No OFD packet to send [23:36:34]OFD Sender: No OFD packet to send [23:36:39]OFD Sender: No OFD packet to send [23:36:44]OFD Sender: No OFD packet to send [23:36:49]OFD Sender: No OFD packet to send [23:36:54]OFD Sender: No OFD packet to send [23:36:59]OFD Sender: No OFD packet to send [23:37:04]OFD Sender: No OFD packet to send [23:37:09]OFD Sender: No OFD packet to send [23:37:14]OFD Sender: No OFD packet to send [23:37:19]OFD Sender: No OFD packet to send [23:37:24]OFD Sender: No OFD packet to send [23:37:29]OFD Sender: No OFD packet to send [23:37:34]OFD Sender: No OFD packet to send [23:37:39]OFD Sender: No OFD packet to send [23:37:44]OFD Sender: No OFD packet to send [23:37:49]OFD Sender: No OFD packet to send [23:37:54]OFD Sender: No OFD packet to send [23:37:59]OFD Sender: No OFD packet to send [23:38:04]OFD Sender: No OFD packet to send [23:38:07]accept exits with 9 [23:38:07]New connection [23:38:07]New thread 3066801508 created [23:38:07]Thread 3066658148 joined [23:38:07]Waiting for new connection... [23:38:07] Sock 9.Parse request [23:38:07]Sock 9.Check first char [23:38:07]Sock 9.First char is OK [23:38:07]request: POST /json_proto HTTP/1.0 [23:38:07]Method: POST [23:38:07]URL: /json_proto [23:38:07]Method is POST - this is cgi request [23:38:07]url: /json_proto [23:38:07]query_string will be loaded in cgi processing [23:38:07]execute_cgi json_proto POST (null) [23:38:07]execute_cgi path=json_proto method=POST [23:38:07]POST find Content-Length [23:38:07]Host: 172.17.57.71:8080 [23:38:07]Content-Length: 623 [23:38:07]Content-Type: application/json [23:38:07] [23:38:07]POST finish read [23:38:07]Found Content-Length = 623 [23:38:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127577", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:07]execute_script... [23:38:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127577", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:07]POST & json_proto [23:38:07]process_json_proto [23:38:07]json parsed OK: [23:38:07]protocol is kg_v1.0 [23:38:07]action value=close_receipt [23:38:07]process_action close_receipt [23:38:07]cmd_close_receipt [23:38:07]MH_GetDate [23:38:07]Write to MH i2c: F0 00 00 E5 68 3C [23:38:07]Write i2c OK [23:38:07]MH_I2C_Read... [23:38:07]Read from MH i2c: F0 [23:38:07]MH_I2C_Read... [23:38:07]Read from MH i2c: F0 09 00 [23:38:07]MH_I2C_Read... [23:38:07]Read from MH i2c: F0 09 00 E5 68 00 EA 6F E7 66 33 3A A4 66 62 [23:38:07]GetLastDocTimeStamp 1726442791 [23:38:07]current date 1726443498 [23:38:07]FM_GetShiftState [23:38:07]SAM_PROTO_GetShiftState [23:38:07]wFMCommunicate request_size=4 [23:38:07]MH_SAM_APDU [23:38:07]CAPDU: 80 13 01 00 [23:38:07]Write to MH i2c: E2 08 00 E6 68 80 13 01 00 00 00 00 00 CB [23:38:07]Write i2c OK [23:38:07]MH_I2C_Read... [23:38:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:07]Read from MH i2c: E2 [23:38:07]MH_I2C_Read... [23:38:07]Read from MH i2c: E2 0E 00 [23:38:07]MH_I2C_Read... [23:38:07]Read from MH i2c: E2 0E 00 E6 68 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 4D [23:38:07]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [23:38:07]wFMCommunicate OK [23:38:07]SAM_PROTO_GetShiftState done [23:38:07]FM_GetShiftState done [23:38:07]opened in 1726359809 [23:38:07]opened+sec_in_day 1726446209 [23:38:07]quantity*price = 14400 [23:38:07]sum+1 = 14401 [23:38:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 141 15.09.2024 23:38 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92693 ФПД: 58255528535579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T233818&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92693&fm=58255528535579&tin=02508201610067®Number=0000000000091423&sum=14400 0 [23:38:08]StoreToDocumentArchive [23:38:08]shift 507 fd 92693 [23:38:08]save to /storage/0507/doc_00092693 [23:38:08]save last doc name /storage/0507/doc_00092693 to /storage/kkm_last_doc_name [23:38:08]save OK [23:38:08]Clear old archive folders... [23:38:08]ProcessDocumentItem done err = 0, tmpTLVsize=275 [23:38:08]tlvbuf is 010D6C90 [23:38:08]SAM_PROTO_ClearQueue [23:38:08]wFMCommunicate request_size=4 [23:38:08]MH_SAM_APDU [23:38:08]CAPDU: 80 09 00 00 [23:38:08]Write to MH i2c: E2 08 00 F3 68 80 09 00 00 00 00 00 00 CD [23:38:08]Write i2c OK [23:38:08]MH_I2C_Read... [23:38:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:38:08]Read from MH i2c: E2 [23:38:08]MH_I2C_Read... [23:38:08]Read from MH i2c: E2 03 00 [23:38:08]MH_I2C_Read... [23:38:08]Read from MH i2c: E2 03 00 F3 68 00 90 00 CF [23:38:08]RAPDU: 90 00 [23:38:08]wFMCommunicate OK [23:38:08]SAM_PROTO_ClearQueue done [23:38:08]KKMCreateOFDPacket [23:38:08]OFDProtocolAddRootSTLVToBuf [23:38:08]FM_MakeSignedData [23:38:08]FM_MakeSignedData [23:38:08]SAM_PROTO_SignData [23:38:08]wFMCommunicate request_size=4 [23:38:08]MH_SAM_APDU [23:38:08]CAPDU: 80 0D 01 02 [23:38:08]Write to MH i2c: E2 08 00 F4 68 80 0D 01 02 00 00 00 00 D5 [23:38:08]Write i2c OK [23:38:08]MH_I2C_Read... [23:38:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:38:08]Read from MH i2c: E2 [23:38:08]MH_I2C_Read... [23:38:08]Read from MH i2c: E2 03 00 [23:38:08]MH_I2C_Read... [23:38:08]Read from MH i2c: E2 03 00 F4 68 00 90 00 D0 [23:38:08]RAPDU: 90 00 [23:38:08]wFMCommunicate OK [23:38:08]wFMCommunicate request_size=255 [23:38:08]MH_SAM_APDU [23:38:08]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 EA 6F E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 [23:38:08]Write to MH i2c: E2 02 01 F5 68 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 EA 6F E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 00 00 03 [23:38:08]Write i2c OK [23:38:08]MH_I2C_Read... [23:38:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:09]Read from MH i2c: E2 [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: E2 03 00 [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: E2 03 00 F5 68 00 90 00 D1 [23:38:09]RAPDU: 90 00 [23:38:09]wFMCommunicate OK [23:38:09]wFMCommunicate request_size=34 [23:38:09]MH_SAM_APDU [23:38:09]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 15 6A 01 00 35 04 06 00 34 FB AC 15 A6 1B [23:38:09]Write to MH i2c: E2 25 00 F6 68 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 15 6A 01 00 35 04 06 00 34 FB AC 15 A6 1B 00 00 CE [23:38:09]Write i2c OK [23:38:09]MH_I2C_Read... [23:38:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:09]Read from MH i2c: E2 [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: E2 03 00 [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: E2 03 00 F6 68 00 90 00 D2 [23:38:09]RAPDU: 90 00 [23:38:09]wFMCommunicate OK [23:38:09]wFMCommunicate request_size=4 [23:38:09]MH_SAM_APDU [23:38:09]CAPDU: 80 0D 03 02 [23:38:09]Write to MH i2c: E2 08 00 F7 68 80 0D 03 02 00 00 00 00 DA [23:38:09]Write i2c OK [23:38:09]MH_I2C_Read... [23:38:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:38:09]Read from MH i2c: E2 [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: E2 0B 00 [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: E2 0B 00 F7 68 00 0F 9A 3F C0 7B 2C F4 83 90 00 A1 [23:38:09]RAPDU: 0F 9A 3F C0 7B 2C F4 83 90 00 [23:38:09]wFMCommunicate OK [23:38:09]SAM_PROTO_SignData done [23:38:09]FM_MakeSignedData done [23:38:09]CreateOFDProtocolMessage [23:38:09]wFMCommunicate request_size=4 [23:38:09]MH_SAM_APDU [23:38:09]CAPDU: 80 11 00 00 [23:38:09]Write to MH i2c: E2 08 00 F8 68 80 11 00 00 00 00 00 00 DA [23:38:09]Write i2c OK [23:38:09]MH_I2C_Read... [23:38:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:09]Read from MH i2c: E2 [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: E2 17 00 [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: E2 17 00 F8 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 31 [23:38:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:38:09]wFMCommunicate OK [23:38:09]CreateOFDProtocolMessage done [23:38:09]OFDSenderStorePacket 92693 [23:38:09]StoreOFDPacket docnum=92693 [23:38:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 68 19 1F 01 E6 A0 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 EA 6F E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 15 6A 01 00 35 04 06 00 34 FB AC 15 A6 1B 0F 9A 3F C0 7B 2C F4 83 [23:38:09]CheckFolder [23:38:09]dirname=/storage/ofd_packets [23:38:09]CheckFolder done [23:38:09]ProducePacketName [23:38:09]name=ofd_packets/00092693 [23:38:09]NVStorageSaveData ofd_packets/00092693 [23:38:09]File name is /storage/ofd_packets/00092693 [23:38:09]Write 325 bytes [23:38:09]NVStorageSaveData done [23:38:09]OFDSenderStorePacket done [23:38:09]KKMCreateOFDPacket done [23:38:09]NVStorageSaveData kkm_last_timestamp [23:38:09]File name is /storage/kkm_last_timestamp [23:38:09]Write 4 bytes [23:38:09]NVStorageSaveData done [23:38:09]ExternCall_PrintAddStr [23:38:09]wPrintStart [23:38:09]Write to MH i2c: 01 00 00 F9 68 61 [23:38:09]Write i2c OK [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: 01 [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: 01 07 00 [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: 01 07 00 F9 68 00 00 00 00 00 FF 0F 76 [23:38:09]RasterBufferAndPrint [23:38:09]line Счет N : (3)127577 [23:38:09]line ИНН: 02508201610067 [23:38:09]line Контрольно-Кассовый Чек [23:38:09]line ПРОДАЖА [23:38:09]line Товар: 48743587 [23:38:09]line Сигареты Winston XStyle Silver [23:38:09]line 1.000 * 144.00 [23:38:09]line = 144.00 [23:38:09]line НДС 12% НСП 1% [23:38:09]line > о реализуемом товаре [23:38:09]line ИТОГО: 144.00 [23:38:09]line НСП 1% : 1.27 [23:38:09]line НДС 12% : 15.29 [23:38:09]line Наличными: 144.00 [23:38:09]line Безнал.: 0.00 [23:38:09]line Место: АЗС № 5 "Партнер Нефть" [23:38:09]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [23:38:09]line СНО: Общий режим [23:38:09]line Чек 141 15.09.2024 23:38 [23:38:09]line Смена: 507 ФФД: 1.0 [23:38:09]line ЗНМ: 03000000022 [23:38:09]line РНМ: 0000000000091423 [23:38:09]line Версия ККМ: 001 [23:38:09]line ФМ: 0000000000874692 [23:38:09]line ФД: 92693 [23:38:09]line ФПД: 58255528535579 [23:38:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T233818&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92693&fm=58255528535579&tin=02508201610067®Number=0000000000091423&sum=14400 [23:38:09]OFD Sender: Processing packet 92693 [packets to send 63, broken 62] [23:38:09]ProducePacketName [23:38:09]name=ofd_packets/00092693 [23:38:09]OFD Sender: To server: pG, [23:38:09]CommunicateWithHost lk.salyk.kg:30040 [23:38:09]ConnectInit lk.salyk.kg [23:38:09]line 0 [23:38:09]written 0, free lines is 4095 [23:38:09]Connected sock=10 [23:38:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 68 19 1F 01 E6 A0 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 EA 6F E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 15 6A 01 00 35 04 06 00 34 FB AC 15 A6 1B 0F 9A 3F C0 7B 2C F4 83 [23:38:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 E6 97 47 00 B9 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 15 6A 01 00 F4 03 04 00 60 18 E7 66 B6 04 01 00 00 A4 92 8A 65 DB 5A 80 7C [23:38:09]CommunicateWithHost err = 0 [23:38:09]CheckOFDResponse [23:38:09]1017 (14) - 77093643461234 [23:38:09]1041 (16) - 0000000000874692 [23:38:09]1040 (4) - 92693 [23:38:09]1012 (4) - 15.09.2024 17:24 [23:38:09]1206 (1) - 0 [23:38:09]OFD Sender: Remove packet 92693 [23:38:09]ProducePacketName [23:38:09]name=ofd_packets/00092693 [23:38:09]NVStorageDeleteData [23:38:09]Write to MH i2c: 01 00 00 22 69 8B [23:38:09]Write i2c OK [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: 01 [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: 01 07 00 [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: 01 07 00 22 69 00 00 00 00 00 0D 0D AC [23:38:09]RasterBufferAndPrint [23:38:09]line [23:38:09]line [23:38:09]line [23:38:09]line [23:38:09]line [23:38:09]written 0, free lines is 3349 [23:38:09]MH_Cut [23:38:09]Write to MH i2c: D1 01 00 29 69 01 64 [23:38:09]Write i2c OK [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: D1 [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: D1 01 00 [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: D1 01 00 29 69 00 63 [23:38:09]Write to MH i2c: 01 00 00 2A 69 93 [23:38:09]Write i2c OK [23:38:09]MH_I2C_Read... [23:38:10]OFD Sender: No OFD packet to send [23:38:10]*** Cut start [23:38:10]*** Purtial cut [23:38:10]*** Stage 1: CUTSNS_PIN = 1 [23:38:12]Read from MH i2c: 01 [23:38:12]MH_I2C_Read... [23:38:12]*** Stop cut motor [23:38:12]*** Cut end [23:38:12]Read from MH i2c: 01 07 00 [23:38:12]MH_I2C_Read... [23:38:12]Read from MH i2c: 01 07 00 2A 69 00 00 00 00 00 FF 0F A8 [23:38:12]process_action close_receipt done [23:38:12]requested_data is exist [23:38:12]produce_requested_data [23:38:12]requested_item fm.sn is exist - process it [23:38:12]wFMCommunicate request_size=4 [23:38:12]MH_SAM_APDU [23:38:12]CAPDU: 80 11 00 00 [23:38:12]Write to MH i2c: E2 08 00 2B 69 80 11 00 00 00 00 00 00 0E [23:38:12]Write i2c OK [23:38:12]MH_I2C_Read... [23:38:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:12]Read from MH i2c: E2 [23:38:12]MH_I2C_Read... [23:38:12]Read from MH i2c: E2 17 00 [23:38:12]MH_I2C_Read... [23:38:12]Read from MH i2c: E2 17 00 2B 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 65 [23:38:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:38:12]wFMCommunicate OK [23:38:12]requested_item fd.num is exist - process it [23:38:12]SAM_PROTO_GetFieldsCounters [23:38:12]wFMCommunicate request_size=4 [23:38:12]MH_SAM_APDU [23:38:12]CAPDU: 80 13 00 00 [23:38:12]Write to MH i2c: E2 08 00 2C 69 80 13 00 00 00 00 00 00 11 [23:38:12]Write i2c OK [23:38:12]MH_I2C_Read... [23:38:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:38:12]Read from MH i2c: E2 [23:38:12]MH_I2C_Read... [23:38:12]Read from MH i2c: E2 62 00 [23:38:12]MH_I2C_Read... [23:38:12]Read from MH i2c: E2 62 00 2C 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 15 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [23:38:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 15 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:38:12]wFMCommunicate OK [23:38:12]SAM_PROTO_GetFieldsCounters done [23:38:12]requested_item shift.num is exist - process it [23:38:12]requested_item shift.opened is exist - process it [23:38:12]req_shift_opened [23:38:12]FM_GetShiftState [23:38:12]SAM_PROTO_GetShiftState [23:38:12]wFMCommunicate request_size=4 [23:38:12]MH_SAM_APDU [23:38:12]CAPDU: 80 13 01 00 [23:38:12]Write to MH i2c: E2 08 00 2D 69 80 13 01 00 00 00 00 00 13 [23:38:12]Write i2c OK [23:38:12]MH_I2C_Read... [23:38:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:12]Read from MH i2c: E2 [23:38:12]MH_I2C_Read... [23:38:12]Read from MH i2c: E2 0E 00 [23:38:12]MH_I2C_Read... [23:38:12]Read from MH i2c: E2 0E 00 2D 69 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 95 [23:38:12]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [23:38:12]wFMCommunicate OK [23:38:12]SAM_PROTO_GetShiftState done [23:38:12]FM_GetShiftState done [23:38:12]req_shift_opened done [23:38:12]requested_item shift.open_date is exist - process it [23:38:12]req_shift_open_date [23:38:12]req_shift_open_date done [23:38:12]produce_requested_data done [23:38:12]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92693,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [23:38:12]process_action_free close_receipt [23:38:12]json_value_free [23:38:12]json_value_free done [23:38:12]process_json_proto returns [23:38:12]Send response to host [23:38:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92693,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [23:38:12]free response buf [23:38:12]execute_script done [23:38:12]execute_script returns [23:38:12]free content buf [23:38:12]Sock 9.Close socket [23:38:12]Sock 9.Thread stoped [23:38:15]OFD Sender: No OFD packet to send [23:38:20]OFD Sender: No OFD packet to send [23:38:25]OFD Sender: No OFD packet to send [23:38:30]OFD Sender: No OFD packet to send [23:38:35]OFD Sender: No OFD packet to send [23:38:40]OFD Sender: No OFD packet to send [23:38:45]OFD Sender: No OFD packet to send [23:38:50]OFD Sender: No OFD packet to send [23:38:55]OFD Sender: No OFD packet to send [23:39:00]OFD Sender: No OFD packet to send [23:39:05]OFD Sender: No OFD packet to send [23:39:10]OFD Sender: No OFD packet to send [23:39:15]OFD Sender: No OFD packet to send [23:39:20]OFD Sender: No OFD packet to send [23:39:25]OFD Sender: No OFD packet to send [23:39:30]OFD Sender: No OFD packet to send [23:39:35]OFD Sender: No OFD packet to send [23:39:40]OFD Sender: No OFD packet to send [23:39:45]OFD Sender: No OFD packet to send [23:39:50]OFD Sender: No OFD packet to send [23:39:55]OFD Sender: No OFD packet to send [23:40:00]OFD Sender: No OFD packet to send [23:40:05]OFD Sender: No OFD packet to send [23:40:10]OFD Sender: No OFD packet to send [23:40:15]OFD Sender: No OFD packet to send [23:40:20]OFD Sender: No OFD packet to send [23:40:25]OFD Sender: No OFD packet to send [23:40:30]OFD Sender: No OFD packet to send [23:40:35]OFD Sender: No OFD packet to send [23:40:40]OFD Sender: No OFD packet to send [23:40:45]OFD Sender: No OFD packet to send [23:40:50]OFD Sender: No OFD packet to send [23:40:55]OFD Sender: No OFD packet to send [23:41:00]OFD Sender: No OFD packet to send [23:41:05]OFD Sender: No OFD packet to send [23:41:10]OFD Sender: No OFD packet to send [23:41:15]OFD Sender: No OFD packet to send [23:41:20]OFD Sender: No OFD packet to send [23:41:25]OFD Sender: No OFD packet to send [23:41:30]OFD Sender: No OFD packet to send [23:41:35]OFD Sender: No OFD packet to send [23:41:40]OFD Sender: No OFD packet to send [23:41:45]OFD Sender: No OFD packet to send [23:41:50]OFD Sender: No OFD packet to send [23:41:55]OFD Sender: No OFD packet to send [23:42:00]OFD Sender: No OFD packet to send [23:42:05]OFD Sender: No OFD packet to send [23:42:10]OFD Sender: No OFD packet to send [23:42:15]OFD Sender: No OFD packet to send [23:42:20]OFD Sender: No OFD packet to send [23:42:25]OFD Sender: No OFD packet to send [23:42:30]OFD Sender: No OFD packet to send [23:42:35]OFD Sender: No OFD packet to send [23:42:40]OFD Sender: No OFD packet to send [23:42:45]OFD Sender: No OFD packet to send [23:42:50]OFD Sender: No OFD packet to send [23:42:55]OFD Sender: No OFD packet to send [23:43:00]OFD Sender: No OFD packet to send [23:43:05]OFD Sender: No OFD packet to send [23:43:10]OFD Sender: No OFD packet to send [23:43:15]OFD Sender: No OFD packet to send [23:43:20]OFD Sender: No OFD packet to send [23:43:25]OFD Sender: No OFD packet to send [23:43:30]OFD Sender: No OFD packet to send [23:43:35]OFD Sender: No OFD packet to send [23:43:40]OFD Sender: No OFD packet to send [23:43:45]OFD Sender: No OFD packet to send [23:43:50]OFD Sender: No OFD packet to send [23:43:55]OFD Sender: No OFD packet to send [23:44:00]OFD Sender: No OFD packet to send [23:44:05]OFD Sender: No OFD packet to send [23:44:10]OFD Sender: No OFD packet to send [23:44:15]OFD Sender: No OFD packet to send [23:44:20]OFD Sender: No OFD packet to send [23:44:25]OFD Sender: No OFD packet to send [23:44:30]OFD Sender: No OFD packet to send [23:44:35]OFD Sender: No OFD packet to send [23:44:40]OFD Sender: No OFD packet to send [23:44:45]OFD Sender: No OFD packet to send [23:44:50]OFD Sender: No OFD packet to send [23:44:55]OFD Sender: No OFD packet to send [23:45:00]OFD Sender: No OFD packet to send [23:45:05]OFD Sender: No OFD packet to send [23:45:10]OFD Sender: No OFD packet to send [23:45:15]OFD Sender: No OFD packet to send [23:45:20]OFD Sender: No OFD packet to send [23:45:25]OFD Sender: No OFD packet to send [23:45:30]OFD Sender: No OFD packet to send [23:45:35]OFD Sender: No OFD packet to send [23:45:40]OFD Sender: No OFD packet to send [23:45:45]OFD Sender: No OFD packet to send [23:45:50]OFD Sender: No OFD packet to send [23:45:55]OFD Sender: No OFD packet to send [23:45:58]accept exits with 8 [23:45:58]New connection [23:45:58]New thread 3066658148 created [23:45:58]Thread 3066801508 joined [23:45:58]Waiting for new connection... [23:45:58] Sock 8.Parse request [23:45:58]Sock 8.Check first char [23:45:58]Sock 8.First char is OK [23:45:58]request: POST /json_proto HTTP/1.0 [23:45:58]Method: POST [23:45:58]URL: /json_proto [23:45:58]Method is POST - this is cgi request [23:45:58]url: /json_proto [23:45:58]query_string will be loaded in cgi processing [23:45:58]execute_cgi json_proto POST (null) [23:45:58]execute_cgi path=json_proto method=POST [23:45:58]POST find Content-Length [23:45:58]Host: 172.17.57.71:8080 [23:45:58]Content-Length: 614 [23:45:58]Content-Type: application/json [23:45:58] [23:45:58]POST finish read [23:45:58]Found Content-Length = 614 [23:45:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127578", "tax_sys" : 0, "items" : [ { "code": "48744317", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Camel Yellow", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:45:58]execute_script... [23:45:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127578", "tax_sys" : 0, "items" : [ { "code": "48744317", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Camel Yellow", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:45:58]POST & json_proto [23:45:58]process_json_proto [23:45:58]json parsed OK: [23:45:58]protocol is kg_v1.0 [23:45:58]action value=close_receipt [23:45:58]process_action close_receipt [23:45:58]cmd_close_receipt [23:45:58]MH_GetDate [23:45:58]Write to MH i2c: F0 00 00 2E 69 86 [23:45:58]Write i2c OK [23:45:58]MH_I2C_Read... [23:45:58]Read from MH i2c: F0 [23:45:58]MH_I2C_Read... [23:45:58]Read from MH i2c: F0 09 00 [23:45:58]MH_I2C_Read... [23:45:58]Read from MH i2c: F0 09 00 2E 69 00 C1 71 E7 66 33 3A A4 66 85 [23:45:58]GetLastDocTimeStamp 1726443498 [23:45:58]current date 1726443969 [23:45:58]FM_GetShiftState [23:45:58]SAM_PROTO_GetShiftState [23:45:58]wFMCommunicate request_size=4 [23:45:58]MH_SAM_APDU [23:45:58]CAPDU: 80 13 01 00 [23:45:58]Write to MH i2c: E2 08 00 2F 69 80 13 01 00 00 00 00 00 15 [23:45:58]Write i2c OK [23:45:58]MH_I2C_Read... [23:45:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:45:58]Read from MH i2c: E2 [23:45:58]MH_I2C_Read... [23:45:58]Read from MH i2c: E2 0E 00 [23:45:58]MH_I2C_Read... [23:45:58]Read from MH i2c: E2 0E 00 2F 69 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 97 [23:45:58]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [23:45:58]wFMCommunicate OK [23:45:58]SAM_PROTO_GetShiftState done [23:45:58]FM_GetShiftState done [23:45:58]opened in 1726359809 [23:45:58]opened+sec_in_day 1726446209 [23:45:58]quantity*price = 15400 [23:45:58]sum+1 = 15401 [23:45:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 154.00 НСП 1% : 1.36 НДС 12% : 16.35 Наличными: 154.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 142 15.09.2024 23:46 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92694 ФПД: 274127509615833 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T234609&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92694&fm=274127509615833&tin=02508201610067®Number=0000000000091423&sum=15400 0 [23:45:59]StoreToDocumentArchive [23:45:59]shift 507 fd 92694 [23:45:59]save to /storage/0507/doc_00092694 [23:45:59]save last doc name /storage/0507/doc_00092694 to /storage/kkm_last_doc_name [23:45:59]save OK [23:45:59]Clear old archive folders... [23:45:59]ProcessDocumentItem done err = 0, tmpTLVsize=266 [23:45:59]tlvbuf is 011273E0 [23:45:59]SAM_PROTO_ClearQueue [23:45:59]wFMCommunicate request_size=4 [23:45:59]MH_SAM_APDU [23:45:59]CAPDU: 80 09 00 00 [23:45:59]Write to MH i2c: E2 08 00 3C 69 80 09 00 00 00 00 00 00 17 [23:45:59]Write i2c OK [23:45:59]MH_I2C_Read... [23:45:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:45:59]Read from MH i2c: E2 [23:45:59]MH_I2C_Read... [23:45:59]Read from MH i2c: E2 03 00 [23:45:59]MH_I2C_Read... [23:45:59]Read from MH i2c: E2 03 00 3C 69 00 90 00 19 [23:45:59]RAPDU: 90 00 [23:45:59]wFMCommunicate OK [23:45:59]SAM_PROTO_ClearQueue done [23:45:59]KKMCreateOFDPacket [23:45:59]OFDProtocolAddRootSTLVToBuf [23:45:59]FM_MakeSignedData [23:45:59]FM_MakeSignedData [23:45:59]SAM_PROTO_SignData [23:45:59]wFMCommunicate request_size=4 [23:45:59]MH_SAM_APDU [23:45:59]CAPDU: 80 0D 01 02 [23:45:59]Write to MH i2c: E2 08 00 3D 69 80 0D 01 02 00 00 00 00 1F [23:45:59]Write i2c OK [23:45:59]MH_I2C_Read... [23:45:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:45:59]Read from MH i2c: E2 [23:45:59]MH_I2C_Read... [23:45:59]Read from MH i2c: E2 03 00 [23:45:59]MH_I2C_Read... [23:45:59]Read from MH i2c: E2 03 00 3D 69 00 90 00 1A [23:45:59]RAPDU: 90 00 [23:45:59]wFMCommunicate OK [23:45:59]wFMCommunicate request_size=255 [23:45:59]MH_SAM_APDU [23:45:59]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 C1 71 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 [23:45:59]Write to MH i2c: E2 02 01 3E 69 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 C1 71 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 00 00 5F [23:45:59]Write i2c OK [23:45:59]MH_I2C_Read... [23:46:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:00]Read from MH i2c: E2 [23:46:00]MH_I2C_Read... [23:46:00]Read from MH i2c: E2 03 00 [23:46:00]MH_I2C_Read... [23:46:00]Read from MH i2c: E2 03 00 3E 69 00 90 00 1B [23:46:00]RAPDU: 90 00 [23:46:00]wFMCommunicate OK [23:46:00]wFMCommunicate request_size=25 [23:46:00]MH_SAM_APDU [23:46:00]CAPDU: 80 0D 02 02 14 39 32 10 04 04 00 16 6A 01 00 35 04 06 00 F9 51 48 D5 74 D9 [23:46:00]Write to MH i2c: E2 1C 00 3F 69 80 0D 02 02 14 00 39 32 10 04 04 00 16 6A 01 00 35 04 06 00 F9 51 48 D5 74 D9 00 00 41 [23:46:00]Write i2c OK [23:46:00]MH_I2C_Read... [23:46:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:00]Read from MH i2c: E2 [23:46:00]MH_I2C_Read... [23:46:00]Read from MH i2c: E2 03 00 [23:46:00]MH_I2C_Read... [23:46:00]Read from MH i2c: E2 03 00 3F 69 00 90 00 1C [23:46:00]RAPDU: 90 00 [23:46:00]wFMCommunicate OK [23:46:00]wFMCommunicate request_size=4 [23:46:00]MH_SAM_APDU [23:46:00]CAPDU: 80 0D 03 02 [23:46:00]Write to MH i2c: E2 08 00 40 69 80 0D 03 02 00 00 00 00 24 [23:46:00]Write i2c OK [23:46:00]MH_I2C_Read... [23:46:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:46:00]Read from MH i2c: E2 [23:46:00]MH_I2C_Read... [23:46:00]Read from MH i2c: E2 0B 00 [23:46:00]MH_I2C_Read... [23:46:00]Read from MH i2c: E2 0B 00 40 69 00 6A 2B C2 51 B2 59 10 05 90 00 ED [23:46:00]RAPDU: 6A 2B C2 51 B2 59 10 05 90 00 [23:46:00]wFMCommunicate OK [23:46:00]SAM_PROTO_SignData done [23:46:00]FM_MakeSignedData done [23:46:00]CreateOFDProtocolMessage [23:46:00]wFMCommunicate request_size=4 [23:46:00]MH_SAM_APDU [23:46:00]CAPDU: 80 11 00 00 [23:46:00]Write to MH i2c: E2 08 00 41 69 80 11 00 00 00 00 00 00 24 [23:46:00]Write i2c OK [23:46:00]MH_I2C_Read... [23:46:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:00]Read from MH i2c: E2 [23:46:00]MH_I2C_Read... [23:46:00]Read from MH i2c: E2 17 00 [23:46:00]MH_I2C_Read... [23:46:00]Read from MH i2c: E2 17 00 41 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 7B [23:46:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:46:00]wFMCommunicate OK [23:46:00]CreateOFDProtocolMessage done [23:46:00]OFDSenderStorePacket 92694 [23:46:00]StoreOFDPacket docnum=92694 [23:46:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 1E 01 00 00 A8 04 16 01 25 CB 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 C1 71 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 16 6A 01 00 35 04 06 00 F9 51 48 D5 74 D9 6A 2B C2 51 B2 59 10 05 [23:46:00]CheckFolder [23:46:00]dirname=/storage/ofd_packets [23:46:00]CheckFolder done [23:46:00]ProducePacketName [23:46:00]name=ofd_packets/00092694 [23:46:00]NVStorageSaveData ofd_packets/00092694 [23:46:00]File name is /storage/ofd_packets/00092694 [23:46:00]Write 316 bytes [23:46:00]NVStorageSaveData done [23:46:00]OFDSenderStorePacket done [23:46:00]KKMCreateOFDPacket done [23:46:00]NVStorageSaveData kkm_last_timestamp [23:46:00]File name is /storage/kkm_last_timestamp [23:46:00]Write 4 bytes [23:46:00]NVStorageSaveData done [23:46:00]ExternCall_PrintAddStr [23:46:00]wPrintStart [23:46:00]Write to MH i2c: 01 00 00 42 69 AB [23:46:00]Write i2c OK [23:46:00]MH_I2C_Read... [23:46:00]Read from MH i2c: 01 [23:46:00]MH_I2C_Read... [23:46:00]Read from MH i2c: 01 07 00 [23:46:00]MH_I2C_Read... [23:46:00]Read from MH i2c: 01 07 00 42 69 00 00 00 00 00 FF 0F C0 [23:46:00]RasterBufferAndPrint [23:46:00]line Счет N : (3)127578 [23:46:00]line ИНН: 02508201610067 [23:46:00]line Контрольно-Кассовый Чек [23:46:00]line ПРОДАЖА [23:46:00]line Товар: 48744317 [23:46:00]line Сигареты Camel Yellow [23:46:00]line 1.000 * 154.00 [23:46:00]line = 154.00 [23:46:00]line НДС 12% НСП 1% [23:46:00]line > о реализуемом товаре [23:46:00]line ИТОГО: 154.00 [23:46:00]line НСП 1% : 1.36 [23:46:00]line НДС 12% : 16.35 [23:46:00]line Наличными: 154.00 [23:46:00]line Безнал.: 0.00 [23:46:00]line Место: АЗС № 5 "Партнер Нефть" [23:46:00]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [23:46:00]line СНО: Общий режим [23:46:00]line Чек 142 15.09.2024 23:46 [23:46:00]line Смена: 507 ФФД: 1.0 [23:46:00]line ЗНМ: 03000000022 [23:46:00]line РНМ: 0000000000091423 [23:46:00]line Версия ККМ: 001 [23:46:00]line ФМ: 0000000000874692 [23:46:00]line ФД: 92694 [23:46:00]line ФПД: 274127509615833 [23:46:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T234609&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92694&fm=274127509615833&tin=02508201610067®Number=0000000000091423&sum=15400 [23:46:00]OFD Sender: Processing packet 92694 [packets to send 63, broken 62] [23:46:00]ProducePacketName [23:46:00]name=ofd_packets/00092694 [23:46:00]OFD Sender: To server: pG, [23:46:00]CommunicateWithHost lk.salyk.kg:30040 [23:46:00]ConnectInit lk.salyk.kg [23:46:00]line 0 [23:46:00]written 0, free lines is 4095 [23:46:00]Connected sock=10 [23:46:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 1E 01 00 00 A8 04 16 01 25 CB 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 C1 71 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 16 6A 01 00 35 04 06 00 F9 51 48 D5 74 D9 6A 2B C2 51 B2 59 10 05 [23:46:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 35 A5 47 00 3F 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 16 6A 01 00 F4 03 04 00 38 1A E7 66 B6 04 01 00 00 C2 5B 3F 00 E1 10 CB 81 [23:46:00]CommunicateWithHost err = 0 [23:46:00]CheckOFDResponse [23:46:00]1017 (14) - 77093643461234 [23:46:00]1041 (16) - 0000000000874692 [23:46:00]1040 (4) - 92694 [23:46:00]1012 (4) - 15.09.2024 17:32 [23:46:00]1206 (1) - 0 [23:46:00]OFD Sender: Remove packet 92694 [23:46:00]ProducePacketName [23:46:00]name=ofd_packets/00092694 [23:46:00]NVStorageDeleteData [23:46:01]Write to MH i2c: 01 00 00 6A 69 D3 [23:46:01]Write i2c OK [23:46:01]MH_I2C_Read... [23:46:01]Read from MH i2c: 01 [23:46:01]MH_I2C_Read... [23:46:01]Read from MH i2c: 01 07 00 [23:46:01]MH_I2C_Read... [23:46:01]Read from MH i2c: 01 07 00 6A 69 00 00 00 00 00 12 0D F9 [23:46:01]RasterBufferAndPrint [23:46:01]line [23:46:01]line [23:46:01]line [23:46:01]line [23:46:01]line [23:46:01]written 0, free lines is 3354 [23:46:01]MH_Cut [23:46:01]Write to MH i2c: D1 01 00 71 69 01 AC [23:46:01]Write i2c OK [23:46:01]MH_I2C_Read... [23:46:01]Read from MH i2c: D1 [23:46:01]MH_I2C_Read... [23:46:01]Read from MH i2c: D1 01 00 [23:46:01]MH_I2C_Read... [23:46:01]Read from MH i2c: D1 01 00 71 69 00 AB [23:46:01]Write to MH i2c: 01 00 00 72 69 DB [23:46:01]Write i2c OK [23:46:01]MH_I2C_Read... [23:46:01]OFD Sender: No OFD packet to send [23:46:01]*** Cut start [23:46:01]*** Purtial cut [23:46:01]*** Stage 1: CUTSNS_PIN = 1 [23:46:03]Read from MH i2c: 01 [23:46:03]MH_I2C_Read... [23:46:03]*** Stop cut motor [23:46:03]*** Cut end [23:46:03]Read from MH i2c: 01 07 00 [23:46:03]MH_I2C_Read... [23:46:03]Read from MH i2c: 01 07 00 72 69 00 00 00 00 00 FF 0F F0 [23:46:03]process_action close_receipt done [23:46:03]requested_data is exist [23:46:03]produce_requested_data [23:46:03]requested_item fm.sn is exist - process it [23:46:03]wFMCommunicate request_size=4 [23:46:03]MH_SAM_APDU [23:46:03]CAPDU: 80 11 00 00 [23:46:03]Write to MH i2c: E2 08 00 73 69 80 11 00 00 00 00 00 00 56 [23:46:03]Write i2c OK [23:46:03]MH_I2C_Read... [23:46:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:03]Read from MH i2c: E2 [23:46:03]MH_I2C_Read... [23:46:03]Read from MH i2c: E2 17 00 [23:46:03]MH_I2C_Read... [23:46:03]Read from MH i2c: E2 17 00 73 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 AD [23:46:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:46:03]wFMCommunicate OK [23:46:03]requested_item fd.num is exist - process it [23:46:03]SAM_PROTO_GetFieldsCounters [23:46:03]wFMCommunicate request_size=4 [23:46:03]MH_SAM_APDU [23:46:03]CAPDU: 80 13 00 00 [23:46:03]Write to MH i2c: E2 08 00 74 69 80 13 00 00 00 00 00 00 59 [23:46:03]Write i2c OK [23:46:03]MH_I2C_Read... [23:46:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:46:03]Read from MH i2c: E2 [23:46:03]MH_I2C_Read... [23:46:03]Read from MH i2c: E2 62 00 [23:46:03]MH_I2C_Read... [23:46:03]Read from MH i2c: E2 62 00 74 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 16 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [23:46:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 16 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:46:03]wFMCommunicate OK [23:46:03]SAM_PROTO_GetFieldsCounters done [23:46:03]requested_item shift.num is exist - process it [23:46:03]requested_item shift.opened is exist - process it [23:46:03]req_shift_opened [23:46:03]FM_GetShiftState [23:46:03]SAM_PROTO_GetShiftState [23:46:03]wFMCommunicate request_size=4 [23:46:03]MH_SAM_APDU [23:46:03]CAPDU: 80 13 01 00 [23:46:03]Write to MH i2c: E2 08 00 75 69 80 13 01 00 00 00 00 00 5B [23:46:03]Write i2c OK [23:46:03]MH_I2C_Read... [23:46:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:03]Read from MH i2c: E2 [23:46:03]MH_I2C_Read... [23:46:03]Read from MH i2c: E2 0E 00 [23:46:03]MH_I2C_Read... [23:46:03]Read from MH i2c: E2 0E 00 75 69 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 DD [23:46:03]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [23:46:03]wFMCommunicate OK [23:46:03]SAM_PROTO_GetShiftState done [23:46:03]FM_GetShiftState done [23:46:03]req_shift_opened done [23:46:03]requested_item shift.open_date is exist - process it [23:46:03]req_shift_open_date [23:46:03]req_shift_open_date done [23:46:03]produce_requested_data done [23:46:03]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92694,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [23:46:03]process_action_free close_receipt [23:46:03]json_value_free [23:46:03]json_value_free done [23:46:03]process_json_proto returns [23:46:03]Send response to host [23:46:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92694,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [23:46:03]free response buf [23:46:03]execute_script done [23:46:03]execute_script returns [23:46:03]free content buf [23:46:03]Sock 8.Close socket [23:46:03]Sock 8.Thread stoped [23:46:06]OFD Sender: No OFD packet to send [23:46:11]OFD Sender: No OFD packet to send [23:46:16]OFD Sender: No OFD packet to send [23:46:21]OFD Sender: No OFD packet to send [23:46:26]OFD Sender: No OFD packet to send [23:46:31]OFD Sender: No OFD packet to send [23:46:36]OFD Sender: No OFD packet to send [23:46:41]OFD Sender: No OFD packet to send [23:46:46]OFD Sender: No OFD packet to send [23:46:51]OFD Sender: No OFD packet to send [23:46:56]OFD Sender: No OFD packet to send [23:47:01]OFD Sender: No OFD packet to send [23:47:06]OFD Sender: No OFD packet to send [23:47:11]OFD Sender: No OFD packet to send [23:47:16]OFD Sender: No OFD packet to send [23:47:21]OFD Sender: No OFD packet to send [23:47:26]OFD Sender: No OFD packet to send [23:47:31]OFD Sender: No OFD packet to send [23:47:36]OFD Sender: No OFD packet to send [23:47:41]OFD Sender: No OFD packet to send [23:47:46]OFD Sender: No OFD packet to send [23:47:51]OFD Sender: No OFD packet to send [23:47:56]OFD Sender: No OFD packet to send [23:48:01]OFD Sender: No OFD packet to send [23:48:06]OFD Sender: No OFD packet to send [23:48:11]OFD Sender: No OFD packet to send [23:48:16]OFD Sender: No OFD packet to send [23:48:21]OFD Sender: No OFD packet to send [23:48:26]OFD Sender: No OFD packet to send [23:48:31]OFD Sender: No OFD packet to send [23:48:36]OFD Sender: No OFD packet to send [23:48:41]OFD Sender: No OFD packet to send [23:48:46]OFD Sender: No OFD packet to send [23:48:51]OFD Sender: No OFD packet to send [23:48:56]OFD Sender: No OFD packet to send [23:49:01]OFD Sender: No OFD packet to send [23:49:06]OFD Sender: No OFD packet to send [23:49:11]OFD Sender: No OFD packet to send [23:49:16]OFD Sender: No OFD packet to send [23:49:21]OFD Sender: No OFD packet to send [23:49:26]OFD Sender: No OFD packet to send [23:49:31]OFD Sender: No OFD packet to send [23:49:36]OFD Sender: No OFD packet to send [23:49:41]OFD Sender: No OFD packet to send [23:49:46]OFD Sender: No OFD packet to send [23:49:51]OFD Sender: No OFD packet to send [23:49:56]OFD Sender: No OFD packet to send [23:50:01]OFD Sender: No OFD packet to send [23:50:06]OFD Sender: No OFD packet to send [23:50:11]OFD Sender: No OFD packet to send [23:50:16]OFD Sender: No OFD packet to send [23:50:21]OFD Sender: No OFD packet to send [23:50:26]OFD Sender: No OFD packet to send [23:50:31]OFD Sender: No OFD packet to send [23:50:36]OFD Sender: No OFD packet to send [23:50:41]OFD Sender: No OFD packet to send [23:50:46]OFD Sender: No OFD packet to send [23:50:51]OFD Sender: No OFD packet to send [23:50:56]OFD Sender: No OFD packet to send [23:51:01]OFD Sender: No OFD packet to send [23:51:06]OFD Sender: No OFD packet to send [23:51:11]OFD Sender: No OFD packet to send [23:51:16]OFD Sender: No OFD packet to send [23:51:21]OFD Sender: No OFD packet to send [23:51:26]OFD Sender: No OFD packet to send [23:51:31]OFD Sender: No OFD packet to send [23:51:36]OFD Sender: No OFD packet to send [23:51:41]OFD Sender: No OFD packet to send [23:51:46]OFD Sender: No OFD packet to send [23:51:51]OFD Sender: No OFD packet to send [23:51:56]OFD Sender: No OFD packet to send [23:52:01]OFD Sender: No OFD packet to send [23:52:06]OFD Sender: No OFD packet to send [23:52:11]OFD Sender: No OFD packet to send [23:52:16]OFD Sender: No OFD packet to send [23:52:21]OFD Sender: No OFD packet to send [23:52:26]OFD Sender: No OFD packet to send [23:52:31]OFD Sender: No OFD packet to send [23:52:36]OFD Sender: No OFD packet to send [23:52:41]OFD Sender: No OFD packet to send [23:52:46]OFD Sender: No OFD packet to send [23:52:51]OFD Sender: No OFD packet to send [23:52:56]OFD Sender: No OFD packet to send [23:53:01]OFD Sender: No OFD packet to send [23:53:06]OFD Sender: No OFD packet to send [23:53:11]OFD Sender: No OFD packet to send [23:53:16]OFD Sender: No OFD packet to send [23:53:21]OFD Sender: No OFD packet to send [23:53:26]OFD Sender: No OFD packet to send [23:53:31]OFD Sender: No OFD packet to send [23:53:36]OFD Sender: No OFD packet to send [23:53:41]OFD Sender: No OFD packet to send [23:53:46]OFD Sender: No OFD packet to send [23:53:51]OFD Sender: No OFD packet to send [23:53:56]OFD Sender: No OFD packet to send [23:54:01]OFD Sender: No OFD packet to send [23:54:06]OFD Sender: No OFD packet to send [23:54:11]OFD Sender: No OFD packet to send [23:54:16]OFD Sender: No OFD packet to send [23:54:21]OFD Sender: No OFD packet to send [23:54:26]OFD Sender: No OFD packet to send [23:54:31]OFD Sender: No OFD packet to send [23:54:36]OFD Sender: No OFD packet to send [23:54:41]OFD Sender: No OFD packet to send [23:54:46]OFD Sender: No OFD packet to send [23:54:51]OFD Sender: No OFD packet to send [23:54:56]OFD Sender: No OFD packet to send [23:55:01]OFD Sender: No OFD packet to send [23:55:06]OFD Sender: No OFD packet to send [23:55:11]OFD Sender: No OFD packet to send [23:55:16]OFD Sender: No OFD packet to send [23:55:21]OFD Sender: No OFD packet to send [23:55:26]OFD Sender: No OFD packet to send [23:55:31]OFD Sender: No OFD packet to send [23:55:36]OFD Sender: No OFD packet to send [23:55:41]OFD Sender: No OFD packet to send [23:55:47]OFD Sender: No OFD packet to send [23:55:52]OFD Sender: No OFD packet to send [23:55:57]OFD Sender: No OFD packet to send [23:56:02]OFD Sender: No OFD packet to send [23:56:07]OFD Sender: No OFD packet to send [23:56:12]OFD Sender: No OFD packet to send [23:56:17]OFD Sender: No OFD packet to send [23:56:22]OFD Sender: No OFD packet to send [23:56:27]OFD Sender: No OFD packet to send [23:56:32]OFD Sender: No OFD packet to send [23:56:37]OFD Sender: No OFD packet to send [23:56:42]OFD Sender: No OFD packet to send [23:56:47]OFD Sender: No OFD packet to send [23:56:52]OFD Sender: No OFD packet to send [23:56:57]OFD Sender: No OFD packet to send [23:57:02]OFD Sender: No OFD packet to send [23:57:07]OFD Sender: No OFD packet to send [23:57:12]OFD Sender: No OFD packet to send [23:57:17]OFD Sender: No OFD packet to send [23:57:22]OFD Sender: No OFD packet to send [23:57:27]OFD Sender: No OFD packet to send [23:57:32]OFD Sender: No OFD packet to send [23:57:37]OFD Sender: No OFD packet to send [23:57:42]OFD Sender: No OFD packet to send [23:57:47]OFD Sender: No OFD packet to send [23:57:52]OFD Sender: No OFD packet to send [23:57:57]OFD Sender: No OFD packet to send [23:58:02]OFD Sender: No OFD packet to send [23:58:07]OFD Sender: No OFD packet to send [23:58:12]OFD Sender: No OFD packet to send [23:58:17]OFD Sender: No OFD packet to send [23:58:22]OFD Sender: No OFD packet to send [23:58:27]OFD Sender: No OFD packet to send [23:58:32]OFD Sender: No OFD packet to send [23:58:37]OFD Sender: No OFD packet to send [23:58:42]OFD Sender: No OFD packet to send [23:58:47]OFD Sender: No OFD packet to send [23:58:52]OFD Sender: No OFD packet to send [23:58:57]OFD Sender: No OFD packet to send [23:59:02]OFD Sender: No OFD packet to send [23:59:07]OFD Sender: No OFD packet to send [23:59:12]OFD Sender: No OFD packet to send [23:59:17]OFD Sender: No OFD packet to send [23:59:22]OFD Sender: No OFD packet to send [23:59:27]OFD Sender: No OFD packet to send [23:59:32]OFD Sender: No OFD packet to send [23:59:37]OFD Sender: No OFD packet to send [23:59:42]OFD Sender: No OFD packet to send [23:59:47]OFD Sender: No OFD packet to send [23:59:52]OFD Sender: No OFD packet to send [23:59:57]OFD Sender: No OFD packet to send [00:00:02]OFD Sender: No OFD packet to send [00:00:07]OFD Sender: No OFD packet to send [00:00:12]OFD Sender: No OFD packet to send [00:00:17]OFD Sender: No OFD packet to send [00:00:22]OFD Sender: No OFD packet to send [00:00:27]OFD Sender: No OFD packet to send [00:00:32]OFD Sender: No OFD packet to send [00:00:37]OFD Sender: No OFD packet to send [00:00:42]OFD Sender: No OFD packet to send [00:00:47]OFD Sender: No OFD packet to send [00:00:52]OFD Sender: No OFD packet to send [00:00:57]OFD Sender: No OFD packet to send [00:01:02]OFD Sender: No OFD packet to send [00:01:07]OFD Sender: No OFD packet to send [00:01:12]OFD Sender: No OFD packet to send [00:01:17]OFD Sender: No OFD packet to send [00:01:22]OFD Sender: No OFD packet to send [00:01:27]OFD Sender: No OFD packet to send [00:01:32]OFD Sender: No OFD packet to send [00:01:37]OFD Sender: No OFD packet to send [00:01:42]OFD Sender: No OFD packet to send [00:01:42]int [00:01:42]Write to MH i2c: 01 00 00 76 69 DF [00:01:42]*** FLAG_PRN_PAP1 set [00:01:42]Write i2c OK [00:01:42]MH_I2C_Read... [00:01:42]Read from MH i2c: 01 [00:01:42]MH_I2C_Read... [00:01:42]Read from MH i2c: 01 07 00 [00:01:42]MH_I2C_Read... [00:01:42]Read from MH i2c: 01 07 00 76 69 00 01 00 00 00 FF 0F F5 [00:01:42]state=0 [00:01:42]No paper [00:01:42]int [00:01:42]Write to MH i2c: 01 00 00 77 69 E0 [00:01:42]*** FLAG_PRN_PAP2 set [00:01:42]Write i2c OK [00:01:42]MH_I2C_Read... [00:01:42]Read from MH i2c: 01 [00:01:42]MH_I2C_Read... [00:01:42]Read from MH i2c: 01 07 00 [00:01:42]MH_I2C_Read... [00:01:42]Read from MH i2c: 01 07 00 77 69 00 03 00 00 00 FF 0F F8 [00:01:42]state=0 [00:01:42]No paper [00:01:42]Cover opened [00:01:47]OFD Sender: No OFD packet to send [00:01:47]Write to MH i2c: 01 00 00 78 69 E1 [00:01:47]Write i2c OK [00:01:47]MH_I2C_Read... [00:01:47]Read from MH i2c: 01 [00:01:47]MH_I2C_Read... [00:01:47]Read from MH i2c: 01 07 00 [00:01:47]MH_I2C_Read... [00:01:47]Read from MH i2c: 01 07 00 78 69 00 03 00 00 00 FF 0F F9 [00:01:47]state=3 [00:01:47]No paper [00:01:47]Cover opened [00:01:48]int [00:01:48]Write to MH i2c: 01 00 00 79 69 E2 [00:01:48]Write i2c OK [00:01:48]MH_I2C_Read... [00:01:48]Read from MH i2c: 01 [00:01:48]MH_I2C_Read... [00:01:48]Read from MH i2c: 01 07 00 [00:01:48]MH_I2C_Read... [00:01:48]*** FLAG_PRN_PAP2 reset [00:01:48]*** FLAG_PRN_PAP1 reset [00:01:48]Read from MH i2c: 01 07 00 79 69 00 00 00 00 00 FF 0F F7 [00:01:48]state=3 [00:01:48]Cover closed [00:01:49]int [00:01:49]Write to MH i2c: 01 00 00 7A 69 E3 [00:01:49]*** FLAG_PRN_PAP1 set [00:01:49]Write i2c OK [00:01:49]MH_I2C_Read... [00:01:49]Read from MH i2c: 01 [00:01:49]MH_I2C_Read... [00:01:49]Read from MH i2c: 01 07 00 [00:01:49]MH_I2C_Read... [00:01:49]Read from MH i2c: 01 07 00 7A 69 00 01 00 00 00 FF 0F F9 [00:01:49]state=0 [00:01:49]No paper [00:01:49]int [00:01:49]Write to MH i2c: 01 00 00 7B 69 E4 [00:01:49]*** FLAG_PRN_PAP2 set [00:01:49]Write i2c OK [00:01:49]MH_I2C_Read... [00:01:49]Read from MH i2c: 01 [00:01:49]MH_I2C_Read... [00:01:49]Read from MH i2c: 01 07 00 [00:01:49]MH_I2C_Read... [00:01:49]Read from MH i2c: 01 07 00 7B 69 00 03 00 00 00 FF 0F FC [00:01:49]state=0 [00:01:49]No paper [00:01:49]Cover opened [00:01:50]int [00:01:50]Write to MH i2c: 01 00 00 7C 69 E5 [00:01:50]*** FLAG_PRN_PAP2 reset [00:01:50]Write i2c OK [00:01:50]MH_I2C_Read... [00:01:50]Read from MH i2c: 01 [00:01:50]MH_I2C_Read... [00:01:50]Read from MH i2c: 01 07 00 [00:01:50]MH_I2C_Read... [00:01:50]Read from MH i2c: 01 07 00 7C 69 00 01 00 00 00 FF 0F FB [00:01:50]state=3 [00:01:50]No paper [00:01:50]Cover closed [00:01:50]int [00:01:50]Write to MH i2c: 01 00 00 7D 69 E6 [00:01:50]*** FLAG_PRN_PAP1 reset [00:01:50]Write i2c OK [00:01:50]MH_I2C_Read... [00:01:50]Read from MH i2c: 01 [00:01:50]MH_I2C_Read... [00:01:50]Read from MH i2c: 01 07 00 [00:01:50]MH_I2C_Read... [00:01:50]Read from MH i2c: 01 07 00 7D 69 00 00 00 00 00 FF 0F FB [00:01:50]state=0 [00:01:51]int [00:01:51]Write to MH i2c: 01 00 00 7E 69 E7 [00:01:51]*** FLAG_PRN_PAP1 set [00:01:51]Write i2c OK [00:01:51]MH_I2C_Read... [00:01:51]Read from MH i2c: 01 [00:01:51]MH_I2C_Read... [00:01:51]Read from MH i2c: 01 07 00 [00:01:51]MH_I2C_Read... [00:01:51]Read from MH i2c: 01 07 00 7E 69 00 01 00 00 00 FF 0F FD [00:01:51]state=0 [00:01:51]No paper [00:01:51]int [00:01:51]Write to MH i2c: 01 00 00 7F 69 E8 [00:01:51]*** FLAG_PRN_PAP2 set [00:01:51]Write i2c OK [00:01:51]MH_I2C_Read... [00:01:51]Read from MH i2c: 01 [00:01:51]MH_I2C_Read... [00:01:51]Read from MH i2c: 01 07 00 [00:01:51]MH_I2C_Read... [00:01:51]Read from MH i2c: 01 07 00 7F 69 00 03 00 00 00 FF 0F 00 [00:01:51]state=0 [00:01:51]No paper [00:01:51]Cover opened [00:00:10]/dev/ttyS4 opened [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 FF FF C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 2F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 FF FF B9 [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 02 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 02 00 00 00 00 00 00 FF 0F 17 [00:00:10]Model is 3 [00:00:10]MH firmware is 65535 [00:00:10]MH boot firmware is 65535 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 03 00 41 00 60 00 FF FF 7D [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 03 00 00 D9 [00:00:10]Write to MH i2c: D5 00 00 04 00 D8 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 04 00 00 D9 [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 05 00 F4 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 05 00 00 8A 75 E7 66 33 3A A4 66 C0 [00:02:18]Current date/time: 16.09.2024 00:02 [00:02:18]FM_Init [00:02:18]wFMConnect [00:02:18]MH_SAM_On [00:02:18]Write to MH i2c: E0 00 00 06 00 E5 [00:02:18]Write i2c OK [00:02:18]MH_I2C_Read... [00:02:18]*** iso7816_init finished! [00:02:18]*** atr: [00:02:18]*** 0F 3B D5 18 FF 81 91 FE [00:02:18]*** 1F C3 80 73 C8 21 10 0A [00:02:18]*** 00 00 00 00 00 00 00 00 [00:02:18]*** 00 00 00 00 00 00 00 00 [00:02:18]*** 00 00 00 00 00 00 00 00 [00:02:18]*** 00 00 00 00 00 00 00 00 [00:02:18]*** 00 00 00 00 00 00 00 00 [00:02:18]*** 00 00 00 00 00 00 00 00 [00:02:18]Read from MH i2c: E0 [00:02:18]MH_I2C_Read... [00:02:18]Read from MH i2c: E0 10 00 [00:02:18]MH_I2C_Read... [00:02:18]Read from MH i2c: E0 10 00 06 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 04 [00:02:18]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [00:02:18]wFMCommunicate request_size=10 [00:02:18]MH_SAM_APDU [00:02:18]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [00:02:18]Write to MH i2c: E2 0D 00 07 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B1 [00:02:18]Write i2c OK [00:02:18]MH_I2C_Read... [00:02:18]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [00:02:18]Read from MH i2c: E2 [00:02:18]MH_I2C_Read... [00:02:18]Read from MH i2c: E2 03 00 [00:02:18]MH_I2C_Read... [00:02:18]Read from MH i2c: E2 03 00 07 00 00 90 00 7B [00:02:18]RAPDU: 90 00 [00:02:18]wFMCommunicate OK [00:02:18]wFMCommunicate request_size=4 [00:02:18]MH_SAM_APDU [00:02:18]CAPDU: 80 11 00 00 [00:02:18]Write to MH i2c: E2 08 00 08 00 80 11 00 00 00 00 00 00 82 [00:02:18]Write i2c OK [00:02:18]MH_I2C_Read... [00:02:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:18]Read from MH i2c: E2 [00:02:18]MH_I2C_Read... [00:02:18]Read from MH i2c: E2 17 00 [00:02:18]MH_I2C_Read... [00:02:18]Read from MH i2c: E2 17 00 08 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D9 [00:02:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:02:18]wFMCommunicate OK [00:02:18]Detected FM SN is 0000000000874692 [00:02:18]Stored FM SN is 0000000000874692 [00:02:18]wFMCommunicate request_size=9 [00:02:18]MH_SAM_APDU [00:02:18]CAPDU: 80 16 00 00 04 76 6E 01 00 [00:02:18]Write to MH i2c: E2 0C 00 09 00 80 16 00 00 04 00 76 6E 01 00 00 00 75 [00:02:18]Write i2c OK [00:02:18]MH_I2C_Read... [00:02:18]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [00:02:18]Read from MH i2c: E2 [00:02:18]MH_I2C_Read... [00:02:18]Read from MH i2c: E2 03 00 [00:02:18]MH_I2C_Read... [00:02:18]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [00:02:18]RAPDU: 90 00 [00:02:18]wFMCommunicate OK [00:02:18]FM PIN OK [00:02:18]wFMCommunicate request_size=8 [00:02:18]MH_SAM_APDU [00:02:18]CAPDU: 80 14 04 00 03 02 00 01 [00:02:18]Write to MH i2c: E2 0B 00 0A 00 80 14 04 00 03 00 02 00 01 00 00 94 [00:02:18]Write i2c OK [00:02:18]MH_I2C_Read... [00:02:18]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [00:02:18]Read from MH i2c: E2 [00:02:18]MH_I2C_Read... [00:02:18]Read from MH i2c: E2 03 00 [00:02:18]MH_I2C_Read... [00:02:18]Read from MH i2c: E2 03 00 0A 00 00 90 00 7E [00:02:18]RAPDU: 90 00 [00:02:18]wFMCommunicate OK [00:02:18]wFMCommunicate request_size=13 [00:02:18]MH_SAM_APDU [00:02:18]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [00:02:18]Write to MH i2c: E2 10 00 0B 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 B9 [00:02:18]Write i2c OK [00:02:18]MH_I2C_Read... [00:02:18]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [00:02:18]Read from MH i2c: E2 [00:02:18]MH_I2C_Read... [00:02:18]Read from MH i2c: E2 03 00 [00:02:18]MH_I2C_Read... [00:02:18]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [00:02:18]RAPDU: 90 00 [00:02:18]wFMCommunicate OK [00:02:18]wFMCommunicate request_size=4 [00:02:18]MH_SAM_APDU [00:02:18]CAPDU: 80 11 00 00 [00:02:18]Write to MH i2c: E2 08 00 0C 00 80 11 00 00 00 00 00 00 86 [00:02:18]Write i2c OK [00:02:18]MH_I2C_Read... [00:02:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:18]Read from MH i2c: E2 [00:02:18]MH_I2C_Read... [00:02:18]Read from MH i2c: E2 17 00 [00:02:18]MH_I2C_Read... [00:02:18]Read from MH i2c: E2 17 00 0C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 DD [00:02:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:02:18]wFMCommunicate OK [00:02:18]DocumentArchiveInit [00:02:18]Start Httpd... [00:02:18]Httpd thread 3067039076 created [00:02:18]Write to MH i2c: 01 00 00 0D 00 0D [00:02:18]Write i2c OK [00:02:18]MH_I2C_Read... [00:02:18]Read from MH i2c: 01 [00:02:18]MH_I2C_Read... [00:02:18]Read from MH i2c: 01 07 00 [00:02:18]MH_I2C_Read... [00:02:18]Read from MH i2c: 01 07 00 0D 00 00 00 00 00 00 FF 0F 22 [00:02:18]Allocated Socket 5 [00:02:18]Bind OK [00:02:18]Listen OK [00:02:18]httpd running on port 8080 [00:02:18]Waiting for new connection... [00:02:18]MH Int Process started [00:02:18]OFD Sender: No OFD packet to send [00:02:23]OFD Sender: No OFD packet to send [00:02:28]OFD Sender: No OFD packet to send [00:02:33]OFD Sender: No OFD packet to send [00:02:38]OFD Sender: No OFD packet to send [00:02:43]OFD Sender: No OFD packet to send [00:02:48]OFD Sender: No OFD packet to send [00:02:51]accept exits with 6 [00:02:51]New connection [00:02:51]New thread 3066752356 created [00:02:51]Waiting for new connection... [00:02:51] Sock 6.Parse request [00:02:51]Sock 6.Check first char [00:02:51]Sock 6.First char is OK [00:02:51]request: POST /json_proto HTTP/1.0 [00:02:51]Method: POST [00:02:51]URL: /json_proto [00:02:51]Method is POST - this is cgi request [00:02:51]url: /json_proto [00:02:51]query_string will be loaded in cgi processing [00:02:51]execute_cgi json_proto POST (null) [00:02:51]execute_cgi path=json_proto method=POST [00:02:51]POST find Content-Length [00:02:51]Host: 172.17.57.71:8080 [00:02:51]Content-Length: 9859 [00:02:51]Content-Type: application/json [00:02:51] [00:02:51]POST finish read [00:02:51]Found Content-Length = 9859 [00:02:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127579", "tax_sys" : 0, "items" : [ { "code": "6975767540561", "name": "FIBIE COSMOPOLITAN 4000 \u044D\u043B.\u0441\u0438\u0433\u0430\u0440\u0435\u0442\u044B", "price" : 1200.00, "quantity" : 2.000, "sum" : 2400.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5904917030585", "name": "\u0401\u0440\u0446\u0445 ICE CREAM MACHINE Johny Bee", "price" : 235.00, "quantity" : 1.000, "sum" : 235.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744539", "name": "LD Compact Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6000911553446", "name": "\u0410\u0432\u0442\u043E\u043C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u0437\u0430\u0440\u044F\u0434\u043D\u043E\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E CAR CH", "price" : 300.00, "quantity" : 2.000, "sum" : 600.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681079", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u043B\u0430\u0434\u043A\u0438\u0439 \u0447\u0438\u043B\u0438 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4008321799555", "name": "\u0410/\u043B NEOLUX N380 5W 12V", "price" : 195.00, "quantity" : 1.000, "sum" : 195.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "745240075929", "name": "\u0410\u0432\u0442\u043E\u043F\u0430\u0440\u0444\u044E\u043C 3 L`EAU PAR", "price" : 300.00, "quantity" : 1.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "745240075967", "name": "\u0410\u0432\u0442\u043E\u043F\u0430\u0440\u0444\u044E\u043C 7 AQUA", "price" : 300.00, "quantity" : 1.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "745240075981", "name": "\u0410\u0432\u0442\u043E\u043F\u0430\u0440\u0444\u044E\u043C 9 LA COSTA", "price" : 300.00, "quantity" : 1.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209743604", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 BIG BOB \u0421\u044B\u0440 \u0438 \u0442\u0440\u0430\u0432\u044B 50 \u0433\u0440", "price" : 60.00, "quantity" : 3.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400976", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 90 ", "price" : 75.00, "quantity" : 7.000, "sum" : 525.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5906534012500", "name": "\u0410\u0440\u043E\u043C\u0430\u0442\u0438\u0437\u0430\u0442\u043E\u0440 K2 Vento Rainforest", "price" : 245.00, "quantity" : 1.000, "sum" : 245.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600080322137", "name": "\u0412\u0430\u0444 \u041A\u043E\u0440\u043E\u0432\u043A\u0430 \u0441 \u0448\u043E\u043A \u043D\u0430\u0447\u0438\u043D\u043A\u043E\u0439 150\u0433", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600080322106", "name": "\u0412\u0430\u0444 \u041A\u043E\u0440\u043E\u0432\u043A\u0430 \u0442\u043E\u043F\u043B\u0451\u043D\u043E\u0435 \u043C\u043E\u043B\u043E\u043A\u043E 150\u0433", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660013331551", "name": "\u0412\u0430\u0444 \u0441\u0442 \u0435\u0436\u0435\u0432\u0438\u043A\u0430 \u0447\u0435\u0440\u043D\u0438\u043A\u0430", "pr 08 00 08 00 80 11 00 00 00 00 00 00 82 [00:02:18]Write i2c OK [00:02:18]MH_I2C_Read... [00:02:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:18]Read from MH i2c: E2 [00:02:18]MH_I2C_Read... [00:02:18]Read from MH i2c: E2 17 00 [00:02:18]MH_I2C_Read... [00:02:18]Read from MH i2c: E2 17 00 08 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D9 [00:02:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:02:18]wFMCommunicate OK [00:02:18]Detected FM SN is 0000000000874692 [00:02:18]Stored FM SN is 0000000000874692 [00:02:18]wFMCommunicate request_size=9 [00:02:18]MH_SAM_APDU [00:02:18]CAPDU: 80 16 00 00 04 76 6E 01 00 [00:02:18]Write to MH i2c: E2 0C 00 0execute_script... [00:02:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127579", "tax_sys" : 0, "items" : [ { "code": "6975767540561", "name": "FIBIE COSMOPOLITAN 4000 \u044D\u043B.\u0441\u0438\u0433\u0430\u0440\u0435\u0442\u044B", "price" : 1200.00, "quantity" : 2.000, "sum" : 2400.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5904917030585", "name": "\u0401\u0440\u0446\u0445 ICE CREAM MACHINE Johny Bee", "price" : 235.00, "quantity" : 1.000, "sum" : 235.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744539", "name": "LD Compact Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6000911553446", "name": "\u0410\u0432\u0442\u043E\u043C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u0437\u0430\u0440\u044F\u0434\u043D\u043E\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E CAR CH", "price" : 300.00, "quantity" : 2.000, "sum" : 600.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681079", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u043B\u0430\u0434\u043A\u0438\u0439 \u0447\u0438\u043B\u0438 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4008321799555", "name": "\u0410/\u043B NEOLUX N380 5W 12V", "price" : 195.00, "quantity" : 1.000, "sum" : 195.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "745240075929", "name": "\u0410\u0432\u0442\u043E\u043F\u0430\u0440\u0444\u044E\u043C 3 L`EAU PAR", "price" : 300.00, "quantity" : 1.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "745240075967", "name": "\u0410\u0432\u0442\u043E\u043F\u0430\u0440\u0444\u044E\u043C 7 AQUA", "price" : 300.00, "quantity" : 1.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "745240075981", "name": "\u0410\u0432\u0442\u043E\u043F\u0430\u0440\u0444\u044E\u043C 9 LA COSTA", "price" : 300.00, "quantity" : 1.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209743604", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 BIG BOB \u0421\u044B\u0440 \u0438 \u0442\u0440\u0430\u0432\u044B 50 \u0433\u0440", "price" : 60.00, "quantity" : 3.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400976", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 90 ", "price" : 75.00, "quantity" : 7.000, "sum" : 525.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5906534012500", "name": "\u0410\u0440\u043E\u043C\u0430\u0442\u0438\u0437\u0430\u0442\u043E\u0440 K2 Vento Rainforest", "price" : 245.00, "quantity" : 1.000, "sum" : 245.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600080322137", "name": "\u0412\u0430\u0444 \u041A\u043E\u0440\u043E\u0432\u043A\u0430 \u0441 \u0448\u043E\u043A \u043D\u0430\u0447\u0438\u043D\u043A\u043E\u0439 150\u0433", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600080322106", "name": "\u0412\u0430\u0444 \u041A\u043E\u0440\u043E\u0432\u043A\u0430 \u0442\u043E\u043F\u043B\u0451\u043D\u043E\u0435 \u043C\u043E\u043B\u043E\u043A\u043E 150\u0433", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660013331551", "name": "\u0412\u0430\u0444 \u0441\u0442 \u0435\u0436\u0435\u0432\u0438\u043A\u0430 \u0447\u0435\u0440\u043D\u0438\u043A\u0430", "pr 08 00 08 00 80 11 00 00 00 00 00 00 82 [00:02:18]Write i2c OK [00:02:18]MH_I2C_Read... [00:02:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:18]Read from MH i2c: E2 [00:02:18]MH_I2C_Read... [00:02:18]Read from MH i2c: E2 17 00 [00:02:18]MH_I2C_Read... [00:02:18]Read from MH i2c: E2 17 00 08 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D9 [00:02:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:02:18]wFMCommunicate OK [00:02:18]Detected FM SN is 0000000000874692 [00:02:18]Stored FM SN is 0000000000874692 [00:02:18]wFMCommunicate request_size=9 [00:02:18]MH_SAM_APDU [00:02:18]CAPDU: 80 16 00 00 04 76 6E POST & json_proto [00:02:52]process_json_proto [00:02:52]json parse error [00:02:52]process_json_proto returns [00:02:52]execute_script returns [00:02:52]free content buf [00:02:52]Sock 6.Close socket [00:02:52]Sock 6.Thread stoped [00:02:53]accept exits with 9 [00:02:53]New connection [00:02:53]New thread 3066608996 created [00:02:53]Thread 3066752356 joined [00:02:53]Waiting for new connection... [00:02:53] Sock 9.Parse request [00:02:53]Sock 9.Check first char [00:02:53]Sock 9.First char is OK [00:02:53]request: POST /json_proto HTTP/1.0 [00:02:53]Method: POST [00:02:53]URL: /json_proto [00:02:53]Method is POST - this is cgi request [00:02:53]url: /json_proto [00:02:53]query_string will be loaded in cgi processing [00:02:53]execute_cgi json_proto POST (null) [00:02:53]execute_cgi path=json_proto method=POST [00:02:53]POST find Content-Length [00:02:53]Host: 172.17.57.71:8080 [00:02:53]Content-Length: 215 [00:02:53]Content-Type: application/json [00:02:53] [00:02:53]POST finish read [00:02:53]Found Content-Length = 215 [00:02:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:02:53]execute_script... [00:02:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:02:53]POST & json_proto [00:02:53]process_json_proto [00:02:53]json parsed OK: [00:02:53]protocol is kg_v1.0 [00:02:53]action value=get_value [00:02:53]process_action get_value [00:02:53]cmd_get_value [00:02:53]process_action get_value done [00:02:53]requested_data is exist [00:02:53]produce_requested_data [00:02:53]requested_item kkm.sn is exist - process it [00:02:53]requested_item kkm.ver is exist - process it [00:02:53]requested_item fm.sn is exist - process it [00:02:53]wFMCommunicate request_size=4 [00:02:53]MH_SAM_APDU [00:02:53]CAPDU: 80 11 00 00 [00:02:53]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [00:02:53]Write i2c OK [00:02:53]MH_I2C_Read... [00:02:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:53]Read from MH i2c: E2 [00:02:53]MH_I2C_Read... [00:02:53]Read from MH i2c: E2 17 00 [00:02:53]MH_I2C_Read... [00:02:53]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 DF [00:02:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:02:53]wFMCommunicate OK [00:02:53]requested_item fd.num is exist - process it [00:02:53]SAM_PROTO_GetFieldsCounters [00:02:53]wFMCommunicate request_size=4 [00:02:53]MH_SAM_APDU [00:02:53]CAPDU: 80 13 00 00 [00:02:53]Write to MH i2c: E2 08 00 0F 00 80 13 00 00 00 00 00 00 8B [00:02:53]Write i2c OK [00:02:53]MH_I2C_Read... [00:02:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:02:53]Read from MH i2c: E2 [00:02:53]MH_I2C_Read... [00:02:53]Read from MH i2c: E2 62 00 [00:02:53]MH_I2C_Read... [00:02:53]Read from MH i2c: E2 62 00 0F 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 16 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [00:02:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 16 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:02:53]wFMCommunicate OK [00:02:53]SAM_PROTO_GetFieldsCounters done [00:02:53]requested_item shift.num is exist - process it [00:02:53]requested_item shift.opened is exist - process it [00:02:53]req_shift_opened [00:02:53]FM_GetShiftState [00:02:53]SAM_PROTO_GetShiftState [00:02:53]wFMCommunicate request_size=4 [00:02:53]MH_SAM_APDU [00:02:53]CAPDU: 80 13 01 00 [00:02:53]Write to MH i2c: E2 08 00 10 00 80 13 01 00 00 00 00 00 8D [00:02:53]Write i2c OK [00:02:53]MH_I2C_Read... [00:02:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:53]Read from MH i2c: E2 [00:02:53]MH_I2C_Read... [00:02:53]Read from MH i2c: E2 0E 00 [00:02:53]MH_I2C_Read... [00:02:53]Read from MH i2c: E2 0E 00 10 00 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 0F [00:02:53]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [00:02:53]wFMCommunicate OK [00:02:53]SAM_PROTO_GetShiftState done [00:02:53]FM_GetShiftState done [00:02:53]req_shift_opened done [00:02:53]requested_item shift.open_date is exist - process it [00:02:53]req_shift_open_date [00:02:53]req_shift_open_date done [00:02:53]produce_requested_data done [00:02:53]produce_requested_data return {"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92694,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [00:02:53]process_action_free get_value [00:02:53]json_value_free [00:02:53]json_value_free done [00:02:53]process_json_proto returns [00:02:53]Send response to host [00:02:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92694,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [00:02:53]free response buf [00:02:53]execute_script done [00:02:53]execute_script returns [00:02:53]free content buf [00:02:53]Sock 9.Close socket [00:02:53]Sock 9.Thread stoped [00:02:53]accept exits with 6 [00:02:53]New connection [00:02:53]New thread 3066752356 created [00:02:53]Thread 3066608996 joined [00:02:53]Waiting for new connection... [00:02:53] Sock 6.Parse request [00:02:53]Sock 6.Check first char [00:02:53]Sock 6.First char is OK [00:02:53]request: POST /json_proto HTTP/1.0 [00:02:53]Method: POST [00:02:53]URL: /json_proto [00:02:53]Method is POST - this is cgi request [00:02:53]url: /json_proto [00:02:53]query_string will be loaded in cgi processing [00:02:53]execute_cgi json_proto POST (null) [00:02:53]execute_cgi path=json_proto method=POST [00:02:53]POST find Content-Length [00:02:53]Host: 172.17.57.71:8080 [00:02:53]Content-Length: 331 [00:02:53]Content-Type: application/json [00:02:53] [00:02:53]POST finish read [00:02:53]Found Content-Length = 331 [00:02:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:02:53]execute_script... [00:02:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:02:53]POST & json_proto [00:02:53]process_json_proto [00:02:53]json parsed OK: [00:02:53]protocol is kg_v1.0 [00:02:53]action value=get_value [00:02:53]process_action get_value [00:02:53]cmd_get_value [00:02:53]process_action get_value done [00:02:53]requested_data is exist [00:02:53]produce_requested_data [00:02:53]requested_item fm.sale.total is exist - process it [00:02:53]SAM_PROTO_GetFMData [00:02:53]wFMCommunicate request_size=4 [00:02:53]MH_SAM_APDU [00:02:53]CAPDU: 80 13 03 00 [00:02:53]Write to MH i2c: E2 08 00 11 00 80 13 03 00 00 00 00 00 90 [00:02:53]OFD Sender: No OFD packet to send [00:02:53]Write i2c OK [00:02:53]MH_I2C_Read... [00:02:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:02:54]Read from MH i2c: E2 [00:02:54]MH_I2C_Read... [00:02:54]Read from MH i2c: E2 FD 00 [00:02:54]MH_I2C_Read... [00:02:54]Read from MH i2c: E2 FD 00 11 00 00 C5 04 85 04 C1 04 6E 04 04 00 20 66 01 00 69 04 A1 00 6F 04 04 00 CC 62 01 00 B1 04 04 00 A0 76 11 B3 70 04 04 00 B0 CE 84 83 72 04 04 00 F0 A7 8C 2F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 61 73 04 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BB 8D 95 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 54 03 00 00 B1 04 04 00 EC 99 7A 04 70 04 04 00 98 B8 41 04 72 04 03 00 54 E1 38 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C8 79 EF 03 09 90 00 90 [00:02:54]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 20 66 01 00 69 04 A1 00 6F 04 04 00 CC 62 01 00 B1 04 04 00 A0 76 11 B3 70 04 04 00 B0 CE 84 83 72 04 04 00 F0 A7 8C 2F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 61 73 04 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BB 8D 95 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 54 03 00 00 B1 04 04 00 EC 99 7A 04 70 04 04 00 98 B8 41 04 72 04 03 00 54 E1 38 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C8 79 EF 03 09 90 00 [00:02:54]wFMCommunicate OK [00:02:54]wFMCommunicate request_size=4 [00:02:54]MH_SAM_APDU [00:02:54]CAPDU: 80 17 00 00 [00:02:54]Write to MH i2c: E2 08 00 12 00 80 17 00 00 00 00 00 00 92 [00:02:54]Write i2c OK [00:02:54]MH_I2C_Read... [00:02:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:54]Read from MH i2c: E2 [00:02:54]MH_I2C_Read... [00:02:54]Read from MH i2c: E2 FD 00 [00:02:54]MH_I2C_Read... [00:02:54]Read from MH i2c: E2 FD 00 12 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AA 25 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 21 [00:02:54]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AA 25 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:02:54]wFMCommunicate OK [00:02:54]wFMCommunicate request_size=4 [00:02:54]MH_SAM_APDU [00:02:54]CAPDU: 80 17 00 00 [00:02:54]Write to MH i2c: E2 08 00 13 00 80 17 00 00 00 00 00 00 93 [00:02:54]Write i2c OK [00:02:54]MH_I2C_Read... [00:02:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:54]Read from MH i2c: E2 [00:02:54]MH_I2C_Read... [00:02:54]Read from MH i2c: E2 FD 00 [00:02:54]MH_I2C_Read... [00:02:54]Read from MH i2c: E2 FD 00 13 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A5 [00:02:54]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:02:54]wFMCommunicate OK [00:02:54]wFMCommunicate request_size=4 [00:02:54]MH_SAM_APDU [00:02:54]CAPDU: 80 17 00 00 [00:02:54]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [00:02:54]Write i2c OK [00:02:54]MH_I2C_Read... [00:02:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:55]Read from MH i2c: E2 [00:02:55]MH_I2C_Read... [00:02:55]Read from MH i2c: E2 FD 00 [00:02:55]MH_I2C_Read... [00:02:55]Read from MH i2c: E2 FD 00 14 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 20 [00:02:55]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:02:55]wFMCommunicate OK [00:02:55]wFMCommunicate request_size=4 [00:02:55]MH_SAM_APDU [00:02:55]CAPDU: 80 17 00 00 [00:02:55]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [00:02:55]Write i2c OK [00:02:55]MH_I2C_Read... [00:02:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:02:55]Read from MH i2c: E2 [00:02:55]MH_I2C_Read... [00:02:55]Read from MH i2c: E2 E2 00 [00:02:55]MH_I2C_Read... [00:02:55]Read from MH i2c: E2 E2 00 15 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 73 [00:02:55]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:02:55]wFMCommunicate OK [00:02:55]SAM_PROTO_GetFMData done [00:02:55]requested_item fm.sale_refund.total is exist - process it [00:02:55]requested_item fm.buy.total is exist - process it [00:02:55]requested_item shift.sale.total is exist - process it [00:02:55]SAM_PROTO_GetShiftData [00:02:55]wFMCommunicate request_size=4 [00:02:55]MH_SAM_APDU [00:02:55]CAPDU: 80 13 02 00 [00:02:55]Write to MH i2c: E2 08 00 16 00 80 13 02 00 00 00 00 00 94 [00:02:55]Write i2c OK [00:02:55]MH_I2C_Read... [00:02:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:02:55]Read from MH i2c: E2 [00:02:55]MH_I2C_Read... [00:02:55]Read from MH i2c: E2 FD 00 [00:02:55]MH_I2C_Read... [00:02:55]Read from MH i2c: E2 FD 00 16 00 00 B8 04 AA 04 B4 04 6E 04 04 00 8E 00 00 00 69 04 9B 00 6F 04 04 00 8C 00 00 00 B1 04 03 00 67 F5 43 70 04 03 00 64 9C 31 72 04 03 00 03 59 12 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A4 37 07 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E8 99 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 7C B8 02 70 04 03 00 7C B8 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F7 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 EF [00:02:55]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 8E 00 00 00 69 04 9B 00 6F 04 04 00 8C 00 00 00 B1 04 03 00 67 F5 43 70 04 03 00 64 9C 31 72 04 03 00 03 59 12 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A4 37 07 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E8 99 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 7C B8 02 70 04 03 00 7C B8 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F7 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:02:55]wFMCommunicate OK [00:02:55]wFMCommunicate request_size=4 [00:02:55]MH_SAM_APDU [00:02:55]CAPDU: 80 17 00 00 [00:02:55]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [00:02:55]Write i2c OK [00:02:55]MH_I2C_Read... [00:02:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:56]Read from MH i2c: E2 [00:02:56]MH_I2C_Read... [00:02:56]Read from MH i2c: E2 FD 00 [00:02:56]MH_I2C_Read... [00:02:56]Read from MH i2c: E2 FD 00 17 00 00 0B 00 F6 03 01 00 01 F7 03 02 00 29 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 F7 [00:02:56]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 29 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:02:56]wFMCommunicate OK [00:02:56]wFMCommunicate request_size=4 [00:02:56]MH_SAM_APDU [00:02:56]CAPDU: 80 17 00 00 [00:02:56]Write to MH i2c: E2 08 00 18 00 80 17 00 00 00 00 00 00 98 [00:02:56]Write i2c OK [00:02:56]MH_I2C_Read... [00:02:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:56]Read from MH i2c: E2 [00:02:56]MH_I2C_Read... [00:02:56]Read from MH i2c: E2 FD 00 [00:02:56]MH_I2C_Read... [00:02:56]Read from MH i2c: E2 FD 00 18 00 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 3A [00:02:56]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [00:02:56]wFMCommunicate OK [00:02:56]wFMCommunicate request_size=4 [00:02:56]MH_SAM_APDU [00:02:56]CAPDU: 80 17 00 00 [00:02:56]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [00:02:56]Write i2c OK [00:02:56]MH_I2C_Read... [00:02:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:56]Read from MH i2c: E2 [00:02:56]MH_I2C_Read... [00:02:56]Read from MH i2c: E2 FD 00 [00:02:56]MH_I2C_Read... [00:02:56]Read from MH i2c: E2 FD 00 19 00 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 22 [00:02:56]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [00:02:56]wFMCommunicate OK [00:02:56]wFMCommunicate request_size=4 [00:02:56]MH_SAM_APDU [00:02:56]CAPDU: 80 17 00 00 [00:02:56]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [00:02:56]Write i2c OK [00:02:56]MH_I2C_Read... [00:02:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:02:56]Read from MH i2c: E2 [00:02:56]MH_I2C_Read... [00:02:56]Read from MH i2c: E2 D5 00 [00:02:56]MH_I2C_Read... [00:02:56]Read from MH i2c: E2 D5 00 1A 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7B [00:02:56]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:02:56]wFMCommunicate OK [00:02:56]SAM_PROTO_GetShiftData done [00:02:56]requested_item shift.sale.total_cash is exist - process it [00:02:56]requested_item shift.sale_refund.total is exist - process it [00:02:56]requested_item shift.sale_refund.total_cash is exist - process it [00:02:56]requested_item shift.buy.total is exist - process it [00:02:56]requested_item shift.buy.total_cash is exist - process it [00:02:56]produce_requested_data done [00:02:56]produce_requested_data return {"fm.sale.total":30042661.44,"fm.sale_refund.total":751436.60,"fm.buy.total":0.00,"shift.sale.total":44537.35,"shift.sale.total_cash":32513.00,"shift.sale_refund.total":1783.00,"shift.sale_refund.total_cash":1783.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:02:56]process_action_free get_value [00:02:56]json_value_free [00:02:56]json_value_free done [00:02:56]process_json_proto returns [00:02:56]Send response to host [00:02:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":30042661.44,"fm.sale_refund.total":751436.60,"fm.buy.total":0.00,"shift.sale.total":44537.35,"shift.sale.total_cash":32513.00,"shift.sale_refund.total":1783.00,"shift.sale_refund.total_cash":1783.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:02:56]free response buf [00:02:56]execute_script done [00:02:56]execute_script returns [00:02:56]free content buf [00:02:56]Sock 6.Close socket [00:02:56]Sock 6.Thread stoped [00:02:58]OFD Sender: No OFD packet to send [00:03:03]OFD Sender: No OFD packet to send [00:03:05]accept exits with 9 [00:03:05]New connection [00:03:05]New thread 3066608996 created [00:03:05]Thread 3066752356 joined [00:03:05]Waiting for new connection... [00:03:05] Sock 9.Parse request [00:03:05]Sock 9.Check first char [00:03:05]Sock 9.First char is OK [00:03:05]request: POST /json_proto HTTP/1.0 [00:03:05]Method: POST [00:03:05]URL: /json_proto [00:03:05]Method is POST - this is cgi request [00:03:05]url: /json_proto [00:03:05]query_string will be loaded in cgi processing [00:03:05]execute_cgi json_proto POST (null) [00:03:05]execute_cgi path=json_proto method=POST [00:03:05]POST find Content-Length [00:03:05]Host: 172.17.57.71:8080 [00:03:05]Content-Length: 9859 [00:03:05]Content-Type: application/json [00:03:05] [00:03:05]POST finish read [00:03:05]Found Content-Length = 9859 [00:03:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127579", "tax_sys" : 0, "items" : [ { "code": "6975767540561", "name": "FIBIE COSMOPOLITAN 4000 \u044D\u043B.\u0441\u0438\u0433\u0430\u0440\u0435\u0442\u044B", "price" : 1200.00, "quantity" : 2.000, "sum" : 2400.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5904917030585", "name": "\u0401\u0440\u0446\u0445 ICE CREAM MACHINE Johny Bee", "price" : 235.00, "quantity" : 1.000, "sum" : 235.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744539", "name": "LD Compact Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6000911553446", "name": "\u0410\u0432\u0442\u043E\u043C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u0437\u0430\u0440\u044F\u0434\u043D\u043E\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E CAR CH", "price" : 300.00, "quantity" : 2.000, "sum" : 600.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681079", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u043B\u0430\u0434\u043A\u0438\u0439 \u0447\u0438\u043B\u0438 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4008321799555", "name": "\u0410/\u043B NEOLUX N380 5W 12V", "price" : 195.00, "quantity" : 1.000, "sum" : 195.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "745240075929", "name": "\u0410\u0432\u0442\u043E\u043F\u0430\u0440\u0444\u044E\u043C 3 L`EAU PAR", "price" : 300.00, "quantity" : 1.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "745240075967", "name": "\u0410\u0432\u0442\u043E\u043F\u0430\u0440\u0444\u044E\u043C 7 AQUA", "price" : 300.00, "quantity" : 1.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "745240075981", "name": "\u0410\u0432\u0442\u043E\u043F\u0430\u0440\u0444\u044E\u043C 9 LA COSTA", "price" : 300.00, "quantity" : 1.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209743604", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 BIG BOB \u0421\u044B\u0440 \u0438 \u0442\u0440\u0430\u0432\u044B 50 \u0433\u0440", "price" : 60.00, "quantity" : 3.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400976", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 90 ", "price" : 75.00, "quantity" : 7.000, "sum" : 525.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5906534012500", "name": "\u0410\u0440\u043E\u043C\u0430\u0442\u0438\u0437\u0430\u0442\u043E\u0440 K2 Vento Rainforest", "price" : 245.00, "quantity" : 1.000, "sum" : 245.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600080322137", "name": "\u0412\u0430\u0444 \u041A\u043E\u0440\u043E\u0432\u043A\u0430 \u0441 \u0448\u043E\u043A \u043D\u0430\u0447\u0438\u043D\u043A\u043E\u0439 150\u0433", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600080322106", "name": "\u0412\u0430\u0444 \u041A\u043E\u0440\u043E\u0432\u043A\u0430 \u0442\u043E\u043F\u043B\u0451\u043D\u043E\u0435 \u043C\u043E\u043B\u043E\u043A\u043E 150\u0433", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660013331551", "name": "\u0412\u0430\u0444 \u0441\u0442 \u0435\u0436\u0435\u0432\u0438\u043A\u0430 \u0447\u0435\u0440\u043D\u0438\u043A\u0430", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077625602", "name": "\u0412\u0430\u0444\u043B\u0438 ROSHEN WAFERS CHOKO 216 \u0433\u0440", "price" : 185.00, "quantity" : 1.000, "sum" : 185.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571023", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002326172", "name": "\u0execute_script... [00:03:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127579", "tax_sys" : 0, "items" : [ { "code": "6975767540561", "name": "FIBIE COSMOPOLITAN 4000 \u044D\u043B.\u0441\u0438\u0433\u0430\u0440\u0435\u0442\u044B", "price" : 1200.00, "quantity" : 2.000, "sum" : 2400.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5904917030585", "name": "\u0401\u0440\u0446\u0445 ICE CREAM MACHINE Johny Bee", "price" : 235.00, "quantity" : 1.000, "sum" : 235.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744539", "name": "LD Compact Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6000911553446", "name": "\u0410\u0432\u0442\u043E\u043C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u0437\u0430\u0440\u044F\u0434\u043D\u043E\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E CAR CH", "price" : 300.00, "quantity" : 2.000, "sum" : 600.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681079", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u043B\u0430\u0434\u043A\u0438\u0439 \u0447\u0438\u043B\u0438 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4008321799555", "name": "\u0410/\u043B NEOLUX N380 5W 12V", "price" : 195.00, "quantity" : 1.000, "sum" : 195.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "745240075929", "name": "\u0410\u0432\u0442\u043E\u043F\u0430\u0440\u0444\u044E\u043C 3 L`EAU PAR", "price" : 300.00, "quantity" : 1.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "745240075967", "name": "\u0410\u0432\u0442\u043E\u043F\u0430\u0440\u0444\u044E\u043C 7 AQUA", "price" : 300.00, "quantity" : 1.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "745240075981", "name": "\u0410\u0432\u0442\u043E\u043F\u0430\u0440\u0444\u044E\u043C 9 LA COSTA", "price" : 300.00, "quantity" : 1.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209743604", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 BIG BOB \u0421\u044B\u0440 \u0438 \u0442\u0440\u0430\u0432\u044B 50 \u0433\u0440", "price" : 60.00, "quantity" : 3.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400976", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 90 ", "price" : 75.00, "quantity" : 7.000, "sum" : 525.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5906534012500", "name": "\u0410\u0440\u043E\u043C\u0430\u0442\u0438\u0437\u0430\u0442\u043E\u0440 K2 Vento Rainforest", "price" : 245.00, "quantity" : 1.000, "sum" : 245.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600080322137", "name": "\u0412\u0430\u0444 \u041A\u043E\u0440\u043E\u0432\u043A\u0430 \u0441 \u0448\u043E\u043A \u043D\u0430\u0447\u0438\u043D\u043A\u043E\u0439 150\u0433", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600080322106", "name": "\u0412\u0430\u0444 \u041A\u043E\u0440\u043E\u0432\u043A\u0430 \u0442\u043E\u043F\u043B\u0451\u043D\u043E\u0435 \u043C\u043E\u043B\u043E\u043A\u043E 150\u0433", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660013331551", "name": "\u0412\u0430\u0444 \u0441\u0442 \u0435\u0436\u0435\u0432\u0438\u043A\u0430 \u0447\u0435\u0440\u043D\u0438\u043A\u0430", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077625602", "name": "\u0412\u0430\u0444\u043B\u0438 ROSHEN WAFERS CHOKO 216 \u0433\u0440", "price" : 185.00, "quantity" : 1.000, "sum" : 185.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571023", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 POST & json_proto [00:03:05]process_json_proto [00:03:05]json parsed OK: [00:03:05]protocol is kg_v1.0 [00:03:05]action value=close_receipt [00:03:05]process_action close_receipt [00:03:05]cmd_close_receipt [00:03:05]MH_GetDate [00:03:05]Write to MH i2c: F0 00 00 1B 00 0A [00:03:05]Write i2c OK [00:03:05]MH_I2C_Read... [00:03:05]Read from MH i2c: F0 [00:03:05]MH_I2C_Read... [00:03:05]Read from MH i2c: F0 09 00 [00:03:05]MH_I2C_Read... [00:03:05]Read from MH i2c: F0 09 00 1B 00 00 BA 75 E7 66 33 3A A4 66 06 [00:03:05]GetLastDocTimeStamp 1726443969 [00:03:05]current date 1726444986 [00:03:05]FM_GetShiftState [00:03:05]SAM_PROTO_GetShiftState [00:03:05]wFMCommunicate request_size=4 [00:03:05]MH_SAM_APDU [00:03:05]CAPDU: 80 13 01 00 [00:03:05]Write to MH i2c: E2 08 00 1C 00 80 13 01 00 00 00 00 00 99 [00:03:05]Write i2c OK [00:03:05]MH_I2C_Read... [00:03:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:05]Read from MH i2c: E2 [00:03:05]MH_I2C_Read... [00:03:05]Read from MH i2c: E2 0E 00 [00:03:05]MH_I2C_Read... [00:03:05]Read from MH i2c: E2 0E 00 1C 00 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 1B [00:03:05]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [00:03:05]wFMCommunicate OK [00:03:05]SAM_PROTO_GetShiftState done [00:03:05]FM_GetShiftState done [00:03:05]opened in 1726359809 [00:03:05]opened+sec_in_day 1726446209 [00:03:05]quantity*price = 240000 [00:03:05]sum+1 = 240001 [00:03:05]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5904917030585 Ёрцх ICE CREAM MACHINE Johny Bee 1.000 * 235.00 = 235.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48744539 LD Compact Blue 1.000 * 134.00 = 134.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 6000911553446 Автомобильное зарядное устройство CAR CH 2.000 * 300.00 = 600.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870235681079 Grizzly волнистые Сладкий чили 55 гр 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4008321799555 А/л NEOLUX N380 5W 12V 1.000 * 195.00 = 195.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 745240075929 Автопарфюм 3 L`EAU PAR 1.000 * 300.00 = 300.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 745240075967 Автопарфюм 7 AQUA 1.000 * 300.00 = 300.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 745240075981 Автопарфюм 9 LA COSTA 1.000 * 300.00 = 300.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870209743604 Арахис BIG BOB Сыр и травы 50 гр 3.000 * 60.00 = 180.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4630007400976 Арахис жарен Караван орехов Стандарт 90 7.000 * 75.00 = 525.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5906534012500 Ароматизатор K2 Vento Rainforest 1.000 * 245.00 = 245.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4600080322137 Ваф Коровка с шок начинкой 150г 2.000 * 115.00 = 230.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4600080322106 Ваф Коровка топлёное молоко 150г 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4660013331551 Ваф ст ежевика черника 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4823077625602 Вафли ROSHEN WAFERS CHOKO 216 гр 1.000 * 185.00 = 185.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001571023 Вода ASU пит н.газ клубн,киви ПЭТ 0,5л 2.000 * 65.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870002326172 Вода ASU пит н.газ лимон ПЭТ 1л 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870002328398 Вода ASU пит н.газ мята ПЭТ 1л 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001571535 Вода ASU пит н.газ персик ПЭТ 0,5л 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000066473 Вода Бонаква 1л 8.000 * 42.00 = 336.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000310036 Вода Жалалабат 27 0,5л 10.000 * 40.00 = 400.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 87345155 Драже mentos жев fresh cola ролл 37г 12.000 * 75.00 = 900.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 3179110001140 Зажигалка Cricket FirePower м/фун 1.000 * 173.00 = 173.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 6957531032007 Кабель hoco RAP CHAR X1 Аpple 1м 5.000 * 271.00 = 1355.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 6957531032045 Кабель hoco rapid charging X1 type-C 1м 1.000 * 271.00 = 271.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4680037726638 Кабель SMarket SAM-0912 разъемы AUX/AUX 1.000 * 243.00 = 243.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4680037724313 Кабель SMarket SM-3011 выход 90 град.tip 1.000 * 343.00 = 343.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4620017450726 Кар. Страйк ассорти 11.3г/50шт 4.000 * 6.00 = 24.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46034595 Карамель Chupa н/пал фр.микс,сок колы 12 4.000 * 25.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4630026561436 Кон.BABYFOX c мол.нач.120г 3.000 * 110StoreToDocumentArchive [00:03:09]shift 507 fd 92695 [00:03:09]save to /storage/0507/doc_00092695 [00:03:09]save last doc name /storage/0507/doc_00092695 to /storage/kkm_last_doc_name [00:03:09]save OK [00:03:09]Clear old archive folders... [00:03:09]ProcessDocumentItem done err = 0, tmpTLVsize=4066 [00:03:09]tlvbuf is 0177A680 [00:03:09]SAM_PROTO_ClearQueue [00:03:09]wFMCommunicate request_size=4 [00:03:09]MH_SAM_APDU [00:03:09]CAPDU: 80 09 00 00 [00:03:09]Write to MH i2c: E2 08 00 29 00 80 09 00 00 00 00 00 00 9B [00:03:09]Write i2c OK [00:03:09]MH_I2C_Read... [00:03:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:03:09]Read from MH i2c: E2 [00:03:09]MH_I2C_Read... [00:03:09]Read from MH i2c: E2 03 00 [00:03:09]MH_I2C_Read... [00:03:09]Read from MH i2c: E2 03 00 29 00 00 90 00 9D [00:03:09]RAPDU: 90 00 [00:03:09]wFMCommunicate OK [00:03:09]SAM_PROTO_ClearQueue done [00:03:09]KKMCreateOFDPacket [00:03:09]OFDProtocolAddRootSTLVToBuf [00:03:09]FM_MakeSignedData [00:03:09]FM_MakeSignedData [00:03:09]SAM_PROTO_SignData [00:03:09]wFMCommunicate request_size=4 [00:03:09]MH_SAM_APDU [00:03:09]CAPDU: 80 0D 01 02 [00:03:09]Write to MH i2c: E2 08 00 2A 00 80 0D 01 02 00 00 00 00 A3 [00:03:09]Write i2c OK [00:03:09]MH_I2C_Read... [00:03:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:03:09]Read from MH i2c: E2 [00:03:09]MH_I2C_Read... [00:03:09]Read from MH i2c: E2 03 00 [00:03:09]MH_I2C_Read... [00:03:09]Read from MH i2c: E2 03 00 2A 00 00 90 00 9E [00:03:09]RAPDU: 90 00 [00:03:09]wFMCommunicate OK [00:03:09]wFMCommunicate request_size=255 [00:03:09]MH_SAM_APDU [00:03:09]CAPDU: 80 0D 02 02 FA 03 00 E2 0F 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 36 39 37 35 37 36 37 35 34 30 35 36 31 06 04 2D 00 46 49 42 49 45 20 43 4F 53 4D 4F 50 4F 4C 49 54 41 4E 20 34 30 30 30 20 D1 8D D0 BB 2E D1 81 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C0 D4 01 00 00 00 13 04 06 00 80 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 39 30 34 39 31 37 30 33 30 35 38 35 06 04 24 00 D0 81 D1 80 D1 86 D1 85 20 49 43 45 20 43 52 45 41 4D 20 4D 41 43 48 49 4E 45 20 4A 6F 68 6E 79 20 42 65 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 5B 00 00 00 00 13 04 06 00 CC 5B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 [00:03:09]Write to MH i2c: E2 02 01 2B 00 80 0D 02 02 FA 00 03 00 E2 0F 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 36 39 37 35 37 36 37 35 34 30 35 36 31 06 04 2D 00 46 49 42 49 45 20 43 4F 53 4D 4F 50 4F 4C 49 54 41 4E 20 34 30 30 30 20 D1 8D D0 BB 2E D1 81 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C0 D4 01 00 00 00 13 04 06 00 80 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 39 30 34 39 31 37 30 33 30 35 38 35 06 04 24 00 D0 81 D1 80 D1 86 D1 85 20 49 43 45 20 43 52 45 41 4D 20 4D 41 43 48 49 4E 45 20 4A 6F 68 6E 79 20 42 65 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 5B 00 00 00 00 13 04 06 00 CC 5B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 00 00 5B [00:03:10]Write i2c OK [00:03:10]MH_I2C_Read... [00:03:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:10]Read from MH i2c: E2 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 03 00 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [00:03:10]RAPDU: 90 00 [00:03:10]wFMCommunicate OK [00:03:10]wFMCommunicate request_size=255 [00:03:10]MH_SAM_APDU [00:03:10]CAPDU: 80 0D 02 02 FA 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8B 00 8A 04 0D 00 36 30 30 30 39 31 31 35 35 33 34 34 36 06 04 47 00 D0 90 D0 B2 D1 82 D0 BE D0 BC D0 BE D0 B1 D0 B8 D0 BB D1 8C D0 BD D0 BE D0 B5 20 D0 B7 D0 B0 D1 80 D1 8F D0 B4 D0 BD D0 BE D0 B5 20 D1 83 D1 81 D1 82 D1 80 D0 BE D0 B9 D1 81 D1 82 D0 B2 D0 BE 20 43 41 52 20 43 48 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD [00:03:10]Write to MH i2c: E2 02 01 2C 00 80 0D 02 02 FA 00 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8B 00 8A 04 0D 00 36 30 30 30 39 31 31 35 35 33 34 34 36 06 04 47 00 D0 90 D0 B2 D1 82 D0 BE D0 BC D0 BE D0 B1 D0 B8 D0 BB D1 8C D0 BD D0 BE D0 B5 20 D0 B7 D0 B0 D1 80 D1 8F D0 B4 D0 BD D0 BE D0 B5 20 D1 83 D1 81 D1 82 D1 80 D0 BE D0 B9 D1 81 D1 82 D0 B2 D0 BE 20 43 41 52 20 43 48 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD 00 00 C8 [00:03:10]Write i2c OK [00:03:10]MH_I2C_Read... [00:03:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:10]Read from MH i2c: E2 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 03 00 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [00:03:10]RAPDU: 90 00 [00:03:10]wFMCommunicate OK [00:03:10]wFMCommunicate request_size=255 [00:03:10]MH_SAM_APDU [00:03:10]CAPDU: 80 0D 02 02 FA D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 30 30 38 33 32 31 37 39 39 35 35 35 06 04 18 00 D0 90 2F D0 BB 20 4E 45 4F 4C 55 58 20 4E 33 38 30 20 35 57 20 31 32 56 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 32 39 06 04 20 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 33 20 4C 60 45 41 55 20 50 41 52 FF 03 08 00 03 E8 03 00 00 [00:03:10]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 30 30 38 33 32 31 37 39 39 35 35 35 06 04 18 00 D0 90 2F D0 BB 20 4E 45 4F 4C 55 58 20 4E 33 38 30 20 35 57 20 31 32 56 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 32 39 06 04 20 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 33 20 4C 60 45 41 55 20 50 41 52 FF 03 08 00 03 E8 03 00 00 00 00 39 [00:03:10]Write i2c OK [00:03:10]MH_I2C_Read... [00:03:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:11]Read from MH i2c: E2 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 03 00 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [00:03:11]RAPDU: 90 00 [00:03:11]wFMCommunicate OK [00:03:11]wFMCommunicate request_size=255 [00:03:11]MH_SAM_APDU [00:03:11]CAPDU: 80 0D 02 02 FA 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 36 37 06 04 1B 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 37 20 41 51 55 41 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 38 31 06 04 1F 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 39 20 4C 41 20 43 4F 53 54 41 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 [00:03:11]Write to MH i2c: E2 02 01 2E 00 80 0D 02 02 FA 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 36 37 06 04 1B 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 37 20 41 51 55 41 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 38 31 06 04 1F 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 39 20 4C 41 20 43 4F 53 54 41 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 00 00 2C [00:03:11]Write i2c OK [00:03:11]MH_I2C_Read... [00:03:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:11]Read from MH i2c: E2 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 03 00 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [00:03:11]RAPDU: 90 00 [00:03:11]wFMCommunicate OK [00:03:11]wFMCommunicate request_size=255 [00:03:11]MH_SAM_APDU [00:03:11]CAPDU: 80 0D 02 02 FA 32 30 39 37 34 33 36 30 34 06 04 31 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 A1 D1 8B D1 80 20 D0 B8 20 D1 82 D1 80 D0 B0 D0 B2 D1 8B 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 37 36 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 39 30 20 FF 03 08 00 03 58 1B 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 14 CD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 [00:03:11]Write to MH i2c: E2 02 01 2F 00 80 0D 02 02 FA 00 32 30 39 37 34 33 36 30 34 06 04 31 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 A1 D1 8B D1 80 20 D0 B8 20 D1 82 D1 80 D0 B0 D0 B2 D1 8B 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 37 36 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 39 30 20 FF 03 08 00 03 58 1B 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 14 CD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 00 00 0A [00:03:11]Write i2c OK [00:03:11]MH_I2C_Read... [00:03:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:11]Read from MH i2c: E2 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 03 00 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 03 00 2F 00 00 90 00 A3 [00:03:11]RAPDU: 90 00 [00:03:11]wFMCommunicate OK [00:03:11]wFMCommunicate request_size=255 [00:03:11]MH_SAM_APDU [00:03:11]CAPDU: 80 0D 02 02 FA 01 00 01 23 04 70 00 8A 04 0D 00 35 39 30 36 35 33 34 30 31 32 35 30 30 06 04 2C 00 D0 90 D1 80 D0 BE D0 BC D0 B0 D1 82 D0 B8 D0 B7 D0 B0 D1 82 D0 BE D1 80 20 4B 32 20 56 65 6E 74 6F 20 52 61 69 6E 66 6F 72 65 73 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 5F 00 00 00 00 13 04 06 00 B4 5F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 30 30 38 30 33 32 32 31 33 37 06 04 36 00 D0 92 D0 B0 D1 84 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 81 20 D1 88 D0 BE D0 BA 20 D0 BD D0 B0 D1 87 D0 B8 D0 BD D0 BA D0 BE D0 B9 20 31 35 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A [00:03:11]Write to MH i2c: E2 02 01 30 00 80 0D 02 02 FA 00 01 00 01 23 04 70 00 8A 04 0D 00 35 39 30 36 35 33 34 30 31 32 35 30 30 06 04 2C 00 D0 90 D1 80 D0 BE D0 BC D0 B0 D1 82 D0 B8 D0 B7 D0 B0 D1 82 D0 BE D1 80 20 4B 32 20 56 65 6E 74 6F 20 52 61 69 6E 66 6F 72 65 73 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 5F 00 00 00 00 13 04 06 00 B4 5F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 30 30 38 30 33 32 32 31 33 37 06 04 36 00 D0 92 D0 B0 D1 84 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 81 20 D1 88 D0 BE D0 BA 20 D0 BD D0 B0 D1 87 D0 B8 D0 BD D0 BA D0 BE D0 B9 20 31 35 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 00 00 E4 [00:03:11]Write i2c OK [00:03:11]MH_I2C_Read... [00:03:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:12]Read from MH i2c: E2 [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: E2 03 00 [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: E2 03 00 30 00 00 90 00 A4 [00:03:12]RAPDU: 90 00 [00:03:12]wFMCommunicate OK [00:03:12]wFMCommunicate request_size=255 [00:03:12]MH_SAM_APDU [00:03:12]CAPDU: 80 0D 02 02 FA 04 0D 00 34 36 30 30 30 38 30 33 32 32 31 30 36 06 04 39 00 D0 92 D0 B0 D1 84 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 82 D0 BE D0 BF D0 BB D1 91 D0 BD D0 BE D0 B5 20 D0 BC D0 BE D0 BB D0 BE D0 BA D0 BE 20 31 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 35 35 31 06 04 29 00 D0 92 D0 B0 D1 84 20 D1 81 D1 82 20 D0 B5 D0 B6 D0 B5 D0 B2 D0 B8 D0 BA D0 B0 20 D1 87 D0 B5 D1 80 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 38 32 33 30 [00:03:12]Write to MH i2c: E2 02 01 31 00 80 0D 02 02 FA 00 04 0D 00 34 36 30 30 30 38 30 33 32 32 31 30 36 06 04 39 00 D0 92 D0 B0 D1 84 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 82 D0 BE D0 BF D0 BB D1 91 D0 BD D0 BE D0 B5 20 D0 BC D0 BE D0 BB D0 BE D0 BA D0 BE 20 31 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 35 35 31 06 04 29 00 D0 92 D0 B0 D1 84 20 D1 81 D1 82 20 D0 B5 D0 B6 D0 B5 D0 B2 D0 B8 D0 BA D0 B0 20 D1 87 D0 B5 D1 80 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 38 32 33 30 00 00 40 [00:03:12]Write i2c OK [00:03:12]MH_I2C_Read... [00:03:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:12]Read from MH i2c: E2 [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: E2 03 00 [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: E2 03 00 31 00 00 90 00 A5 [00:03:12]RAPDU: 90 00 [00:03:12]wFMCommunicate OK [00:03:12]wFMCommunicate request_size=255 [00:03:12]MH_SAM_APDU [00:03:12]CAPDU: 80 0D 02 02 FA 37 37 36 32 35 36 30 32 06 04 27 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 52 4F 53 48 45 4E 20 57 41 46 45 52 53 20 43 48 4F 4B 4F 20 32 31 36 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 [00:03:12]Write to MH i2c: E2 02 01 32 00 80 0D 02 02 FA 00 37 37 36 32 35 36 30 32 06 04 27 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 52 4F 53 48 45 4E 20 57 41 46 45 52 53 20 43 48 4F 4B 4F 20 32 31 36 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 00 00 46 [00:03:12]Write i2c OK [00:03:12]MH_I2C_Read... [00:03:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:13]Read from MH i2c: E2 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 03 00 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 03 00 32 00 00 90 00 A6 [00:03:13]RAPDU: 90 00 [00:03:13]wFMCommunicate OK [00:03:13]wFMCommunicate request_size=255 [00:03:13]MH_SAM_APDU [00:03:13]CAPDU: 80 0D 02 02 FA 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 [00:03:13]Write to MH i2c: E2 02 01 33 00 80 0D 02 02 FA 00 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 00 E2 [00:03:13]Write i2c OK [00:03:13]MH_I2C_Read... [00:03:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:13]Read from MH i2c: E2 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 03 00 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 03 00 33 00 00 90 00 A7 [00:03:13]RAPDU: 90 00 [00:03:13]wFMCommunicate OK [00:03:13]wFMCommunicate request_size=255 [00:03:13]MH_SAM_APDU [00:03:13]CAPDU: 80 0D 02 02 FA 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 40 83 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 [00:03:13]Write to MH i2c: E2 02 01 34 00 80 0D 02 02 FA 00 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 40 83 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 00 00 BE [00:03:13]Write i2c OK [00:03:13]MH_I2C_Read... [00:03:13]OFD Sender: No OFD packet to send [00:03:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:14]Read from MH i2c: E2 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 34 00 00 90 00 A8 [00:03:14]RAPDU: 90 00 [00:03:14]wFMCommunicate OK [00:03:14]wFMCommunicate request_size=255 [00:03:14]MH_SAM_APDU [00:03:14]CAPDU: 80 0D 02 02 FA D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 08 00 38 37 33 34 35 31 35 35 06 04 31 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 6D 65 6E 74 6F 73 20 D0 B6 D0 B5 D0 B2 20 66 72 65 73 68 20 63 6F 6C 61 20 D1 80 D0 BE D0 BB D0 BB 20 33 37 D0 B3 FF 03 08 00 03 E0 2E 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 90 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 33 31 37 39 31 31 30 30 30 31 31 34 30 06 04 2E 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 46 69 72 65 50 6F 77 65 72 20 D0 BC 2F D1 84 D1 83 D0 BD FF 03 08 [00:03:14]Write to MH i2c: E2 02 01 35 00 80 0D 02 02 FA 00 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 08 00 38 37 33 34 35 31 35 35 06 04 31 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 6D 65 6E 74 6F 73 20 D0 B6 D0 B5 D0 B2 20 66 72 65 73 68 20 63 6F 6C 61 20 D1 80 D0 BE D0 BB D0 BB 20 33 37 D0 B3 FF 03 08 00 03 E0 2E 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 90 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 33 31 37 39 31 31 30 30 30 31 31 34 30 06 04 2E 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 46 69 72 65 50 6F 77 65 72 20 D0 BC 2F D1 84 D1 83 D0 BD FF 03 08 00 00 A5 [00:03:14]Write i2c OK [00:03:14]MH_I2C_Read... [00:03:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:14]Read from MH i2c: E2 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 35 00 00 90 00 A9 [00:03:14]RAPDU: 90 00 [00:03:14]wFMCommunicate OK [00:03:14]wFMCommunicate request_size=255 [00:03:14]MH_SAM_APDU [00:03:14]CAPDU: 80 0D 02 02 FA 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 43 00 00 00 00 13 04 06 00 94 43 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 36 39 35 37 35 33 31 30 33 32 30 30 37 06 04 28 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 68 6F 63 6F 20 52 41 50 20 43 48 41 52 20 58 31 20 D0 90 70 70 6C 65 20 31 D0 BC FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 DC 69 00 00 00 00 13 04 06 00 4C 11 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 36 39 35 37 35 33 31 30 33 32 30 34 35 06 04 2E 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 68 6F 63 6F 20 72 61 70 69 64 20 63 68 61 72 67 69 6E 67 20 58 31 20 74 79 70 65 2D 43 20 31 D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 69 00 00 00 00 13 [00:03:14]Write to MH i2c: E2 02 01 36 00 80 0D 02 02 FA 00 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 43 00 00 00 00 13 04 06 00 94 43 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 36 39 35 37 35 33 31 30 33 32 30 30 37 06 04 28 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 68 6F 63 6F 20 52 41 50 20 43 48 41 52 20 58 31 20 D0 90 70 70 6C 65 20 31 D0 BC FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 DC 69 00 00 00 00 13 04 06 00 4C 11 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 36 39 35 37 35 33 31 30 33 32 30 34 35 06 04 2E 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 68 6F 63 6F 20 72 61 70 69 64 20 63 68 61 72 67 69 6E 67 20 58 31 20 74 79 70 65 2D 43 20 31 D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 69 00 00 00 00 13 00 00 F5 [00:03:14]Write i2c OK [00:03:14]MH_I2C_Read... [00:03:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:15]Read from MH i2c: E2 [00:03:15]MH_I2C_Read... [00:03:15]Read from MH i2c: E2 03 00 [00:03:15]MH_I2C_Read... [00:03:15]Read from MH i2c: E2 03 00 36 00 00 90 00 AA [00:03:15]RAPDU: 90 00 [00:03:15]wFMCommunicate OK [00:03:15]wFMCommunicate request_size=255 [00:03:15]MH_SAM_APDU [00:03:15]CAPDU: 80 0D 02 02 FA 04 06 00 DC 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 38 30 30 33 37 37 32 36 36 33 38 06 04 34 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 53 4D 61 72 6B 65 74 20 53 41 4D 2D 30 39 31 32 20 D1 80 D0 B0 D0 B7 D1 8A D0 B5 D0 BC D1 8B 20 41 55 58 2F 41 55 58 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 5E 00 00 00 00 13 04 06 00 EC 5E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 38 30 30 33 37 37 32 34 33 31 33 06 04 37 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 53 4D 61 72 6B 65 74 20 53 4D 2D 33 30 31 31 20 D0 B2 D1 8B D1 85 D0 BE D0 B4 20 39 30 20 D0 B3 D1 80 D0 B0 D0 B4 2E 74 69 70 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 85 00 00 00 00 [00:03:15]Write to MH i2c: E2 02 01 37 00 80 0D 02 02 FA 00 04 06 00 DC 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 38 30 30 33 37 37 32 36 36 33 38 06 04 34 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 53 4D 61 72 6B 65 74 20 53 41 4D 2D 30 39 31 32 20 D1 80 D0 B0 D0 B7 D1 8A D0 B5 D0 BC D1 8B 20 41 55 58 2F 41 55 58 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 5E 00 00 00 00 13 04 06 00 EC 5E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 38 30 30 33 37 37 32 34 33 31 33 06 04 37 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 53 4D 61 72 6B 65 74 20 53 4D 2D 33 30 31 31 20 D0 B2 D1 8B D1 85 D0 BE D0 B4 20 39 30 20 D0 B3 D1 80 D0 B0 D0 B4 2E 74 69 70 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 85 00 00 00 00 00 00 1A [00:03:15]Write i2c OK [00:03:15]MH_I2C_Read... [00:03:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:15]Read from MH i2c: E2 [00:03:15]MH_I2C_Read... [00:03:15]Read from MH i2c: E2 03 00 [00:03:15]MH_I2C_Read... [00:03:15]Read from MH i2c: E2 03 00 37 00 00 90 00 AB [00:03:15]RAPDU: 90 00 [00:03:15]wFMCommunicate OK [00:03:15]wFMCommunicate request_size=255 [00:03:15]MH_SAM_APDU [00:03:15]CAPDU: 80 0D 02 02 FA 13 04 06 00 FC 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 30 37 32 36 06 04 31 00 D0 9A D0 B0 D1 80 2E 20 D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 20 31 31 2E 33 D0 B3 2F 35 30 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 58 02 00 00 00 00 13 04 06 00 60 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 08 00 34 36 30 33 34 35 39 35 06 04 41 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 43 68 75 70 61 20 D0 BD 2F D0 BF D0 B0 D0 BB 20 D1 84 D1 80 2E D0 BC D0 B8 D0 BA D1 81 2C D1 81 D0 BE D0 BA 20 D0 BA D0 BE D0 BB D1 8B 20 31 32 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 C4 09 00 [00:03:15]Write to MH i2c: E2 02 01 38 00 80 0D 02 02 FA 00 13 04 06 00 FC 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 30 37 32 36 06 04 31 00 D0 9A D0 B0 D1 80 2E 20 D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 20 31 31 2E 33 D0 B3 2F 35 30 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 58 02 00 00 00 00 13 04 06 00 60 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 08 00 34 36 30 33 34 35 39 35 06 04 41 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 43 68 75 70 61 20 D0 BD 2F D0 BF D0 B0 D0 BB 20 D1 84 D1 80 2E D0 BC D0 B8 D0 BA D1 81 2C D1 81 D0 BE D0 BA 20 D0 BA D0 BE D0 BB D1 8B 20 31 32 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 BA [00:03:15]Write i2c OK [00:03:15]MH_I2C_Read... [00:03:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:16]Read from MH i2c: E2 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: E2 03 00 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: E2 03 00 38 00 00 90 00 AC [00:03:16]RAPDU: 90 00 [00:03:16]wFMCommunicate OK [00:03:16]wFMCommunicate request_size=255 [00:03:16]MH_SAM_APDU [00:03:16]CAPDU: 80 0D 02 02 FA 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 33 30 30 32 36 35 36 31 34 33 36 06 04 24 00 D0 9A D0 BE D0 BD 2E 42 41 42 59 46 4F 58 20 63 20 D0 BC D0 BE D0 BB 2E D0 BD D0 B0 D1 87 2E 31 32 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8F 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 33 30 33 32 06 04 4B 00 D0 9A D1 80 D0 B5 D0 BA D0 B5 D1 80 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 A4 D1 80 D0 B0 D0 BD D1 86 D1 83 D0 B7 D1 81 D0 BA D0 B8 D0 B9 20 D1 85 D1 80 D1 83 D1 81 D1 82 20 D1 81 20 D0 BA D1 83 D0 BD D0 B6 D1 83 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 [00:03:16]Write to MH i2c: E2 02 01 39 00 80 0D 02 02 FA 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 33 30 30 32 36 35 36 31 34 33 36 06 04 24 00 D0 9A D0 BE D0 BD 2E 42 41 42 59 46 4F 58 20 63 20 D0 BC D0 BE D0 BB 2E D0 BD D0 B0 D1 87 2E 31 32 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8F 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 33 30 33 32 06 04 4B 00 D0 9A D1 80 D0 B5 D0 BA D0 B5 D1 80 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 A4 D1 80 D0 B0 D0 BD D1 86 D1 83 D0 B7 D1 81 D0 BA D0 B8 D0 B9 20 D1 85 D1 80 D1 83 D1 81 D1 82 20 D1 81 20 D0 BA D1 83 D0 BD D0 B6 D1 83 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 00 00 18 [00:03:16]Write i2c OK [00:03:16]MH_I2C_Read... [00:03:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:16]Read from MH i2c: E2 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: E2 03 00 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: E2 03 00 39 00 00 90 00 AD [00:03:16]RAPDU: 90 00 [00:03:16]wFMCommunicate OK [00:03:16]wFMCommunicate request_size=255 [00:03:16]MH_SAM_APDU [00:03:16]CAPDU: 80 0D 02 02 FA 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 32 36 06 04 32 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 53 69 6C 76 65 72 20 53 65 6C 65 63 74 69 6F 6E FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 F4 60 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 40 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 32 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 5C 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 40 16 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 BA 75 E7 66 0E [00:03:16]Write to MH i2c: E2 02 01 3A 00 80 0D 02 02 FA 00 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 32 36 06 04 32 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 53 69 6C 76 65 72 20 53 65 6C 65 63 74 69 6F 6E FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 F4 60 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 40 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 32 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 5C 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 40 16 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 BA 75 E7 66 0E 00 00 69 [00:03:16]Write i2c OK [00:03:16]MH_I2C_Read... [00:03:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:17]Read from MH i2c: E2 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: E2 03 00 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: E2 03 00 3A 00 00 90 00 AE [00:03:17]RAPDU: 90 00 [00:03:17]wFMCommunicate OK [00:03:17]wFMCommunicate request_size=75 [00:03:17]MH_SAM_APDU [00:03:17]CAPDU: 80 0D 02 02 46 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 17 6A 01 00 35 04 06 00 4C E0 E6 18 8E 50 [00:03:17]Write to MH i2c: E2 4E 00 3B 00 80 0D 02 02 46 00 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 17 6A 01 00 35 04 06 00 4C E0 E6 18 8E 50 00 00 62 [00:03:17]Write i2c OK [00:03:17]MH_I2C_Read... [00:03:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:17]Read from MH i2c: E2 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: E2 03 00 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: E2 03 00 3B 00 00 90 00 AF [00:03:17]RAPDU: 90 00 [00:03:17]wFMCommunicate OK [00:03:17]wFMCommunicate request_size=4 [00:03:17]MH_SAM_APDU [00:03:17]CAPDU: 80 0D 03 02 [00:03:17]Write to MH i2c: E2 08 00 3C 00 80 0D 03 02 00 00 00 00 B7 [00:03:17]Write i2c OK [00:03:17]MH_I2C_Read... [00:03:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:03:17]Read from MH i2c: E2 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: E2 0B 00 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: E2 0B 00 3C 00 00 C9 71 A6 BD 63 46 9C 1E 90 00 B8 [00:03:17]RAPDU: C9 71 A6 BD 63 46 9C 1E 90 00 [00:03:17]wFMCommunicate OK [00:03:17]SAM_PROTO_SignData done [00:03:17]FM_MakeSignedData done [00:03:17]CreateOFDProtocolMessage [00:03:17]wFMCommunicate request_size=4 [00:03:17]MH_SAM_APDU [00:03:17]CAPDU: 80 11 00 00 [00:03:17]Write to MH i2c: E2 08 00 3D 00 80 11 00 00 00 00 00 00 B7 [00:03:17]Write i2c OK [00:03:17]MH_I2C_Read... [00:03:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:17]Read from MH i2c: E2 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: E2 17 00 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: E2 17 00 3D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 0E [00:03:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:03:17]wFMCommunicate OK [00:03:17]CreateOFDProtocolMessage done [00:03:17]OFDSenderStorePacket 92695 [00:03:17]StoreOFDPacket docnum=92695 [00:03:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 F6 0F 00 00 6C 5B EE 0F 47 76 5A 03 01 00 03 00 E2 0F 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 36 39 37 35 37 36 37 35 34 30 35 36 31 06 04 2D 00 46 49 42 49 45 20 43 4F 53 4D 4F 50 4F 4C 49 54 41 4E 20 34 30 30 30 20 D1 8D D0 BB 2E D1 81 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C0 D4 01 00 00 00 13 04 06 00 80 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 39 30 34 39 31 37 30 33 30 35 38 35 06 04 24 00 D0 81 D1 80 D1 86 D1 85 20 49 43 45 20 43 52 45 41 4D 20 4D 41 43 48 49 4E 45 20 4A 6F 68 6E 79 20 42 65 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 5B 00 00 00 00 13 04 06 00 CC 5B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8B 00 8A 04 0D 00 36 30 30 30 39 31 31 35 35 33 34 34 36 06 04 47 00 D0 90 D0 B2 D1 82 D0 BE D0 BC D0 BE D0 B1 D0 B8 D0 BB D1 8C D0 BD D0 BE D0 B5 20 D0 B7 D0 B0 D1 80 D1 8F D0 B4 D0 BD D0 BE D0 B5 20 D1 83 D1 81 D1 82 D1 80 D0 BE D0 B9 D1 81 D1 82 D0 B2 D0 BE 20 43 41 52 20 43 48 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 30 30 38 33 32 31 37 39 39 35 35 35 06 04 18 00 D0 90 2F D0 BB 20 4E 45 4F 4C 55 58 20 4E 33 38 30 20 35 57 20 31 32 56 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 32 39 06 04 20 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 33 20 4C 60 45 41 55 20 50 41 52 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 36 37 06 04 1B 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 37 20 41 51 55 41 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 38 31 06 04 1F 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 39 20 4C 41 20 43 4F 53 54 41 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 33 36 30 34 06 04 31 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 A1 D1 8B D1 80 20 D0 B8 20 D1 82 D1 80 D0 B0 D0 B2 D1 8B 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 37 36 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 39 30 20 FF 03 08 00 03 58 1B 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 14 CD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 35 39 30 36 35 33 34 30 31 32 35 30 30 06 04 2C 00 D0 90 D1 80 D0 BE D0 BC D0 B0 D1 82 D0 B8 D0 B7 D0 B0 D1 82 D0 BE D1 80 20 4B 32 20 56 65 6E 74 6F 20 52 61 69 6E 66 6F 72 65 73 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 5F 00 00 00 00 13 04 06 00 B4 5F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 30 30 38 30 33 32 32 31 33 37 06 04 36 00 D0 92 D0 B0 D1 84 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 81 20 D1 88 D0 BE D0 BA 20 D0 BD D0 B0 D1 87 D0 B8 D0 BD D0 BA D0 BE D0 B9 20 31 35 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 30 30 30 38 30 33 32 32 31 30 36 06 04 39 00 D0 92 D0 B0 D1 84 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 82 D0 BE D0 BF D0 BB D1 91 D0 BD D0 BE D0 B5 20 D0 BC D0 BE D0 BB D0 BE D0 BA D0 BE 20 31 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 [00:03:17]CheckFolder [00:03:17]dirname=/storage/ofd_packets [00:03:17]CheckFolder done [00:03:17]ProducePacketName [00:03:17]name=ofd_packets/00092695 [00:03:17]NVStorageSaveData ofd_packets/00092695 [00:03:17]File name is /storage/ofd_packets/00092695 [00:03:17]Write 4116 bytes [00:03:17]NVStorageSaveData done [00:03:17]OFDSenderStorePacket done [00:03:17]KKMCreateOFDPacket done [00:03:17]NVStorageSaveData kkm_last_timestamp [00:03:17]File name is /storage/kkm_last_timestamp [00:03:17]Write 4 bytes [00:03:17]NVStorageSaveData done [00:03:17]ExternCall_PrintAddStr [00:03:17]wPrintStart [00:03:17]Write to MH i2c: 01 00 00 3E 00 3E [00:03:17]Write i2c OK [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: 01 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: 01 07 00 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: 01 07 00 3E 00 00 00 00 00 00 FF 0F 53 [00:03:17]RasterBufferAndPrint [00:03:17]line Счет N : (3)127579 [00:03:17]line ИНН: 02508201610067 [00:03:17]line Контрольно-Кассовый Чек [00:03:17]line ПРОДАЖА [00:03:17]line Товар: 6975767540561 [00:03:17]line FIBIE COSMOPOLITAN 4000 эл.сигареты [00:03:17]line 2.000 * 1200.00 [00:03:17]line = 2400.00 [00:03:17]line НДС 12% НСП 1% [00:03:17]line > о реализуемом товаре [00:03:17]line Товар: 5904917030585 [00:03:17]line Ёрцх ICE CREAM MACHINE Johny Bee [00:03:17]line 1.000 * 235.00 [00:03:17]line = 235.00 [00:03:17]line НДС 12% НСП 1% [00:03:17]line > о реализуемом товаре [00:03:17]line Товар: 48744539 [00:03:17]line LD Compact Blue [00:03:17]line 1.000 * 134.00 [00:03:17]line = 134.00 [00:03:17]line НДС 12% НСП 1% [00:03:17]line > о реализуемом товаре [00:03:17]line Товар: 6000911553446 [00:03:17]line Автомобильное зарядное устройство CAR CH [00:03:17]line 2.000 * 300.00 [00:03:17]line = 600.00 [00:03:17]line НДС 12% НСП 1% [00:03:17]line > о реализуемом товаре [00:03:17]line Товар: 4870235681079 [00:03:17]line Grizzly волнистые Сладкий чили 55 гр [00:03:17]line 1.000 * 90.00 [00:03:17]line = 90.00 [00:03:17]line НДС 12% НСП 1% [00:03:17]line > о реализуемом товаре [00:03:17]line Товар: 4008321799555 [00:03:17]line А/л NEOLUX N380 5W 12V [00:03:17]line 1.000 * 195.00 [00:03:17]line = 195.00 [00:03:17]line НДС 12% НСП 1% [00:03:17]line > о реализуемом товаре [00:03:17]line Товар: 745240075929 [00:03:17]line Автопарфюм 3 L`EAU PAR [00:03:17]line 1.000 * 300.00 [00:03:17]line = 300.00 [00:03:17]line НДС 12% НСП 1% [00:03:17]line > о реализуемом товаре [00:03:17]line Товар: 745240075967 [00:03:17]line Автопарфюм 7 AQUA [00:03:17]line 1.000 * 300.00 [00:03:17]line = 300.00 [00:03:17]line НДС 12% НСП 1% [00:03:17]line > о реализуемом товаре [00:03:17]line Товар: 745240075981 [00:03:17]line Автопарфюм 9 LA COSTA [00:03:17]line 1.000 * 300.00 [00:03:17]line = 300.00 [00:03:17]line НДС 12% НСП 1% [00:03:17]line > о реализуемом товаре [00:03:17]line Товар: 4870209743604 [00:03:17]line Арахис BIG BOB Сыр и травы 50 гр [00:03:17]line 3.000 * 60.00 [00:03:17]line = 180.00 [00:03:17]line НДС 12% НСП 1% [00:03:17]line > о реализуемом товаре [00:03:17]OFD Sender: Processing packet 92695 [packets to send 63, broken 62] [00:03:17]ProducePacketName [00:03:17]name=ofd_packets/00092695 [00:03:17]OFD Sender: To server: pG, [00:03:17]CommunicateWithHost lk.salyk.kg:30040 [00:03:17]ConnectInit lk.salyk.kg [00:03:17]line Товар: 4630007400976 [00:03:17]line Арахис жарен Караван орехов Стандарт 90 [00:03:17]line 7.000 * 75.00 [00:03:17]line = 525.00 [00:03:17]line НДС 12% НСП 1% [00:03:17]line > о реализуемом товаре [00:03:17]line Товар: 5906534012500 [00:03:17]line Ароматизатор K2 Vento Rainforest [00:03:17]line 1.000 * 245.00 [00:03:17]line = 245.00 [00:03:17]line НДС 12% НСП 1% [00:03:17]line > о реализуемом товаре [00:03:17]line Товар: 4600080322137 [00:03:17]line Ваф Коровка с шок начинкой 150г [00:03:17]line 2.000 * 115.00 [00:03:17]line = 230.00 [00:03:17]line НДС 12% НСП 1% [00:03:17]line > о реализуемом товаре [00:03:17]line Товар: 4600080322106 [00:03:17]line Ваф Коровка топлёное молоко 150г [00:03:17]line 1.000 * 115.00 [00:03:17]line = 115.00 [00:03:17]line НДС 12% НСП 1% [00:03:17]line > о реализуемом товаре [00:03:17]line Товар: 4660013331551 [00:03:17]line Ваф ст ежевика черника [00:03:17]line 1.000 * 85.00 [00:03:17]line = 85.00 [00:03:17]line НДС 12% НСП 1% [00:03:17]line > о реализуемом товаре [00:03:17]line Товар: 4823077625602 [00:03:17]line Вафли ROSHEN WAFERS CHOKO 216 гр [00:03:17]line 1.000 * 185.00 [00:03:17]line = 185.00 [00:03:17]line НДС 12% НСП 1% [00:03:17]line > о реализуемом товаре [00:03:17]line Товар: 4870001571023 [00:03:17]line Вода ASU пит н.газ клубн,киви ПЭТ 0,5л [00:03:17]line 2.000 * 65.00 [00:03:17]line = 130.00 [00:03:17]line НДС 12% НСП 1% [00:03:17]line > о реализуемом товаре [00:03:17]line Товар: 4870002326172 [00:03:17]line Вода ASU пит н.газ лимон ПЭТ 1л [00:03:17]line 1.000 * 100.00 [00:03:17]line = 100.00 [00:03:17]line НДС 12% НСП 1% [00:03:17]line > о реализуемом товаре [00:03:17]line Товар: 4870002328398 [00:03:17]line Вода ASU пит н.газ мята ПЭТ 1л [00:03:17]line 1.000 * 100.00 [00:03:17]line = 100.00 [00:03:17]line НДС 12% НСП 1% [00:03:17]line > о реализуемом товаре [00:03:17]line Товар: 4870001571535 [00:03:17]line Вода ASU пит н.газ персик ПЭТ 0,5л [00:03:17]line 1.000 * 65.00 [00:03:17]line = 65.00 [00:03:17]line НДС 12% НСП 1% [00:03:17]line > о реализуемом товаре [00:03:17]line Товар: 5449000066473 [00:03:17]line Вода Бонаква 1л [00:03:17]line 8.000 * 42.00 [00:03:17]line = 336.00 [00:03:17]line НДС 12% НСП 1% [00:03:17]line > о реализуемом товаре [00:03:17]line Товар: 4700000310036 [00:03:17]line Вода Жалалабат 27 0,5л [00:03:17]line 10.000 * 40.00 [00:03:17]line = 400.00 [00:03:17]line НДС 12% НСП 1% [00:03:17]line > о реализуемом товаре [00:03:17]line Товар: 87345155 [00:03:17]line Драже mentos жев fresh cola ролл 37г [00:03:17]line 12.000 * 75.00 [00:03:17]line = 900.00 [00:03:17]line НДС 12% НСП 1% [00:03:17]line > о реализуемом товаре [00:03:17]line Товар: 3179110001140 [00:03:17]line Зажигалка Cricket FirePower м/фун [00:03:17]line 1.000 * 173.00 [00:03:17]line = 173.00 [00:03:17]line НДС 12% НСП 1% [00:03:17]line > о реализуемом товаре [00:03:17]line Товар: 6957531032007 [00:03:17]line Кабель hoco RAP CHAR X1 Аpple 1м [00:03:17]line 5.000 * 271.00 [00:03:17]line = 1355.00 [00:03:17]line НДС 12% НСП 1% [00:03:17]line > о реализуемом товаре [00:03:18]line Товар: 6957531032045 [00:03:18]line Кабель hoco rapid charging X1 type-C 1м [00:03:18]line 1.000 * 271.00 [00:03:18]line = 271.00 [00:03:18]line НДС 12% НСП 1% [00:03:18]line > о реализуемом товаре [00:03:18]line Товар: 4680037726638 [00:03:18]line Кабель SMarket SAM-0912 разъемы AUX/AUX [00:03:18]line 1.000 * 243.00 [00:03:18]line = 243.00 [00:03:18]line НДС 12% НСП 1% [00:03:18]line > о реализуемом товаре [00:03:18]line Товар: 4680037724313 [00:03:18]line Кабель SMarket SM-3011 выход 90 град.tip [00:03:18]line 1.000 * 343.00 [00:03:18]line = 343.00 [00:03:18]line НДС 12% НСП 1% [00:03:18]line > о реализуемом товаре [00:03:18]line Товар: 4620017450726 [00:03:18]line Кар. Страйк ассорти 11.3г/50шт [00:03:18]line 4.000 * 6.00 [00:03:18]line = 24.00 [00:03:18]line НДС 12% НСП 1% [00:03:18]line > о реализуемом товаре [00:03:18]line Товар: 46034595 [00:03:18]line Карамель Chupa н/пал фр.микс,сок колы 12 [00:03:18]line 4.000 * 25.00 [00:03:18]line = 100.00 [00:03:18]line НДС 12% НСП 1% [00:03:18]line > о реализуемом товаре [00:03:18]line Товар: 4630026561436 [00:03:18]line Кон.BABYFOX c мол.нач.120г [00:03:18]line 3.000 * 110.00 [00:03:18]line = 330.00 [00:03:18]line НДС 12% НСП 1% [00:03:18]line > о реализуемом товаре [00:03:18]line Товар: 4603290003032 [00:03:18]line Крекер Яшкино Французский хруст с кунжут [00:03:18]line 1.000 * 70.00 [00:03:18]line = 70.00 [00:03:18]line НДС 12% НСП 1% [00:03:18]line > о реализуемом товаре [00:03:18]line Товар: 4870216765026 [00:03:18]line Нагр.Таб.Палоч. HEETS Silver Selection [00:03:18]line 25.000 * 141.00 [00:03:18]line = 3525.00 [00:03:18]line НДС 12% НСП 1% [00:03:18]line > о реализуемом товаре [00:03:18]line ИТОГО: 14584.00 [00:03:18]line НСП 1% : 129.02 [00:03:18]line НДС 12% : 1548.73 [00:03:18]line Наличными: 0.00 [00:03:18]line Безнал.: 14584.00 [00:03:18]line Место: АЗС № 5 "Партнер Нефть" [00:03:18]Connected sock=8 [00:03:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 F6 0F 00 00 6C 5B EE 0F 47 76 5A 03 01 00 03 00 E2 0F 1E 04 01 00 01 23 line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [00:03:18]04 line СНО: Общий режим [00:03:18]71 line Чек 143 16.09.2024 00:03 [00:03:18]00 line Смена: 507 ФФД: 1.0 [00:03:18]8A line ЗНМ: 03000000022 [00:03:18]04 line РНМ: 0000000000091423 [00:03:18]0D line Версия ККМ: 001 [00:03:18]00 line Платежная система: О! деньги [00:03:18]36 line ФМ: 0000000000874692 [00:03:18]39 line ФД: 92695 [00:03:18]37 line ФПД: 84528816754256 [00:03:18]35 line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T000306&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92695&fm=84528816754256&tin=02508201610067®Number=0000000000091423&sum=1458400 [00:03:18]37 36 37 35 34 30 35 36 31 06 04 2D 00 line 0 [00:03:18]46 49 42 49 45 20 43 4F 53 4D 4F 50 4F 4C written 0, free lines is 4095 [00:03:18]49 54 41 4E 20 34 30 30 30 20 D1 8D D0 BB 2E D1 81 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C0 D4 01 00 00 00 13 04 06 00 80 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 39 30 34 39 31 37 30 33 30 35 38 35 06 04 24 00 D0 81 D1 80 D1 86 D1 85 20 49 43 45 20 43 52 45 41 4D 20 4D 41 43 48 49 4E 45 20 4A 6F 68 6E 79 20 42 65 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 5B 00 00 00 00 13 04 06 00 CC 5B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8B 00 8A 04 0D 00 36 30 30 30 39 31 31 35 35 33 34 34 36 06 04 47 00 D0 90 D0 B2 D1 82 D0 BE D0 BC D0 BE D0 B1 D0 B8 D0 BB D1 8C D0 BD D0 BE D0 B5 20 D0 B7 D0 B0 D1 80 D1 8F D0 B4 D0 BD D0 BE D0 B5 20 D1 83 D1 81 D1 82 D1 80 D0 BE D0 B9 D1 81 D1 82 D0 B2 D0 BE 20 43 41 52 20 43 48 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 30 30 38 33 32 31 37 39 39 35 35 35 06 04 18 00 D0 90 2F D0 BB 20 4E 45 4F 4C 55 58 20 4E 33 38 30 20 35 57 20 31 32 56 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 32 39 06 04 20 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 33 20 4C 60 45 41 55 20 50 41 52 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 36 37 06 04 1B 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 37 20 41 51 55 41 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 38 31 06 04 1F 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 39 20 4C 41 20 43 4F 53 54 41 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 33 36 30 34 06 04 31 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 A1 D1 8B D1 80 20 D0 B8 20 D1 82 D1 80 D0 B0 D0 B2 D1 8B 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 37 36 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 39 30 20 FF 03 08 00 03 58 1B 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 14 CD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 35 39 30 36 35 33 34 30 31 32 35 30 30 06 04 2C 00 D0 90 D1 80 D0 BE D0 BC D0 B0 D1 82 D0 B8 D0 B7 D0 B0 D1 82 D0 BE D1 80 20 4B 32 20 56 65 6E 74 6F 20 52 61 69 6E 66 6F 72 65 73 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 5F 00 00 00 00 13 04 06 00 B4 5F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 30 30 38 30 33 32 32 31 33 37 06 04 36 00 D0 92 D0 B0 D1 84 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 81 20 D1 88 D0 BE D0 BA 20 D0 BD D0 B0 D1 87 D0 B8 D0 BD D0 BA D0 BE D0 B9 20 31 35 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 30 30 30 38 30 33 32 32 31 30 36 06 04 39 00 D0 92 D0 B0 D1 84 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 82 D0 BE D0 BF D0 BB D1 91 D0 BD D0 BE D0 B5 20 D0 BC D0 BE D0 BB D0 BE D0 BA D0 BE 20 31 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 35 35 31 06 04 29 00 D0 92 D0 B0 D1 84 20 D1 81 D1 82 20 D0 B5 D0 B6 D0 B5 D0 B2 D0 B8 D0 BA D0 B0 20 D1 87 D0 B5 D1 80 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 38 32 33 30 37 37 36 32 35 36 30 32 06 04 27 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 52 4F 53 48 45 4E 20 57 41 46 45 52 53 20 43 48 4F 4B 4F 20 32 31 36 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 int [00:03:19]00 Write to MH i2c: 00 01 00 00 Write i2c OK [00:03:19]00 MH_I2C_Read... [00:03:19]D3 00 00 F2 D3 03 [00:03:19]01 00 01 F6 03 01 00 Write i2c OK [00:03:19]01 MH_I2C_Read... [00:03:19]BC 04 01 00 01 23 04 75 00 8A 04 0D 00 Read from MH i2c: 34 DD 38 [00:03:19]37 MH_I2C_Read... [00:03:19]Read from MH i2c: Read from MH i2c: DD DD [00:03:19]05 MH_I2C_Read... [00:03:19]00 30 [00:03:19]30 answer for other command [DD] [00:03:19]30 MH Int Process stopped [00:03:19]32 33 32 38 33 39 38 06 04 31 00 D0 92 D0 BE D0 B4 Read from MH i2c: D0 DD B0 05 20 00 41 [00:03:20]53 MH_I2C_Read... [00:03:20]55 Read from MH i2c: 20 DD D0 05 BF 00 D0 D3 B8 00 D1 00 82 1E 20 00 D0 DD BD 07 B6 2E [00:03:20]D0 answer with wrong packet_num 00D3 - expected 00D4 [00:03:20]B3 process_action_free close_receipt [00:03:20]D0 json_value_free [00:03:20]B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 json_value_free done [00:03:20]20 process_json_proto returns [00:03:20]31 Send response to host [00:03:20]D0 BB {"protocol":"kg_v1.0","response":{"error":1039,"error_desc":"CoCPU protocol format"}} [00:03:20]FF free response buf [00:03:20]03 execute_script done [00:03:20]08 execute_script returns [00:03:20]free content buf [00:03:20]Sock 9.Close socket [00:03:20]Sock 9.Thread stoped [00:03:20]00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 40 83 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 08 00 38 37 33 34 35 31 35 35 06 04 31 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 6D 65 6E 74 6F 73 20 D0 B6 D0 B5 D0 B2 20 66 72 65 73 68 20 63 6F 6C 61 20 D1 80 D0 BE D0 BB D0 BB 20 33 37 D0 B3 FF 03 08 00 03 E0 2E 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 90 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 33 31 37 39 31 31 30 30 30 31 31 34 30 06 04 2E 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 46 69 72 65 50 6F 77 65 72 20 D0 BC 2F D1 84 D1 83 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 43 00 00 00 00 13 04 06 00 94 43 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 36 39 35 37 35 33 31 30 33 32 30 30 37 06 04 28 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 68 6F 63 6F 20 52 41 50 20 43 48 41 52 20 58 31 20 D0 90 70 70 6C 65 20 31 D0 BC FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 DC 69 00 00 00 00 13 04 06 00 4C 11 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 36 39 35 37 35 33 31 30 33 32 30 34 35 06 04 2E 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 68 6F 63 6F 20 72 61 70 69 64 20 63 68 61 72 67 69 6E 67 20 58 31 20 74 79 70 65 2D 43 20 31 D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 69 00 00 00 00 13 04 06 00 DC 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 38 30 30 33 37 37 32 36 36 33 38 06 04 34 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 53 4D 61 72 6B 65 74 20 53 41 4D 2D 30 39 31 32 20 D1 80 D0 B0 D0 B7 D1 8A D0 B5 D0 BC D1 8B 20 41 55 58 2F 41 55 58 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 5E 00 00 00 00 13 04 06 00 EC 5E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 38 30 30 33 37 37 32 34 33 31 33 06 04 37 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 53 4D 61 72 6B 65 74 20 53 4D 2D 33 30 31 31 20 D0 B2 D1 8B D1 85 D0 BE D0 B4 20 39 30 20 D0 B3 D1 80 D0 B0 D0 B4 2E 74 69 70 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 85 00 00 00 00 13 04 06 00 FC 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 30 37 32 36 06 04 31 00 D0 9A D0 B0 D1 80 2E 20 D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 20 31 31 2E 33 D0 B3 2F 35 30 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 58 02 00 00 00 00 13 04 06 00 60 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 08 00 34 36 30 33 34 35 39 35 06 04 41 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 43 68 75 70 61 20 D0 BD 2F D0 BF D0 B0 D0 BB 20 D1 84 D1 80 2E D0 BC D0 B8 D0 BA D1 81 2C D1 81 D0 BE D0 BA 20 D0 BA D0 BE D0 BB D1 8B 20 31 32 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 33 30 30 32 36 35 36 31 34 33 36 06 04 24 00 D0 9A D0 BE D0 BD 2E 42 41 42 59 46 4F 58 20 63 20 D0 BC D0 BE D0 BB 2E D0 BD D0 B0 D1 87 2E 31 32 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8F 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 33 30 33 32 06 04 4B 00 D0 9A D1 80 D0 B5 D0 BA D0 B5 D1 80 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 A4 D1 80 D0 B0 D0 BD D1 86 D1 83 D0 B7 D1 81 D0 BA D0 B8 D0 B9 20 D1 85 D1 80 D1 83 D1 81 D1 82 20 D1 81 20 D0 BA D1 83 D0 BD D0 B6 D1 83 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 32 36 06 04 32 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 53 69 6C 76 65 72 20 53 65 6C 65 63 74 69 6F 6E FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 F4 60 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 40 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 32 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 5C 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 40 16 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 BA 75 E7 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 17 6A 01 00 35 04 06 00 4C E0 E6 18 8E 50 C9 71 A6 BD 63 46 9C 1E [00:03:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 B6 C7 47 00 CD 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 17 6A 01 00 F4 03 04 00 3D 1E E7 66 B6 04 01 00 00 18 13 77 4E 28 30 6A AD [00:03:21]CommunicateWithHost err = 0 [00:03:21]CheckOFDResponse [00:03:21]1017 (14) - 77093643461234 [00:03:21]1041 (16) - 0000000000874692 [00:03:21]1040 (4) - 92695 [00:03:21]1012 (4) - 15.09.2024 17:49 [00:03:21]1206 (1) - 0 [00:03:21]OFD Sender: Remove packet 92695 [00:03:21]ProducePacketName [00:03:21]name=ofd_packets/00092695 [00:03:21]NVStorageDeleteData [00:03:22]OFD Sender: No OFD packet to send [00:03:27]OFD Sender: No OFD packet to send [00:03:32]OFD Sender: No OFD packet to send [00:03:37]OFD Sender: No OFD packet to send [00:03:42]OFD Sender: No OFD packet to send [00:03:47]OFD Sender: No OFD packet to send [00:03:50]accept exits with 10 [00:03:50]New connection [00:03:50]New thread 3066752356 created [00:03:50]Thread 3066608996 joined [00:03:50]Waiting for new connection... [00:03:50] Sock 10.Parse request [00:03:50]Sock 10.Check first char [00:03:50]Sock 10.First char is OK [00:03:50]request: POST /json_proto HTTP/1.0 [00:03:50]Method: POST [00:03:50]URL: /json_proto [00:03:50]Method is POST - this is cgi request [00:03:50]url: /json_proto [00:03:50]query_string will be loaded in cgi processing [00:03:50]execute_cgi json_proto POST (null) [00:03:50]execute_cgi path=json_proto method=POST [00:03:50]POST find Content-Length [00:03:50]Host: 172.17.57.71:8080 [00:03:50]Content-Length: 215 [00:03:50]Content-Type: application/json [00:03:50] [00:03:50]POST finish read [00:03:50]Found Content-Length = 215 [00:03:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:50]execute_script... [00:03:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:50]POST & json_proto [00:03:50]process_json_proto [00:03:50]json parsed OK: [00:03:50]protocol is kg_v1.0 [00:03:50]action value=get_value [00:03:50]process_action get_value [00:03:50]cmd_get_value [00:03:50]process_action get_value done [00:03:50]requested_data is exist [00:03:50]produce_requested_data [00:03:50]requested_item kkm.sn is exist - process it [00:03:50]requested_item kkm.ver is exist - process it [00:03:50]requested_item fm.sn is exist - process it [00:03:50]wFMCommunicate request_size=4 [00:03:50]MH_SAM_APDU [00:03:50]CAPDU: 80 11 00 00 [00:03:50]Write to MH i2c: E2 08 00 D5 00 80 11 00 00 00 00 00 00 4F [00:03:50]Write i2c OK [00:03:50]MH_I2C_Read... [00:03:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:50]Read from MH i2c: E2 [00:03:50]MH_I2C_Read... [00:03:50]Read from MH i2c: E2 17 00 [00:03:50]MH_I2C_Read... [00:03:50]Read from MH i2c: E2 17 00 D5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A6 [00:03:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:03:50]wFMCommunicate OK [00:03:50]requested_item fd.num is exist - process it [00:03:50]SAM_PROTO_GetFieldsCounters [00:03:50]wFMCommunicate request_size=4 [00:03:50]MH_SAM_APDU [00:03:50]CAPDU: 80 13 00 00 [00:03:50]Write to MH i2c: E2 08 00 D6 00 80 13 00 00 00 00 00 00 52 [00:03:50]Write i2c OK [00:03:50]MH_I2C_Read... [00:03:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:50]Read from MH i2c: E2 [00:03:50]MH_I2C_Read... [00:03:50]Read from MH i2c: E2 62 00 [00:03:50]MH_I2C_Read... [00:03:50]Read from MH i2c: E2 62 00 D6 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 17 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [00:03:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 17 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:03:51]wFMCommunicate OK [00:03:51]SAM_PROTO_GetFieldsCounters done [00:03:51]requested_item shift.num is exist - process it [00:03:51]requested_item shift.opened is exist - process it [00:03:51]req_shift_opened [00:03:51]FM_GetShiftState [00:03:51]SAM_PROTO_GetShiftState [00:03:51]wFMCommunicate request_size=4 [00:03:51]MH_SAM_APDU [00:03:51]CAPDU: 80 13 01 00 [00:03:51]Write to MH i2c: E2 08 00 D7 00 80 13 01 00 00 00 00 00 54 [00:03:51]Write i2c OK [00:03:51]MH_I2C_Read... [00:03:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:51]Read from MH i2c: E2 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: E2 0E 00 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: E2 0E 00 D7 00 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 D6 [00:03:51]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [00:03:51]wFMCommunicate OK [00:03:51]SAM_PROTO_GetShiftState done [00:03:51]FM_GetShiftState done [00:03:51]req_shift_opened done [00:03:51]requested_item shift.open_date is exist - process it [00:03:51]req_shift_open_date [00:03:51]req_shift_open_date done [00:03:51]produce_requested_data done [00:03:51]produce_requested_data return {"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92695,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [00:03:51]process_action_free get_value [00:03:51]json_value_free [00:03:51]json_value_free done [00:03:51]process_json_proto returns [00:03:51]Send response to host [00:03:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92695,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [00:03:51]free response buf [00:03:51]execute_script done [00:03:51]execute_script returns [00:03:51]free content buf [00:03:51]Sock 10.Close socket [00:03:51]Sock 10.Thread stoped [00:03:51]accept exits with 6 [00:03:51]New connection [00:03:51]New thread 3066608996 created [00:03:51]Thread 3066752356 joined [00:03:51]Waiting for new connection... [00:03:51] Sock 6.Parse request [00:03:51]Sock 6.Check first char [00:03:51]Sock 6.First char is OK [00:03:51]request: POST /json_proto HTTP/1.0 [00:03:51]Method: POST [00:03:51]URL: /json_proto [00:03:51]Method is POST - this is cgi request [00:03:51]url: /json_proto [00:03:51]query_string will be loaded in cgi processing [00:03:51]execute_cgi json_proto POST (null) [00:03:51]execute_cgi path=json_proto method=POST [00:03:51]POST find Content-Length [00:03:51]Host: 172.17.57.71:8080 [00:03:51]Content-Length: 331 [00:03:51]Content-Type: application/json [00:03:51] [00:03:51]POST finish read [00:03:51]Found Content-Length = 331 [00:03:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:03:51]execute_script... [00:03:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:03:51]POST & json_proto [00:03:51]process_json_proto [00:03:51]json parsed OK: [00:03:51]protocol is kg_v1.0 [00:03:51]action value=get_value [00:03:51]process_action get_value [00:03:51]cmd_get_value [00:03:51]process_action get_value done [00:03:51]requested_data is exist [00:03:51]produce_requested_data [00:03:51]requested_item fm.sale.total is exist - process it [00:03:51]SAM_PROTO_GetFMData [00:03:51]wFMCommunicate request_size=4 [00:03:51]MH_SAM_APDU [00:03:51]CAPDU: 80 13 03 00 [00:03:51]Write to MH i2c: E2 08 00 D8 00 80 13 03 00 00 00 00 00 57 [00:03:51]Write i2c OK [00:03:51]MH_I2C_Read... [00:03:51]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:03:51]Read from MH i2c: E2 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: E2 FD 00 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: E2 FD 00 D8 00 00 C5 04 85 04 C1 04 6E 04 04 00 21 66 01 00 69 04 A1 00 6F 04 04 00 CD 62 01 00 B1 04 04 00 80 B7 27 B3 70 04 04 00 B0 CE 84 83 72 04 04 00 D0 E8 A2 2F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5A D0 06 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 21 C0 95 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 54 03 00 00 B1 04 04 00 EC 99 7A 04 70 04 04 00 98 B8 41 04 72 04 03 00 54 E1 38 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C8 79 EF 03 09 90 00 B8 [00:03:51]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 21 66 01 00 69 04 A1 00 6F 04 04 00 CD 62 01 00 B1 04 04 00 80 B7 27 B3 70 04 04 00 B0 CE 84 83 72 04 04 00 D0 E8 A2 2F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5A D0 06 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 21 C0 95 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 54 03 00 00 B1 04 04 00 EC 99 7A 04 70 04 04 00 98 B8 41 04 72 04 03 00 54 E1 38 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C8 79 EF 03 09 90 00 [00:03:52]wFMCommunicate OK [00:03:52]wFMCommunicate request_size=4 [00:03:52]MH_SAM_APDU [00:03:52]CAPDU: 80 17 00 00 [00:03:52]Write to MH i2c: E2 08 00 D9 00 80 17 00 00 00 00 00 00 59 [00:03:52]Write i2c OK [00:03:52]MH_I2C_Read... [00:03:52]OFD Sender: No OFD packet to send [00:03:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:52]Read from MH i2c: E2 [00:03:52]MH_I2C_Read... [00:03:52]Read from MH i2c: E2 FD 00 [00:03:52]MH_I2C_Read... [00:03:52]Read from MH i2c: E2 FD 00 D9 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AA 25 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 E8 [00:03:52]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AA 25 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:03:52]wFMCommunicate OK [00:03:52]wFMCommunicate request_size=4 [00:03:52]MH_SAM_APDU [00:03:52]CAPDU: 80 17 00 00 [00:03:52]Write to MH i2c: E2 08 00 DA 00 80 17 00 00 00 00 00 00 5A [00:03:52]Write i2c OK [00:03:52]MH_I2C_Read... [00:03:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:52]Read from MH i2c: E2 [00:03:52]MH_I2C_Read... [00:03:52]Read from MH i2c: E2 FD 00 [00:03:52]MH_I2C_Read... [00:03:52]Read from MH i2c: E2 FD 00 DA 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 6C [00:03:53]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:03:53]wFMCommunicate OK [00:03:53]wFMCommunicate request_size=4 [00:03:53]MH_SAM_APDU [00:03:53]CAPDU: 80 17 00 00 [00:03:53]Write to MH i2c: E2 08 00 DB 00 80 17 00 00 00 00 00 00 5B [00:03:53]Write i2c OK [00:03:53]MH_I2C_Read... [00:03:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:53]Read from MH i2c: E2 [00:03:53]MH_I2C_Read... [00:03:53]Read from MH i2c: E2 FD 00 [00:03:53]MH_I2C_Read... [00:03:53]Read from MH i2c: E2 FD 00 DB 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 E7 [00:03:53]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:03:53]wFMCommunicate OK [00:03:53]wFMCommunicate request_size=4 [00:03:53]MH_SAM_APDU [00:03:53]CAPDU: 80 17 00 00 [00:03:53]Write to MH i2c: E2 08 00 DC 00 80 17 00 00 00 00 00 00 5C [00:03:53]Write i2c OK [00:03:53]MH_I2C_Read... [00:03:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:03:54]Read from MH i2c: E2 [00:03:54]MH_I2C_Read... [00:03:54]Read from MH i2c: E2 E2 00 [00:03:54]MH_I2C_Read... [00:03:54]Read from MH i2c: E2 E2 00 DC 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 3A [00:03:54]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:03:54]wFMCommunicate OK [00:03:54]SAM_PROTO_GetFMData done [00:03:54]requested_item fm.sale_refund.total is exist - process it [00:03:54]requested_item fm.buy.total is exist - process it [00:03:54]requested_item shift.sale.total is exist - process it [00:03:54]SAM_PROTO_GetShiftData [00:03:54]wFMCommunicate request_size=4 [00:03:54]MH_SAM_APDU [00:03:54]CAPDU: 80 13 02 00 [00:03:54]Write to MH i2c: E2 08 00 DD 00 80 13 02 00 00 00 00 00 5B [00:03:54]Write i2c OK [00:03:54]MH_I2C_Read... [00:03:54]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:03:54]Read from MH i2c: E2 [00:03:54]MH_I2C_Read... [00:03:54]Read from MH i2c: E2 FD 00 [00:03:54]MH_I2C_Read... [00:03:54]Read from MH i2c: E2 FD 00 DD 00 00 B8 04 AA 04 B4 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8D 00 00 00 B1 04 03 00 47 36 5A 70 04 03 00 64 9C 31 72 04 03 00 E3 99 28 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 9D 94 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E CC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 7C B8 02 70 04 03 00 7C B8 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F7 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 17 [00:03:55]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8D 00 00 00 B1 04 03 00 47 36 5A 70 04 03 00 64 9C 31 72 04 03 00 E3 99 28 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 9D 94 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E CC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 7C B8 02 70 04 03 00 7C B8 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F7 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:03:55]wFMCommunicate OK [00:03:55]wFMCommunicate request_size=4 [00:03:55]MH_SAM_APDU [00:03:55]CAPDU: 80 17 00 00 [00:03:55]Write to MH i2c: E2 08 00 DE 00 80 17 00 00 00 00 00 00 5E [00:03:55]Write i2c OK [00:03:55]MH_I2C_Read... [00:03:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:55]Read from MH i2c: E2 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 FD 00 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 FD 00 DE 00 00 0B 00 F6 03 01 00 01 F7 03 02 00 29 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 BE [00:03:55]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 29 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:03:56]wFMCommunicate OK [00:03:56]wFMCommunicate request_size=4 [00:03:56]MH_SAM_APDU [00:03:56]CAPDU: 80 17 00 00 [00:03:56]Write to MH i2c: E2 08 00 DF 00 80 17 00 00 00 00 00 00 5F [00:03:56]Write i2c OK [00:03:56]MH_I2C_Read... [00:03:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:56]Read from MH i2c: E2 [00:03:56]MH_I2C_Read... [00:03:56]Read from MH i2c: E2 FD 00 [00:03:56]MH_I2C_Read... [00:03:56]Read from MH i2c: E2 FD 00 DF 00 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 01 [00:03:56]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [00:03:56]wFMCommunicate OK [00:03:56]wFMCommunicate request_size=4 [00:03:56]MH_SAM_APDU [00:03:56]CAPDU: 80 17 00 00 [00:03:56]Write to MH i2c: E2 08 00 E0 00 80 17 00 00 00 00 00 00 60 [00:03:56]Write i2c OK [00:03:56]MH_I2C_Read... [00:03:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:56]Read from MH i2c: E2 [00:03:56]MH_I2C_Read... [00:03:56]Read from MH i2c: E2 FD 00 [00:03:56]MH_I2C_Read... [00:03:56]Read from MH i2c: E2 FD 00 E0 00 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 E9 [00:03:57]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 OFD Sender: No OFD packet to send [00:03:57]03 00 00 90 00 [00:03:57]wFMCommunicate OK [00:03:57]wFMCommunicate request_size=4 [00:03:57]MH_SAM_APDU [00:03:57]CAPDU: 80 17 00 00 [00:03:57]Write to MH i2c: E2 08 00 E1 00 80 17 00 00 00 00 00 00 61 [00:03:57]Write i2c OK [00:03:57]MH_I2C_Read... [00:03:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:03:57]Read from MH i2c: E2 [00:03:57]MH_I2C_Read... [00:03:57]Read from MH i2c: E2 D5 00 [00:03:57]MH_I2C_Read... [00:03:57]Read from MH i2c: E2 D5 00 E1 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 42 [00:03:57]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:03:58]wFMCommunicate OK [00:03:58]SAM_PROTO_GetShiftData done [00:03:58]requested_item shift.sale.total_cash is exist - process it [00:03:58]requested_item shift.sale_refund.total is exist - process it [00:03:58]requested_item shift.sale_refund.total_cash is exist - process it [00:03:58]requested_item shift.buy.total is exist - process it [00:03:58]requested_item shift.buy.total_cash is exist - process it [00:03:58]produce_requested_data done [00:03:58]produce_requested_data return {"fm.sale.total":30057245.44,"fm.sale_refund.total":751436.60,"fm.buy.total":0.00,"shift.sale.total":59121.35,"shift.sale.total_cash":32513.00,"shift.sale_refund.total":1783.00,"shift.sale_refund.total_cash":1783.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:03:58]process_action_free get_value [00:03:58]json_value_free [00:03:58]json_value_free done [00:03:58]process_json_proto returns [00:03:58]Send response to host [00:03:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":30057245.44,"fm.sale_refund.total":751436.60,"fm.buy.total":0.00,"shift.sale.total":59121.35,"shift.sale.total_cash":32513.00,"shift.sale_refund.total":1783.00,"shift.sale_refund.total_cash":1783.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:03:58]free response buf [00:03:58]execute_script done [00:03:58]execute_script returns [00:03:58]free content buf [00:03:58]Sock 6.Close socket [00:03:58]Sock 6.Thread stoped [00:04:02]OFD Sender: No OFD packet to send [00:04:07]OFD Sender: No OFD packet to send [00:04:12]OFD Sender: No OFD packet to send [00:04:17]OFD Sender: No OFD packet to send [00:04:22]OFD Sender: No OFD packet to send [00:04:27]OFD Sender: No OFD packet to send [00:04:32]OFD Sender: No OFD packet to send [00:04:37]OFD Sender: No OFD packet to send [00:04:42]OFD Sender: No OFD packet to send [00:04:47]OFD Sender: No OFD packet to send [00:04:52]OFD Sender: No OFD packet to send [00:04:57]OFD Sender: No OFD packet to send [00:05:02]OFD Sender: No OFD packet to send [00:05:07]OFD Sender: No OFD packet to send [00:05:12]OFD Sender: No OFD packet to send [00:05:12]accept exits with 7 [00:05:12]New connection [00:05:12]New thread 3066752356 created [00:05:12]Thread 3066608996 joined [00:05:12]Waiting for new connection... [00:05:12] Sock 7.Parse request [00:05:12]Sock 7.Check first char [00:05:12]Sock 7.First char is OK [00:05:12]request: POST /json_proto HTTP/1.0 [00:05:12]Method: POST [00:05:12]URL: /json_proto [00:05:12]Method is POST - this is cgi request [00:05:12]url: /json_proto [00:05:12]query_string will be loaded in cgi processing [00:05:12]execute_cgi json_proto POST (null) [00:05:12]execute_cgi path=json_proto method=POST [00:05:12]POST find Content-Length [00:05:12]Host: 172.17.57.71:8080 [00:05:12]Content-Length: 215 [00:05:12]Content-Type: application/json [00:05:12] [00:05:12]POST finish read [00:05:12]Found Content-Length = 215 [00:05:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:05:12]execute_script... [00:05:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:05:12]POST & json_proto [00:05:12]process_json_proto [00:05:12]json parsed OK: [00:05:12]protocol is kg_v1.0 [00:05:12]action value=get_value [00:05:12]process_action get_value [00:05:12]cmd_get_value [00:05:12]process_action get_value done [00:05:12]requested_data is exist [00:05:12]produce_requested_data [00:05:12]requested_item kkm.sn is exist - process it [00:05:12]requested_item kkm.ver is exist - process it [00:05:12]requested_item fm.sn is exist - process it [00:05:12]wFMCommunicate request_size=4 [00:05:12]MH_SAM_APDU [00:05:12]CAPDU: 80 11 00 00 [00:05:12]Write to MH i2c: E2 08 00 E2 00 80 11 00 00 00 00 00 00 5C [00:05:12]Write i2c OK [00:05:12]MH_I2C_Read... [00:05:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:05:12]Read from MH i2c: E2 [00:05:12]MH_I2C_Read... [00:05:12]Read from MH i2c: E2 17 00 [00:05:12]MH_I2C_Read... [00:05:12]Read from MH i2c: E2 17 00 E2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B3 [00:05:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:05:12]wFMCommunicate OK [00:05:12]requested_item fd.num is exist - process it [00:05:12]SAM_PROTO_GetFieldsCounters [00:05:12]wFMCommunicate request_size=4 [00:05:12]MH_SAM_APDU [00:05:12]CAPDU: 80 13 00 00 [00:05:12]Write to MH i2c: E2 08 00 E3 00 80 13 00 00 00 00 00 00 5F [00:05:12]Write i2c OK [00:05:12]MH_I2C_Read... [00:05:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:05:13]Read from MH i2c: E2 [00:05:13]MH_I2C_Read... [00:05:13]Read from MH i2c: E2 62 00 [00:05:13]MH_I2C_Read... [00:05:13]Read from MH i2c: E2 62 00 E3 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 17 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [00:05:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 17 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:05:13]wFMCommunicate OK [00:05:13]SAM_PROTO_GetFieldsCounters done [00:05:13]requested_item shift.num is exist - process it [00:05:13]requested_item shift.opened is exist - process it [00:05:13]req_shift_opened [00:05:13]FM_GetShiftState [00:05:13]SAM_PROTO_GetShiftState [00:05:13]wFMCommunicate request_size=4 [00:05:13]MH_SAM_APDU [00:05:13]CAPDU: 80 13 01 00 [00:05:13]Write to MH i2c: E2 08 00 E4 00 80 13 01 00 00 00 00 00 61 [00:05:13]Write i2c OK [00:05:13]MH_I2C_Read... [00:05:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:05:13]Read from MH i2c: E2 [00:05:13]MH_I2C_Read... [00:05:13]Read from MH i2c: E2 0E 00 [00:05:13]MH_I2C_Read... [00:05:13]Read from MH i2c: E2 0E 00 E4 00 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 E3 [00:05:13]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [00:05:13]wFMCommunicate OK [00:05:13]SAM_PROTO_GetShiftState done [00:05:13]FM_GetShiftState done [00:05:13]req_shift_opened done [00:05:13]requested_item shift.open_date is exist - process it [00:05:13]req_shift_open_date [00:05:13]req_shift_open_date done [00:05:13]produce_requested_data done [00:05:13]produce_requested_data return {"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92695,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [00:05:13]process_action_free get_value [00:05:13]json_value_free [00:05:13]json_value_free done [00:05:13]process_json_proto returns [00:05:13]Send response to host [00:05:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92695,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [00:05:13]free response buf [00:05:13]execute_script done [00:05:13]execute_script returns [00:05:13]free content buf [00:05:13]Sock 7.Close socket [00:05:13]Sock 7.Thread stoped [00:05:13]accept exits with 6 [00:05:13]New connection [00:05:13]New thread 3066608996 created [00:05:13]Thread 3066752356 joined [00:05:13]Waiting for new connection... [00:05:13] Sock 6.Parse request [00:05:13]Sock 6.Check first char [00:05:13]Sock 6.First char is OK [00:05:13]request: POST /json_proto HTTP/1.0 [00:05:13]Method: POST [00:05:13]URL: /json_proto [00:05:13]Method is POST - this is cgi request [00:05:13]url: /json_proto [00:05:13]query_string will be loaded in cgi processing [00:05:13]execute_cgi json_proto POST (null) [00:05:13]execute_cgi path=json_proto method=POST [00:05:13]POST find Content-Length [00:05:13]Host: 172.17.57.71:8080 [00:05:13]Content-Length: 331 [00:05:13]Content-Type: application/json [00:05:13] [00:05:13]POST finish read [00:05:13]Found Content-Length = 331 [00:05:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:05:13]execute_script... [00:05:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:05:13]POST & json_proto [00:05:13]process_json_proto [00:05:13]json parsed OK: [00:05:13]protocol is kg_v1.0 [00:05:13]action value=get_value [00:05:13]process_action get_value [00:05:13]cmd_get_value [00:05:13]process_action get_value done [00:05:13]requested_data is exist [00:05:13]produce_requested_data [00:05:13]requested_item fm.sale.total is exist - process it [00:05:13]SAM_PROTO_GetFMData [00:05:13]wFMCommunicate request_size=4 [00:05:13]MH_SAM_APDU [00:05:13]CAPDU: 80 13 03 00 [00:05:13]Write to MH i2c: E2 08 00 E5 00 80 13 03 00 00 00 00 00 64 [00:05:13]Write i2c OK [00:05:13]MH_I2C_Read... [00:05:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:05:13]Read from MH i2c: E2 [00:05:13]MH_I2C_Read... [00:05:13]Read from MH i2c: E2 FD 00 [00:05:13]MH_I2C_Read... [00:05:13]Read from MH i2c: E2 FD 00 E5 00 00 C5 04 85 04 C1 04 6E 04 04 00 21 66 01 00 69 04 A1 00 6F 04 04 00 CD 62 01 00 B1 04 04 00 80 B7 27 B3 70 04 04 00 B0 CE 84 83 72 04 04 00 D0 E8 A2 2F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5A D0 06 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 21 C0 95 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 54 03 00 00 B1 04 04 00 EC 99 7A 04 70 04 04 00 98 B8 41 04 72 04 03 00 54 E1 38 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C8 79 EF 03 09 90 00 C5 [00:05:13]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 21 66 01 00 69 04 A1 00 6F 04 04 00 CD 62 01 00 B1 04 04 00 80 B7 27 B3 70 04 04 00 B0 CE 84 83 72 04 04 00 D0 E8 A2 2F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5A D0 06 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 21 C0 95 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 54 03 00 00 B1 04 04 00 EC 99 7A 04 70 04 04 00 98 B8 41 04 72 04 03 00 54 E1 38 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C8 79 EF 03 09 90 00 [00:05:13]wFMCommunicate OK [00:05:13]wFMCommunicate request_size=4 [00:05:13]MH_SAM_APDU [00:05:13]CAPDU: 80 17 00 00 [00:05:13]Write to MH i2c: E2 08 00 E6 00 80 17 00 00 00 00 00 00 66 [00:05:13]Write i2c OK [00:05:13]MH_I2C_Read... [00:05:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:14]Read from MH i2c: E2 [00:05:14]MH_I2C_Read... [00:05:14]Read from MH i2c: E2 FD 00 [00:05:14]MH_I2C_Read... [00:05:14]Read from MH i2c: E2 FD 00 E6 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AA 25 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 F5 [00:05:14]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AA 25 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:05:14]wFMCommunicate OK [00:05:14]wFMCommunicate request_size=4 [00:05:14]MH_SAM_APDU [00:05:14]CAPDU: 80 17 00 00 [00:05:14]Write to MH i2c: E2 08 00 E7 00 80 17 00 00 00 00 00 00 67 [00:05:14]Write i2c OK [00:05:14]MH_I2C_Read... [00:05:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:14]Read from MH i2c: E2 [00:05:14]MH_I2C_Read... [00:05:14]Read from MH i2c: E2 FD 00 [00:05:14]MH_I2C_Read... [00:05:14]Read from MH i2c: E2 FD 00 E7 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 79 [00:05:14]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:05:14]wFMCommunicate OK [00:05:14]wFMCommunicate request_size=4 [00:05:14]MH_SAM_APDU [00:05:14]CAPDU: 80 17 00 00 [00:05:14]Write to MH i2c: E2 08 00 E8 00 80 17 00 00 00 00 00 00 68 [00:05:14]Write i2c OK [00:05:14]MH_I2C_Read... [00:05:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:14]Read from MH i2c: E2 [00:05:14]MH_I2C_Read... [00:05:14]Read from MH i2c: E2 FD 00 [00:05:14]MH_I2C_Read... [00:05:14]Read from MH i2c: E2 FD 00 E8 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 F4 [00:05:14]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:05:14]wFMCommunicate OK [00:05:14]wFMCommunicate request_size=4 [00:05:14]MH_SAM_APDU [00:05:14]CAPDU: 80 17 00 00 [00:05:14]Write to MH i2c: E2 08 00 E9 00 80 17 00 00 00 00 00 00 69 [00:05:14]Write i2c OK [00:05:14]MH_I2C_Read... [00:05:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:05:14]Read from MH i2c: E2 [00:05:14]MH_I2C_Read... [00:05:14]Read from MH i2c: E2 E2 00 [00:05:14]MH_I2C_Read... [00:05:14]Read from MH i2c: E2 E2 00 E9 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 47 [00:05:14]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:05:14]wFMCommunicate OK [00:05:14]SAM_PROTO_GetFMData done [00:05:14]requested_item fm.sale_refund.total is exist - process it [00:05:14]requested_item fm.buy.total is exist - process it [00:05:14]requested_item shift.sale.total is exist - process it [00:05:14]SAM_PROTO_GetShiftData [00:05:14]wFMCommunicate request_size=4 [00:05:14]MH_SAM_APDU [00:05:14]CAPDU: 80 13 02 00 [00:05:14]Write to MH i2c: E2 08 00 EA 00 80 13 02 00 00 00 00 00 68 [00:05:14]Write i2c OK [00:05:14]MH_I2C_Read... [00:05:15]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:05:15]Read from MH i2c: E2 [00:05:15]MH_I2C_Read... [00:05:15]Read from MH i2c: E2 FD 00 [00:05:15]MH_I2C_Read... [00:05:15]Read from MH i2c: E2 FD 00 EA 00 00 B8 04 AA 04 B4 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8D 00 00 00 B1 04 03 00 47 36 5A 70 04 03 00 64 9C 31 72 04 03 00 E3 99 28 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 9D 94 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E CC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 7C B8 02 70 04 03 00 7C B8 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F7 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 24 [00:05:15]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8D 00 00 00 B1 04 03 00 47 36 5A 70 04 03 00 64 9C 31 72 04 03 00 E3 99 28 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 9D 94 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E CC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 7C B8 02 70 04 03 00 7C B8 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F7 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:05:15]wFMCommunicate OK [00:05:15]wFMCommunicate request_size=4 [00:05:15]MH_SAM_APDU [00:05:15]CAPDU: 80 17 00 00 [00:05:15]Write to MH i2c: E2 08 00 EB 00 80 17 00 00 00 00 00 00 6B [00:05:15]Write i2c OK [00:05:15]MH_I2C_Read... [00:05:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:15]Read from MH i2c: E2 [00:05:15]MH_I2C_Read... [00:05:15]Read from MH i2c: E2 FD 00 [00:05:15]MH_I2C_Read... [00:05:15]Read from MH i2c: E2 FD 00 EB 00 00 0B 00 F6 03 01 00 01 F7 03 02 00 29 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 CB [00:05:15]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 29 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:05:15]wFMCommunicate OK [00:05:15]wFMCommunicate request_size=4 [00:05:15]MH_SAM_APDU [00:05:15]CAPDU: 80 17 00 00 [00:05:15]Write to MH i2c: E2 08 00 EC 00 80 17 00 00 00 00 00 00 6C [00:05:15]Write i2c OK [00:05:15]MH_I2C_Read... [00:05:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:15]Read from MH i2c: E2 [00:05:15]MH_I2C_Read... [00:05:15]Read from MH i2c: E2 FD 00 [00:05:15]MH_I2C_Read... [00:05:15]Read from MH i2c: E2 FD 00 EC 00 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 0E [00:05:15]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [00:05:15]wFMCommunicate OK [00:05:15]wFMCommunicate request_size=4 [00:05:15]MH_SAM_APDU [00:05:15]CAPDU: 80 17 00 00 [00:05:15]Write to MH i2c: E2 08 00 ED 00 80 17 00 00 00 00 00 00 6D [00:05:15]Write i2c OK [00:05:15]MH_I2C_Read... [00:05:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:16]Read from MH i2c: E2 [00:05:16]MH_I2C_Read... [00:05:16]Read from MH i2c: E2 FD 00 [00:05:16]MH_I2C_Read... [00:05:16]Read from MH i2c: E2 FD 00 ED 00 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 F6 [00:05:16]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [00:05:16]wFMCommunicate OK [00:05:16]wFMCommunicate request_size=4 [00:05:16]MH_SAM_APDU [00:05:16]CAPDU: 80 17 00 00 [00:05:16]Write to MH i2c: E2 08 00 EE 00 80 17 00 00 00 00 00 00 6E [00:05:16]Write i2c OK [00:05:16]MH_I2C_Read... [00:05:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:05:16]Read from MH i2c: E2 [00:05:16]MH_I2C_Read... [00:05:16]Read from MH i2c: E2 D5 00 [00:05:16]MH_I2C_Read... [00:05:16]Read from MH i2c: E2 D5 00 EE 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 4F [00:05:16]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:05:16]wFMCommunicate OK [00:05:16]SAM_PROTO_GetShiftData done [00:05:16]requested_item shift.sale.total_cash is exist - process it [00:05:16]requested_item shift.sale_refund.total is exist - process it [00:05:16]requested_item shift.sale_refund.total_cash is exist - process it [00:05:16]requested_item shift.buy.total is exist - process it [00:05:16]requested_item shift.buy.total_cash is exist - process it [00:05:16]produce_requested_data done [00:05:16]produce_requested_data return {"fm.sale.total":30057245.44,"fm.sale_refund.total":751436.60,"fm.buy.total":0.00,"shift.sale.total":59121.35,"shift.sale.total_cash":32513.00,"shift.sale_refund.total":1783.00,"shift.sale_refund.total_cash":1783.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:05:16]process_action_free get_value [00:05:16]json_value_free [00:05:16]json_value_free done [00:05:16]process_json_proto returns [00:05:16]Send response to host [00:05:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":30057245.44,"fm.sale_refund.total":751436.60,"fm.buy.total":0.00,"shift.sale.total":59121.35,"shift.sale.total_cash":32513.00,"shift.sale_refund.total":1783.00,"shift.sale_refund.total_cash":1783.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:05:16]free response buf [00:05:16]execute_script done [00:05:16]execute_script returns [00:05:16]free content buf [00:05:16]Sock 6.Close socket [00:05:16]Sock 6.Thread stoped [00:05:16]accept exits with 7 [00:05:16]New connection [00:05:16]New thread 3066752356 created [00:05:16]Thread 3066608996 joined [00:05:16]Waiting for new connection... [00:05:16] Sock 7.Parse request [00:05:16]Sock 7.Check first char [00:05:16]Sock 7.First char is OK [00:05:16]request: POST /json_proto HTTP/1.0 [00:05:16]Method: POST [00:05:16]URL: /json_proto [00:05:16]Method is POST - this is cgi request [00:05:16]url: /json_proto [00:05:16]query_string will be loaded in cgi processing [00:05:16]execute_cgi json_proto POST (null) [00:05:16]execute_cgi path=json_proto method=POST [00:05:16]POST find Content-Length [00:05:16]Host: 172.17.57.71:8080 [00:05:16]Content-Length: 331 [00:05:16]Content-Type: application/json [00:05:16] [00:05:16]POST finish read [00:05:16]Found Content-Length = 331 [00:05:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:05:16]execute_script... [00:05:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:05:16]POST & json_proto [00:05:16]process_json_proto [00:05:16]json parsed OK: [00:05:16]protocol is kg_v1.0 [00:05:16]action value=get_value [00:05:16]process_action get_value [00:05:16]cmd_get_value [00:05:16]process_action get_value done [00:05:16]requested_data is exist [00:05:16]produce_requested_data [00:05:16]requested_item fm.sale.total is exist - process it [00:05:16]SAM_PROTO_GetFMData [00:05:16]wFMCommunicate request_size=4 [00:05:16]MH_SAM_APDU [00:05:16]CAPDU: 80 13 03 00 [00:05:16]Write to MH i2c: E2 08 00 EF 00 80 13 03 00 00 00 00 00 6E [00:05:16]Write i2c OK [00:05:16]MH_I2C_Read... [00:05:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:05:17]Read from MH i2c: E2 [00:05:17]MH_I2C_Read... [00:05:17]Read from MH i2c: E2 FD 00 [00:05:17]MH_I2C_Read... [00:05:17]Read from MH i2c: E2 FD 00 EF 00 00 C5 04 85 04 C1 04 6E 04 04 00 21 66 01 00 69 04 A1 00 6F 04 04 00 CD 62 01 00 B1 04 04 00 80 B7 27 B3 70 04 04 00 B0 CE 84 83 72 04 04 00 D0 E8 A2 2F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5A D0 06 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 21 C0 95 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 54 03 00 00 B1 04 04 00 EC 99 7A 04 70 04 04 00 98 B8 41 04 72 04 03 00 54 E1 38 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C8 79 EF 03 09 90 00 CF [00:05:17]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 21 66 01 00 69 04 A1 00 6F 04 04 00 CD 62 01 00 B1 04 04 00 80 B7 27 B3 70 04 04 00 B0 CE 84 83 72 04 04 00 D0 E8 A2 2F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5A D0 06 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 21 C0 95 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 54 03 00 00 B1 04 04 00 EC 99 7A 04 70 04 04 00 98 B8 41 04 72 04 03 00 54 E1 38 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C8 79 EF 03 09 90 00 [00:05:17]wFMCommunicate OK [00:05:17]wFMCommunicate request_size=4 [00:05:17]MH_SAM_APDU [00:05:17]CAPDU: 80 17 00 00 [00:05:17]Write to MH i2c: E2 08 00 F0 00 80 17 00 00 00 00 00 00 70 [00:05:17]Write i2c OK [00:05:17]MH_I2C_Read... [00:05:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:17]Read from MH i2c: E2 [00:05:17]MH_I2C_Read... [00:05:17]Read from MH i2c: E2 FD 00 [00:05:17]MH_I2C_Read... [00:05:17]Read from MH i2c: E2 FD 00 F0 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AA 25 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 FF [00:05:17]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AA 25 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:05:17]wFMCommunicate OK [00:05:17]wFMCommunicate request_size=4 [00:05:17]MH_SAM_APDU [00:05:17]CAPDU: 80 17 00 00 [00:05:17]Write to MH i2c: E2 08 00 F1 00 80 17 00 00 00 00 00 00 71 [00:05:17]Write i2c OK [00:05:17]MH_I2C_Read... [00:05:17]OFD Sender: No OFD packet to send [00:05:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:17]Read from MH i2c: E2 [00:05:17]MH_I2C_Read... [00:05:17]Read from MH i2c: E2 FD 00 [00:05:17]MH_I2C_Read... [00:05:17]Read from MH i2c: E2 FD 00 F1 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 83 [00:05:17]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:05:17]wFMCommunicate OK [00:05:17]wFMCommunicate request_size=4 [00:05:17]MH_SAM_APDU [00:05:17]CAPDU: 80 17 00 00 [00:05:17]Write to MH i2c: E2 08 00 F2 00 80 17 00 00 00 00 00 00 72 [00:05:17]Write i2c OK [00:05:17]MH_I2C_Read... [00:05:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:18]Read from MH i2c: E2 [00:05:18]MH_I2C_Read... [00:05:18]Read from MH i2c: E2 FD 00 [00:05:18]MH_I2C_Read... [00:05:18]Read from MH i2c: E2 FD 00 F2 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 FE [00:05:18]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:05:18]wFMCommunicate OK [00:05:18]wFMCommunicate request_size=4 [00:05:18]MH_SAM_APDU [00:05:18]CAPDU: 80 17 00 00 [00:05:18]Write to MH i2c: E2 08 00 F3 00 80 17 00 00 00 00 00 00 73 [00:05:18]Write i2c OK [00:05:18]MH_I2C_Read... [00:05:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:05:18]Read from MH i2c: E2 [00:05:18]MH_I2C_Read... [00:05:18]Read from MH i2c: E2 E2 00 [00:05:18]MH_I2C_Read... [00:05:18]Read from MH i2c: E2 E2 00 F3 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 51 [00:05:18]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:05:18]wFMCommunicate OK [00:05:18]SAM_PROTO_GetFMData done [00:05:18]requested_item fm.sale_refund.total is exist - process it [00:05:18]requested_item fm.buy.total is exist - process it [00:05:18]requested_item shift.sale.total is exist - process it [00:05:18]SAM_PROTO_GetShiftData [00:05:18]wFMCommunicate request_size=4 [00:05:18]MH_SAM_APDU [00:05:18]CAPDU: 80 13 02 00 [00:05:18]Write to MH i2c: E2 08 00 F4 00 80 13 02 00 00 00 00 00 72 [00:05:18]Write i2c OK [00:05:18]MH_I2C_Read... [00:05:19]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:05:19]Read from MH i2c: E2 [00:05:19]MH_I2C_Read... [00:05:19]Read from MH i2c: E2 FD 00 [00:05:19]MH_I2C_Read... [00:05:19]Read from MH i2c: E2 FD 00 F4 00 00 B8 04 AA 04 B4 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8D 00 00 00 B1 04 03 00 47 36 5A 70 04 03 00 64 9C 31 72 04 03 00 E3 99 28 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 9D 94 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E CC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 7C B8 02 70 04 03 00 7C B8 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F7 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 2E [00:05:19]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8D 00 00 00 B1 04 03 00 47 36 5A 70 04 03 00 64 9C 31 72 04 03 00 E3 99 28 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 9D 94 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E CC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 7C B8 02 70 04 03 00 7C B8 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F7 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:05:19]wFMCommunicate OK [00:05:19]wFMCommunicate request_size=4 [00:05:19]MH_SAM_APDU [00:05:19]CAPDU: 80 17 00 00 [00:05:19]Write to MH i2c: E2 08 00 F5 00 80 17 00 00 00 00 00 00 75 [00:05:19]Write i2c OK [00:05:19]MH_I2C_Read... [00:05:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:19]Read from MH i2c: E2 [00:05:19]MH_I2C_Read... [00:05:19]Read from MH i2c: E2 FD 00 [00:05:19]MH_I2C_Read... [00:05:19]Read from MH i2c: E2 FD 00 F5 00 00 0B 00 F6 03 01 00 01 F7 03 02 00 29 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 D5 [00:05:19]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 29 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:05:19]wFMCommunicate OK [00:05:19]wFMCommunicate request_size=4 [00:05:19]MH_SAM_APDU [00:05:19]CAPDU: 80 17 00 00 [00:05:19]Write to MH i2c: E2 08 00 F6 00 80 17 00 00 00 00 00 00 76 [00:05:19]Write i2c OK [00:05:19]MH_I2C_Read... [00:05:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:19]Read from MH i2c: E2 [00:05:19]MH_I2C_Read... [00:05:19]Read from MH i2c: E2 FD 00 [00:05:19]MH_I2C_Read... [00:05:19]Read from MH i2c: E2 FD 00 F6 00 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 18 [00:05:19]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [00:05:19]wFMCommunicate OK [00:05:19]wFMCommunicate request_size=4 [00:05:19]MH_SAM_APDU [00:05:19]CAPDU: 80 17 00 00 [00:05:19]Write to MH i2c: E2 08 00 F7 00 80 17 00 00 00 00 00 00 77 [00:05:20]Write i2c OK [00:05:20]MH_I2C_Read... [00:05:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:20]Read from MH i2c: E2 [00:05:20]MH_I2C_Read... [00:05:20]Read from MH i2c: E2 FD 00 [00:05:20]MH_I2C_Read... [00:05:20]Read from MH i2c: E2 FD 00 F7 00 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 00 [00:05:20]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [00:05:20]wFMCommunicate OK [00:05:20]wFMCommunicate request_size=4 [00:05:20]MH_SAM_APDU [00:05:20]CAPDU: 80 17 00 00 [00:05:20]Write to MH i2c: E2 08 00 F8 00 80 17 00 00 00 00 00 00 78 [00:05:20]Write i2c OK [00:05:20]MH_I2C_Read... [00:05:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:05:20]Read from MH i2c: E2 [00:05:20]MH_I2C_Read... [00:05:20]Read from MH i2c: E2 D5 00 [00:05:20]MH_I2C_Read... [00:05:20]Read from MH i2c: E2 D5 00 F8 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 59 [00:05:20]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:05:20]wFMCommunicate OK [00:05:20]SAM_PROTO_GetShiftData done [00:05:20]requested_item shift.sale.total_cash is exist - process it [00:05:20]requested_item shift.sale_refund.total is exist - process it [00:05:20]requested_item shift.sale_refund.total_cash is exist - process it [00:05:20]requested_item shift.buy.total is exist - process it [00:05:20]requested_item shift.buy.total_cash is exist - process it [00:05:20]produce_requested_data done [00:05:20]produce_requested_data return {"fm.sale.total":30057245.44,"fm.sale_refund.total":751436.60,"fm.buy.total":0.00,"shift.sale.total":59121.35,"shift.sale.total_cash":32513.00,"shift.sale_refund.total":1783.00,"shift.sale_refund.total_cash":1783.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:05:20]process_action_free get_value [00:05:20]json_value_free [00:05:20]json_value_free done [00:05:20]process_json_proto returns [00:05:20]Send response to host [00:05:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":30057245.44,"fm.sale_refund.total":751436.60,"fm.buy.total":0.00,"shift.sale.total":59121.35,"shift.sale.total_cash":32513.00,"shift.sale_refund.total":1783.00,"shift.sale_refund.total_cash":1783.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:05:20]free response buf [00:05:20]execute_script done [00:05:20]execute_script returns [00:05:20]free content buf [00:05:20]Sock 7.Close socket [00:05:20]Sock 7.Thread stoped [00:05:20]accept exits with 6 [00:05:20]New connection [00:05:20]New thread 3066608996 created [00:05:20]Thread 3066752356 joined [00:05:20]Waiting for new connection... [00:05:20] Sock 6.Parse request [00:05:20]Sock 6.Check first char [00:05:20]Sock 6.First char is OK [00:05:20]request: POST /json_proto HTTP/1.0 [00:05:20]Method: POST [00:05:20]URL: /json_proto [00:05:20]Method is POST - this is cgi request [00:05:20]url: /json_proto [00:05:20]query_string will be loaded in cgi processing [00:05:20]execute_cgi json_proto POST (null) [00:05:20]execute_cgi path=json_proto method=POST [00:05:20]POST find Content-Length [00:05:20]Host: 172.17.57.71:8080 [00:05:20]Content-Length: 275 [00:05:20]Content-Type: application/json [00:05:20] [00:05:20]POST finish read [00:05:20]Found Content-Length = 275 [00:05:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0431\u0434\u0430\u043B\u0431\u0435\u043A\u043E\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:05:20]execute_script... [00:05:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0431\u0434\u0430\u043B\u0431\u0435\u043A\u043E\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:05:20]POST & json_proto [00:05:20]process_json_proto [00:05:20]json parsed OK: [00:05:20]protocol is kg_v1.0 [00:05:20]action value=x_report [00:05:20]process_action x_report [00:05:20]cmd_x_report [00:05:20]MH_GetDate [00:05:20]Write to MH i2c: F0 00 00 F9 00 E8 [00:05:20]Write i2c OK [00:05:20]MH_I2C_Read... [00:05:20]Read from MH i2c: F0 [00:05:20]MH_I2C_Read... [00:05:20]Read from MH i2c: F0 09 00 [00:05:20]MH_I2C_Read... [00:05:20]Read from MH i2c: F0 09 00 F9 00 00 41 76 E7 66 33 3A A4 66 6C [00:05:20]GetLastDocTimeStamp 1726444986 [00:05:20]current date 1726445121 [00:05:20]FM_GetShiftState [00:05:20]SAM_PROTO_GetShiftState [00:05:20]wFMCommunicate request_size=4 [00:05:20]MH_SAM_APDU [00:05:20]CAPDU: 80 13 01 00 [00:05:20]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [00:05:20]Write i2c OK [00:05:20]MH_I2C_Read... [00:05:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:05:20]Read from MH i2c: E2 [00:05:20]MH_I2C_Read... [00:05:20]Read from MH i2c: E2 0E 00 [00:05:20]MH_I2C_Read... [00:05:20]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 F9 [00:05:20]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [00:05:20]wFMCommunicate OK [00:05:20]SAM_PROTO_GetShiftState done [00:05:20]FM_GetShiftState done [00:05:20]KKMCreateXReportDocument [00:05:20]Load OK [00:05:20]Malloc new data [00:05:20]MH_GetDate [00:05:20]Write to MH i2c: F0 00 00 FB 00 EA [00:05:20]Write i2c OK [00:05:20]MH_I2C_Read... [00:05:20]Read from MH i2c: F0 [00:05:20]MH_I2C_Read... [00:05:20]Read from MH i2c: F0 09 00 [00:05:20]MH_I2C_Read... [00:05:20]Read from MH i2c: F0 09 00 FB 00 00 41 76 E7 66 33 3A A4 66 6E [00:05:20]Malloc new data [00:05:20]Malloc new data [00:05:20]wFMCommunicate request_size=4 [00:05:20]MH_SAM_APDU [00:05:20]CAPDU: 80 11 00 00 [00:05:20]Write to MH i2c: E2 08 00 FC 00 80 11 00 00 00 00 00 00 76 [00:05:20]Write i2c OK [00:05:20]MH_I2C_Read... [00:05:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:05:20]Read from MH i2c: E2 [00:05:20]MH_I2C_Read... [00:05:20]Read from MH i2c: E2 17 00 [00:05:20]MH_I2C_Read... [00:05:20]Read from MH i2c: E2 17 00 FC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 CD [00:05:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:05:20]wFMCommunicate OK [00:05:21]SAM_PROTO_GetFieldsCounters [00:05:21]wFMCommunicate request_size=4 [00:05:21]MH_SAM_APDU [00:05:21]CAPDU: 80 13 00 00 [00:05:21]Write to MH i2c: E2 08 00 FD 00 80 13 00 00 00 00 00 00 79 [00:05:21]Write i2c OK [00:05:21]MH_I2C_Read... [00:05:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:05:21]Read from MH i2c: E2 [00:05:21]MH_I2C_Read... [00:05:21]Read from MH i2c: E2 62 00 [00:05:21]MH_I2C_Read... [00:05:21]Read from MH i2c: E2 62 00 FD 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 17 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [00:05:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 17 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:05:21]wFMCommunicate OK [00:05:21]SAM_PROTO_GetFieldsCounters done [00:05:21]Malloc new data [00:05:21]Malloc new data [00:05:21]Malloc new data [00:05:21]KKMCreateXReportDocument OK [00:05:21]KKMSetXReportData OK [00:05:21]KKMPrepareXReportFMData [00:05:21]SAM_PROTO_GetShiftData [00:05:21]wFMCommunicate request_size=4 [00:05:21]MH_SAM_APDU [00:05:21]CAPDU: 80 13 02 00 [00:05:21]Write to MH i2c: E2 08 00 FE 00 80 13 02 00 00 00 00 00 7C [00:05:21]Write i2c OK [00:05:21]MH_I2C_Read... [00:05:21]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:05:21]Read from MH i2c: E2 [00:05:21]MH_I2C_Read... [00:05:21]Read from MH i2c: E2 FD 00 [00:05:21]MH_I2C_Read... [00:05:21]Read from MH i2c: E2 FD 00 FE 00 00 B8 04 AA 04 B4 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8D 00 00 00 B1 04 03 00 47 36 5A 70 04 03 00 64 9C 31 72 04 03 00 E3 99 28 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 9D 94 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E CC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 7C B8 02 70 04 03 00 7C B8 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F7 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 38 [00:05:21]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8D 00 00 00 B1 04 03 00 47 36 5A 70 04 03 00 64 9C 31 72 04 03 00 E3 99 28 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 9D 94 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E CC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 7C B8 02 70 04 03 00 7C B8 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F7 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:05:21]wFMCommunicate OK [00:05:21]wFMCommunicate request_size=4 [00:05:21]MH_SAM_APDU [00:05:21]CAPDU: 80 17 00 00 [00:05:21]Write to MH i2c: E2 08 00 FF 00 80 17 00 00 00 00 00 00 7F [00:05:21]Write i2c OK [00:05:21]MH_I2C_Read... [00:05:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:22]Read from MH i2c: E2 [00:05:22]MH_I2C_Read... [00:05:22]Read from MH i2c: E2 FD 00 [00:05:22]MH_I2C_Read... [00:05:22]Read from MH i2c: E2 FD 00 FF 00 00 0B 00 F6 03 01 00 01 F7 03 02 00 29 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 DF [00:05:22]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 29 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:05:22]wFMCommunicate OK [00:05:22]wFMCommunicate request_size=4 [00:05:22]MH_SAM_APDU [00:05:22]CAPDU: 80 17 00 00 [00:05:22]Write to MH i2c: E2 08 00 00 01 80 17 00 00 00 00 00 00 81 [00:05:22]Write i2c OK [00:05:22]MH_I2C_Read... [00:05:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:22]Read from MH i2c: E2 [00:05:22]MH_I2C_Read... [00:05:22]Read from MH i2c: E2 FD 00 [00:05:22]MH_I2C_Read... [00:05:22]Read from MH i2c: E2 FD 00 00 01 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 23 [00:05:22]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [00:05:22]wFMCommunicate OK [00:05:22]wFMCommunicate request_size=4 [00:05:22]MH_SAM_APDU [00:05:22]CAPDU: 80 17 00 00 [00:05:22]Write to MH i2c: E2 08 00 01 01 80 17 00 00 00 00 00 00 82 [00:05:22]OFD Sender: No OFD packet to send [00:05:22]Write i2c OK [00:05:22]MH_I2C_Read... [00:05:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:23]Read from MH i2c: E2 [00:05:23]MH_I2C_Read... [00:05:23]Read from MH i2c: E2 FD 00 [00:05:23]MH_I2C_Read... [00:05:23]Read from MH i2c: E2 FD 00 01 01 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 0B [00:05:23]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [00:05:23]wFMCommunicate OK [00:05:23]wFMCommunicate request_size=4 [00:05:23]MH_SAM_APDU [00:05:23]CAPDU: 80 17 00 00 [00:05:23]Write to MH i2c: E2 08 00 02 01 80 17 00 00 00 00 00 00 83 [00:05:23]Write i2c OK [00:05:23]MH_I2C_Read... [00:05:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:05:23]Read from MH i2c: E2 [00:05:23]MH_I2C_Read... [00:05:23]Read from MH i2c: E2 D5 00 [00:05:23]MH_I2C_Read... [00:05:23]Read from MH i2c: E2 D5 00 02 01 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 64 [00:05:23]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:05:23]wFMCommunicate OK [00:05:23]SAM_PROTO_GetShiftData done [00:05:23]1194 (1204) - счетчики итогов смены [00:05:23] 1134 (4) - 143 - количество чеков со всеми признаками расчетов [00:05:23] 1129 (155) - счетчики операций «приход» [00:05:23] 1135 (4) - 141 - количество чеков по признаку расчетов [00:05:23] 1201 (3) - 59121.35 - общая итоговая сумма в чеках [00:05:23] 1136 (3) - 32513.00 - итоговая сумма в чеках наличными [00:05:23] 1138 (3) - 26608.35 - итоговая сумма в чеках безналичными [00:05:23] 1024 (122) - суммы налогов [00:05:23] 1006 (9) - суммы НДС [00:05:23] 1010 (1) - 0% - код ставки НДС [00:05:23] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:23] 1006 (12) - суммы НДС [00:05:23] 1010 (1) - 12% - код ставки НДС [00:05:23] 1011 (3) - 6278.69 - сумма НДС по ставке [00:05:23] 1007 (9) - суммы НСП [00:05:23] 1014 (1) - 0% - код ставки НСП [00:05:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:23] 1007 (11) - суммы НСП [00:05:23] 1014 (1) - 1% - код ставки НСП [00:05:23] 1015 (2) - 523.02 - сумма НСП по ставке [00:05:23] 1007 (9) - суммы НСП [00:05:23] 1014 (1) - 2% - код ставки НСП [00:05:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:23] 1007 (9) - суммы НСП [00:05:23] 1014 (1) - 3% - код ставки НСП [00:05:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:23] 1007 (9) - суммы НСП [00:05:23] 1014 (1) - 5% - код ставки НСП [00:05:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:23] 1007 (9) - суммы НСП [00:05:23] 1014 (1) - 0,50% - код ставки НСП [00:05:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:23] 1007 (9) - суммы НСП [00:05:23] 1014 (1) - 1,50% - код ставки НСП [00:05:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:23] 1130 (151) - счетчики операций «возврат прихода» [00:05:23] 1135 (4) - 2 - количество чеков по признаку расчетов [00:05:23] 1201 (3) - 1783.00 - общая итоговая сумма в чеках [00:05:23] 1136 (3) - 1783.00 - итоговая сумма в чеках наличными [00:05:23] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:05:23] 1024 (121) - суммы налогов [00:05:23] 1006 (9) - суммы НДС [00:05:23] 1010 (1) - 0% - код ставки НДС [00:05:23] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:23] 1006 (11) - суммы НДС [00:05:23] 1010 (1) - 12% - код ставки НДС [00:05:23] 1011 (2) - 189.35 - сумма НДС по ставке [00:05:23] 1007 (9) - суммы НСП [00:05:23] 1014 (1) - 0% - код ставки НСП [00:05:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:23] 1007 (11) - суммы НСП [00:05:23] 1014 (1) - 1% - код ставки НСП [00:05:23] 1015 (2) - 15.77 - сумма НСП по ставке [00:05:23] 1007 (9) - суммы НСП [00:05:23] 1014 (1) - 2% - код ставки НСП [00:05:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:23] 1007 (9) - суммы НСП [00:05:23] 1014 (1) - 3% - код ставки НСП [00:05:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:23] 1007 (9) - суммы НСП [00:05:23] 1014 (1) - 5% - код ставки НСП [00:05:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:23] 1007 (9) - суммы НСП [00:05:23] 1014 (1) - 0,50% - код ставки НСП [00:05:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:23] 1007 (9) - суммы НСП [00:05:23] 1014 (1) - 1,50% - код ставки НСП [00:05:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:23] 1131 (141) - счетчики операций «расход» [00:05:23] 1135 (4) - 0 - количество чеков по признаку расчетов [00:05:23] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:05:23] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:05:23] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:05:23] 1024 (117) - суммы налогов [00:05:23] 1006 (9) - суммы НДС [00:05:23] 1010 (1) - 0% - код ставки НДС [00:05:23] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:23] 1006 (9) - суммы НДС [00:05:23] 1010 (1) - 12% - код ставки НДС [00:05:23] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:23] 1007 (9) - суммы НСП [00:05:23] 1014 (1) - 0% - код ставки НСП [00:05:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:23] 1007 (9) - суммы НСП [00:05:23] 1014 (1) - 1% - код ставки НСП [00:05:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:23] 1007 (9) - суммы НСП [00:05:23] 1014 (1) - 2% - код ставки НСП [00:05:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:23] 1007 (9) - суммы НСП [00:05:23] 1014 (1) - 3% - код ставки НСП [00:05:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:23] 1007 (9) - суммы НСП [00:05:23] 1014 (1) - 5% - код ставки НСП [00:05:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:23] 1007 (9) - суммы НСП [00:05:23] 1014 (1) - 0,50% - код ставки НСП [00:05:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:23] 1007 (9) - суммы НСП [00:05:23] 1014 (1) - 1,50% - код ставки НСП [00:05:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:23] 1132 (141) - счетчики операций «возврат расхода» [00:05:23] 1135 (4) - 0 - количество чеков по признаку расчетов [00:05:23] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:05:23] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:05:23] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:05:23] 1024 (117) - суммы налогов [00:05:23] 1006 (9) - суммы НДС [00:05:23] 1010 (1) - 0% - код ставки НДС [00:05:23] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:23] 1006 (9) - суммы НДС [00:05:23] 1010 (1) - 12% - код ставки НДС [00:05:23] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:23] 1007 (9) - суммы НСП [00:05:23] 1014 (1) - 0% - код ставки НСП [00:05:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:23] 1007 (9) - суммы НСП [00:05:23] 1014 (1) - 1% - код ставки НСП [00:05:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:23] 1007 (9) - суммы НСП [00:05:23] 1014 (1) - 2% - код ставки НСП [00:05:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:23] 1007 (9) - суммы НСП [00:05:23] 1014 (1) - 3% - код ставки НСП [00:05:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:23] 1007 (9) - суммы НСП [00:05:23] 1014 (1) - 5% - код ставки НСП [00:05:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:23] 1007 (9) - суммы НСП [00:05:23] 1014 (1) - 0,50% - код ставки НСП [00:05:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:23] 1007 (9) - суммы НСП [00:05:23] 1014 (1) - 1,50% - код ставки НСП [00:05:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:23] 1133 (588) - - счетчики коррекции - не используются [00:05:23]SetTLVBufToDocument [00:05:23]Processing tag 1194 (04AA) [00:05:23]Load OK [00:05:23]SetTLVBufToDocument [00:05:24]Processing tag 1134 (046E) [00:05:24]Malloc new data [00:05:24]Processing tag 1129 (0469) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1135 (046F) [00:05:24]Malloc new data [00:05:24]Processing tag 1201 (04B1) [00:05:24]Malloc new data [00:05:24]Processing tag 1136 (0470) [00:05:24]Malloc new data [00:05:24]Processing tag 1138 (0472) [00:05:24]Malloc new data [00:05:24]Processing tag 1024 (0400) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1006 (03EE) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1010 (03F2) [00:05:24]Malloc new data [00:05:24]Processing tag 1011 (03F3) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1006 (03EE) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1010 (03F2) [00:05:24]Malloc new data [00:05:24]Processing tag 1011 (03F3) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1007 (03EF) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1014 (03F6) [00:05:24]Malloc new data [00:05:24]Processing tag 1015 (03F7) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1007 (03EF) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1014 (03F6) [00:05:24]Malloc new data [00:05:24]Processing tag 1015 (03F7) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1007 (03EF) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1014 (03F6) [00:05:24]Malloc new data [00:05:24]Processing tag 1015 (03F7) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1007 (03EF) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1014 (03F6) [00:05:24]Malloc new data [00:05:24]Processing tag 1015 (03F7) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1007 (03EF) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1014 (03F6) [00:05:24]Malloc new data [00:05:24]Processing tag 1015 (03F7) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1007 (03EF) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1014 (03F6) [00:05:24]Malloc new data [00:05:24]Processing tag 1015 (03F7) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1007 (03EF) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1014 (03F6) [00:05:24]Malloc new data [00:05:24]Processing tag 1015 (03F7) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]SetTLVBufToDocument err=0 [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1130 (046A) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1135 (046F) [00:05:24]Malloc new data [00:05:24]Processing tag 1201 (04B1) [00:05:24]Malloc new data [00:05:24]Processing tag 1136 (0470) [00:05:24]Malloc new data [00:05:24]Processing tag 1138 (0472) [00:05:24]Malloc new data [00:05:24]Processing tag 1024 (0400) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1006 (03EE) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1010 (03F2) [00:05:24]Malloc new data [00:05:24]Processing tag 1011 (03F3) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1006 (03EE) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1010 (03F2) [00:05:24]Malloc new data [00:05:24]Processing tag 1011 (03F3) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1007 (03EF) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1014 (03F6) [00:05:24]Malloc new data [00:05:24]Processing tag 1015 (03F7) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1007 (03EF) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1014 (03F6) [00:05:24]Malloc new data [00:05:24]Processing tag 1015 (03F7) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1007 (03EF) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1014 (03F6) [00:05:24]Malloc new data [00:05:24]Processing tag 1015 (03F7) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1007 (03EF) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1014 (03F6) [00:05:24]Malloc new data [00:05:24]Processing tag 1015 (03F7) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1007 (03EF) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1014 (03F6) [00:05:24]Malloc new data [00:05:24]Processing tag 1015 (03F7) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1007 (03EF) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1014 (03F6) [00:05:24]Malloc new data [00:05:24]Processing tag 1015 (03F7) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1007 (03EF) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1014 (03F6) [00:05:24]Malloc new data [00:05:24]Processing tag 1015 (03F7) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]SetTLVBufToDocument err=0 [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1131 (046B) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1135 (046F) [00:05:24]Malloc new data [00:05:24]Processing tag 1201 (04B1) [00:05:24]Malloc new data [00:05:24]Processing tag 1136 (0470) [00:05:24]Malloc new data [00:05:24]Processing tag 1138 (0472) [00:05:24]Malloc new data [00:05:24]Processing tag 1024 (0400) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1006 (03EE) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1010 (03F2) [00:05:24]Malloc new data [00:05:24]Processing tag 1011 (03F3) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1006 (03EE) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1010 (03F2) [00:05:24]Malloc new data [00:05:24]Processing tag 1011 (03F3) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1007 (03EF) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1014 (03F6) [00:05:24]Malloc new data [00:05:24]Processing tag 1015 (03F7) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1007 (03EF) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1014 (03F6) [00:05:24]Malloc new data [00:05:24]Processing tag 1015 (03F7) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1007 (03EF) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1014 (03F6) [00:05:24]Malloc new data [00:05:24]Processing tag 1015 (03F7) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1007 (03EF) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1014 (03F6) [00:05:24]Malloc new data [00:05:24]Processing tag 1015 (03F7) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1007 (03EF) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1014 (03F6) [00:05:24]Malloc new data [00:05:24]Processing tag 1015 (03F7) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1007 (03EF) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1014 (03F6) [00:05:24]Malloc new data [00:05:24]Processing tag 1015 (03F7) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1007 (03EF) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1014 (03F6) [00:05:24]Malloc new data [00:05:24]Processing tag 1015 (03F7) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]SetTLVBufToDocument err=0 [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1132 (046C) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1135 (046F) [00:05:24]Malloc new data [00:05:24]Processing tag 1201 (04B1) [00:05:24]Malloc new data [00:05:24]Processing tag 1136 (0470) [00:05:24]Malloc new data [00:05:24]Processing tag 1138 (0472) [00:05:24]Malloc new data [00:05:24]Processing tag 1024 (0400) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1006 (03EE) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1010 (03F2) [00:05:24]Malloc new data [00:05:24]Processing tag 1011 (03F3) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1006 (03EE) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1010 (03F2) [00:05:24]Malloc new data [00:05:24]Processing tag 1011 (03F3) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1007 (03EF) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1014 (03F6) [00:05:24]Malloc new data [00:05:24]Processing tag 1015 (03F7) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1007 (03EF) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1014 (03F6) [00:05:24]Malloc new data [00:05:24]Processing tag 1015 (03F7) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1007 (03EF) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1014 (03F6) [00:05:24]Malloc new data [00:05:24]Processing tag 1015 (03F7) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1007 (03EF) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1014 (03F6) [00:05:24]Malloc new data [00:05:24]Processing tag 1015 (03F7) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1007 (03EF) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1014 (03F6) [00:05:24]Malloc new data [00:05:24]Processing tag 1015 (03F7) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1007 (03EF) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1014 (03F6) [00:05:24]Malloc new data [00:05:24]Processing tag 1015 (03F7) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1007 (03EF) [00:05:24]Load OK [00:05:24]SetTLVBufToDocument [00:05:24]Processing tag 1014 (03F6) [00:05:24]Malloc new data [00:05:24]Processing tag 1015 (03F7) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]SetTLVBufToDocument err=0 [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Processing tag 1133 (046D) [00:05:24]Malloc new data [00:05:24]SetTLVBufToDocument err=0 [00:05:24]SetTLVBufToDocument err=0 [00:05:24]Malloc new data [00:05:24]SAM_PROTO_GetFMData [00:05:24]wFMCommunicate request_size=4 [00:05:24]MH_SAM_APDU [00:05:24]CAPDU: 80 13 03 00 [00:05:24]Write to MH i2c: E2 08 00 03 01 80 13 03 00 00 00 00 00 83 [00:05:24]Write i2c OK [00:05:24]MH_I2C_Read... [00:05:25]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:05:25]Read from MH i2c: E2 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: E2 FD 00 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: E2 FD 00 03 01 00 C5 04 85 04 C1 04 6E 04 04 00 21 66 01 00 69 04 A1 00 6F 04 04 00 CD 62 01 00 B1 04 04 00 80 B7 27 B3 70 04 04 00 B0 CE 84 83 72 04 04 00 D0 E8 A2 2F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5A D0 06 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 21 C0 95 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 54 03 00 00 B1 04 04 00 EC 99 7A 04 70 04 04 00 98 B8 41 04 72 04 03 00 54 E1 38 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C8 79 EF 03 09 90 00 E4 [00:05:25]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 21 66 01 00 69 04 A1 00 6F 04 04 00 CD 62 01 00 B1 04 04 00 80 B7 27 B3 70 04 04 00 B0 CE 84 83 72 04 04 00 D0 E8 A2 2F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5A D0 06 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 21 C0 95 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 54 03 00 00 B1 04 04 00 EC 99 7A 04 70 04 04 00 98 B8 41 04 72 04 03 00 54 E1 38 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C8 79 EF 03 09 90 00 [00:05:25]wFMCommunicate OK [00:05:25]wFMCommunicate request_size=4 [00:05:25]MH_SAM_APDU [00:05:25]CAPDU: 80 17 00 00 [00:05:25]Write to MH i2c: E2 08 00 04 01 80 17 00 00 00 00 00 00 85 [00:05:25]Write i2c OK [00:05:25]MH_I2C_Read... [00:05:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:25]Read from MH i2c: E2 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: E2 FD 00 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: E2 FD 00 04 01 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AA 25 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 14 [00:05:25]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AA 25 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:05:25]wFMCommunicate OK [00:05:25]wFMCommunicate request_size=4 [00:05:25]MH_SAM_APDU [00:05:25]CAPDU: 80 17 00 00 [00:05:26]Write to MH i2c: E2 08 00 05 01 80 17 00 00 00 00 00 00 86 [00:05:26]Write i2c OK [00:05:26]MH_I2C_Read... [00:05:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:26]Read from MH i2c: E2 [00:05:26]MH_I2C_Read... [00:05:26]Read from MH i2c: E2 FD 00 [00:05:26]MH_I2C_Read... [00:05:26]Read from MH i2c: E2 FD 00 05 01 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 98 [00:05:26]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:05:26]wFMCommunicate OK [00:05:26]wFMCommunicate request_size=4 [00:05:26]MH_SAM_APDU [00:05:26]CAPDU: 80 17 00 00 [00:05:26]Write to MH i2c: E2 08 00 06 01 80 17 00 00 00 00 00 00 87 [00:05:26]Write i2c OK [00:05:26]MH_I2C_Read... [00:05:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:26]Read from MH i2c: E2 [00:05:26]MH_I2C_Read... [00:05:26]Read from MH i2c: E2 FD 00 [00:05:26]MH_I2C_Read... [00:05:26]Read from MH i2c: E2 FD 00 06 01 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 13 [00:05:26]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:05:27]wFMCommunicate OK [00:05:27]wFMCommunicate request_size=4 [00:05:27]MH_SAM_APDU [00:05:27]CAPDU: 80 17 00 00 [00:05:27]Write to MH i2c: E2 08 00 07 01 80 17 00 00 00 00 00 00 88 [00:05:27]Write i2c OK [00:05:27]MH_I2C_Read... [00:05:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:05:27]Read from MH i2c: E2 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 E2 00 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 E2 00 07 01 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 66 [00:05:27]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:05:27]wFMCommunicate OK [00:05:27]SAM_PROTO_GetFMData done [00:05:27]FM_GetFMData:85 04 C1 04 6E 04 04 00 21 66 01 00 69 04 A1 00 6F 04 04 00 CD 62 01 00 B1 04 04 00 80 B7 27 B3 70 04 04 00 B0 CE 84 83 72 04 04 00 D0 E8 A2 2F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5A D0 06 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 21 C0 95 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 54 03 00 00 B1 04 04 00 EC 99 7A 04 70 04 04 00 98 B8 41 04 72 04 03 00 54 E1 38 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C8 79 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AA 25 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF OFD Sender: No OFD packet to send [00:05:27]03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:05:28]oper:6F 04 04 00 CD 62 01 00 B1 04 04 00 80 B7 27 B3 70 04 04 00 B0 CE 84 83 72 04 04 00 D0 E8 A2 2F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5A D0 06 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 21 C0 95 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:05:28]total:80 B7 27 B3 [00:05:28]Malloc new data [00:05:28]oper:6F 04 04 00 54 03 00 00 B1 04 04 00 EC 99 7A 04 70 04 04 00 98 B8 41 04 72 04 03 00 54 E1 38 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C8 79 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AA 25 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:05:28]total:EC 99 7A 04 [00:05:28]Malloc new data [00:05:28]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:05:28]total: [00:05:28]Malloc new data [00:05:28]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:05:28]total: [00:05:28]Malloc new data [00:05:28]KKMPrepareXReportFMData err=0 [00:05:28]Х отчет ИНН: 02508201610067 Кассир: Абдалбекова А. 16.09.2024 00:05 Смена: 266 РНМ: 0000000000091423 ЗНМ: 03000000022 СНО: Общий режим Всего чеков: 143 ИТОГИ ПРИХОД Чеков: 141 Общий итог: 59121.35 Итого наличными: 32513.00 Итого безнал.: 26608.35 НДС 0% : 0.00 НДС 12% : 6278.69 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 523.02 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 2 Общий итог: 1783.00 Итого наличными: 1783.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 189.35 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 15.77 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 30730.00 НС Приход: 30057245.44 НС Возвр.Прихода: 751436.60 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874692 [00:05:28]StoreToDocumentArchive [00:05:28]MH_GetDate [00:05:28]Write to MH i2c: F0 00 00 08 01 F8 [00:05:28]Write i2c OK [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: F0 [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: F0 09 00 [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: F0 09 00 08 01 00 48 76 E7 66 33 3A A4 66 83 [00:05:28]shift 266 fd 1726445128 [00:05:28]Create dir for shift 0266 [00:05:28]save to /storage/0266/doc_1726445128 [00:05:28]save last doc name /storage/0266/doc_1726445128 to /storage/kkm_last_doc_name [00:05:28]save OK [00:05:28]Clear old archive folders... [00:05:28]NVStorageSaveData kkm_last_timestamp [00:05:28]File name is /storage/kkm_last_timestamp [00:05:28]Write 4 bytes [00:05:28]NVStorageSaveData done [00:05:28]ExternCall_PrintAddStr [00:05:28]wPrintStart [00:05:28]Write to MH i2c: 01 00 00 09 01 0A [00:05:28]Write i2c OK [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: 01 [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: 01 07 00 [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: 01 07 00 09 01 00 00 00 00 00 FF 0F 1F [00:05:28]RasterBufferAndPrint [00:05:28]line Х отчет [00:05:28]line ИНН: 02508201610067 [00:05:28]line Кассир: Абдалбекова А. [00:05:28]line 16.09.2024 00:05 [00:05:28]line Смена: 266 [00:05:28]line РНМ: 0000000000091423 [00:05:28]line ЗНМ: 03000000022 [00:05:28]line СНО: Общий режим [00:05:28]line Всего чеков: 143 [00:05:28]line ИТОГИ ПРИХОД [00:05:28]line Чеков: 141 [00:05:28]line Общий итог: 59121.35 [00:05:28]line Итого наличными: 32513.00 [00:05:28]line Итого безнал.: 26608.35 [00:05:28]line НДС 0% : 0.00 [00:05:28]line НДС 12% : 6278.69 [00:05:28]line НСП 0% : 0.00 [00:05:28]line НСП 1,50% : 0.00 [00:05:28]line НСП 0,50% : 0.00 [00:05:28]line НСП 5% : 0.00 [00:05:28]line НСП 3% : 0.00 [00:05:28]line НСП 2% : 0.00 [00:05:28]line НСП 1% : 523.02 [00:05:28]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:05:28]line Чеков: 2 [00:05:28]line Общий итог: 1783.00 [00:05:28]line Итого наличными: 1783.00 [00:05:28]line Итого безнал.: 0.00 [00:05:28]line НДС 0% : 0.00 [00:05:28]line НДС 12% : 189.35 [00:05:28]line НСП 0% : 0.00 [00:05:28]line НСП 1,50% : 0.00 [00:05:28]line НСП 0,50% : 0.00 [00:05:28]line НСП 5% : 0.00 [00:05:28]line НСП 3% : 0.00 [00:05:28]line НСП 2% : 0.00 [00:05:28]line НСП 1% : 15.77 [00:05:28]line ИТОГИ РАСХОД [00:05:28]line Чеков: 0 [00:05:28]line Общий итог: 0.00 [00:05:28]line Итого наличными: 0.00 [00:05:28]line Итого безнал.: 0.00 [00:05:28]line НДС 0% : 0.00 [00:05:28]line НДС 12% : 0.00 [00:05:28]line НСП 0% : 0.00 [00:05:28]line НСП 1,50% : 0.00 [00:05:28]line НСП 0,50% : 0.00 [00:05:28]line НСП 5% : 0.00 [00:05:28]line НСП 3% : 0.00 [00:05:28]line НСП 2% : 0.00 [00:05:28]line НСП 1% : 0.00 [00:05:28]line ИТОГИ ВОЗВРАТ РАСХОДА [00:05:28]line Чеков: 0 [00:05:28]line Общий итог: 0.00 [00:05:28]line Итого наличными: 0.00 [00:05:28]line Итого безнал.: 0.00 [00:05:28]line НДС 0% : 0.00 [00:05:28]line НДС 12% : 0.00 [00:05:28]line НСП 0% : 0.00 [00:05:28]line НСП 1,50% : 0.00 [00:05:28]line НСП 0,50% : 0.00 [00:05:28]line НСП 5% : 0.00 [00:05:28]line НСП 3% : 0.00 [00:05:28]line НСП 2% : 0.00 [00:05:28]line НСП 1% : 0.00 [00:05:28]line Сумма внесений: 0.00 [00:05:28]line Сумма выплат: 0.00 [00:05:28]line Нал. в кассе: 30730.00 [00:05:28]line НС Приход: 30057245.44 [00:05:28]line НС Возвр.Прихода: 751436.60 [00:05:28]line НС Расход: 0.00 [00:05:28]line НС Возвр.Расхода: 0.00 [00:05:28]line ФМ: 0000000000874692 [00:05:28]written 0, free lines is 4095 [00:05:29]Write to MH i2c: 01 00 00 54 01 55 [00:05:29]Write i2c OK [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: 01 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: 01 07 00 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: 01 07 00 54 01 00 00 00 00 00 10 0B 77 [00:05:29]RasterBufferAndPrint [00:05:29]line [00:05:29]line [00:05:29]line [00:05:29]line [00:05:29]line [00:05:29]written 0, free lines is 2870 [00:05:29]MH_Cut [00:05:29]Write to MH i2c: D1 01 00 5B 01 01 2E [00:05:29]Write i2c OK [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: D1 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: D1 01 00 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: D1 01 00 5B 01 00 2D [00:05:29]Write to MH i2c: 01 00 00 5C 01 5D [00:05:29]Write i2c OK [00:05:29]MH_I2C_Read... [00:05:30]*** Cut start [00:05:30]*** Purtial cut [00:05:30]*** Stage 1: CUTSNS_PIN = 1 [00:05:32]Read from MH i2c: 01 [00:05:32]MH_I2C_Read... [00:05:32]*** Stop cut motor [00:05:32]*** Cut end [00:05:32]Read from MH i2c: 01 07 00 [00:05:32]MH_I2C_Read... [00:05:32]Read from MH i2c: 01 07 00 5C 01 00 00 00 00 00 FF 0F 72 [00:05:32]process_action x_report done [00:05:32]requested_data is exist [00:05:32]produce_requested_data [00:05:32]requested_item fd.num is exist - process it [00:05:32]SAM_PROTO_GetFieldsCounters [00:05:32]wFMCommunicate request_size=4 [00:05:32]MH_SAM_APDU [00:05:32]CAPDU: 80 13 00 00 [00:05:32]Write to MH i2c: E2 08 00 5D 01 80 13 00 00 00 00 00 00 DA [00:05:32]Write i2c OK [00:05:32]MH_I2C_Read... [00:05:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:05:32]Read from MH i2c: E2 [00:05:32]MH_I2C_Read... [00:05:32]Read from MH i2c: E2 62 00 [00:05:32]MH_I2C_Read... [00:05:32]Read from MH i2c: E2 62 00 5D 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 17 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [00:05:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 17 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:05:32]wFMCommunicate OK [00:05:32]SAM_PROTO_GetFieldsCounters done [00:05:32]requested_item shift.num is exist - process it [00:05:32]requested_item shift.opened is exist - process it [00:05:32]req_shift_opened [00:05:32]FM_GetShiftState [00:05:32]SAM_PROTO_GetShiftState [00:05:32]wFMCommunicate request_size=4 [00:05:32]MH_SAM_APDU [00:05:32]CAPDU: 80 13 01 00 [00:05:32]Write to MH i2c: E2 08 00 5E 01 80 13 01 00 00 00 00 00 DC [00:05:32]Write i2c OK [00:05:32]MH_I2C_Read... [00:05:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:05:32]Read from MH i2c: E2 [00:05:32]MH_I2C_Read... [00:05:32]Read from MH i2c: E2 0E 00 [00:05:32]MH_I2C_Read... [00:05:32]Read from MH i2c: E2 0E 00 5E 01 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 5E [00:05:32]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [00:05:32]wFMCommunicate OK [00:05:32]SAM_PROTO_GetShiftState done [00:05:32]FM_GetShiftState done [00:05:32]req_shift_opened done [00:05:32]requested_item shift.open_date is exist - process it [00:05:32]req_shift_open_date [00:05:32]req_shift_open_date done [00:05:32]produce_requested_data done [00:05:32]produce_requested_data return {"fd.num":92695,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [00:05:32]process_action_free x_report [00:05:32]json_value_free [00:05:32]json_value_free done [00:05:32]process_json_proto returns [00:05:32]Send response to host [00:05:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":92695,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [00:05:32]free response buf [00:05:32]execute_script done [00:05:32]execute_script returns [00:05:32]free content buf [00:05:32]Sock 6.Close socket [00:05:32]Sock 6.Thread stoped [00:05:32]OFD Sender: No OFD packet to send [00:05:37]OFD Sender: No OFD packet to send [00:05:42]OFD Sender: No OFD packet to send [00:05:47]OFD Sender: No OFD packet to send [00:05:52]OFD Sender: No OFD packet to send [00:05:57]OFD Sender: No OFD packet to send [00:06:02]OFD Sender: No OFD packet to send [00:06:07]accept exits with 7 [00:06:07]New connection [00:06:07]New thread 3066752356 created [00:06:07]Thread 3066608996 joined [00:06:07]Waiting for new connection... [00:06:07] Sock 7.Parse request [00:06:07]Sock 7.Check first char [00:06:07]Sock 7.First char is OK [00:06:07]request: POST /json_proto HTTP/1.0 [00:06:07]Method: POST [00:06:07]URL: /json_proto [00:06:07]Method is POST - this is cgi request [00:06:07]url: /json_proto [00:06:07]query_string will be loaded in cgi processing [00:06:07]execute_cgi json_proto POST (null) [00:06:07]execute_cgi path=json_proto method=POST [00:06:07]POST find Content-Length [00:06:07]Host: 172.17.57.71:8080 [00:06:07]Content-Length: 215 [00:06:07]Content-Type: application/json [00:06:07] [00:06:07]POST finish read [00:06:07]Found Content-Length = 215 [00:06:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:07]execute_script... [00:06:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:07]POST & json_proto [00:06:07]process_json_proto [00:06:07]json parsed OK: [00:06:07]protocol is kg_v1.0 [00:06:07]action value=get_value [00:06:07]process_action get_value [00:06:07]cmd_get_value [00:06:07]process_action get_value done [00:06:07]requested_data is exist [00:06:07]produce_requested_data [00:06:07]requested_item kkm.sn is exist - process it [00:06:07]requested_item kkm.ver is exist - process it [00:06:07]requested_item fm.sn is exist - process it [00:06:07]wFMCommunicate request_size=4 [00:06:07]MH_SAM_APDU [00:06:07]CAPDU: 80 11 00 00 [00:06:07]Write to MH i2c: E2 08 00 5F 01 80 11 00 00 00 00 00 00 DA [00:06:07]Write i2c OK [00:06:07]MH_I2C_Read... [00:06:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:07]Read from MH i2c: E2 [00:06:07]MH_I2C_Read... [00:06:07]Read from MH i2c: E2 17 00 [00:06:07]MH_I2C_Read... [00:06:07]Read from MH i2c: E2 17 00 5F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 31 [00:06:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:06:07]wFMCommunicate OK [00:06:07]requested_item fd.num is exist - process it [00:06:07]SAM_PROTO_GetFieldsCounters [00:06:07]wFMCommunicate request_size=4 [00:06:07]MH_SAM_APDU [00:06:07]CAPDU: 80 13 00 00 [00:06:07]Write to MH i2c: E2 08 00 60 01 80 13 00 00 00 00 00 00 DD [00:06:07]Write i2c OK [00:06:07]MH_I2C_Read... [00:06:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:07]Read from MH i2c: E2 [00:06:07]MH_I2C_Read... [00:06:07]Read from MH i2c: E2 62 00 [00:06:07]MH_I2C_Read... [00:06:07]Read from MH i2c: E2 62 00 60 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 17 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [00:06:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 17 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:06:07]wFMCommunicate OK [00:06:07]SAM_PROTO_GetFieldsCounters done [00:06:07]requested_item shift.num is exist - process it [00:06:07]requested_item shift.opened is exist - process it [00:06:07]req_shift_opened [00:06:07]FM_GetShiftState [00:06:07]SAM_PROTO_GetShiftState [00:06:07]wFMCommunicate request_size=4 [00:06:07]MH_SAM_APDU [00:06:07]CAPDU: 80 13 01 00 [00:06:07]Write to MH i2c: E2 08 00 61 01 80 13 01 00 00 00 00 00 DF [00:06:07]Write i2c OK [00:06:07]MH_I2C_Read... [00:06:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:07]Read from MH i2c: E2 [00:06:07]MH_I2C_Read... [00:06:07]Read from MH i2c: E2 0E 00 [00:06:07]MH_I2C_Read... [00:06:07]Read from MH i2c: E2 0E 00 61 01 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 61 [00:06:07]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [00:06:07]wFMCommunicate OK [00:06:07]SAM_PROTO_GetShiftState done [00:06:07]FM_GetShiftState done [00:06:07]req_shift_opened done [00:06:07]requested_item shift.open_date is exist - process it [00:06:07]req_shift_open_date [00:06:07]req_shift_open_date done [00:06:07]produce_requested_data done [00:06:07]produce_requested_data return {"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92695,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [00:06:07]process_action_free get_value [00:06:07]json_value_free [00:06:07]json_value_free done [00:06:07]process_json_proto returns [00:06:07]Send response to host [00:06:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92695,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [00:06:07]free response buf [00:06:07]execute_script done [00:06:07]execute_script returns [00:06:07]free content buf [00:06:07]Sock 7.Close socket [00:06:07]Sock 7.Thread stoped [00:06:07]accept exits with 6 [00:06:07]New connection [00:06:07]New thread 3066608996 created [00:06:07]Thread 3066752356 joined [00:06:07]Waiting for new connection... [00:06:07] Sock 6.Parse request [00:06:07]Sock 6.Check first char [00:06:07]Sock 6.First char is OK [00:06:07]request: POST /json_proto HTTP/1.0 [00:06:07]Method: POST [00:06:07]URL: /json_proto [00:06:07]Method is POST - this is cgi request [00:06:07]url: /json_proto [00:06:07]query_string will be loaded in cgi processing [00:06:07]execute_cgi json_proto POST (null) [00:06:07]execute_cgi path=json_proto method=POST [00:06:07]POST find Content-Length [00:06:07]Host: 172.17.57.71:8080 [00:06:07]Content-Length: 331 [00:06:07]Content-Type: application/json [00:06:07] [00:06:07]POST finish read [00:06:07]Found Content-Length = 331 [00:06:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:07]execute_script... [00:06:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:07]POST & json_proto [00:06:07]process_json_proto [00:06:07]json parsed OK: [00:06:07]protocol is kg_v1.0 [00:06:07]action value=get_value [00:06:07]process_action get_value [00:06:07]cmd_get_value [00:06:07]process_action get_value done [00:06:07]requested_data is exist [00:06:07]produce_requested_data [00:06:07]requested_item fm.sale.total is exist - process it [00:06:07]SAM_PROTO_GetFMData [00:06:07]wFMCommunicate request_size=4 [00:06:07]MH_SAM_APDU [00:06:07]CAPDU: 80 13 03 00 [00:06:07]Write to MH i2c: E2 08 00 62 01 80 13 03 00 00 00 00 00 E2 [00:06:07]Write i2c OK [00:06:07]MH_I2C_Read... [00:06:07]OFD Sender: No OFD packet to send [00:06:08]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:08]Read from MH i2c: E2 [00:06:08]MH_I2C_Read... [00:06:08]Read from MH i2c: E2 FD 00 [00:06:08]MH_I2C_Read... [00:06:08]Read from MH i2c: E2 FD 00 62 01 00 C5 04 85 04 C1 04 6E 04 04 00 21 66 01 00 69 04 A1 00 6F 04 04 00 CD 62 01 00 B1 04 04 00 80 B7 27 B3 70 04 04 00 B0 CE 84 83 72 04 04 00 D0 E8 A2 2F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5A D0 06 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 21 C0 95 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 54 03 00 00 B1 04 04 00 EC 99 7A 04 70 04 04 00 98 B8 41 04 72 04 03 00 54 E1 38 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C8 79 EF 03 09 90 00 43 [00:06:08]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 21 66 01 00 69 04 A1 00 6F 04 04 00 CD 62 01 00 B1 04 04 00 80 B7 27 B3 70 04 04 00 B0 CE 84 83 72 04 04 00 D0 E8 A2 2F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5A D0 06 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 21 C0 95 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 54 03 00 00 B1 04 04 00 EC 99 7A 04 70 04 04 00 98 B8 41 04 72 04 03 00 54 E1 38 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C8 79 EF 03 09 90 00 [00:06:08]wFMCommunicate OK [00:06:08]wFMCommunicate request_size=4 [00:06:08]MH_SAM_APDU [00:06:08]CAPDU: 80 17 00 00 [00:06:08]Write to MH i2c: E2 08 00 63 01 80 17 00 00 00 00 00 00 E4 [00:06:08]Write i2c OK [00:06:08]MH_I2C_Read... [00:06:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:08]Read from MH i2c: E2 [00:06:08]MH_I2C_Read... [00:06:08]Read from MH i2c: E2 FD 00 [00:06:08]MH_I2C_Read... [00:06:08]Read from MH i2c: E2 FD 00 63 01 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AA 25 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 73 [00:06:08]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AA 25 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:06:08]wFMCommunicate OK [00:06:08]wFMCommunicate request_size=4 [00:06:08]MH_SAM_APDU [00:06:08]CAPDU: 80 17 00 00 [00:06:08]Write to MH i2c: E2 08 00 64 01 80 17 00 00 00 00 00 00 E5 [00:06:08]Write i2c OK [00:06:08]MH_I2C_Read... [00:06:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:08]Read from MH i2c: E2 [00:06:08]MH_I2C_Read... [00:06:08]Read from MH i2c: E2 FD 00 [00:06:08]MH_I2C_Read... [00:06:08]Read from MH i2c: E2 FD 00 64 01 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 F7 [00:06:08]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:06:08]wFMCommunicate OK [00:06:08]wFMCommunicate request_size=4 [00:06:08]MH_SAM_APDU [00:06:08]CAPDU: 80 17 00 00 [00:06:08]Write to MH i2c: E2 08 00 65 01 80 17 00 00 00 00 00 00 E6 [00:06:08]Write i2c OK [00:06:08]MH_I2C_Read... [00:06:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:08]Read from MH i2c: E2 [00:06:08]MH_I2C_Read... [00:06:08]Read from MH i2c: E2 FD 00 [00:06:08]MH_I2C_Read... [00:06:08]Read from MH i2c: E2 FD 00 65 01 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 72 [00:06:08]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:06:08]wFMCommunicate OK [00:06:08]wFMCommunicate request_size=4 [00:06:08]MH_SAM_APDU [00:06:08]CAPDU: 80 17 00 00 [00:06:08]Write to MH i2c: E2 08 00 66 01 80 17 00 00 00 00 00 00 E7 [00:06:08]Write i2c OK [00:06:08]MH_I2C_Read... [00:06:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:06:09]Read from MH i2c: E2 [00:06:09]MH_I2C_Read... [00:06:09]Read from MH i2c: E2 E2 00 [00:06:09]MH_I2C_Read... [00:06:09]Read from MH i2c: E2 E2 00 66 01 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C5 [00:06:09]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:09]wFMCommunicate OK [00:06:09]SAM_PROTO_GetFMData done [00:06:09]requested_item fm.sale_refund.total is exist - process it [00:06:09]requested_item fm.buy.total is exist - process it [00:06:09]requested_item shift.sale.total is exist - process it [00:06:09]SAM_PROTO_GetShiftData [00:06:09]wFMCommunicate request_size=4 [00:06:09]MH_SAM_APDU [00:06:09]CAPDU: 80 13 02 00 [00:06:09]Write to MH i2c: E2 08 00 67 01 80 13 02 00 00 00 00 00 E6 [00:06:09]Write i2c OK [00:06:09]MH_I2C_Read... [00:06:09]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:09]Read from MH i2c: E2 [00:06:09]MH_I2C_Read... [00:06:09]Read from MH i2c: E2 FD 00 [00:06:09]MH_I2C_Read... [00:06:09]Read from MH i2c: E2 FD 00 67 01 00 B8 04 AA 04 B4 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8D 00 00 00 B1 04 03 00 47 36 5A 70 04 03 00 64 9C 31 72 04 03 00 E3 99 28 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 9D 94 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E CC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 7C B8 02 70 04 03 00 7C B8 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F7 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 A2 [00:06:09]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8D 00 00 00 B1 04 03 00 47 36 5A 70 04 03 00 64 9C 31 72 04 03 00 E3 99 28 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 9D 94 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E CC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 7C B8 02 70 04 03 00 7C B8 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F7 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:06:09]wFMCommunicate OK [00:06:09]wFMCommunicate request_size=4 [00:06:09]MH_SAM_APDU [00:06:09]CAPDU: 80 17 00 00 [00:06:09]Write to MH i2c: E2 08 00 68 01 80 17 00 00 00 00 00 00 E9 [00:06:09]Write i2c OK [00:06:09]MH_I2C_Read... [00:06:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:10]Read from MH i2c: E2 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 FD 00 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 FD 00 68 01 00 0B 00 F6 03 01 00 01 F7 03 02 00 29 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 49 [00:06:10]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 29 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:06:10]wFMCommunicate OK [00:06:10]wFMCommunicate request_size=4 [00:06:10]MH_SAM_APDU [00:06:10]CAPDU: 80 17 00 00 [00:06:10]Write to MH i2c: E2 08 00 69 01 80 17 00 00 00 00 00 00 EA [00:06:10]Write i2c OK [00:06:10]MH_I2C_Read... [00:06:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:10]Read from MH i2c: E2 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 FD 00 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 FD 00 69 01 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 8C [00:06:10]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [00:06:10]wFMCommunicate OK [00:06:10]wFMCommunicate request_size=4 [00:06:10]MH_SAM_APDU [00:06:10]CAPDU: 80 17 00 00 [00:06:10]Write to MH i2c: E2 08 00 6A 01 80 17 00 00 00 00 00 00 EB [00:06:10]Write i2c OK [00:06:10]MH_I2C_Read... [00:06:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:10]Read from MH i2c: E2 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 FD 00 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 FD 00 6A 01 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 74 [00:06:10]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [00:06:10]wFMCommunicate OK [00:06:10]wFMCommunicate request_size=4 [00:06:10]MH_SAM_APDU [00:06:10]CAPDU: 80 17 00 00 [00:06:10]Write to MH i2c: E2 08 00 6B 01 80 17 00 00 00 00 00 00 EC [00:06:10]Write i2c OK [00:06:10]MH_I2C_Read... [00:06:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:06:10]Read from MH i2c: E2 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 D5 00 [00:06:10]MH_I2C_Read... [00:06:11]Read from MH i2c: E2 D5 00 6B 01 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 CD [00:06:11]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:11]wFMCommunicate OK [00:06:11]SAM_PROTO_GetShiftData done [00:06:11]requested_item shift.sale.total_cash is exist - process it [00:06:11]requested_item shift.sale_refund.total is exist - process it [00:06:11]requested_item shift.sale_refund.total_cash is exist - process it [00:06:11]requested_item shift.buy.total is exist - process it [00:06:11]requested_item shift.buy.total_cash is exist - process it [00:06:11]produce_requested_data done [00:06:11]produce_requested_data return {"fm.sale.total":30057245.44,"fm.sale_refund.total":751436.60,"fm.buy.total":0.00,"shift.sale.total":59121.35,"shift.sale.total_cash":32513.00,"shift.sale_refund.total":1783.00,"shift.sale_refund.total_cash":1783.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:06:11]process_action_free get_value [00:06:11]json_value_free [00:06:11]json_value_free done [00:06:11]process_json_proto returns [00:06:11]Send response to host [00:06:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":30057245.44,"fm.sale_refund.total":751436.60,"fm.buy.total":0.00,"shift.sale.total":59121.35,"shift.sale.total_cash":32513.00,"shift.sale_refund.total":1783.00,"shift.sale_refund.total_cash":1783.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:06:11]free response buf [00:06:11]execute_script done [00:06:11]execute_script returns [00:06:11]free content buf [00:06:11]Sock 6.Close socket [00:06:11]Sock 6.Thread stoped [00:06:11]accept exits with 7 [00:06:11]New connection [00:06:11]New thread 3066752356 created [00:06:11]Thread 3066608996 joined [00:06:11]Waiting for new connection... [00:06:11] Sock 7.Parse request [00:06:11]Sock 7.Check first char [00:06:11]Sock 7.First char is OK [00:06:11]request: POST /json_proto HTTP/1.0 [00:06:11]Method: POST [00:06:11]URL: /json_proto [00:06:11]Method is POST - this is cgi request [00:06:11]url: /json_proto [00:06:11]query_string will be loaded in cgi processing [00:06:11]execute_cgi json_proto POST (null) [00:06:11]execute_cgi path=json_proto method=POST [00:06:11]POST find Content-Length [00:06:11]Host: 172.17.57.71:8080 [00:06:11]Content-Length: 331 [00:06:11]Content-Type: application/json [00:06:11] [00:06:11]POST finish read [00:06:11]Found Content-Length = 331 [00:06:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:11]execute_script... [00:06:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:11]POST & json_proto [00:06:11]process_json_proto [00:06:11]json parsed OK: [00:06:11]protocol is kg_v1.0 [00:06:11]action value=get_value [00:06:11]process_action get_value [00:06:11]cmd_get_value [00:06:11]process_action get_value done [00:06:11]requested_data is exist [00:06:11]produce_requested_data [00:06:11]requested_item fm.sale.total is exist - process it [00:06:11]SAM_PROTO_GetFMData [00:06:11]wFMCommunicate request_size=4 [00:06:11]MH_SAM_APDU [00:06:11]CAPDU: 80 13 03 00 [00:06:11]Write to MH i2c: E2 08 00 6C 01 80 13 03 00 00 00 00 00 EC [00:06:11]Write i2c OK [00:06:11]MH_I2C_Read... [00:06:11]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:11]Read from MH i2c: E2 [00:06:11]MH_I2C_Read... [00:06:11]Read from MH i2c: E2 FD 00 [00:06:11]MH_I2C_Read... [00:06:11]Read from MH i2c: E2 FD 00 6C 01 00 C5 04 85 04 C1 04 6E 04 04 00 21 66 01 00 69 04 A1 00 6F 04 04 00 CD 62 01 00 B1 04 04 00 80 B7 27 B3 70 04 04 00 B0 CE 84 83 72 04 04 00 D0 E8 A2 2F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5A D0 06 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 21 C0 95 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 54 03 00 00 B1 04 04 00 EC 99 7A 04 70 04 04 00 98 B8 41 04 72 04 03 00 54 E1 38 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C8 79 EF 03 09 90 00 4D [00:06:11]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 21 66 01 00 69 04 A1 00 6F 04 04 00 CD 62 01 00 B1 04 04 00 80 B7 27 B3 70 04 04 00 B0 CE 84 83 72 04 04 00 D0 E8 A2 2F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5A D0 06 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 21 C0 95 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 54 03 00 00 B1 04 04 00 EC 99 7A 04 70 04 04 00 98 B8 41 04 72 04 03 00 54 E1 38 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C8 79 EF 03 09 90 00 [00:06:11]wFMCommunicate OK [00:06:11]wFMCommunicate request_size=4 [00:06:11]MH_SAM_APDU [00:06:11]CAPDU: 80 17 00 00 [00:06:11]Write to MH i2c: E2 08 00 6D 01 80 17 00 00 00 00 00 00 EE [00:06:11]Write i2c OK [00:06:11]MH_I2C_Read... [00:06:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:12]Read from MH i2c: E2 [00:06:12]MH_I2C_Read... [00:06:12]Read from MH i2c: E2 FD 00 [00:06:12]MH_I2C_Read... [00:06:12]Read from MH i2c: E2 FD 00 6D 01 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AA 25 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 7D [00:06:12]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AA 25 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:06:12]wFMCommunicate OK [00:06:12]wFMCommunicate request_size=4 [00:06:12]MH_SAM_APDU [00:06:12]CAPDU: 80 17 00 00 [00:06:12]Write to MH i2c: E2 08 00 6E 01 80 17 00 00 00 00 00 00 EF [00:06:12]Write i2c OK [00:06:12]MH_I2C_Read... [00:06:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:12]Read from MH i2c: E2 [00:06:12]MH_I2C_Read... [00:06:12]Read from MH i2c: E2 FD 00 [00:06:12]MH_I2C_Read... [00:06:12]Read from MH i2c: E2 FD 00 6E 01 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 01 [00:06:12]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:06:12]wFMCommunicate OK [00:06:12]wFMCommunicate request_size=4 [00:06:12]MH_SAM_APDU [00:06:12]CAPDU: 80 17 00 00 [00:06:12]Write to MH i2c: E2 08 00 6F 01 80 17 00 00 00 00 00 00 F0 [00:06:12]Write i2c OK [00:06:12]MH_I2C_Read... [00:06:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:12]Read from MH i2c: E2 [00:06:12]MH_I2C_Read... [00:06:12]Read from MH i2c: E2 FD 00 [00:06:12]MH_I2C_Read... [00:06:12]Read from MH i2c: E2 FD 00 6F 01 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 7C [00:06:12]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:06:13]wFMCommunicate OK [00:06:13]wFMCommunicate request_size=4 [00:06:13]MH_SAM_APDU [00:06:13]CAPDU: 80 17 00 00 [00:06:13]Write to MH i2c: E2 08 00 70 01 80 17 00 00 00 00 00 00 F1 [00:06:13]Write i2c OK [00:06:13]MH_I2C_Read... [00:06:13]OFD Sender: No OFD packet to send [00:06:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:06:13]Read from MH i2c: E2 [00:06:13]MH_I2C_Read... [00:06:13]Read from MH i2c: E2 E2 00 [00:06:13]MH_I2C_Read... [00:06:13]Read from MH i2c: E2 E2 00 70 01 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 CF [00:06:13]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:13]wFMCommunicate OK [00:06:13]SAM_PROTO_GetFMData done [00:06:13]requested_item fm.sale_refund.total is exist - process it [00:06:13]requested_item fm.buy.total is exist - process it [00:06:13]requested_item shift.sale.total is exist - process it [00:06:13]SAM_PROTO_GetShiftData [00:06:13]wFMCommunicate request_size=4 [00:06:13]MH_SAM_APDU [00:06:13]CAPDU: 80 13 02 00 [00:06:13]Write to MH i2c: E2 08 00 71 01 80 13 02 00 00 00 00 00 F0 [00:06:13]Write i2c OK [00:06:13]MH_I2C_Read... [00:06:13]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:13]Read from MH i2c: E2 [00:06:13]MH_I2C_Read... [00:06:13]Read from MH i2c: E2 FD 00 [00:06:13]MH_I2C_Read... [00:06:13]Read from MH i2c: E2 FD 00 71 01 00 B8 04 AA 04 B4 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8D 00 00 00 B1 04 03 00 47 36 5A 70 04 03 00 64 9C 31 72 04 03 00 E3 99 28 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 9D 94 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E CC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 7C B8 02 70 04 03 00 7C B8 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F7 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 AC [00:06:13]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8D 00 00 00 B1 04 03 00 47 36 5A 70 04 03 00 64 9C 31 72 04 03 00 E3 99 28 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 9D 94 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E CC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 7C B8 02 70 04 03 00 7C B8 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F7 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:06:14]wFMCommunicate OK [00:06:14]wFMCommunicate request_size=4 [00:06:14]MH_SAM_APDU [00:06:14]CAPDU: 80 17 00 00 [00:06:14]Write to MH i2c: E2 08 00 72 01 80 17 00 00 00 00 00 00 F3 [00:06:14]Write i2c OK [00:06:14]MH_I2C_Read... [00:06:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:14]Read from MH i2c: E2 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 FD 00 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 FD 00 72 01 00 0B 00 F6 03 01 00 01 F7 03 02 00 29 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 53 [00:06:14]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 29 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:06:14]wFMCommunicate OK [00:06:14]wFMCommunicate request_size=4 [00:06:14]MH_SAM_APDU [00:06:14]CAPDU: 80 17 00 00 [00:06:14]Write to MH i2c: E2 08 00 73 01 80 17 00 00 00 00 00 00 F4 [00:06:14]Write i2c OK [00:06:14]MH_I2C_Read... [00:06:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:14]Read from MH i2c: E2 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 FD 00 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 FD 00 73 01 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 96 [00:06:14]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [00:06:14]wFMCommunicate OK [00:06:14]wFMCommunicate request_size=4 [00:06:14]MH_SAM_APDU [00:06:14]CAPDU: 80 17 00 00 [00:06:14]Write to MH i2c: E2 08 00 74 01 80 17 00 00 00 00 00 00 F5 [00:06:14]Write i2c OK [00:06:14]MH_I2C_Read... [00:06:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:15]Read from MH i2c: E2 [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: E2 FD 00 [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: E2 FD 00 74 01 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 7E [00:06:15]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [00:06:15]wFMCommunicate OK [00:06:15]wFMCommunicate request_size=4 [00:06:15]MH_SAM_APDU [00:06:15]CAPDU: 80 17 00 00 [00:06:15]Write to MH i2c: E2 08 00 75 01 80 17 00 00 00 00 00 00 F6 [00:06:15]Write i2c OK [00:06:15]MH_I2C_Read... [00:06:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:06:15]Read from MH i2c: E2 [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: E2 D5 00 [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: E2 D5 00 75 01 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D7 [00:06:15]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:15]wFMCommunicate OK [00:06:15]SAM_PROTO_GetShiftData done [00:06:15]requested_item shift.sale.total_cash is exist - process it [00:06:15]requested_item shift.sale_refund.total is exist - process it [00:06:15]requested_item shift.sale_refund.total_cash is exist - process it [00:06:15]requested_item shift.buy.total is exist - process it [00:06:15]requested_item shift.buy.total_cash is exist - process it [00:06:15]produce_requested_data done [00:06:15]produce_requested_data return {"fm.sale.total":30057245.44,"fm.sale_refund.total":751436.60,"fm.buy.total":0.00,"shift.sale.total":59121.35,"shift.sale.total_cash":32513.00,"shift.sale_refund.total":1783.00,"shift.sale_refund.total_cash":1783.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:06:15]process_action_free get_value [00:06:15]json_value_free [00:06:15]json_value_free done [00:06:15]process_json_proto returns [00:06:15]Send response to host [00:06:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":30057245.44,"fm.sale_refund.total":751436.60,"fm.buy.total":0.00,"shift.sale.total":59121.35,"shift.sale.total_cash":32513.00,"shift.sale_refund.total":1783.00,"shift.sale_refund.total_cash":1783.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:06:15]free response buf [00:06:15]execute_script done [00:06:15]execute_script returns [00:06:15]free content buf [00:06:15]Sock 7.Close socket [00:06:15]Sock 7.Thread stoped [00:06:15]accept exits with 6 [00:06:15]New connection [00:06:15]New thread 3066608996 created [00:06:15]Thread 3066752356 joined [00:06:15]Waiting for new connection... [00:06:15] Sock 6.Parse request [00:06:15]Sock 6.Check first char [00:06:15]Sock 6.First char is OK [00:06:15]request: POST /json_proto HTTP/1.0 [00:06:15]Method: POST [00:06:15]URL: /json_proto [00:06:15]Method is POST - this is cgi request [00:06:15]url: /json_proto [00:06:15]query_string will be loaded in cgi processing [00:06:15]execute_cgi json_proto POST (null) [00:06:15]execute_cgi path=json_proto method=POST [00:06:15]POST find Content-Length [00:06:15]Host: 172.17.57.71:8080 [00:06:15]Content-Length: 278 [00:06:15]Content-Type: application/json [00:06:15] [00:06:15]POST finish read [00:06:15]Found Content-Length = 278 [00:06:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0431\u0434\u0430\u043B\u0431\u0435\u043A\u043E\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:15]execute_script... [00:06:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0431\u0434\u0430\u043B\u0431\u0435\u043A\u043E\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:15]POST & json_proto [00:06:15]process_json_proto [00:06:15]json parsed OK: [00:06:15]protocol is kg_v1.0 [00:06:15]action value=close_shift [00:06:15]process_action close_shift [00:06:15]cmd_close_shift [00:06:15]MH_GetDate [00:06:15]Write to MH i2c: F0 00 00 76 01 66 [00:06:15]Write i2c OK [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: F0 [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: F0 09 00 [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: F0 09 00 76 01 00 78 76 E7 66 33 3A A4 66 21 [00:06:15]GetLastDocTimeStamp 1726445121 [00:06:15]current date 1726445176 [00:06:15]FM_GetShiftState [00:06:15]SAM_PROTO_GetShiftState [00:06:15]wFMCommunicate request_size=4 [00:06:15]MH_SAM_APDU [00:06:15]CAPDU: 80 13 01 00 [00:06:15]Write to MH i2c: E2 08 00 77 01 80 13 01 00 00 00 00 00 F5 [00:06:15]Write i2c OK [00:06:15]MH_I2C_Read... [00:06:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:15]Read from MH i2c: E2 [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: E2 0E 00 [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: E2 0E 00 77 01 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 77 [00:06:16]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [00:06:16]wFMCommunicate OK [00:06:16]SAM_PROTO_GetShiftState done [00:06:16]FM_GetShiftState done [00:06:16]KKMCreateCloseShiftDocument [00:06:16]Load OK [00:06:16]Malloc new data [00:06:16]MH_GetDate [00:06:16]Write to MH i2c: F0 00 00 78 01 68 [00:06:16]Write i2c OK [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: F0 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: F0 09 00 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: F0 09 00 78 01 00 78 76 E7 66 33 3A A4 66 23 [00:06:16]Malloc new data [00:06:16]Malloc new data [00:06:16]Malloc new data [00:06:16]Malloc new data [00:06:16]KKMCreateCloseShiftDocument OK [00:06:16]KKMSetCloseShiftData OK [00:06:16]ProcessDocumentItem done err = 0, tmpTLVsize=77 [00:06:16]tlvbuf is 0178A150 [00:06:16]KKMLoadAndSignCloseShiftData [00:06:16]SAM_PROTO_ProcessDocument [00:06:16]wFMCommunicate request_size=9 [00:06:16]MH_SAM_APDU [00:06:16]CAPDU: 80 15 01 00 04 05 00 4D 00 [00:06:16]Write to MH i2c: E2 0C 00 79 01 80 15 01 00 04 00 05 00 4D 00 00 00 53 [00:06:16]Write i2c OK [00:06:16]MH_I2C_Read... [00:06:16]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:06:16]Read from MH i2c: E2 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 03 00 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 03 00 79 01 00 90 00 EE [00:06:16]RAPDU: 90 00 [00:06:16]wFMCommunicate OK [00:06:16]wFMCommunicate request_size=23 [00:06:16]MH_SAM_APDU [00:06:16]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:06:16]Write to MH i2c: E2 1A 00 7A 01 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 F0 [00:06:16]Write i2c OK [00:06:16]MH_I2C_Read... [00:06:16]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:16]Read from MH i2c: E2 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 03 00 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 03 00 7A 01 00 90 00 EF [00:06:16]RAPDU: 90 00 [00:06:16]wFMCommunicate OK [00:06:16]wFMCommunicate request_size=36 [00:06:16]MH_SAM_APDU [00:06:16]CAPDU: 80 15 02 00 1F FD 03 1B 00 D0 90 D0 B1 D0 B4 D0 B0 D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 90 2E 20 [00:06:16]Write to MH i2c: E2 27 00 7B 01 80 15 02 00 1F 00 FD 03 1B 00 D0 90 D0 B1 D0 B4 D0 B0 D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 90 2E 20 00 00 B3 [00:06:16]Write i2c OK [00:06:16]MH_I2C_Read... [00:06:16]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:16]Read from MH i2c: E2 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 03 00 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 03 00 7B 01 00 90 00 F0 [00:06:16]RAPDU: 90 00 [00:06:16]wFMCommunicate OK [00:06:16]wFMCommunicate request_size=13 [00:06:16]MH_SAM_APDU [00:06:16]CAPDU: 80 15 02 00 08 F4 03 04 00 78 76 E7 66 [00:06:16]Write to MH i2c: E2 10 00 7C 01 80 15 02 00 08 00 F4 03 04 00 78 76 E7 66 00 00 43 [00:06:16]Write i2c OK [00:06:16]MH_I2C_Read... [00:06:16]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:16]Read from MH i2c: E2 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 03 00 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 03 00 7C 01 00 90 00 F1 [00:06:16]RAPDU: 90 00 [00:06:16]wFMCommunicate OK [00:06:16]wFMCommunicate request_size=25 [00:06:16]MH_SAM_APDU [00:06:16]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 [00:06:16]Write to MH i2c: E2 1C 00 7D 01 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 00 00 5A [00:06:16]Write i2c OK [00:06:16]MH_I2C_Read... [00:06:16]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:16]Read from MH i2c: E2 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 03 00 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 03 00 7D 01 00 90 00 F2 [00:06:16]RAPDU: 90 00 [00:06:16]wFMCommunicate OK [00:06:16]wFMCommunicate request_size=4 [00:06:16]MH_SAM_APDU [00:06:16]CAPDU: 80 15 03 00 [00:06:16]Write to MH i2c: E2 08 00 7E 01 80 15 03 00 00 00 00 00 00 [00:06:16]Write i2c OK [00:06:16]MH_I2C_Read... [00:06:16]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:06:17]Read from MH i2c: E2 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: E2 FD 00 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: E2 FD 00 7E 01 00 FB 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 18 6A 01 00 0E 04 04 00 FB 01 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 91 00 00 00 AA 04 B4 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8D 00 00 00 B1 04 03 00 47 36 5A 70 04 03 00 64 9C 31 72 04 03 00 E3 99 28 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 9D 94 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E CC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 7C B8 02 70 90 00 74 [00:06:17]RAPDU: FB 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 18 6A 01 00 0E 04 04 00 FB 01 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 91 00 00 00 AA 04 B4 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8D 00 00 00 B1 04 03 00 47 36 5A 70 04 03 00 64 9C 31 72 04 03 00 E3 99 28 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 9D 94 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E CC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 7C B8 02 70 90 00 [00:06:17]wFMCommunicate OK [00:06:17]SAM_PROTO_ProcessDocument answer len = 1275 [00:06:17]SAM_PROTO_ProcessDocument remain to read = 1027 [00:06:17]wFMCommunicate request_size=4 [00:06:17]MH_SAM_APDU [00:06:17]CAPDU: 80 17 00 00 [00:06:17]Write to MH i2c: E2 08 00 7F 01 80 17 00 00 00 00 00 00 00 [00:06:17]Write i2c OK [00:06:17]MH_I2C_Read... [00:06:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:17]Read from MH i2c: E2 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: E2 FD 00 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: E2 FD 00 7F 01 00 04 03 00 7C B8 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F7 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 29 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 13 [00:06:17]RAPDU: 04 03 00 7C B8 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F7 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 29 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [00:06:17]wFMCommunicate OK [00:06:17]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:06:17]SAM_PROTO_ProcessDocument remain to read = 777 [00:06:17]wFMCommunicate request_size=4 [00:06:17]MH_SAM_APDU [00:06:17]CAPDU: 80 17 00 00 [00:06:17]Write to MH i2c: E2 08 00 80 01 80 17 00 00 00 00 00 00 01 [00:06:17]Write i2c OK [00:06:17]MH_I2C_Read... [00:06:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:17]Read from MH i2c: E2 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: E2 FD 00 [00:06:17]MH_I2C_Read... [00:06:18]Read from MH i2c: E2 FD 00 80 01 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 90 00 63 [00:06:18]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 OFD Sender: No OFD packet to send [00:06:18]03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 90 00 [00:06:18]wFMCommunicate OK [00:06:18]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:06:18]SAM_PROTO_ProcessDocument remain to read = 527 [00:06:18]wFMCommunicate request_size=4 [00:06:18]MH_SAM_APDU [00:06:18]CAPDU: 80 17 00 00 [00:06:18]Write to MH i2c: E2 08 00 81 01 80 17 00 00 00 00 00 00 02 [00:06:18]Write i2c OK [00:06:18]MH_I2C_Read... [00:06:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:18]Read from MH i2c: E2 [00:06:18]MH_I2C_Read... [00:06:18]Read from MH i2c: E2 FD 00 [00:06:18]MH_I2C_Read... [00:06:18]Read from MH i2c: E2 FD 00 81 01 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 15 [00:06:18]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 [00:06:18]wFMCommunicate OK [00:06:18]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:06:18]SAM_PROTO_ProcessDocument remain to read = 277 [00:06:18]wFMCommunicate request_size=4 [00:06:18]MH_SAM_APDU [00:06:18]CAPDU: 80 17 00 00 [00:06:18]Write to MH i2c: E2 08 00 82 01 80 17 00 00 00 00 00 00 03 [00:06:18]Write i2c OK [00:06:18]MH_I2C_Read... [00:06:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:19]Read from MH i2c: E2 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 FD 00 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 FD 00 82 01 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 42 [00:06:19]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 [00:06:19]wFMCommunicate OK [00:06:19]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:06:19]SAM_PROTO_ProcessDocument remain to read = 27 [00:06:19]wFMCommunicate request_size=4 [00:06:19]MH_SAM_APDU [00:06:19]CAPDU: 80 17 00 00 [00:06:19]Write to MH i2c: E2 08 00 83 01 80 17 00 00 00 00 00 00 04 [00:06:19]Write i2c OK [00:06:19]MH_I2C_Read... [00:06:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 27! [00:06:19]Read from MH i2c: E2 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 1E 00 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 1E 00 83 01 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 36 DD F4 E2 AB E5 90 00 BA [00:06:19]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 36 DD F4 E2 AB E5 90 00 [00:06:19]wFMCommunicate OK [00:06:19]SAM_PROTO_ProcessDocument received (without SW) 27 bytes [00:06:19]SAM_PROTO_ProcessDocument done [00:06:19]1209 (1) - 1.0 - номер версии ФФД [00:06:19]1041 (16) - 0000000000874692 - номер ФМ [00:06:19]1040 (4) - 92696 - номер ФД [00:06:19]1038 (4) - 507 - номер смены [00:06:19]1118 (4) - 143 - количество кассовых чеков за смену [00:06:19]1111 (4) - 145 - общее количество ФД за смену [00:06:19]1194 (1204) - счетчики итогов смены [00:06:19] 1134 (4) - 143 - количество чеков со всеми признаками расчетов [00:06:19] 1129 (155) - счетчики операций «приход» [00:06:19] 1135 (4) - 141 - количество чеков по признаку расчетов [00:06:19] 1201 (3) - 59121.35 - общая итоговая сумма в чеках [00:06:19] 1136 (3) - 32513.00 - итоговая сумма в чеках наличными [00:06:19] 1138 (3) - 26608.35 - итоговая сумма в чеках безналичными [00:06:19] 1024 (122) - суммы налогов [00:06:19] 1006 (9) - суммы НДС [00:06:19] 1010 (1) - 0% - код ставки НДС [00:06:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:19] 1006 (12) - суммы НДС [00:06:19] 1010 (1) - 12% - код ставки НДС [00:06:19] 1011 (3) - 6278.69 - сумма НДС по ставке [00:06:19] 1007 (9) - суммы НСП [00:06:19] 1014 (1) - 0% - код ставки НСП [00:06:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:19] 1007 (11) - суммы НСП [00:06:19] 1014 (1) - 1% - код ставки НСП [00:06:19] 1015 (2) - 523.02 - сумма НСП по ставке [00:06:19] 1007 (9) - суммы НСП [00:06:19] 1014 (1) - 2% - код ставки НСП [00:06:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:19] 1007 (9) - суммы НСП [00:06:19] 1014 (1) - 3% - код ставки НСП [00:06:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:19] 1007 (9) - суммы НСП [00:06:19] 1014 (1) - 5% - код ставки НСП [00:06:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:19] 1007 (9) - суммы НСП [00:06:19] 1014 (1) - 0,50% - код ставки НСП [00:06:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:19] 1007 (9) - суммы НСП [00:06:19] 1014 (1) - 1,50% - код ставки НСП [00:06:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:19] 1130 (151) - счетчики операций «возврат прихода» [00:06:19] 1135 (4) - 2 - количество чеков по признаку расчетов [00:06:19] 1201 (3) - 1783.00 - общая итоговая сумма в чеках [00:06:19] 1136 (3) - 1783.00 - итоговая сумма в чеках наличными [00:06:19] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:06:19] 1024 (121) - суммы налогов [00:06:19] 1006 (9) - суммы НДС [00:06:19] 1010 (1) - 0% - код ставки НДС [00:06:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:19] 1006 (11) - суммы НДС [00:06:19] 1010 (1) - 12% - код ставки НДС [00:06:19] 1011 (2) - 189.35 - сумма НДС по ставке [00:06:19] 1007 (9) - суммы НСП [00:06:19] 1014 (1) - 0% - код ставки НСП [00:06:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:19] 1007 (11) - суммы НСП [00:06:19] 1014 (1) - 1% - код ставки НСП [00:06:19] 1015 (2) - 15.77 - сумма НСП по ставке [00:06:19] 1007 (9) - суммы НСП [00:06:19] 1014 (1) - 2% - код ставки НСП [00:06:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:19] 1007 (9) - суммы НСП [00:06:19] 1014 (1) - 3% - код ставки НСП [00:06:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:19] 1007 (9) - суммы НСП [00:06:19] 1014 (1) - 5% - код ставки НСП [00:06:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:19] 1007 (9) - суммы НСП [00:06:19] 1014 (1) - 0,50% - код ставки НСП [00:06:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:19] 1007 (9) - суммы НСП [00:06:19] 1014 (1) - 1,50% - код ставки НСП [00:06:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:19] 1131 (141) - счетчики операций «расход» [00:06:19] 1135 (4) - 0 - количество чеков по признаку расчетов [00:06:19] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:06:19] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:06:19] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:06:19] 1024 (117) - суммы налогов [00:06:19] 1006 (9) - суммы НДС [00:06:19] 1010 (1) - 0% - код ставки НДС [00:06:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:19] 1006 (9) - суммы НДС [00:06:19] 1010 (1) - 12% - код ставки НДС [00:06:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:19] 1007 (9) - суммы НСП [00:06:19] 1014 (1) - 0% - код ставки НСП [00:06:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:19] 1007 (9) - суммы НСП [00:06:19] 1014 (1) - 1% - код ставки НСП [00:06:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:19] 1007 (9) - суммы НСП [00:06:19] 1014 (1) - 2% - код ставки НСП [00:06:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:19] 1007 (9) - суммы НСП [00:06:19] 1014 (1) - 3% - код ставки НСП [00:06:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:19] 1007 (9) - суммы НСП [00:06:19] 1014 (1) - 5% - код ставки НСП [00:06:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:19] 1007 (9) - суммы НСП [00:06:19] 1014 (1) - 0,50% - код ставки НСП [00:06:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:19] 1007 (9) - суммы НСП [00:06:19] 1014 (1) - 1,50% - код ставки НСП [00:06:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:19] 1132 (141) - счетчики операций «возврат расхода» [00:06:19] 1135 (4) - 0 - количество чеков по признаку расчетов [00:06:19] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:06:19] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:06:19] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:06:19] 1024 (117) - суммы налогов [00:06:19] 1006 (9) - суммы НДС [00:06:19] 1010 (1) - 0% - код ставки НДС [00:06:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:19] 1006 (9) - суммы НДС [00:06:19] 1010 (1) - 12% - код ставки НДС [00:06:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:19] 1007 (9) - суммы НСП [00:06:19] 1014 (1) - 0% - код ставки НСП [00:06:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:19] 1007 (9) - суммы НСП [00:06:19] 1014 (1) - 1% - код ставки НСП [00:06:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:19] 1007 (9) - суммы НСП [00:06:19] 1014 (1) - 2% - код ставки НСП [00:06:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:19] 1007 (9) - суммы НСП [00:06:19] 1014 (1) - 3% - код ставки НСП [00:06:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:19] 1007 (9) - суммы НСП [00:06:19] 1014 (1) - 5% - код ставки НСП [00:06:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:19] 1007 (9) - суммы НСП [00:06:19] 1014 (1) - 0,50% - код ставки НСП [00:06:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:19] 1007 (9) - суммы НСП [00:06:19] 1014 (1) - 1,50% - код ставки НСП [00:06:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:19] 1133 (588) - - счетчики коррекции - не используются [00:06:19]1077 (6) - 60326924168165 - ФПД [00:06:19]SetTLVBufToDocument [00:06:19]Processing tag 1209 (04B9) [00:06:19]Malloc new data [00:06:19]Processing tag 1041 (0411) [00:06:19]Processing tag 1040 (0410) [00:06:19]Malloc new data [00:06:19]Processing tag 1038 (040E) [00:06:19]Malloc new data [00:06:19]Processing tag 1118 (045E) [00:06:19]Malloc new data [00:06:19]Processing tag 1111 (0457) [00:06:19]Malloc new data [00:06:19]Processing tag 1194 (04AA) [00:06:19]Load OK [00:06:19]SetTLVBufToDocument [00:06:19]Processing tag 1134 (046E) [00:06:19]Malloc new data [00:06:19]Processing tag 1129 (0469) [00:06:19]Load OK [00:06:19]SetTLVBufToDocument [00:06:19]Processing tag 1135 (046F) [00:06:19]Malloc new data [00:06:19]Processing tag 1201 (04B1) [00:06:19]Malloc new data [00:06:19]Processing tag 1136 (0470) [00:06:19]Malloc new data [00:06:19]Processing tag 1138 (0472) [00:06:19]Malloc new data [00:06:19]Processing tag 1024 (0400) [00:06:19]Load OK [00:06:19]SetTLVBufToDocument [00:06:19]Processing tag 1006 (03EE) [00:06:19]Load OK [00:06:19]SetTLVBufToDocument [00:06:19]Processing tag 1010 (03F2) [00:06:19]Malloc new data [00:06:19]Processing tag 1011 (03F3) [00:06:19]Malloc new data [00:06:19]SetTLVBufToDocument err=0 [00:06:19]Processing tag 1006 (03EE) [00:06:19]Load OK [00:06:19]SetTLVBufToDocument [00:06:19]Processing tag 1010 (03F2) [00:06:19]Malloc new data [00:06:19]Processing tag 1011 (03F3) [00:06:19]Malloc new data [00:06:19]SetTLVBufToDocument err=0 [00:06:19]Processing tag 1007 (03EF) [00:06:19]Load OK [00:06:19]SetTLVBufToDocument [00:06:19]Processing tag 1014 (03F6) [00:06:19]Malloc new data [00:06:19]Processing tag 1015 (03F7) [00:06:19]Malloc new data [00:06:19]SetTLVBufToDocument err=0 [00:06:19]Processing tag 1007 (03EF) [00:06:19]Load OK [00:06:19]SetTLVBufToDocument [00:06:19]Processing tag 1014 (03F6) [00:06:19]Malloc new data [00:06:19]Processing tag 1015 (03F7) [00:06:19]Malloc new data [00:06:19]SetTLVBufToDocument err=0 [00:06:19]Processing tag 1007 (03EF) [00:06:19]Load OK [00:06:19]SetTLVBufToDocument [00:06:19]Processing tag 1014 (03F6) [00:06:19]Malloc new data [00:06:19]Processing tag 1015 (03F7) [00:06:19]Malloc new data [00:06:19]SetTLVBufToDocument err=0 [00:06:19]Processing tag 1007 (03EF) [00:06:19]Load OK [00:06:19]SetTLVBufToDocument [00:06:19]Processing tag 1014 (03F6) [00:06:19]Malloc new data [00:06:19]Processing tag 1015 (03F7) [00:06:19]Malloc new data [00:06:19]SetTLVBufToDocument err=0 [00:06:19]Processing tag 1007 (03EF) [00:06:19]Load OK [00:06:19]SetTLVBufToDocument [00:06:19]Processing tag 1014 (03F6) [00:06:19]Malloc new data [00:06:20]Processing tag 1015 (03F7) [00:06:20]Malloc new data [00:06:20]SetTLVBufToDocument err=0 [00:06:20]Processing tag 1007 (03EF) [00:06:20]Load OK [00:06:20]SetTLVBufToDocument [00:06:20]Processing tag 1014 (03F6) [00:06:20]Malloc new data [00:06:20]Processing tag 1015 (03F7) [00:06:20]Malloc new data [00:06:20]SetTLVBufToDocument err=0 [00:06:20]Processing tag 1007 (03EF) [00:06:20]Load OK [00:06:20]SetTLVBufToDocument [00:06:20]Processing tag 1014 (03F6) [00:06:20]Malloc new data [00:06:20]Processing tag 1015 (03F7) [00:06:20]Malloc new data [00:06:20]SetTLVBufToDocument err=0 [00:06:20]SetTLVBufToDocument err=0 [00:06:20]SetTLVBufToDocument err=0 [00:06:20]Processing tag 1130 (046A) [00:06:20]Load OK [00:06:20]SetTLVBufToDocument [00:06:20]Processing tag 1135 (046F) [00:06:20]Malloc new data [00:06:20]Processing tag 1201 (04B1) [00:06:20]Malloc new data [00:06:20]Processing tag 1136 (0470) [00:06:20]Malloc new data [00:06:20]Processing tag 1138 (0472) [00:06:20]Malloc new data [00:06:20]Processing tag 1024 (0400) [00:06:20]Load OK [00:06:20]SetTLVBufToDocument [00:06:20]Processing tag 1006 (03EE) [00:06:20]Load OK [00:06:20]SetTLVBufToDocument [00:06:20]Processing tag 1010 (03F2) [00:06:20]Malloc new data [00:06:20]Processing tag 1011 (03F3) [00:06:20]Malloc new data [00:06:20]SetTLVBufToDocument err=0 [00:06:20]Processing tag 1006 (03EE) [00:06:20]Load OK [00:06:20]SetTLVBufToDocument [00:06:20]Processing tag 1010 (03F2) [00:06:20]Malloc new data [00:06:20]Processing tag 1011 (03F3) [00:06:20]Malloc new data [00:06:20]SetTLVBufToDocument err=0 [00:06:20]Processing tag 1007 (03EF) [00:06:20]Load OK [00:06:20]SetTLVBufToDocument [00:06:20]Processing tag 1014 (03F6) [00:06:20]Malloc new data [00:06:20]Processing tag 1015 (03F7) [00:06:20]Malloc new data [00:06:20]SetTLVBufToDocument err=0 [00:06:20]Processing tag 1007 (03EF) [00:06:20]Load OK [00:06:20]SetTLVBufToDocument [00:06:20]Processing tag 1014 (03F6) [00:06:20]Malloc new data [00:06:20]Processing tag 1015 (03F7) [00:06:20]Malloc new data [00:06:20]SetTLVBufToDocument err=0 [00:06:20]Processing tag 1007 (03EF) [00:06:20]Load OK [00:06:20]SetTLVBufToDocument [00:06:20]Processing tag 1014 (03F6) [00:06:20]Malloc new data [00:06:20]Processing tag 1015 (03F7) [00:06:20]Malloc new data [00:06:20]SetTLVBufToDocument err=0 [00:06:20]Processing tag 1007 (03EF) [00:06:20]Load OK [00:06:20]SetTLVBufToDocument [00:06:20]Processing tag 1014 (03F6) [00:06:20]Malloc new data [00:06:20]Processing tag 1015 (03F7) [00:06:20]Malloc new data [00:06:20]SetTLVBufToDocument err=0 [00:06:20]Processing tag 1007 (03EF) [00:06:20]Load OK [00:06:20]SetTLVBufToDocument [00:06:20]Processing tag 1014 (03F6) [00:06:20]Malloc new data [00:06:20]Processing tag 1015 (03F7) [00:06:20]Malloc new data [00:06:20]SetTLVBufToDocument err=0 [00:06:20]Processing tag 1007 (03EF) [00:06:20]Load OK [00:06:20]SetTLVBufToDocument [00:06:20]Processing tag 1014 (03F6) [00:06:20]Malloc new data [00:06:20]Processing tag 1015 (03F7) [00:06:20]Malloc new data [00:06:20]SetTLVBufToDocument err=0 [00:06:20]Processing tag 1007 (03EF) [00:06:20]Load OK [00:06:20]SetTLVBufToDocument [00:06:20]Processing tag 1014 (03F6) [00:06:20]Malloc new data [00:06:20]Processing tag 1015 (03F7) [00:06:20]Malloc new data [00:06:20]SetTLVBufToDocument err=0 [00:06:20]SetTLVBufToDocument err=0 [00:06:20]SetTLVBufToDocument err=0 [00:06:20]Processing tag 1131 (046B) [00:06:20]Load OK [00:06:20]SetTLVBufToDocument [00:06:20]Processing tag 1135 (046F) [00:06:20]Malloc new data [00:06:20]Processing tag 1201 (04B1) [00:06:20]Malloc new data [00:06:20]Processing tag 1136 (0470) [00:06:20]Malloc new data [00:06:20]Processing tag 1138 (0472) [00:06:20]Malloc new data [00:06:20]Processing tag 1024 (0400) [00:06:20]Load OK [00:06:20]SetTLVBufToDocument [00:06:20]Processing tag 1006 (03EE) [00:06:20]Load OK [00:06:20]SetTLVBufToDocument [00:06:20]Processing tag 1010 (03F2) [00:06:20]Malloc new data [00:06:20]Processing tag 1011 (03F3) [00:06:20]Malloc new data [00:06:20]SetTLVBufToDocument err=0 [00:06:20]Processing tag 1006 (03EE) [00:06:20]Load OK [00:06:20]SetTLVBufToDocument [00:06:20]Processing tag 1010 (03F2) [00:06:20]Malloc new data [00:06:20]Processing tag 1011 (03F3) [00:06:20]Malloc new data [00:06:20]SetTLVBufToDocument err=0 [00:06:20]Processing tag 1007 (03EF) [00:06:20]Load OK [00:06:20]SetTLVBufToDocument [00:06:20]Processing tag 1014 (03F6) [00:06:20]Malloc new data [00:06:20]Processing tag 1015 (03F7) [00:06:20]Malloc new data [00:06:20]SetTLVBufToDocument err=0 [00:06:20]Processing tag 1007 (03EF) [00:06:20]Load OK [00:06:20]SetTLVBufToDocument [00:06:20]Processing tag 1014 (03F6) [00:06:20]Malloc new data [00:06:20]Processing tag 1015 (03F7) [00:06:20]Malloc new data [00:06:20]SetTLVBufToDocument err=0 [00:06:20]Processing tag 1007 (03EF) [00:06:20]Load OK [00:06:20]SetTLVBufToDocument [00:06:20]Processing tag 1014 (03F6) [00:06:20]Malloc new data [00:06:20]Processing tag 1015 (03F7) [00:06:20]Malloc new data [00:06:20]SetTLVBufToDocument err=0 [00:06:20]Processing tag 1007 (03EF) [00:06:20]Load OK [00:06:20]SetTLVBufToDocument [00:06:20]Processing tag 1014 (03F6) [00:06:20]Malloc new data [00:06:20]Processing tag 1015 (03F7) [00:06:20]Malloc new data [00:06:20]SetTLVBufToDocument err=0 [00:06:20]Processing tag 1007 (03EF) [00:06:20]Load OK [00:06:20]SetTLVBufToDocument [00:06:20]Processing tag 1014 (03F6) [00:06:20]Malloc new data [00:06:20]Processing tag 1015 (03F7) [00:06:20]Malloc new data [00:06:20]SetTLVBufToDocument err=0 [00:06:20]Processing tag 1007 (03EF) [00:06:20]Load OK [00:06:20]SetTLVBufToDocument [00:06:20]Processing tag 1014 (03F6) [00:06:20]Malloc new data [00:06:20]Processing tag 1015 (03F7) [00:06:20]Malloc new data [00:06:20]SetTLVBufToDocument err=0 [00:06:20]Processing tag 1007 (03EF) [00:06:20]Load OK [00:06:20]SetTLVBufToDocument [00:06:20]Processing tag 1014 (03F6) [00:06:20]Malloc new data [00:06:20]Processing tag 1015 (03F7) [00:06:20]Malloc new data [00:06:20]SetTLVBufToDocument err=0 [00:06:20]SetTLVBufToDocument err=0 [00:06:20]SetTLVBufToDocument err=0 [00:06:20]Processing tag 1132 (046C) [00:06:20]Load OK [00:06:20]SetTLVBufToDocument [00:06:20]Processing tag 1135 (046F) [00:06:20]Malloc new data [00:06:20]Processing tag 1201 (04B1) [00:06:20]Malloc new data [00:06:20]Processing tag 1136 (0470) [00:06:20]Malloc new data [00:06:20]Processing tag 1138 (0472) [00:06:20]Malloc new data [00:06:20]Processing tag 1024 (0400) [00:06:20]Load OK [00:06:20]SetTLVBufToDocument [00:06:20]Processing tag 1006 (03EE) [00:06:20]Load OK [00:06:20]SetTLVBufToDocument [00:06:20]Processing tag 1010 (03F2) [00:06:20]Malloc new data [00:06:20]Processing tag 1011 (03F3) [00:06:20]Malloc new data [00:06:20]SetTLVBufToDocument err=0 [00:06:20]Processing tag 1006 (03EE) [00:06:20]Load OK [00:06:20]SetTLVBufToDocument [00:06:20]Processing tag 1010 (03F2) [00:06:20]Malloc new data [00:06:20]Processing tag 1011 (03F3) [00:06:20]Malloc new data [00:06:20]SetTLVBufToDocument err=0 [00:06:20]Processing tag 1007 (03EF) [00:06:20]Load OK [00:06:20]SetTLVBufToDocument [00:06:20]Processing tag 1014 (03F6) [00:06:20]Malloc new data [00:06:20]Processing tag 1015 (03F7) [00:06:20]Malloc new data [00:06:20]SetTLVBufToDocument err=0 [00:06:20]Processing tag 1007 (03EF) [00:06:20]Load OK [00:06:20]SetTLVBufToDocument [00:06:20]Processing tag 1014 (03F6) [00:06:20]Malloc new data [00:06:20]Processing tag 1015 (03F7) [00:06:20]Malloc new data [00:06:20]SetTLVBufToDocument err=0 [00:06:20]Processing tag 1007 (03EF) [00:06:20]Load OK [00:06:20]SetTLVBufToDocument [00:06:20]Processing tag 1014 (03F6) [00:06:20]Malloc new data [00:06:20]Processing tag 1015 (03F7) [00:06:20]Malloc new data [00:06:20]SetTLVBufToDocument err=0 [00:06:20]Processing tag 1007 (03EF) [00:06:20]Load OK [00:06:20]SetTLVBufToDocument [00:06:20]Processing tag 1014 (03F6) [00:06:20]Malloc new data [00:06:20]Processing tag 1015 (03F7) [00:06:20]Malloc new data [00:06:20]SetTLVBufToDocument err=0 [00:06:20]Processing tag 1007 (03EF) [00:06:20]Load OK [00:06:20]SetTLVBufToDocument [00:06:20]Processing tag 1014 (03F6) [00:06:20]Malloc new data [00:06:20]Processing tag 1015 (03F7) [00:06:20]Malloc new data [00:06:20]SetTLVBufToDocument err=0 [00:06:20]Processing tag 1007 (03EF) [00:06:20]Load OK [00:06:20]SetTLVBufToDocument [00:06:20]Processing tag 1014 (03F6) [00:06:20]Malloc new data [00:06:20]Processing tag 1015 (03F7) [00:06:20]Malloc new data [00:06:20]SetTLVBufToDocument err=0 [00:06:20]Processing tag 1007 (03EF) [00:06:20]Load OK [00:06:20]SetTLVBufToDocument [00:06:20]Processing tag 1014 (03F6) [00:06:20]Malloc new data [00:06:20]Processing tag 1015 (03F7) [00:06:20]Malloc new data [00:06:20]SetTLVBufToDocument err=0 [00:06:20]SetTLVBufToDocument err=0 [00:06:20]SetTLVBufToDocument err=0 [00:06:20]Processing tag 1133 (046D) [00:06:20]Malloc new data [00:06:20]SetTLVBufToDocument err=0 [00:06:20]Processing tag 1077 (0435) [00:06:20]Malloc new data [00:06:20]SetTLVBufToDocument err=0 [00:06:20]Malloc new data [00:06:20]SAM_PROTO_GetFMData [00:06:20]wFMCommunicate request_size=4 [00:06:20]MH_SAM_APDU [00:06:20]CAPDU: 80 13 03 00 [00:06:20]Write to MH i2c: E2 08 00 84 01 80 13 03 00 00 00 00 00 04 [00:06:20]Write i2c OK [00:06:20]MH_I2C_Read... [00:06:21]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:21]Read from MH i2c: E2 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 FD 00 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 FD 00 84 01 00 C5 04 85 04 C1 04 6E 04 04 00 21 66 01 00 69 04 A1 00 6F 04 04 00 CD 62 01 00 B1 04 04 00 80 B7 27 B3 70 04 04 00 B0 CE 84 83 72 04 04 00 D0 E8 A2 2F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5A D0 06 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 21 C0 95 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 54 03 00 00 B1 04 04 00 EC 99 7A 04 70 04 04 00 98 B8 41 04 72 04 03 00 54 E1 38 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C8 79 EF 03 09 90 00 65 [00:06:21]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 21 66 01 00 69 04 A1 00 6F 04 04 00 CD 62 01 00 B1 04 04 00 80 B7 27 B3 70 04 04 00 B0 CE 84 83 72 04 04 00 D0 E8 A2 2F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5A D0 06 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 21 C0 95 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 54 03 00 00 B1 04 04 00 EC 99 7A 04 70 04 04 00 98 B8 41 04 72 04 03 00 54 E1 38 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C8 79 EF 03 09 90 00 [00:06:21]wFMCommunicate OK [00:06:21]wFMCommunicate request_size=4 [00:06:21]MH_SAM_APDU [00:06:21]CAPDU: 80 17 00 00 [00:06:21]Write to MH i2c: E2 08 00 85 01 80 17 00 00 00 00 00 00 06 [00:06:21]Write i2c OK [00:06:21]MH_I2C_Read... [00:06:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:21]Read from MH i2c: E2 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 FD 00 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 FD 00 85 01 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AA 25 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 95 [00:06:21]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AA 25 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:06:22]wFMCommunicate OK [00:06:22]wFMCommunicate request_size=4 [00:06:22]MH_SAM_APDU [00:06:22]CAPDU: 80 17 00 00 [00:06:22]Write to MH i2c: E2 08 00 86 01 80 17 00 00 00 00 00 00 07 [00:06:22]Write i2c OK [00:06:22]MH_I2C_Read... [00:06:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:22]Read from MH i2c: E2 [00:06:22]MH_I2C_Read... [00:06:22]Read from MH i2c: E2 FD 00 [00:06:22]MH_I2C_Read... [00:06:22]Read from MH i2c: E2 FD 00 86 01 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 19 [00:06:22]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:06:22]wFMCommunicate OK [00:06:22]wFMCommunicate request_size=4 [00:06:22]MH_SAM_APDU [00:06:22]CAPDU: 80 17 00 00 [00:06:22]Write to MH i2c: E2 08 00 87 01 80 17 00 00 00 00 00 00 08 [00:06:22]Write i2c OK [00:06:22]MH_I2C_Read... [00:06:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:22]Read from MH i2c: E2 [00:06:22]MH_I2C_Read... [00:06:22]Read from MH i2c: E2 FD 00 [00:06:22]MH_I2C_Read... [00:06:22]Read from MH i2c: E2 FD 00 87 01 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 94 [00:06:23]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:06:23]wFMCommunicate OK [00:06:23]wFMCommunicate request_size=4 [00:06:23]MH_SAM_APDU [00:06:23]CAPDU: 80 17 00 00 [00:06:23]Write to MH i2c: E2 08 00 88 01 80 17 00 00 00 00 00 00 09 [00:06:23]Write i2c OK [00:06:23]MH_I2C_Read... [00:06:23]OFD Sender: No OFD packet to send [00:06:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:06:23]Read from MH i2c: E2 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 E2 00 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 E2 00 88 01 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E7 [00:06:23]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:23]wFMCommunicate OK [00:06:23]SAM_PROTO_GetFMData done [00:06:23]Malloc new data [00:06:23]Malloc new data [00:06:23]Malloc new data [00:06:23]Malloc new data [00:06:23]KKMLoadAndSignCloseShiftData err=0 [00:06:23]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Абдалбекова А. 16.09.2024 00:06 Смена: 507 РНМ: 0000000000091423 ЗНМ: 03000000022 СНО: Общий режим Чеков за смену: 143 ФД за смену: 145 Всего чеков: 143 ИТОГИ ПРИХОД Чеков: 141 Общий итог: 59121.35 Итого наличными: 32513.00 Итого безнал.: 26608.35 НДС 0% : 0.00 НДС 12% : 6278.69 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 523.02 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 2 Общий итог: 1783.00 Итого наличными: 1783.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 189.35 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 15.77 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 30730.00 НС Приход: 30057245.44 НС Возвр.Прихода: 751436.60 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 92696 ФМ: 0000000000874692 ФПД: 60326924168165 [00:06:23]StoreToDocumentArchive [00:06:23]shift 507 fd 92696 [00:06:23]save to /storage/0507/doc_00092696 [00:06:23]save last doc name /storage/0507/doc_00092696 to /storage/kkm_last_doc_name [00:06:23]save OK [00:06:23]Clear old archive folders... [00:06:23]Remove dir /storage/0266 [00:06:23]opendir ok [00:06:23]file . [00:06:23]file .. [00:06:23]file doc_1726445128 [00:06:23]remove file /storage/0266/doc_1726445128 [00:06:23]remove dir /storage/0266 [00:06:23]NVStorageSaveData kkm_registers [00:06:23]File name is /storage/kkm_registers [00:06:23]Write 24 bytes [00:06:23]NVStorageSaveData done [00:06:23]NVStorageSaveData kkm_registers [00:06:23]File name is /storage/kkm_registers [00:06:23]Write 24 bytes [00:06:23]NVStorageSaveData done [00:06:23]ProcessDocumentItem done err = 0, tmpTLVsize=1391 [00:06:23]tlvbuf is 017E6220 [00:06:23]SAM_PROTO_ClearQueue [00:06:23]wFMCommunicate request_size=4 [00:06:23]MH_SAM_APDU [00:06:23]CAPDU: 80 09 00 00 [00:06:23]Write to MH i2c: E2 08 00 89 01 80 09 00 00 00 00 00 00 FC [00:06:23]Write i2c OK [00:06:23]MH_I2C_Read... [00:06:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:06:23]Read from MH i2c: E2 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 03 00 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 03 00 89 01 00 90 00 FE [00:06:23]RAPDU: 90 00 [00:06:23]wFMCommunicate OK [00:06:23]SAM_PROTO_ClearQueue done [00:06:23]KKMCreateOFDPacket [00:06:23]OFDProtocolAddRootSTLVToBuf [00:06:23]FM_MakeSignedData [00:06:23]FM_MakeSignedData [00:06:23]SAM_PROTO_SignData [00:06:23]wFMCommunicate request_size=4 [00:06:23]MH_SAM_APDU [00:06:23]CAPDU: 80 0D 01 02 [00:06:23]Write to MH i2c: E2 08 00 8A 01 80 0D 01 02 00 00 00 00 04 [00:06:23]Write i2c OK [00:06:23]MH_I2C_Read... [00:06:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:06:23]Read from MH i2c: E2 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 03 00 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [00:06:23]RAPDU: 90 00 [00:06:23]wFMCommunicate OK [00:06:23]wFMCommunicate request_size=255 [00:06:23]MH_SAM_APDU [00:06:23]CAPDU: 80 0D 02 02 FA 05 00 6F 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 90 D0 B1 D0 B4 D0 B0 D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F4 03 04 00 78 76 E7 66 0E 04 04 00 FB 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 5E 04 04 00 8F 00 00 00 57 04 04 00 91 00 00 00 AA 04 DB 04 6E 04 04 00 8F 00 00 00 69 04 A2 00 6F 04 04 00 8D 00 00 00 B1 04 03 00 47 36 5A 70 04 03 00 64 9C 31 72 04 03 00 E3 99 28 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 9D 94 09 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 [00:06:24]Write to MH i2c: E2 02 01 8B 01 80 0D 02 02 FA 00 05 00 6F 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 90 D0 B1 D0 B4 D0 B0 D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F4 03 04 00 78 76 E7 66 0E 04 04 00 FB 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 5E 04 04 00 8F 00 00 00 57 04 04 00 91 00 00 00 AA 04 DB 04 6E 04 04 00 8F 00 00 00 69 04 A2 00 6F 04 04 00 8D 00 00 00 B1 04 03 00 47 36 5A 70 04 03 00 64 9C 31 72 04 03 00 E3 99 28 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 9D 94 09 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 00 00 30 [00:06:24]Write i2c OK [00:06:24]MH_I2C_Read... [00:06:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:24]Read from MH i2c: E2 [00:06:24]MH_I2C_Read... [00:06:24]Read from MH i2c: E2 03 00 [00:06:24]MH_I2C_Read... [00:06:24]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [00:06:24]RAPDU: 90 00 [00:06:24]wFMCommunicate OK [00:06:24]wFMCommunicate request_size=255 [00:06:24]MH_SAM_APDU [00:06:24]CAPDU: 80 0D 02 02 FA 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E CC 6A 04 9F 00 6F 04 04 00 02 00 00 00 B1 04 03 00 7C B8 02 70 04 03 00 7C B8 02 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F7 49 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 29 06 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 [00:06:24]Write to MH i2c: E2 02 01 8C 01 80 0D 02 02 FA 00 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E CC 6A 04 9F 00 6F 04 04 00 02 00 00 00 B1 04 03 00 7C B8 02 70 04 03 00 7C B8 02 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F7 49 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 29 06 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 00 00 91 [00:06:24]Write i2c OK [00:06:24]MH_I2C_Read... [00:06:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:25]Read from MH i2c: E2 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 03 00 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [00:06:25]RAPDU: 90 00 [00:06:25]wFMCommunicate OK [00:06:25]wFMCommunicate request_size=255 [00:06:25]MH_SAM_APDU [00:06:25]CAPDU: 80 0D 02 02 FA F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 [00:06:25]Write to MH i2c: E2 02 01 8D 01 80 0D 02 02 FA 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 00 C6 [00:06:25]Write i2c OK [00:06:25]MH_I2C_Read... [00:06:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:25]Read from MH i2c: E2 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 03 00 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 03 00 8D 01 00 90 00 02 [00:06:25]RAPDU: 90 00 [00:06:25]wFMCommunicate OK [00:06:25]wFMCommunicate request_size=255 [00:06:25]MH_SAM_APDU [00:06:25]CAPDU: 80 0D 02 02 FA 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 [00:06:25]Write to MH i2c: E2 02 01 8E 01 80 0D 02 02 FA 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 CF [00:06:26]Write i2c OK [00:06:26]MH_I2C_Read... [00:06:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:26]Read from MH i2c: E2 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 03 00 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 03 00 8E 01 00 90 00 03 [00:06:26]RAPDU: 90 00 [00:06:26]wFMCommunicate OK [00:06:26]wFMCommunicate request_size=255 [00:06:26]MH_SAM_APDU [00:06:26]CAPDU: 80 0D 02 02 FA 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 [00:06:26]Write to MH i2c: E2 02 01 8F 01 80 0D 02 02 FA 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 00 00 97 [00:06:26]Write i2c OK [00:06:26]MH_I2C_Read... [00:06:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:27]Read from MH i2c: E2 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 03 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 03 00 8F 01 00 90 00 04 [00:06:27]RAPDU: 90 00 [00:06:27]wFMCommunicate OK [00:06:27]wFMCommunicate request_size=150 [00:06:27]MH_SAM_APDU [00:06:27]CAPDU: 80 0D 02 02 91 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 18 6A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 35 04 06 00 36 DD F4 E2 AB E5 [00:06:27]Write to MH i2c: E2 99 00 90 01 80 0D 02 02 91 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 18 6A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 35 04 06 00 36 DD F4 E2 AB E5 00 00 51 [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:27]Read from MH i2c: E2 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 03 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 03 00 90 01 00 90 00 05 [00:06:27]RAPDU: 90 00 [00:06:27]wFMCommunicate OK [00:06:27]wFMCommunicate request_size=4 [00:06:27]MH_SAM_APDU [00:06:27]CAPDU: 80 0D 03 02 [00:06:27]Write to MH i2c: E2 08 00 91 01 80 0D 03 02 00 00 00 00 0D [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:06:27]Read from MH i2c: E2 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 0B 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 0B 00 91 01 00 45 00 0F 98 02 0B 90 3A 90 00 D1 [00:06:27]RAPDU: 45 00 0F 98 02 0B 90 3A 90 00 [00:06:27]wFMCommunicate OK [00:06:27]SAM_PROTO_SignData done [00:06:27]FM_MakeSignedData done [00:06:27]CreateOFDProtocolMessage [00:06:27]wFMCommunicate request_size=4 [00:06:27]MH_SAM_APDU [00:06:27]CAPDU: 80 11 00 00 [00:06:27]Write to MH i2c: E2 08 00 92 01 80 11 00 00 00 00 00 00 0D [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:27]Read from MH i2c: E2 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 17 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 17 00 92 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 64 [00:06:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:06:27]wFMCommunicate OK [00:06:27]CreateOFDProtocolMessage done [00:06:27]OFDSenderStorePacket 92696 [00:06:27]StoreOFDPacket docnum=92696 [00:06:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 83 05 00 00 85 51 7B 05 9C 61 5A 05 01 00 05 00 6F 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 90 D0 B1 D0 B4 D0 B0 D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F4 03 04 00 78 76 E7 66 0E 04 04 00 FB 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 5E 04 04 00 8F 00 00 00 57 04 04 00 91 00 00 00 AA 04 DB 04 6E 04 04 00 8F 00 00 00 69 04 A2 00 6F 04 04 00 8D 00 00 00 B1 04 03 00 47 36 5A 70 04 03 00 64 9C 31 72 04 03 00 E3 99 28 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 9D 94 09 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E CC 6A 04 9F 00 6F 04 04 00 02 00 00 00 B1 04 03 00 7C B8 02 70 04 03 00 7C B8 02 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F7 49 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 29 06 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 18 6A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 35 04 06 00 36 DD F4 E2 AB E5 45 00 0F 98 02 0B 90 3A [00:06:28]CheckFolder [00:06:28]dirname=/storage/ofd_packets [00:06:28]CheckFolder done [00:06:28]ProducePacketName [00:06:28]name=ofd_packets/00092696 [00:06:28]NVStorageSaveData ofd_packets/00092696 [00:06:28]File name is /storage/ofd_packets/00092696 [00:06:28]Write 1441 bytes [00:06:28]NVStorageSaveData done [00:06:28]OFDSenderStorePacket done [00:06:28]KKMCreateOFDPacket done [00:06:28]NVStorageSaveData kkm_last_timestamp [00:06:28]File name is /storage/kkm_last_timestamp [00:06:28]Write 4 bytes [00:06:28]NVStorageSaveData done [00:06:28]ExternCall_PrintAddStr [00:06:28]wPrintStart [00:06:28]Write to MH i2c: 01 00 00 93 01 94 [00:06:28]Write i2c OK [00:06:28]MH_I2C_Read... [00:06:28]OFD Sender: Processing packet 92696 [packets to send 63, broken 62] [00:06:28]ProducePacketName [00:06:28]name=ofd_packets/00092696 [00:06:28]OFD Sender: To server: pG, [00:06:28]CommunicateWithHost lk.salyk.kg:30040 [00:06:28]ConnectInit lk.salyk.kg [00:06:28]Read from MH i2c: 01 [00:06:28]MH_I2C_Read... [00:06:28]Read from MH i2c: 01 07 00 [00:06:28]MH_I2C_Read... [00:06:28]Read from MH i2c: 01 07 00 93 01 00 00 00 00 00 FF 0F A9 [00:06:28]RasterBufferAndPrint [00:06:28]line Отчет о закрытии смены [00:06:28]line ФФД: 1.0 [00:06:28]line ИНН: 02508201610067 [00:06:28]line Кассир: Абдалбекова А. [00:06:28]line 16.09.2024 00:06 [00:06:28]line Смена: 507 [00:06:28]line РНМ: 0000000000091423 [00:06:28]line ЗНМ: 03000000022 [00:06:28]line СНО: Общий режим [00:06:28]line Чеков за смену: 143 [00:06:28]line ФД за смену: 145 [00:06:28]line Всего чеков: 143 [00:06:28]line ИТОГИ ПРИХОД [00:06:28]line Чеков: 141 [00:06:28]line Общий итог: 59121.35 [00:06:28]line Итого наличными: 32513.00 [00:06:28]line Итого безнал.: 26608.35 [00:06:28]line НДС 0% : 0.00 [00:06:28]line НДС 12% : 6278.69 [00:06:28]line НСП 0% : 0.00 [00:06:28]line НСП 1,50% : 0.00 [00:06:28]line НСП 0,50% : 0.00 [00:06:28]line НСП 5% : 0.00 [00:06:28]line НСП 3% : 0.00 [00:06:28]line НСП 2% : 0.00 [00:06:28]line НСП 1% : 523.02 [00:06:28]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:06:28]line Чеков: 2 [00:06:28]line Общий итог: 1783.00 [00:06:28]line Итого наличными: 1783.00 [00:06:28]line Итого безнал.: 0.00 [00:06:28]line НДС 0% : 0.00 [00:06:28]line НДС 12% : 189.35 [00:06:28]line НСП 0% : 0.00 [00:06:28]line НСП 1,50% : 0.00 [00:06:28]line НСП 0,50% : 0.00 [00:06:28]line НСП 5% : 0.00 [00:06:28]line НСП 3% : 0.00 [00:06:28]line НСП 2% : 0.00 [00:06:28]line НСП 1% : 15.77 [00:06:28]line ИТОГИ РАСХОД [00:06:28]line Чеков: 0 [00:06:28]line Общий итог: 0.00 [00:06:28]line Итого наличными: 0.00 [00:06:28]line Итого безнал.: 0.00 [00:06:28]line НДС 0% : 0.00 [00:06:28]line НДС 12% : 0.00 [00:06:28]line НСП 0% : 0.00 [00:06:28]line НСП 1,50% : 0.00 [00:06:28]line НСП 0,50% : 0.00 [00:06:28]line НСП 5% : 0.00 [00:06:28]line НСП 3% : 0.00 [00:06:28]line НСП 2% : 0.00 [00:06:28]line НСП 1% : 0.00 [00:06:28]line ИТОГИ ВОЗВРАТ РАСХОДА [00:06:28]line Чеков: 0 [00:06:28]line Общий итог: 0.00 [00:06:28]line Итого наличными: 0.00 [00:06:28]line Итого безнал.: 0.00 [00:06:28]line НДС 0% : 0.00 [00:06:28]line НДС 12% : 0.00 [00:06:28]line НСП 0% : 0.00 [00:06:28]line НСП 1,50% : 0.00 [00:06:28]line НСП 0,50% : 0.00 [00:06:28]line НСП 5% : 0.00 [00:06:28]line НСП 3% : 0.00 [00:06:28]line НСП 2% : 0.00 [00:06:28]line НСП 1% : 0.00 [00:06:28]line Сумма внесений: 0.00 [00:06:28]line Сумма выплат: 0.00 [00:06:28]line Нал. в кассе: 30730.00 [00:06:28]line НС Приход: 30057245.44 [00:06:28]line НС Возвр.Прихода: 751436.60 [00:06:28]line НС Расход: 0.00 [00:06:28]line НС Возвр.Расхода: 0.00 [00:06:28]line ФД: 92696 [00:06:28]line ФМ: 0000000000874692 [00:06:28]line ФПД: 60326924168165 [00:06:28]Connected sock=7 [00:06:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 83 05 00 00 85 51 7B 05 9C 61 5A 05 01 00 05 00 6F 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 90 D0 B1 D0 B4 D0 B0 D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F4 03 04 00 78 76 E7 66 0E 04 04 00 FB 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 5E 04 04 00 8F 00 00 00 57 04 04 00 91 00 00 00 AA 04 DB 04 6E 04 04 00 8F 00 00 00 69 04 A2 00 6F 04 04 00 8D 00 00 00 B1 04 03 00 47 36 5A 70 04 03 00 64 9C 31 72 04 03 00 E3 99 28 00 04 81 00 EE 03 0A 00 F2 written 0, free lines is 4095 [00:06:28]03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 9D 94 09 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E CC 6A 04 9F 00 6F 04 04 00 02 00 00 00 B1 04 03 00 7C B8 02 70 04 03 00 7C B8 02 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F7 49 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 29 06 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 Write to MH i2c: 00 01 EF 00 03 00 09 E3 00 01 F6 E4 03 [00:06:29]01 00 06 F7 03 00 00 10 04 04 00 18 6A 01 00 Write i2c OK [00:06:29]MH_I2C_Read... [00:06:29]11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 35 04 06 00 36 DD F4 E2 AB E5 45 00 0F 98 02 0B 90 3A [00:06:29]Read from MH i2c: 01 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: 01 07 00 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: 01 07 00 E3 01 00 00 00 00 00 F4 0A E9 [00:06:29]RasterBufferAndPrint [00:06:29]line [00:06:29]line [00:06:29]line [00:06:29]line [00:06:29]line [00:06:29]written 0, free lines is 2959 [00:06:29]MH_Cut [00:06:29]Write to MH i2c: D1 01 00 EA 01 01 BD [00:06:29]Write i2c OK [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: D1 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: D1 01 00 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: D1 01 00 EA 01 00 BC [00:06:29]Write to MH i2c: 01 00 00 EB 01 EC [00:06:29]Write i2c OK [00:06:29]MH_I2C_Read... [00:06:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 D1 8E 47 00 A9 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 18 6A 01 00 F4 03 04 00 F9 1E E7 66 B6 04 01 00 00 10 97 8F 03 94 88 3B 13 [00:06:29]CommunicateWithHost err = 0 [00:06:29]CheckOFDResponse [00:06:29]1017 (14) - 77093643461234 [00:06:29]1041 (16) - 0000000000874692 [00:06:29]1040 (4) - 92696 [00:06:29]1012 (4) - 15.09.2024 17:52 [00:06:29]1206 (1) - 0 [00:06:29]OFD Sender: Remove packet 92696 [00:06:29]ProducePacketName [00:06:29]name=ofd_packets/00092696 [00:06:29]NVStorageDeleteData [00:06:30]OFD Sender: No OFD packet to send [00:06:30]*** Cut start [00:06:30]*** Purtial cut [00:06:30]*** Stage 1: CUTSNS_PIN = 1 [00:06:32]Read from MH i2c: 01 [00:06:32]MH_I2C_Read... [00:06:32]*** Stop cut motor [00:06:32]*** Cut end [00:06:32]Read from MH i2c: 01 07 00 [00:06:32]MH_I2C_Read... [00:06:32]Read from MH i2c: 01 07 00 EB 01 00 00 00 00 00 FF 0F 01 [00:06:32]process_action close_shift done [00:06:32]requested_data is exist [00:06:32]produce_requested_data [00:06:32]requested_item fd.num is exist - process it [00:06:32]SAM_PROTO_GetFieldsCounters [00:06:32]wFMCommunicate request_size=4 [00:06:32]MH_SAM_APDU [00:06:32]CAPDU: 80 13 00 00 [00:06:32]Write to MH i2c: E2 08 00 EC 01 80 13 00 00 00 00 00 00 69 [00:06:32]Write i2c OK [00:06:32]MH_I2C_Read... [00:06:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:32]Read from MH i2c: E2 [00:06:32]MH_I2C_Read... [00:06:32]Read from MH i2c: E2 62 00 [00:06:32]MH_I2C_Read... [00:06:32]Read from MH i2c: E2 62 00 EC 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 18 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [00:06:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 18 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:06:32]wFMCommunicate OK [00:06:32]SAM_PROTO_GetFieldsCounters done [00:06:32]requested_item shift.num is exist - process it [00:06:32]requested_item shift.opened is exist - process it [00:06:32]req_shift_opened [00:06:32]FM_GetShiftState [00:06:32]SAM_PROTO_GetShiftState [00:06:32]wFMCommunicate request_size=4 [00:06:32]MH_SAM_APDU [00:06:32]CAPDU: 80 13 01 00 [00:06:32]Write to MH i2c: E2 08 00 ED 01 80 13 01 00 00 00 00 00 6B [00:06:32]Write i2c OK [00:06:32]MH_I2C_Read... [00:06:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:32]Read from MH i2c: E2 [00:06:32]MH_I2C_Read... [00:06:32]Read from MH i2c: E2 0E 00 [00:06:32]MH_I2C_Read... [00:06:32]Read from MH i2c: E2 0E 00 ED 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 76 [00:06:32]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:06:32]wFMCommunicate OK [00:06:32]SAM_PROTO_GetShiftState done [00:06:32]FM_GetShiftState done [00:06:32]req_shift_opened done [00:06:32]requested_item shift.open_date is exist - process it [00:06:32]req_shift_open_date [00:06:32]FM_GetShiftState [00:06:32]SAM_PROTO_GetShiftState [00:06:32]wFMCommunicate request_size=4 [00:06:32]MH_SAM_APDU [00:06:32]CAPDU: 80 13 01 00 [00:06:32]Write to MH i2c: E2 08 00 EE 01 80 13 01 00 00 00 00 00 6C [00:06:32]Write i2c OK [00:06:32]MH_I2C_Read... [00:06:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:32]Read from MH i2c: E2 [00:06:32]MH_I2C_Read... [00:06:32]Read from MH i2c: E2 0E 00 [00:06:32]MH_I2C_Read... [00:06:32]Read from MH i2c: E2 0E 00 EE 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 77 [00:06:32]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:06:32]wFMCommunicate OK [00:06:32]SAM_PROTO_GetShiftState done [00:06:32]FM_GetShiftState done [00:06:32]req_shift_open_date done [00:06:32]produce_requested_data done [00:06:32]produce_requested_data return {"fd.num":92696,"shift.num":507,"shift.opened":0,"shift.open_date":0} [00:06:32]process_action_free close_shift [00:06:32]json_value_free [00:06:32]json_value_free done [00:06:32]process_json_proto returns [00:06:32]Send response to host [00:06:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":92696,"shift.num":507,"shift.opened":0,"shift.open_date":0}}} [00:06:32]free response buf [00:06:32]execute_script done [00:06:32]execute_script returns [00:06:32]free content buf [00:06:32]Sock 6.Close socket [00:06:32]Sock 6.Thread stoped [00:06:35]OFD Sender: No OFD packet to send [00:06:40]OFD Sender: No OFD packet to send [00:06:45]OFD Sender: No OFD packet to send [00:06:50]OFD Sender: No OFD packet to send [00:06:55]OFD Sender: No OFD packet to send [00:07:00]OFD Sender: No OFD packet to send [00:07:05]OFD Sender: No OFD packet to send [00:07:10]OFD Sender: No OFD packet to send [00:07:15]OFD Sender: No OFD packet to send [00:07:20]OFD Sender: No OFD packet to send [00:07:25]OFD Sender: No OFD packet to send [00:07:30]OFD Sender: No OFD packet to send [00:07:35]OFD Sender: No OFD packet to send [00:07:40]OFD Sender: No OFD packet to send [00:07:45]OFD Sender: No OFD packet to send [00:07:50]OFD Sender: No OFD packet to send [00:07:55]OFD Sender: No OFD packet to send [00:08:00]OFD Sender: No OFD packet to send [00:08:05]OFD Sender: No OFD packet to send [00:08:10]OFD Sender: No OFD packet to send [00:08:15]OFD Sender: No OFD packet to send [00:08:20]OFD Sender: No OFD packet to send [00:08:25]OFD Sender: No OFD packet to send [00:08:30]OFD Sender: No OFD packet to send [00:08:35]OFD Sender: No OFD packet to send [00:08:40]OFD Sender: No OFD packet to send [00:08:45]OFD Sender: No OFD packet to send [00:08:50]OFD Sender: No OFD packet to send [00:08:55]OFD Sender: No OFD packet to send [00:09:00]OFD Sender: No OFD packet to send [00:09:05]OFD Sender: No OFD packet to send [00:09:10]OFD Sender: No OFD packet to send [00:09:15]OFD Sender: No OFD packet to send [00:09:20]OFD Sender: No OFD packet to send [00:09:25]OFD Sender: No OFD packet to send [00:09:30]OFD Sender: No OFD packet to send [00:09:35]OFD Sender: No OFD packet to send [00:09:40]OFD Sender: No OFD packet to send [00:09:45]OFD Sender: No OFD packet to send [00:09:50]OFD Sender: No OFD packet to send [00:09:55]OFD Sender: No OFD packet to send [00:10:00]OFD Sender: No OFD packet to send [00:10:05]OFD Sender: No OFD packet to send [00:10:10]OFD Sender: No OFD packet to send [00:10:15]OFD Sender: No OFD packet to send [00:10:20]OFD Sender: No OFD packet to send [00:10:25]OFD Sender: No OFD packet to send [00:10:30]OFD Sender: No OFD packet to send [00:10:35]OFD Sender: No OFD packet to send [00:10:40]OFD Sender: No OFD packet to send [00:10:45]OFD Sender: No OFD packet to send [00:10:50]OFD Sender: No OFD packet to send [00:10:55]OFD Sender: No OFD packet to send [00:11:00]OFD Sender: No OFD packet to send [00:11:05]OFD Sender: No OFD packet to send [00:11:10]OFD Sender: No OFD packet to send [00:11:15]OFD Sender: No OFD packet to send [00:11:20]OFD Sender: No OFD packet to send [00:11:25]OFD Sender: No OFD packet to send [00:11:30]OFD Sender: No OFD packet to send [00:11:35]OFD Sender: No OFD packet to send [00:11:40]OFD Sender: No OFD packet to send [00:11:45]OFD Sender: No OFD packet to send [00:11:50]OFD Sender: No OFD packet to send [00:11:55]OFD Sender: No OFD packet to send [00:12:00]OFD Sender: No OFD packet to send [00:12:05]OFD Sender: No OFD packet to send [00:12:10]OFD Sender: No OFD packet to send [00:12:15]OFD Sender: No OFD packet to send [00:12:20]OFD Sender: No OFD packet to send [00:12:25]OFD Sender: No OFD packet to send [00:12:30]OFD Sender: No OFD packet to send [00:12:35]OFD Sender: No OFD packet to send [00:12:40]OFD Sender: No OFD packet to send [00:12:45]OFD Sender: No OFD packet to send [00:12:50]OFD Sender: No OFD packet to send [00:12:55]OFD Sender: No OFD packet to send [00:13:00]OFD Sender: No OFD packet to send [00:13:05]OFD Sender: No OFD packet to send [00:13:10]OFD Sender: No OFD packet to send [00:13:15]OFD Sender: No OFD packet to send [00:13:20]OFD Sender: No OFD packet to send [00:13:25]OFD Sender: No OFD packet to send [00:13:30]OFD Sender: No OFD packet to send [00:13:35]OFD Sender: No OFD packet to send [00:13:40]OFD Sender: No OFD packet to send [00:13:45]OFD Sender: No OFD packet to send [00:13:50]OFD Sender: No OFD packet to send [00:13:55]OFD Sender: No OFD packet to send [00:14:00]OFD Sender: No OFD packet to send [00:14:05]OFD Sender: No OFD packet to send [00:14:10]OFD Sender: No OFD packet to send [00:14:15]OFD Sender: No OFD packet to send [00:14:20]OFD Sender: No OFD packet to send [00:14:25]OFD Sender: No OFD packet to send [00:14:30]OFD Sender: No OFD packet to send [00:14:35]OFD Sender: No OFD packet to send [00:14:40]OFD Sender: No OFD packet to send [00:14:45]OFD Sender: No OFD packet to send [00:14:50]OFD Sender: No OFD packet to send [00:14:55]OFD Sender: No OFD packet to send [00:15:00]OFD Sender: No OFD packet to send [00:15:05]OFD Sender: No OFD packet to send [00:15:10]OFD Sender: No OFD packet to send [00:15:15]OFD Sender: No OFD packet to send [00:15:20]OFD Sender: No OFD packet to send [00:15:25]OFD Sender: No OFD packet to send [00:15:30]OFD Sender: No OFD packet to send [00:15:35]OFD Sender: No OFD packet to send [00:15:40]OFD Sender: No OFD packet to send [00:15:45]OFD Sender: No OFD packet to send [00:15:50]OFD Sender: No OFD packet to send [00:15:55]OFD Sender: No OFD packet to send [00:16:00]OFD Sender: No OFD packet to send [00:16:05]OFD Sender: No OFD packet to send [00:16:10]OFD Sender: No OFD packet to send [00:16:15]OFD Sender: No OFD packet to send [00:16:20]OFD Sender: No OFD packet to send [00:16:25]OFD Sender: No OFD packet to send [00:16:30]OFD Sender: No OFD packet to send [00:16:35]OFD Sender: No OFD packet to send [00:16:40]OFD Sender: No OFD packet to send [00:16:45]OFD Sender: No OFD packet to send [00:16:50]OFD Sender: No OFD packet to send [00:16:55]OFD Sender: No OFD packet to send [00:17:00]OFD Sender: No OFD packet to send [00:17:05]OFD Sender: No OFD packet to send [00:17:10]OFD Sender: No OFD packet to send [00:17:15]OFD Sender: No OFD packet to send [00:17:20]OFD Sender: No OFD packet to send [00:17:25]OFD Sender: No OFD packet to send [00:17:30]OFD Sender: No OFD packet to send [00:17:35]OFD Sender: No OFD packet to send [00:17:40]OFD Sender: No OFD packet to send [00:17:45]OFD Sender: No OFD packet to send [00:17:50]OFD Sender: No OFD packet to send [00:17:55]OFD Sender: No OFD packet to send [00:18:00]OFD Sender: No OFD packet to send [00:18:05]OFD Sender: No OFD packet to send [00:18:10]OFD Sender: No OFD packet to send [00:18:15]OFD Sender: No OFD packet to send [00:18:20]OFD Sender: No OFD packet to send [00:18:25]OFD Sender: No OFD packet to send [00:18:30]OFD Sender: No OFD packet to send [00:18:35]OFD Sender: No OFD packet to send [00:18:40]OFD Sender: No OFD packet to send [00:18:45]OFD Sender: No OFD packet to send [00:18:50]OFD Sender: No OFD packet to send [00:18:55]OFD Sender: No OFD packet to send [00:19:00]OFD Sender: No OFD packet to send [00:19:05]OFD Sender: No OFD packet to send [00:19:10]OFD Sender: No OFD packet to send [00:19:15]OFD Sender: No OFD packet to send [00:19:20]OFD Sender: No OFD packet to send [00:19:25]OFD Sender: No OFD packet to send [00:19:30]OFD Sender: No OFD packet to send [00:19:35]OFD Sender: No OFD packet to send [00:19:40]OFD Sender: No OFD packet to send [00:19:45]OFD Sender: No OFD packet to send [00:19:50]OFD Sender: No OFD packet to send [00:19:55]OFD Sender: No OFD packet to send [00:20:00]OFD Sender: No OFD packet to send [00:20:05]OFD Sender: No OFD packet to send [00:20:10]OFD Sender: No OFD packet to send [00:20:15]OFD Sender: No OFD packet to send [00:20:20]OFD Sender: No OFD packet to send [00:20:25]OFD Sender: No OFD packet to send [00:20:30]OFD Sender: No OFD packet to send [00:20:35]OFD Sender: No OFD packet to send [00:20:40]OFD Sender: No OFD packet to send [00:20:45]OFD Sender: No OFD packet to send [00:20:50]OFD Sender: No OFD packet to send [00:20:55]OFD Sender: No OFD packet to send [00:21:00]OFD Sender: No OFD packet to send [00:21:05]OFD Sender: No OFD packet to send [00:21:10]OFD Sender: No OFD packet to send [00:21:16]OFD Sender: No OFD packet to send [00:21:21]OFD Sender: No OFD packet to send [00:21:26]OFD Sender: No OFD packet to send [00:21:31]OFD Sender: No OFD packet to send [00:21:36]OFD Sender: No OFD packet to send [00:21:41]OFD Sender: No OFD packet to send [00:21:46]OFD Sender: No OFD packet to send [00:21:51]OFD Sender: No OFD packet to send [00:21:56]OFD Sender: No OFD packet to send [00:22:01]OFD Sender: No OFD packet to send [00:22:06]OFD Sender: No OFD packet to send [00:22:11]OFD Sender: No OFD packet to send [00:22:16]OFD Sender: No OFD packet to send [00:22:21]OFD Sender: No OFD packet to send [00:22:26]OFD Sender: No OFD packet to send [00:22:31]OFD Sender: No OFD packet to send [00:22:36]OFD Sender: No OFD packet to send [00:22:41]OFD Sender: No OFD packet to send [00:22:46]OFD Sender: No OFD packet to send [00:22:51]OFD Sender: No OFD packet to send [00:22:56]OFD Sender: No OFD packet to send [00:23:01]OFD Sender: No OFD packet to send [00:23:06]OFD Sender: No OFD packet to send [00:23:11]OFD Sender: No OFD packet to send [00:23:16]OFD Sender: No OFD packet to send [00:23:21]OFD Sender: No OFD packet to send [00:23:26]OFD Sender: No OFD packet to send [00:23:31]OFD Sender: No OFD packet to send [00:23:36]OFD Sender: No OFD packet to send [00:23:41]OFD Sender: No OFD packet to send [00:23:46]OFD Sender: No OFD packet to send [00:23:51]OFD Sender: No OFD packet to send [00:23:56]OFD Sender: No OFD packet to send [00:24:01]OFD Sender: No OFD packet to send [00:24:06]OFD Sender: No OFD packet to send [00:24:11]OFD Sender: No OFD packet to send [00:24:16]OFD Sender: No OFD packet to send [00:24:21]OFD Sender: No OFD packet to send [00:24:26]OFD Sender: No OFD packet to send [00:24:31]OFD Sender: No OFD packet to send [00:24:33]accept exits with 8 [00:24:33]New connection [00:24:33]New thread 3066752356 created [00:24:33]Thread 3066608996 joined [00:24:33]Waiting for new connection... [00:24:33] Sock 8.Parse request [00:24:33]Sock 8.Check first char [00:24:33]Sock 8.First char is OK [00:24:33]request: POST /json_proto HTTP/1.0 [00:24:33]Method: POST [00:24:33]URL: /json_proto [00:24:33]Method is POST - this is cgi request [00:24:33]url: /json_proto [00:24:33]query_string will be loaded in cgi processing [00:24:33]execute_cgi json_proto POST (null) [00:24:33]execute_cgi path=json_proto method=POST [00:24:33]POST find Content-Length [00:24:33]Host: 172.17.57.71:8080 [00:24:33]Content-Length: 215 [00:24:33]Content-Type: application/json [00:24:33] [00:24:33]POST finish read [00:24:33]Found Content-Length = 215 [00:24:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:24:33]execute_script... [00:24:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:24:33]POST & json_proto [00:24:33]process_json_proto [00:24:33]json parsed OK: [00:24:33]protocol is kg_v1.0 [00:24:33]action value=get_value [00:24:33]process_action get_value [00:24:33]cmd_get_value [00:24:33]process_action get_value done [00:24:33]requested_data is exist [00:24:33]produce_requested_data [00:24:33]requested_item kkm.sn is exist - process it [00:24:33]requested_item kkm.ver is exist - process it [00:24:33]requested_item fm.sn is exist - process it [00:24:33]wFMCommunicate request_size=4 [00:24:33]MH_SAM_APDU [00:24:33]CAPDU: 80 11 00 00 [00:24:33]Write to MH i2c: E2 08 00 EF 01 80 11 00 00 00 00 00 00 6A [00:24:33]Write i2c OK [00:24:33]MH_I2C_Read... [00:24:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:24:33]Read from MH i2c: E2 [00:24:33]MH_I2C_Read... [00:24:33]Read from MH i2c: E2 17 00 [00:24:33]MH_I2C_Read... [00:24:33]Read from MH i2c: E2 17 00 EF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C1 [00:24:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:24:33]wFMCommunicate OK [00:24:33]requested_item fd.num is exist - process it [00:24:33]SAM_PROTO_GetFieldsCounters [00:24:33]wFMCommunicate request_size=4 [00:24:33]MH_SAM_APDU [00:24:33]CAPDU: 80 13 00 00 [00:24:33]Write to MH i2c: E2 08 00 F0 01 80 13 00 00 00 00 00 00 6D [00:24:33]Write i2c OK [00:24:33]MH_I2C_Read... [00:24:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:24:33]Read from MH i2c: E2 [00:24:33]MH_I2C_Read... [00:24:33]Read from MH i2c: E2 62 00 [00:24:33]MH_I2C_Read... [00:24:33]Read from MH i2c: E2 62 00 F0 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 18 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [00:24:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 18 6A 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:24:33]wFMCommunicate OK [00:24:33]SAM_PROTO_GetFieldsCounters done [00:24:33]requested_item shift.num is exist - process it [00:24:33]requested_item shift.opened is exist - process it [00:24:33]req_shift_opened [00:24:33]FM_GetShiftState [00:24:33]SAM_PROTO_GetShiftState [00:24:33]wFMCommunicate request_size=4 [00:24:33]MH_SAM_APDU [00:24:33]CAPDU: 80 13 01 00 [00:24:33]Write to MH i2c: E2 08 00 F1 01 80 13 01 00 00 00 00 00 6F [00:24:33]Write i2c OK [00:24:33]MH_I2C_Read... [00:24:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:33]Read from MH i2c: E2 [00:24:33]MH_I2C_Read... [00:24:33]Read from MH i2c: E2 0E 00 [00:24:33]MH_I2C_Read... [00:24:33]Read from MH i2c: E2 0E 00 F1 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 7A [00:24:33]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:24:33]wFMCommunicate OK [00:24:33]SAM_PROTO_GetShiftState done [00:24:33]FM_GetShiftState done [00:24:33]req_shift_opened done [00:24:33]requested_item shift.open_date is exist - process it [00:24:33]req_shift_open_date [00:24:33]FM_GetShiftState [00:24:33]SAM_PROTO_GetShiftState [00:24:33]wFMCommunicate request_size=4 [00:24:33]MH_SAM_APDU [00:24:33]CAPDU: 80 13 01 00 [00:24:33]Write to MH i2c: E2 08 00 F2 01 80 13 01 00 00 00 00 00 70 [00:24:33]Write i2c OK [00:24:33]MH_I2C_Read... [00:24:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:33]Read from MH i2c: E2 [00:24:33]MH_I2C_Read... [00:24:33]Read from MH i2c: E2 0E 00 [00:24:33]MH_I2C_Read... [00:24:33]Read from MH i2c: E2 0E 00 F2 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 7B [00:24:33]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:24:33]wFMCommunicate OK [00:24:33]SAM_PROTO_GetShiftState done [00:24:33]FM_GetShiftState done [00:24:33]req_shift_open_date done [00:24:33]produce_requested_data done [00:24:33]produce_requested_data return {"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92696,"shift.num":507,"shift.opened":0,"shift.open_date":0} [00:24:33]process_action_free get_value [00:24:33]json_value_free [00:24:33]json_value_free done [00:24:33]process_json_proto returns [00:24:33]Send response to host [00:24:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92696,"shift.num":507,"shift.opened":0,"shift.open_date":0}}} [00:24:33]free response buf [00:24:33]execute_script done [00:24:33]execute_script returns [00:24:33]free content buf [00:24:33]Sock 8.Close socket [00:24:33]Sock 8.Thread stoped [00:24:33]accept exits with 6 [00:24:33]New connection [00:24:33]New thread 3066608996 created [00:24:33]Thread 3066752356 joined [00:24:33]Waiting for new connection... [00:24:33] Sock 6.Parse request [00:24:33]Sock 6.Check first char [00:24:33]Sock 6.First char is OK [00:24:33]request: POST /json_proto HTTP/1.0 [00:24:33]Method: POST [00:24:33]URL: /json_proto [00:24:33]Method is POST - this is cgi request [00:24:33]url: /json_proto [00:24:33]query_string will be loaded in cgi processing [00:24:33]execute_cgi json_proto POST (null) [00:24:33]execute_cgi path=json_proto method=POST [00:24:33]POST find Content-Length [00:24:33]Host: 172.17.57.71:8080 [00:24:33]Content-Length: 331 [00:24:33]Content-Type: application/json [00:24:33] [00:24:33]POST finish read [00:24:33]Found Content-Length = 331 [00:24:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:24:33]execute_script... [00:24:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:24:34]POST & json_proto [00:24:34]process_json_proto [00:24:34]json parsed OK: [00:24:34]protocol is kg_v1.0 [00:24:34]action value=get_value [00:24:34]process_action get_value [00:24:34]cmd_get_value [00:24:34]process_action get_value done [00:24:34]requested_data is exist [00:24:34]produce_requested_data [00:24:34]requested_item fm.sale.total is exist - process it [00:24:34]SAM_PROTO_GetFMData [00:24:34]wFMCommunicate request_size=4 [00:24:34]MH_SAM_APDU [00:24:34]CAPDU: 80 13 03 00 [00:24:34]Write to MH i2c: E2 08 00 F3 01 80 13 03 00 00 00 00 00 73 [00:24:34]Write i2c OK [00:24:34]MH_I2C_Read... [00:24:34]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:24:34]Read from MH i2c: E2 [00:24:34]MH_I2C_Read... [00:24:34]Read from MH i2c: E2 FD 00 [00:24:34]MH_I2C_Read... [00:24:34]Read from MH i2c: E2 FD 00 F3 01 00 C5 04 85 04 C1 04 6E 04 04 00 21 66 01 00 69 04 A1 00 6F 04 04 00 CD 62 01 00 B1 04 04 00 80 B7 27 B3 70 04 04 00 B0 CE 84 83 72 04 04 00 D0 E8 A2 2F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5A D0 06 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 21 C0 95 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 54 03 00 00 B1 04 04 00 EC 99 7A 04 70 04 04 00 98 B8 41 04 72 04 03 00 54 E1 38 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C8 79 EF 03 09 90 00 D4 [00:24:34]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 21 66 01 00 69 04 A1 00 6F 04 04 00 CD 62 01 00 B1 04 04 00 80 B7 27 B3 70 04 04 00 B0 CE 84 83 72 04 04 00 D0 E8 A2 2F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5A D0 06 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 21 C0 95 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 54 03 00 00 B1 04 04 00 EC 99 7A 04 70 04 04 00 98 B8 41 04 72 04 03 00 54 E1 38 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C8 79 EF 03 09 90 00 [00:24:34]wFMCommunicate OK [00:24:34]wFMCommunicate request_size=4 [00:24:34]MH_SAM_APDU [00:24:34]CAPDU: 80 17 00 00 [00:24:34]Write to MH i2c: E2 08 00 F4 01 80 17 00 00 00 00 00 00 75 [00:24:34]Write i2c OK [00:24:34]MH_I2C_Read... [00:24:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:34]Read from MH i2c: E2 [00:24:34]MH_I2C_Read... [00:24:34]Read from MH i2c: E2 FD 00 [00:24:34]MH_I2C_Read... [00:24:34]Read from MH i2c: E2 FD 00 F4 01 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AA 25 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 04 [00:24:34]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AA 25 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:24:34]wFMCommunicate OK [00:24:34]wFMCommunicate request_size=4 [00:24:34]MH_SAM_APDU [00:24:34]CAPDU: 80 17 00 00 [00:24:34]Write to MH i2c: E2 08 00 F5 01 80 17 00 00 00 00 00 00 76 [00:24:34]Write i2c OK [00:24:34]MH_I2C_Read... [00:24:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:35]Read from MH i2c: E2 [00:24:35]MH_I2C_Read... [00:24:35]Read from MH i2c: E2 FD 00 [00:24:35]MH_I2C_Read... [00:24:35]Read from MH i2c: E2 FD 00 F5 01 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 88 [00:24:35]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:24:35]wFMCommunicate OK [00:24:35]wFMCommunicate request_size=4 [00:24:35]MH_SAM_APDU [00:24:35]CAPDU: 80 17 00 00 [00:24:35]Write to MH i2c: E2 08 00 F6 01 80 17 00 00 00 00 00 00 77 [00:24:35]Write i2c OK [00:24:35]MH_I2C_Read... [00:24:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:35]Read from MH i2c: E2 [00:24:35]MH_I2C_Read... [00:24:35]Read from MH i2c: E2 FD 00 [00:24:35]MH_I2C_Read... [00:24:35]Read from MH i2c: E2 FD 00 F6 01 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 03 [00:24:35]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:24:35]wFMCommunicate OK [00:24:35]wFMCommunicate request_size=4 [00:24:35]MH_SAM_APDU [00:24:35]CAPDU: 80 17 00 00 [00:24:35]Write to MH i2c: E2 08 00 F7 01 80 17 00 00 00 00 00 00 78 [00:24:35]Write i2c OK [00:24:35]MH_I2C_Read... [00:24:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:24:35]Read from MH i2c: E2 [00:24:35]MH_I2C_Read... [00:24:35]Read from MH i2c: E2 E2 00 [00:24:35]MH_I2C_Read... [00:24:35]Read from MH i2c: E2 E2 00 F7 01 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 56 [00:24:35]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:24:35]wFMCommunicate OK [00:24:35]SAM_PROTO_GetFMData done [00:24:35]requested_item fm.sale_refund.total is exist - process it [00:24:35]requested_item fm.buy.total is exist - process it [00:24:35]requested_item shift.sale.total is exist - process it [00:24:35]SAM_PROTO_GetShiftData [00:24:35]wFMCommunicate request_size=4 [00:24:35]MH_SAM_APDU [00:24:35]CAPDU: 80 13 02 00 [00:24:35]Write to MH i2c: E2 08 00 F8 01 80 13 02 00 00 00 00 00 77 [00:24:35]Write i2c OK [00:24:35]MH_I2C_Read... [00:24:36]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:24:36]Read from MH i2c: E2 [00:24:36]MH_I2C_Read... [00:24:36]Read from MH i2c: E2 FD 00 [00:24:36]MH_I2C_Read... [00:24:36]Read from MH i2c: E2 FD 00 F8 01 00 B8 04 AA 04 B4 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8D 00 00 00 B1 04 03 00 47 36 5A 70 04 03 00 64 9C 31 72 04 03 00 E3 99 28 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 9D 94 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E CC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 7C B8 02 70 04 03 00 7C B8 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F7 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 33 [00:24:36]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8D 00 00 00 B1 04 03 00 47 36 5A 70 04 03 00 64 9C 31 72 04 03 00 E3 99 28 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 9D 94 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E CC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 7C B8 02 70 04 03 00 7C B8 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F7 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:24:36]wFMCommunicate OK [00:24:36]wFMCommunicate request_size=4 [00:24:36]MH_SAM_APDU [00:24:36]CAPDU: 80 17 00 00 [00:24:36]Write to MH i2c: E2 08 00 F9 01 80 17 00 00 00 00 00 00 7A [00:24:36]Write i2c OK [00:24:36]MH_I2C_Read... [00:24:36]OFD Sender: No OFD packet to send [00:24:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:36]Read from MH i2c: E2 [00:24:36]MH_I2C_Read... [00:24:36]Read from MH i2c: E2 FD 00 [00:24:36]MH_I2C_Read... [00:24:36]Read from MH i2c: E2 FD 00 F9 01 00 0B 00 F6 03 01 00 01 F7 03 02 00 29 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 DA [00:24:36]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 29 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:24:36]wFMCommunicate OK [00:24:36]wFMCommunicate request_size=4 [00:24:36]MH_SAM_APDU [00:24:36]CAPDU: 80 17 00 00 [00:24:36]Write to MH i2c: E2 08 00 FA 01 80 17 00 00 00 00 00 00 7B [00:24:36]Write i2c OK [00:24:36]MH_I2C_Read... [00:24:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:36]Read from MH i2c: E2 [00:24:36]MH_I2C_Read... [00:24:36]Read from MH i2c: E2 FD 00 [00:24:36]MH_I2C_Read... [00:24:36]Read from MH i2c: E2 FD 00 FA 01 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 1D [00:24:36]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [00:24:36]wFMCommunicate OK [00:24:36]wFMCommunicate request_size=4 [00:24:36]MH_SAM_APDU [00:24:36]CAPDU: 80 17 00 00 [00:24:36]Write to MH i2c: E2 08 00 FB 01 80 17 00 00 00 00 00 00 7C [00:24:36]Write i2c OK [00:24:36]MH_I2C_Read... [00:24:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:37]Read from MH i2c: E2 [00:24:37]MH_I2C_Read... [00:24:37]Read from MH i2c: E2 FD 00 [00:24:37]MH_I2C_Read... [00:24:37]Read from MH i2c: E2 FD 00 FB 01 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 05 [00:24:37]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [00:24:37]wFMCommunicate OK [00:24:37]wFMCommunicate request_size=4 [00:24:37]MH_SAM_APDU [00:24:37]CAPDU: 80 17 00 00 [00:24:37]Write to MH i2c: E2 08 00 FC 01 80 17 00 00 00 00 00 00 7D [00:24:37]Write i2c OK [00:24:37]MH_I2C_Read... [00:24:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:24:37]Read from MH i2c: E2 [00:24:37]MH_I2C_Read... [00:24:37]Read from MH i2c: E2 D5 00 [00:24:37]MH_I2C_Read... [00:24:37]Read from MH i2c: E2 D5 00 FC 01 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5E [00:24:37]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:24:37]wFMCommunicate OK [00:24:37]SAM_PROTO_GetShiftData done [00:24:37]requested_item shift.sale.total_cash is exist - process it [00:24:37]requested_item shift.sale_refund.total is exist - process it [00:24:37]requested_item shift.sale_refund.total_cash is exist - process it [00:24:37]requested_item shift.buy.total is exist - process it [00:24:37]requested_item shift.buy.total_cash is exist - process it [00:24:37]produce_requested_data done [00:24:37]produce_requested_data return {"fm.sale.total":30057245.44,"fm.sale_refund.total":751436.60,"fm.buy.total":0.00,"shift.sale.total":59121.35,"shift.sale.total_cash":32513.00,"shift.sale_refund.total":1783.00,"shift.sale_refund.total_cash":1783.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:24:37]process_action_free get_value [00:24:37]json_value_free [00:24:37]json_value_free done [00:24:37]process_json_proto returns [00:24:37]Send response to host [00:24:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":30057245.44,"fm.sale_refund.total":751436.60,"fm.buy.total":0.00,"shift.sale.total":59121.35,"shift.sale.total_cash":32513.00,"shift.sale_refund.total":1783.00,"shift.sale_refund.total_cash":1783.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:24:37]free response buf [00:24:37]execute_script done [00:24:37]execute_script returns [00:24:37]free content buf [00:24:37]Sock 6.Close socket [00:24:37]Sock 6.Thread stoped [00:24:37]accept exits with 7 [00:24:37]New connection [00:24:37]New thread 3066752356 created [00:24:37]Thread 3066608996 joined [00:24:37]Waiting for new connection... [00:24:37] Sock 7.Parse request [00:24:37]Sock 7.Check first char [00:24:37]Sock 7.First char is OK [00:24:37]request: POST /json_proto HTTP/1.0 [00:24:37]Method: POST [00:24:37]URL: /json_proto [00:24:37]Method is POST - this is cgi request [00:24:37]url: /json_proto [00:24:37]query_string will be loaded in cgi processing [00:24:37]execute_cgi json_proto POST (null) [00:24:37]execute_cgi path=json_proto method=POST [00:24:37]POST find Content-Length [00:24:37]Host: 172.17.57.71:8080 [00:24:37]Content-Length: 266 [00:24:37]Content-Type: application/json [00:24:37] [00:24:37]POST finish read [00:24:37]Found Content-Length = 266 [00:24:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0421\u0432\u0431\u044B\u0440\u0431\u0435\u043A \u0443 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:24:37]execute_script... [00:24:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0421\u0432\u0431\u044B\u0440\u0431\u0435\u043A \u0443 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:24:37]POST & json_proto [00:24:37]process_json_proto [00:24:37]json parsed OK: [00:24:37]protocol is kg_v1.0 [00:24:37]action value=open_shift [00:24:37]process_action open_shift [00:24:37]cmd_open_shift [00:24:37]MH_GetDate [00:24:37]Write to MH i2c: F0 00 00 FD 01 ED [00:24:37]Write i2c OK [00:24:37]MH_I2C_Read... [00:24:37]Read from MH i2c: F0 [00:24:37]MH_I2C_Read... [00:24:37]Read from MH i2c: F0 09 00 [00:24:37]MH_I2C_Read... [00:24:37]Read from MH i2c: F0 09 00 FD 01 00 C5 7A E7 66 33 3A A4 66 F9 [00:24:37]GetLastDocTimeStamp 1726445176 [00:24:37]current date 1726446277 [00:24:37]FM_GetShiftState [00:24:37]SAM_PROTO_GetShiftState [00:24:37]wFMCommunicate request_size=4 [00:24:37]MH_SAM_APDU [00:24:37]CAPDU: 80 13 01 00 [00:24:37]Write to MH i2c: E2 08 00 FE 01 80 13 01 00 00 00 00 00 7C [00:24:37]Write i2c OK [00:24:37]MH_I2C_Read... [00:24:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:37]Read from MH i2c: E2 [00:24:37]MH_I2C_Read... [00:24:37]Read from MH i2c: E2 0E 00 [00:24:37]MH_I2C_Read... [00:24:37]Read from MH i2c: E2 0E 00 FE 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 87 [00:24:37]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:24:37]wFMCommunicate OK [00:24:37]SAM_PROTO_GetShiftState done [00:24:37]FM_GetShiftState done [00:24:37]KKMCreateOpenShiftDocument [00:24:37]Load OK [00:24:37]Malloc new data [00:24:37]MH_GetDate [00:24:37]Write to MH i2c: F0 00 00 FF 01 EF [00:24:37]Write i2c OK [00:24:37]MH_I2C_Read... [00:24:37]Read from MH i2c: F0 [00:24:37]MH_I2C_Read... [00:24:37]Read from MH i2c: F0 09 00 [00:24:37]MH_I2C_Read... [00:24:37]Read from MH i2c: F0 09 00 FF 01 00 C6 7A E7 66 33 3A A4 66 FC [00:24:37]Malloc new data [00:24:37]KKMCreateOpenShiftDocument OK [00:24:37]KKMSetOpenShiftData OK [00:24:37]ProcessDocumentItem done err = 0, tmpTLVsize=208 [00:24:37]tlvbuf is 01764500 [00:24:37]KKMLoadAndSignOpenShiftData [00:24:37]SAM_PROTO_ProcessDocument [00:24:37]wFMCommunicate request_size=9 [00:24:37]MH_SAM_APDU [00:24:37]CAPDU: 80 15 01 00 04 02 00 D0 00 [00:24:37]Write to MH i2c: E2 0C 00 00 02 80 15 01 00 04 00 02 00 D0 00 00 00 5B [00:24:37]Write i2c OK [00:24:37]MH_I2C_Read... [00:24:37]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:24:37]Read from MH i2c: E2 [00:24:37]MH_I2C_Read... [00:24:37]Read from MH i2c: E2 03 00 [00:24:37]MH_I2C_Read... [00:24:37]Read from MH i2c: E2 03 00 00 02 00 90 00 76 [00:24:37]RAPDU: 90 00 [00:24:37]wFMCommunicate OK [00:24:37]wFMCommunicate request_size=23 [00:24:37]MH_SAM_APDU [00:24:37]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:24:37]Write to MH i2c: E2 1A 00 01 02 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 78 [00:24:37]Write i2c OK [00:24:37]MH_I2C_Read... [00:24:37]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:24:37]Read from MH i2c: E2 [00:24:37]MH_I2C_Read... [00:24:37]Read from MH i2c: E2 03 00 [00:24:37]MH_I2C_Read... [00:24:37]Read from MH i2c: E2 03 00 01 02 00 90 00 77 [00:24:37]RAPDU: 90 00 [00:24:37]wFMCommunicate OK [00:24:37]wFMCommunicate request_size=33 [00:24:37]MH_SAM_APDU [00:24:37]CAPDU: 80 15 02 00 1C FD 03 18 00 D0 A1 D0 B2 D0 B1 D1 8B D1 80 D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 9C 2E 20 [00:24:37]Write to MH i2c: E2 24 00 02 02 80 15 02 00 1C 00 FD 03 18 00 D0 A1 D0 B2 D0 B1 D1 8B D1 80 D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 9C 2E 20 00 00 D3 [00:24:37]Write i2c OK [00:24:37]MH_I2C_Read... [00:24:37]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:24:37]Read from MH i2c: E2 [00:24:37]MH_I2C_Read... [00:24:37]Read from MH i2c: E2 03 00 [00:24:37]MH_I2C_Read... [00:24:37]Read from MH i2c: E2 03 00 02 02 00 90 00 78 [00:24:37]RAPDU: 90 00 [00:24:37]wFMCommunicate OK [00:24:37]wFMCommunicate request_size=95 [00:24:37]MH_SAM_APDU [00:24:37]CAPDU: 80 15 02 00 5A F1 03 56 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 BE D0 BA 20 D0 96 D0 B0 D1 80 2C 20 D1 83 D0 BB 2E 20 D0 A8 D0 B0 D0 B1 D0 B4 D0 B0 D0 BD 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 80 D0 B0 20 32 2F 31 2C 20 34 32 2E 38 30 32 34 30 34 2C 20 37 34 2E 36 34 38 34 39 38 [00:24:37]Write to MH i2c: E2 62 00 03 02 80 15 02 00 5A 00 F1 03 56 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 BE D0 BA 20 D0 96 D0 B0 D1 80 2C 20 D1 83 D0 BB 2E 20 D0 A8 D0 B0 D0 B1 D0 B4 D0 B0 D0 BD 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 80 D0 B0 20 32 2F 31 2C 20 34 32 2E 38 30 32 34 30 34 2C 20 37 34 2E 36 34 38 34 39 38 00 00 E6 [00:24:37]Write i2c OK [00:24:37]MH_I2C_Read... [00:24:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:24:38]Read from MH i2c: E2 [00:24:38]MH_I2C_Read... [00:24:38]Read from MH i2c: E2 03 00 [00:24:38]MH_I2C_Read... [00:24:38]Read from MH i2c: E2 03 00 03 02 00 90 00 79 [00:24:38]RAPDU: 90 00 [00:24:38]wFMCommunicate OK [00:24:38]wFMCommunicate request_size=49 [00:24:38]MH_SAM_APDU [00:24:38]CAPDU: 80 15 02 00 2C A3 04 28 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:24:38]Write to MH i2c: E2 34 00 04 02 80 15 02 00 2C 00 A3 04 28 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 C7 [00:24:38]Write i2c OK [00:24:38]MH_I2C_Read... [00:24:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:24:38]Read from MH i2c: E2 [00:24:38]MH_I2C_Read... [00:24:38]Read from MH i2c: E2 03 00 [00:24:38]MH_I2C_Read... [00:24:38]Read from MH i2c: E2 03 00 04 02 00 90 00 7A [00:24:38]RAPDU: 90 00 [00:24:38]wFMCommunicate OK [00:24:38]wFMCommunicate request_size=13 [00:24:38]MH_SAM_APDU [00:24:38]CAPDU: 80 15 02 00 08 F4 03 04 00 C6 7A E7 66 [00:24:38]Write to MH i2c: E2 10 00 05 02 80 15 02 00 08 00 F4 03 04 00 C6 7A E7 66 00 00 1F [00:24:38]Write i2c OK [00:24:38]MH_I2C_Read... [00:24:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:24:38]Read from MH i2c: E2 [00:24:38]MH_I2C_Read... [00:24:38]Read from MH i2c: E2 03 00 [00:24:38]MH_I2C_Read... [00:24:38]Read from MH i2c: E2 03 00 05 02 00 90 00 7B [00:24:38]RAPDU: 90 00 [00:24:38]wFMCommunicate OK [00:24:38]wFMCommunicate request_size=25 [00:24:38]MH_SAM_APDU [00:24:38]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 [00:24:38]Write to MH i2c: E2 1C 00 06 02 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 00 00 E4 [00:24:38]Write i2c OK [00:24:38]MH_I2C_Read... [00:24:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:24:38]Read from MH i2c: E2 [00:24:38]MH_I2C_Read... [00:24:38]Read from MH i2c: E2 03 00 [00:24:38]MH_I2C_Read... [00:24:38]Read from MH i2c: E2 03 00 06 02 00 90 00 7C [00:24:38]RAPDU: 90 00 [00:24:38]wFMCommunicate OK [00:24:38]wFMCommunicate request_size=4 [00:24:38]MH_SAM_APDU [00:24:38]CAPDU: 80 15 03 00 [00:24:38]Write to MH i2c: E2 08 00 07 02 80 15 03 00 00 00 00 00 8A [00:24:38]Write i2c OK [00:24:38]MH_I2C_Read... [00:24:38]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:24:38]Read from MH i2c: E2 [00:24:38]MH_I2C_Read... [00:24:38]Read from MH i2c: E2 38 00 [00:24:38]MH_I2C_Read... [00:24:38]Read from MH i2c: E2 38 00 07 02 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 19 6A 01 00 0E 04 04 00 FC 01 00 00 35 04 06 00 AD D1 6E 54 93 BB 90 00 69 [00:24:38]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 19 6A 01 00 0E 04 04 00 FC 01 00 00 35 04 06 00 AD D1 6E 54 93 BB 90 00 [00:24:38]wFMCommunicate OK [00:24:38]SAM_PROTO_ProcessDocument answer len = 51 [00:24:38]SAM_PROTO_ProcessDocument done [00:24:38]SetTLVBufToDocument [00:24:38]Processing tag 1209 (04B9) [00:24:38]Malloc new data [00:24:38]Processing tag 1041 (0411) [00:24:38]Processing tag 1040 (0410) [00:24:38]Malloc new data [00:24:38]Processing tag 1038 (040E) [00:24:38]Malloc new data [00:24:38]Processing tag 1077 (0435) [00:24:38]Malloc new data [00:24:38]SetTLVBufToDocument err=0 [00:24:38]KKMLoadAndSignOpenShiftData store KKM data [00:24:38]KKMLoadAndSignOpenShiftData err=0 [00:24:38]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Свбырбек у М. Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 Место: АЗС № 5 "Партнер Нефть" 16.09.2024 00:24 Смена: 508 РНМ: 0000000000091423 ЗНМ: 03000000022 ФД: 92697 ФМ: 0000000000874692 ФПД: 191115010806715 [00:24:38]StoreToDocumentArchive [00:24:38]shift 508 fd 92697 [00:24:38]Create dir for shift 0508 [00:24:38]save to /storage/0508/doc_00092697 [00:24:38]save last doc name /storage/0508/doc_00092697 to /storage/kkm_last_doc_name [00:24:38]save OK [00:24:38]Clear old archive folders... [00:24:38]Remove dir /storage/0507 [00:24:38]opendir ok [00:24:38]file . [00:24:38]file .. [00:24:38]file doc_00092552 [00:24:38]remove file /storage/0507/doc_00092552 [00:24:38]file doc_00092553 [00:24:38]remove file /storage/0507/doc_00092553 [00:24:38]file doc_00092554 [00:24:38]remove file /storage/0507/doc_00092554 [00:24:38]file doc_00092555 [00:24:38]remove file /storage/0507/doc_00092555 [00:24:38]file doc_00092556 [00:24:38]remove file /storage/0507/doc_00092556 [00:24:38]file doc_00092557 [00:24:38]remove file /storage/0507/doc_00092557 [00:24:38]file doc_00092558 [00:24:38]remove file /storage/0507/doc_00092558 [00:24:38]file doc_00092559 [00:24:38]remove file /storage/0507/doc_00092559 [00:24:38]file doc_00092560 [00:24:38]remove file /storage/0507/doc_00092560 [00:24:38]file doc_00092561 [00:24:38]remove file /storage/0507/doc_00092561 [00:24:38]file doc_00092562 [00:24:38]remove file /storage/0507/doc_00092562 [00:24:38]file doc_00092563 [00:24:38]remove file /storage/0507/doc_00092563 [00:24:38]file doc_00092564 [00:24:38]remove file /storage/0507/doc_00092564 [00:24:38]file doc_00092565 [00:24:38]remove file /storage/0507/doc_00092565 [00:24:38]file doc_00092566 [00:24:38]remove file /storage/0507/doc_00092566 [00:24:38]file doc_00092567 [00:24:38]remove file /storage/0507/doc_00092567 [00:24:38]file doc_00092568 [00:24:38]remove file /storage/0507/doc_00092568 [00:24:38]file doc_00092569 [00:24:38]remove file /storage/0507/doc_00092569 [00:24:38]file doc_00092570 [00:24:38]remove file /storage/0507/doc_00092570 [00:24:38]file doc_00092571 [00:24:38]remove file /storage/0507/doc_00092571 [00:24:38]file doc_00092572 [00:24:38]remove file /storage/0507/doc_00092572 [00:24:38]file doc_00092573 [00:24:38]remove file /storage/0507/doc_00092573 [00:24:38]file doc_00092574 [00:24:38]remove file /storage/0507/doc_00092574 [00:24:38]file doc_00092575 [00:24:38]remove file /storage/0507/doc_00092575 [00:24:38]file doc_00092576 [00:24:38]remove file /storage/0507/doc_00092576 [00:24:38]file doc_00092577 [00:24:38]remove file /storage/0507/doc_00092577 [00:24:38]file doc_00092578 [00:24:38]remove file /storage/0507/doc_00092578 [00:24:38]file doc_00092579 [00:24:38]remove file /storage/0507/doc_00092579 [00:24:38]file doc_00092580 [00:24:38]remove file /storage/0507/doc_00092580 [00:24:38]file doc_00092581 [00:24:38]remove file /storage/0507/doc_00092581 [00:24:38]file doc_00092582 [00:24:38]remove file /storage/0507/doc_00092582 [00:24:38]file doc_00092583 [00:24:38]remove file /storage/0507/doc_00092583 [00:24:38]file doc_00092584 [00:24:38]remove file /storage/0507/doc_00092584 [00:24:38]file doc_00092585 [00:24:38]remove file /storage/0507/doc_00092585 [00:24:38]file doc_00092586 [00:24:38]remove file /storage/0507/doc_00092586 [00:24:38]file doc_00092587 [00:24:38]remove file /storage/0507/doc_00092587 [00:24:38]file doc_00092588 [00:24:38]remove file /storage/0507/doc_00092588 [00:24:38]file doc_00092589 [00:24:38]remove file /storage/0507/doc_00092589 [00:24:38]file doc_00092590 [00:24:38]remove file /storage/0507/doc_00092590 [00:24:38]file doc_00092591 [00:24:38]remove file /storage/0507/doc_00092591 [00:24:38]file doc_00092592 [00:24:38]remove file /storage/0507/doc_00092592 [00:24:38]file doc_00092593 [00:24:39]remove file /storage/0507/doc_00092593 [00:24:39]file doc_00092594 [00:24:39]remove file /storage/0507/doc_00092594 [00:24:39]file doc_00092595 [00:24:39]remove file /storage/0507/doc_00092595 [00:24:39]file doc_00092596 [00:24:39]remove file /storage/0507/doc_00092596 [00:24:39]file doc_00092597 [00:24:39]remove file /storage/0507/doc_00092597 [00:24:39]file doc_00092598 [00:24:39]remove file /storage/0507/doc_00092598 [00:24:39]file doc_00092599 [00:24:39]remove file /storage/0507/doc_00092599 [00:24:39]file doc_00092600 [00:24:39]remove file /storage/0507/doc_00092600 [00:24:39]file doc_00092601 [00:24:39]remove file /storage/0507/doc_00092601 [00:24:39]file doc_00092602 [00:24:39]remove file /storage/0507/doc_00092602 [00:24:39]file doc_00092603 [00:24:39]remove file /storage/0507/doc_00092603 [00:24:39]file doc_00092604 [00:24:39]remove file /storage/0507/doc_00092604 [00:24:39]file doc_00092605 [00:24:39]remove file /storage/0507/doc_00092605 [00:24:39]file doc_00092606 [00:24:39]remove file /storage/0507/doc_00092606 [00:24:39]file doc_00092607 [00:24:39]remove file /storage/0507/doc_00092607 [00:24:39]file doc_00092608 [00:24:39]remove file /storage/0507/doc_00092608 [00:24:39]file doc_00092609 [00:24:39]remove file /storage/0507/doc_00092609 [00:24:39]file doc_00092610 [00:24:39]remove file /storage/0507/doc_00092610 [00:24:39]file doc_00092611 [00:24:39]remove file /storage/0507/doc_00092611 [00:24:39]file doc_00092612 [00:24:39]remove file /storage/0507/doc_00092612 [00:24:39]file doc_00092613 [00:24:39]remove file /storage/0507/doc_00092613 [00:24:39]file doc_00092614 [00:24:39]remove file /storage/0507/doc_00092614 [00:24:39]file doc_00092615 [00:24:39]remove file /storage/0507/doc_00092615 [00:24:39]file doc_00092616 [00:24:39]remove file /storage/0507/doc_00092616 [00:24:39]file doc_00092617 [00:24:39]remove file /storage/0507/doc_00092617 [00:24:39]file doc_00092618 [00:24:39]remove file /storage/0507/doc_00092618 [00:24:39]file doc_00092619 [00:24:39]remove file /storage/0507/doc_00092619 [00:24:39]file doc_00092620 [00:24:39]remove file /storage/0507/doc_00092620 [00:24:39]file doc_00092621 [00:24:39]remove file /storage/0507/doc_00092621 [00:24:39]file doc_00092622 [00:24:39]remove file /storage/0507/doc_00092622 [00:24:39]file doc_00092623 [00:24:39]remove file /storage/0507/doc_00092623 [00:24:39]file doc_00092624 [00:24:39]remove file /storage/0507/doc_00092624 [00:24:39]file doc_00092625 [00:24:39]remove file /storage/0507/doc_00092625 [00:24:39]file doc_00092626 [00:24:39]remove file /storage/0507/doc_00092626 [00:24:39]file doc_00092627 [00:24:39]remove file /storage/0507/doc_00092627 [00:24:39]file doc_00092628 [00:24:39]remove file /storage/0507/doc_00092628 [00:24:39]file doc_00092629 [00:24:39]remove file /storage/0507/doc_00092629 [00:24:39]file doc_00092630 [00:24:39]remove file /storage/0507/doc_00092630 [00:24:39]file doc_00092631 [00:24:39]remove file /storage/0507/doc_00092631 [00:24:39]file doc_00092632 [00:24:39]remove file /storage/0507/doc_00092632 [00:24:39]file doc_00092633 [00:24:39]remove file /storage/0507/doc_00092633 [00:24:39]file doc_00092634 [00:24:39]remove file /storage/0507/doc_00092634 [00:24:39]file doc_00092635 [00:24:39]remove file /storage/0507/doc_00092635 [00:24:39]file doc_00092636 [00:24:39]remove file /storage/0507/doc_00092636 [00:24:39]file doc_00092637 [00:24:39]remove file /storage/0507/doc_00092637 [00:24:39]file doc_00092638 [00:24:39]remove file /storage/0507/doc_00092638 [00:24:39]file doc_00092639 [00:24:39]remove file /storage/0507/doc_00092639 [00:24:39]file doc_00092640 [00:24:39]remove file /storage/0507/doc_00092640 [00:24:39]file doc_00092641 [00:24:39]remove file /storage/0507/doc_00092641 [00:24:39]file doc_00092642 [00:24:39]remove file /storage/0507/doc_00092642 [00:24:39]file doc_00092643 [00:24:39]remove file /storage/0507/doc_00092643 [00:24:39]file doc_00092644 [00:24:39]remove file /storage/0507/doc_00092644 [00:24:39]file doc_00092645 [00:24:39]remove file /storage/0507/doc_00092645 [00:24:39]file doc_00092646 [00:24:39]remove file /storage/0507/doc_00092646 [00:24:39]file doc_00092647 [00:24:39]remove file /storage/0507/doc_00092647 [00:24:39]file doc_00092648 [00:24:39]remove file /storage/0507/doc_00092648 [00:24:39]file doc_00092649 [00:24:39]remove file /storage/0507/doc_00092649 [00:24:39]file doc_00092650 [00:24:39]remove file /storage/0507/doc_00092650 [00:24:39]file doc_00092651 [00:24:39]remove file /storage/0507/doc_00092651 [00:24:39]file doc_00092652 [00:24:39]remove file /storage/0507/doc_00092652 [00:24:39]file doc_00092653 [00:24:39]remove file /storage/0507/doc_00092653 [00:24:39]file doc_00092654 [00:24:39]remove file /storage/0507/doc_00092654 [00:24:39]file doc_00092655 [00:24:39]remove file /storage/0507/doc_00092655 [00:24:39]file doc_00092656 [00:24:39]remove file /storage/0507/doc_00092656 [00:24:39]file doc_00092657 [00:24:39]remove file /storage/0507/doc_00092657 [00:24:39]file doc_00092658 [00:24:39]remove file /storage/0507/doc_00092658 [00:24:39]file doc_00092659 [00:24:39]remove file /storage/0507/doc_00092659 [00:24:39]file doc_00092660 [00:24:39]remove file /storage/0507/doc_00092660 [00:24:39]file doc_00092661 [00:24:39]remove file /storage/0507/doc_00092661 [00:24:39]file doc_00092662 [00:24:39]remove file /storage/0507/doc_00092662 [00:24:39]file doc_00092663 [00:24:39]remove file /storage/0507/doc_00092663 [00:24:39]file doc_00092664 [00:24:39]remove file /storage/0507/doc_00092664 [00:24:39]file doc_00092665 [00:24:39]remove file /storage/0507/doc_00092665 [00:24:39]file doc_00092666 [00:24:39]remove file /storage/0507/doc_00092666 [00:24:39]file doc_00092667 [00:24:39]remove file /storage/0507/doc_00092667 [00:24:39]file doc_00092668 [00:24:39]remove file /storage/0507/doc_00092668 [00:24:39]file doc_00092669 [00:24:39]remove file /storage/0507/doc_00092669 [00:24:39]file doc_00092670 [00:24:39]remove file /storage/0507/doc_00092670 [00:24:39]file doc_00092671 [00:24:39]remove file /storage/0507/doc_00092671 [00:24:39]file doc_00092672 [00:24:39]remove file /storage/0507/doc_00092672 [00:24:39]file doc_00092673 [00:24:39]remove file /storage/0507/doc_00092673 [00:24:39]file doc_00092674 [00:24:39]remove file /storage/0507/doc_00092674 [00:24:39]file doc_00092675 [00:24:39]remove file /storage/0507/doc_00092675 [00:24:39]file doc_00092676 [00:24:39]remove file /storage/0507/doc_00092676 [00:24:39]file doc_00092677 [00:24:39]remove file /storage/0507/doc_00092677 [00:24:39]file doc_00092678 [00:24:39]remove file /storage/0507/doc_00092678 [00:24:39]file doc_00092679 [00:24:39]remove file /storage/0507/doc_00092679 [00:24:39]file doc_00092680 [00:24:39]remove file /storage/0507/doc_00092680 [00:24:39]file doc_00092681 [00:24:39]remove file /storage/0507/doc_00092681 [00:24:39]file doc_00092682 [00:24:39]remove file /storage/0507/doc_00092682 [00:24:39]file doc_00092683 [00:24:39]remove file /storage/0507/doc_00092683 [00:24:39]file doc_00092684 [00:24:39]remove file /storage/0507/doc_00092684 [00:24:39]file doc_00092685 [00:24:39]remove file /storage/0507/doc_00092685 [00:24:39]file doc_00092686 [00:24:39]remove file /storage/0507/doc_00092686 [00:24:39]file doc_00092687 [00:24:39]remove file /storage/0507/doc_00092687 [00:24:39]file doc_00092688 [00:24:39]remove file /storage/0507/doc_00092688 [00:24:39]file doc_00092689 [00:24:39]remove file /storage/0507/doc_00092689 [00:24:39]file doc_00092690 [00:24:39]remove file /storage/0507/doc_00092690 [00:24:39]file doc_00092691 [00:24:39]remove file /storage/0507/doc_00092691 [00:24:39]file doc_00092692 [00:24:39]remove file /storage/0507/doc_00092692 [00:24:39]file doc_00092693 [00:24:39]remove file /storage/0507/doc_00092693 [00:24:39]file doc_00092694 [00:24:39]remove file /storage/0507/doc_00092694 [00:24:39]file doc_00092695 [00:24:39]remove file /storage/0507/doc_00092695 [00:24:39]file doc_00092696 [00:24:39]remove file /storage/0507/doc_00092696 [00:24:39]remove dir /storage/0507 [00:24:39]ProcessDocumentItem done err = 0, tmpTLVsize=259 [00:24:39]tlvbuf is 01773CE0 [00:24:39]SAM_PROTO_ClearQueue [00:24:39]wFMCommunicate request_size=4 [00:24:39]MH_SAM_APDU [00:24:39]CAPDU: 80 09 00 00 [00:24:39]Write to MH i2c: E2 08 00 08 02 80 09 00 00 00 00 00 00 7C [00:24:39]Write i2c OK [00:24:39]MH_I2C_Read... [00:24:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:24:39]Read from MH i2c: E2 [00:24:39]MH_I2C_Read... [00:24:39]Read from MH i2c: E2 03 00 [00:24:39]MH_I2C_Read... [00:24:39]Read from MH i2c: E2 03 00 08 02 00 90 00 7E [00:24:39]RAPDU: 90 00 [00:24:39]wFMCommunicate OK [00:24:39]SAM_PROTO_ClearQueue done [00:24:39]KKMCreateOFDPacket [00:24:39]OFDProtocolAddRootSTLVToBuf [00:24:39]FM_MakeSignedData [00:24:39]FM_MakeSignedData [00:24:39]SAM_PROTO_SignData [00:24:39]wFMCommunicate request_size=4 [00:24:39]MH_SAM_APDU [00:24:39]CAPDU: 80 0D 01 02 [00:24:39]Write to MH i2c: E2 08 00 09 02 80 0D 01 02 00 00 00 00 84 [00:24:39]Write i2c OK [00:24:39]MH_I2C_Read... [00:24:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:24:39]Read from MH i2c: E2 [00:24:39]MH_I2C_Read... [00:24:39]Read from MH i2c: E2 03 00 [00:24:39]MH_I2C_Read... [00:24:39]Read from MH i2c: E2 03 00 09 02 00 90 00 7F [00:24:39]RAPDU: 90 00 [00:24:39]wFMCommunicate OK [00:24:39]wFMCommunicate request_size=255 [00:24:39]MH_SAM_APDU [00:24:39]CAPDU: 80 0D 02 02 FA 02 00 03 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 18 00 D0 A1 D0 B2 D0 B1 D1 8B D1 80 D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 9C 2E 20 F1 03 56 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 BE D0 BA 20 D0 96 D0 B0 D1 80 2C 20 D1 83 D0 BB 2E 20 D0 A8 D0 B0 D0 B1 D0 B4 D0 B0 D0 BD 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 80 D0 B0 20 32 2F 31 2C 20 34 32 2E 38 30 32 34 30 34 2C 20 37 34 2E 36 34 38 34 39 38 A3 04 28 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 C6 7A E7 66 0E 04 04 00 FC 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 19 6A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 [00:24:39]Write to MH i2c: E2 02 01 0A 02 80 0D 02 02 FA 00 02 00 03 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 18 00 D0 A1 D0 B2 D0 B1 D1 8B D1 80 D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 9C 2E 20 F1 03 56 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 BE D0 BA 20 D0 96 D0 B0 D1 80 2C 20 D1 83 D0 BB 2E 20 D0 A8 D0 B0 D0 B1 D0 B4 D0 B0 D0 BD 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 80 D0 B0 20 32 2F 31 2C 20 34 32 2E 38 30 32 34 30 34 2C 20 37 34 2E 36 34 38 34 39 38 A3 04 28 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 C6 7A E7 66 0E 04 04 00 FC 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 19 6A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 00 00 D1 [00:24:39]Write i2c OK [00:24:39]MH_I2C_Read... [00:24:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:24:40]Read from MH i2c: E2 [00:24:40]MH_I2C_Read... [00:24:40]Read from MH i2c: E2 03 00 [00:24:40]MH_I2C_Read... [00:24:40]Read from MH i2c: E2 03 00 0A 02 00 90 00 80 [00:24:40]RAPDU: 90 00 [00:24:40]wFMCommunicate OK [00:24:40]wFMCommunicate request_size=18 [00:24:40]MH_SAM_APDU [00:24:40]CAPDU: 80 0D 02 02 0D 36 39 32 35 04 06 00 AD D1 6E 54 93 BB [00:24:40]Write to MH i2c: E2 15 00 0B 02 80 0D 02 02 0D 00 36 39 32 35 04 06 00 AD D1 6E 54 93 BB 00 00 0F [00:24:40]Write i2c OK [00:24:40]MH_I2C_Read... [00:24:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:24:40]Read from MH i2c: E2 [00:24:40]MH_I2C_Read... [00:24:40]Read from MH i2c: E2 03 00 [00:24:40]MH_I2C_Read... [00:24:40]Read from MH i2c: E2 03 00 0B 02 00 90 00 81 [00:24:40]RAPDU: 90 00 [00:24:40]wFMCommunicate OK [00:24:40]wFMCommunicate request_size=4 [00:24:40]MH_SAM_APDU [00:24:40]CAPDU: 80 0D 03 02 [00:24:40]Write to MH i2c: E2 08 00 0C 02 80 0D 03 02 00 00 00 00 89 [00:24:40]Write i2c OK [00:24:40]MH_I2C_Read... [00:24:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:24:40]Read from MH i2c: E2 [00:24:40]MH_I2C_Read... [00:24:40]Read from MH i2c: E2 0B 00 [00:24:40]MH_I2C_Read... [00:24:40]Read from MH i2c: E2 0B 00 0C 02 00 B5 97 62 0F 94 27 C3 08 90 00 CD [00:24:40]RAPDU: B5 97 62 0F 94 27 C3 08 90 00 [00:24:40]wFMCommunicate OK [00:24:40]SAM_PROTO_SignData done [00:24:40]FM_MakeSignedData done [00:24:40]CreateOFDProtocolMessage [00:24:40]wFMCommunicate request_size=4 [00:24:40]MH_SAM_APDU [00:24:40]CAPDU: 80 11 00 00 [00:24:40]Write to MH i2c: E2 08 00 0D 02 80 11 00 00 00 00 00 00 89 [00:24:40]Write i2c OK [00:24:40]MH_I2C_Read... [00:24:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:24:40]Read from MH i2c: E2 [00:24:40]MH_I2C_Read... [00:24:40]Read from MH i2c: E2 17 00 [00:24:40]MH_I2C_Read... [00:24:40]Read from MH i2c: E2 17 00 0D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E0 [00:24:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:24:40]wFMCommunicate OK [00:24:40]CreateOFDProtocolMessage done [00:24:40]OFDSenderStorePacket 92697 [00:24:40]StoreOFDPacket docnum=92697 [00:24:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 17 01 00 00 21 2E 0F 01 D5 D9 5A 02 01 00 02 00 03 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 18 00 D0 A1 D0 B2 D0 B1 D1 8B D1 80 D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 9C 2E 20 F1 03 56 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 BE D0 BA 20 D0 96 D0 B0 D1 80 2C 20 D1 83 D0 BB 2E 20 D0 A8 D0 B0 D0 B1 D0 B4 D0 B0 D0 BD 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 80 D0 B0 20 32 2F 31 2C 20 34 32 2E 38 30 32 34 30 34 2C 20 37 34 2E 36 34 38 34 39 38 A3 04 28 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 C6 7A E7 66 0E 04 04 00 FC 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 19 6A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 35 04 06 00 AD D1 6E 54 93 BB B5 97 62 0F 94 27 C3 08 [00:24:40]CheckFolder [00:24:40]dirname=/storage/ofd_packets [00:24:40]CheckFolder done [00:24:40]ProducePacketName [00:24:40]name=ofd_packets/00092697 [00:24:40]NVStorageSaveData ofd_packets/00092697 [00:24:40]File name is /storage/ofd_packets/00092697 [00:24:40]Write 309 bytes [00:24:40]NVStorageSaveData done [00:24:40]OFDSenderStorePacket done [00:24:40]KKMCreateOFDPacket done [00:24:40]NVStorageSaveData kkm_last_timestamp [00:24:40]File name is /storage/kkm_last_timestamp [00:24:40]Write 4 bytes [00:24:40]NVStorageSaveData done [00:24:40]ExternCall_PrintAddStr [00:24:40]wPrintStart [00:24:40]Write to MH i2c: 01 00 00 0E 02 10 [00:24:40]OFD Sender: Processing packet 92697 [packets to send 63, broken 62] [00:24:40]ProducePacketName [00:24:40]name=ofd_packets/00092697 [00:24:40]OFD Sender: To server: pG, [00:24:40]CommunicateWithHost lk.salyk.kg:30040 [00:24:40]ConnectInit lk.salyk.kg [00:24:40]Write i2c OK [00:24:40]MH_I2C_Read... [00:24:40]Read from MH i2c: 01 [00:24:40]MH_I2C_Read... [00:24:40]Read from MH i2c: 01 07 00 [00:24:40]MH_I2C_Read... [00:24:40]Read from MH i2c: 01 07 00 0E 02 00 00 00 00 00 FF 0F 25 [00:24:40]RasterBufferAndPrint [00:24:40]line Отчет об открытии смены [00:24:40]line ФФД: 1.0 [00:24:40]line ИНН: 02508201610067 [00:24:40]line Кассир: Свбырбек у М. [00:24:40]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [00:24:40]line Место: АЗС № 5 "Партнер Нефть" [00:24:40]line 16.09.2024 00:24 [00:24:40]line Смена: 508 [00:24:40]line РНМ: 0000000000091423 [00:24:40]line ЗНМ: 03000000022 [00:24:40]line ФД: 92697 [00:24:40]line ФМ: 0000000000874692 [00:24:40]line ФПД: 191115010806715 [00:24:40]written 0, free lines is 4095 [00:24:40]Connected sock=8 [00:24:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 17 01 00 00 21 2E 0F 01 D5 D9 5A 02 01 00 02 00 03 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 18 00 D0 A1 D0 B2 D0 B1 D1 8B D1 80 D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 9C 2E 20 F1 03 56 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 BE D0 BA 20 D0 96 D0 B0 D1 80 2C 20 D1 83 D0 BB 2E 20 D0 A8 D0 B0 D0 B1 D0 B4 D0 B0 D0 BD 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 80 D0 B0 20 32 2F 31 2C 20 34 32 2E 38 30 32 34 30 34 2C 20 37 34 2E 36 34 38 34 39 38 A3 04 28 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 C6 7A E7 66 0E 04 04 00 FC 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 19 6A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 35 04 06 00 AD D1 6E 54 93 BB B5 97 62 0F 94 27 C3 08 [00:24:40]Write to MH i2c: 01 00 00 20 02 22 [00:24:40]Write i2c OK [00:24:40]MH_I2C_Read... [00:24:40]Read from MH i2c: 01 [00:24:40]MH_I2C_Read... [00:24:40]Read from MH i2c: 01 07 00 [00:24:40]MH_I2C_Read... [00:24:40]Read from MH i2c: 01 07 00 20 02 00 00 00 00 00 62 0E 99 [00:24:40]RasterBufferAndPrint [00:24:40]line [00:24:40]line [00:24:40]line [00:24:40]line [00:24:40]line [00:24:40]written 0, free lines is 3697 [00:24:40]MH_Cut [00:24:40]Write to MH i2c: D1 01 00 27 02 01 FB [00:24:40]Write i2c OK [00:24:40]MH_I2C_Read... [00:24:40]Read from MH i2c: D1 [00:24:40]MH_I2C_Read... [00:24:40]Read from MH i2c: D1 01 00 [00:24:40]MH_I2C_Read... [00:24:40]Read from MH i2c: D1 01 00 27 02 00 FA [00:24:40]Write to MH i2c: 01 00 00 28 02 2A [00:24:40]Write i2c OK [00:24:40]MH_I2C_Read... [00:24:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 0C 9C 47 00 77 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 19 6A 01 00 F4 03 04 00 3C 23 E7 66 B6 04 01 00 00 3D B4 D4 08 C8 E0 15 A2 [00:24:40]CommunicateWithHost err = 0 [00:24:40]CheckOFDResponse [00:24:40]1017 (14) - 77093643461234 [00:24:40]1041 (16) - 0000000000874692 [00:24:40]1040 (4) - 92697 [00:24:40]1012 (4) - 15.09.2024 18:11 [00:24:40]1206 (1) - 0 [00:24:40]OFD Sender: Remove packet 92697 [00:24:40]ProducePacketName [00:24:40]name=ofd_packets/00092697 [00:24:40]NVStorageDeleteData [00:24:40]*** Cut start [00:24:40]*** Purtial cut [00:24:40]*** Stage 1: CUTSNS_PIN = 1 [00:24:41]OFD Sender: No OFD packet to send [00:24:43]Read from MH i2c: 01 [00:24:43]MH_I2C_Read... [00:24:43]*** Stop cut motor [00:24:43]*** Cut end [00:24:43]Read from MH i2c: 01 07 00 [00:24:43]MH_I2C_Read... [00:24:43]Read from MH i2c: 01 07 00 28 02 00 00 00 00 00 FF 0F 3F [00:24:43]process_action open_shift done [00:24:43]requested_data is exist [00:24:43]produce_requested_data [00:24:43]requested_item fd.num is exist - process it [00:24:43]SAM_PROTO_GetFieldsCounters [00:24:43]wFMCommunicate request_size=4 [00:24:43]MH_SAM_APDU [00:24:43]CAPDU: 80 13 00 00 [00:24:43]Write to MH i2c: E2 08 00 29 02 80 13 00 00 00 00 00 00 A7 [00:24:43]Write i2c OK [00:24:43]MH_I2C_Read... [00:24:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:24:43]Read from MH i2c: E2 [00:24:43]MH_I2C_Read... [00:24:43]Read from MH i2c: E2 62 00 [00:24:43]MH_I2C_Read... [00:24:43]Read from MH i2c: E2 62 00 29 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 19 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [00:24:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 19 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:24:43]wFMCommunicate OK [00:24:43]SAM_PROTO_GetFieldsCounters done [00:24:43]requested_item shift.num is exist - process it [00:24:43]requested_item shift.opened is exist - process it [00:24:43]req_shift_opened [00:24:43]FM_GetShiftState [00:24:43]SAM_PROTO_GetShiftState [00:24:43]wFMCommunicate request_size=4 [00:24:43]MH_SAM_APDU [00:24:43]CAPDU: 80 13 01 00 [00:24:43]Write to MH i2c: E2 08 00 2A 02 80 13 01 00 00 00 00 00 A9 [00:24:43]Write i2c OK [00:24:43]MH_I2C_Read... [00:24:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:43]Read from MH i2c: E2 [00:24:43]MH_I2C_Read... [00:24:43]Read from MH i2c: E2 0E 00 [00:24:43]MH_I2C_Read... [00:24:43]Read from MH i2c: E2 0E 00 2A 02 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 42 [00:24:43]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [00:24:43]wFMCommunicate OK [00:24:43]SAM_PROTO_GetShiftState done [00:24:43]FM_GetShiftState done [00:24:43]req_shift_opened done [00:24:43]requested_item shift.open_date is exist - process it [00:24:43]req_shift_open_date [00:24:43]req_shift_open_date done [00:24:43]produce_requested_data done [00:24:43]produce_requested_data return {"fd.num":92697,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278} [00:24:43]process_action_free open_shift [00:24:43]json_value_free [00:24:43]json_value_free done [00:24:43]process_json_proto returns [00:24:43]Send response to host [00:24:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":92697,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278}}} [00:24:43]free response buf [00:24:43]execute_script done [00:24:43]execute_script returns [00:24:43]free content buf [00:24:43]Sock 7.Close socket [00:24:43]Sock 7.Thread stoped [00:24:43]accept exits with 6 [00:24:43]New connection [00:24:43]New thread 3066608996 created [00:24:43]Thread 3066752356 joined [00:24:43]Waiting for new connection... [00:24:43] Sock 6.Parse request [00:24:43]Sock 6.Check first char [00:24:43]Sock 6.First char is OK [00:24:43]request: POST /json_proto HTTP/1.0 [00:24:43]Method: POST [00:24:43]URL: /json_proto [00:24:43]Method is POST - this is cgi request [00:24:43]url: /json_proto [00:24:43]query_string will be loaded in cgi processing [00:24:43]execute_cgi json_proto POST (null) [00:24:43]execute_cgi path=json_proto method=POST [00:24:43]POST find Content-Length [00:24:43]Host: 172.17.57.71:8080 [00:24:43]Content-Length: 331 [00:24:43]Content-Type: application/json [00:24:43] [00:24:43]POST finish read [00:24:43]Found Content-Length = 331 [00:24:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:24:43]execute_script... [00:24:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:24:43]POST & json_proto [00:24:43]process_json_proto [00:24:43]json parsed OK: [00:24:43]protocol is kg_v1.0 [00:24:43]action value=get_value [00:24:43]process_action get_value [00:24:43]cmd_get_value [00:24:43]process_action get_value done [00:24:43]requested_data is exist [00:24:43]produce_requested_data [00:24:43]requested_item fm.sale.total is exist - process it [00:24:43]SAM_PROTO_GetFMData [00:24:43]wFMCommunicate request_size=4 [00:24:43]MH_SAM_APDU [00:24:43]CAPDU: 80 13 03 00 [00:24:43]Write to MH i2c: E2 08 00 2B 02 80 13 03 00 00 00 00 00 AC [00:24:43]Write i2c OK [00:24:43]MH_I2C_Read... [00:24:43]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:24:43]Read from MH i2c: E2 [00:24:43]MH_I2C_Read... [00:24:43]Read from MH i2c: E2 FD 00 [00:24:43]MH_I2C_Read... [00:24:43]Read from MH i2c: E2 FD 00 2B 02 00 C5 04 85 04 C1 04 6E 04 04 00 21 66 01 00 69 04 A1 00 6F 04 04 00 CD 62 01 00 B1 04 04 00 80 B7 27 B3 70 04 04 00 B0 CE 84 83 72 04 04 00 D0 E8 A2 2F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5A D0 06 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 21 C0 95 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 54 03 00 00 B1 04 04 00 EC 99 7A 04 70 04 04 00 98 B8 41 04 72 04 03 00 54 E1 38 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C8 79 EF 03 09 90 00 0D [00:24:43]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 21 66 01 00 69 04 A1 00 6F 04 04 00 CD 62 01 00 B1 04 04 00 80 B7 27 B3 70 04 04 00 B0 CE 84 83 72 04 04 00 D0 E8 A2 2F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5A D0 06 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 21 C0 95 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 54 03 00 00 B1 04 04 00 EC 99 7A 04 70 04 04 00 98 B8 41 04 72 04 03 00 54 E1 38 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C8 79 EF 03 09 90 00 [00:24:43]wFMCommunicate OK [00:24:43]wFMCommunicate request_size=4 [00:24:43]MH_SAM_APDU [00:24:43]CAPDU: 80 17 00 00 [00:24:43]Write to MH i2c: E2 08 00 2C 02 80 17 00 00 00 00 00 00 AE [00:24:43]Write i2c OK [00:24:43]MH_I2C_Read... [00:24:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:44]Read from MH i2c: E2 [00:24:44]MH_I2C_Read... [00:24:44]Read from MH i2c: E2 FD 00 [00:24:44]MH_I2C_Read... [00:24:44]Read from MH i2c: E2 FD 00 2C 02 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AA 25 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 3D [00:24:44]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AA 25 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:24:44]wFMCommunicate OK [00:24:44]wFMCommunicate request_size=4 [00:24:44]MH_SAM_APDU [00:24:44]CAPDU: 80 17 00 00 [00:24:44]Write to MH i2c: E2 08 00 2D 02 80 17 00 00 00 00 00 00 AF [00:24:44]Write i2c OK [00:24:44]MH_I2C_Read... [00:24:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:44]Read from MH i2c: E2 [00:24:44]MH_I2C_Read... [00:24:44]Read from MH i2c: E2 FD 00 [00:24:44]MH_I2C_Read... [00:24:44]Read from MH i2c: E2 FD 00 2D 02 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 C1 [00:24:44]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:24:44]wFMCommunicate OK [00:24:44]wFMCommunicate request_size=4 [00:24:44]MH_SAM_APDU [00:24:44]CAPDU: 80 17 00 00 [00:24:44]Write to MH i2c: E2 08 00 2E 02 80 17 00 00 00 00 00 00 B0 [00:24:44]Write i2c OK [00:24:44]MH_I2C_Read... [00:24:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:44]Read from MH i2c: E2 [00:24:44]MH_I2C_Read... [00:24:44]Read from MH i2c: E2 FD 00 [00:24:44]MH_I2C_Read... [00:24:44]Read from MH i2c: E2 FD 00 2E 02 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 3C [00:24:44]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:24:45]wFMCommunicate OK [00:24:45]wFMCommunicate request_size=4 [00:24:45]MH_SAM_APDU [00:24:45]CAPDU: 80 17 00 00 [00:24:45]Write to MH i2c: E2 08 00 2F 02 80 17 00 00 00 00 00 00 B1 [00:24:45]Write i2c OK [00:24:45]MH_I2C_Read... [00:24:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:24:45]Read from MH i2c: E2 [00:24:45]MH_I2C_Read... [00:24:45]Read from MH i2c: E2 E2 00 [00:24:45]MH_I2C_Read... [00:24:45]Read from MH i2c: E2 E2 00 2F 02 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8F [00:24:45]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:24:45]wFMCommunicate OK [00:24:45]SAM_PROTO_GetFMData done [00:24:45]requested_item fm.sale_refund.total is exist - process it [00:24:45]requested_item fm.buy.total is exist - process it [00:24:45]requested_item shift.sale.total is exist - process it [00:24:45]SAM_PROTO_GetShiftData [00:24:45]wFMCommunicate request_size=4 [00:24:45]MH_SAM_APDU [00:24:45]CAPDU: 80 13 02 00 [00:24:45]Write to MH i2c: E2 08 00 30 02 80 13 02 00 00 00 00 00 B0 [00:24:45]Write i2c OK [00:24:45]MH_I2C_Read... [00:24:45]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:24:45]Read from MH i2c: E2 [00:24:45]MH_I2C_Read... [00:24:45]Read from MH i2c: E2 FD 00 [00:24:45]MH_I2C_Read... [00:24:45]Read from MH i2c: E2 FD 00 30 02 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 23 [00:24:45]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:24:46]wFMCommunicate OK [00:24:46]wFMCommunicate request_size=4 [00:24:46]MH_SAM_APDU [00:24:46]CAPDU: 80 17 00 00 [00:24:46]Write to MH i2c: E2 08 00 31 02 80 17 00 00 00 00 00 00 B3 [00:24:46]Write i2c OK [00:24:46]MH_I2C_Read... [00:24:46]OFD Sender: No OFD packet to send [00:24:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:46]Read from MH i2c: E2 [00:24:46]MH_I2C_Read... [00:24:46]Read from MH i2c: E2 FD 00 [00:24:46]MH_I2C_Read... [00:24:46]Read from MH i2c: E2 FD 00 31 02 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 BB [00:24:46]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:24:46]wFMCommunicate OK [00:24:46]wFMCommunicate request_size=4 [00:24:46]MH_SAM_APDU [00:24:46]CAPDU: 80 17 00 00 [00:24:46]Write to MH i2c: E2 08 00 32 02 80 17 00 00 00 00 00 00 B4 [00:24:46]Write i2c OK [00:24:46]MH_I2C_Read... [00:24:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:46]Read from MH i2c: E2 [00:24:46]MH_I2C_Read... [00:24:46]Read from MH i2c: E2 FD 00 [00:24:46]MH_I2C_Read... [00:24:46]Read from MH i2c: E2 FD 00 32 02 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 86 [00:24:46]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:24:46]wFMCommunicate OK [00:24:46]wFMCommunicate request_size=4 [00:24:46]MH_SAM_APDU [00:24:46]CAPDU: 80 17 00 00 [00:24:46]Write to MH i2c: E2 08 00 33 02 80 17 00 00 00 00 00 00 B5 [00:24:46]Write i2c OK [00:24:46]MH_I2C_Read... [00:24:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:47]Read from MH i2c: E2 [00:24:47]MH_I2C_Read... [00:24:47]Read from MH i2c: E2 FD 00 [00:24:47]MH_I2C_Read... [00:24:47]Read from MH i2c: E2 FD 00 33 02 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 27 [00:24:47]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:24:47]wFMCommunicate OK [00:24:47]wFMCommunicate request_size=4 [00:24:47]MH_SAM_APDU [00:24:47]CAPDU: 80 17 00 00 [00:24:47]Write to MH i2c: E2 08 00 34 02 80 17 00 00 00 00 00 00 B6 [00:24:47]Write i2c OK [00:24:47]MH_I2C_Read... [00:24:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:24:47]Read from MH i2c: E2 [00:24:47]MH_I2C_Read... [00:24:47]Read from MH i2c: E2 BD 00 [00:24:47]MH_I2C_Read... [00:24:47]Read from MH i2c: E2 BD 00 34 02 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 9C [00:24:47]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:24:47]wFMCommunicate OK [00:24:47]SAM_PROTO_GetShiftData done [00:24:47]requested_item shift.sale.total_cash is exist - process it [00:24:47]requested_item shift.sale_refund.total is exist - process it [00:24:47]requested_item shift.sale_refund.total_cash is exist - process it [00:24:47]requested_item shift.buy.total is exist - process it [00:24:47]requested_item shift.buy.total_cash is exist - process it [00:24:47]produce_requested_data done [00:24:47]produce_requested_data return {"fm.sale.total":30057245.44,"fm.sale_refund.total":751436.60,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:24:47]process_action_free get_value [00:24:47]json_value_free [00:24:47]json_value_free done [00:24:47]process_json_proto returns [00:24:47]Send response to host [00:24:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":30057245.44,"fm.sale_refund.total":751436.60,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:24:47]free response buf [00:24:47]execute_script done [00:24:47]execute_script returns [00:24:47]free content buf [00:24:47]Sock 6.Close socket [00:24:47]Sock 6.Thread stoped [00:24:51]OFD Sender: No OFD packet to send [00:24:56]OFD Sender: No OFD packet to send [00:25:01]OFD Sender: No OFD packet to send [00:25:06]OFD Sender: No OFD packet to send [00:25:11]OFD Sender: No OFD packet to send [00:25:16]OFD Sender: No OFD packet to send [00:25:21]OFD Sender: No OFD packet to send [00:25:26]OFD Sender: No OFD packet to send [00:25:31]OFD Sender: No OFD packet to send [00:25:36]OFD Sender: No OFD packet to send [00:25:41]OFD Sender: No OFD packet to send [00:25:46]OFD Sender: No OFD packet to send [00:25:51]OFD Sender: No OFD packet to send [00:25:56]OFD Sender: No OFD packet to send [00:26:01]OFD Sender: No OFD packet to send [00:26:06]OFD Sender: No OFD packet to send [00:26:11]OFD Sender: No OFD packet to send [00:26:16]OFD Sender: No OFD packet to send [00:26:21]OFD Sender: No OFD packet to send [00:26:26]OFD Sender: No OFD packet to send [00:26:31]OFD Sender: No OFD packet to send [00:26:36]OFD Sender: No OFD packet to send [00:26:41]OFD Sender: No OFD packet to send [00:26:46]OFD Sender: No OFD packet to send [00:26:51]OFD Sender: No OFD packet to send [00:26:56]OFD Sender: No OFD packet to send [00:27:01]OFD Sender: No OFD packet to send [00:27:06]OFD Sender: No OFD packet to send [00:27:11]OFD Sender: No OFD packet to send [00:27:14]accept exits with 7 [00:27:14]New connection [00:27:14]New thread 3066752356 created [00:27:14]Thread 3066608996 joined [00:27:14]Waiting for new connection... [00:27:14] Sock 7.Parse request [00:27:14]Sock 7.Check first char [00:27:14]Sock 7.First char is OK [00:27:14]request: POST /json_proto HTTP/1.0 [00:27:14]Method: POST [00:27:14]URL: /json_proto [00:27:14]Method is POST - this is cgi request [00:27:14]url: /json_proto [00:27:14]query_string will be loaded in cgi processing [00:27:14]execute_cgi json_proto POST (null) [00:27:14]execute_cgi path=json_proto method=POST [00:27:14]POST find Content-Length [00:27:14]Host: 172.17.57.71:8080 [00:27:14]Content-Length: 786 [00:27:14]Content-Type: application/json [00:27:14] [00:27:14]POST finish read [00:27:14]Found Content-Length = 786 [00:27:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127583", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:14]execute_script... [00:27:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127583", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:14]POST & json_proto [00:27:14]process_json_proto [00:27:14]json parsed OK: [00:27:14]protocol is kg_v1.0 [00:27:14]action value=close_receipt [00:27:14]process_action close_receipt [00:27:14]cmd_close_receipt [00:27:14]MH_GetDate [00:27:14]Write to MH i2c: F0 00 00 35 02 26 [00:27:14]Write i2c OK [00:27:14]MH_I2C_Read... [00:27:14]Read from MH i2c: F0 [00:27:14]MH_I2C_Read... [00:27:14]Read from MH i2c: F0 09 00 [00:27:14]MH_I2C_Read... [00:27:14]Read from MH i2c: F0 09 00 35 02 00 62 7B E7 66 33 3A A4 66 D0 [00:27:14]GetLastDocTimeStamp 1726446278 [00:27:14]current date 1726446434 [00:27:14]FM_GetShiftState [00:27:14]SAM_PROTO_GetShiftState [00:27:14]wFMCommunicate request_size=4 [00:27:14]MH_SAM_APDU [00:27:14]CAPDU: 80 13 01 00 [00:27:14]Write to MH i2c: E2 08 00 36 02 80 13 01 00 00 00 00 00 B5 [00:27:14]Write i2c OK [00:27:14]MH_I2C_Read... [00:27:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:14]Read from MH i2c: E2 [00:27:14]MH_I2C_Read... [00:27:14]Read from MH i2c: E2 0E 00 [00:27:14]MH_I2C_Read... [00:27:14]Read from MH i2c: E2 0E 00 36 02 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 4E [00:27:14]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [00:27:14]wFMCommunicate OK [00:27:14]SAM_PROTO_GetShiftState done [00:27:14]FM_GetShiftState done [00:27:14]opened in 1726446278 [00:27:14]opened+sec_in_day 1726532678 [00:27:14]quantity*price = 13900 [00:27:14]sum+1 = 13901 [00:27:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 0.00 Безнал.: 139.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 1 16.09.2024 00:27 Смена: 508 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92698 ФПД: 240680774786874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T002714&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92698&fm=240680774786874&tin=02508201610067®Number=0000000000091423&sum=13900 0 [00:27:15]StoreToDocumentArchive [00:27:15]shift 508 fd 92698 [00:27:15]save to /storage/0508/doc_00092698 [00:27:15]save last doc name /storage/0508/doc_00092698 to /storage/kkm_last_doc_name [00:27:15]save OK [00:27:15]Clear old archive folders... [00:27:15]ProcessDocumentItem done err = 0, tmpTLVsize=272 [00:27:15]tlvbuf is 0176F110 [00:27:15]SAM_PROTO_ClearQueue [00:27:15]wFMCommunicate request_size=4 [00:27:15]MH_SAM_APDU [00:27:15]CAPDU: 80 09 00 00 [00:27:15]Write to MH i2c: E2 08 00 43 02 80 09 00 00 00 00 00 00 B7 [00:27:15]Write i2c OK [00:27:15]MH_I2C_Read... [00:27:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:27:15]Read from MH i2c: E2 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 03 00 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 03 00 43 02 00 90 00 B9 [00:27:15]RAPDU: 90 00 [00:27:15]wFMCommunicate OK [00:27:15]SAM_PROTO_ClearQueue done [00:27:15]KKMCreateOFDPacket [00:27:15]OFDProtocolAddRootSTLVToBuf [00:27:15]FM_MakeSignedData [00:27:15]FM_MakeSignedData [00:27:15]SAM_PROTO_SignData [00:27:15]wFMCommunicate request_size=4 [00:27:15]MH_SAM_APDU [00:27:15]CAPDU: 80 0D 01 02 [00:27:15]Write to MH i2c: E2 08 00 44 02 80 0D 01 02 00 00 00 00 BF [00:27:15]Write i2c OK [00:27:15]MH_I2C_Read... [00:27:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:27:15]Read from MH i2c: E2 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 03 00 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 03 00 44 02 00 90 00 BA [00:27:15]RAPDU: 90 00 [00:27:15]wFMCommunicate OK [00:27:15]wFMCommunicate request_size=255 [00:27:15]MH_SAM_APDU [00:27:15]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 62 7B E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 [00:27:15]Write to MH i2c: E2 02 01 45 02 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 62 7B E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 00 00 12 [00:27:15]Write i2c OK [00:27:15]MH_I2C_Read... [00:27:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:16]Read from MH i2c: E2 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: E2 03 00 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: E2 03 00 45 02 00 90 00 BB [00:27:16]RAPDU: 90 00 [00:27:16]wFMCommunicate OK [00:27:16]wFMCommunicate request_size=31 [00:27:16]MH_SAM_APDU [00:27:16]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 39 32 10 04 04 00 1A 6A 01 00 35 04 06 00 DA E5 DC 15 DF 3A [00:27:16]Write to MH i2c: E2 22 00 46 02 80 0D 02 02 1A 00 30 30 38 37 34 36 39 32 10 04 04 00 1A 6A 01 00 35 04 06 00 DA E5 DC 15 DF 3A 00 00 3F [00:27:16]Write i2c OK [00:27:16]MH_I2C_Read... [00:27:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:16]Read from MH i2c: E2 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: E2 03 00 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: E2 03 00 46 02 00 90 00 BC [00:27:16]RAPDU: 90 00 [00:27:16]wFMCommunicate OK [00:27:16]wFMCommunicate request_size=4 [00:27:16]MH_SAM_APDU [00:27:16]CAPDU: 80 0D 03 02 [00:27:16]Write to MH i2c: E2 08 00 47 02 80 0D 03 02 00 00 00 00 C4 [00:27:16]Write i2c OK [00:27:16]MH_I2C_Read... [00:27:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:27:16]Read from MH i2c: E2 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: E2 0B 00 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: E2 0B 00 47 02 00 93 63 0E 50 94 39 EA 73 90 00 43 [00:27:16]RAPDU: 93 63 0E 50 94 39 EA 73 90 00 [00:27:16]wFMCommunicate OK [00:27:16]SAM_PROTO_SignData done [00:27:16]FM_MakeSignedData done [00:27:16]CreateOFDProtocolMessage [00:27:16]wFMCommunicate request_size=4 [00:27:16]MH_SAM_APDU [00:27:16]CAPDU: 80 11 00 00 [00:27:16]Write to MH i2c: E2 08 00 48 02 80 11 00 00 00 00 00 00 C4 [00:27:16]Write i2c OK [00:27:16]MH_I2C_Read... [00:27:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:16]Read from MH i2c: E2 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: E2 17 00 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: E2 17 00 48 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 1B [00:27:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:27:16]wFMCommunicate OK [00:27:16]CreateOFDProtocolMessage done [00:27:16]OFDSenderStorePacket 92698 [00:27:16]StoreOFDPacket docnum=92698 [00:27:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 24 01 00 00 D0 13 1C 01 7C 16 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 62 7B E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1A 6A 01 00 35 04 06 00 DA E5 DC 15 DF 3A 93 63 0E 50 94 39 EA 73 [00:27:16]CheckFolder [00:27:16]dirname=/storage/ofd_packets [00:27:16]CheckFolder done [00:27:16]ProducePacketName [00:27:16]name=ofd_packets/00092698 [00:27:16]NVStorageSaveData ofd_packets/00092698 [00:27:16]File name is /storage/ofd_packets/00092698 [00:27:16]Write 322 bytes [00:27:16]NVStorageSaveData done [00:27:16]OFDSenderStorePacket done [00:27:16]KKMCreateOFDPacket done [00:27:16]NVStorageSaveData kkm_last_timestamp [00:27:16]File name is /storage/kkm_last_timestamp [00:27:16]Write 4 bytes [00:27:16]NVStorageSaveData done [00:27:16]ExternCall_PrintAddStr [00:27:16]wPrintStart [00:27:16]Write to MH i2c: 01 00 00 49 02 4B [00:27:16]Write i2c OK [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: 01 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: 01 07 00 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: 01 07 00 49 02 00 00 00 00 00 FF 0F 60 [00:27:16]RasterBufferAndPrint [00:27:16]line Счет N : (3)127583 [00:27:16]line ИНН: 02508201610067 [00:27:16]line Контрольно-Кассовый Чек [00:27:16]line ПРОДАЖА [00:27:16]line Товар: 48745000 [00:27:16]line Сигареты Winston Purple Mix [00:27:16]line 1.000 * 139.00 [00:27:16]line = 139.00 [00:27:16]line НДС 12% НСП 1% [00:27:16]line > о реализуемом товаре [00:27:16]line ИТОГО: 139.00 [00:27:16]line НСП 1% : 1.23 [00:27:16]line НДС 12% : 14.76 [00:27:16]line Наличными: 0.00 [00:27:16]line Безнал.: 139.00 [00:27:16]line Место: АЗС № 5 "Партнер Нефть" [00:27:16]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [00:27:16]line СНО: Общий режим [00:27:16]line Чек 1 16.09.2024 00:27 [00:27:16]line Смена: 508 ФФД: 1.0 [00:27:16]line ЗНМ: 03000000022 [00:27:16]line РНМ: 0000000000091423 [00:27:16]line Версия ККМ: 001 [00:27:16]line Платежная система: О! деньги [00:27:16]line ФМ: 0000000000874692 [00:27:16]line ФД: 92698 [00:27:16]line ФПД: 240680774786874 [00:27:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T002714&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92698&fm=240680774786874&tin=02508201610067®Number=0000000000091423&sum=13900 [00:27:16]line 0 [00:27:16]OFD Sender: Processing packet 92698 [packets to send 63, broken 62] [00:27:16]ProducePacketName [00:27:16]name=ofd_packets/00092698 [00:27:16]OFD Sender: To server: pG, [00:27:16]CommunicateWithHost lk.salyk.kg:30040 [00:27:16]ConnectInit lk.salyk.kg [00:27:16]written 0, free lines is 4095 [00:27:16]Connected sock=9 [00:27:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 24 01 00 00 D0 13 1C 01 7C 16 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 62 7B E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1A 6A 01 00 35 04 06 00 DA E5 DC 15 DF 3A 93 63 0E 50 94 39 EA 73 [00:27:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 A6 78 47 00 BA F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1A 6A 01 00 F4 03 04 00 D9 23 E7 66 B6 04 01 00 00 34 15 21 B2 79 D5 5F AA [00:27:16]CommunicateWithHost err = 0 [00:27:16]CheckOFDResponse [00:27:16]1017 (14) - 77093643461234 [00:27:16]1041 (16) - 0000000000874692 [00:27:16]1040 (4) - 92698 [00:27:16]1012 (4) - 15.09.2024 18:13 [00:27:16]1206 (1) - 0 [00:27:16]OFD Sender: Remove packet 92698 [00:27:16]ProducePacketName [00:27:16]name=ofd_packets/00092698 [00:27:16]NVStorageDeleteData [00:27:17]Write to MH i2c: 01 00 00 73 02 75 [00:27:17]Write i2c OK [00:27:17]MH_I2C_Read... [00:27:17]Read from MH i2c: 01 [00:27:17]MH_I2C_Read... [00:27:17]Read from MH i2c: 01 07 00 [00:27:17]MH_I2C_Read... [00:27:17]Read from MH i2c: 01 07 00 73 02 00 00 00 00 00 FA 0C 82 [00:27:17]RasterBufferAndPrint [00:27:17]line [00:27:17]line [00:27:17]line [00:27:17]line [00:27:17]line [00:27:17]written 0, free lines is 3328 [00:27:17]MH_Cut [00:27:17]Write to MH i2c: D1 01 00 7A 02 01 4E [00:27:17]Write i2c OK [00:27:17]MH_I2C_Read... [00:27:17]Read from MH i2c: D1 [00:27:17]MH_I2C_Read... [00:27:17]Read from MH i2c: D1 01 00 [00:27:17]MH_I2C_Read... [00:27:17]Read from MH i2c: D1 01 00 7A 02 00 4D [00:27:17]Write to MH i2c: 01 00 00 7B 02 7D [00:27:17]Write i2c OK [00:27:17]MH_I2C_Read... [00:27:17]OFD Sender: No OFD packet to send [00:27:17]*** Cut start [00:27:17]*** Purtial cut [00:27:17]*** Stage 1: CUTSNS_PIN = 1 [00:27:19]Read from MH i2c: 01 [00:27:19]MH_I2C_Read... [00:27:19]*** Stop cut motor [00:27:19]*** Cut end [00:27:19]Read from MH i2c: 01 07 00 [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: 01 07 00 7B 02 00 00 00 00 00 FF 0F 92 [00:27:19]process_action close_receipt done [00:27:19]requested_data is exist [00:27:19]produce_requested_data [00:27:19]requested_item fm.sn is exist - process it [00:27:19]wFMCommunicate request_size=4 [00:27:19]MH_SAM_APDU [00:27:19]CAPDU: 80 11 00 00 [00:27:19]Write to MH i2c: E2 08 00 7C 02 80 11 00 00 00 00 00 00 F8 [00:27:19]Write i2c OK [00:27:19]MH_I2C_Read... [00:27:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:19]Read from MH i2c: E2 [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: E2 17 00 [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: E2 17 00 7C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 4F [00:27:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:27:19]wFMCommunicate OK [00:27:19]requested_item fd.num is exist - process it [00:27:19]SAM_PROTO_GetFieldsCounters [00:27:19]wFMCommunicate request_size=4 [00:27:19]MH_SAM_APDU [00:27:19]CAPDU: 80 13 00 00 [00:27:19]Write to MH i2c: E2 08 00 7D 02 80 13 00 00 00 00 00 00 FB [00:27:19]Write i2c OK [00:27:19]MH_I2C_Read... [00:27:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:27:19]Read from MH i2c: E2 [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: E2 62 00 [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: E2 62 00 7D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 1A 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [00:27:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 1A 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:27:19]wFMCommunicate OK [00:27:19]SAM_PROTO_GetFieldsCounters done [00:27:19]requested_item shift.num is exist - process it [00:27:19]requested_item shift.opened is exist - process it [00:27:19]req_shift_opened [00:27:19]FM_GetShiftState [00:27:19]SAM_PROTO_GetShiftState [00:27:19]wFMCommunicate request_size=4 [00:27:19]MH_SAM_APDU [00:27:19]CAPDU: 80 13 01 00 [00:27:19]Write to MH i2c: E2 08 00 7E 02 80 13 01 00 00 00 00 00 FD [00:27:19]Write i2c OK [00:27:19]MH_I2C_Read... [00:27:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:19]Read from MH i2c: E2 [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: E2 0E 00 [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: E2 0E 00 7E 02 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 96 [00:27:19]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [00:27:19]wFMCommunicate OK [00:27:19]SAM_PROTO_GetShiftState done [00:27:19]FM_GetShiftState done [00:27:19]req_shift_opened done [00:27:19]requested_item shift.open_date is exist - process it [00:27:19]req_shift_open_date [00:27:19]req_shift_open_date done [00:27:19]produce_requested_data done [00:27:19]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92698,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278} [00:27:19]process_action_free close_receipt [00:27:19]json_value_free [00:27:19]json_value_free done [00:27:19]process_json_proto returns [00:27:19]Send response to host [00:27:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92698,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278}}} [00:27:19]free response buf [00:27:19]execute_script done [00:27:19]execute_script returns [00:27:19]free content buf [00:27:19]Sock 7.Close socket [00:27:19]Sock 7.Thread stoped [00:27:22]OFD Sender: No OFD packet to send [00:27:27]OFD Sender: No OFD packet to send [00:27:32]OFD Sender: No OFD packet to send [00:27:37]OFD Sender: No OFD packet to send [00:27:42]OFD Sender: No OFD packet to send [00:27:47]OFD Sender: No OFD packet to send [00:27:52]OFD Sender: No OFD packet to send [00:27:56]accept exits with 6 [00:27:56]New connection [00:27:56]New thread 3066608996 created [00:27:56]Thread 3066752356 joined [00:27:56]Waiting for new connection... [00:27:56] Sock 6.Parse request [00:27:56]Sock 6.Check first char [00:27:56]Sock 6.First char is OK [00:27:56]request: POST /json_proto HTTP/1.0 [00:27:56]Method: POST [00:27:56]URL: /json_proto [00:27:56]Method is POST - this is cgi request [00:27:56]url: /json_proto [00:27:56]query_string will be loaded in cgi processing [00:27:56]execute_cgi json_proto POST (null) [00:27:56]execute_cgi path=json_proto method=POST [00:27:56]POST find Content-Length [00:27:56]Host: 172.17.57.71:8080 [00:27:56]Content-Length: 874 [00:27:56]Content-Type: application/json [00:27:56] [00:27:56]POST finish read [00:27:56]Found Content-Length = 874 [00:27:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127584", "tax_sys" : 0, "items" : [ { "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:56]execute_script... [00:27:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127584", "tax_sys" : 0, "items" : [ { "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:56]POST & json_proto [00:27:56]process_json_proto [00:27:56]json parsed OK: [00:27:56]protocol is kg_v1.0 [00:27:56]action value=close_receipt [00:27:56]process_action close_receipt [00:27:56]cmd_close_receipt [00:27:56]MH_GetDate [00:27:56]Write to MH i2c: F0 00 00 7F 02 70 [00:27:56]Write i2c OK [00:27:56]MH_I2C_Read... [00:27:56]Read from MH i2c: F0 [00:27:56]MH_I2C_Read... [00:27:56]Read from MH i2c: F0 09 00 [00:27:56]MH_I2C_Read... [00:27:56]Read from MH i2c: F0 09 00 7F 02 00 8C 7B E7 66 33 3A A4 66 44 [00:27:56]GetLastDocTimeStamp 1726446434 [00:27:56]current date 1726446476 [00:27:56]FM_GetShiftState [00:27:56]SAM_PROTO_GetShiftState [00:27:56]wFMCommunicate request_size=4 [00:27:56]MH_SAM_APDU [00:27:56]CAPDU: 80 13 01 00 [00:27:56]Write to MH i2c: E2 08 00 80 02 80 13 01 00 00 00 00 00 FF [00:27:56]Write i2c OK [00:27:56]MH_I2C_Read... [00:27:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:56]Read from MH i2c: E2 [00:27:56]MH_I2C_Read... [00:27:56]Read from MH i2c: E2 0E 00 [00:27:56]MH_I2C_Read... [00:27:56]Read from MH i2c: E2 0E 00 80 02 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 98 [00:27:56]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [00:27:56]wFMCommunicate OK [00:27:56]SAM_PROTO_GetShiftState done [00:27:56]FM_GetShiftState done [00:27:56]opened in 1726446278 [00:27:56]opened+sec_in_day 1726532678 [00:27:56]quantity*price = 8500 [00:27:56]sum+1 = 8501 [00:27:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 0.00 Безнал.: 85.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 2 16.09.2024 00:27 Смена: 508 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92699 ФПД: 7226049848970 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T002756&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92699&fm=7226049848970&tin=02508201610067®Number=0000000000091423&sum=8500 0 [00:27:57]StoreToDocumentArchive [00:27:57]shift 508 fd 92699 [00:27:57]save to /storage/0508/doc_00092699 [00:27:57]save last doc name /storage/0508/doc_00092699 to /storage/kkm_last_doc_name [00:27:57]save OK [00:27:57]Clear old archive folders... [00:27:57]ProcessDocumentItem done err = 0, tmpTLVsize=299 [00:27:57]tlvbuf is 01768320 [00:27:57]SAM_PROTO_ClearQueue [00:27:57]wFMCommunicate request_size=4 [00:27:57]MH_SAM_APDU [00:27:57]CAPDU: 80 09 00 00 [00:27:57]Write to MH i2c: E2 08 00 8D 02 80 09 00 00 00 00 00 00 01 [00:27:57]Write i2c OK [00:27:57]MH_I2C_Read... [00:27:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:27:57]Read from MH i2c: E2 [00:27:57]MH_I2C_Read... [00:27:57]Read from MH i2c: E2 03 00 [00:27:57]MH_I2C_Read... [00:27:57]Read from MH i2c: E2 03 00 8D 02 00 90 00 03 [00:27:57]RAPDU: 90 00 [00:27:57]wFMCommunicate OK [00:27:57]SAM_PROTO_ClearQueue done [00:27:57]KKMCreateOFDPacket [00:27:57]OFDProtocolAddRootSTLVToBuf [00:27:57]FM_MakeSignedData [00:27:57]FM_MakeSignedData [00:27:57]SAM_PROTO_SignData [00:27:57]wFMCommunicate request_size=4 [00:27:57]MH_SAM_APDU [00:27:57]CAPDU: 80 0D 01 02 [00:27:57]Write to MH i2c: E2 08 00 8E 02 80 0D 01 02 00 00 00 00 09 [00:27:57]Write i2c OK [00:27:57]MH_I2C_Read... [00:27:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:27:57]Read from MH i2c: E2 [00:27:57]MH_I2C_Read... [00:27:57]Read from MH i2c: E2 03 00 [00:27:57]MH_I2C_Read... [00:27:57]Read from MH i2c: E2 03 00 8E 02 00 90 00 04 [00:27:57]RAPDU: 90 00 [00:27:57]wFMCommunicate OK [00:27:57]wFMCommunicate request_size=255 [00:27:57]MH_SAM_APDU [00:27:57]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 8C 7B E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [00:27:57]Write to MH i2c: E2 02 01 8F 02 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 8C 7B E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 4E [00:27:57]Write i2c OK [00:27:57]MH_I2C_Read... [00:27:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:58]Read from MH i2c: E2 [00:27:58]MH_I2C_Read... [00:27:58]Read from MH i2c: E2 03 00 [00:27:58]MH_I2C_Read... [00:27:58]Read from MH i2c: E2 03 00 8F 02 00 90 00 05 [00:27:58]RAPDU: 90 00 [00:27:58]wFMCommunicate OK [00:27:58]wFMCommunicate request_size=58 [00:27:58]MH_SAM_APDU [00:27:58]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1B 6A 01 00 35 04 06 00 06 92 72 22 66 8A [00:27:58]Write to MH i2c: E2 3D 00 90 02 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1B 6A 01 00 35 04 06 00 06 92 72 22 66 8A 00 00 9B [00:27:58]Write i2c OK [00:27:58]MH_I2C_Read... [00:27:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:58]Read from MH i2c: E2 [00:27:58]MH_I2C_Read... [00:27:58]Read from MH i2c: E2 03 00 [00:27:58]MH_I2C_Read... [00:27:58]Read from MH i2c: E2 03 00 90 02 00 90 00 06 [00:27:58]RAPDU: 90 00 [00:27:58]wFMCommunicate OK [00:27:58]wFMCommunicate request_size=4 [00:27:58]MH_SAM_APDU [00:27:58]CAPDU: 80 0D 03 02 [00:27:58]Write to MH i2c: E2 08 00 91 02 80 0D 03 02 00 00 00 00 0E [00:27:58]Write i2c OK [00:27:58]MH_I2C_Read... [00:27:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:27:58]Read from MH i2c: E2 [00:27:58]MH_I2C_Read... [00:27:58]Read from MH i2c: E2 0B 00 [00:27:58]MH_I2C_Read... [00:27:58]Read from MH i2c: E2 0B 00 91 02 00 28 4B BE D2 99 0E D0 45 90 00 CE [00:27:58]RAPDU: 28 4B BE D2 99 0E D0 45 90 00 [00:27:58]wFMCommunicate OK [00:27:58]SAM_PROTO_SignData done [00:27:58]FM_MakeSignedData done [00:27:58]CreateOFDProtocolMessage [00:27:58]wFMCommunicate request_size=4 [00:27:58]MH_SAM_APDU [00:27:58]CAPDU: 80 11 00 00 [00:27:58]Write to MH i2c: E2 08 00 92 02 80 11 00 00 00 00 00 00 0E [00:27:58]Write i2c OK [00:27:58]MH_I2C_Read... [00:27:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:58]Read from MH i2c: E2 [00:27:58]MH_I2C_Read... [00:27:58]Read from MH i2c: E2 17 00 [00:27:58]MH_I2C_Read... [00:27:58]Read from MH i2c: E2 17 00 92 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 65 [00:27:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:27:58]wFMCommunicate OK [00:27:58]CreateOFDProtocolMessage done [00:27:58]OFDSenderStorePacket 92699 [00:27:58]StoreOFDPacket docnum=92699 [00:27:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3F 01 00 00 77 7B 37 01 D5 FF 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 8C 7B E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1B 6A 01 00 35 04 06 00 06 92 72 22 66 8A 28 4B BE D2 99 0E D0 45 [00:27:58]CheckFolder [00:27:58]dirname=/storage/ofd_packets [00:27:58]CheckFolder done [00:27:58]ProducePacketName [00:27:58]name=ofd_packets/00092699 [00:27:58]NVStorageSaveData ofd_packets/00092699 [00:27:58]File name is /storage/ofd_packets/00092699 [00:27:58]Write 349 bytes [00:27:58]NVStorageSaveData done [00:27:58]OFDSenderStorePacket done [00:27:58]KKMCreateOFDPacket done [00:27:58]NVStorageSaveData kkm_last_timestamp [00:27:58]File name is /storage/kkm_last_timestamp [00:27:58]Write 4 bytes [00:27:58]NVStorageSaveData done [00:27:58]ExternCall_PrintAddStr [00:27:58]wPrintStart [00:27:58]Write to MH i2c: 01 00 00 93 02 95 [00:27:58]Write i2c OK [00:27:58]MH_I2C_Read... [00:27:58]Read from MH i2c: 01 [00:27:58]MH_I2C_Read... [00:27:58]Read from MH i2c: 01 07 00 [00:27:58]MH_I2C_Read... [00:27:58]Read from MH i2c: 01 07 00 93 02 00 00 00 00 00 FF 0F AA [00:27:58]RasterBufferAndPrint [00:27:58]line Счет N : (3)127584 [00:27:58]line ИНН: 02508201610067 [00:27:58]line Контрольно-Кассовый Чек [00:27:58]line ПРОДАЖА [00:27:58]line Товар: 4660085515163 [00:27:58]line Шок Батончик Сникерс супер 95/80г [00:27:58]line 1.000 * 85.00 [00:27:58]line = 85.00 [00:27:58]line НДС 12% НСП 1% [00:27:58]line > о реализуемом товаре [00:27:58]line ИТОГО: 85.00 [00:27:58]line НСП 1% : 0.75 [00:27:58]line НДС 12% : 9.03 [00:27:58]line Наличными: 0.00 [00:27:58]line Безнал.: 85.00 [00:27:58]line Место: АЗС № 5 "Партнер Нефть" [00:27:58]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [00:27:58]line СНО: Общий режим [00:27:58]line Чек 2 16.09.2024 00:27 [00:27:58]line Смена: 508 ФФД: 1.0 [00:27:58]line ЗНМ: 03000000022 [00:27:58]line РНМ: 0000000000091423 [00:27:58]line Версия ККМ: 001 [00:27:58]line Платежная система: О! деньги [00:27:58]line ФМ: 0000000000874692 [00:27:58]line ФД: 92699 [00:27:58]line ФПД: 7226049848970 [00:27:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T002756&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92699&fm=7226049848970&tin=02508201610067®Number=0000000000091423&sum=8500 [00:27:58]line 0 [00:27:58]OFD Sender: Processing packet 92699 [packets to send 63, broken 62] [00:27:58]ProducePacketName [00:27:58]name=ofd_packets/00092699 [00:27:58]OFD Sender: To server: pG, [00:27:58]CommunicateWithHost lk.salyk.kg:30040 [00:27:58]ConnectInit lk.salyk.kg [00:27:58]written 0, free lines is 4095 [00:27:58]Connected sock=9 [00:27:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3F 01 00 00 77 7B 37 01 D5 FF 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 8C 7B E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1B 6A 01 00 35 04 06 00 06 92 72 22 66 8A 28 4B BE D2 99 0E D0 45 [00:27:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 38 73 47 00 D4 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1B 6A 01 00 F4 03 04 00 03 24 E7 66 B6 04 01 00 00 F2 1A 3C 68 29 BB E2 40 [00:27:58]CommunicateWithHost err = 0 [00:27:58]CheckOFDResponse [00:27:58]1017 (14) - 77093643461234 [00:27:58]1041 (16) - 0000000000874692 [00:27:58]1040 (4) - 92699 [00:27:58]1012 (4) - 15.09.2024 18:14 [00:27:58]1206 (1) - 0 [00:27:58]OFD Sender: Remove packet 92699 [00:27:58]ProducePacketName [00:27:58]name=ofd_packets/00092699 [00:27:58]NVStorageDeleteData [00:27:59]Write to MH i2c: 01 00 00 BE 02 C0 [00:27:59]Write i2c OK [00:27:59]MH_I2C_Read... [00:27:59]Read from MH i2c: 01 [00:27:59]MH_I2C_Read... [00:27:59]Read from MH i2c: 01 07 00 [00:27:59]MH_I2C_Read... [00:27:59]Read from MH i2c: 01 07 00 BE 02 00 00 00 00 00 F4 0C C7 [00:27:59]RasterBufferAndPrint [00:27:59]line [00:27:59]line [00:27:59]line [00:27:59]line [00:27:59]line [00:27:59]written 0, free lines is 3321 [00:27:59]MH_Cut [00:27:59]Write to MH i2c: D1 01 00 C5 02 01 99 [00:27:59]Write i2c OK [00:27:59]MH_I2C_Read... [00:27:59]Read from MH i2c: D1 [00:27:59]MH_I2C_Read... [00:27:59]Read from MH i2c: D1 01 00 [00:27:59]MH_I2C_Read... [00:27:59]Read from MH i2c: D1 01 00 C5 02 00 98 [00:27:59]Write to MH i2c: 01 00 00 C6 02 C8 [00:27:59]Write i2c OK [00:27:59]MH_I2C_Read... [00:27:59]OFD Sender: No OFD packet to send [00:27:59]*** Cut start [00:27:59]*** Purtial cut [00:27:59]*** Stage 1: CUTSNS_PIN = 1 [00:28:01]Read from MH i2c: 01 [00:28:01]MH_I2C_Read... [00:28:01]*** Stop cut motor [00:28:01]*** Cut end [00:28:01]Read from MH i2c: 01 07 00 [00:28:01]MH_I2C_Read... [00:28:01]Read from MH i2c: 01 07 00 C6 02 00 00 00 00 00 FF 0F DD [00:28:01]process_action close_receipt done [00:28:01]requested_data is exist [00:28:01]produce_requested_data [00:28:01]requested_item fm.sn is exist - process it [00:28:01]wFMCommunicate request_size=4 [00:28:01]MH_SAM_APDU [00:28:01]CAPDU: 80 11 00 00 [00:28:01]Write to MH i2c: E2 08 00 C7 02 80 11 00 00 00 00 00 00 43 [00:28:01]Write i2c OK [00:28:01]MH_I2C_Read... [00:28:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:28:01]Read from MH i2c: E2 [00:28:01]MH_I2C_Read... [00:28:01]Read from MH i2c: E2 17 00 [00:28:01]MH_I2C_Read... [00:28:01]Read from MH i2c: E2 17 00 C7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 9A [00:28:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:28:01]wFMCommunicate OK [00:28:01]requested_item fd.num is exist - process it [00:28:01]SAM_PROTO_GetFieldsCounters [00:28:01]wFMCommunicate request_size=4 [00:28:01]MH_SAM_APDU [00:28:01]CAPDU: 80 13 00 00 [00:28:01]Write to MH i2c: E2 08 00 C8 02 80 13 00 00 00 00 00 00 46 [00:28:01]Write i2c OK [00:28:01]MH_I2C_Read... [00:28:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:28:01]Read from MH i2c: E2 [00:28:01]MH_I2C_Read... [00:28:01]Read from MH i2c: E2 62 00 [00:28:01]MH_I2C_Read... [00:28:01]Read from MH i2c: E2 62 00 C8 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 1B 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [00:28:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 1B 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:28:01]wFMCommunicate OK [00:28:01]SAM_PROTO_GetFieldsCounters done [00:28:01]requested_item shift.num is exist - process it [00:28:01]requested_item shift.opened is exist - process it [00:28:01]req_shift_opened [00:28:01]FM_GetShiftState [00:28:01]SAM_PROTO_GetShiftState [00:28:01]wFMCommunicate request_size=4 [00:28:01]MH_SAM_APDU [00:28:01]CAPDU: 80 13 01 00 [00:28:01]Write to MH i2c: E2 08 00 C9 02 80 13 01 00 00 00 00 00 48 [00:28:01]Write i2c OK [00:28:01]MH_I2C_Read... [00:28:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:28:01]Read from MH i2c: E2 [00:28:01]MH_I2C_Read... [00:28:01]Read from MH i2c: E2 0E 00 [00:28:01]MH_I2C_Read... [00:28:01]Read from MH i2c: E2 0E 00 C9 02 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 E1 [00:28:01]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [00:28:01]wFMCommunicate OK [00:28:01]SAM_PROTO_GetShiftState done [00:28:01]FM_GetShiftState done [00:28:01]req_shift_opened done [00:28:01]requested_item shift.open_date is exist - process it [00:28:01]req_shift_open_date [00:28:01]req_shift_open_date done [00:28:01]produce_requested_data done [00:28:01]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92699,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278} [00:28:01]process_action_free close_receipt [00:28:01]json_value_free [00:28:01]json_value_free done [00:28:01]process_json_proto returns [00:28:01]Send response to host [00:28:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92699,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278}}} [00:28:01]free response buf [00:28:01]execute_script done [00:28:01]execute_script returns [00:28:01]free content buf [00:28:01]Sock 6.Close socket [00:28:01]Sock 6.Thread stoped [00:28:04]OFD Sender: No OFD packet to send [00:28:09]OFD Sender: No OFD packet to send [00:28:14]OFD Sender: No OFD packet to send [00:28:19]OFD Sender: No OFD packet to send [00:28:24]OFD Sender: No OFD packet to send [00:28:29]OFD Sender: No OFD packet to send [00:28:34]OFD Sender: No OFD packet to send [00:28:39]OFD Sender: No OFD packet to send [00:28:44]OFD Sender: No OFD packet to send [00:28:49]OFD Sender: No OFD packet to send [00:28:54]OFD Sender: No OFD packet to send [00:28:59]OFD Sender: No OFD packet to send [00:29:04]OFD Sender: No OFD packet to send [00:29:09]OFD Sender: No OFD packet to send [00:29:14]OFD Sender: No OFD packet to send [00:29:19]OFD Sender: No OFD packet to send [00:29:24]OFD Sender: No OFD packet to send [00:29:29]OFD Sender: No OFD packet to send [00:29:34]OFD Sender: No OFD packet to send [00:29:39]OFD Sender: No OFD packet to send [00:29:44]OFD Sender: No OFD packet to send [00:29:49]OFD Sender: No OFD packet to send [00:29:54]OFD Sender: No OFD packet to send [00:29:59]OFD Sender: No OFD packet to send [00:30:04]OFD Sender: No OFD packet to send [00:30:09]OFD Sender: No OFD packet to send [00:30:14]OFD Sender: No OFD packet to send [00:30:19]OFD Sender: No OFD packet to send [00:30:24]OFD Sender: No OFD packet to send [00:30:29]OFD Sender: No OFD packet to send [00:30:34]OFD Sender: No OFD packet to send [00:30:39]OFD Sender: No OFD packet to send [00:30:44]OFD Sender: No OFD packet to send [00:30:49]OFD Sender: No OFD packet to send [00:30:54]OFD Sender: No OFD packet to send [00:30:59]OFD Sender: No OFD packet to send [00:31:04]OFD Sender: No OFD packet to send [00:31:09]OFD Sender: No OFD packet to send [00:31:14]OFD Sender: No OFD packet to send [00:31:19]OFD Sender: No OFD packet to send [00:31:24]OFD Sender: No OFD packet to send [00:31:29]OFD Sender: No OFD packet to send [00:31:34]OFD Sender: No OFD packet to send [00:31:39]OFD Sender: No OFD packet to send [00:31:44]OFD Sender: No OFD packet to send [00:31:49]OFD Sender: No OFD packet to send [00:31:54]OFD Sender: No OFD packet to send [00:31:59]OFD Sender: No OFD packet to send [00:32:04]OFD Sender: No OFD packet to send [00:32:09]OFD Sender: No OFD packet to send [00:32:14]OFD Sender: No OFD packet to send [00:32:19]OFD Sender: No OFD packet to send [00:32:24]OFD Sender: No OFD packet to send [00:32:29]OFD Sender: No OFD packet to send [00:32:34]OFD Sender: No OFD packet to send [00:32:39]OFD Sender: No OFD packet to send [00:32:44]OFD Sender: No OFD packet to send [00:32:49]OFD Sender: No OFD packet to send [00:32:54]OFD Sender: No OFD packet to send [00:32:59]OFD Sender: No OFD packet to send [00:33:04]OFD Sender: No OFD packet to send [00:33:09]OFD Sender: No OFD packet to send [00:33:14]OFD Sender: No OFD packet to send [00:33:19]OFD Sender: No OFD packet to send [00:33:21]accept exits with 7 [00:33:21]New connection [00:33:21]New thread 3066752356 created [00:33:21]Thread 3066608996 joined [00:33:21]Waiting for new connection... [00:33:21] Sock 7.Parse request [00:33:21]Sock 7.Check first char [00:33:21]Sock 7.First char is OK [00:33:21]request: POST /json_proto HTTP/1.0 [00:33:21]Method: POST [00:33:21]URL: /json_proto [00:33:21]Method is POST - this is cgi request [00:33:21]url: /json_proto [00:33:21]query_string will be loaded in cgi processing [00:33:21]execute_cgi json_proto POST (null) [00:33:21]execute_cgi path=json_proto method=POST [00:33:21]POST find Content-Length [00:33:21]Host: 172.17.57.71:8080 [00:33:21]Content-Length: 4784 [00:33:21]Content-Type: application/json [00:33:21] [00:33:21]POST finish read [00:33:21]Found Content-Length = 4784 [00:33:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127586", "tax_sys" : 0, "items" : [ { "code": "7501064193972", "name": "\u041F\u0438\u0432\u043E Corona Extra \u0441\u0432\u0435\u0442\u043B\u043E\u0435 0,355 \u043B", "price" : 235.00, "quantity" : 1.000, "sum" : 235.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004302", "name": "\u041F\u0438\u0432\u043E \u0411\u0430\u043B\u0442\u0438\u043A\u0430 7 \u044D\u043A\u0441\u043F 0,5\u043B \u0436/\u0431", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682009450", "name": "\u041F\u0438\u0432\u043E \u0411\u0430\u043B\u0442\u0438\u043A\u0430 9 \u043A\u0440\u0435\u043F 0,5\u043B \u0441\u0442", "price" : 120.00, "quantity" : 2.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480258", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0431\u0430\u043D\u043A\u0430", "price" : 85.00, "quantity" : 3.000, "sum" : 255.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600721021566", "name": "\u041F\u0438\u0432\u043E \u0425\u0443\u0433\u0430\u0440\u0434\u0435\u043D \u0431\u0435\u043B \u043D\u0435\u0444\u0438\u043B 0,5\u043B \u0441\u0442", "price" : 213.00, "quantity" : 1.000, "sum" : 213.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870066000476", "name": "\u041F\u0430\u043B\u043E\u0447\u043A\u0438 \u0410\u043B\u043C\u0430\u0442\u0438\u043D\u0441\u043A\u0438\u0439 \u041F\u0440\u043E\u0434\u0443\u043A\u0442 \u0441\u043B\u0430\u0434\u043A\u0438\u0435 50\u0433", "price" : 27.00, "quantity" : 1.000, "sum" : 27.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077634246", "name": "\u041F\u0435\u0447 LOVITA \u0414\u0436\u0435\u043B\u043B\u0438 \u041A\u0443\u043A\u0438\u0441 \u043C\u0430\u043B\u0438\u043D\u0430 135 \u0433\u0440", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "7622210309396", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 \"OREO\" 38 \u0433\u0440", "price" : 65.00, "quantity" : 5.000, "sum" : 325.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6921207700453", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432 Vie Tex 3\u0448\u0442", "price" : 130.00, "quantity" : 5.000, "sum" : 650.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8591207777793", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432\u044B Datex 12\u0448\u0442", "price" : 457.00, "quantity" : 1.000, "sum" : 457.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745178", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Sparkle Mix", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001150013", "name": "\u0421\u043E\u043A Da-Da 1\u043B \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001150389", "name": "\u0421\u043E\u043A DaDa 0,95\u043B \u0412\u0438\u0448\u043D\u044F", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010056", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010087", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Lets Go \u0437\u0435\u043B \u0447\u0430\u [00:33:21]execute_script... [00:33:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127586", "tax_sys" : 0, "items" : [ { "code": "7501064193972", "name": "\u041F\u0438\u0432\u043E Corona Extra \u0441\u0432\u0435\u0442\u043B\u043E\u0435 0,355 \u043B", "price" : 235.00, "quantity" : 1.000, "sum" : 235.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004302", "name": "\u041F\u0438\u0432\u043E \u0411\u0430\u043B\u0442\u0438\u043A\u0430 7 \u044D\u043A\u0441\u043F 0,5\u043B \u0436/\u0431", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682009450", "name": "\u041F\u0438\u0432\u043E \u0411\u0430\u043B\u0442\u0438\u043A\u0430 9 \u043A\u0440\u0435\u043F 0,5\u043B \u0441\u0442", "price" : 120.00, "quantity" : 2.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480258", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0431\u0430\u043D\u043A\u0430", "price" : 85.00, "quantity" : 3.000, "sum" : 255.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600721021566", "name": "\u041F\u0438\u0432\u043E \u0425\u0443\u0433\u0430\u0440\u0434\u0435\u043D \u0431\u0435\u043B \u043D\u0435\u0444\u0438\u043B 0,5\u043B \u0441\u0442", "price" : 213.00, "quantity" : 1.000, "sum" : 213.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870066000476", "name": "\u041F\u0430\u043B\u043E\u0447\u043A\u0438 \u0410\u043B\u043C\u0430\u0442\u0438\u043D\u0441\u043A\u0438\u0439 \u041F\u0440\u043E\u0434\u0443\u043A\u0442 \u0441\u043B\u0430\u0434\u043A\u0438\u0435 50\u0433", "price" : 27.00, "quantity" : 1.000, "sum" : 27.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077634246", "name": "\u041F\u0435\u0447 LOVITA \u0414\u0436\u0435\u043B\u043B\u0438 \u041A\u0443\u043A\u0438\u0441 \u043C\u0430\u043B\u0438\u043D\u0430 135 \u0433\u0440", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "7622210309396", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 \"OREO\" 38 \u0433\u0440", "price" : 65.00, "quantity" : 5.000, "sum" : 325.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6921207700453", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432 Vie Tex 3\u0448\u0442", "price" : 130.00, "quantity" : 5.000, "sum" : 650.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8591207777793", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432\u044B Datex 12\u0448\u0442", "price" : 457.00, "quantity" : 1.000, "sum" : 457.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745178", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Sparkle Mix", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001150013", "name": "\u0421\u043E\u043A Da-Da 1\u043B \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001150389", "name": "\u0421\u043E\u043A DaDa 0,95\u043B \u0412\u0438\u0448\u043D\u044F", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010056", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010087", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Lets Go \u0437\u0435\u043B \u0447\u0430\u [00:33:22]POST & json_proto [00:33:22]process_json_proto [00:33:22]json parse error [00:33:22]process_json_proto returns [00:33:22]execute_script returns [00:33:22]free content buf [00:33:22]Sock 7.Close socket [00:33:22]Sock 7.Thread stoped [00:33:24]OFD Sender: No OFD packet to send [00:33:29]OFD Sender: No OFD packet to send [00:33:34]OFD Sender: No OFD packet to send [00:33:39]OFD Sender: No OFD packet to send [00:33:44]OFD Sender: No OFD packet to send [00:33:49]OFD Sender: No OFD packet to send [00:33:54]OFD Sender: No OFD packet to send [00:33:59]OFD Sender: No OFD packet to send [00:34:04]OFD Sender: No OFD packet to send [00:34:09]OFD Sender: No OFD packet to send [00:34:14]OFD Sender: No OFD packet to send [00:34:19]OFD Sender: No OFD packet to send [00:34:24]OFD Sender: No OFD packet to send [00:34:29]OFD Sender: No OFD packet to send [00:34:34]OFD Sender: No OFD packet to send [00:34:39]OFD Sender: No OFD packet to send [00:34:44]OFD Sender: No OFD packet to send [00:34:49]OFD Sender: No OFD packet to send [00:34:54]OFD Sender: No OFD packet to send [00:34:59]OFD Sender: No OFD packet to send [00:35:04]OFD Sender: No OFD packet to send [00:35:09]OFD Sender: No OFD packet to send [00:35:14]OFD Sender: No OFD packet to send [00:35:19]OFD Sender: No OFD packet to send [00:35:24]OFD Sender: No OFD packet to send [00:35:29]OFD Sender: No OFD packet to send [00:35:34]OFD Sender: No OFD packet to send [00:35:39]OFD Sender: No OFD packet to send [00:35:44]OFD Sender: No OFD packet to send [00:35:49]OFD Sender: No OFD packet to send [00:35:54]OFD Sender: No OFD packet to send [00:35:59]accept exits with 6 [00:35:59]New connection [00:35:59]New thread 3066608996 created [00:35:59]Thread 3066752356 joined [00:35:59]Waiting for new connection... [00:35:59] Sock 6.Parse request [00:35:59]Sock 6.Check first char [00:35:59]Sock 6.First char is OK [00:35:59]request: POST /json_proto HTTP/1.0 [00:35:59]Method: POST [00:35:59]URL: /json_proto [00:35:59]Method is POST - this is cgi request [00:35:59]url: /json_proto [00:35:59]query_string will be loaded in cgi processing [00:35:59]execute_cgi json_proto POST (null) [00:35:59]execute_cgi path=json_proto method=POST [00:35:59]POST find Content-Length [00:35:59]Host: 172.17.57.71:8080 [00:35:59]Content-Length: 215 [00:35:59]Content-Type: application/json [00:35:59] [00:35:59]POST finish read [00:35:59]Found Content-Length = 215 [00:35:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:59]execute_script... [00:35:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:59]POST & json_proto [00:35:59]process_json_proto [00:35:59]json parsed OK: [00:35:59]protocol is kg_v1.0 [00:35:59]action value=get_value [00:35:59]process_action get_value [00:35:59]cmd_get_value [00:35:59]process_action get_value done [00:35:59]requested_data is exist [00:35:59]produce_requested_data [00:35:59]requested_item kkm.sn is exist - process it [00:35:59]requested_item kkm.ver is exist - process it [00:35:59]requested_item fm.sn is exist - process it [00:35:59]wFMCommunicate request_size=4 [00:35:59]MH_SAM_APDU [00:35:59]CAPDU: 80 11 00 00 [00:35:59]Write to MH i2c: E2 08 00 CA 02 80 11 00 00 00 00 00 00 46 [00:35:59]Write i2c OK [00:35:59]MH_I2C_Read... [00:35:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:59]Read from MH i2c: E2 [00:35:59]MH_I2C_Read... [00:35:59]Read from MH i2c: E2 17 00 [00:35:59]MH_I2C_Read... [00:35:59]Read from MH i2c: E2 17 00 CA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 9D [00:35:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:35:59]wFMCommunicate OK [00:35:59]requested_item fd.num is exist - process it [00:35:59]SAM_PROTO_GetFieldsCounters [00:35:59]wFMCommunicate request_size=4 [00:35:59]MH_SAM_APDU [00:35:59]CAPDU: 80 13 00 00 [00:35:59]Write to MH i2c: E2 08 00 CB 02 80 13 00 00 00 00 00 00 49 [00:35:59]Write i2c OK [00:35:59]MH_I2C_Read... [00:35:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:35:59]Read from MH i2c: E2 [00:35:59]MH_I2C_Read... [00:35:59]Read from MH i2c: E2 62 00 [00:35:59]MH_I2C_Read... [00:35:59]Read from MH i2c: E2 62 00 CB 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 1B 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [00:35:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 1B 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:35:59]wFMCommunicate OK [00:35:59]SAM_PROTO_GetFieldsCounters done [00:35:59]requested_item shift.num is exist - process it [00:35:59]requested_item shift.opened is exist - process it [00:35:59]req_shift_opened [00:35:59]FM_GetShiftState [00:35:59]SAM_PROTO_GetShiftState [00:35:59]wFMCommunicate request_size=4 [00:35:59]MH_SAM_APDU [00:35:59]CAPDU: 80 13 01 00 [00:35:59]Write to MH i2c: E2 08 00 CC 02 80 13 01 00 00 00 00 00 4B [00:35:59]Write i2c OK [00:35:59]MH_I2C_Read... [00:35:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:59]Read from MH i2c: E2 [00:35:59]MH_I2C_Read... [00:35:59]Read from MH i2c: E2 0E 00 [00:35:59]MH_I2C_Read... [00:35:59]Read from MH i2c: E2 0E 00 CC 02 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 E4 [00:35:59]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [00:35:59]wFMCommunicate OK [00:35:59]SAM_PROTO_GetShiftState done [00:35:59]FM_GetShiftState done [00:35:59]req_shift_opened done [00:35:59]requested_item shift.open_date is exist - process it [00:35:59]req_shift_open_date [00:35:59]req_shift_open_date done [00:35:59]produce_requested_data done [00:35:59]produce_requested_data return {"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92699,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278} [00:35:59]process_action_free get_value [00:35:59]json_value_free [00:35:59]json_value_free done [00:35:59]process_json_proto returns [00:35:59]Send response to host [00:35:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92699,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278}}} [00:35:59]free response buf [00:35:59]execute_script done [00:35:59]execute_script returns [00:35:59]free content buf [00:35:59]Sock 6.Close socket [00:35:59]Sock 6.Thread stoped [00:35:59]accept exits with 7 [00:35:59]New connection [00:35:59]New thread 3066752356 created [00:35:59]Thread 3066608996 joined [00:35:59]Waiting for new connection... [00:35:59] Sock 7.Parse request [00:35:59]Sock 7.Check first char [00:35:59]Sock 7.First char is OK [00:35:59]request: POST /json_proto HTTP/1.0 [00:35:59]Method: POST [00:35:59]URL: /json_proto [00:35:59]Method is POST - this is cgi request [00:35:59]url: /json_proto [00:35:59]query_string will be loaded in cgi processing [00:35:59]execute_cgi json_proto POST (null) [00:35:59]execute_cgi path=json_proto method=POST [00:35:59]POST find Content-Length [00:35:59]Host: 172.17.57.71:8080 [00:35:59]Content-Length: 331 [00:35:59]Content-Type: application/json [00:35:59] [00:35:59]POST finish read [00:35:59]Found Content-Length = 331 [00:35:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:35:59]execute_script... [00:36:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:36:00]POST & json_proto [00:36:00]process_json_proto [00:36:00]json parsed OK: [00:36:00]protocol is kg_v1.0 [00:36:00]action value=get_value [00:36:00]process_action get_value [00:36:00]cmd_get_value [00:36:00]process_action get_value done [00:36:00]requested_data is exist [00:36:00]produce_requested_data [00:36:00]requested_item fm.sale.total is exist - process it [00:36:00]SAM_PROTO_GetFMData [00:36:00]wFMCommunicate request_size=4 [00:36:00]MH_SAM_APDU [00:36:00]CAPDU: 80 13 03 00 [00:36:00]Write to MH i2c: E2 08 00 CD 02 80 13 03 00 00 00 00 00 4E [00:36:00]OFD Sender: No OFD packet to send [00:36:00]Write i2c OK [00:36:00]MH_I2C_Read... [00:36:00]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:36:00]Read from MH i2c: E2 [00:36:00]MH_I2C_Read... [00:36:00]Read from MH i2c: E2 FD 00 [00:36:00]MH_I2C_Read... [00:36:00]Read from MH i2c: E2 FD 00 CD 02 00 C5 04 85 04 C1 04 6E 04 04 00 23 66 01 00 69 04 A1 00 6F 04 04 00 CF 62 01 00 B1 04 04 00 00 0F 28 B3 70 04 04 00 B0 CE 84 83 72 04 04 00 50 40 A3 2F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A5 D9 06 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 E7 C0 95 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 54 03 00 00 B1 04 04 00 EC 99 7A 04 70 04 04 00 98 B8 41 04 72 04 03 00 54 E1 38 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C8 79 EF 03 09 90 00 7F [00:36:00]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 23 66 01 00 69 04 A1 00 6F 04 04 00 CF 62 01 00 B1 04 04 00 00 0F 28 B3 70 04 04 00 B0 CE 84 83 72 04 04 00 50 40 A3 2F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A5 D9 06 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 E7 C0 95 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 54 03 00 00 B1 04 04 00 EC 99 7A 04 70 04 04 00 98 B8 41 04 72 04 03 00 54 E1 38 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C8 79 EF 03 09 90 00 [00:36:00]wFMCommunicate OK [00:36:00]wFMCommunicate request_size=4 [00:36:00]MH_SAM_APDU [00:36:00]CAPDU: 80 17 00 00 [00:36:00]Write to MH i2c: E2 08 00 CE 02 80 17 00 00 00 00 00 00 50 [00:36:00]Write i2c OK [00:36:00]MH_I2C_Read... [00:36:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:00]Read from MH i2c: E2 [00:36:00]MH_I2C_Read... [00:36:00]Read from MH i2c: E2 FD 00 [00:36:00]MH_I2C_Read... [00:36:00]Read from MH i2c: E2 FD 00 CE 02 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AA 25 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 DF [00:36:00]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AA 25 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:36:00]wFMCommunicate OK [00:36:00]wFMCommunicate request_size=4 [00:36:00]MH_SAM_APDU [00:36:00]CAPDU: 80 17 00 00 [00:36:00]Write to MH i2c: E2 08 00 CF 02 80 17 00 00 00 00 00 00 51 [00:36:00]Write i2c OK [00:36:00]MH_I2C_Read... [00:36:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:00]Read from MH i2c: E2 [00:36:00]MH_I2C_Read... [00:36:00]Read from MH i2c: E2 FD 00 [00:36:00]MH_I2C_Read... [00:36:00]Read from MH i2c: E2 FD 00 CF 02 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 63 [00:36:00]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:36:00]wFMCommunicate OK [00:36:00]wFMCommunicate request_size=4 [00:36:00]MH_SAM_APDU [00:36:00]CAPDU: 80 17 00 00 [00:36:00]Write to MH i2c: E2 08 00 D0 02 80 17 00 00 00 00 00 00 52 [00:36:00]Write i2c OK [00:36:00]MH_I2C_Read... [00:36:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:01]Read from MH i2c: E2 [00:36:01]MH_I2C_Read... [00:36:01]Read from MH i2c: E2 FD 00 [00:36:01]MH_I2C_Read... [00:36:01]Read from MH i2c: E2 FD 00 D0 02 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 DE [00:36:01]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:36:01]wFMCommunicate OK [00:36:01]wFMCommunicate request_size=4 [00:36:01]MH_SAM_APDU [00:36:01]CAPDU: 80 17 00 00 [00:36:01]Write to MH i2c: E2 08 00 D1 02 80 17 00 00 00 00 00 00 53 [00:36:01]Write i2c OK [00:36:01]MH_I2C_Read... [00:36:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:36:01]Read from MH i2c: E2 [00:36:01]MH_I2C_Read... [00:36:01]Read from MH i2c: E2 E2 00 [00:36:01]MH_I2C_Read... [00:36:01]Read from MH i2c: E2 E2 00 D1 02 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 31 [00:36:01]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:36:01]wFMCommunicate OK [00:36:01]SAM_PROTO_GetFMData done [00:36:01]requested_item fm.sale_refund.total is exist - process it [00:36:01]requested_item fm.buy.total is exist - process it [00:36:01]requested_item shift.sale.total is exist - process it [00:36:01]SAM_PROTO_GetShiftData [00:36:01]wFMCommunicate request_size=4 [00:36:01]MH_SAM_APDU [00:36:01]CAPDU: 80 13 02 00 [00:36:01]Write to MH i2c: E2 08 00 D2 02 80 13 02 00 00 00 00 00 52 [00:36:01]Write i2c OK [00:36:01]MH_I2C_Read... [00:36:01]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:36:01]Read from MH i2c: E2 [00:36:01]MH_I2C_Read... [00:36:01]Read from MH i2c: E2 FD 00 [00:36:01]MH_I2C_Read... [00:36:01]Read from MH i2c: E2 FD 00 D2 02 00 A7 04 AA 04 A3 04 6E 04 04 00 02 00 00 00 69 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 80 57 70 04 00 00 72 04 02 00 80 57 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 4B 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 C6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 90 00 BD [00:36:01]RAPDU: A7 04 AA 04 A3 04 6E 04 04 00 02 00 00 00 69 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 80 57 70 04 00 00 72 04 02 00 80 57 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 4B 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 C6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 90 00 [00:36:01]wFMCommunicate OK [00:36:01]wFMCommunicate request_size=4 [00:36:01]MH_SAM_APDU [00:36:01]CAPDU: 80 17 00 00 [00:36:01]Write to MH i2c: E2 08 00 D3 02 80 17 00 00 00 00 00 00 55 [00:36:01]Write i2c OK [00:36:01]MH_I2C_Read... [00:36:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:02]Read from MH i2c: E2 [00:36:02]MH_I2C_Read... [00:36:02]Read from MH i2c: E2 FD 00 [00:36:02]MH_I2C_Read... [00:36:02]Read from MH i2c: E2 FD 00 D3 02 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 90 00 69 [00:36:02]RAPDU: F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 90 00 [00:36:02]wFMCommunicate OK [00:36:02]wFMCommunicate request_size=4 [00:36:02]MH_SAM_APDU [00:36:02]CAPDU: 80 17 00 00 [00:36:02]Write to MH i2c: E2 08 00 D4 02 80 17 00 00 00 00 00 00 56 [00:36:02]Write i2c OK [00:36:02]MH_I2C_Read... [00:36:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:02]Read from MH i2c: E2 [00:36:02]MH_I2C_Read... [00:36:02]Read from MH i2c: E2 FD 00 [00:36:02]MH_I2C_Read... [00:36:02]Read from MH i2c: E2 FD 00 D4 02 00 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 90 00 0E [00:36:02]RAPDU: 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 90 00 [00:36:02]wFMCommunicate OK [00:36:02]wFMCommunicate request_size=4 [00:36:02]MH_SAM_APDU [00:36:02]CAPDU: 80 17 00 00 [00:36:02]Write to MH i2c: E2 08 00 D5 02 80 17 00 00 00 00 00 00 57 [00:36:02]Write i2c OK [00:36:02]MH_I2C_Read... [00:36:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:02]Read from MH i2c: E2 [00:36:02]MH_I2C_Read... [00:36:02]Read from MH i2c: E2 FD 00 [00:36:02]MH_I2C_Read... [00:36:02]Read from MH i2c: E2 FD 00 D5 02 00 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 90 00 D6 [00:36:02]RAPDU: 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 90 00 [00:36:02]wFMCommunicate OK [00:36:02]wFMCommunicate request_size=4 [00:36:02]MH_SAM_APDU [00:36:02]CAPDU: 80 17 00 00 [00:36:02]Write to MH i2c: E2 08 00 D6 02 80 17 00 00 00 00 00 00 58 [00:36:02]Write i2c OK [00:36:02]MH_I2C_Read... [00:36:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 193! [00:36:03]Read from MH i2c: E2 [00:36:03]MH_I2C_Read... [00:36:03]Read from MH i2c: E2 C4 00 [00:36:03]MH_I2C_Read... [00:36:03]Read from MH i2c: E2 C4 00 D6 02 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 3C [00:36:03]RAPDU: F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:36:03]wFMCommunicate OK [00:36:03]SAM_PROTO_GetShiftData done [00:36:03]requested_item shift.sale.total_cash is exist - process it [00:36:03]requested_item shift.sale_refund.total is exist - process it [00:36:03]requested_item shift.sale_refund.total_cash is exist - process it [00:36:03]requested_item shift.buy.total is exist - process it [00:36:03]requested_item shift.buy.total_cash is exist - process it [00:36:03]produce_requested_data done [00:36:03]produce_requested_data return {"fm.sale.total":30057469.44,"fm.sale_refund.total":751436.60,"fm.buy.total":0.00,"shift.sale.total":224.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:36:03]process_action_free get_value [00:36:03]json_value_free [00:36:03]json_value_free done [00:36:03]process_json_proto returns [00:36:03]Send response to host [00:36:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":30057469.44,"fm.sale_refund.total":751436.60,"fm.buy.total":0.00,"shift.sale.total":224.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:36:03]free response buf [00:36:03]execute_script done [00:36:03]execute_script returns [00:36:03]free content buf [00:36:03]Sock 7.Close socket [00:36:03]Sock 7.Thread stoped [00:36:05]OFD Sender: No OFD packet to send [00:36:07]accept exits with 6 [00:36:07]New connection [00:36:07]New thread 3066608996 created [00:36:07]Thread 3066752356 joined [00:36:07]Waiting for new connection... [00:36:07] Sock 6.Parse request [00:36:07]Sock 6.Check first char [00:36:07]Sock 6.First char is OK [00:36:07]request: POST /json_proto HTTP/1.0 [00:36:07]Method: POST [00:36:07]URL: /json_proto [00:36:07]Method is POST - this is cgi request [00:36:07]url: /json_proto [00:36:07]query_string will be loaded in cgi processing [00:36:07]execute_cgi json_proto POST (null) [00:36:07]execute_cgi path=json_proto method=POST [00:36:07]POST find Content-Length [00:36:07]Host: 172.17.57.71:8080 [00:36:07]Content-Length: 4784 [00:36:07]Content-Type: application/json [00:36:07] [00:36:07]POST finish read [00:36:07]Found Content-Length = 4784 [00:36:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127586", "tax_sys" : 0, "items" : [ { "code": "7501064193972", "name": "\u041F\u0438\u0432\u043E Corona Extra \u0441\u0432\u0435\u0442\u043B\u043E\u0435 0,355 \u043B", "price" : 235.00, "quantity" : 1.000, "sum" : 235.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004302", "name": "\u041F\u0438\u0432\u043E \u0411\u0430\u043B\u0442\u0438\u043A\u0430 7 \u044D\u043A\u0441\u043F 0,5\u043B \u0436/\u0431", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682009450", "name": "\u041F\u0438\u0432\u043E \u0411\u0430\u043B\u0442\u0438\u043A\u0430 9 \u043A\u0440\u0435\u043F 0,5\u043B \u0441\u0442", "price" : 120.00, "quantity" : 2.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480258", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0431\u0430\u043D\u043A\u0430", "price" : 85.00, "quantity" : 3.000, "sum" : 255.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600721021566", "name": "\u041F\u0438\u0432\u043E \u0425\u0443\u0433\u0430\u0440\u0434\u0435\u043D \u0431\u0435\u043B \u043D\u0435\u0444\u0438\u043B 0,5\u043B \u0441\u0442", "price" : 213.00, "quantity" : 1.000, "sum" : 213.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870066000476", "name": "\u041F\u0430\u043B\u043E\u0447\u043A\u0438 \u0410\u043B\u043C\u0430\u0442\u0438\u043D\u0441\u043A\u0438\u0439 \u041F\u0440\u043E\u0434\u0443\u043A\u0442 \u0441\u043B\u0430\u0434\u043A\u0438\u0435 50\u0433", "price" : 27.00, "quantity" : 1.000, "sum" : 27.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077634246", "name": "\u041F\u0435\u0447 LOVITA \u0414\u0436\u0435\u043B\u043B\u0438 \u041A\u0443\u043A\u0438\u0441 \u043C\u0430\u043B\u0438\u043D\u0430 135 \u0433\u0440", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "7622210309396", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 \"OREO\" 38 \u0433\u0440", "price" : 65.00, "quantity" : 5.000, "sum" : 325.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6921207700453", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432 Vie Tex 3\u0448\u0442", "price" : 130.00, "quantity" : 5.000, "sum" : 650.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8591207777793", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432\u044B Datex 12\u0448\u0442", "price" : 457.00, "quantity" : 1.000, "sum" : 457.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745178", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Sparkle Mix", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001150013", "name": "\u0421\u043E\u043A Da-Da 1\u043B \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001150389", "name": "\u0421\u043E\u043A DaDa 0,95\u043B \u0412\u0438\u0448\u043D\u044F", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010056", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010087", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Lets Go \u0437\u0435\u043B \u0447\u0430\u0439 \u044F\u0431\u043B-\u0433\u0440 \u041F\u042D\u0422 1,2\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3571.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:07]execute_script... [00:36:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127586", "tax_sys" : 0, "items" : [ { "code": "7501064193972", "name": "\u041F\u0438\u0432\u043E Corona Extra \u0441\u0432\u0435\u0442\u043B\u043E\u0435 0,355 \u043B", "price" : 235.00, "quantity" : 1.000, "sum" : 235.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004302", "name": "\u041F\u0438\u0432\u043E \u0411\u0430\u043B\u0442\u0438\u043A\u0430 7 \u044D\u043A\u0441\u043F 0,5\u043B \u0436/\u0431", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682009450", "name": "\u041F\u0438\u0432\u043E \u0411\u0430\u043B\u0442\u0438\u043A\u0430 9 \u043A\u0440\u0435\u043F 0,5\u043B \u0441\u0442", "price" : 120.00, "quantity" : 2.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480258", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0431\u0430\u043D\u043A\u0430", "price" : 85.00, "quantity" : 3.000, "sum" : 255.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600721021566", "name": "\u041F\u0438\u0432\u043E \u0425\u0443\u0433\u0430\u0440\u0434\u0435\u043D \u0431\u0435\u043B \u043D\u0435\u0444\u0438\u043B 0,5\u043B \u0441\u0442", "price" : 213.00, "quantity" : 1.000, "sum" : 213.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870066000476", "name": "\u041F\u0430\u043B\u043E\u0447\u043A\u0438 \u0410\u043B\u043C\u0430\u0442\u0438\u043D\u0441\u043A\u0438\u0439 \u041F\u0440\u043E\u0434\u0443\u043A\u0442 \u0441\u043B\u0430\u0434\u043A\u0438\u0435 50\u0433", "price" : 27.00, "quantity" : 1.000, "sum" : 27.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077634246", "name": "\u041F\u0435\u0447 LOVITA \u0414\u0436\u0435\u043B\u043B\u0438 \u041A\u0443\u043A\u0438\u0441 \u043C\u0430\u043B\u0438\u043D\u0430 135 \u0433\u0440", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "7622210309396", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 \"OREO\" 38 \u0433\u0440", "price" : 65.00, "quantity" : 5.000, "sum" : 325.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6921207700453", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432 Vie Tex 3\u0448\u0442", "price" : 130.00, "quantity" : 5.000, "sum" : 650.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8591207777793", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432\u044B Datex 12\u0448\u0442", "price" : 457.00, "quantity" : 1.000, "sum" : 457.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745178", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Sparkle Mix", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001150013", "name": "\u0421\u043E\u043A Da-Da 1\u043B \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001150389", "name": "\u0421\u043E\u043A DaDa 0,95\u043B \u0412\u0438\u0448\u043D\u044F", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010056", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010087", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Lets Go \u0437\u0435\u043B \u0447\u0430\u0439 \u044F\u0431\u043B-\u0433\u0440 \u041F\u042D\u0422 1,2\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3571.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:08]POST & json_proto [00:36:08]process_json_proto [00:36:08]json parsed OK: [00:36:08]protocol is kg_v1.0 [00:36:08]action value=close_receipt [00:36:08]process_action close_receipt [00:36:08]cmd_close_receipt [00:36:08]MH_GetDate [00:36:08]Write to MH i2c: F0 00 00 D7 02 C8 [00:36:08]Write i2c OK [00:36:08]MH_I2C_Read... [00:36:08]Read from MH i2c: F0 [00:36:08]MH_I2C_Read... [00:36:08]Read from MH i2c: F0 09 00 [00:36:08]MH_I2C_Read... [00:36:08]Read from MH i2c: F0 09 00 D7 02 00 78 7D E7 66 33 3A A4 66 8A [00:36:08]GetLastDocTimeStamp 1726446476 [00:36:08]current date 1726446968 [00:36:08]FM_GetShiftState [00:36:08]SAM_PROTO_GetShiftState [00:36:08]wFMCommunicate request_size=4 [00:36:08]MH_SAM_APDU [00:36:08]CAPDU: 80 13 01 00 [00:36:08]Write to MH i2c: E2 08 00 D8 02 80 13 01 00 00 00 00 00 57 [00:36:08]Write i2c OK [00:36:08]MH_I2C_Read... [00:36:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:08]Read from MH i2c: E2 [00:36:08]MH_I2C_Read... [00:36:08]Read from MH i2c: E2 0E 00 [00:36:08]MH_I2C_Read... [00:36:08]Read from MH i2c: E2 0E 00 D8 02 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 F0 [00:36:08]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [00:36:08]wFMCommunicate OK [00:36:08]SAM_PROTO_GetShiftState done [00:36:08]FM_GetShiftState done [00:36:08]opened in 1726446278 [00:36:08]opened+sec_in_day 1726532678 [00:36:08]quantity*price = 23500 [00:36:08]sum+1 = 23501 [00:36:08]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870145004302 Пиво Балтика 7 эксп 0,5л ж/б 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4600682009450 Пиво Балтика 9 креп 0,5л ст 2.000 * 120.00 = 240.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000480258 Пиво Живое 0,5 банка 3.000 * 85.00 = 255.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4600721021566 Пиво Хугарден бел нефил 0,5л ст 1.000 * 213.00 = 213.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870066000476 Палочки Алматинский Продукт сладкие 50г 1.000 * 27.00 = 27.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4823077634246 Печ LOVITA Джелли Кукис малина 135 гр 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 7622210309396 Печенье "OREO" 38 гр 5.000 * 65.00 = 325.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 6921207700453 Презерватив Vie Tex 3шт 5.000 * 130.00 = 650.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 8591207777793 Презервативы Datex 12шт 1.000 * 457.00 = 457.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48745178 Сигареты Winston Sparkle Mix 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001150013 Сок Da-Da 1л апельсин 2.000 * 150.00 = 300.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001150389 Сок DaDa 0,95л Вишня 2.000 * 150.00 = 300.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700003010056 Чай хол Let`s Go! зел лим ПЭТ 1,25л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700003010087 Чай хол Lets Go зел чай ябл-гр ПЭТ 1,2л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 3571.00 НСП 1% : 31.58 НДС 12% : 379.23 Наличными: 0.00 Безнал.: 3571.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 3 16.09.2024 00:36 Смена: 508 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92700 ФПД: 4451433296575 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T003609&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92700&fm=4451433296575&tin=02508201610067®Number=0000000000091423&sum=357100 0 [00:36:10]StoreToDocumentArchive [00:36:10]shift 508 fd 92700 [00:36:10]save to /storage/0508/doc_00092700 [00:36:10]save last doc name /storage/0508/doc_00092700 to /storage/kkm_last_doc_name [00:36:10]save OK [00:36:10]Clear old archive folders... [00:36:10]ProcessDocumentItem done err = 0, tmpTLVsize=1911 [00:36:10]tlvbuf is 017586B0 [00:36:10]SAM_PROTO_ClearQueue [00:36:10]wFMCommunicate request_size=4 [00:36:10]MH_SAM_APDU [00:36:10]CAPDU: 80 09 00 00 [00:36:10]Write to MH i2c: E2 08 00 E5 02 80 09 00 00 00 00 00 00 59 [00:36:10]Write i2c OK [00:36:10]MH_I2C_Read... [00:36:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:36:10]Read from MH i2c: E2 [00:36:10]MH_I2C_Read... [00:36:10]Read from MH i2c: E2 03 00 [00:36:10]MH_I2C_Read... [00:36:10]Read from MH i2c: E2 03 00 E5 02 00 90 00 5B [00:36:10]RAPDU: 90 00 [00:36:10]wFMCommunicate OK [00:36:10]SAM_PROTO_ClearQueue done [00:36:10]KKMCreateOFDPacket [00:36:10]OFDProtocolAddRootSTLVToBuf [00:36:10]FM_MakeSignedData [00:36:10]FM_MakeSignedData [00:36:10]SAM_PROTO_SignData [00:36:10]wFMCommunicate request_size=4 [00:36:10]MH_SAM_APDU [00:36:10]CAPDU: 80 0D 01 02 [00:36:10]Write to MH i2c: E2 08 00 E6 02 80 0D 01 02 00 00 00 00 61 [00:36:10]Write i2c OK [00:36:10]MH_I2C_Read... [00:36:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:36:10]Read from MH i2c: E2 [00:36:10]MH_I2C_Read... [00:36:10]Read from MH i2c: E2 03 00 [00:36:10]MH_I2C_Read... [00:36:10]Read from MH i2c: E2 03 00 E6 02 00 90 00 5C [00:36:10]RAPDU: 90 00 [00:36:10]wFMCommunicate OK [00:36:10]wFMCommunicate request_size=255 [00:36:10]MH_SAM_APDU [00:36:10]CAPDU: 80 0D 02 02 FA 03 00 77 07 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 37 35 30 31 30 36 34 31 39 33 39 37 32 06 04 2D 00 D0 9F D0 B8 D0 B2 D0 BE 20 43 6F 72 6F 6E 61 20 45 78 74 72 61 20 D1 81 D0 B2 D0 B5 D1 82 D0 BB D0 BE D0 B5 20 30 2C 33 35 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 5B 00 00 00 00 13 04 06 00 CC 5B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 33 30 32 06 04 2E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 37 20 D1 8D D0 BA D1 81 D0 BF 20 30 2C 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 [00:36:10]Write to MH i2c: E2 02 01 E7 02 80 0D 02 02 FA 00 03 00 77 07 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 37 35 30 31 30 36 34 31 39 33 39 37 32 06 04 2D 00 D0 9F D0 B8 D0 B2 D0 BE 20 43 6F 72 6F 6E 61 20 45 78 74 72 61 20 D1 81 D0 B2 D0 B5 D1 82 D0 BB D0 BE D0 B5 20 30 2C 33 35 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 5B 00 00 00 00 13 04 06 00 CC 5B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 33 30 32 06 04 2E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 37 20 D1 8D D0 BA D1 81 D0 BF 20 30 2C 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 00 00 D8 [00:36:10]Write i2c OK [00:36:10]MH_I2C_Read... [00:36:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:10]Read from MH i2c: E2 [00:36:10]MH_I2C_Read... [00:36:10]Read from MH i2c: E2 03 00 [00:36:10]MH_I2C_Read... [00:36:10]Read from MH i2c: E2 03 00 E7 02 00 90 00 5D [00:36:10]RAPDU: 90 00 [00:36:10]wFMCommunicate OK [00:36:10]wFMCommunicate request_size=255 [00:36:10]MH_SAM_APDU [00:36:10]CAPDU: 80 0D 02 02 FA 0D 00 34 36 30 30 36 38 32 30 30 39 34 35 30 06 04 2D 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 39 20 D0 BA D1 80 D0 B5 D0 BF 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 32 35 38 06 04 22 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D0 B1 D0 B0 D0 BD D0 BA D0 B0 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 9C 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 35 36 36 06 04 36 00 D0 9F D0 B8 D0 B2 D0 BE [00:36:10]Write to MH i2c: E2 02 01 E8 02 80 0D 02 02 FA 00 0D 00 34 36 30 30 36 38 32 30 30 39 34 35 30 06 04 2D 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 39 20 D0 BA D1 80 D0 B5 D0 BF 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 32 35 38 06 04 22 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D0 B1 D0 B0 D0 BD D0 BA D0 B0 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 9C 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 35 36 36 06 04 36 00 D0 9F D0 B8 D0 B2 D0 BE 00 00 89 [00:36:10]Write i2c OK [00:36:10]MH_I2C_Read... [00:36:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:11]Read from MH i2c: E2 [00:36:11]MH_I2C_Read... [00:36:11]Read from MH i2c: E2 03 00 [00:36:11]MH_I2C_Read... [00:36:11]Read from MH i2c: E2 03 00 E8 02 00 90 00 5E [00:36:11]RAPDU: 90 00 [00:36:11]wFMCommunicate OK [00:36:11]wFMCommunicate request_size=255 [00:36:11]MH_SAM_APDU [00:36:11]CAPDU: 80 0D 02 02 FA 20 D0 A5 D1 83 D0 B3 D0 B0 D1 80 D0 B4 D0 B5 D0 BD 20 D0 B1 D0 B5 D0 BB 20 D0 BD D0 B5 D1 84 D0 B8 D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 53 00 00 00 00 13 04 06 00 34 53 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 38 37 30 30 36 36 30 30 30 34 37 36 06 04 48 00 D0 9F D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 D0 90 D0 BB D0 BC D0 B0 D1 82 D0 B8 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 D0 9F D1 80 D0 BE D0 B4 D1 83 D0 BA D1 82 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B5 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 0A 00 00 00 00 13 04 06 00 8C 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 32 33 30 [00:36:11]Write to MH i2c: E2 02 01 E9 02 80 0D 02 02 FA 00 20 D0 A5 D1 83 D0 B3 D0 B0 D1 80 D0 B4 D0 B5 D0 BD 20 D0 B1 D0 B5 D0 BB 20 D0 BD D0 B5 D1 84 D0 B8 D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 53 00 00 00 00 13 04 06 00 34 53 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 38 37 30 30 36 36 30 30 30 34 37 36 06 04 48 00 D0 9F D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 D0 90 D0 BB D0 BC D0 B0 D1 82 D0 B8 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 D0 9F D1 80 D0 BE D0 B4 D1 83 D0 BA D1 82 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B5 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 0A 00 00 00 00 13 04 06 00 8C 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 32 33 30 00 00 EA [00:36:11]Write i2c OK [00:36:11]MH_I2C_Read... [00:36:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:11]Read from MH i2c: E2 [00:36:11]MH_I2C_Read... [00:36:11]Read from MH i2c: E2 03 00 [00:36:11]MH_I2C_Read... [00:36:11]Read from MH i2c: E2 03 00 E9 02 00 90 00 5F [00:36:11]RAPDU: 90 00 [00:36:11]wFMCommunicate OK [00:36:11]wFMCommunicate request_size=255 [00:36:11]MH_SAM_APDU [00:36:11]CAPDU: 80 0D 02 02 FA 37 37 36 33 34 32 34 36 06 04 3B 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 D0 94 D0 B6 D0 B5 D0 BB D0 BB D0 B8 20 D0 9A D1 83 D0 BA D0 B8 D1 81 20 D0 BC D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 33 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 37 36 32 32 32 31 30 33 30 39 33 39 36 06 04 1D 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 22 4F 52 45 4F 22 20 33 38 20 D0 B3 D1 80 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 F4 7E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 36 39 32 31 32 30 37 37 30 30 34 35 33 06 04 24 00 D0 9F D1 80 D0 B5 [00:36:11]Write to MH i2c: E2 02 01 EA 02 80 0D 02 02 FA 00 37 37 36 33 34 32 34 36 06 04 3B 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 D0 94 D0 B6 D0 B5 D0 BB D0 BB D0 B8 20 D0 9A D1 83 D0 BA D0 B8 D1 81 20 D0 BC D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 33 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 37 36 32 32 32 31 30 33 30 39 33 39 36 06 04 1D 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 22 4F 52 45 4F 22 20 33 38 20 D0 B3 D1 80 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 F4 7E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 36 39 32 31 32 30 37 37 30 30 34 35 33 06 04 24 00 D0 9F D1 80 D0 B5 00 00 4C [00:36:11]Write i2c OK [00:36:11]MH_I2C_Read... [00:36:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:11]Read from MH i2c: E2 [00:36:11]MH_I2C_Read... [00:36:11]Read from MH i2c: E2 03 00 [00:36:11]MH_I2C_Read... [00:36:11]Read from MH i2c: E2 03 00 EA 02 00 90 00 60 [00:36:11]RAPDU: 90 00 [00:36:11]wFMCommunicate OK [00:36:11]wFMCommunicate request_size=255 [00:36:11]MH_SAM_APDU [00:36:11]CAPDU: 80 0D 02 02 FA D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 56 69 65 20 54 65 78 20 33 D1 88 D1 82 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 E8 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 38 35 39 31 32 30 37 37 37 37 37 39 33 06 04 25 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 D1 8B 20 44 61 74 65 78 20 31 32 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 B2 00 00 00 00 13 04 06 00 84 B2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 35 31 37 38 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 70 61 72 6B 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 [00:36:11]Write to MH i2c: E2 02 01 EB 02 80 0D 02 02 FA 00 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 56 69 65 20 54 65 78 20 33 D1 88 D1 82 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 E8 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 38 35 39 31 32 30 37 37 37 37 37 39 33 06 04 25 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 D1 8B 20 44 61 74 65 78 20 31 32 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 B2 00 00 00 00 13 04 06 00 84 B2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 35 31 37 38 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 70 61 72 6B 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 34 [00:36:12]Write i2c OK [00:36:12]MH_I2C_Read... [00:36:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:12]Read from MH i2c: E2 [00:36:12]MH_I2C_Read... [00:36:12]Read from MH i2c: E2 03 00 [00:36:12]MH_I2C_Read... [00:36:12]Read from MH i2c: E2 03 00 EB 02 00 90 00 61 [00:36:12]RAPDU: 90 00 [00:36:12]wFMCommunicate OK [00:36:12]wFMCommunicate request_size=255 [00:36:12]MH_SAM_APDU [00:36:12]CAPDU: 80 0D 02 02 FA 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 31 33 06 04 21 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 33 38 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 44 61 20 30 2C 39 35 D0 BB 20 D0 92 D0 B8 D1 88 D0 BD D1 8F FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A [00:36:12]Write to MH i2c: E2 02 01 EC 02 80 0D 02 02 FA 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 31 33 06 04 21 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 33 38 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 44 61 20 30 2C 39 35 D0 BB 20 D0 92 D0 B8 D1 88 D0 BD D1 8F FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 00 00 E0 [00:36:12]Write i2c OK [00:36:12]MH_I2C_Read... [00:36:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:12]Read from MH i2c: E2 [00:36:12]MH_I2C_Read... [00:36:12]Read from MH i2c: E2 03 00 [00:36:12]MH_I2C_Read... [00:36:12]Read from MH i2c: E2 03 00 EC 02 00 90 00 62 [00:36:12]RAPDU: 90 00 [00:36:12]wFMCommunicate OK [00:36:12]wFMCommunicate request_size=255 [00:36:12]MH_SAM_APDU [00:36:12]CAPDU: 80 0D 02 02 FA 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 [00:36:12]Write to MH i2c: E2 02 01 ED 02 80 0D 02 02 FA 00 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 00 00 FF [00:36:12]Write i2c OK [00:36:12]MH_I2C_Read... [00:36:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:13]Read from MH i2c: E2 [00:36:13]MH_I2C_Read... [00:36:13]Read from MH i2c: E2 03 00 [00:36:13]MH_I2C_Read... [00:36:13]Read from MH i2c: E2 03 00 ED 02 00 90 00 63 [00:36:13]RAPDU: 90 00 [00:36:13]wFMCommunicate OK [00:36:13]wFMCommunicate request_size=170 [00:36:13]MH_SAM_APDU [00:36:13]CAPDU: 80 0D 02 02 A5 FC 03 06 00 EC 72 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 94 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 72 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 79 7D E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1C 6A 01 00 35 04 06 00 04 0C 6E 19 B2 BF [00:36:13]Write to MH i2c: E2 AD 00 EE 02 80 0D 02 02 A5 00 FC 03 06 00 EC 72 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 94 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 72 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 79 7D E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1C 6A 01 00 35 04 06 00 04 0C 6E 19 B2 BF 00 00 A5 [00:36:13]Write i2c OK [00:36:13]MH_I2C_Read... [00:36:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:13]Read from MH i2c: E2 [00:36:13]MH_I2C_Read... [00:36:13]Read from MH i2c: E2 03 00 [00:36:13]MH_I2C_Read... [00:36:13]Read from MH i2c: E2 03 00 EE 02 00 90 00 64 [00:36:13]RAPDU: 90 00 [00:36:13]wFMCommunicate OK [00:36:13]wFMCommunicate request_size=4 [00:36:13]MH_SAM_APDU [00:36:13]CAPDU: 80 0D 03 02 [00:36:13]Write to MH i2c: E2 08 00 EF 02 80 0D 03 02 00 00 00 00 6C [00:36:13]Write i2c OK [00:36:13]MH_I2C_Read... [00:36:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:36:13]Read from MH i2c: E2 [00:36:13]MH_I2C_Read... [00:36:13]Read from MH i2c: E2 0B 00 [00:36:13]MH_I2C_Read... [00:36:13]Read from MH i2c: E2 0B 00 EF 02 00 3E 78 14 08 57 E3 CF 84 90 00 CC [00:36:13]RAPDU: 3E 78 14 08 57 E3 CF 84 90 00 [00:36:13]wFMCommunicate OK [00:36:13]SAM_PROTO_SignData done [00:36:13]FM_MakeSignedData done [00:36:13]CreateOFDProtocolMessage [00:36:13]wFMCommunicate request_size=4 [00:36:13]MH_SAM_APDU [00:36:13]CAPDU: 80 11 00 00 [00:36:13]Write to MH i2c: E2 08 00 F0 02 80 11 00 00 00 00 00 00 6C [00:36:13]Write i2c OK [00:36:13]MH_I2C_Read... [00:36:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:13]Read from MH i2c: E2 [00:36:13]MH_I2C_Read... [00:36:13]Read from MH i2c: E2 17 00 [00:36:13]MH_I2C_Read... [00:36:13]Read from MH i2c: E2 17 00 F0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C3 [00:36:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:36:13]wFMCommunicate OK [00:36:13]CreateOFDProtocolMessage done [00:36:13]OFDSenderStorePacket 92700 [00:36:13]StoreOFDPacket docnum=92700 [00:36:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 8B 07 00 00 E7 28 83 07 FC 72 5A 03 01 00 03 00 77 07 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 37 35 30 31 30 36 34 31 39 33 39 37 32 06 04 2D 00 D0 9F D0 B8 D0 B2 D0 BE 20 43 6F 72 6F 6E 61 20 45 78 74 72 61 20 D1 81 D0 B2 D0 B5 D1 82 D0 BB D0 BE D0 B5 20 30 2C 33 35 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 5B 00 00 00 00 13 04 06 00 CC 5B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 33 30 32 06 04 2E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 37 20 D1 8D D0 BA D1 81 D0 BF 20 30 2C 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 39 34 35 30 06 04 2D 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 39 20 D0 BA D1 80 D0 B5 D0 BF 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 32 35 38 06 04 22 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D0 B1 D0 B0 D0 BD D0 BA D0 B0 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 9C 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 35 36 36 06 04 36 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A5 D1 83 D0 B3 D0 B0 D1 80 D0 B4 D0 B5 D0 BD 20 D0 B1 D0 B5 D0 BB 20 D0 BD D0 B5 D1 84 D0 B8 D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 53 00 00 00 00 13 04 06 00 34 53 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 38 37 30 30 36 36 30 30 30 34 37 36 06 04 48 00 D0 9F D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 D0 90 D0 BB D0 BC D0 B0 D1 82 D0 B8 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 D0 9F D1 80 D0 BE D0 B4 D1 83 D0 BA D1 82 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B5 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 0A 00 00 00 00 13 04 06 00 8C 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 34 32 34 36 06 04 3B 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 D0 94 D0 B6 D0 B5 D0 BB D0 BB D0 B8 20 D0 9A D1 83 D0 BA D0 B8 D1 81 20 D0 BC D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 33 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 37 36 32 32 32 31 30 33 30 39 33 39 36 06 04 1D 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 22 4F 52 45 4F 22 20 33 38 20 D0 B3 D1 80 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 F4 7E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 36 39 32 31 32 30 37 37 30 30 34 35 33 06 04 24 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 56 69 65 20 54 65 78 20 33 D1 88 D1 82 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 E8 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 38 35 39 31 32 30 37 37 37 37 37 39 33 06 04 25 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 D1 8B 20 44 61 74 65 78 20 31 32 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 B2 00 00 00 00 13 04 06 00 84 B2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 35 31 37 38 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 70 61 72 6B 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 31 33 06 04 21 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 33 38 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 44 61 20 30 2C 39 35 D0 BB 20 D0 92 D0 B8 D1 88 D0 BD D1 8F FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D [00:36:13]CheckFolder [00:36:13]dirname=/storage/ofd_packets [00:36:13]CheckFolder done [00:36:13]ProducePacketName [00:36:13]name=ofd_packets/00092700 [00:36:13]NVStorageSaveData ofd_packets/00092700 [00:36:13]File name is /storage/ofd_packets/00092700 [00:36:13]Write 1961 bytes [00:36:13]NVStorageSaveData done [00:36:13]OFDSenderStorePacket done [00:36:13]KKMCreateOFDPacket done [00:36:13]NVStorageSaveData kkm_last_timestamp [00:36:13]File name is /storage/kkm_last_timestamp [00:36:13]Write 4 bytes [00:36:13]NVStorageSaveData done [00:36:13]ExternCall_PrintAddStr [00:36:13]wPrintStart [00:36:13]Write to MH i2c: 01 00 00 F1 02 F3 [00:36:13]Write i2c OK [00:36:13]MH_I2C_Read... [00:36:13]Read from MH i2c: 01 [00:36:13]MH_I2C_Read... [00:36:13]Read from MH i2c: 01 07 00 [00:36:13]MH_I2C_Read... [00:36:13]Read from MH i2c: 01 07 00 F1 02 00 00 00 00 00 FF 0F 08 [00:36:13]RasterBufferAndPrint [00:36:13]line Счет N : (3)127586 [00:36:13]line ИНН: 02508201610067 [00:36:13]line Контрольно-Кассовый Чек [00:36:13]line ПРОДАЖА [00:36:13]line Товар: 7501064193972 [00:36:13]line Пиво Corona Extra светлое 0,355 л [00:36:13]line 1.000 * 235.00 [00:36:13]line = 235.00 [00:36:13]line НДС 12% НСП 1% [00:36:13]line > о реализуемом товаре [00:36:13]line Товар: 4870145004302 [00:36:13]line Пиво Балтика 7 эксп 0,5л ж/б [00:36:13]line 1.000 * 120.00 [00:36:13]line = 120.00 [00:36:13]line НДС 12% НСП 1% [00:36:13]line > о реализуемом товаре [00:36:13]line Товар: 4600682009450 [00:36:13]line Пиво Балтика 9 креп 0,5л ст [00:36:13]line 2.000 * 120.00 [00:36:13]line = 240.00 [00:36:13]line НДС 12% НСП 1% [00:36:13]line > о реализуемом товаре [00:36:13]line Товар: 4700000480258 [00:36:13]line Пиво Живое 0,5 банка [00:36:13]line 3.000 * 85.00 [00:36:13]line = 255.00 [00:36:13]line НДС 12% НСП 1% [00:36:13]line > о реализуемом товаре [00:36:13]line Товар: 4600721021566 [00:36:13]line Пиво Хугарден бел нефил 0,5л ст [00:36:13]line 1.000 * 213.00 [00:36:13]line = 213.00 [00:36:13]line НДС 12% НСП 1% [00:36:13]line > о реализуемом товаре [00:36:13]line Товар: 4870066000476 [00:36:13]line Палочки Алматинский Продукт сладкие 50г [00:36:13]line 1.000 * 27.00 [00:36:13]line = 27.00 [00:36:13]line НДС 12% НСП 1% [00:36:13]line > о реализуемом товаре [00:36:13]line Товар: 4823077634246 [00:36:13]line Печ LOVITA Джелли Кукис малина 135 гр [00:36:13]line 1.000 * 115.00 [00:36:13]line = 115.00 [00:36:13]line НДС 12% НСП 1% [00:36:13]line > о реализуемом товаре [00:36:13]line Товар: 7622210309396 [00:36:13]line Печенье "OREO" 38 гр [00:36:13]line 5.000 * 65.00 [00:36:13]line = 325.00 [00:36:13]line НДС 12% НСП 1% [00:36:13]line > о реализуемом товаре [00:36:13]line Товар: 6921207700453 [00:36:13]line Презерватив Vie Tex 3шт [00:36:13]line 5.000 * 130.00 [00:36:13]line = 650.00 [00:36:13]line НДС 12% НСП 1% [00:36:13]line > о реализуемом товаре [00:36:13]line Товар: 8591207777793 [00:36:13]line Презервативы Datex 12шт [00:36:13]line 1.000 * 457.00 [00:36:13]line = 457.00 [00:36:13]line НДС 12% НСП 1% [00:36:13]line > о реализуемом товаре [00:36:13]line Товар: 48745178 [00:36:13]line Сигареты Winston Sparkle Mix [00:36:13]line 1.000 * 144.00 [00:36:13]line = 144.00 [00:36:13]line НДС 12% НСП 1% [00:36:13]line > о реализуемом товаре [00:36:13]line Товар: 4870001150013 [00:36:14]line Сок Da-Da 1л апельсин [00:36:14]line 2.000 * 150.00 [00:36:14]line = 300.00 [00:36:14]line НДС 12% НСП 1% [00:36:14]line > о реализуемом товаре [00:36:14]line Товар: 4870001150389 [00:36:14]line Сок DaDa 0,95л Вишня [00:36:14]line 2.000 * 150.00 [00:36:14]line = 300.00 [00:36:14]line НДС 12% НСП 1% [00:36:14]line > о реализуемом товаре [00:36:14]line Товар: 4700003010056 [00:36:14]line Чай хол Let`s Go! зел лим ПЭТ 1,25л [00:36:14]line 1.000 * 95.00 [00:36:14]line = 95.00 [00:36:14]line НДС 12% НСП 1% [00:36:14]line > о реализуемом товаре [00:36:14]line Товар: 4700003010087 [00:36:14]line Чай хол Lets Go зел чай ябл-гр ПЭТ 1,2л [00:36:14]line 1.000 * 95.00 [00:36:14]line = 95.00 [00:36:14]line НДС 12% НСП 1% [00:36:14]line > о реализуемом товаре [00:36:14]line ИТОГО: 3571.00 [00:36:14]line НСП 1% : 31.58 [00:36:14]line НДС 12% : 379.23 [00:36:14]line Наличными: 0.00 [00:36:14]line Безнал.: 3571.00 [00:36:14]line Место: АЗС № 5 "Партнер Нефть" [00:36:14]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [00:36:14]line СНО: Общий режим [00:36:14]line Чек 3 16.09.2024 00:36 [00:36:14]line Смена: 508 ФФД: 1.0 [00:36:14]line ЗНМ: 03000000022 [00:36:14]line РНМ: 0000000000091423 [00:36:14]line Версия ККМ: 001 [00:36:14]line Платежная система: О! деньги [00:36:14]line ФМ: 0000000000874692 [00:36:14]line ФД: 92700 [00:36:14]line ФПД: 4451433296575 [00:36:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T003609&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92700&fm=4451433296575&tin=02508201610067®Number=0000000000091423&sum=357100 [00:36:14]line 0 [00:36:14]OFD Sender: Processing packet 92700 [packets to send 63, broken 62] [00:36:14]ProducePacketName [00:36:14]name=ofd_packets/00092700 [00:36:14]OFD Sender: To server: pG, [00:36:14]CommunicateWithHost lk.salyk.kg:30040 [00:36:14]ConnectInit lk.salyk.kg [00:36:14]written 0, free lines is 4095 [00:36:14]Connected sock=8 [00:36:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 8B 07 00 00 E7 28 83 07 FC 72 5A 03 01 00 03 00 77 07 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 37 35 30 31 30 36 34 31 39 33 39 37 32 06 04 2D 00 D0 9F D0 B8 D0 B2 D0 BE 20 43 6F 72 6F 6E 61 20 45 78 74 72 61 20 D1 81 D0 B2 D0 B5 D1 82 D0 BB D0 BE D0 B5 20 30 2C 33 35 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 5B 00 00 00 00 13 04 06 00 CC 5B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 33 30 32 06 04 2E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 37 20 D1 8D D0 BA D1 81 D0 BF 20 30 2C 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 39 34 35 30 06 04 2D 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 39 20 D0 BA D1 80 D0 B5 D0 BF 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 32 35 38 06 04 22 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D0 B1 D0 B0 D0 BD D0 BA D0 B0 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 9C 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 35 36 36 06 04 36 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A5 D1 83 D0 B3 D0 B0 D1 80 D0 B4 D0 B5 D0 BD 20 D0 B1 D0 B5 D0 BB 20 D0 BD D0 B5 D1 84 D0 B8 D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 53 00 00 00 00 13 04 06 00 34 53 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 38 37 30 30 36 36 30 30 30 34 37 36 06 04 48 00 D0 9F D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 D0 90 D0 BB D0 BC D0 B0 D1 82 D0 B8 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 D0 9F D1 80 D0 BE D0 B4 D1 83 D0 BA D1 82 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B5 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 0A 00 00 00 00 13 04 06 00 8C 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 34 32 34 36 06 04 3B 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 D0 94 D0 B6 D0 B5 D0 BB D0 BB D0 B8 20 D0 9A D1 83 D0 BA D0 B8 D1 81 20 D0 BC D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 33 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 37 36 32 32 32 31 30 33 30 39 33 39 36 06 04 1D 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 22 4F 52 45 4F 22 20 33 38 20 D0 B3 D1 80 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 F4 7E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 36 39 32 31 32 30 37 37 30 30 34 35 33 06 04 24 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 56 69 65 20 54 65 78 20 33 D1 88 D1 82 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 E8 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 38 35 39 31 32 30 37 37 37 37 37 39 33 06 04 25 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 D1 8B 20 44 61 74 65 78 20 31 32 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 B2 00 00 00 00 13 04 06 00 84 B2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 35 31 37 38 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 70 61 72 6B 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 31 33 06 04 21 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 33 38 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 44 61 20 30 2C 39 35 D0 BB 20 D0 92 D0 B8 D1 88 D0 BD D1 8F FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 72 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 94 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 72 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 79 7D E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1C 6A 01 00 35 04 06 00 04 0C 6E 19 B2 BF 3E 78 14 08 57 E3 CF 84 [00:36:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 D1 DD 47 00 AF 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1C 6A 01 00 F4 03 04 00 F3 25 E7 66 B6 04 01 00 00 11 65 EF 3A 24 D3 89 8C [00:36:15]CommunicateWithHost err = 0 [00:36:15]CheckOFDResponse [00:36:15]1017 (14) - 77093643461234 [00:36:15]1041 (16) - 0000000000874692 [00:36:15]1040 (4) - 92700 [00:36:15]1012 (4) - 15.09.2024 18:22 [00:36:15]1206 (1) - 0 [00:36:15]OFD Sender: Remove packet 92700 [00:36:15]ProducePacketName [00:36:15]name=ofd_packets/00092700 [00:36:15]NVStorageDeleteData [00:36:15]OFD Sender: No OFD packet to send [00:36:15]Write to MH i2c: 01 00 00 75 03 78 [00:36:15]Write i2c OK [00:36:15]MH_I2C_Read... [00:36:15]Read from MH i2c: 01 [00:36:15]MH_I2C_Read... [00:36:15]Read from MH i2c: 01 07 00 [00:36:15]MH_I2C_Read... [00:36:15]Read from MH i2c: 01 07 00 75 03 00 00 00 00 00 B5 08 3C [00:36:15]RasterBufferAndPrint [00:36:15]line [00:36:15]line [00:36:15]line [00:36:15]line [00:36:15]line [00:36:15]written 0, free lines is 2253 [00:36:15]MH_Cut [00:36:15]Write to MH i2c: D1 01 00 7C 03 01 51 [00:36:15]Write i2c OK [00:36:15]MH_I2C_Read... [00:36:15]Read from MH i2c: D1 [00:36:15]MH_I2C_Read... [00:36:15]Read from MH i2c: D1 01 00 [00:36:15]MH_I2C_Read... [00:36:15]Read from MH i2c: D1 01 00 7C 03 00 50 [00:36:15]Write to MH i2c: 01 00 00 7D 03 80 [00:36:15]Write i2c OK [00:36:15]MH_I2C_Read... [00:36:17]*** Cut start [00:36:17]*** Purtial cut [00:36:17]*** Stage 1: CUTSNS_PIN = 1 [00:36:19]Read from MH i2c: 01 [00:36:19]MH_I2C_Read... [00:36:19]*** Stop cut motor [00:36:19]*** Cut end [00:36:19]Read from MH i2c: 01 07 00 [00:36:19]MH_I2C_Read... [00:36:19]Read from MH i2c: 01 07 00 7D 03 00 00 00 00 00 FF 0F 95 [00:36:19]process_action close_receipt done [00:36:19]requested_data is exist [00:36:19]produce_requested_data [00:36:19]requested_item fm.sn is exist - process it [00:36:19]wFMCommunicate request_size=4 [00:36:19]MH_SAM_APDU [00:36:19]CAPDU: 80 11 00 00 [00:36:19]Write to MH i2c: E2 08 00 7E 03 80 11 00 00 00 00 00 00 FB [00:36:19]Write i2c OK [00:36:19]MH_I2C_Read... [00:36:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:19]Read from MH i2c: E2 [00:36:19]MH_I2C_Read... [00:36:19]Read from MH i2c: E2 17 00 [00:36:19]MH_I2C_Read... [00:36:19]Read from MH i2c: E2 17 00 7E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 52 [00:36:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:36:19]wFMCommunicate OK [00:36:19]requested_item fd.num is exist - process it [00:36:19]SAM_PROTO_GetFieldsCounters [00:36:19]wFMCommunicate request_size=4 [00:36:19]MH_SAM_APDU [00:36:19]CAPDU: 80 13 00 00 [00:36:19]Write to MH i2c: E2 08 00 7F 03 80 13 00 00 00 00 00 00 FE [00:36:19]Write i2c OK [00:36:19]MH_I2C_Read... [00:36:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:36:19]Read from MH i2c: E2 [00:36:19]MH_I2C_Read... [00:36:19]Read from MH i2c: E2 62 00 [00:36:19]MH_I2C_Read... [00:36:19]Read from MH i2c: E2 62 00 7F 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 1C 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [00:36:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 1C 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:36:19]wFMCommunicate OK [00:36:19]SAM_PROTO_GetFieldsCounters done [00:36:19]requested_item shift.num is exist - process it [00:36:19]requested_item shift.opened is exist - process it [00:36:19]req_shift_opened [00:36:19]FM_GetShiftState [00:36:19]SAM_PROTO_GetShiftState [00:36:19]wFMCommunicate request_size=4 [00:36:19]MH_SAM_APDU [00:36:19]CAPDU: 80 13 01 00 [00:36:19]Write to MH i2c: E2 08 00 80 03 80 13 01 00 00 00 00 00 00 [00:36:19]Write i2c OK [00:36:19]MH_I2C_Read... [00:36:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:19]Read from MH i2c: E2 [00:36:19]MH_I2C_Read... [00:36:19]Read from MH i2c: E2 0E 00 [00:36:19]MH_I2C_Read... [00:36:19]Read from MH i2c: E2 0E 00 80 03 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 99 [00:36:19]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [00:36:19]wFMCommunicate OK [00:36:19]SAM_PROTO_GetShiftState done [00:36:19]FM_GetShiftState done [00:36:19]req_shift_opened done [00:36:19]requested_item shift.open_date is exist - process it [00:36:19]req_shift_open_date [00:36:19]req_shift_open_date done [00:36:19]produce_requested_data done [00:36:19]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92700,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278} [00:36:19]process_action_free close_receipt [00:36:19]json_value_free [00:36:19]json_value_free done [00:36:19]process_json_proto returns [00:36:19]Send response to host [00:36:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92700,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278}}} [00:36:19]free response buf [00:36:19]execute_script done [00:36:19]execute_script returns [00:36:19]free content buf [00:36:19]Sock 6.Close socket [00:36:19]Sock 6.Thread stoped [00:36:20]accept exits with 7 [00:36:20]New connection [00:36:20]New thread 3066752356 created [00:36:20]Thread 3066608996 joined [00:36:20]Waiting for new connection... [00:36:20] Sock 7.Parse request [00:36:20]Sock 7.Check first char [00:36:20]Sock 7.First char is OK [00:36:20]request: POST /json_proto HTTP/1.0 [00:36:20]Method: POST [00:36:20]URL: /json_proto [00:36:20]Method is POST - this is cgi request [00:36:20]url: /json_proto [00:36:20]query_string will be loaded in cgi processing [00:36:20]execute_cgi json_proto POST (null) [00:36:20]execute_cgi path=json_proto method=POST [00:36:20]POST find Content-Length [00:36:20]Host: 172.17.57.71:8080 [00:36:20]Content-Length: 660 [00:36:20]Content-Type: application/json [00:36:20] [00:36:20]POST finish read [00:36:20]Found Content-Length = 660 [00:36:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127588", "tax_sys" : 0, "items" : [ { "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:20]execute_script... [00:36:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127588", "tax_sys" : 0, "items" : [ { "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:20]POST & json_proto [00:36:20]process_json_proto [00:36:20]json parsed OK: [00:36:20]protocol is kg_v1.0 [00:36:20]action value=close_receipt [00:36:20]process_action close_receipt [00:36:20]cmd_close_receipt [00:36:20]MH_GetDate [00:36:20]Write to MH i2c: F0 00 00 81 03 73 [00:36:20]Write i2c OK [00:36:20]MH_I2C_Read... [00:36:20]Read from MH i2c: F0 [00:36:20]MH_I2C_Read... [00:36:20]Read from MH i2c: F0 09 00 [00:36:20]MH_I2C_Read... [00:36:20]Read from MH i2c: F0 09 00 81 03 00 84 7D E7 66 33 3A A4 66 41 [00:36:20]GetLastDocTimeStamp 1726446969 [00:36:20]current date 1726446980 [00:36:20]FM_GetShiftState [00:36:20]SAM_PROTO_GetShiftState [00:36:20]wFMCommunicate request_size=4 [00:36:20]MH_SAM_APDU [00:36:20]CAPDU: 80 13 01 00 [00:36:20]Write to MH i2c: E2 08 00 82 03 80 13 01 00 00 00 00 00 02 [00:36:20]Write i2c OK [00:36:20]MH_I2C_Read... [00:36:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:20]Read from MH i2c: E2 [00:36:20]MH_I2C_Read... [00:36:20]Read from MH i2c: E2 0E 00 [00:36:20]MH_I2C_Read... [00:36:20]Read from MH i2c: E2 0E 00 82 03 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 9B [00:36:20]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [00:36:20]wFMCommunicate OK [00:36:20]SAM_PROTO_GetShiftState done [00:36:20]FM_GetShiftState done [00:36:20]opened in 1726446278 [00:36:20]opened+sec_in_day 1726532678 [00:36:20]quantity*price = 15500 [00:36:20]sum+1 = 15501 [00:36:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 4 16.09.2024 00:36 Смена: 508 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92701 ФПД: 114569948328255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T003621&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92701&fm=114569948328255&tin=02508201610067®Number=0000000000091423&sum=15500 0 [00:36:22]StoreToDocumentArchive [00:36:22]shift 508 fd 92701 [00:36:22]save to /storage/0508/doc_00092701 [00:36:22]save last doc name /storage/0508/doc_00092701 to /storage/kkm_last_doc_name [00:36:22]save OK [00:36:22]Clear old archive folders... [00:36:22]ProcessDocumentItem done err = 0, tmpTLVsize=280 [00:36:22]tlvbuf is 017584B0 [00:36:22]SAM_PROTO_ClearQueue [00:36:22]wFMCommunicate request_size=4 [00:36:22]MH_SAM_APDU [00:36:22]CAPDU: 80 09 00 00 [00:36:22]Write to MH i2c: E2 08 00 8F 03 80 09 00 00 00 00 00 00 04 [00:36:22]Write i2c OK [00:36:22]MH_I2C_Read... [00:36:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:36:22]Read from MH i2c: E2 [00:36:22]MH_I2C_Read... [00:36:22]Read from MH i2c: E2 03 00 [00:36:22]MH_I2C_Read... [00:36:22]Read from MH i2c: E2 03 00 8F 03 00 90 00 06 [00:36:22]RAPDU: 90 00 [00:36:22]wFMCommunicate OK [00:36:22]SAM_PROTO_ClearQueue done [00:36:22]KKMCreateOFDPacket [00:36:22]OFDProtocolAddRootSTLVToBuf [00:36:22]FM_MakeSignedData [00:36:22]FM_MakeSignedData [00:36:22]SAM_PROTO_SignData [00:36:22]wFMCommunicate request_size=4 [00:36:22]MH_SAM_APDU [00:36:22]CAPDU: 80 0D 01 02 [00:36:22]Write to MH i2c: E2 08 00 90 03 80 0D 01 02 00 00 00 00 0C [00:36:22]Write i2c OK [00:36:22]MH_I2C_Read... [00:36:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:36:22]Read from MH i2c: E2 [00:36:22]MH_I2C_Read... [00:36:22]Read from MH i2c: E2 03 00 [00:36:22]MH_I2C_Read... [00:36:22]Read from MH i2c: E2 03 00 90 03 00 90 00 07 [00:36:22]RAPDU: 90 00 [00:36:22]wFMCommunicate OK [00:36:22]wFMCommunicate request_size=255 [00:36:22]MH_SAM_APDU [00:36:22]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 85 7D E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 [00:36:22]Write to MH i2c: E2 02 01 91 03 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 85 7D E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 00 00 6F [00:36:22]Write i2c OK [00:36:22]MH_I2C_Read... [00:36:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:22]Read from MH i2c: E2 [00:36:22]MH_I2C_Read... [00:36:22]Read from MH i2c: E2 03 00 [00:36:22]MH_I2C_Read... [00:36:22]Read from MH i2c: E2 03 00 91 03 00 90 00 08 [00:36:22]RAPDU: 90 00 [00:36:22]wFMCommunicate OK [00:36:22]wFMCommunicate request_size=39 [00:36:22]MH_SAM_APDU [00:36:22]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1D 6A 01 00 35 04 06 00 68 33 65 12 71 3F [00:36:22]Write to MH i2c: E2 2A 00 92 03 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1D 6A 01 00 35 04 06 00 68 33 65 12 71 3F 00 00 18 [00:36:22]Write i2c OK [00:36:22]MH_I2C_Read... [00:36:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:23]Read from MH i2c: E2 [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: E2 03 00 [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: E2 03 00 92 03 00 90 00 09 [00:36:23]RAPDU: 90 00 [00:36:23]wFMCommunicate OK [00:36:23]wFMCommunicate request_size=4 [00:36:23]MH_SAM_APDU [00:36:23]CAPDU: 80 0D 03 02 [00:36:23]Write to MH i2c: E2 08 00 93 03 80 0D 03 02 00 00 00 00 11 [00:36:23]Write i2c OK [00:36:23]MH_I2C_Read... [00:36:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:36:23]Read from MH i2c: E2 [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: E2 0B 00 [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: E2 0B 00 93 03 00 AF AE 2E 58 E9 F8 80 EB 90 00 41 [00:36:23]RAPDU: AF AE 2E 58 E9 F8 80 EB 90 00 [00:36:23]wFMCommunicate OK [00:36:23]SAM_PROTO_SignData done [00:36:23]FM_MakeSignedData done [00:36:23]CreateOFDProtocolMessage [00:36:23]wFMCommunicate request_size=4 [00:36:23]MH_SAM_APDU [00:36:23]CAPDU: 80 11 00 00 [00:36:23]Write to MH i2c: E2 08 00 94 03 80 11 00 00 00 00 00 00 11 [00:36:23]Write i2c OK [00:36:23]MH_I2C_Read... [00:36:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:23]Read from MH i2c: E2 [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: E2 17 00 [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: E2 17 00 94 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 68 [00:36:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:36:23]wFMCommunicate OK [00:36:23]CreateOFDProtocolMessage done [00:36:23]OFDSenderStorePacket 92701 [00:36:23]StoreOFDPacket docnum=92701 [00:36:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2C 01 00 00 DB C4 24 01 AE 37 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 85 7D E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1D 6A 01 00 35 04 06 00 68 33 65 12 71 3F AF AE 2E 58 E9 F8 80 EB [00:36:23]CheckFolder [00:36:23]dirname=/storage/ofd_packets [00:36:23]CheckFolder done [00:36:23]ProducePacketName [00:36:23]name=ofd_packets/00092701 [00:36:23]NVStorageSaveData ofd_packets/00092701 [00:36:23]File name is /storage/ofd_packets/00092701 [00:36:23]Write 330 bytes [00:36:23]NVStorageSaveData done [00:36:23]OFDSenderStorePacket done [00:36:23]KKMCreateOFDPacket done [00:36:23]NVStorageSaveData kkm_last_timestamp [00:36:23]File name is /storage/kkm_last_timestamp [00:36:23]Write 4 bytes [00:36:23]NVStorageSaveData done [00:36:23]ExternCall_PrintAddStr [00:36:23]wPrintStart [00:36:23]Write to MH i2c: 01 00 00 95 03 98 [00:36:23]Write i2c OK [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: 01 [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: 01 07 00 [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: 01 07 00 95 03 00 00 00 00 00 FF 0F AD [00:36:23]RasterBufferAndPrint [00:36:23]line Счет N : (3)127588 [00:36:23]line ИНН: 02508201610067 [00:36:23]line Контрольно-Кассовый Чек [00:36:23]line ПРОДАЖА [00:36:23]line Товар: 5449000000439 [00:36:23]line Напиток Кока-Кола 1,5л [00:36:23]line 1.000 * 155.00 [00:36:23]line = 155.00 [00:36:23]line НДС 12% НСП 1% [00:36:23]line > о реализуемом товаре [00:36:23]line ИТОГО: 155.00 [00:36:23]line НСП 1% : 1.37 [00:36:23]line НДС 12% : 16.46 [00:36:23]line Наличными: 155.00 [00:36:23]line Безнал.: 0.00 [00:36:23]line Место: АЗС № 5 "Партнер Нефть" [00:36:23]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [00:36:23]line СНО: Общий режим [00:36:23]line Чек 4 16.09.2024 00:36 [00:36:23]line Смена: 508 ФФД: 1.0 [00:36:23]line ЗНМ: 03000000022 [00:36:23]line РНМ: 0000000000091423 [00:36:23]line Версия ККМ: 001 [00:36:23]line ФМ: 0000000000874692 [00:36:23]line ФД: 92701 [00:36:23]line ФПД: 114569948328255 [00:36:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T003621&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92701&fm=114569948328255&tin=02508201610067®Number=0000000000091423&sum=15500 [00:36:23]line 0 [00:36:23]written 0, free lines is 4095 [00:36:23]OFD Sender: Processing packet 92701 [packets to send 63, broken 62] [00:36:23]ProducePacketName [00:36:23]name=ofd_packets/00092701 [00:36:23]OFD Sender: To server: pG, [00:36:23]CommunicateWithHost lk.salyk.kg:30040 [00:36:23]ConnectInit lk.salyk.kg [00:36:23]Connected sock=8 [00:36:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2C 01 00 00 DB C4 24 01 AE 37 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 85 7D E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1D 6A 01 00 35 04 06 00 68 33 65 12 71 3F AF AE 2E 58 E9 F8 80 EB [00:36:23]Write to MH i2c: 01 00 00 BD 03 C0 [00:36:23]Write i2c OK [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: 01 [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: 01 07 00 [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: 01 07 00 BD 03 00 00 00 00 00 22 0D F6 [00:36:23]RasterBufferAndPrint [00:36:23]line [00:36:23]line [00:36:23]line [00:36:23]line [00:36:23]line [00:36:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 AB 04 47 00 AF 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1D 6A 01 00 F4 03 04 00 FC 25 E7 66 B6 04 01 00 00 0C C9 3D 7F 7A 6B 0B 37 [00:36:23]CommunicateWithHost err = 0 [00:36:23]CheckOFDResponse [00:36:23]1017 (14) - 77093643461234 [00:36:23]1041 (16) - 0000000000874692 [00:36:23]1040 (4) - 92701 [00:36:23]1012 (4) - 15.09.2024 18:22 [00:36:23]1206 (1) - 0 [00:36:23]OFD Sender: Remove packet 92701 [00:36:23]ProducePacketName [00:36:23]name=ofd_packets/00092701 [00:36:23]NVStorageDeleteData [00:36:23]written 0, free lines is 3393 [00:36:23]MH_Cut [00:36:23]Write to MH i2c: D1 01 00 C4 03 01 99 [00:36:23]Write i2c OK [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: D1 [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: D1 01 00 [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: D1 01 00 C4 03 00 98 [00:36:23]Write to MH i2c: 01 00 00 C5 03 C8 [00:36:23]Write i2c OK [00:36:23]MH_I2C_Read... [00:36:24]*** Cut start [00:36:24]*** Purtial cut [00:36:24]*** Stage 1: CUTSNS_PIN = 1 [00:36:24]OFD Sender: No OFD packet to send [00:36:26]Read from MH i2c: 01 [00:36:26]MH_I2C_Read... [00:36:26]*** Stop cut motor [00:36:26]*** Cut end [00:36:26]Read from MH i2c: 01 07 00 [00:36:26]MH_I2C_Read... [00:36:26]Read from MH i2c: 01 07 00 C5 03 00 00 00 00 00 FF 0F DD [00:36:26]process_action close_receipt done [00:36:26]requested_data is exist [00:36:26]produce_requested_data [00:36:26]requested_item fm.sn is exist - process it [00:36:26]wFMCommunicate request_size=4 [00:36:26]MH_SAM_APDU [00:36:26]CAPDU: 80 11 00 00 [00:36:26]Write to MH i2c: E2 08 00 C6 03 80 11 00 00 00 00 00 00 43 [00:36:26]Write i2c OK [00:36:26]MH_I2C_Read... [00:36:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:26]Read from MH i2c: E2 [00:36:26]MH_I2C_Read... [00:36:26]Read from MH i2c: E2 17 00 [00:36:26]MH_I2C_Read... [00:36:26]Read from MH i2c: E2 17 00 C6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 9A [00:36:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:36:26]wFMCommunicate OK [00:36:26]requested_item fd.num is exist - process it [00:36:26]SAM_PROTO_GetFieldsCounters [00:36:26]wFMCommunicate request_size=4 [00:36:26]MH_SAM_APDU [00:36:26]CAPDU: 80 13 00 00 [00:36:26]Write to MH i2c: E2 08 00 C7 03 80 13 00 00 00 00 00 00 46 [00:36:26]Write i2c OK [00:36:26]MH_I2C_Read... [00:36:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:36:26]Read from MH i2c: E2 [00:36:26]MH_I2C_Read... [00:36:26]Read from MH i2c: E2 62 00 [00:36:26]MH_I2C_Read... [00:36:26]Read from MH i2c: E2 62 00 C7 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 1D 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [00:36:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 1D 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:36:26]wFMCommunicate OK [00:36:26]SAM_PROTO_GetFieldsCounters done [00:36:26]requested_item shift.num is exist - process it [00:36:26]requested_item shift.opened is exist - process it [00:36:26]req_shift_opened [00:36:26]FM_GetShiftState [00:36:26]SAM_PROTO_GetShiftState [00:36:26]wFMCommunicate request_size=4 [00:36:26]MH_SAM_APDU [00:36:26]CAPDU: 80 13 01 00 [00:36:26]Write to MH i2c: E2 08 00 C8 03 80 13 01 00 00 00 00 00 48 [00:36:26]Write i2c OK [00:36:26]MH_I2C_Read... [00:36:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:26]Read from MH i2c: E2 [00:36:26]MH_I2C_Read... [00:36:26]Read from MH i2c: E2 0E 00 [00:36:26]MH_I2C_Read... [00:36:26]Read from MH i2c: E2 0E 00 C8 03 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 E1 [00:36:26]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [00:36:26]wFMCommunicate OK [00:36:26]SAM_PROTO_GetShiftState done [00:36:26]FM_GetShiftState done [00:36:26]req_shift_opened done [00:36:26]requested_item shift.open_date is exist - process it [00:36:26]req_shift_open_date [00:36:26]req_shift_open_date done [00:36:26]produce_requested_data done [00:36:26]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92701,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278} [00:36:26]process_action_free close_receipt [00:36:26]json_value_free [00:36:26]json_value_free done [00:36:26]process_json_proto returns [00:36:26]Send response to host [00:36:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92701,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278}}} [00:36:26]free response buf [00:36:26]execute_script done [00:36:26]execute_script returns [00:36:26]free content buf [00:36:26]Sock 7.Close socket [00:36:26]Sock 7.Thread stoped [00:36:28]accept exits with 6 [00:36:28]New connection [00:36:28]New thread 3066608996 created [00:36:28]Thread 3066752356 joined [00:36:28]Waiting for new connection... [00:36:28] Sock 6.Parse request [00:36:28]Sock 6.Check first char [00:36:28]Sock 6.First char is OK [00:36:28]request: POST /json_proto HTTP/1.0 [00:36:28]Method: POST [00:36:28]URL: /json_proto [00:36:28]Method is POST - this is cgi request [00:36:28]url: /json_proto [00:36:28]query_string will be loaded in cgi processing [00:36:28]execute_cgi json_proto POST (null) [00:36:28]execute_cgi path=json_proto method=POST [00:36:28]POST find Content-Length [00:36:28]Host: 172.17.57.71:8080 [00:36:28]Content-Length: 623 [00:36:28]Content-Type: application/json [00:36:28] [00:36:28]POST finish read [00:36:28]Found Content-Length = 623 [00:36:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127589", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:28]execute_script... [00:36:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127589", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:28]POST & json_proto [00:36:28]process_json_proto [00:36:28]json parsed OK: [00:36:28]protocol is kg_v1.0 [00:36:28]action value=close_receipt [00:36:28]process_action close_receipt [00:36:28]cmd_close_receipt [00:36:28]MH_GetDate [00:36:28]Write to MH i2c: F0 00 00 C9 03 BB [00:36:28]Write i2c OK [00:36:28]MH_I2C_Read... [00:36:28]Read from MH i2c: F0 [00:36:28]MH_I2C_Read... [00:36:28]Read from MH i2c: F0 09 00 [00:36:28]MH_I2C_Read... [00:36:28]Read from MH i2c: F0 09 00 C9 03 00 8C 7D E7 66 33 3A A4 66 91 [00:36:28]GetLastDocTimeStamp 1726446981 [00:36:28]current date 1726446988 [00:36:28]FM_GetShiftState [00:36:28]SAM_PROTO_GetShiftState [00:36:28]wFMCommunicate request_size=4 [00:36:28]MH_SAM_APDU [00:36:28]CAPDU: 80 13 01 00 [00:36:28]Write to MH i2c: E2 08 00 CA 03 80 13 01 00 00 00 00 00 4A [00:36:28]Write i2c OK [00:36:28]MH_I2C_Read... [00:36:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:28]Read from MH i2c: E2 [00:36:28]MH_I2C_Read... [00:36:28]Read from MH i2c: E2 0E 00 [00:36:28]MH_I2C_Read... [00:36:28]Read from MH i2c: E2 0E 00 CA 03 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 E3 [00:36:28]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [00:36:28]wFMCommunicate OK [00:36:28]SAM_PROTO_GetShiftState done [00:36:28]FM_GetShiftState done [00:36:28]opened in 1726446278 [00:36:28]opened+sec_in_day 1726532678 [00:36:28]quantity*price = 14400 [00:36:28]sum+1 = 14401 [00:36:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 5 16.09.2024 00:36 Смена: 508 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92702 ФПД: 215261824742024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T003629&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92702&fm=215261824742024&tin=02508201610067®Number=0000000000091423&sum=14400 0 [00:36:30]StoreToDocumentArchive [00:36:30]shift 508 fd 92702 [00:36:30]save to /storage/0508/doc_00092702 [00:36:30]save last doc name /storage/0508/doc_00092702 to /storage/kkm_last_doc_name [00:36:30]save OK [00:36:30]Clear old archive folders... [00:36:30]ProcessDocumentItem done err = 0, tmpTLVsize=275 [00:36:30]tlvbuf is 016FB220 [00:36:30]SAM_PROTO_ClearQueue [00:36:30]wFMCommunicate request_size=4 [00:36:30]MH_SAM_APDU [00:36:30]CAPDU: 80 09 00 00 [00:36:30]Write to MH i2c: E2 08 00 D7 03 80 09 00 00 00 00 00 00 4C [00:36:30]Write i2c OK [00:36:30]MH_I2C_Read... [00:36:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:36:30]Read from MH i2c: E2 [00:36:30]MH_I2C_Read... [00:36:30]Read from MH i2c: E2 03 00 [00:36:30]MH_I2C_Read... [00:36:30]Read from MH i2c: E2 03 00 D7 03 00 90 00 4E [00:36:30]RAPDU: 90 00 [00:36:30]wFMCommunicate OK [00:36:30]SAM_PROTO_ClearQueue done [00:36:30]KKMCreateOFDPacket [00:36:30]OFDProtocolAddRootSTLVToBuf [00:36:30]FM_MakeSignedData [00:36:30]FM_MakeSignedData [00:36:30]SAM_PROTO_SignData [00:36:30]wFMCommunicate request_size=4 [00:36:30]MH_SAM_APDU [00:36:30]CAPDU: 80 0D 01 02 [00:36:30]Write to MH i2c: E2 08 00 D8 03 80 0D 01 02 00 00 00 00 54 [00:36:30]Write i2c OK [00:36:30]MH_I2C_Read... [00:36:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:36:30]Read from MH i2c: E2 [00:36:30]MH_I2C_Read... [00:36:30]Read from MH i2c: E2 03 00 [00:36:30]MH_I2C_Read... [00:36:30]Read from MH i2c: E2 03 00 D8 03 00 90 00 4F [00:36:30]RAPDU: 90 00 [00:36:30]wFMCommunicate OK [00:36:30]wFMCommunicate request_size=255 [00:36:30]MH_SAM_APDU [00:36:30]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 8D 7D E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 [00:36:30]Write to MH i2c: E2 02 01 D9 03 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 8D 7D E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 00 00 AC [00:36:30]Write i2c OK [00:36:30]MH_I2C_Read... [00:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:31]Read from MH i2c: E2 [00:36:31]MH_I2C_Read... [00:36:31]Read from MH i2c: E2 03 00 [00:36:31]MH_I2C_Read... [00:36:31]Read from MH i2c: E2 03 00 D9 03 00 90 00 50 [00:36:31]RAPDU: 90 00 [00:36:31]wFMCommunicate OK [00:36:31]wFMCommunicate request_size=34 [00:36:31]MH_SAM_APDU [00:36:31]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1E 6A 01 00 35 04 06 00 C3 C7 8C 98 F2 88 [00:36:31]Write to MH i2c: E2 25 00 DA 03 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1E 6A 01 00 35 04 06 00 C3 C7 8C 98 F2 88 00 00 CD [00:36:31]Write i2c OK [00:36:31]MH_I2C_Read... [00:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:31]Read from MH i2c: E2 [00:36:31]MH_I2C_Read... [00:36:31]Read from MH i2c: E2 03 00 [00:36:31]MH_I2C_Read... [00:36:31]Read from MH i2c: E2 03 00 DA 03 00 90 00 51 [00:36:31]RAPDU: 90 00 [00:36:31]wFMCommunicate OK [00:36:31]wFMCommunicate request_size=4 [00:36:31]MH_SAM_APDU [00:36:31]CAPDU: 80 0D 03 02 [00:36:31]Write to MH i2c: E2 08 00 DB 03 80 0D 03 02 00 00 00 00 59 [00:36:31]Write i2c OK [00:36:31]MH_I2C_Read... [00:36:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:36:31]Read from MH i2c: E2 [00:36:31]MH_I2C_Read... [00:36:31]Read from MH i2c: E2 0B 00 [00:36:31]MH_I2C_Read... [00:36:31]Read from MH i2c: E2 0B 00 DB 03 00 4B 2E 95 A9 9A B9 E9 E1 90 00 2E [00:36:31]RAPDU: 4B 2E 95 A9 9A B9 E9 E1 90 00 [00:36:31]wFMCommunicate OK [00:36:31]SAM_PROTO_SignData done [00:36:31]FM_MakeSignedData done [00:36:31]CreateOFDProtocolMessage [00:36:31]wFMCommunicate request_size=4 [00:36:31]MH_SAM_APDU [00:36:31]CAPDU: 80 11 00 00 [00:36:31]Write to MH i2c: E2 08 00 DC 03 80 11 00 00 00 00 00 00 59 [00:36:31]Write i2c OK [00:36:31]MH_I2C_Read... [00:36:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:31]Read from MH i2c: E2 [00:36:31]MH_I2C_Read... [00:36:31]Read from MH i2c: E2 17 00 [00:36:31]MH_I2C_Read... [00:36:31]Read from MH i2c: E2 17 00 DC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B0 [00:36:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:36:31]wFMCommunicate OK [00:36:31]CreateOFDProtocolMessage done [00:36:31]OFDSenderStorePacket 92702 [00:36:31]StoreOFDPacket docnum=92702 [00:36:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 2D F9 1F 01 EC EC 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 8D 7D E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1E 6A 01 00 35 04 06 00 C3 C7 8C 98 F2 88 4B 2E 95 A9 9A B9 E9 E1 [00:36:31]CheckFolder [00:36:31]dirname=/storage/ofd_packets [00:36:31]CheckFolder done [00:36:31]ProducePacketName [00:36:31]name=ofd_packets/00092702 [00:36:31]NVStorageSaveData ofd_packets/00092702 [00:36:31]File name is /storage/ofd_packets/00092702 [00:36:31]Write 325 bytes [00:36:31]NVStorageSaveData done [00:36:31]OFDSenderStorePacket done [00:36:31]KKMCreateOFDPacket done [00:36:31]NVStorageSaveData kkm_last_timestamp [00:36:31]File name is /storage/kkm_last_timestamp [00:36:31]Write 4 bytes [00:36:31]NVStorageSaveData done [00:36:31]ExternCall_PrintAddStr [00:36:31]wPrintStart [00:36:31]Write to MH i2c: 01 00 00 DD 03 E0 [00:36:31]Write i2c OK [00:36:31]MH_I2C_Read... [00:36:31]Read from MH i2c: 01 [00:36:31]MH_I2C_Read... [00:36:31]Read from MH i2c: 01 07 00 [00:36:31]MH_I2C_Read... [00:36:31]Read from MH i2c: 01 07 00 DD 03 00 00 00 00 00 FF 0F F5 [00:36:31]RasterBufferAndPrint [00:36:31]line Счет N : (3)127589 [00:36:31]line ИНН: 02508201610067 [00:36:31]line Контрольно-Кассовый Чек [00:36:31]line ПРОДАЖА [00:36:31]line Товар: 48743587 [00:36:31]line Сигареты Winston XStyle Silver [00:36:31]line 1.000 * 144.00 [00:36:31]line = 144.00 [00:36:31]line НДС 12% НСП 1% [00:36:31]line > о реализуемом товаре [00:36:31]line ИТОГО: 144.00 [00:36:31]line НСП 1% : 1.27 [00:36:31]line НДС 12% : 15.29 [00:36:31]line Наличными: 144.00 [00:36:31]line Безнал.: 0.00 [00:36:31]line Место: АЗС № 5 "Партнер Нефть" [00:36:31]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [00:36:31]line СНО: Общий режим [00:36:31]line Чек 5 16.09.2024 00:36 [00:36:31]line Смена: 508 ФФД: 1.0 [00:36:31]line ЗНМ: 03000000022 [00:36:31]line РНМ: 0000000000091423 [00:36:31]line Версия ККМ: 001 [00:36:31]line ФМ: 0000000000874692 [00:36:31]line ФД: 92702 [00:36:31]line ФПД: 215261824742024 [00:36:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T003629&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92702&fm=215261824742024&tin=02508201610067®Number=0000000000091423&sum=14400 [00:36:31]line 0 [00:36:31]OFD Sender: Processing packet 92702 [packets to send 63, broken 62] [00:36:31]ProducePacketName [00:36:31]name=ofd_packets/00092702 [00:36:31]OFD Sender: To server: pG, [00:36:31]CommunicateWithHost lk.salyk.kg:30040 [00:36:31]ConnectInit lk.salyk.kg [00:36:31]written 0, free lines is 4095 [00:36:31]Connected sock=8 [00:36:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 2D F9 1F 01 EC EC 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 8D 7D E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1E 6A 01 00 35 04 06 00 C3 C7 8C 98 F2 88 4B 2E 95 A9 9A B9 E9 E1 [00:36:32]Write to MH i2c: 01 00 00 06 04 0A [00:36:32]Write i2c OK [00:36:32]MH_I2C_Read... [00:36:32]Read from MH i2c: 01 [00:36:32]MH_I2C_Read... [00:36:32]Read from MH i2c: 01 07 00 [00:36:32]MH_I2C_Read... [00:36:32]Read from MH i2c: 01 07 00 06 04 00 00 00 00 00 0C 0D 2A [00:36:32]RasterBufferAndPrint [00:36:32]line [00:36:32]line [00:36:32]line [00:36:32]line [00:36:32]line [00:36:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 E8 AC 47 00 46 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1E 6A 01 00 F4 03 04 00 04 26 E7 66 B6 04 01 00 00 8E D4 B1 1C E6 B1 A2 9F [00:36:32]CommunicateWithHost err = 0 [00:36:32]CheckOFDResponse [00:36:32]1017 (14) - 77093643461234 [00:36:32]1041 (16) - 0000000000874692 [00:36:32]1040 (4) - 92702 [00:36:32]1012 (4) - 15.09.2024 18:23 [00:36:32]1206 (1) - 0 [00:36:32]OFD Sender: Remove packet 92702 [00:36:32]ProducePacketName [00:36:32]name=ofd_packets/00092702 [00:36:32]NVStorageDeleteData [00:36:32]written 0, free lines is 3404 [00:36:32]MH_Cut [00:36:32]Write to MH i2c: D1 01 00 0D 04 01 E3 [00:36:32]Write i2c OK [00:36:32]MH_I2C_Read... [00:36:32]Read from MH i2c: D1 [00:36:32]MH_I2C_Read... [00:36:32]Read from MH i2c: D1 01 00 [00:36:32]MH_I2C_Read... [00:36:32]Read from MH i2c: D1 01 00 0D 04 00 E2 [00:36:32]Write to MH i2c: 01 00 00 0E 04 12 [00:36:32]Write i2c OK [00:36:32]MH_I2C_Read... [00:36:32]*** Cut start [00:36:32]*** Purtial cut [00:36:32]*** Stage 1: CUTSNS_PIN = 1 [00:36:32]OFD Sender: No OFD packet to send [00:36:34]Read from MH i2c: 01 [00:36:34]MH_I2C_Read... [00:36:34]*** Stop cut motor [00:36:34]*** Cut end [00:36:34]Read from MH i2c: 01 07 00 [00:36:34]MH_I2C_Read... [00:36:34]Read from MH i2c: 01 07 00 0E 04 00 00 00 00 00 FF 0F 27 [00:36:34]process_action close_receipt done [00:36:34]requested_data is exist [00:36:34]produce_requested_data [00:36:34]requested_item fm.sn is exist - process it [00:36:34]wFMCommunicate request_size=4 [00:36:34]MH_SAM_APDU [00:36:34]CAPDU: 80 11 00 00 [00:36:34]Write to MH i2c: E2 08 00 0F 04 80 11 00 00 00 00 00 00 8D [00:36:34]Write i2c OK [00:36:34]MH_I2C_Read... [00:36:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:34]Read from MH i2c: E2 [00:36:34]MH_I2C_Read... [00:36:34]Read from MH i2c: E2 17 00 [00:36:34]MH_I2C_Read... [00:36:34]Read from MH i2c: E2 17 00 0F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E4 [00:36:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:36:34]wFMCommunicate OK [00:36:34]requested_item fd.num is exist - process it [00:36:34]SAM_PROTO_GetFieldsCounters [00:36:34]wFMCommunicate request_size=4 [00:36:34]MH_SAM_APDU [00:36:34]CAPDU: 80 13 00 00 [00:36:34]Write to MH i2c: E2 08 00 10 04 80 13 00 00 00 00 00 00 90 [00:36:34]Write i2c OK [00:36:34]MH_I2C_Read... [00:36:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:36:34]Read from MH i2c: E2 [00:36:34]MH_I2C_Read... [00:36:34]Read from MH i2c: E2 62 00 [00:36:34]MH_I2C_Read... [00:36:34]Read from MH i2c: E2 62 00 10 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 1E 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [00:36:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 1E 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:36:35]wFMCommunicate OK [00:36:35]SAM_PROTO_GetFieldsCounters done [00:36:35]requested_item shift.num is exist - process it [00:36:35]requested_item shift.opened is exist - process it [00:36:35]req_shift_opened [00:36:35]FM_GetShiftState [00:36:35]SAM_PROTO_GetShiftState [00:36:35]wFMCommunicate request_size=4 [00:36:35]MH_SAM_APDU [00:36:35]CAPDU: 80 13 01 00 [00:36:35]Write to MH i2c: E2 08 00 11 04 80 13 01 00 00 00 00 00 92 [00:36:35]Write i2c OK [00:36:35]MH_I2C_Read... [00:36:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:35]Read from MH i2c: E2 [00:36:35]MH_I2C_Read... [00:36:35]Read from MH i2c: E2 0E 00 [00:36:35]MH_I2C_Read... [00:36:35]Read from MH i2c: E2 0E 00 11 04 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 2B [00:36:35]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [00:36:35]wFMCommunicate OK [00:36:35]SAM_PROTO_GetShiftState done [00:36:35]FM_GetShiftState done [00:36:35]req_shift_opened done [00:36:35]requested_item shift.open_date is exist - process it [00:36:35]req_shift_open_date [00:36:35]req_shift_open_date done [00:36:35]produce_requested_data done [00:36:35]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92702,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278} [00:36:35]process_action_free close_receipt [00:36:35]json_value_free [00:36:35]json_value_free done [00:36:35]process_json_proto returns [00:36:35]Send response to host [00:36:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92702,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278}}} [00:36:35]free response buf [00:36:35]execute_script done [00:36:35]execute_script returns [00:36:35]free content buf [00:36:35]Sock 6.Close socket [00:36:35]Sock 6.Thread stoped [00:36:37]OFD Sender: No OFD packet to send [00:36:42]OFD Sender: No OFD packet to send [00:36:47]OFD Sender: No OFD packet to send [00:36:52]OFD Sender: No OFD packet to send [00:36:57]OFD Sender: No OFD packet to send [00:37:02]OFD Sender: No OFD packet to send [00:37:07]OFD Sender: No OFD packet to send [00:37:12]OFD Sender: No OFD packet to send [00:37:17]OFD Sender: No OFD packet to send [00:37:22]OFD Sender: No OFD packet to send [00:37:27]OFD Sender: No OFD packet to send [00:37:32]OFD Sender: No OFD packet to send [00:37:37]OFD Sender: No OFD packet to send [00:37:42]OFD Sender: No OFD packet to send [00:37:47]OFD Sender: No OFD packet to send [00:37:52]OFD Sender: No OFD packet to send [00:37:57]OFD Sender: No OFD packet to send [00:38:02]OFD Sender: No OFD packet to send [00:38:07]OFD Sender: No OFD packet to send [00:38:12]OFD Sender: No OFD packet to send [00:38:17]OFD Sender: No OFD packet to send [00:38:22]OFD Sender: No OFD packet to send [00:38:27]OFD Sender: No OFD packet to send [00:38:32]OFD Sender: No OFD packet to send [00:38:37]OFD Sender: No OFD packet to send [00:38:42]OFD Sender: No OFD packet to send [00:38:47]accept exits with 7 [00:38:47]New connection [00:38:47]New thread 3066752356 created [00:38:47]Thread 3066608996 joined [00:38:47]Waiting for new connection... [00:38:47] Sock 7.Parse request [00:38:47]Sock 7.Check first char [00:38:47]Sock 7.First char is OK [00:38:47]request: POST /json_proto HTTP/1.0 [00:38:47]Method: POST [00:38:47]URL: /json_proto [00:38:47]Method is POST - this is cgi request [00:38:47]url: /json_proto [00:38:47]query_string will be loaded in cgi processing [00:38:47]execute_cgi json_proto POST (null) [00:38:47]execute_cgi path=json_proto method=POST [00:38:47]POST find Content-Length [00:38:47]Host: 172.17.57.71:8080 [00:38:47]Content-Length: 949 [00:38:47]Content-Type: application/json [00:38:47] [00:38:47]POST finish read [00:38:47]Found Content-Length = 949 [00:38:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127590", "tax_sys" : 0, "items" : [ { "code": "4860114390178", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0431\u0435\u0437\u0430\u043B\u043A\u043E\u0433\u043E\u043B\u044C\u043D\u044B\u0439 \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0422\u0430\u0440\u0445", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:38:47]execute_script... [00:38:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127590", "tax_sys" : 0, "items" : [ { "code": "4860114390178", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0431\u0435\u0437\u0430\u043B\u043A\u043E\u0433\u043E\u043B\u044C\u043D\u044B\u0439 \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0422\u0430\u0440\u0445", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:38:47]POST & json_proto [00:38:47]process_json_proto [00:38:47]json parsed OK: [00:38:47]protocol is kg_v1.0 [00:38:47]action value=close_receipt [00:38:47]process_action close_receipt [00:38:47]cmd_close_receipt [00:38:47]MH_GetDate [00:38:47]Write to MH i2c: F0 00 00 12 04 05 [00:38:47]Write i2c OK [00:38:47]MH_I2C_Read... [00:38:47]Read from MH i2c: F0 [00:38:47]MH_I2C_Read... [00:38:47]Read from MH i2c: F0 09 00 [00:38:47]MH_I2C_Read... [00:38:47]Read from MH i2c: F0 09 00 12 04 00 17 7E E7 66 33 3A A4 66 67 [00:38:47]GetLastDocTimeStamp 1726446989 [00:38:47]current date 1726447127 [00:38:47]FM_GetShiftState [00:38:47]SAM_PROTO_GetShiftState [00:38:47]wFMCommunicate request_size=4 [00:38:47]MH_SAM_APDU [00:38:47]CAPDU: 80 13 01 00 [00:38:47]Write to MH i2c: E2 08 00 13 04 80 13 01 00 00 00 00 00 94 [00:38:47]Write i2c OK [00:38:47]MH_I2C_Read... [00:38:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:47]Read from MH i2c: E2 [00:38:47]MH_I2C_Read... [00:38:47]Read from MH i2c: E2 0E 00 [00:38:47]MH_I2C_Read... [00:38:47]Read from MH i2c: E2 0E 00 13 04 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 2D [00:38:47]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [00:38:47]wFMCommunicate OK [00:38:47]SAM_PROTO_GetShiftState done [00:38:47]FM_GetShiftState done [00:38:47]opened in 1726446278 [00:38:47]opened+sec_in_day 1726532678 [00:38:47]quantity*price = 15500 [00:38:47]sum+1 = 15501 [00:38:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 0.00 Безнал.: 155.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 6 16.09.2024 00:38 Смена: 508 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92703 ФПД: 17430451649368 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T003847&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92703&fm=17430451649368&tin=02508201610067®Number=0000000000091423&sum=15500 0 [00:38:48]StoreToDocumentArchive [00:38:48]shift 508 fd 92703 [00:38:48]save to /storage/0508/doc_00092703 [00:38:48]save last doc name /storage/0508/doc_00092703 to /storage/kkm_last_doc_name [00:38:48]save OK [00:38:48]Clear old archive folders... [00:38:48]ProcessDocumentItem done err = 0, tmpTLVsize=319 [00:38:48]tlvbuf is 01750890 [00:38:48]SAM_PROTO_ClearQueue [00:38:48]wFMCommunicate request_size=4 [00:38:48]MH_SAM_APDU [00:38:48]CAPDU: 80 09 00 00 [00:38:48]Write to MH i2c: E2 08 00 20 04 80 09 00 00 00 00 00 00 96 [00:38:48]Write i2c OK [00:38:48]MH_I2C_Read... [00:38:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:38:48]Read from MH i2c: E2 [00:38:48]MH_I2C_Read... [00:38:48]Read from MH i2c: E2 03 00 [00:38:48]MH_I2C_Read... [00:38:48]Read from MH i2c: E2 03 00 20 04 00 90 00 98 [00:38:48]RAPDU: 90 00 [00:38:48]wFMCommunicate OK [00:38:48]SAM_PROTO_ClearQueue done [00:38:48]KKMCreateOFDPacket [00:38:48]OFDProtocolAddRootSTLVToBuf [00:38:48]FM_MakeSignedData [00:38:48]FM_MakeSignedData [00:38:48]SAM_PROTO_SignData [00:38:48]wFMCommunicate request_size=4 [00:38:48]MH_SAM_APDU [00:38:48]CAPDU: 80 0D 01 02 [00:38:48]Write to MH i2c: E2 08 00 21 04 80 0D 01 02 00 00 00 00 9E [00:38:48]Write i2c OK [00:38:48]MH_I2C_Read... [00:38:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:38:48]Read from MH i2c: E2 [00:38:48]MH_I2C_Read... [00:38:48]Read from MH i2c: E2 03 00 [00:38:48]MH_I2C_Read... [00:38:48]Read from MH i2c: E2 03 00 21 04 00 90 00 99 [00:38:48]RAPDU: 90 00 [00:38:48]wFMCommunicate OK [00:38:48]wFMCommunicate request_size=255 [00:38:48]MH_SAM_APDU [00:38:48]CAPDU: 80 0D 02 02 FA 03 00 3F 01 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 31 37 38 06 04 4D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA D0 BE D0 B3 D0 BE D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D0 A2 D0 B0 D1 80 D1 85 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 17 7E [00:38:48]Write to MH i2c: E2 02 01 22 04 80 0D 02 02 FA 00 03 00 3F 01 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 31 37 38 06 04 4D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA D0 BE D0 B3 D0 BE D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D0 A2 D0 B0 D1 80 D1 85 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 17 7E 00 00 18 [00:38:48]Write i2c OK [00:38:48]MH_I2C_Read... [00:38:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:38:48]Read from MH i2c: E2 [00:38:48]MH_I2C_Read... [00:38:48]Read from MH i2c: E2 03 00 [00:38:48]MH_I2C_Read... [00:38:48]Read from MH i2c: E2 03 00 22 04 00 90 00 9A [00:38:48]RAPDU: 90 00 [00:38:48]wFMCommunicate OK [00:38:48]wFMCommunicate request_size=78 [00:38:48]MH_SAM_APDU [00:38:48]CAPDU: 80 0D 02 02 49 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1F 6A 01 00 35 04 06 00 0F DA 57 E0 FB 58 [00:38:48]Write to MH i2c: E2 51 00 23 04 80 0D 02 02 49 00 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1F 6A 01 00 35 04 06 00 0F DA 57 E0 FB 58 00 00 23 [00:38:48]Write i2c OK [00:38:48]MH_I2C_Read... [00:38:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:38:49]Read from MH i2c: E2 [00:38:49]MH_I2C_Read... [00:38:49]Read from MH i2c: E2 03 00 [00:38:49]MH_I2C_Read... [00:38:49]Read from MH i2c: E2 03 00 23 04 00 90 00 9B [00:38:49]RAPDU: 90 00 [00:38:49]wFMCommunicate OK [00:38:49]wFMCommunicate request_size=4 [00:38:49]MH_SAM_APDU [00:38:49]CAPDU: 80 0D 03 02 [00:38:49]Write to MH i2c: E2 08 00 24 04 80 0D 03 02 00 00 00 00 A3 [00:38:49]Write i2c OK [00:38:49]MH_I2C_Read... [00:38:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:38:49]Read from MH i2c: E2 [00:38:49]MH_I2C_Read... [00:38:49]Read from MH i2c: E2 0B 00 [00:38:49]MH_I2C_Read... [00:38:49]Read from MH i2c: E2 0B 00 24 04 00 80 A9 5F 25 F6 A7 B4 66 90 00 08 [00:38:49]RAPDU: 80 A9 5F 25 F6 A7 B4 66 90 00 [00:38:49]wFMCommunicate OK [00:38:49]SAM_PROTO_SignData done [00:38:49]FM_MakeSignedData done [00:38:49]CreateOFDProtocolMessage [00:38:49]wFMCommunicate request_size=4 [00:38:49]MH_SAM_APDU [00:38:49]CAPDU: 80 11 00 00 [00:38:49]Write to MH i2c: E2 08 00 25 04 80 11 00 00 00 00 00 00 A3 [00:38:49]Write i2c OK [00:38:49]MH_I2C_Read... [00:38:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:49]Read from MH i2c: E2 [00:38:49]MH_I2C_Read... [00:38:49]Read from MH i2c: E2 17 00 [00:38:49]MH_I2C_Read... [00:38:49]Read from MH i2c: E2 17 00 25 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 FA [00:38:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:38:49]wFMCommunicate OK [00:38:49]CreateOFDProtocolMessage done [00:38:49]OFDSenderStorePacket 92703 [00:38:49]StoreOFDPacket docnum=92703 [00:38:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 53 01 00 00 A2 5E 4B 01 0D DA 5A 03 01 00 03 00 3F 01 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 31 37 38 06 04 4D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA D0 BE D0 B3 D0 BE D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D0 A2 D0 B0 D1 80 D1 85 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 17 7E E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1F 6A 01 00 35 04 06 00 0F DA 57 E0 FB 58 80 A9 5F 25 F6 A7 B4 66 [00:38:49]CheckFolder [00:38:49]dirname=/storage/ofd_packets [00:38:49]CheckFolder done [00:38:49]ProducePacketName [00:38:49]name=ofd_packets/00092703 [00:38:49]NVStorageSaveData ofd_packets/00092703 [00:38:49]File name is /storage/ofd_packets/00092703 [00:38:49]Write 369 bytes [00:38:49]NVStorageSaveData done [00:38:49]OFDSenderStorePacket done [00:38:49]KKMCreateOFDPacket done [00:38:49]NVStorageSaveData kkm_last_timestamp [00:38:49]File name is /storage/kkm_last_timestamp [00:38:49]Write 4 bytes [00:38:49]NVStorageSaveData done [00:38:49]ExternCall_PrintAddStr [00:38:49]wPrintStart [00:38:49]Write to MH i2c: 01 00 00 26 04 2A [00:38:49]Write i2c OK [00:38:49]MH_I2C_Read... [00:38:49]Read from MH i2c: 01 [00:38:49]MH_I2C_Read... [00:38:49]Read from MH i2c: 01 07 00 [00:38:49]MH_I2C_Read... [00:38:49]Read from MH i2c: 01 07 00 26 04 00 00 00 00 00 FF 0F 3F [00:38:49]RasterBufferAndPrint [00:38:49]line Счет N : (3)127590 [00:38:49]line ИНН: 02508201610067 [00:38:49]line Контрольно-Кассовый Чек [00:38:49]line ПРОДАЖА [00:38:49]line Товар: 4860114390178 [00:38:49]line Напиток безалкогольный газированный Тарх [00:38:49]line 1.000 * 155.00 [00:38:49]line = 155.00 [00:38:49]line НДС 12% НСП 1% [00:38:49]line > о реализуемом товаре [00:38:49]line ИТОГО: 155.00 [00:38:49]line НСП 1% : 1.37 [00:38:49]line НДС 12% : 16.46 [00:38:49]line Наличными: 0.00 [00:38:49]line Безнал.: 155.00 [00:38:49]line Место: АЗС № 5 "Партнер Нефть" [00:38:49]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [00:38:49]line СНО: Общий режим [00:38:49]line Чек 6 16.09.2024 00:38 [00:38:49]line Смена: 508 ФФД: 1.0 [00:38:49]line ЗНМ: 03000000022 [00:38:49]line РНМ: 0000000000091423 [00:38:49]line Версия ККМ: 001 [00:38:49]line Платежная система: О! деньги [00:38:49]line ФМ: 0000000000874692 [00:38:49]line ФД: 92703 [00:38:49]line ФПД: 17430451649368 [00:38:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T003847&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92703&fm=17430451649368&tin=02508201610067®Number=0000000000091423&sum=15500 [00:38:49]line 0 [00:38:49]OFD Sender: Processing packet 92703 [packets to send 63, broken 62] [00:38:49]ProducePacketName [00:38:49]name=ofd_packets/00092703 [00:38:49]OFD Sender: To server: pG, [00:38:49]CommunicateWithHost lk.salyk.kg:30040 [00:38:49]ConnectInit lk.salyk.kg [00:38:49]written 0, free lines is 4095 [00:38:49]Connected sock=8 [00:38:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 53 01 00 00 A2 5E 4B 01 0D DA 5A 03 01 00 03 00 3F 01 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 31 37 38 06 04 4D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA D0 BE D0 B3 D0 BE D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D0 A2 D0 B0 D1 80 D1 85 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 17 7E E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1F 6A 01 00 35 04 06 00 0F DA 57 E0 FB 58 80 A9 5F 25 F6 A7 B4 66 [00:38:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 0F 06 47 00 62 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1F 6A 01 00 F4 03 04 00 8E 26 E7 66 B6 04 01 00 00 0B C4 3F 62 9D 0A B3 72 [00:38:49]CommunicateWithHost err = 0 [00:38:49]CheckOFDResponse [00:38:49]1017 (14) - 77093643461234 [00:38:49]1041 (16) - 0000000000874692 [00:38:49]1040 (4) - 92703 [00:38:49]1012 (4) - 15.09.2024 18:25 [00:38:49]1206 (1) - 0 [00:38:49]OFD Sender: Remove packet 92703 [00:38:49]ProducePacketName [00:38:49]name=ofd_packets/00092703 [00:38:49]NVStorageDeleteData [00:38:49]Write to MH i2c: 01 00 00 51 04 55 [00:38:49]Write i2c OK [00:38:49]MH_I2C_Read... [00:38:49]Read from MH i2c: 01 [00:38:49]MH_I2C_Read... [00:38:49]Read from MH i2c: 01 07 00 [00:38:49]MH_I2C_Read... [00:38:49]Read from MH i2c: 01 07 00 51 04 00 00 00 00 00 F2 0C 5A [00:38:49]RasterBufferAndPrint [00:38:49]line [00:38:49]line [00:38:49]line [00:38:49]line [00:38:49]line [00:38:49]written 0, free lines is 3323 [00:38:49]MH_Cut [00:38:49]Write to MH i2c: D1 01 00 58 04 01 2E [00:38:49]Write i2c OK [00:38:49]MH_I2C_Read... [00:38:49]Read from MH i2c: D1 [00:38:49]MH_I2C_Read... [00:38:49]Read from MH i2c: D1 01 00 [00:38:49]MH_I2C_Read... [00:38:49]Read from MH i2c: D1 01 00 58 04 00 2D [00:38:49]Write to MH i2c: 01 00 00 59 04 5D [00:38:49]Write i2c OK [00:38:49]MH_I2C_Read... [00:38:50]OFD Sender: No OFD packet to send [00:38:50]*** Cut start [00:38:50]*** Purtial cut [00:38:50]*** Stage 1: CUTSNS_PIN = 1 [00:38:52]Read from MH i2c: 01 [00:38:52]MH_I2C_Read... [00:38:52]*** Stop cut motor [00:38:52]*** Cut end [00:38:52]Read from MH i2c: 01 07 00 [00:38:52]MH_I2C_Read... [00:38:52]Read from MH i2c: 01 07 00 59 04 00 00 00 00 00 FF 0F 72 [00:38:52]process_action close_receipt done [00:38:52]requested_data is exist [00:38:52]produce_requested_data [00:38:52]requested_item fm.sn is exist - process it [00:38:52]wFMCommunicate request_size=4 [00:38:52]MH_SAM_APDU [00:38:52]CAPDU: 80 11 00 00 [00:38:52]Write to MH i2c: E2 08 00 5A 04 80 11 00 00 00 00 00 00 D8 [00:38:52]Write i2c OK [00:38:52]MH_I2C_Read... [00:38:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:52]Read from MH i2c: E2 [00:38:52]MH_I2C_Read... [00:38:52]Read from MH i2c: E2 17 00 [00:38:52]MH_I2C_Read... [00:38:52]Read from MH i2c: E2 17 00 5A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 2F [00:38:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:38:52]wFMCommunicate OK [00:38:52]requested_item fd.num is exist - process it [00:38:52]SAM_PROTO_GetFieldsCounters [00:38:52]wFMCommunicate request_size=4 [00:38:52]MH_SAM_APDU [00:38:52]CAPDU: 80 13 00 00 [00:38:52]Write to MH i2c: E2 08 00 5B 04 80 13 00 00 00 00 00 00 DB [00:38:52]Write i2c OK [00:38:52]MH_I2C_Read... [00:38:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:38:52]Read from MH i2c: E2 [00:38:52]MH_I2C_Read... [00:38:52]Read from MH i2c: E2 62 00 [00:38:52]MH_I2C_Read... [00:38:52]Read from MH i2c: E2 62 00 5B 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 1F 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [00:38:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 1F 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:38:52]wFMCommunicate OK [00:38:52]SAM_PROTO_GetFieldsCounters done [00:38:52]requested_item shift.num is exist - process it [00:38:52]requested_item shift.opened is exist - process it [00:38:52]req_shift_opened [00:38:52]FM_GetShiftState [00:38:52]SAM_PROTO_GetShiftState [00:38:52]wFMCommunicate request_size=4 [00:38:52]MH_SAM_APDU [00:38:52]CAPDU: 80 13 01 00 [00:38:52]Write to MH i2c: E2 08 00 5C 04 80 13 01 00 00 00 00 00 DD [00:38:52]Write i2c OK [00:38:52]MH_I2C_Read... [00:38:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:52]Read from MH i2c: E2 [00:38:52]MH_I2C_Read... [00:38:52]Read from MH i2c: E2 0E 00 [00:38:52]MH_I2C_Read... [00:38:52]Read from MH i2c: E2 0E 00 5C 04 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 76 [00:38:52]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [00:38:52]wFMCommunicate OK [00:38:52]SAM_PROTO_GetShiftState done [00:38:52]FM_GetShiftState done [00:38:52]req_shift_opened done [00:38:52]requested_item shift.open_date is exist - process it [00:38:52]req_shift_open_date [00:38:52]req_shift_open_date done [00:38:52]produce_requested_data done [00:38:52]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92703,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278} [00:38:52]process_action_free close_receipt [00:38:52]json_value_free [00:38:52]json_value_free done [00:38:52]process_json_proto returns [00:38:52]Send response to host [00:38:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92703,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278}}} [00:38:52]free response buf [00:38:52]execute_script done [00:38:52]execute_script returns [00:38:52]free content buf [00:38:52]Sock 7.Close socket [00:38:52]Sock 7.Thread stoped [00:38:55]OFD Sender: No OFD packet to send [00:39:00]OFD Sender: No OFD packet to send [00:39:05]OFD Sender: No OFD packet to send [00:39:10]OFD Sender: No OFD packet to send [00:39:15]OFD Sender: No OFD packet to send [00:39:20]OFD Sender: No OFD packet to send [00:39:25]OFD Sender: No OFD packet to send [00:39:30]OFD Sender: No OFD packet to send [00:39:35]OFD Sender: No OFD packet to send [00:39:40]OFD Sender: No OFD packet to send [00:39:45]OFD Sender: No OFD packet to send [00:39:50]OFD Sender: No OFD packet to send [00:39:55]OFD Sender: No OFD packet to send [00:40:00]OFD Sender: No OFD packet to send [00:40:05]OFD Sender: No OFD packet to send [00:40:10]OFD Sender: No OFD packet to send [00:40:15]OFD Sender: No OFD packet to send [00:40:20]OFD Sender: No OFD packet to send [00:40:25]OFD Sender: No OFD packet to send [00:40:30]OFD Sender: No OFD packet to send [00:40:35]OFD Sender: No OFD packet to send [00:40:40]OFD Sender: No OFD packet to send [00:40:45]OFD Sender: No OFD packet to send [00:40:50]OFD Sender: No OFD packet to send [00:40:55]OFD Sender: No OFD packet to send [00:41:00]OFD Sender: No OFD packet to send [00:41:05]OFD Sender: No OFD packet to send [00:41:10]OFD Sender: No OFD packet to send [00:41:15]OFD Sender: No OFD packet to send [00:41:20]OFD Sender: No OFD packet to send [00:41:25]OFD Sender: No OFD packet to send [00:41:30]OFD Sender: No OFD packet to send [00:41:35]OFD Sender: No OFD packet to send [00:41:40]OFD Sender: No OFD packet to send [00:41:45]OFD Sender: No OFD packet to send [00:41:50]OFD Sender: No OFD packet to send [00:41:55]OFD Sender: No OFD packet to send [00:42:00]OFD Sender: No OFD packet to send [00:42:02]accept exits with 6 [00:42:02]New connection [00:42:02]New thread 3066608996 created [00:42:02]Thread 3066752356 joined [00:42:02]Waiting for new connection... [00:42:02] Sock 6.Parse request [00:42:02]Sock 6.Check first char [00:42:02]Sock 6.First char is OK [00:42:02]request: POST /json_proto HTTP/1.0 [00:42:02]Method: POST [00:42:02]URL: /json_proto [00:42:02]Method is POST - this is cgi request [00:42:02]url: /json_proto [00:42:02]query_string will be loaded in cgi processing [00:42:02]execute_cgi json_proto POST (null) [00:42:02]execute_cgi path=json_proto method=POST [00:42:02]POST find Content-Length [00:42:02]Host: 172.17.57.71:8080 [00:42:02]Content-Length: 621 [00:42:02]Content-Type: application/json [00:42:02] [00:42:02]POST finish read [00:42:02]Found Content-Length = 621 [00:42:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127591", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:42:02]execute_script... [00:42:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127591", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:42:02]POST & json_proto [00:42:02]process_json_proto [00:42:02]json parsed OK: [00:42:02]protocol is kg_v1.0 [00:42:02]action value=close_receipt [00:42:02]process_action close_receipt [00:42:02]cmd_close_receipt [00:42:02]MH_GetDate [00:42:02]Write to MH i2c: F0 00 00 5D 04 50 [00:42:02]Write i2c OK [00:42:02]MH_I2C_Read... [00:42:02]Read from MH i2c: F0 [00:42:02]MH_I2C_Read... [00:42:02]Read from MH i2c: F0 09 00 [00:42:02]MH_I2C_Read... [00:42:02]Read from MH i2c: F0 09 00 5D 04 00 DA 7E E7 66 33 3A A4 66 75 [00:42:02]GetLastDocTimeStamp 1726447127 [00:42:02]current date 1726447322 [00:42:02]FM_GetShiftState [00:42:02]SAM_PROTO_GetShiftState [00:42:02]wFMCommunicate request_size=4 [00:42:02]MH_SAM_APDU [00:42:02]CAPDU: 80 13 01 00 [00:42:02]Write to MH i2c: E2 08 00 5E 04 80 13 01 00 00 00 00 00 DF [00:42:02]Write i2c OK [00:42:02]MH_I2C_Read... [00:42:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:42:02]Read from MH i2c: E2 [00:42:02]MH_I2C_Read... [00:42:02]Read from MH i2c: E2 0E 00 [00:42:02]MH_I2C_Read... [00:42:02]Read from MH i2c: E2 0E 00 5E 04 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 78 [00:42:02]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [00:42:02]wFMCommunicate OK [00:42:02]SAM_PROTO_GetShiftState done [00:42:02]FM_GetShiftState done [00:42:02]opened in 1726446278 [00:42:02]opened+sec_in_day 1726532678 [00:42:02]quantity*price = 14400 [00:42:02]sum+1 = 14401 [00:42:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 7 16.09.2024 00:42 Смена: 508 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92704 ФПД: 76177510217709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T004202&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92704&fm=76177510217709&tin=02508201610067®Number=0000000000091423&sum=14400 0 [00:42:03]StoreToDocumentArchive [00:42:03]shift 508 fd 92704 [00:42:03]save to /storage/0508/doc_00092704 [00:42:03]save last doc name /storage/0508/doc_00092704 to /storage/kkm_last_doc_name [00:42:03]save OK [00:42:03]Clear old archive folders... [00:42:03]ProcessDocumentItem done err = 0, tmpTLVsize=273 [00:42:03]tlvbuf is 017BD430 [00:42:03]SAM_PROTO_ClearQueue [00:42:03]wFMCommunicate request_size=4 [00:42:03]MH_SAM_APDU [00:42:03]CAPDU: 80 09 00 00 [00:42:03]Write to MH i2c: E2 08 00 6B 04 80 09 00 00 00 00 00 00 E1 [00:42:03]Write i2c OK [00:42:03]MH_I2C_Read... [00:42:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:42:03]Read from MH i2c: E2 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: E2 03 00 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: E2 03 00 6B 04 00 90 00 E3 [00:42:03]RAPDU: 90 00 [00:42:03]wFMCommunicate OK [00:42:03]SAM_PROTO_ClearQueue done [00:42:03]KKMCreateOFDPacket [00:42:03]OFDProtocolAddRootSTLVToBuf [00:42:03]FM_MakeSignedData [00:42:03]FM_MakeSignedData [00:42:03]SAM_PROTO_SignData [00:42:03]wFMCommunicate request_size=4 [00:42:03]MH_SAM_APDU [00:42:03]CAPDU: 80 0D 01 02 [00:42:03]Write to MH i2c: E2 08 00 6C 04 80 0D 01 02 00 00 00 00 E9 [00:42:03]Write i2c OK [00:42:03]MH_I2C_Read... [00:42:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:42:03]Read from MH i2c: E2 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: E2 03 00 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: E2 03 00 6C 04 00 90 00 E4 [00:42:03]RAPDU: 90 00 [00:42:03]wFMCommunicate OK [00:42:03]wFMCommunicate request_size=255 [00:42:03]MH_SAM_APDU [00:42:03]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 DA 7E E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 [00:42:03]Write to MH i2c: E2 02 01 6D 04 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 DA 7E E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 00 00 E2 [00:42:03]Write i2c OK [00:42:03]MH_I2C_Read... [00:42:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:42:04]Read from MH i2c: E2 [00:42:04]MH_I2C_Read... [00:42:04]Read from MH i2c: E2 03 00 [00:42:04]MH_I2C_Read... [00:42:04]Read from MH i2c: E2 03 00 6D 04 00 90 00 E5 [00:42:04]RAPDU: 90 00 [00:42:04]wFMCommunicate OK [00:42:04]wFMCommunicate request_size=32 [00:42:04]MH_SAM_APDU [00:42:04]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 39 32 10 04 04 00 20 6A 01 00 35 04 06 00 45 48 75 6F B7 ED [00:42:04]Write to MH i2c: E2 23 00 6E 04 80 0D 02 02 1B 00 30 30 30 38 37 34 36 39 32 10 04 04 00 20 6A 01 00 35 04 06 00 45 48 75 6F B7 ED 00 00 ED [00:42:04]Write i2c OK [00:42:04]MH_I2C_Read... [00:42:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:42:04]Read from MH i2c: E2 [00:42:04]MH_I2C_Read... [00:42:04]Read from MH i2c: E2 03 00 [00:42:04]MH_I2C_Read... [00:42:04]Read from MH i2c: E2 03 00 6E 04 00 90 00 E6 [00:42:04]RAPDU: 90 00 [00:42:04]wFMCommunicate OK [00:42:04]wFMCommunicate request_size=4 [00:42:04]MH_SAM_APDU [00:42:04]CAPDU: 80 0D 03 02 [00:42:04]Write to MH i2c: E2 08 00 6F 04 80 0D 03 02 00 00 00 00 EE [00:42:04]Write i2c OK [00:42:04]MH_I2C_Read... [00:42:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:42:04]Read from MH i2c: E2 [00:42:04]MH_I2C_Read... [00:42:04]Read from MH i2c: E2 0B 00 [00:42:04]MH_I2C_Read... [00:42:04]Read from MH i2c: E2 0B 00 6F 04 00 BD 69 4D 8B 1F 9A 33 7E 90 00 57 [00:42:04]RAPDU: BD 69 4D 8B 1F 9A 33 7E 90 00 [00:42:04]wFMCommunicate OK [00:42:04]SAM_PROTO_SignData done [00:42:04]FM_MakeSignedData done [00:42:04]CreateOFDProtocolMessage [00:42:04]wFMCommunicate request_size=4 [00:42:04]MH_SAM_APDU [00:42:04]CAPDU: 80 11 00 00 [00:42:04]Write to MH i2c: E2 08 00 70 04 80 11 00 00 00 00 00 00 EE [00:42:04]Write i2c OK [00:42:04]MH_I2C_Read... [00:42:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:42:04]Read from MH i2c: E2 [00:42:04]MH_I2C_Read... [00:42:04]Read from MH i2c: E2 17 00 [00:42:04]MH_I2C_Read... [00:42:04]Read from MH i2c: E2 17 00 70 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 45 [00:42:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:42:04]wFMCommunicate OK [00:42:04]CreateOFDProtocolMessage done [00:42:04]OFDSenderStorePacket 92704 [00:42:04]StoreOFDPacket docnum=92704 [00:42:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 25 01 00 00 7B 7C 1D 01 3B 64 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 DA 7E E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 20 6A 01 00 35 04 06 00 45 48 75 6F B7 ED BD 69 4D 8B 1F 9A 33 7E [00:42:04]CheckFolder [00:42:04]dirname=/storage/ofd_packets [00:42:04]CheckFolder done [00:42:04]ProducePacketName [00:42:04]name=ofd_packets/00092704 [00:42:04]NVStorageSaveData ofd_packets/00092704 [00:42:04]File name is /storage/ofd_packets/00092704 [00:42:04]Write 323 bytes [00:42:04]NVStorageSaveData done [00:42:04]OFDSenderStorePacket done [00:42:04]KKMCreateOFDPacket done [00:42:04]NVStorageSaveData kkm_last_timestamp [00:42:04]File name is /storage/kkm_last_timestamp [00:42:04]Write 4 bytes [00:42:04]NVStorageSaveData done [00:42:04]ExternCall_PrintAddStr [00:42:04]wPrintStart [00:42:04]Write to MH i2c: 01 00 00 71 04 75 [00:42:04]Write i2c OK [00:42:04]MH_I2C_Read... [00:42:04]Read from MH i2c: 01 [00:42:04]MH_I2C_Read... [00:42:04]Read from MH i2c: 01 07 00 [00:42:04]MH_I2C_Read... [00:42:04]Read from MH i2c: 01 07 00 71 04 00 00 00 00 00 FF 0F 8A [00:42:04]RasterBufferAndPrint [00:42:04]line Счет N : (3)127591 [00:42:04]line ИНН: 02508201610067 [00:42:04]line Контрольно-Кассовый Чек [00:42:04]line ПРОДАЖА [00:42:04]line Товар: 48747059 [00:42:04]line Сигареты Winston Legend Blue [00:42:04]line 1.000 * 144.00 [00:42:04]line = 144.00 [00:42:04]line НДС 12% НСП 1% [00:42:04]line > о реализуемом товаре [00:42:04]line ИТОГО: 144.00 [00:42:04]line НСП 1% : 1.27 [00:42:04]line НДС 12% : 15.29 [00:42:04]line Наличными: 144.00 [00:42:04]line Безнал.: 0.00 [00:42:04]line Место: АЗС № 5 "Партнер Нефть" [00:42:04]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [00:42:04]line СНО: Общий режим [00:42:04]line Чек 7 16.09.2024 00:42 [00:42:04]line Смена: 508 ФФД: 1.0 [00:42:04]line ЗНМ: 03000000022 [00:42:04]line РНМ: 0000000000091423 [00:42:04]line Версия ККМ: 001 [00:42:04]line ФМ: 0000000000874692 [00:42:04]line ФД: 92704 [00:42:04]line ФПД: 76177510217709 [00:42:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T004202&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92704&fm=76177510217709&tin=02508201610067®Number=0000000000091423&sum=14400 [00:42:04]line 0 [00:42:04]OFD Sender: Processing packet 92704 [packets to send 63, broken 62] [00:42:04]ProducePacketName [00:42:04]name=ofd_packets/00092704 [00:42:04]OFD Sender: To server: pG, [00:42:04]CommunicateWithHost lk.salyk.kg:30040 [00:42:04]ConnectInit lk.salyk.kg [00:42:04]written 0, free lines is 4095 [00:42:04]Connected sock=8 [00:42:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 25 01 00 00 7B 7C 1D 01 3B 64 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 DA 7E E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 20 6A 01 00 35 04 06 00 45 48 75 6F B7 ED BD 69 4D 8B 1F 9A 33 7E [00:42:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 2F E0 47 00 DB A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 20 6A 01 00 F4 03 04 00 51 27 E7 66 B6 04 01 00 00 F4 CD 5B A0 11 4A 6B 55 [00:42:04]CommunicateWithHost err = 0 [00:42:04]CheckOFDResponse [00:42:04]1017 (14) - 77093643461234 [00:42:04]1041 (16) - 0000000000874692 [00:42:04]1040 (4) - 92704 [00:42:04]1012 (4) - 15.09.2024 18:28 [00:42:04]1206 (1) - 0 [00:42:04]OFD Sender: Remove packet 92704 [00:42:04]ProducePacketName [00:42:04]name=ofd_packets/00092704 [00:42:04]NVStorageDeleteData [00:42:04]Write to MH i2c: 01 00 00 9A 04 9E [00:42:04]Write i2c OK [00:42:04]MH_I2C_Read... [00:42:04]Read from MH i2c: 01 [00:42:04]MH_I2C_Read... [00:42:04]Read from MH i2c: 01 07 00 [00:42:04]MH_I2C_Read... [00:42:04]Read from MH i2c: 01 07 00 9A 04 00 00 00 00 00 F6 0C A7 [00:42:04]RasterBufferAndPrint [00:42:04]line [00:42:04]line [00:42:04]line [00:42:04]line [00:42:04]line [00:42:04]written 0, free lines is 3326 [00:42:04]MH_Cut [00:42:04]Write to MH i2c: D1 01 00 A1 04 01 77 [00:42:04]Write i2c OK [00:42:04]MH_I2C_Read... [00:42:04]Read from MH i2c: D1 [00:42:04]MH_I2C_Read... [00:42:04]Read from MH i2c: D1 01 00 [00:42:04]MH_I2C_Read... [00:42:04]Read from MH i2c: D1 01 00 A1 04 00 76 [00:42:04]Write to MH i2c: 01 00 00 A2 04 A6 [00:42:04]Write i2c OK [00:42:04]MH_I2C_Read... [00:42:05]OFD Sender: No OFD packet to send [00:42:05]*** Cut start [00:42:05]*** Purtial cut [00:42:05]*** Stage 1: CUTSNS_PIN = 1 [00:42:07]Read from MH i2c: 01 [00:42:07]MH_I2C_Read... [00:42:07]*** Stop cut motor [00:42:07]*** Cut end [00:42:07]Read from MH i2c: 01 07 00 [00:42:07]MH_I2C_Read... [00:42:07]Read from MH i2c: 01 07 00 A2 04 00 00 00 00 00 FF 0F BB [00:42:07]process_action close_receipt done [00:42:07]requested_data is exist [00:42:07]produce_requested_data [00:42:07]requested_item fm.sn is exist - process it [00:42:07]wFMCommunicate request_size=4 [00:42:07]MH_SAM_APDU [00:42:07]CAPDU: 80 11 00 00 [00:42:07]Write to MH i2c: E2 08 00 A3 04 80 11 00 00 00 00 00 00 21 [00:42:07]Write i2c OK [00:42:07]MH_I2C_Read... [00:42:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:42:07]Read from MH i2c: E2 [00:42:07]MH_I2C_Read... [00:42:07]Read from MH i2c: E2 17 00 [00:42:07]MH_I2C_Read... [00:42:07]Read from MH i2c: E2 17 00 A3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 78 [00:42:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:42:07]wFMCommunicate OK [00:42:07]requested_item fd.num is exist - process it [00:42:07]SAM_PROTO_GetFieldsCounters [00:42:07]wFMCommunicate request_size=4 [00:42:07]MH_SAM_APDU [00:42:07]CAPDU: 80 13 00 00 [00:42:07]Write to MH i2c: E2 08 00 A4 04 80 13 00 00 00 00 00 00 24 [00:42:07]Write i2c OK [00:42:07]MH_I2C_Read... [00:42:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:42:07]Read from MH i2c: E2 [00:42:07]MH_I2C_Read... [00:42:07]Read from MH i2c: E2 62 00 [00:42:07]MH_I2C_Read... [00:42:07]Read from MH i2c: E2 62 00 A4 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 20 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [00:42:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 20 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:42:07]wFMCommunicate OK [00:42:07]SAM_PROTO_GetFieldsCounters done [00:42:07]requested_item shift.num is exist - process it [00:42:07]requested_item shift.opened is exist - process it [00:42:07]req_shift_opened [00:42:07]FM_GetShiftState [00:42:07]SAM_PROTO_GetShiftState [00:42:07]wFMCommunicate request_size=4 [00:42:07]MH_SAM_APDU [00:42:07]CAPDU: 80 13 01 00 [00:42:07]Write to MH i2c: E2 08 00 A5 04 80 13 01 00 00 00 00 00 26 [00:42:07]Write i2c OK [00:42:07]MH_I2C_Read... [00:42:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:42:07]Read from MH i2c: E2 [00:42:07]MH_I2C_Read... [00:42:07]Read from MH i2c: E2 0E 00 [00:42:07]MH_I2C_Read... [00:42:07]Read from MH i2c: E2 0E 00 A5 04 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 BF [00:42:07]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [00:42:07]wFMCommunicate OK [00:42:07]SAM_PROTO_GetShiftState done [00:42:07]FM_GetShiftState done [00:42:07]req_shift_opened done [00:42:07]requested_item shift.open_date is exist - process it [00:42:07]req_shift_open_date [00:42:07]req_shift_open_date done [00:42:07]produce_requested_data done [00:42:07]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92704,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278} [00:42:07]process_action_free close_receipt [00:42:07]json_value_free [00:42:07]json_value_free done [00:42:07]process_json_proto returns [00:42:07]Send response to host [00:42:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92704,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278}}} [00:42:07]free response buf [00:42:07]execute_script done [00:42:07]execute_script returns [00:42:07]free content buf [00:42:07]Sock 6.Close socket [00:42:07]Sock 6.Thread stoped [00:42:10]OFD Sender: No OFD packet to send [00:42:15]OFD Sender: No OFD packet to send [00:42:20]OFD Sender: No OFD packet to send [00:42:25]OFD Sender: No OFD packet to send [00:42:30]OFD Sender: No OFD packet to send [00:42:35]OFD Sender: No OFD packet to send [00:42:40]OFD Sender: No OFD packet to send [00:42:45]OFD Sender: No OFD packet to send [00:42:50]OFD Sender: No OFD packet to send [00:42:55]OFD Sender: No OFD packet to send [00:43:00]OFD Sender: No OFD packet to send [00:43:05]OFD Sender: No OFD packet to send [00:43:10]OFD Sender: No OFD packet to send [00:43:15]OFD Sender: No OFD packet to send [00:43:20]OFD Sender: No OFD packet to send [00:43:25]OFD Sender: No OFD packet to send [00:43:30]OFD Sender: No OFD packet to send [00:43:35]OFD Sender: No OFD packet to send [00:43:40]OFD Sender: No OFD packet to send [00:43:45]OFD Sender: No OFD packet to send [00:43:50]OFD Sender: No OFD packet to send [00:43:55]OFD Sender: No OFD packet to send [00:44:00]OFD Sender: No OFD packet to send [00:44:05]OFD Sender: No OFD packet to send [00:44:10]OFD Sender: No OFD packet to send [00:44:15]OFD Sender: No OFD packet to send [00:44:20]OFD Sender: No OFD packet to send [00:44:25]OFD Sender: No OFD packet to send [00:44:30]OFD Sender: No OFD packet to send [00:44:35]OFD Sender: No OFD packet to send [00:44:40]OFD Sender: No OFD packet to send [00:44:45]OFD Sender: No OFD packet to send [00:44:50]OFD Sender: No OFD packet to send [00:44:55]OFD Sender: No OFD packet to send [00:45:00]OFD Sender: No OFD packet to send [00:45:05]OFD Sender: No OFD packet to send [00:45:10]OFD Sender: No OFD packet to send [00:45:15]OFD Sender: No OFD packet to send [00:45:20]OFD Sender: No OFD packet to send [00:45:25]OFD Sender: No OFD packet to send [00:45:30]OFD Sender: No OFD packet to send [00:45:35]OFD Sender: No OFD packet to send [00:45:40]OFD Sender: No OFD packet to send [00:45:45]OFD Sender: No OFD packet to send [00:45:50]OFD Sender: No OFD packet to send [00:45:55]OFD Sender: No OFD packet to send [00:46:00]OFD Sender: No OFD packet to send [00:46:05]OFD Sender: No OFD packet to send [00:46:10]OFD Sender: No OFD packet to send [00:46:15]OFD Sender: No OFD packet to send [00:46:20]OFD Sender: No OFD packet to send [00:46:25]OFD Sender: No OFD packet to send [00:46:30]OFD Sender: No OFD packet to send [00:46:35]OFD Sender: No OFD packet to send [00:46:40]OFD Sender: No OFD packet to send [00:46:45]OFD Sender: No OFD packet to send [00:46:50]OFD Sender: No OFD packet to send [00:46:55]OFD Sender: No OFD packet to send [00:47:00]OFD Sender: No OFD packet to send [00:47:05]OFD Sender: No OFD packet to send [00:47:10]OFD Sender: No OFD packet to send [00:47:15]OFD Sender: No OFD packet to send [00:47:20]OFD Sender: No OFD packet to send [00:47:25]OFD Sender: No OFD packet to send [00:47:30]OFD Sender: No OFD packet to send [00:47:35]OFD Sender: No OFD packet to send [00:47:40]OFD Sender: No OFD packet to send [00:47:45]OFD Sender: No OFD packet to send [00:47:50]OFD Sender: No OFD packet to send [00:47:55]OFD Sender: No OFD packet to send [00:48:00]OFD Sender: No OFD packet to send [00:48:05]OFD Sender: No OFD packet to send [00:48:10]OFD Sender: No OFD packet to send [00:48:15]OFD Sender: No OFD packet to send [00:48:20]OFD Sender: No OFD packet to send [00:48:25]OFD Sender: No OFD packet to send [00:48:30]OFD Sender: No OFD packet to send [00:48:35]OFD Sender: No OFD packet to send [00:48:40]OFD Sender: No OFD packet to send [00:48:45]OFD Sender: No OFD packet to send [00:48:50]OFD Sender: No OFD packet to send [00:48:55]OFD Sender: No OFD packet to send [00:49:00]OFD Sender: No OFD packet to send [00:49:05]OFD Sender: No OFD packet to send [00:49:10]OFD Sender: No OFD packet to send [00:49:15]OFD Sender: No OFD packet to send [00:49:20]OFD Sender: No OFD packet to send [00:49:25]OFD Sender: No OFD packet to send [00:49:30]OFD Sender: No OFD packet to send [00:49:35]OFD Sender: No OFD packet to send [00:49:40]OFD Sender: No OFD packet to send [00:49:45]OFD Sender: No OFD packet to send [00:49:50]OFD Sender: No OFD packet to send [00:49:55]OFD Sender: No OFD packet to send [00:50:00]OFD Sender: No OFD packet to send [00:50:05]OFD Sender: No OFD packet to send [00:50:10]OFD Sender: No OFD packet to send [00:50:15]OFD Sender: No OFD packet to send [00:50:20]OFD Sender: No OFD packet to send [00:50:25]OFD Sender: No OFD packet to send [00:50:30]OFD Sender: No OFD packet to send [00:50:35]OFD Sender: No OFD packet to send [00:50:40]OFD Sender: No OFD packet to send [00:50:45]OFD Sender: No OFD packet to send [00:50:50]OFD Sender: No OFD packet to send [00:50:55]OFD Sender: No OFD packet to send [00:51:00]OFD Sender: No OFD packet to send [00:51:05]OFD Sender: No OFD packet to send [00:51:10]OFD Sender: No OFD packet to send [00:51:15]OFD Sender: No OFD packet to send [00:51:20]OFD Sender: No OFD packet to send [00:51:25]OFD Sender: No OFD packet to send [00:51:30]OFD Sender: No OFD packet to send [00:51:35]OFD Sender: No OFD packet to send [00:51:40]OFD Sender: No OFD packet to send [00:51:45]OFD Sender: No OFD packet to send [00:51:50]OFD Sender: No OFD packet to send [00:51:55]OFD Sender: No OFD packet to send [00:52:00]OFD Sender: No OFD packet to send [00:52:05]OFD Sender: No OFD packet to send [00:52:10]OFD Sender: No OFD packet to send [00:52:15]OFD Sender: No OFD packet to send [00:52:20]OFD Sender: No OFD packet to send [00:52:25]OFD Sender: No OFD packet to send [00:52:30]OFD Sender: No OFD packet to send [00:52:35]OFD Sender: No OFD packet to send [00:52:40]OFD Sender: No OFD packet to send [00:52:45]OFD Sender: No OFD packet to send [00:52:50]OFD Sender: No OFD packet to send [00:52:55]OFD Sender: No OFD packet to send [00:53:00]OFD Sender: No OFD packet to send [00:53:05]OFD Sender: No OFD packet to send [00:53:09]accept exits with 7 [00:53:09]New connection [00:53:09]New thread 3066752356 created [00:53:09]Thread 3066608996 joined [00:53:09]Waiting for new connection... [00:53:09] Sock 7.Parse request [00:53:09]Sock 7.Check first char [00:53:09]Sock 7.First char is OK [00:53:09]request: POST /json_proto HTTP/1.0 [00:53:09]Method: POST [00:53:09]URL: /json_proto [00:53:09]Method is POST - this is cgi request [00:53:09]url: /json_proto [00:53:09]query_string will be loaded in cgi processing [00:53:09]execute_cgi json_proto POST (null) [00:53:09]execute_cgi path=json_proto method=POST [00:53:09]POST find Content-Length [00:53:09]Host: 172.17.57.71:8080 [00:53:09]Content-Length: 642 [00:53:09]Content-Type: application/json [00:53:09] [00:53:09]POST finish read [00:53:09]Found Content-Length = 642 [00:53:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127592", "tax_sys" : 0, "items" : [ { "code": "58411125749", "name": "\u0422\u0435 \u0441\u0430\u043C\u044B\u0435 \u043C\u0430\u043A\u0430\u0440\u043E\u043D", "price" : 195.00, "quantity" : 1.000, "sum" : 195.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:53:09]execute_script... [00:53:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127592", "tax_sys" : 0, "items" : [ { "code": "58411125749", "name": "\u0422\u0435 \u0441\u0430\u043C\u044B\u0435 \u043C\u0430\u043A\u0430\u0440\u043E\u043D", "price" : 195.00, "quantity" : 1.000, "sum" : 195.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:53:09]POST & json_proto [00:53:09]process_json_proto [00:53:09]json parsed OK: [00:53:09]protocol is kg_v1.0 [00:53:09]action value=close_receipt [00:53:09]process_action close_receipt [00:53:09]cmd_close_receipt [00:53:09]MH_GetDate [00:53:09]Write to MH i2c: F0 00 00 A6 04 99 [00:53:09]Write i2c OK [00:53:09]MH_I2C_Read... [00:53:09]Read from MH i2c: F0 [00:53:09]MH_I2C_Read... [00:53:09]Read from MH i2c: F0 09 00 [00:53:09]MH_I2C_Read... [00:53:09]Read from MH i2c: F0 09 00 A6 04 00 75 81 E7 66 33 3A A4 66 5C [00:53:09]GetLastDocTimeStamp 1726447322 [00:53:09]current date 1726447989 [00:53:09]FM_GetShiftState [00:53:09]SAM_PROTO_GetShiftState [00:53:09]wFMCommunicate request_size=4 [00:53:09]MH_SAM_APDU [00:53:09]CAPDU: 80 13 01 00 [00:53:09]Write to MH i2c: E2 08 00 A7 04 80 13 01 00 00 00 00 00 28 [00:53:09]Write i2c OK [00:53:09]MH_I2C_Read... [00:53:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:53:09]Read from MH i2c: E2 [00:53:09]MH_I2C_Read... [00:53:09]Read from MH i2c: E2 0E 00 [00:53:09]MH_I2C_Read... [00:53:09]Read from MH i2c: E2 0E 00 A7 04 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 C1 [00:53:09]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [00:53:09]wFMCommunicate OK [00:53:09]SAM_PROTO_GetShiftState done [00:53:09]FM_GetShiftState done [00:53:09]opened in 1726446278 [00:53:09]opened+sec_in_day 1726532678 [00:53:09]quantity*price = 19500 [00:53:09]sum+1 = 19501 [00:53:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 195.00 НСП 1% : 1.73 НДС 12% : 20.71 Наличными: 195.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 8 16.09.2024 00:53 Смена: 508 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92705 ФПД: 101352895998642 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T005309&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92705&fm=101352895998642&tin=02508201610067®Number=0000000000091423&sum=19500 0 [00:53:10]StoreToDocumentArchive [00:53:10]shift 508 fd 92705 [00:53:10]save to /storage/0508/doc_00092705 [00:53:10]save last doc name /storage/0508/doc_00092705 to /storage/kkm_last_doc_name [00:53:10]save OK [00:53:10]Clear old archive folders... [00:53:10]ProcessDocumentItem done err = 0, tmpTLVsize=270 [00:53:10]tlvbuf is 017EEF20 [00:53:10]SAM_PROTO_ClearQueue [00:53:10]wFMCommunicate request_size=4 [00:53:10]MH_SAM_APDU [00:53:10]CAPDU: 80 09 00 00 [00:53:10]Write to MH i2c: E2 08 00 B4 04 80 09 00 00 00 00 00 00 2A [00:53:10]Write i2c OK [00:53:10]MH_I2C_Read... [00:53:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:53:10]Read from MH i2c: E2 [00:53:10]MH_I2C_Read... [00:53:10]Read from MH i2c: E2 03 00 [00:53:10]MH_I2C_Read... [00:53:10]Read from MH i2c: E2 03 00 B4 04 00 90 00 2C [00:53:10]RAPDU: 90 00 [00:53:10]wFMCommunicate OK [00:53:10]SAM_PROTO_ClearQueue done [00:53:10]KKMCreateOFDPacket [00:53:10]OFDProtocolAddRootSTLVToBuf [00:53:10]FM_MakeSignedData [00:53:10]FM_MakeSignedData [00:53:10]SAM_PROTO_SignData [00:53:10]wFMCommunicate request_size=4 [00:53:10]MH_SAM_APDU [00:53:10]CAPDU: 80 0D 01 02 [00:53:10]Write to MH i2c: E2 08 00 B5 04 80 0D 01 02 00 00 00 00 32 [00:53:10]Write i2c OK [00:53:10]MH_I2C_Read... [00:53:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:53:10]Read from MH i2c: E2 [00:53:10]MH_I2C_Read... [00:53:10]Read from MH i2c: E2 03 00 [00:53:10]MH_I2C_Read... [00:53:10]Read from MH i2c: E2 03 00 B5 04 00 90 00 2D [00:53:10]RAPDU: 90 00 [00:53:10]wFMCommunicate OK [00:53:10]wFMCommunicate request_size=255 [00:53:10]MH_SAM_APDU [00:53:10]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 75 81 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [00:53:10]Write to MH i2c: E2 02 01 B6 04 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 75 81 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 81 [00:53:10]Write i2c OK [00:53:10]MH_I2C_Read... [00:53:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:53:10]Read from MH i2c: E2 [00:53:10]MH_I2C_Read... [00:53:10]Read from MH i2c: E2 03 00 [00:53:10]MH_I2C_Read... [00:53:10]Read from MH i2c: E2 03 00 B6 04 00 90 00 2E [00:53:10]RAPDU: 90 00 [00:53:10]wFMCommunicate OK [00:53:10]wFMCommunicate request_size=29 [00:53:10]MH_SAM_APDU [00:53:10]CAPDU: 80 0D 02 02 18 38 37 34 36 39 32 10 04 04 00 21 6A 01 00 35 04 06 00 5C 2E 0F 5C EA B2 [00:53:10]Write to MH i2c: E2 20 00 B7 04 80 0D 02 02 18 00 38 37 34 36 39 32 10 04 04 00 21 6A 01 00 35 04 06 00 5C 2E 0F 5C EA B2 00 00 1D [00:53:10]Write i2c OK [00:53:10]MH_I2C_Read... [00:53:11]OFD Sender: No OFD packet to send [00:53:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:53:11]Read from MH i2c: E2 [00:53:11]MH_I2C_Read... [00:53:11]Read from MH i2c: E2 03 00 [00:53:11]MH_I2C_Read... [00:53:11]Read from MH i2c: E2 03 00 B7 04 00 90 00 2F [00:53:11]RAPDU: 90 00 [00:53:11]wFMCommunicate OK [00:53:11]wFMCommunicate request_size=4 [00:53:11]MH_SAM_APDU [00:53:11]CAPDU: 80 0D 03 02 [00:53:11]Write to MH i2c: E2 08 00 B8 04 80 0D 03 02 00 00 00 00 37 [00:53:11]Write i2c OK [00:53:11]MH_I2C_Read... [00:53:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:53:11]Read from MH i2c: E2 [00:53:11]MH_I2C_Read... [00:53:11]Read from MH i2c: E2 0B 00 [00:53:11]MH_I2C_Read... [00:53:11]Read from MH i2c: E2 0B 00 B8 04 00 AC 15 52 CB E8 E4 13 01 90 00 F6 [00:53:11]RAPDU: AC 15 52 CB E8 E4 13 01 90 00 [00:53:11]wFMCommunicate OK [00:53:11]SAM_PROTO_SignData done [00:53:11]FM_MakeSignedData done [00:53:11]CreateOFDProtocolMessage [00:53:11]wFMCommunicate request_size=4 [00:53:11]MH_SAM_APDU [00:53:11]CAPDU: 80 11 00 00 [00:53:11]Write to MH i2c: E2 08 00 B9 04 80 11 00 00 00 00 00 00 37 [00:53:11]Write i2c OK [00:53:11]MH_I2C_Read... [00:53:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:53:11]Read from MH i2c: E2 [00:53:11]MH_I2C_Read... [00:53:11]Read from MH i2c: E2 17 00 [00:53:11]MH_I2C_Read... [00:53:11]Read from MH i2c: E2 17 00 B9 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 8E [00:53:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:53:11]wFMCommunicate OK [00:53:11]CreateOFDProtocolMessage done [00:53:11]OFDSenderStorePacket 92705 [00:53:11]StoreOFDPacket docnum=92705 [00:53:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 22 01 00 00 C6 DB 1A 01 7D 54 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 75 81 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 21 6A 01 00 35 04 06 00 5C 2E 0F 5C EA B2 AC 15 52 CB E8 E4 13 01 [00:53:11]CheckFolder [00:53:11]dirname=/storage/ofd_packets [00:53:11]CheckFolder done [00:53:11]ProducePacketName [00:53:11]name=ofd_packets/00092705 [00:53:11]NVStorageSaveData ofd_packets/00092705 [00:53:11]File name is /storage/ofd_packets/00092705 [00:53:11]Write 320 bytes [00:53:11]NVStorageSaveData done [00:53:11]OFDSenderStorePacket done [00:53:11]KKMCreateOFDPacket done [00:53:11]NVStorageSaveData kkm_last_timestamp [00:53:11]File name is /storage/kkm_last_timestamp [00:53:11]Write 4 bytes [00:53:11]NVStorageSaveData done [00:53:11]ExternCall_PrintAddStr [00:53:11]wPrintStart [00:53:11]Write to MH i2c: 01 00 00 BA 04 BE [00:53:11]Write i2c OK [00:53:11]MH_I2C_Read... [00:53:11]Read from MH i2c: 01 [00:53:11]MH_I2C_Read... [00:53:11]Read from MH i2c: 01 07 00 [00:53:11]MH_I2C_Read... [00:53:11]Read from MH i2c: 01 07 00 BA 04 00 00 00 00 00 FF 0F D3 [00:53:11]RasterBufferAndPrint [00:53:11]line Счет N : (3)127592 [00:53:11]line ИНН: 02508201610067 [00:53:11]line Контрольно-Кассовый Чек [00:53:11]line ПРОДАЖА [00:53:11]line Товар: 58411125749 [00:53:11]line Те самые макарон [00:53:11]line 1.000 * 195.00 [00:53:11]line = 195.00 [00:53:11]line НДС 12% НСП 1% [00:53:11]line > о реализуемом товаре [00:53:11]line ИТОГО: 195.00 [00:53:11]line НСП 1% : 1.73 [00:53:11]line НДС 12% : 20.71 [00:53:11]line Наличными: 195.00 [00:53:11]line Безнал.: 0.00 [00:53:11]line Место: АЗС № 5 "Партнер Нефть" [00:53:11]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [00:53:11]line СНО: Общий режим [00:53:11]line Чек 8 16.09.2024 00:53 [00:53:11]line Смена: 508 ФФД: 1.0 [00:53:11]line ЗНМ: 03000000022 [00:53:11]line РНМ: 0000000000091423 [00:53:11]line Версия ККМ: 001 [00:53:11]line ФМ: 0000000000874692 [00:53:11]line ФД: 92705 [00:53:11]line ФПД: 101352895998642 [00:53:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T005309&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92705&fm=101352895998642&tin=02508201610067®Number=0000000000091423&sum=19500 [00:53:11]line 0 [00:53:11]OFD Sender: Processing packet 92705 [packets to send 63, broken 62] [00:53:11]ProducePacketName [00:53:11]name=ofd_packets/00092705 [00:53:11]OFD Sender: To server: pG, [00:53:11]CommunicateWithHost lk.salyk.kg:30040 [00:53:11]ConnectInit lk.salyk.kg [00:53:11]written 0, free lines is 4095 [00:53:11]Connected sock=8 [00:53:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 22 01 00 00 C6 DB 1A 01 7D 54 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 75 81 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 21 6A 01 00 35 04 06 00 5C 2E 0F 5C EA B2 AC 15 52 CB E8 E4 13 01 [00:53:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 01 4A 47 00 9C 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 21 6A 01 00 F4 03 04 00 EC 29 E7 66 B6 04 01 00 00 C2 B7 20 51 2B 51 77 47 [00:53:11]CommunicateWithHost err = 0 [00:53:11]CheckOFDResponse [00:53:11]1017 (14) - 77093643461234 [00:53:11]1041 (16) - 0000000000874692 [00:53:11]1040 (4) - 92705 [00:53:11]1012 (4) - 15.09.2024 18:39 [00:53:11]1206 (1) - 0 [00:53:11]OFD Sender: Remove packet 92705 [00:53:11]ProducePacketName [00:53:11]name=ofd_packets/00092705 [00:53:11]NVStorageDeleteData [00:53:11]Write to MH i2c: 01 00 00 E2 04 E6 [00:53:11]Write i2c OK [00:53:11]MH_I2C_Read... [00:53:11]Read from MH i2c: 01 [00:53:11]MH_I2C_Read... [00:53:11]Read from MH i2c: 01 07 00 [00:53:11]MH_I2C_Read... [00:53:11]Read from MH i2c: 01 07 00 E2 04 00 00 00 00 00 2F 0D 29 [00:53:11]RasterBufferAndPrint [00:53:11]line [00:53:11]line [00:53:11]line [00:53:11]line [00:53:11]line [00:53:11]written 0, free lines is 3380 [00:53:11]MH_Cut [00:53:11]Write to MH i2c: D1 01 00 E9 04 01 BF [00:53:11]Write i2c OK [00:53:11]MH_I2C_Read... [00:53:11]Read from MH i2c: D1 [00:53:11]MH_I2C_Read... [00:53:11]Read from MH i2c: D1 01 00 [00:53:11]MH_I2C_Read... [00:53:11]Read from MH i2c: D1 01 00 E9 04 00 BE [00:53:11]Write to MH i2c: 01 00 00 EA 04 EE [00:53:11]Write i2c OK [00:53:11]MH_I2C_Read... [00:53:12]OFD Sender: No OFD packet to send [00:53:12]*** Cut start [00:53:12]*** Purtial cut [00:53:12]*** Stage 1: CUTSNS_PIN = 1 [00:53:14]Read from MH i2c: 01 [00:53:14]MH_I2C_Read... [00:53:14]*** Stop cut motor [00:53:14]*** Cut end [00:53:14]Read from MH i2c: 01 07 00 [00:53:14]MH_I2C_Read... [00:53:14]Read from MH i2c: 01 07 00 EA 04 00 00 00 00 00 FF 0F 03 [00:53:14]process_action close_receipt done [00:53:14]requested_data is exist [00:53:14]produce_requested_data [00:53:14]requested_item fm.sn is exist - process it [00:53:14]wFMCommunicate request_size=4 [00:53:14]MH_SAM_APDU [00:53:14]CAPDU: 80 11 00 00 [00:53:14]Write to MH i2c: E2 08 00 EB 04 80 11 00 00 00 00 00 00 69 [00:53:14]Write i2c OK [00:53:14]MH_I2C_Read... [00:53:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:53:14]Read from MH i2c: E2 [00:53:14]MH_I2C_Read... [00:53:14]Read from MH i2c: E2 17 00 [00:53:14]MH_I2C_Read... [00:53:14]Read from MH i2c: E2 17 00 EB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C0 [00:53:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:53:14]wFMCommunicate OK [00:53:14]requested_item fd.num is exist - process it [00:53:14]SAM_PROTO_GetFieldsCounters [00:53:14]wFMCommunicate request_size=4 [00:53:14]MH_SAM_APDU [00:53:14]CAPDU: 80 13 00 00 [00:53:14]Write to MH i2c: E2 08 00 EC 04 80 13 00 00 00 00 00 00 6C [00:53:14]Write i2c OK [00:53:14]MH_I2C_Read... [00:53:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:53:14]Read from MH i2c: E2 [00:53:14]MH_I2C_Read... [00:53:14]Read from MH i2c: E2 62 00 [00:53:14]MH_I2C_Read... [00:53:14]Read from MH i2c: E2 62 00 EC 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 21 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [00:53:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 21 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:53:14]wFMCommunicate OK [00:53:14]SAM_PROTO_GetFieldsCounters done [00:53:14]requested_item shift.num is exist - process it [00:53:14]requested_item shift.opened is exist - process it [00:53:14]req_shift_opened [00:53:14]FM_GetShiftState [00:53:14]SAM_PROTO_GetShiftState [00:53:14]wFMCommunicate request_size=4 [00:53:14]MH_SAM_APDU [00:53:14]CAPDU: 80 13 01 00 [00:53:14]Write to MH i2c: E2 08 00 ED 04 80 13 01 00 00 00 00 00 6E [00:53:14]Write i2c OK [00:53:14]MH_I2C_Read... [00:53:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:53:14]Read from MH i2c: E2 [00:53:14]MH_I2C_Read... [00:53:14]Read from MH i2c: E2 0E 00 [00:53:14]MH_I2C_Read... [00:53:14]Read from MH i2c: E2 0E 00 ED 04 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 07 [00:53:14]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [00:53:14]wFMCommunicate OK [00:53:14]SAM_PROTO_GetShiftState done [00:53:14]FM_GetShiftState done [00:53:14]req_shift_opened done [00:53:14]requested_item shift.open_date is exist - process it [00:53:14]req_shift_open_date [00:53:14]req_shift_open_date done [00:53:14]produce_requested_data done [00:53:14]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92705,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278} [00:53:14]process_action_free close_receipt [00:53:14]json_value_free [00:53:14]json_value_free done [00:53:14]process_json_proto returns [00:53:14]Send response to host [00:53:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92705,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278}}} [00:53:14]free response buf [00:53:14]execute_script done [00:53:14]execute_script returns [00:53:14]free content buf [00:53:14]Sock 7.Close socket [00:53:14]Sock 7.Thread stoped [00:53:17]OFD Sender: No OFD packet to send [00:53:22]OFD Sender: No OFD packet to send [00:53:27]OFD Sender: No OFD packet to send [00:53:32]OFD Sender: No OFD packet to send [00:53:37]OFD Sender: No OFD packet to send [00:53:42]OFD Sender: No OFD packet to send [00:53:47]OFD Sender: No OFD packet to send [00:53:52]OFD Sender: No OFD packet to send [00:53:57]OFD Sender: No OFD packet to send [00:54:02]OFD Sender: No OFD packet to send [00:54:07]OFD Sender: No OFD packet to send [00:54:12]OFD Sender: No OFD packet to send [00:54:17]OFD Sender: No OFD packet to send [00:54:22]OFD Sender: No OFD packet to send [00:54:27]OFD Sender: No OFD packet to send [00:54:32]OFD Sender: No OFD packet to send [00:54:37]OFD Sender: No OFD packet to send [00:54:42]OFD Sender: No OFD packet to send [00:54:47]OFD Sender: No OFD packet to send [00:54:52]OFD Sender: No OFD packet to send [00:54:57]OFD Sender: No OFD packet to send [00:55:02]OFD Sender: No OFD packet to send [00:55:07]OFD Sender: No OFD packet to send [00:55:12]OFD Sender: No OFD packet to send [00:55:17]OFD Sender: No OFD packet to send [00:55:22]OFD Sender: No OFD packet to send [00:55:27]OFD Sender: No OFD packet to send [00:55:32]OFD Sender: No OFD packet to send [00:55:37]OFD Sender: No OFD packet to send [00:55:42]OFD Sender: No OFD packet to send [00:55:47]OFD Sender: No OFD packet to send [00:55:52]OFD Sender: No OFD packet to send [00:55:57]OFD Sender: No OFD packet to send [00:56:02]OFD Sender: No OFD packet to send [00:56:07]OFD Sender: No OFD packet to send [00:56:12]OFD Sender: No OFD packet to send [00:56:17]OFD Sender: No OFD packet to send [00:56:22]OFD Sender: No OFD packet to send [00:56:27]OFD Sender: No OFD packet to send [00:56:32]OFD Sender: No OFD packet to send [00:56:37]OFD Sender: No OFD packet to send [00:56:42]OFD Sender: No OFD packet to send [00:56:47]OFD Sender: No OFD packet to send [00:56:52]OFD Sender: No OFD packet to send [00:56:57]OFD Sender: No OFD packet to send [00:57:02]OFD Sender: No OFD packet to send [00:57:07]OFD Sender: No OFD packet to send [00:57:12]OFD Sender: No OFD packet to send [00:57:17]OFD Sender: No OFD packet to send [00:57:22]OFD Sender: No OFD packet to send [00:57:27]OFD Sender: No OFD packet to send [00:57:32]OFD Sender: No OFD packet to send [00:57:37]OFD Sender: No OFD packet to send [00:57:42]OFD Sender: No OFD packet to send [00:57:47]OFD Sender: No OFD packet to send [00:57:52]OFD Sender: No OFD packet to send [00:57:57]OFD Sender: No OFD packet to send [00:58:02]OFD Sender: No OFD packet to send [00:58:07]OFD Sender: No OFD packet to send [00:58:12]OFD Sender: No OFD packet to send [00:58:17]OFD Sender: No OFD packet to send [00:58:22]OFD Sender: No OFD packet to send [00:58:27]OFD Sender: No OFD packet to send [00:58:32]OFD Sender: No OFD packet to send [00:58:37]OFD Sender: No OFD packet to send [00:58:42]OFD Sender: No OFD packet to send [00:58:47]OFD Sender: No OFD packet to send [00:58:52]OFD Sender: No OFD packet to send [00:58:57]OFD Sender: No OFD packet to send [00:59:02]OFD Sender: No OFD packet to send [00:59:07]OFD Sender: No OFD packet to send [00:59:12]OFD Sender: No OFD packet to send [00:59:17]OFD Sender: No OFD packet to send [00:59:22]OFD Sender: No OFD packet to send [00:59:27]OFD Sender: No OFD packet to send [00:59:32]OFD Sender: No OFD packet to send [00:59:37]OFD Sender: No OFD packet to send [00:59:42]OFD Sender: No OFD packet to send [00:59:47]OFD Sender: No OFD packet to send [00:59:52]OFD Sender: No OFD packet to send [00:59:57]OFD Sender: No OFD packet to send [01:00:02]OFD Sender: No OFD packet to send [01:00:07]OFD Sender: No OFD packet to send [01:00:12]OFD Sender: No OFD packet to send [01:00:17]OFD Sender: No OFD packet to send [01:00:22]OFD Sender: No OFD packet to send [01:00:27]OFD Sender: No OFD packet to send [01:00:32]OFD Sender: No OFD packet to send [01:00:37]OFD Sender: No OFD packet to send [01:00:42]OFD Sender: No OFD packet to send [01:00:47]OFD Sender: No OFD packet to send [01:00:52]OFD Sender: No OFD packet to send [01:00:57]OFD Sender: No OFD packet to send [01:01:02]OFD Sender: No OFD packet to send [01:01:07]OFD Sender: No OFD packet to send [01:01:12]OFD Sender: No OFD packet to send [01:01:17]OFD Sender: No OFD packet to send [01:01:22]OFD Sender: No OFD packet to send [01:01:27]OFD Sender: No OFD packet to send [01:01:32]OFD Sender: No OFD packet to send [01:01:37]OFD Sender: No OFD packet to send [01:01:42]OFD Sender: No OFD packet to send [01:01:47]OFD Sender: No OFD packet to send [01:01:52]OFD Sender: No OFD packet to send [01:01:57]OFD Sender: No OFD packet to send [01:02:02]OFD Sender: No OFD packet to send [01:02:07]OFD Sender: No OFD packet to send [01:02:12]OFD Sender: No OFD packet to send [01:02:17]OFD Sender: No OFD packet to send [01:02:22]OFD Sender: No OFD packet to send [01:02:27]OFD Sender: No OFD packet to send [01:02:32]OFD Sender: No OFD packet to send [01:02:37]OFD Sender: No OFD packet to send [01:02:42]OFD Sender: No OFD packet to send [01:02:47]OFD Sender: No OFD packet to send [01:02:52]OFD Sender: No OFD packet to send [01:02:57]OFD Sender: No OFD packet to send [01:03:02]OFD Sender: No OFD packet to send [01:03:07]OFD Sender: No OFD packet to send [01:03:12]OFD Sender: No OFD packet to send [01:03:17]OFD Sender: No OFD packet to send [01:03:22]OFD Sender: No OFD packet to send [01:03:27]OFD Sender: No OFD packet to send [01:03:32]OFD Sender: No OFD packet to send [01:03:37]OFD Sender: No OFD packet to send [01:03:42]OFD Sender: No OFD packet to send [01:03:47]OFD Sender: No OFD packet to send [01:03:52]OFD Sender: No OFD packet to send [01:03:57]OFD Sender: No OFD packet to send [01:04:02]OFD Sender: No OFD packet to send [01:04:07]OFD Sender: No OFD packet to send [01:04:12]OFD Sender: No OFD packet to send [01:04:17]OFD Sender: No OFD packet to send [01:04:22]OFD Sender: No OFD packet to send [01:04:27]OFD Sender: No OFD packet to send [01:04:32]OFD Sender: No OFD packet to send [01:04:37]OFD Sender: No OFD packet to send [01:04:42]OFD Sender: No OFD packet to send [01:04:47]OFD Sender: No OFD packet to send [01:04:52]OFD Sender: No OFD packet to send [01:04:57]OFD Sender: No OFD packet to send [01:05:02]OFD Sender: No OFD packet to send [01:05:07]OFD Sender: No OFD packet to send [01:05:12]OFD Sender: No OFD packet to send [01:05:17]OFD Sender: No OFD packet to send [01:05:22]OFD Sender: No OFD packet to send [01:05:27]OFD Sender: No OFD packet to send [01:05:32]OFD Sender: No OFD packet to send [01:05:37]OFD Sender: No OFD packet to send [01:05:42]OFD Sender: No OFD packet to send [01:05:47]OFD Sender: No OFD packet to send [01:05:52]OFD Sender: No OFD packet to send [01:05:57]OFD Sender: No OFD packet to send [01:06:02]OFD Sender: No OFD packet to send [01:06:07]accept exits with 6 [01:06:07]New connection [01:06:07]New thread 3066608996 created [01:06:07]Thread 3066752356 joined [01:06:07]Waiting for new connection... [01:06:07] Sock 6.Parse request [01:06:07]Sock 6.Check first char [01:06:07]Sock 6.First char is OK [01:06:07]request: POST /json_proto HTTP/1.0 [01:06:07]Method: POST [01:06:07]URL: /json_proto [01:06:07]Method is POST - this is cgi request [01:06:07]url: /json_proto [01:06:07]query_string will be loaded in cgi processing [01:06:07]execute_cgi json_proto POST (null) [01:06:07]execute_cgi path=json_proto method=POST [01:06:07]POST find Content-Length [01:06:07]Host: 172.17.57.71:8080 [01:06:07]Content-Length: 622 [01:06:07]Content-Type: application/json [01:06:07] [01:06:07]POST finish read [01:06:07]Found Content-Length = 622 [01:06:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127593", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:06:07]execute_script... [01:06:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127593", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:06:07]POST & json_proto [01:06:07]process_json_proto [01:06:07]json parsed OK: [01:06:07]protocol is kg_v1.0 [01:06:07]action value=close_receipt [01:06:07]process_action close_receipt [01:06:07]cmd_close_receipt [01:06:07]MH_GetDate [01:06:07]Write to MH i2c: F0 00 00 EE 04 E1 [01:06:07]Write i2c OK [01:06:07]MH_I2C_Read... [01:06:07]Read from MH i2c: F0 [01:06:07]MH_I2C_Read... [01:06:07]Read from MH i2c: F0 09 00 [01:06:07]MH_I2C_Read... [01:06:07]Read from MH i2c: F0 09 00 EE 04 00 7F 84 E7 66 33 3A A4 66 B1 [01:06:07]GetLastDocTimeStamp 1726447989 [01:06:07]current date 1726448767 [01:06:07]FM_GetShiftState [01:06:07]SAM_PROTO_GetShiftState [01:06:07]wFMCommunicate request_size=4 [01:06:07]MH_SAM_APDU [01:06:07]CAPDU: 80 13 01 00 [01:06:07]Write to MH i2c: E2 08 00 EF 04 80 13 01 00 00 00 00 00 70 [01:06:07]Write i2c OK [01:06:07]MH_I2C_Read... [01:06:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:06:07]Read from MH i2c: E2 [01:06:07]MH_I2C_Read... [01:06:07]Read from MH i2c: E2 0E 00 [01:06:07]MH_I2C_Read... [01:06:07]Read from MH i2c: E2 0E 00 EF 04 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 09 [01:06:07]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [01:06:07]wFMCommunicate OK [01:06:07]SAM_PROTO_GetShiftState done [01:06:07]FM_GetShiftState done [01:06:07]opened in 1726446278 [01:06:07]opened+sec_in_day 1726532678 [01:06:07]quantity*price = 15400 [01:06:07]sum+1 = 15401 [01:06:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 154.00 НСП 1% : 1.36 НДС 12% : 16.35 Наличными: 154.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 9 16.09.2024 01:06 Смена: 508 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92706 ФПД: 214722999945555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T010607&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92706&fm=214722999945555&tin=02508201610067®Number=0000000000091423&sum=15400 0 [01:06:08]StoreToDocumentArchive [01:06:08]shift 508 fd 92706 [01:06:08]save to /storage/0508/doc_00092706 [01:06:08]save last doc name /storage/0508/doc_00092706 to /storage/kkm_last_doc_name [01:06:08]save OK [01:06:08]Clear old archive folders... [01:06:08]ProcessDocumentItem done err = 0, tmpTLVsize=274 [01:06:08]tlvbuf is 016FDD60 [01:06:08]SAM_PROTO_ClearQueue [01:06:08]wFMCommunicate request_size=4 [01:06:08]MH_SAM_APDU [01:06:08]CAPDU: 80 09 00 00 [01:06:08]Write to MH i2c: E2 08 00 FC 04 80 09 00 00 00 00 00 00 72 [01:06:08]Write i2c OK [01:06:08]MH_I2C_Read... [01:06:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:06:08]Read from MH i2c: E2 [01:06:08]MH_I2C_Read... [01:06:08]Read from MH i2c: E2 03 00 [01:06:08]MH_I2C_Read... [01:06:08]Read from MH i2c: E2 03 00 FC 04 00 90 00 74 [01:06:08]RAPDU: 90 00 [01:06:08]wFMCommunicate OK [01:06:08]SAM_PROTO_ClearQueue done [01:06:08]KKMCreateOFDPacket [01:06:08]OFDProtocolAddRootSTLVToBuf [01:06:08]FM_MakeSignedData [01:06:08]FM_MakeSignedData [01:06:08]SAM_PROTO_SignData [01:06:08]wFMCommunicate request_size=4 [01:06:08]MH_SAM_APDU [01:06:08]CAPDU: 80 0D 01 02 [01:06:08]Write to MH i2c: E2 08 00 FD 04 80 0D 01 02 00 00 00 00 7A [01:06:08]Write i2c OK [01:06:08]MH_I2C_Read... [01:06:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:06:08]Read from MH i2c: E2 [01:06:08]MH_I2C_Read... [01:06:08]Read from MH i2c: E2 03 00 [01:06:08]MH_I2C_Read... [01:06:08]Read from MH i2c: E2 03 00 FD 04 00 90 00 75 [01:06:08]RAPDU: 90 00 [01:06:08]wFMCommunicate OK [01:06:08]wFMCommunicate request_size=255 [01:06:08]MH_SAM_APDU [01:06:08]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 7F 84 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 [01:06:08]Write to MH i2c: E2 02 01 FE 04 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 7F 84 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 00 00 57 [01:06:08]Write i2c OK [01:06:08]MH_I2C_Read... [01:06:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:06:08]Read from MH i2c: E2 [01:06:08]MH_I2C_Read... [01:06:08]Read from MH i2c: E2 03 00 [01:06:08]MH_I2C_Read... [01:06:08]Read from MH i2c: E2 03 00 FE 04 00 90 00 76 [01:06:08]RAPDU: 90 00 [01:06:08]wFMCommunicate OK [01:06:08]wFMCommunicate request_size=33 [01:06:08]MH_SAM_APDU [01:06:08]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 39 32 10 04 04 00 22 6A 01 00 35 04 06 00 C3 4A 18 23 09 53 [01:06:08]Write to MH i2c: E2 24 00 FF 04 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 39 32 10 04 04 00 22 6A 01 00 35 04 06 00 C3 4A 18 23 09 53 00 00 41 [01:06:08]Write i2c OK [01:06:08]MH_I2C_Read... [01:06:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:06:09]Read from MH i2c: E2 [01:06:09]MH_I2C_Read... [01:06:09]Read from MH i2c: E2 03 00 [01:06:09]MH_I2C_Read... [01:06:09]Read from MH i2c: E2 03 00 FF 04 00 90 00 77 [01:06:09]RAPDU: 90 00 [01:06:09]wFMCommunicate OK [01:06:09]wFMCommunicate request_size=4 [01:06:09]MH_SAM_APDU [01:06:09]CAPDU: 80 0D 03 02 [01:06:09]Write to MH i2c: E2 08 00 00 05 80 0D 03 02 00 00 00 00 80 [01:06:09]Write i2c OK [01:06:09]MH_I2C_Read... [01:06:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:06:09]Read from MH i2c: E2 [01:06:09]MH_I2C_Read... [01:06:09]Read from MH i2c: E2 0B 00 [01:06:09]MH_I2C_Read... [01:06:09]Read from MH i2c: E2 0B 00 00 05 00 44 B2 FF BF 98 8E 7C CA 90 00 A1 [01:06:09]RAPDU: 44 B2 FF BF 98 8E 7C CA 90 00 [01:06:09]wFMCommunicate OK [01:06:09]SAM_PROTO_SignData done [01:06:09]FM_MakeSignedData done [01:06:09]CreateOFDProtocolMessage [01:06:09]wFMCommunicate request_size=4 [01:06:09]MH_SAM_APDU [01:06:09]CAPDU: 80 11 00 00 [01:06:09]Write to MH i2c: E2 08 00 01 05 80 11 00 00 00 00 00 00 80 [01:06:09]Write i2c OK [01:06:09]MH_I2C_Read... [01:06:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:06:09]Read from MH i2c: E2 [01:06:09]MH_I2C_Read... [01:06:09]Read from MH i2c: E2 17 00 [01:06:09]MH_I2C_Read... [01:06:09]Read from MH i2c: E2 17 00 01 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D7 [01:06:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:06:09]wFMCommunicate OK [01:06:09]CreateOFDProtocolMessage done [01:06:09]OFDSenderStorePacket 92706 [01:06:09]StoreOFDPacket docnum=92706 [01:06:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 26 01 00 00 DE B3 1E 01 7D 0B 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 7F 84 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 22 6A 01 00 35 04 06 00 C3 4A 18 23 09 53 44 B2 FF BF 98 8E 7C CA [01:06:09]CheckFolder [01:06:09]dirname=/storage/ofd_packets [01:06:09]CheckFolder done [01:06:09]ProducePacketName [01:06:09]name=ofd_packets/00092706 [01:06:09]NVStorageSaveData ofd_packets/00092706 [01:06:09]File name is /storage/ofd_packets/00092706 [01:06:09]Write 324 bytes [01:06:09]NVStorageSaveData done [01:06:09]OFDSenderStorePacket done [01:06:09]KKMCreateOFDPacket done [01:06:09]NVStorageSaveData kkm_last_timestamp [01:06:09]File name is /storage/kkm_last_timestamp [01:06:09]Write 4 bytes [01:06:09]NVStorageSaveData done [01:06:09]ExternCall_PrintAddStr [01:06:09]wPrintStart [01:06:09]Write to MH i2c: 01 00 00 02 05 07 [01:06:09]Write i2c OK [01:06:09]MH_I2C_Read... [01:06:09]Read from MH i2c: 01 [01:06:09]MH_I2C_Read... [01:06:09]Read from MH i2c: 01 07 00 [01:06:09]MH_I2C_Read... [01:06:09]Read from MH i2c: 01 07 00 02 05 00 00 00 00 00 FF 0F 1C [01:06:09]RasterBufferAndPrint [01:06:09]line Счет N : (3)127593 [01:06:09]line ИНН: 02508201610067 [01:06:09]line Контрольно-Кассовый Чек [01:06:09]line ПРОДАЖА [01:06:09]line Товар: 46230614 [01:06:09]line Сигареты Richmond Red Edition [01:06:09]line 1.000 * 154.00 [01:06:09]line = 154.00 [01:06:09]line НДС 12% НСП 1% [01:06:09]line > о реализуемом товаре [01:06:09]line ИТОГО: 154.00 [01:06:09]line НСП 1% : 1.36 [01:06:09]line НДС 12% : 16.35 [01:06:09]line Наличными: 154.00 [01:06:09]line Безнал.: 0.00 [01:06:09]line Место: АЗС № 5 "Партнер Нефть" [01:06:09]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [01:06:09]line СНО: Общий режим [01:06:09]line Чек 9 16.09.2024 01:06 [01:06:09]line Смена: 508 ФФД: 1.0 [01:06:09]line ЗНМ: 03000000022 [01:06:09]line РНМ: 0000000000091423 [01:06:09]line Версия ККМ: 001 [01:06:09]line ФМ: 0000000000874692 [01:06:09]line ФД: 92706 [01:06:09]line ФПД: 214722999945555 [01:06:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T010607&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92706&fm=214722999945555&tin=02508201610067®Number=0000000000091423&sum=15400 [01:06:09]line 0 [01:06:09]OFD Sender: Processing packet 92706 [packets to send 63, broken 62] [01:06:09]ProducePacketName [01:06:09]name=ofd_packets/00092706 [01:06:09]OFD Sender: To server: pG, [01:06:09]CommunicateWithHost lk.salyk.kg:30040 [01:06:09]ConnectInit lk.salyk.kg [01:06:09]written 0, free lines is 4095 [01:06:09]Connected sock=8 [01:06:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 26 01 00 00 DE B3 1E 01 7D 0B 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 7F 84 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 22 6A 01 00 35 04 06 00 C3 4A 18 23 09 53 44 B2 FF BF 98 8E 7C CA [01:06:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 6C 48 47 00 11 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 22 6A 01 00 F4 03 04 00 F6 2C E7 66 B6 04 01 00 00 91 13 21 97 58 81 D0 CC [01:06:09]CommunicateWithHost err = 0 [01:06:09]CheckOFDResponse [01:06:09]1017 (14) - 77093643461234 [01:06:09]1041 (16) - 0000000000874692 [01:06:09]1040 (4) - 92706 [01:06:09]1012 (4) - 15.09.2024 18:52 [01:06:09]1206 (1) - 0 [01:06:09]OFD Sender: Remove packet 92706 [01:06:09]ProducePacketName [01:06:09]name=ofd_packets/00092706 [01:06:09]NVStorageDeleteData [01:06:09]Write to MH i2c: 01 00 00 2B 05 30 [01:06:09]Write i2c OK [01:06:09]MH_I2C_Read... [01:06:09]Read from MH i2c: 01 [01:06:09]MH_I2C_Read... [01:06:09]Read from MH i2c: 01 07 00 [01:06:09]MH_I2C_Read... [01:06:09]Read from MH i2c: 01 07 00 2B 05 00 00 00 00 00 FA 0C 3D [01:06:09]RasterBufferAndPrint [01:06:09]line [01:06:09]line [01:06:09]line [01:06:09]line [01:06:09]line [01:06:09]written 0, free lines is 3330 [01:06:09]MH_Cut [01:06:09]Write to MH i2c: D1 01 00 32 05 01 09 [01:06:09]Write i2c OK [01:06:09]MH_I2C_Read... [01:06:09]Read from MH i2c: D1 [01:06:09]MH_I2C_Read... [01:06:09]Read from MH i2c: D1 01 00 [01:06:09]MH_I2C_Read... [01:06:09]Read from MH i2c: D1 01 00 32 05 00 08 [01:06:09]Write to MH i2c: 01 00 00 33 05 38 [01:06:09]Write i2c OK [01:06:09]MH_I2C_Read... [01:06:10]OFD Sender: No OFD packet to send [01:06:10]*** Cut start [01:06:10]*** Purtial cut [01:06:10]*** Stage 1: CUTSNS_PIN = 1 [01:06:12]Read from MH i2c: 01 [01:06:12]MH_I2C_Read... [01:06:12]*** Stop cut motor [01:06:12]*** Cut end [01:06:12]Read from MH i2c: 01 07 00 [01:06:12]MH_I2C_Read... [01:06:12]Read from MH i2c: 01 07 00 33 05 00 00 00 00 00 FF 0F 4D [01:06:12]process_action close_receipt done [01:06:12]requested_data is exist [01:06:12]produce_requested_data [01:06:12]requested_item fm.sn is exist - process it [01:06:12]wFMCommunicate request_size=4 [01:06:12]MH_SAM_APDU [01:06:12]CAPDU: 80 11 00 00 [01:06:12]Write to MH i2c: E2 08 00 34 05 80 11 00 00 00 00 00 00 B3 [01:06:12]Write i2c OK [01:06:12]MH_I2C_Read... [01:06:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:06:12]Read from MH i2c: E2 [01:06:12]MH_I2C_Read... [01:06:12]Read from MH i2c: E2 17 00 [01:06:12]MH_I2C_Read... [01:06:12]Read from MH i2c: E2 17 00 34 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 0A [01:06:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:06:12]wFMCommunicate OK [01:06:12]requested_item fd.num is exist - process it [01:06:12]SAM_PROTO_GetFieldsCounters [01:06:12]wFMCommunicate request_size=4 [01:06:12]MH_SAM_APDU [01:06:12]CAPDU: 80 13 00 00 [01:06:12]Write to MH i2c: E2 08 00 35 05 80 13 00 00 00 00 00 00 B6 [01:06:12]Write i2c OK [01:06:12]MH_I2C_Read... [01:06:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:06:12]Read from MH i2c: E2 [01:06:12]MH_I2C_Read... [01:06:12]Read from MH i2c: E2 62 00 [01:06:12]MH_I2C_Read... [01:06:12]Read from MH i2c: E2 62 00 35 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 22 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [01:06:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 22 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:06:12]wFMCommunicate OK [01:06:12]SAM_PROTO_GetFieldsCounters done [01:06:12]requested_item shift.num is exist - process it [01:06:12]requested_item shift.opened is exist - process it [01:06:12]req_shift_opened [01:06:12]FM_GetShiftState [01:06:12]SAM_PROTO_GetShiftState [01:06:12]wFMCommunicate request_size=4 [01:06:12]MH_SAM_APDU [01:06:12]CAPDU: 80 13 01 00 [01:06:12]Write to MH i2c: E2 08 00 36 05 80 13 01 00 00 00 00 00 B8 [01:06:12]Write i2c OK [01:06:12]MH_I2C_Read... [01:06:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:06:12]Read from MH i2c: E2 [01:06:12]MH_I2C_Read... [01:06:12]Read from MH i2c: E2 0E 00 [01:06:12]MH_I2C_Read... [01:06:12]Read from MH i2c: E2 0E 00 36 05 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 51 [01:06:12]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [01:06:12]wFMCommunicate OK [01:06:12]SAM_PROTO_GetShiftState done [01:06:12]FM_GetShiftState done [01:06:12]req_shift_opened done [01:06:12]requested_item shift.open_date is exist - process it [01:06:12]req_shift_open_date [01:06:12]req_shift_open_date done [01:06:12]produce_requested_data done [01:06:12]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92706,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278} [01:06:12]process_action_free close_receipt [01:06:12]json_value_free [01:06:12]json_value_free done [01:06:12]process_json_proto returns [01:06:12]Send response to host [01:06:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92706,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278}}} [01:06:12]free response buf [01:06:12]execute_script done [01:06:12]execute_script returns [01:06:12]free content buf [01:06:12]Sock 6.Close socket [01:06:12]Sock 6.Thread stoped [01:06:15]OFD Sender: No OFD packet to send [01:06:20]OFD Sender: No OFD packet to send [01:06:25]OFD Sender: No OFD packet to send [01:06:30]OFD Sender: No OFD packet to send [01:06:35]OFD Sender: No OFD packet to send [01:06:40]OFD Sender: No OFD packet to send [01:06:45]OFD Sender: No OFD packet to send [01:06:50]OFD Sender: No OFD packet to send [01:06:55]OFD Sender: No OFD packet to send [01:07:00]OFD Sender: No OFD packet to send [01:07:05]OFD Sender: No OFD packet to send [01:07:10]OFD Sender: No OFD packet to send [01:07:15]OFD Sender: No OFD packet to send [01:07:20]OFD Sender: No OFD packet to send [01:07:25]OFD Sender: No OFD packet to send [01:07:30]OFD Sender: No OFD packet to send [01:07:35]OFD Sender: No OFD packet to send [01:07:40]OFD Sender: No OFD packet to send [01:07:40]accept exits with 7 [01:07:40]New connection [01:07:40]New thread 3066752356 created [01:07:40]Thread 3066608996 joined [01:07:40]Waiting for new connection... [01:07:40] Sock 7.Parse request [01:07:40]Sock 7.Check first char [01:07:40]Sock 7.First char is OK [01:07:40]request: POST /json_proto HTTP/1.0 [01:07:40]Method: POST [01:07:40]URL: /json_proto [01:07:40]Method is POST - this is cgi request [01:07:40]url: /json_proto [01:07:40]query_string will be loaded in cgi processing [01:07:40]execute_cgi json_proto POST (null) [01:07:40]execute_cgi path=json_proto method=POST [01:07:40]POST find Content-Length [01:07:40]Host: 172.17.57.71:8080 [01:07:40]Content-Length: 898 [01:07:40]Content-Type: application/json [01:07:40] [01:07:40]POST finish read [01:07:40]Found Content-Length = 898 [01:07:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127594", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8710732217097", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 206.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:07:40]execute_script... [01:07:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127594", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8710732217097", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 206.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:07:40]POST & json_proto [01:07:40]process_json_proto [01:07:40]json parsed OK: [01:07:40]protocol is kg_v1.0 [01:07:40]action value=close_receipt [01:07:40]process_action close_receipt [01:07:40]cmd_close_receipt [01:07:40]MH_GetDate [01:07:40]Write to MH i2c: F0 00 00 37 05 2B [01:07:40]Write i2c OK [01:07:40]MH_I2C_Read... [01:07:40]Read from MH i2c: F0 [01:07:40]MH_I2C_Read... [01:07:40]Read from MH i2c: F0 09 00 [01:07:40]MH_I2C_Read... [01:07:40]Read from MH i2c: F0 09 00 37 05 00 DD 84 E7 66 33 3A A4 66 59 [01:07:40]GetLastDocTimeStamp 1726448767 [01:07:40]current date 1726448861 [01:07:40]FM_GetShiftState [01:07:40]SAM_PROTO_GetShiftState [01:07:40]wFMCommunicate request_size=4 [01:07:40]MH_SAM_APDU [01:07:40]CAPDU: 80 13 01 00 [01:07:40]Write to MH i2c: E2 08 00 38 05 80 13 01 00 00 00 00 00 BA [01:07:40]Write i2c OK [01:07:40]MH_I2C_Read... [01:07:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:07:40]Read from MH i2c: E2 [01:07:40]MH_I2C_Read... [01:07:40]Read from MH i2c: E2 0E 00 [01:07:40]MH_I2C_Read... [01:07:40]Read from MH i2c: E2 0E 00 38 05 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 53 [01:07:40]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [01:07:40]wFMCommunicate OK [01:07:40]SAM_PROTO_GetShiftState done [01:07:40]FM_GetShiftState done [01:07:40]opened in 1726446278 [01:07:40]opened+sec_in_day 1726532678 [01:07:40]quantity*price = 13900 [01:07:40]sum+1 = 13901 [01:07:40]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 8710732217097 Зажигалка Cricket ПН пьезо 1.000 * 67.00 = 67.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 206.00 НСП 1% : 1.82 НДС 12% : 21.87 Наличными: 206.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 10 16.09.2024 01:07 Смена: 508 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92707 ФПД: 214179620310763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T010741&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92707&fm=214179620310763&tin=02508201610067®Number=0000000000091423&sum=20600 0 [01:07:41]StoreToDocumentArchive [01:07:41]shift 508 fd 92707 [01:07:41]save to /storage/0508/doc_00092707 [01:07:41]save last doc name /storage/0508/doc_00092707 to /storage/kkm_last_doc_name [01:07:41]save OK [01:07:41]Clear old archive folders... [01:07:41]ProcessDocumentItem done err = 0, tmpTLVsize=386 [01:07:41]tlvbuf is 016E5E70 [01:07:41]SAM_PROTO_ClearQueue [01:07:41]wFMCommunicate request_size=4 [01:07:41]MH_SAM_APDU [01:07:41]CAPDU: 80 09 00 00 [01:07:41]Write to MH i2c: E2 08 00 45 05 80 09 00 00 00 00 00 00 BC [01:07:41]Write i2c OK [01:07:41]MH_I2C_Read... [01:07:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:07:41]Read from MH i2c: E2 [01:07:41]MH_I2C_Read... [01:07:41]Read from MH i2c: E2 03 00 [01:07:41]MH_I2C_Read... [01:07:41]Read from MH i2c: E2 03 00 45 05 00 90 00 BE [01:07:41]RAPDU: 90 00 [01:07:41]wFMCommunicate OK [01:07:41]SAM_PROTO_ClearQueue done [01:07:41]KKMCreateOFDPacket [01:07:41]OFDProtocolAddRootSTLVToBuf [01:07:41]FM_MakeSignedData [01:07:41]FM_MakeSignedData [01:07:41]SAM_PROTO_SignData [01:07:41]wFMCommunicate request_size=4 [01:07:41]MH_SAM_APDU [01:07:41]CAPDU: 80 0D 01 02 [01:07:41]Write to MH i2c: E2 08 00 46 05 80 0D 01 02 00 00 00 00 C4 [01:07:41]Write i2c OK [01:07:41]MH_I2C_Read... [01:07:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:07:41]Read from MH i2c: E2 [01:07:41]MH_I2C_Read... [01:07:41]Read from MH i2c: E2 03 00 [01:07:41]MH_I2C_Read... [01:07:41]Read from MH i2c: E2 03 00 46 05 00 90 00 BF [01:07:41]RAPDU: 90 00 [01:07:41]wFMCommunicate OK [01:07:41]wFMCommunicate request_size=255 [01:07:41]MH_SAM_APDU [01:07:41]CAPDU: 80 0D 02 02 FA 03 00 82 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 [01:07:41]Write to MH i2c: E2 02 01 47 05 80 0D 02 02 FA 00 03 00 82 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 00 00 5F [01:07:41]Write i2c OK [01:07:41]MH_I2C_Read... [01:07:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:07:42]Read from MH i2c: E2 [01:07:42]MH_I2C_Read... [01:07:42]Read from MH i2c: E2 03 00 [01:07:42]MH_I2C_Read... [01:07:42]Read from MH i2c: E2 03 00 47 05 00 90 00 C0 [01:07:42]RAPDU: 90 00 [01:07:42]wFMCommunicate OK [01:07:42]wFMCommunicate request_size=145 [01:07:42]MH_SAM_APDU [01:07:42]CAPDU: 80 0D 02 02 8C 06 00 B6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 08 00 00 00 00 07 04 06 00 78 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 DD 84 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 23 6A 01 00 35 04 06 00 C2 CB 94 2F CE EB [01:07:42]Write to MH i2c: E2 94 00 48 05 80 0D 02 02 8C 00 06 00 B6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 08 00 00 00 00 07 04 06 00 78 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 DD 84 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 23 6A 01 00 35 04 06 00 C2 CB 94 2F CE EB 00 00 6D [01:07:42]Write i2c OK [01:07:42]MH_I2C_Read... [01:07:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:07:42]Read from MH i2c: E2 [01:07:42]MH_I2C_Read... [01:07:42]Read from MH i2c: E2 03 00 [01:07:42]MH_I2C_Read... [01:07:42]Read from MH i2c: E2 03 00 48 05 00 90 00 C1 [01:07:42]RAPDU: 90 00 [01:07:42]wFMCommunicate OK [01:07:42]wFMCommunicate request_size=4 [01:07:42]MH_SAM_APDU [01:07:42]CAPDU: 80 0D 03 02 [01:07:42]Write to MH i2c: E2 08 00 49 05 80 0D 03 02 00 00 00 00 C9 [01:07:42]Write i2c OK [01:07:42]MH_I2C_Read... [01:07:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:07:42]Read from MH i2c: E2 [01:07:42]MH_I2C_Read... [01:07:42]Read from MH i2c: E2 0B 00 [01:07:42]MH_I2C_Read... [01:07:42]Read from MH i2c: E2 0B 00 49 05 00 BB AA FC 16 74 EA DE 2F 90 00 AC [01:07:42]RAPDU: BB AA FC 16 74 EA DE 2F 90 00 [01:07:42]wFMCommunicate OK [01:07:42]SAM_PROTO_SignData done [01:07:42]FM_MakeSignedData done [01:07:42]CreateOFDProtocolMessage [01:07:42]wFMCommunicate request_size=4 [01:07:42]MH_SAM_APDU [01:07:42]CAPDU: 80 11 00 00 [01:07:42]Write to MH i2c: E2 08 00 4A 05 80 11 00 00 00 00 00 00 C9 [01:07:42]Write i2c OK [01:07:42]MH_I2C_Read... [01:07:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:07:42]Read from MH i2c: E2 [01:07:42]MH_I2C_Read... [01:07:42]Read from MH i2c: E2 17 00 [01:07:42]MH_I2C_Read... [01:07:42]Read from MH i2c: E2 17 00 4A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 20 [01:07:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:07:42]wFMCommunicate OK [01:07:42]CreateOFDProtocolMessage done [01:07:42]OFDSenderStorePacket 92707 [01:07:42]StoreOFDPacket docnum=92707 [01:07:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 96 01 00 00 0E BF 8E 01 6F C5 5A 03 01 00 03 00 82 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 08 00 00 00 00 07 04 06 00 78 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 DD 84 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 23 6A 01 00 35 04 06 00 C2 CB 94 2F CE EB BB AA FC 16 74 EA DE 2F [01:07:42]CheckFolder [01:07:42]dirname=/storage/ofd_packets [01:07:42]CheckFolder done [01:07:42]ProducePacketName [01:07:42]name=ofd_packets/00092707 [01:07:42]NVStorageSaveData ofd_packets/00092707 [01:07:42]File name is /storage/ofd_packets/00092707 [01:07:42]Write 436 bytes [01:07:42]NVStorageSaveData done [01:07:42]OFDSenderStorePacket done [01:07:42]KKMCreateOFDPacket done [01:07:42]NVStorageSaveData kkm_last_timestamp [01:07:42]File name is /storage/kkm_last_timestamp [01:07:42]Write 4 bytes [01:07:42]NVStorageSaveData done [01:07:42]ExternCall_PrintAddStr [01:07:42]wPrintStart [01:07:42]Write to MH i2c: 01 00 00 4B 05 50 [01:07:42]Write i2c OK [01:07:42]MH_I2C_Read... [01:07:42]Read from MH i2c: 01 [01:07:42]MH_I2C_Read... [01:07:42]Read from MH i2c: 01 07 00 [01:07:42]MH_I2C_Read... [01:07:42]Read from MH i2c: 01 07 00 4B 05 00 00 00 00 00 FF 0F 65 [01:07:42]RasterBufferAndPrint [01:07:42]line Счет N : (3)127594 [01:07:42]line ИНН: 02508201610067 [01:07:42]line Контрольно-Кассовый Чек [01:07:42]line ПРОДАЖА [01:07:42]line Товар: 48745000 [01:07:42]line Сигареты Winston Purple Mix [01:07:42]line 1.000 * 139.00 [01:07:42]line = 139.00 [01:07:42]line НДС 12% НСП 1% [01:07:42]line > о реализуемом товаре [01:07:42]line Товар: 8710732217097 [01:07:42]line Зажигалка Cricket ПН пьезо [01:07:42]line 1.000 * 67.00 [01:07:42]line = 67.00 [01:07:42]line НДС 12% НСП 1% [01:07:42]line > о реализуемом товаре [01:07:42]line ИТОГО: 206.00 [01:07:42]line НСП 1% : 1.82 [01:07:42]line НДС 12% : 21.87 [01:07:42]line Наличными: 206.00 [01:07:42]line Безнал.: 0.00 [01:07:42]line Место: АЗС № 5 "Партнер Нефть" [01:07:42]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [01:07:42]line СНО: Общий режим [01:07:42]line Чек 10 16.09.2024 01:07 [01:07:42]line Смена: 508 ФФД: 1.0 [01:07:42]line ЗНМ: 03000000022 [01:07:42]line РНМ: 0000000000091423 [01:07:42]line Версия ККМ: 001 [01:07:42]line ФМ: 0000000000874692 [01:07:42]line ФД: 92707 [01:07:42]line ФПД: 214179620310763 [01:07:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T010741&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92707&fm=214179620310763&tin=02508201610067®Number=0000000000091423&sum=20600 [01:07:42]line 0 [01:07:42]OFD Sender: Processing packet 92707 [packets to send 63, broken 62] [01:07:42]ProducePacketName [01:07:42]name=ofd_packets/00092707 [01:07:42]OFD Sender: To server: pG, [01:07:42]CommunicateWithHost lk.salyk.kg:30040 [01:07:42]ConnectInit lk.salyk.kg [01:07:42]written 0, free lines is 4095 [01:07:42]Connected sock=8 [01:07:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 96 01 00 00 0E BF 8E 01 6F C5 5A 03 01 00 03 00 82 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 08 00 00 00 00 07 04 06 00 78 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 DD 84 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 23 6A 01 00 35 04 06 00 C2 CB 94 2F CE EB BB AA FC 16 74 EA DE 2F [01:07:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 A1 FE 47 00 1F DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 23 6A 01 00 F4 03 04 00 53 2D E7 66 B6 04 01 00 00 C2 2F 66 AA BA F1 9E EB [01:07:43]CommunicateWithHost err = 0 [01:07:43]CheckOFDResponse [01:07:43]1017 (14) - 77093643461234 [01:07:43]1041 (16) - 0000000000874692 [01:07:43]1040 (4) - 92707 [01:07:43]1012 (4) - 15.09.2024 18:54 [01:07:43]1206 (1) - 0 [01:07:43]OFD Sender: Remove packet 92707 [01:07:43]ProducePacketName [01:07:43]name=ofd_packets/00092707 [01:07:43]NVStorageDeleteData [01:07:43]Write to MH i2c: 01 00 00 79 05 7E [01:07:43]Write i2c OK [01:07:43]MH_I2C_Read... [01:07:43]Read from MH i2c: 01 [01:07:43]MH_I2C_Read... [01:07:43]Read from MH i2c: 01 07 00 [01:07:43]MH_I2C_Read... [01:07:43]Read from MH i2c: 01 07 00 79 05 00 00 00 00 00 D9 0C 6A [01:07:43]RasterBufferAndPrint [01:07:43]line [01:07:43]line [01:07:43]line [01:07:43]line [01:07:43]line [01:07:43]written 0, free lines is 3297 [01:07:43]MH_Cut [01:07:43]Write to MH i2c: D1 01 00 80 05 01 57 [01:07:43]Write i2c OK [01:07:43]MH_I2C_Read... [01:07:43]Read from MH i2c: D1 [01:07:43]MH_I2C_Read... [01:07:43]Read from MH i2c: D1 01 00 [01:07:43]MH_I2C_Read... [01:07:43]Read from MH i2c: D1 01 00 80 05 00 56 [01:07:43]Write to MH i2c: 01 00 00 81 05 86 [01:07:43]Write i2c OK [01:07:43]MH_I2C_Read... [01:07:43]OFD Sender: No OFD packet to send [01:07:43]*** Cut start [01:07:43]*** Purtial cut [01:07:43]*** Stage 1: CUTSNS_PIN = 1 [01:07:46]Read from MH i2c: 01 [01:07:46]MH_I2C_Read... [01:07:46]*** Stop cut motor [01:07:46]*** Cut end [01:07:46]Read from MH i2c: 01 07 00 [01:07:46]MH_I2C_Read... [01:07:46]Read from MH i2c: 01 07 00 81 05 00 00 00 00 00 FF 0F 9B [01:07:46]process_action close_receipt done [01:07:46]requested_data is exist [01:07:46]produce_requested_data [01:07:46]requested_item fm.sn is exist - process it [01:07:46]wFMCommunicate request_size=4 [01:07:46]MH_SAM_APDU [01:07:46]CAPDU: 80 11 00 00 [01:07:46]Write to MH i2c: E2 08 00 82 05 80 11 00 00 00 00 00 00 01 [01:07:46]Write i2c OK [01:07:46]MH_I2C_Read... [01:07:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:07:46]Read from MH i2c: E2 [01:07:46]MH_I2C_Read... [01:07:46]Read from MH i2c: E2 17 00 [01:07:46]MH_I2C_Read... [01:07:46]Read from MH i2c: E2 17 00 82 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 58 [01:07:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:07:46]wFMCommunicate OK [01:07:46]requested_item fd.num is exist - process it [01:07:46]SAM_PROTO_GetFieldsCounters [01:07:46]wFMCommunicate request_size=4 [01:07:46]MH_SAM_APDU [01:07:46]CAPDU: 80 13 00 00 [01:07:46]Write to MH i2c: E2 08 00 83 05 80 13 00 00 00 00 00 00 04 [01:07:46]Write i2c OK [01:07:46]MH_I2C_Read... [01:07:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:07:46]Read from MH i2c: E2 [01:07:46]MH_I2C_Read... [01:07:46]Read from MH i2c: E2 62 00 [01:07:46]MH_I2C_Read... [01:07:46]Read from MH i2c: E2 62 00 83 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 23 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [01:07:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 23 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:07:46]wFMCommunicate OK [01:07:46]SAM_PROTO_GetFieldsCounters done [01:07:46]requested_item shift.num is exist - process it [01:07:46]requested_item shift.opened is exist - process it [01:07:46]req_shift_opened [01:07:46]FM_GetShiftState [01:07:46]SAM_PROTO_GetShiftState [01:07:46]wFMCommunicate request_size=4 [01:07:46]MH_SAM_APDU [01:07:46]CAPDU: 80 13 01 00 [01:07:46]Write to MH i2c: E2 08 00 84 05 80 13 01 00 00 00 00 00 06 [01:07:46]Write i2c OK [01:07:46]MH_I2C_Read... [01:07:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:07:46]Read from MH i2c: E2 [01:07:46]MH_I2C_Read... [01:07:46]Read from MH i2c: E2 0E 00 [01:07:46]MH_I2C_Read... [01:07:46]Read from MH i2c: E2 0E 00 84 05 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 9F [01:07:46]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [01:07:46]wFMCommunicate OK [01:07:46]SAM_PROTO_GetShiftState done [01:07:46]FM_GetShiftState done [01:07:46]req_shift_opened done [01:07:46]requested_item shift.open_date is exist - process it [01:07:46]req_shift_open_date [01:07:46]req_shift_open_date done [01:07:46]produce_requested_data done [01:07:46]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92707,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278} [01:07:46]process_action_free close_receipt [01:07:46]json_value_free [01:07:46]json_value_free done [01:07:46]process_json_proto returns [01:07:46]Send response to host [01:07:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92707,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278}}} [01:07:46]free response buf [01:07:46]execute_script done [01:07:46]execute_script returns [01:07:46]free content buf [01:07:46]Sock 7.Close socket [01:07:46]Sock 7.Thread stoped [01:07:48]OFD Sender: No OFD packet to send [01:07:53]OFD Sender: No OFD packet to send [01:07:58]OFD Sender: No OFD packet to send [01:08:03]OFD Sender: No OFD packet to send [01:08:08]OFD Sender: No OFD packet to send [01:08:13]OFD Sender: No OFD packet to send [01:08:18]OFD Sender: No OFD packet to send [01:08:23]OFD Sender: No OFD packet to send [01:08:28]OFD Sender: No OFD packet to send [01:08:33]OFD Sender: No OFD packet to send [01:08:38]OFD Sender: No OFD packet to send [01:08:43]OFD Sender: No OFD packet to send [01:08:48]OFD Sender: No OFD packet to send [01:08:53]OFD Sender: No OFD packet to send [01:08:58]OFD Sender: No OFD packet to send [01:09:03]OFD Sender: No OFD packet to send [01:09:08]OFD Sender: No OFD packet to send [01:09:13]OFD Sender: No OFD packet to send [01:09:18]OFD Sender: No OFD packet to send [01:09:23]OFD Sender: No OFD packet to send [01:09:28]OFD Sender: No OFD packet to send [01:09:33]OFD Sender: No OFD packet to send [01:09:38]OFD Sender: No OFD packet to send [01:09:43]OFD Sender: No OFD packet to send [01:09:48]OFD Sender: No OFD packet to send [01:09:53]OFD Sender: No OFD packet to send [01:09:58]OFD Sender: No OFD packet to send [01:10:03]OFD Sender: No OFD packet to send [01:10:08]OFD Sender: No OFD packet to send [01:10:13]OFD Sender: No OFD packet to send [01:10:18]OFD Sender: No OFD packet to send [01:10:23]OFD Sender: No OFD packet to send [01:10:28]OFD Sender: No OFD packet to send [01:10:33]OFD Sender: No OFD packet to send [01:10:38]OFD Sender: No OFD packet to send [01:10:43]OFD Sender: No OFD packet to send [01:10:48]OFD Sender: No OFD packet to send [01:10:53]OFD Sender: No OFD packet to send [01:10:58]OFD Sender: No OFD packet to send [01:11:03]OFD Sender: No OFD packet to send [01:11:08]OFD Sender: No OFD packet to send [01:11:13]OFD Sender: No OFD packet to send [01:11:18]OFD Sender: No OFD packet to send [01:11:23]OFD Sender: No OFD packet to send [01:11:28]OFD Sender: No OFD packet to send [01:11:33]OFD Sender: No OFD packet to send [01:11:38]OFD Sender: No OFD packet to send [01:11:43]OFD Sender: No OFD packet to send [01:11:48]OFD Sender: No OFD packet to send [01:11:53]OFD Sender: No OFD packet to send [01:11:58]OFD Sender: No OFD packet to send [01:12:03]OFD Sender: No OFD packet to send [01:12:08]OFD Sender: No OFD packet to send [01:12:13]OFD Sender: No OFD packet to send [01:12:18]OFD Sender: No OFD packet to send [01:12:23]OFD Sender: No OFD packet to send [01:12:28]OFD Sender: No OFD packet to send [01:12:33]OFD Sender: No OFD packet to send [01:12:38]OFD Sender: No OFD packet to send [01:12:43]OFD Sender: No OFD packet to send [01:12:48]OFD Sender: No OFD packet to send [01:12:53]OFD Sender: No OFD packet to send [01:12:58]OFD Sender: No OFD packet to send [01:13:03]OFD Sender: No OFD packet to send [01:13:08]OFD Sender: No OFD packet to send [01:13:13]OFD Sender: No OFD packet to send [01:13:18]OFD Sender: No OFD packet to send [01:13:23]OFD Sender: No OFD packet to send [01:13:28]OFD Sender: No OFD packet to send [01:13:33]OFD Sender: No OFD packet to send [01:13:38]OFD Sender: No OFD packet to send [01:13:43]OFD Sender: No OFD packet to send [01:13:48]OFD Sender: No OFD packet to send [01:13:53]OFD Sender: No OFD packet to send [01:13:58]OFD Sender: No OFD packet to send [01:14:03]OFD Sender: No OFD packet to send [01:14:08]OFD Sender: No OFD packet to send [01:14:13]OFD Sender: No OFD packet to send [01:14:18]OFD Sender: No OFD packet to send [01:14:23]OFD Sender: No OFD packet to send [01:14:28]OFD Sender: No OFD packet to send [01:14:33]OFD Sender: No OFD packet to send [01:14:38]OFD Sender: No OFD packet to send [01:14:43]OFD Sender: No OFD packet to send [01:14:48]OFD Sender: No OFD packet to send [01:14:53]OFD Sender: No OFD packet to send [01:14:58]OFD Sender: No OFD packet to send [01:15:03]OFD Sender: No OFD packet to send [01:15:08]OFD Sender: No OFD packet to send [01:15:13]OFD Sender: No OFD packet to send [01:15:18]OFD Sender: No OFD packet to send [01:15:24]OFD Sender: No OFD packet to send [01:15:29]OFD Sender: No OFD packet to send [01:15:34]OFD Sender: No OFD packet to send [01:15:39]OFD Sender: No OFD packet to send [01:15:44]OFD Sender: No OFD packet to send [01:15:49]OFD Sender: No OFD packet to send [01:15:54]OFD Sender: No OFD packet to send [01:15:59]OFD Sender: No OFD packet to send [01:16:04]OFD Sender: No OFD packet to send [01:16:09]OFD Sender: No OFD packet to send [01:16:14]OFD Sender: No OFD packet to send [01:16:19]OFD Sender: No OFD packet to send [01:16:24]OFD Sender: No OFD packet to send [01:16:29]OFD Sender: No OFD packet to send [01:16:34]OFD Sender: No OFD packet to send [01:16:39]OFD Sender: No OFD packet to send [01:16:44]OFD Sender: No OFD packet to send [01:16:49]OFD Sender: No OFD packet to send [01:16:54]OFD Sender: No OFD packet to send [01:16:59]OFD Sender: No OFD packet to send [01:17:04]OFD Sender: No OFD packet to send [01:17:09]OFD Sender: No OFD packet to send [01:17:14]OFD Sender: No OFD packet to send [01:17:19]OFD Sender: No OFD packet to send [01:17:24]OFD Sender: No OFD packet to send [01:17:29]OFD Sender: No OFD packet to send [01:17:34]OFD Sender: No OFD packet to send [01:17:39]OFD Sender: No OFD packet to send [01:17:44]OFD Sender: No OFD packet to send [01:17:49]OFD Sender: No OFD packet to send [01:17:54]OFD Sender: No OFD packet to send [01:17:59]OFD Sender: No OFD packet to send [01:18:04]OFD Sender: No OFD packet to send [01:18:09]OFD Sender: No OFD packet to send [01:18:11]accept exits with 6 [01:18:11]New connection [01:18:11]New thread 3066608996 created [01:18:11]Thread 3066752356 joined [01:18:11]Waiting for new connection... [01:18:11] Sock 6.Parse request [01:18:11]Sock 6.Check first char [01:18:11]Sock 6.First char is OK [01:18:11]request: POST /json_proto HTTP/1.0 [01:18:11]Method: POST [01:18:11]URL: /json_proto [01:18:11]Method is POST - this is cgi request [01:18:11]url: /json_proto [01:18:11]query_string will be loaded in cgi processing [01:18:11]execute_cgi json_proto POST (null) [01:18:11]execute_cgi path=json_proto method=POST [01:18:11]POST find Content-Length [01:18:11]Host: 172.17.57.71:8080 [01:18:11]Content-Length: 668 [01:18:11]Content-Type: application/json [01:18:11] [01:18:11]POST finish read [01:18:11]Found Content-Length = 668 [01:18:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127595", "tax_sys" : 0, "items" : [ { "code": "4670003190037", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0437\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:18:11]execute_script... [01:18:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127595", "tax_sys" : 0, "items" : [ { "code": "4670003190037", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0437\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:18:11]POST & json_proto [01:18:11]process_json_proto [01:18:11]json parsed OK: [01:18:11]protocol is kg_v1.0 [01:18:11]action value=close_receipt [01:18:11]process_action close_receipt [01:18:11]cmd_close_receipt [01:18:11]MH_GetDate [01:18:11]Write to MH i2c: F0 00 00 85 05 79 [01:18:11]Write i2c OK [01:18:11]MH_I2C_Read... [01:18:11]Read from MH i2c: F0 [01:18:11]MH_I2C_Read... [01:18:11]Read from MH i2c: F0 09 00 [01:18:11]MH_I2C_Read... [01:18:11]Read from MH i2c: F0 09 00 85 05 00 53 87 E7 66 33 3A A4 66 20 [01:18:11]GetLastDocTimeStamp 1726448861 [01:18:11]current date 1726449491 [01:18:11]FM_GetShiftState [01:18:11]SAM_PROTO_GetShiftState [01:18:11]wFMCommunicate request_size=4 [01:18:11]MH_SAM_APDU [01:18:11]CAPDU: 80 13 01 00 [01:18:11]Write to MH i2c: E2 08 00 86 05 80 13 01 00 00 00 00 00 08 [01:18:11]Write i2c OK [01:18:11]MH_I2C_Read... [01:18:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:18:11]Read from MH i2c: E2 [01:18:11]MH_I2C_Read... [01:18:11]Read from MH i2c: E2 0E 00 [01:18:11]MH_I2C_Read... [01:18:11]Read from MH i2c: E2 0E 00 86 05 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 A1 [01:18:11]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [01:18:11]wFMCommunicate OK [01:18:11]SAM_PROTO_GetShiftState done [01:18:11]FM_GetShiftState done [01:18:11]opened in 1726446278 [01:18:11]opened+sec_in_day 1726532678 [01:18:11]quantity*price = 22500 [01:18:11]sum+1 = 22501 [01:18:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 11 16.09.2024 01:18 Смена: 508 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92708 ФПД: 70028560511536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T011811&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92708&fm=70028560511536&tin=02508201610067®Number=0000000000091423&sum=22500 0 [01:18:12]StoreToDocumentArchive [01:18:12]shift 508 fd 92708 [01:18:12]save to /storage/0508/doc_00092708 [01:18:12]save last doc name /storage/0508/doc_00092708 to /storage/kkm_last_doc_name [01:18:12]save OK [01:18:12]Clear old archive folders... [01:18:12]ProcessDocumentItem done err = 0, tmpTLVsize=296 [01:18:12]tlvbuf is 017EEDC0 [01:18:12]SAM_PROTO_ClearQueue [01:18:12]wFMCommunicate request_size=4 [01:18:12]MH_SAM_APDU [01:18:12]CAPDU: 80 09 00 00 [01:18:12]Write to MH i2c: E2 08 00 93 05 80 09 00 00 00 00 00 00 0A [01:18:12]Write i2c OK [01:18:12]MH_I2C_Read... [01:18:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:18:12]Read from MH i2c: E2 [01:18:12]MH_I2C_Read... [01:18:12]Read from MH i2c: E2 03 00 [01:18:12]MH_I2C_Read... [01:18:12]Read from MH i2c: E2 03 00 93 05 00 90 00 0C [01:18:12]RAPDU: 90 00 [01:18:12]wFMCommunicate OK [01:18:12]SAM_PROTO_ClearQueue done [01:18:12]KKMCreateOFDPacket [01:18:12]OFDProtocolAddRootSTLVToBuf [01:18:12]FM_MakeSignedData [01:18:12]FM_MakeSignedData [01:18:12]SAM_PROTO_SignData [01:18:12]wFMCommunicate request_size=4 [01:18:12]MH_SAM_APDU [01:18:12]CAPDU: 80 0D 01 02 [01:18:12]Write to MH i2c: E2 08 00 94 05 80 0D 01 02 00 00 00 00 12 [01:18:12]Write i2c OK [01:18:12]MH_I2C_Read... [01:18:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:18:12]Read from MH i2c: E2 [01:18:12]MH_I2C_Read... [01:18:12]Read from MH i2c: E2 03 00 [01:18:12]MH_I2C_Read... [01:18:12]Read from MH i2c: E2 03 00 94 05 00 90 00 0D [01:18:12]RAPDU: 90 00 [01:18:12]wFMCommunicate OK [01:18:12]wFMCommunicate request_size=255 [01:18:12]MH_SAM_APDU [01:18:12]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 33 37 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B7 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 53 87 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [01:18:12]Write to MH i2c: E2 02 01 95 05 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 33 37 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B7 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 53 87 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 C9 [01:18:12]Write i2c OK [01:18:12]MH_I2C_Read... [01:18:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:18:12]Read from MH i2c: E2 [01:18:12]MH_I2C_Read... [01:18:12]Read from MH i2c: E2 03 00 [01:18:12]MH_I2C_Read... [01:18:12]Read from MH i2c: E2 03 00 95 05 00 90 00 0E [01:18:12]RAPDU: 90 00 [01:18:12]wFMCommunicate OK [01:18:12]wFMCommunicate request_size=55 [01:18:12]MH_SAM_APDU [01:18:12]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 24 6A 01 00 35 04 06 00 3F B0 CB 79 32 30 [01:18:12]Write to MH i2c: E2 3A 00 96 05 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 24 6A 01 00 35 04 06 00 3F B0 CB 79 32 30 00 00 90 [01:18:12]Write i2c OK [01:18:12]MH_I2C_Read... [01:18:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:18:12]Read from MH i2c: E2 [01:18:12]MH_I2C_Read... [01:18:12]Read from MH i2c: E2 03 00 [01:18:12]MH_I2C_Read... [01:18:12]Read from MH i2c: E2 03 00 96 05 00 90 00 0F [01:18:12]RAPDU: 90 00 [01:18:12]wFMCommunicate OK [01:18:12]wFMCommunicate request_size=4 [01:18:12]MH_SAM_APDU [01:18:12]CAPDU: 80 0D 03 02 [01:18:12]Write to MH i2c: E2 08 00 97 05 80 0D 03 02 00 00 00 00 17 [01:18:12]Write i2c OK [01:18:12]MH_I2C_Read... [01:18:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:18:13]Read from MH i2c: E2 [01:18:13]MH_I2C_Read... [01:18:13]Read from MH i2c: E2 0B 00 [01:18:13]MH_I2C_Read... [01:18:13]Read from MH i2c: E2 0B 00 97 05 00 13 EC 81 14 7D EB EF E9 90 00 EC [01:18:13]RAPDU: 13 EC 81 14 7D EB EF E9 90 00 [01:18:13]wFMCommunicate OK [01:18:13]SAM_PROTO_SignData done [01:18:13]FM_MakeSignedData done [01:18:13]CreateOFDProtocolMessage [01:18:13]wFMCommunicate request_size=4 [01:18:13]MH_SAM_APDU [01:18:13]CAPDU: 80 11 00 00 [01:18:13]Write to MH i2c: E2 08 00 98 05 80 11 00 00 00 00 00 00 17 [01:18:13]Write i2c OK [01:18:13]MH_I2C_Read... [01:18:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:18:13]Read from MH i2c: E2 [01:18:13]MH_I2C_Read... [01:18:13]Read from MH i2c: E2 17 00 [01:18:13]MH_I2C_Read... [01:18:13]Read from MH i2c: E2 17 00 98 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 6E [01:18:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:18:13]wFMCommunicate OK [01:18:13]CreateOFDProtocolMessage done [01:18:13]OFDSenderStorePacket 92708 [01:18:13]StoreOFDPacket docnum=92708 [01:18:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3C 01 00 00 C6 21 34 01 48 12 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 33 37 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B7 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 53 87 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 24 6A 01 00 35 04 06 00 3F B0 CB 79 32 30 13 EC 81 14 7D EB EF E9 [01:18:13]CheckFolder [01:18:13]dirname=/storage/ofd_packets [01:18:13]CheckFolder done [01:18:13]ProducePacketName [01:18:13]name=ofd_packets/00092708 [01:18:13]NVStorageSaveData ofd_packets/00092708 [01:18:13]File name is /storage/ofd_packets/00092708 [01:18:13]Write 346 bytes [01:18:13]NVStorageSaveData done [01:18:13]OFDSenderStorePacket done [01:18:13]KKMCreateOFDPacket done [01:18:13]NVStorageSaveData kkm_last_timestamp [01:18:13]File name is /storage/kkm_last_timestamp [01:18:13]Write 4 bytes [01:18:13]NVStorageSaveData done [01:18:13]ExternCall_PrintAddStr [01:18:13]wPrintStart [01:18:13]Write to MH i2c: 01 00 00 99 05 9E [01:18:13]Write i2c OK [01:18:13]MH_I2C_Read... [01:18:13]Read from MH i2c: 01 [01:18:13]MH_I2C_Read... [01:18:13]Read from MH i2c: 01 07 00 [01:18:13]MH_I2C_Read... [01:18:13]Read from MH i2c: 01 07 00 99 05 00 00 00 00 00 FF 0F B3 [01:18:13]RasterBufferAndPrint [01:18:13]line Счет N : (3)127595 [01:18:13]line ИНН: 02508201610067 [01:18:13]line Контрольно-Кассовый Чек [01:18:13]line ПРОДАЖА [01:18:13]line Товар: 4670003190037 [01:18:13]line Антифриз SIBIRIA ANTIFREEZE ОЖ-40 зел 1л [01:18:13]line 1.000 * 225.00 [01:18:13]line = 225.00 [01:18:13]line НДС 12% НСП 1% [01:18:13]line > о реализуемом товаре [01:18:13]line ИТОГО: 225.00 [01:18:13]line НСП 1% : 1.99 [01:18:13]line НДС 12% : 23.89 [01:18:13]line Наличными: 225.00 [01:18:13]line Безнал.: 0.00 [01:18:13]line Место: АЗС № 5 "Партнер Нефть" [01:18:13]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [01:18:13]line СНО: Общий режим [01:18:13]line Чек 11 16.09.2024 01:18 [01:18:13]line Смена: 508 ФФД: 1.0 [01:18:13]line ЗНМ: 03000000022 [01:18:13]line РНМ: 0000000000091423 [01:18:13]line Версия ККМ: 001 [01:18:13]line ФМ: 0000000000874692 [01:18:13]line ФД: 92708 [01:18:13]line ФПД: 70028560511536 [01:18:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T011811&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92708&fm=70028560511536&tin=02508201610067®Number=0000000000091423&sum=22500 [01:18:13]OFD Sender: Processing packet 92708 [packets to send 63, broken 62] [01:18:13]ProducePacketName [01:18:13]name=ofd_packets/00092708 [01:18:13]OFD Sender: To server: pG, [01:18:13]CommunicateWithHost lk.salyk.kg:30040 [01:18:13]ConnectInit lk.salyk.kg [01:18:13]line 0 [01:18:13]written 0, free lines is 4095 [01:18:13]Connected sock=8 [01:18:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3C 01 00 00 C6 21 34 01 48 12 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 33 37 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B7 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 53 87 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 24 6A 01 00 35 04 06 00 3F B0 CB 79 32 30 13 EC 81 14 7D EB EF E9 [01:18:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 10 B0 47 00 04 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 24 6A 01 00 F4 03 04 00 CA 2F E7 66 B6 04 01 00 00 37 CB A5 47 A3 FC 68 52 [01:18:13]CommunicateWithHost err = 0 [01:18:13]CheckOFDResponse [01:18:13]1017 (14) - 77093643461234 [01:18:13]1041 (16) - 0000000000874692 [01:18:13]1040 (4) - 92708 [01:18:13]1012 (4) - 15.09.2024 19:04 [01:18:13]1206 (1) - 0 [01:18:13]OFD Sender: Remove packet 92708 [01:18:13]ProducePacketName [01:18:13]name=ofd_packets/00092708 [01:18:13]NVStorageDeleteData [01:18:13]Write to MH i2c: 01 00 00 C2 05 C7 [01:18:13]Write i2c OK [01:18:13]MH_I2C_Read... [01:18:13]Read from MH i2c: 01 [01:18:13]MH_I2C_Read... [01:18:13]Read from MH i2c: 01 07 00 [01:18:13]MH_I2C_Read... [01:18:13]Read from MH i2c: 01 07 00 C2 05 00 00 00 00 00 0F 0D EA [01:18:13]RasterBufferAndPrint [01:18:13]line [01:18:13]line [01:18:13]line [01:18:13]line [01:18:13]line [01:18:13]written 0, free lines is 3351 [01:18:13]MH_Cut [01:18:13]Write to MH i2c: D1 01 00 C9 05 01 A0 [01:18:13]Write i2c OK [01:18:13]MH_I2C_Read... [01:18:13]Read from MH i2c: D1 [01:18:13]MH_I2C_Read... [01:18:13]Read from MH i2c: D1 01 00 [01:18:13]MH_I2C_Read... [01:18:13]Read from MH i2c: D1 01 00 C9 05 00 9F [01:18:13]Write to MH i2c: 01 00 00 CA 05 CF [01:18:13]Write i2c OK [01:18:13]MH_I2C_Read... [01:18:14]OFD Sender: No OFD packet to send [01:18:14]*** Cut start [01:18:14]*** Purtial cut [01:18:14]*** Stage 1: CUTSNS_PIN = 1 [01:18:16]Read from MH i2c: 01 [01:18:16]MH_I2C_Read... [01:18:16]*** Stop cut motor [01:18:16]*** Cut end [01:18:16]Read from MH i2c: 01 07 00 [01:18:16]MH_I2C_Read... [01:18:16]Read from MH i2c: 01 07 00 CA 05 00 00 00 00 00 FF 0F E4 [01:18:16]process_action close_receipt done [01:18:16]requested_data is exist [01:18:16]produce_requested_data [01:18:16]requested_item fm.sn is exist - process it [01:18:16]wFMCommunicate request_size=4 [01:18:16]MH_SAM_APDU [01:18:16]CAPDU: 80 11 00 00 [01:18:16]Write to MH i2c: E2 08 00 CB 05 80 11 00 00 00 00 00 00 4A [01:18:16]Write i2c OK [01:18:16]MH_I2C_Read... [01:18:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:18:16]Read from MH i2c: E2 [01:18:16]MH_I2C_Read... [01:18:16]Read from MH i2c: E2 17 00 [01:18:16]MH_I2C_Read... [01:18:16]Read from MH i2c: E2 17 00 CB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A1 [01:18:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:18:16]wFMCommunicate OK [01:18:16]requested_item fd.num is exist - process it [01:18:16]SAM_PROTO_GetFieldsCounters [01:18:16]wFMCommunicate request_size=4 [01:18:16]MH_SAM_APDU [01:18:16]CAPDU: 80 13 00 00 [01:18:16]Write to MH i2c: E2 08 00 CC 05 80 13 00 00 00 00 00 00 4D [01:18:16]Write i2c OK [01:18:16]MH_I2C_Read... [01:18:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:18:16]Read from MH i2c: E2 [01:18:16]MH_I2C_Read... [01:18:16]Read from MH i2c: E2 62 00 [01:18:16]MH_I2C_Read... [01:18:16]Read from MH i2c: E2 62 00 CC 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 24 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [01:18:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 24 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:18:16]wFMCommunicate OK [01:18:16]SAM_PROTO_GetFieldsCounters done [01:18:16]requested_item shift.num is exist - process it [01:18:16]requested_item shift.opened is exist - process it [01:18:16]req_shift_opened [01:18:16]FM_GetShiftState [01:18:16]SAM_PROTO_GetShiftState [01:18:16]wFMCommunicate request_size=4 [01:18:16]MH_SAM_APDU [01:18:16]CAPDU: 80 13 01 00 [01:18:16]Write to MH i2c: E2 08 00 CD 05 80 13 01 00 00 00 00 00 4F [01:18:16]Write i2c OK [01:18:16]MH_I2C_Read... [01:18:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:18:16]Read from MH i2c: E2 [01:18:16]MH_I2C_Read... [01:18:16]Read from MH i2c: E2 0E 00 [01:18:16]MH_I2C_Read... [01:18:16]Read from MH i2c: E2 0E 00 CD 05 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 E8 [01:18:16]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [01:18:16]wFMCommunicate OK [01:18:16]SAM_PROTO_GetShiftState done [01:18:16]FM_GetShiftState done [01:18:16]req_shift_opened done [01:18:16]requested_item shift.open_date is exist - process it [01:18:16]req_shift_open_date [01:18:16]req_shift_open_date done [01:18:16]produce_requested_data done [01:18:16]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92708,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278} [01:18:16]process_action_free close_receipt [01:18:16]json_value_free [01:18:16]json_value_free done [01:18:16]process_json_proto returns [01:18:16]Send response to host [01:18:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92708,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278}}} [01:18:16]free response buf [01:18:16]execute_script done [01:18:16]execute_script returns [01:18:16]free content buf [01:18:16]Sock 6.Close socket [01:18:16]Sock 6.Thread stoped [01:18:19]OFD Sender: No OFD packet to send [01:18:19]accept exits with 7 [01:18:19]New connection [01:18:19]New thread 3066752356 created [01:18:19]Thread 3066608996 joined [01:18:19]Waiting for new connection... [01:18:19] Sock 7.Parse request [01:18:19]Sock 7.Check first char [01:18:19]Sock 7.First char is OK [01:18:19]request: POST /json_proto HTTP/1.0 [01:18:19]Method: POST [01:18:19]URL: /json_proto [01:18:19]Method is POST - this is cgi request [01:18:19]url: /json_proto [01:18:19]query_string will be loaded in cgi processing [01:18:19]execute_cgi json_proto POST (null) [01:18:19]execute_cgi path=json_proto method=POST [01:18:19]POST find Content-Length [01:18:19]Host: 172.17.57.71:8080 [01:18:19]Content-Length: 677 [01:18:19]Content-Type: application/json [01:18:19] [01:18:19]POST finish read [01:18:19]Found Content-Length = 677 [01:18:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:18:19]execute_script... [01:18:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:18:19]POST & json_proto [01:18:19]process_json_proto [01:18:19]json parsed OK: [01:18:19]protocol is kg_v1.0 [01:18:19]action value=close_receipt [01:18:19]process_action close_receipt [01:18:19]cmd_close_receipt [01:18:19]MH_GetDate [01:18:19]Write to MH i2c: F0 00 00 CE 05 C2 [01:18:19]Write i2c OK [01:18:19]MH_I2C_Read... [01:18:19]Read from MH i2c: F0 [01:18:19]MH_I2C_Read... [01:18:19]Read from MH i2c: F0 09 00 [01:18:19]MH_I2C_Read... [01:18:19]Read from MH i2c: F0 09 00 CE 05 00 5C 87 E7 66 33 3A A4 66 72 [01:18:19]GetLastDocTimeStamp 1726449491 [01:18:19]current date 1726449500 [01:18:19]FM_GetShiftState [01:18:19]SAM_PROTO_GetShiftState [01:18:19]wFMCommunicate request_size=4 [01:18:19]MH_SAM_APDU [01:18:19]CAPDU: 80 13 01 00 [01:18:19]Write to MH i2c: E2 08 00 CF 05 80 13 01 00 00 00 00 00 51 [01:18:19]Write i2c OK [01:18:19]MH_I2C_Read... [01:18:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:18:19]Read from MH i2c: E2 [01:18:19]MH_I2C_Read... [01:18:19]Read from MH i2c: E2 0E 00 [01:18:19]MH_I2C_Read... [01:18:19]Read from MH i2c: E2 0E 00 CF 05 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 EA [01:18:19]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [01:18:19]wFMCommunicate OK [01:18:19]SAM_PROTO_GetShiftState done [01:18:19]FM_GetShiftState done [01:18:19]opened in 1726446278 [01:18:19]opened+sec_in_day 1726532678 [01:18:19]quantity*price = 35055 [01:18:19]sum+1 = 35057 [01:18:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 12 16.09.2024 01:18 Смена: 508 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92709 ФПД: 50983318425683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T011820&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92709&fm=50983318425683&tin=02508201610067®Number=0000000000091423&sum=35000 [01:18:21]StoreToDocumentArchive [01:18:21]shift 508 fd 92709 [01:18:21]save to /storage/0508/doc_00092709 [01:18:21]save last doc name /storage/0508/doc_00092709 to /storage/kkm_last_doc_name [01:18:21]save OK [01:18:21]Clear old archive folders... [01:18:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:18:21]tlvbuf is 016FB080 [01:18:21]SAM_PROTO_ClearQueue [01:18:21]wFMCommunicate request_size=4 [01:18:21]MH_SAM_APDU [01:18:21]CAPDU: 80 09 00 00 [01:18:21]Write to MH i2c: E2 08 00 DC 05 80 09 00 00 00 00 00 00 53 [01:18:21]Write i2c OK [01:18:21]MH_I2C_Read... [01:18:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:18:21]Read from MH i2c: E2 [01:18:21]MH_I2C_Read... [01:18:21]Read from MH i2c: E2 03 00 [01:18:21]MH_I2C_Read... [01:18:21]Read from MH i2c: E2 03 00 DC 05 00 90 00 55 [01:18:21]RAPDU: 90 00 [01:18:21]wFMCommunicate OK [01:18:21]SAM_PROTO_ClearQueue done [01:18:21]KKMCreateOFDPacket [01:18:21]OFDProtocolAddRootSTLVToBuf [01:18:21]FM_MakeSignedData [01:18:21]FM_MakeSignedData [01:18:21]SAM_PROTO_SignData [01:18:21]wFMCommunicate request_size=4 [01:18:21]MH_SAM_APDU [01:18:21]CAPDU: 80 0D 01 02 [01:18:21]Write to MH i2c: E2 08 00 DD 05 80 0D 01 02 00 00 00 00 5B [01:18:21]Write i2c OK [01:18:21]MH_I2C_Read... [01:18:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:18:21]Read from MH i2c: E2 [01:18:21]MH_I2C_Read... [01:18:21]Read from MH i2c: E2 03 00 [01:18:21]MH_I2C_Read... [01:18:21]Read from MH i2c: E2 03 00 DD 05 00 90 00 56 [01:18:21]RAPDU: 90 00 [01:18:21]wFMCommunicate OK [01:18:21]wFMCommunicate request_size=255 [01:18:21]MH_SAM_APDU [01:18:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 5C 87 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 25 6A 01 00 35 04 06 00 2E [01:18:21]Write to MH i2c: E2 02 01 DE 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 5C 87 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 25 6A 01 00 35 04 06 00 2E 00 00 EA [01:18:21]Write i2c OK [01:18:21]MH_I2C_Read... [01:18:21]Read from MH i2c: E2 [01:18:21]MH_I2C_Read... [01:18:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:18:21]Read from MH i2c: E2 03 00 [01:18:21]MH_I2C_Read... [01:18:21]Read from MH i2c: E2 03 00 DE 05 00 90 00 57 [01:18:21]RAPDU: 90 00 [01:18:21]wFMCommunicate OK [01:18:21]wFMCommunicate request_size=10 [01:18:21]MH_SAM_APDU [01:18:21]CAPDU: 80 0D 02 02 05 5E 7A 95 90 53 [01:18:21]Write to MH i2c: E2 0D 00 DF 05 80 0D 02 02 05 00 5E 7A 95 90 53 00 00 B8 [01:18:21]Write i2c OK [01:18:21]MH_I2C_Read... [01:18:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:18:21]Read from MH i2c: E2 [01:18:21]MH_I2C_Read... [01:18:21]Read from MH i2c: E2 03 00 [01:18:21]MH_I2C_Read... [01:18:21]Read from MH i2c: E2 03 00 DF 05 00 90 00 58 [01:18:21]RAPDU: 90 00 [01:18:21]wFMCommunicate OK [01:18:21]wFMCommunicate request_size=4 [01:18:21]MH_SAM_APDU [01:18:21]CAPDU: 80 0D 03 02 [01:18:21]Write to MH i2c: E2 08 00 E0 05 80 0D 03 02 00 00 00 00 60 [01:18:21]Write i2c OK [01:18:21]MH_I2C_Read... [01:18:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:18:21]Read from MH i2c: E2 [01:18:21]MH_I2C_Read... [01:18:21]Read from MH i2c: E2 0B 00 [01:18:21]MH_I2C_Read... [01:18:21]Read from MH i2c: E2 0B 00 E0 05 00 32 2C 75 CC 03 99 D6 83 90 00 F5 [01:18:21]RAPDU: 32 2C 75 CC 03 99 D6 83 90 00 [01:18:21]wFMCommunicate OK [01:18:21]SAM_PROTO_SignData done [01:18:21]FM_MakeSignedData done [01:18:21]CreateOFDProtocolMessage [01:18:21]wFMCommunicate request_size=4 [01:18:21]MH_SAM_APDU [01:18:21]CAPDU: 80 11 00 00 [01:18:21]Write to MH i2c: E2 08 00 E1 05 80 11 00 00 00 00 00 00 60 [01:18:21]Write i2c OK [01:18:21]MH_I2C_Read... [01:18:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:18:21]Read from MH i2c: E2 [01:18:21]MH_I2C_Read... [01:18:21]Read from MH i2c: E2 17 00 [01:18:21]MH_I2C_Read... [01:18:21]Read from MH i2c: E2 17 00 E1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B7 [01:18:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:18:21]wFMCommunicate OK [01:18:21]CreateOFDProtocolMessage done [01:18:21]OFDSenderStorePacket 92709 [01:18:21]StoreOFDPacket docnum=92709 [01:18:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 CF 33 07 01 ED BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 5C 87 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 25 6A 01 00 35 04 06 00 2E 5E 7A 95 90 53 32 2C 75 CC 03 99 D6 83 [01:18:21]CheckFolder [01:18:21]dirname=/storage/ofd_packets [01:18:21]CheckFolder done [01:18:21]ProducePacketName [01:18:21]name=ofd_packets/00092709 [01:18:21]NVStorageSaveData ofd_packets/00092709 [01:18:21]File name is /storage/ofd_packets/00092709 [01:18:21]Write 301 bytes [01:18:21]NVStorageSaveData done [01:18:21]OFDSenderStorePacket done [01:18:21]KKMCreateOFDPacket done [01:18:21]NVStorageSaveData kkm_last_timestamp [01:18:21]File name is /storage/kkm_last_timestamp [01:18:21]Write 4 bytes [01:18:21]NVStorageSaveData done [01:18:21]ExternCall_PrintAddStr [01:18:21]wPrintStart [01:18:21]Write to MH i2c: 01 00 00 E2 05 E7 [01:18:21]Write i2c OK [01:18:21]MH_I2C_Read... [01:18:21]Read from MH i2c: 01 [01:18:21]MH_I2C_Read... [01:18:21]Read from MH i2c: 01 07 00 [01:18:21]MH_I2C_Read... [01:18:21]Read from MH i2c: 01 07 00 E2 05 00 00 00 00 00 FF 0F FC [01:18:21]RasterBufferAndPrint [01:18:21]line Счет N : (1)648810 [01:18:21]line ИНН: 02508201610067 [01:18:21]line Контрольно-Кассовый Чек [01:18:21]line ПРОДАЖА [01:18:21]line ТРК (МРК, ГНК) : 43 [01:18:21]line Товар: 2710124130 [01:18:21]line Аи-92-К-5 [01:18:21]line 5.240 * 66.90 [01:18:21]line = 350.56 [01:18:21]line НДС 12% НСП 1% [01:18:21]line > о реализуемом товаре [01:18:21]line ОКРУГЛЕНИЕ: -0.56 [01:18:21]line ИТОГО: 350.00 [01:18:21]line Внесено: 350.00 [01:18:21]line СДАЧА: 0.00 [01:18:21]line НСП 1% : 3.10 [01:18:21]line НДС 12% : 37.23 [01:18:21]line Наличными: 350.00 [01:18:21]line Безнал.: 0.00 [01:18:21]line Место: АЗС № 5 "Партнер Нефть" [01:18:21]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [01:18:21]line СНО: Общий режим [01:18:21]line Чек 12 16.09.2024 01:18 [01:18:21]line Смена: 508 ФФД: 1.0 [01:18:21]line ЗНМ: 03000000022 [01:18:21]line РНМ: 0000000000091423 [01:18:21]line Версия ККМ: 001 [01:18:21]line ФМ: 0000000000874692 [01:18:21]line ФД: 92709 [01:18:21]line ФПД: 50983318425683 [01:18:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T011820&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92709&fm=50983318425683&tin=02508201610067®Number=0000000000091423&sum=35000 [01:18:21]written 0, free lines is 4095 [01:18:21]OFD Sender: Processing packet 92709 [packets to send 63, broken 62] [01:18:21]ProducePacketName [01:18:21]name=ofd_packets/00092709 [01:18:21]OFD Sender: To server: pG, [01:18:21]CommunicateWithHost lk.salyk.kg:30040 [01:18:21]ConnectInit lk.salyk.kg [01:18:21]Connected sock=8 [01:18:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 CF 33 07 01 ED BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 5C 87 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 25 6A 01 00 35 04 06 00 2E 5E 7A 95 90 53 32 2C 75 CC 03 99 D6 83 [01:18:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 D8 27 47 00 BB DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 25 6A 01 00 F4 03 04 00 D2 2F E7 66 B6 04 01 00 00 B1 0C 11 00 02 EB 17 76 [01:18:22]CommunicateWithHost err = 0 [01:18:22]CheckOFDResponse [01:18:22]1017 (14) - 77093643461234 [01:18:22]1041 (16) - 0000000000874692 [01:18:22]1040 (4) - 92709 [01:18:22]1012 (4) - 15.09.2024 19:04 [01:18:22]1206 (1) - 0 [01:18:22]OFD Sender: Remove packet 92709 [01:18:22]ProducePacketName [01:18:22]name=ofd_packets/00092709 [01:18:22]NVStorageDeleteData [01:18:22]Write to MH i2c: 01 00 00 0D 06 13 [01:18:22]Write i2c OK [01:18:22]MH_I2C_Read... [01:18:22]Read from MH i2c: 01 [01:18:22]MH_I2C_Read... [01:18:22]Read from MH i2c: 01 07 00 [01:18:22]MH_I2C_Read... [01:18:22]Read from MH i2c: 01 07 00 0D 06 00 00 00 00 00 F0 0C 16 [01:18:22]RasterBufferAndPrint [01:18:22]line [01:18:22]line [01:18:22]line [01:18:22]line [01:18:22]line [01:18:22]written 0, free lines is 3320 [01:18:22]MH_Cut [01:18:22]Write to MH i2c: D1 01 00 14 06 01 EC [01:18:22]Write i2c OK [01:18:22]MH_I2C_Read... [01:18:22]Read from MH i2c: D1 [01:18:22]MH_I2C_Read... [01:18:22]Read from MH i2c: D1 01 00 [01:18:22]MH_I2C_Read... [01:18:22]Read from MH i2c: D1 01 00 14 06 00 EB [01:18:22]Write to MH i2c: 01 00 00 15 06 1B [01:18:22]Write i2c OK [01:18:22]MH_I2C_Read... [01:18:22]OFD Sender: No OFD packet to send [01:18:22]*** Cut start [01:18:22]*** Purtial cut [01:18:22]*** Stage 1: CUTSNS_PIN = 1 [01:18:24]Read from MH i2c: 01 [01:18:24]MH_I2C_Read... [01:18:24]*** Stop cut motor [01:18:24]*** Cut end [01:18:24]Read from MH i2c: 01 07 00 [01:18:24]MH_I2C_Read... [01:18:24]Read from MH i2c: 01 07 00 15 06 00 00 00 00 00 FF 0F 30 [01:18:24]process_action close_receipt done [01:18:24]requested_data is exist [01:18:24]produce_requested_data [01:18:24]requested_item fm.sn is exist - process it [01:18:24]wFMCommunicate request_size=4 [01:18:24]MH_SAM_APDU [01:18:24]CAPDU: 80 11 00 00 [01:18:24]Write to MH i2c: E2 08 00 16 06 80 11 00 00 00 00 00 00 96 [01:18:24]Write i2c OK [01:18:24]MH_I2C_Read... [01:18:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:18:24]Read from MH i2c: E2 [01:18:24]MH_I2C_Read... [01:18:24]Read from MH i2c: E2 17 00 [01:18:24]MH_I2C_Read... [01:18:24]Read from MH i2c: E2 17 00 16 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 ED [01:18:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:18:24]wFMCommunicate OK [01:18:24]requested_item fd.num is exist - process it [01:18:24]SAM_PROTO_GetFieldsCounters [01:18:24]wFMCommunicate request_size=4 [01:18:24]MH_SAM_APDU [01:18:24]CAPDU: 80 13 00 00 [01:18:24]Write to MH i2c: E2 08 00 17 06 80 13 00 00 00 00 00 00 99 [01:18:24]Write i2c OK [01:18:24]MH_I2C_Read... [01:18:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:18:24]Read from MH i2c: E2 [01:18:24]MH_I2C_Read... [01:18:24]Read from MH i2c: E2 62 00 [01:18:24]MH_I2C_Read... [01:18:24]Read from MH i2c: E2 62 00 17 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 25 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [01:18:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 25 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:18:24]wFMCommunicate OK [01:18:24]SAM_PROTO_GetFieldsCounters done [01:18:24]requested_item shift.num is exist - process it [01:18:24]requested_item shift.opened is exist - process it [01:18:24]req_shift_opened [01:18:24]FM_GetShiftState [01:18:24]SAM_PROTO_GetShiftState [01:18:24]wFMCommunicate request_size=4 [01:18:24]MH_SAM_APDU [01:18:24]CAPDU: 80 13 01 00 [01:18:24]Write to MH i2c: E2 08 00 18 06 80 13 01 00 00 00 00 00 9B [01:18:25]Write i2c OK [01:18:25]MH_I2C_Read... [01:18:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:18:25]Read from MH i2c: E2 [01:18:25]MH_I2C_Read... [01:18:25]Read from MH i2c: E2 0E 00 [01:18:25]MH_I2C_Read... [01:18:25]Read from MH i2c: E2 0E 00 18 06 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 34 [01:18:25]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [01:18:25]wFMCommunicate OK [01:18:25]SAM_PROTO_GetShiftState done [01:18:25]FM_GetShiftState done [01:18:25]req_shift_opened done [01:18:25]requested_item shift.open_date is exist - process it [01:18:25]req_shift_open_date [01:18:25]req_shift_open_date done [01:18:25]produce_requested_data done [01:18:25]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92709,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278} [01:18:25]process_action_free close_receipt [01:18:25]json_value_free [01:18:25]json_value_free done [01:18:25]process_json_proto returns [01:18:25]Send response to host [01:18:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92709,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278}}} [01:18:25]free response buf [01:18:25]execute_script done [01:18:25]execute_script returns [01:18:25]free content buf [01:18:25]Sock 7.Close socket [01:18:25]Sock 7.Thread stoped [01:18:27]OFD Sender: No OFD packet to send [01:18:32]OFD Sender: No OFD packet to send [01:18:37]OFD Sender: No OFD packet to send [01:18:42]OFD Sender: No OFD packet to send [01:18:47]OFD Sender: No OFD packet to send [01:18:52]OFD Sender: No OFD packet to send [01:18:57]OFD Sender: No OFD packet to send [01:19:02]OFD Sender: No OFD packet to send [01:19:07]OFD Sender: No OFD packet to send [01:19:12]OFD Sender: No OFD packet to send [01:19:17]OFD Sender: No OFD packet to send [01:19:22]OFD Sender: No OFD packet to send [01:19:27]OFD Sender: No OFD packet to send [01:19:32]OFD Sender: No OFD packet to send [01:19:37]OFD Sender: No OFD packet to send [01:19:42]OFD Sender: No OFD packet to send [01:19:47]OFD Sender: No OFD packet to send [01:19:52]OFD Sender: No OFD packet to send [01:19:57]OFD Sender: No OFD packet to send [01:20:02]OFD Sender: No OFD packet to send [01:20:07]OFD Sender: No OFD packet to send [01:20:12]OFD Sender: No OFD packet to send [01:20:17]OFD Sender: No OFD packet to send [01:20:22]OFD Sender: No OFD packet to send [01:20:27]OFD Sender: No OFD packet to send [01:20:32]OFD Sender: No OFD packet to send [01:20:37]OFD Sender: No OFD packet to send [01:20:42]OFD Sender: No OFD packet to send [01:20:47]OFD Sender: No OFD packet to send [01:20:52]OFD Sender: No OFD packet to send [01:20:57]OFD Sender: No OFD packet to send [01:21:02]OFD Sender: No OFD packet to send [01:21:07]OFD Sender: No OFD packet to send [01:21:12]OFD Sender: No OFD packet to send [01:21:17]OFD Sender: No OFD packet to send [01:21:22]OFD Sender: No OFD packet to send [01:21:27]OFD Sender: No OFD packet to send [01:21:32]OFD Sender: No OFD packet to send [01:21:37]OFD Sender: No OFD packet to send [01:21:42]OFD Sender: No OFD packet to send [01:21:47]OFD Sender: No OFD packet to send [01:21:52]OFD Sender: No OFD packet to send [01:21:57]OFD Sender: No OFD packet to send [01:22:02]OFD Sender: No OFD packet to send [01:22:07]OFD Sender: No OFD packet to send [01:22:12]OFD Sender: No OFD packet to send [01:22:17]OFD Sender: No OFD packet to send [01:22:22]OFD Sender: No OFD packet to send [01:22:27]OFD Sender: No OFD packet to send [01:22:32]OFD Sender: No OFD packet to send [01:22:37]OFD Sender: No OFD packet to send [01:22:42]OFD Sender: No OFD packet to send [01:22:47]OFD Sender: No OFD packet to send [01:22:52]OFD Sender: No OFD packet to send [01:22:57]OFD Sender: No OFD packet to send [01:23:02]OFD Sender: No OFD packet to send [01:23:07]OFD Sender: No OFD packet to send [01:23:12]OFD Sender: No OFD packet to send [01:23:17]OFD Sender: No OFD packet to send [01:23:22]OFD Sender: No OFD packet to send [01:23:27]OFD Sender: No OFD packet to send [01:23:32]OFD Sender: No OFD packet to send [01:23:36]accept exits with 6 [01:23:36]New connection [01:23:36]New thread 3066608996 created [01:23:36]Thread 3066752356 joined [01:23:36]Waiting for new connection... [01:23:36] Sock 6.Parse request [01:23:36]Sock 6.Check first char [01:23:36]Sock 6.First char is OK [01:23:36]request: POST /json_proto HTTP/1.0 [01:23:36]Method: POST [01:23:36]URL: /json_proto [01:23:36]Method is POST - this is cgi request [01:23:36]url: /json_proto [01:23:36]query_string will be loaded in cgi processing [01:23:36]execute_cgi json_proto POST (null) [01:23:36]execute_cgi path=json_proto method=POST [01:23:36]POST find Content-Length [01:23:36]Host: 172.17.57.71:8080 [01:23:36]Content-Length: 672 [01:23:36]Content-Type: application/json [01:23:36] [01:23:36]POST finish read [01:23:36]Found Content-Length = 672 [01:23:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127596", "tax_sys" : 0, "items" : [ { "code": "46214621", "name": "\u0420/\u0436 mentos \u0442\u0443\u0442\u0442\u0438-\u0444\u0440\u0443\u0442\u0442\u0438 \u0440\u043E\u043B\u043B 16\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:23:36]execute_script... [01:23:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127596", "tax_sys" : 0, "items" : [ { "code": "46214621", "name": "\u0420/\u0436 mentos \u0442\u0443\u0442\u0442\u0438-\u0444\u0440\u0443\u0442\u0442\u0438 \u0440\u043E\u043B\u043B 16\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:23:36]POST & json_proto [01:23:36]process_json_proto [01:23:36]json parsed OK: [01:23:36]protocol is kg_v1.0 [01:23:36]action value=close_receipt [01:23:36]process_action close_receipt [01:23:36]cmd_close_receipt [01:23:36]MH_GetDate [01:23:36]Write to MH i2c: F0 00 00 19 06 0E [01:23:36]Write i2c OK [01:23:36]MH_I2C_Read... [01:23:36]Read from MH i2c: F0 [01:23:36]MH_I2C_Read... [01:23:36]Read from MH i2c: F0 09 00 [01:23:36]MH_I2C_Read... [01:23:36]Read from MH i2c: F0 09 00 19 06 00 98 88 E7 66 33 3A A4 66 FB [01:23:36]GetLastDocTimeStamp 1726449500 [01:23:36]current date 1726449816 [01:23:36]FM_GetShiftState [01:23:36]SAM_PROTO_GetShiftState [01:23:36]wFMCommunicate request_size=4 [01:23:36]MH_SAM_APDU [01:23:36]CAPDU: 80 13 01 00 [01:23:36]Write to MH i2c: E2 08 00 1A 06 80 13 01 00 00 00 00 00 9D [01:23:36]Write i2c OK [01:23:36]MH_I2C_Read... [01:23:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:23:36]Read from MH i2c: E2 [01:23:36]MH_I2C_Read... [01:23:36]Read from MH i2c: E2 0E 00 [01:23:36]MH_I2C_Read... [01:23:36]Read from MH i2c: E2 0E 00 1A 06 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 36 [01:23:36]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [01:23:36]wFMCommunicate OK [01:23:36]SAM_PROTO_GetShiftState done [01:23:36]FM_GetShiftState done [01:23:36]opened in 1726446278 [01:23:36]opened+sec_in_day 1726532678 [01:23:36]quantity*price = 4900 [01:23:36]sum+1 = 4901 [01:23:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 49.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 13 16.09.2024 01:23 Смена: 508 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92710 ФПД: 51683852189183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T012337&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92710&fm=51683852189183&tin=02508201610067®Number=0000000000091423&sum=4900 0 [01:23:37]StoreToDocumentArchive [01:23:37]shift 508 fd 92710 [01:23:37]save to /storage/0508/doc_00092710 [01:23:37]save last doc name /storage/0508/doc_00092710 to /storage/kkm_last_doc_name [01:23:37]save OK [01:23:37]Clear old archive folders... [01:23:37]ProcessDocumentItem done err = 0, tmpTLVsize=287 [01:23:37]tlvbuf is 0176C1A0 [01:23:37]SAM_PROTO_ClearQueue [01:23:37]wFMCommunicate request_size=4 [01:23:37]MH_SAM_APDU [01:23:37]CAPDU: 80 09 00 00 [01:23:37]Write to MH i2c: E2 08 00 27 06 80 09 00 00 00 00 00 00 9F [01:23:37]Write i2c OK [01:23:37]MH_I2C_Read... [01:23:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:23:37]Read from MH i2c: E2 [01:23:37]MH_I2C_Read... [01:23:37]Read from MH i2c: E2 03 00 [01:23:37]MH_I2C_Read... [01:23:37]Read from MH i2c: E2 03 00 27 06 00 90 00 A1 [01:23:37]RAPDU: 90 00 [01:23:37]wFMCommunicate OK [01:23:37]SAM_PROTO_ClearQueue done [01:23:37]KKMCreateOFDPacket [01:23:37]OFDProtocolAddRootSTLVToBuf [01:23:37]FM_MakeSignedData [01:23:37]FM_MakeSignedData [01:23:37]SAM_PROTO_SignData [01:23:37]wFMCommunicate request_size=4 [01:23:37]MH_SAM_APDU [01:23:37]CAPDU: 80 0D 01 02 [01:23:37]Write to MH i2c: E2 08 00 28 06 80 0D 01 02 00 00 00 00 A7 [01:23:37]Write i2c OK [01:23:37]MH_I2C_Read... [01:23:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:23:37]Read from MH i2c: E2 [01:23:37]MH_I2C_Read... [01:23:37]Read from MH i2c: E2 03 00 [01:23:37]MH_I2C_Read... [01:23:37]Read from MH i2c: E2 03 00 28 06 00 90 00 A2 [01:23:37]RAPDU: 90 00 [01:23:37]wFMCommunicate OK [01:23:37]wFMCommunicate request_size=255 [01:23:37]MH_SAM_APDU [01:23:37]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 99 88 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 [01:23:37]Write to MH i2c: E2 02 01 29 06 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 99 88 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 00 00 C7 [01:23:37]Write i2c OK [01:23:37]MH_I2C_Read... [01:23:37]OFD Sender: No OFD packet to send [01:23:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:23:37]Read from MH i2c: E2 [01:23:37]MH_I2C_Read... [01:23:37]Read from MH i2c: E2 03 00 [01:23:37]MH_I2C_Read... [01:23:37]Read from MH i2c: E2 03 00 29 06 00 90 00 A3 [01:23:37]RAPDU: 90 00 [01:23:37]wFMCommunicate OK [01:23:37]wFMCommunicate request_size=46 [01:23:37]MH_SAM_APDU [01:23:37]CAPDU: 80 0D 02 02 29 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 26 6A 01 00 35 04 06 00 2F 01 95 A6 7D FF [01:23:37]Write to MH i2c: E2 31 00 2A 06 80 0D 02 02 29 00 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 26 6A 01 00 35 04 06 00 2F 01 95 A6 7D FF 00 00 AD [01:23:37]Write i2c OK [01:23:37]MH_I2C_Read... [01:23:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:23:38]Read from MH i2c: E2 [01:23:38]MH_I2C_Read... [01:23:38]Read from MH i2c: E2 03 00 [01:23:38]MH_I2C_Read... [01:23:38]Read from MH i2c: E2 03 00 2A 06 00 90 00 A4 [01:23:38]RAPDU: 90 00 [01:23:38]wFMCommunicate OK [01:23:38]wFMCommunicate request_size=4 [01:23:38]MH_SAM_APDU [01:23:38]CAPDU: 80 0D 03 02 [01:23:38]Write to MH i2c: E2 08 00 2B 06 80 0D 03 02 00 00 00 00 AC [01:23:38]Write i2c OK [01:23:38]MH_I2C_Read... [01:23:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:23:38]Read from MH i2c: E2 [01:23:38]MH_I2C_Read... [01:23:38]Read from MH i2c: E2 0B 00 [01:23:38]MH_I2C_Read... [01:23:38]Read from MH i2c: E2 0B 00 2B 06 00 6C D9 DF 9D C3 31 87 75 90 00 5E [01:23:38]RAPDU: 6C D9 DF 9D C3 31 87 75 90 00 [01:23:38]wFMCommunicate OK [01:23:38]SAM_PROTO_SignData done [01:23:38]FM_MakeSignedData done [01:23:38]CreateOFDProtocolMessage [01:23:38]wFMCommunicate request_size=4 [01:23:38]MH_SAM_APDU [01:23:38]CAPDU: 80 11 00 00 [01:23:38]Write to MH i2c: E2 08 00 2C 06 80 11 00 00 00 00 00 00 AC [01:23:38]Write i2c OK [01:23:38]MH_I2C_Read... [01:23:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:23:38]Read from MH i2c: E2 [01:23:38]MH_I2C_Read... [01:23:38]Read from MH i2c: E2 17 00 [01:23:38]MH_I2C_Read... [01:23:38]Read from MH i2c: E2 17 00 2C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 03 [01:23:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:23:38]wFMCommunicate OK [01:23:38]CreateOFDProtocolMessage done [01:23:38]OFDSenderStorePacket 92710 [01:23:38]StoreOFDPacket docnum=92710 [01:23:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 33 01 00 00 03 D1 2B 01 AF C0 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 99 88 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 26 6A 01 00 35 04 06 00 2F 01 95 A6 7D FF 6C D9 DF 9D C3 31 87 75 [01:23:38]CheckFolder [01:23:38]dirname=/storage/ofd_packets [01:23:38]CheckFolder done [01:23:38]ProducePacketName [01:23:38]name=ofd_packets/00092710 [01:23:38]NVStorageSaveData ofd_packets/00092710 [01:23:38]File name is /storage/ofd_packets/00092710 [01:23:38]Write 337 bytes [01:23:38]NVStorageSaveData done [01:23:38]OFDSenderStorePacket done [01:23:38]KKMCreateOFDPacket done [01:23:38]NVStorageSaveData kkm_last_timestamp [01:23:38]File name is /storage/kkm_last_timestamp [01:23:38]Write 4 bytes [01:23:38]NVStorageSaveData done [01:23:38]ExternCall_PrintAddStr [01:23:38]wPrintStart [01:23:38]Write to MH i2c: 01 00 00 2D 06 33 [01:23:38]Write i2c OK [01:23:38]MH_I2C_Read... [01:23:38]Read from MH i2c: 01 [01:23:38]MH_I2C_Read... [01:23:38]Read from MH i2c: 01 07 00 [01:23:38]MH_I2C_Read... [01:23:38]Read from MH i2c: 01 07 00 2D 06 00 00 00 00 00 FF 0F 48 [01:23:38]RasterBufferAndPrint [01:23:38]line Счет N : (3)127596 [01:23:38]line ИНН: 02508201610067 [01:23:38]line Контрольно-Кассовый Чек [01:23:38]line ПРОДАЖА [01:23:38]line Товар: 46214621 [01:23:38]line Р/ж mentos тутти-фрутти ролл 16г [01:23:38]line 1.000 * 49.00 [01:23:38]line = 49.00 [01:23:38]line НДС 12% НСП 1% [01:23:38]line > о реализуемом товаре [01:23:38]line ИТОГО: 49.00 [01:23:38]line НСП 1% : 0.43 [01:23:38]line НДС 12% : 5.20 [01:23:38]line Наличными: 49.00 [01:23:38]line Безнал.: 0.00 [01:23:38]line Место: АЗС № 5 "Партнер Нефть" [01:23:38]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [01:23:38]line СНО: Общий режим [01:23:38]line Чек 13 16.09.2024 01:23 [01:23:38]line Смена: 508 ФФД: 1.0 [01:23:38]line ЗНМ: 03000000022 [01:23:38]line РНМ: 0000000000091423 [01:23:38]line Версия ККМ: 001 [01:23:38]line ФМ: 0000000000874692 [01:23:38]line ФД: 92710 [01:23:38]line ФПД: 51683852189183 [01:23:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T012337&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92710&fm=51683852189183&tin=02508201610067®Number=0000000000091423&sum=4900 [01:23:38]line 0 [01:23:38]OFD Sender: Processing packet 92710 [packets to send 63, broken 62] [01:23:38]ProducePacketName [01:23:38]name=ofd_packets/00092710 [01:23:38]OFD Sender: To server: pG, [01:23:38]CommunicateWithHost lk.salyk.kg:30040 [01:23:38]ConnectInit lk.salyk.kg [01:23:38]written 0, free lines is 4095 [01:23:38]Connected sock=8 [01:23:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 33 01 00 00 03 D1 2B 01 AF C0 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 99 88 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 26 6A 01 00 35 04 06 00 2F 01 95 A6 7D FF 6C D9 DF 9D C3 31 87 75 [01:23:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 6C C5 47 00 79 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 26 6A 01 00 F4 03 04 00 0F 31 E7 66 B6 04 01 00 00 4B 69 03 57 CF EB 8C 76 [01:23:38]CommunicateWithHost err = 0 [01:23:38]CheckOFDResponse [01:23:38]1017 (14) - 77093643461234 [01:23:38]1041 (16) - 0000000000874692 [01:23:38]1040 (4) - 92710 [01:23:38]1012 (4) - 15.09.2024 19:10 [01:23:38]1206 (1) - 0 [01:23:38]OFD Sender: Remove packet 92710 [01:23:38]ProducePacketName [01:23:38]name=ofd_packets/00092710 [01:23:38]NVStorageDeleteData [01:23:38]Write to MH i2c: 01 00 00 56 06 5C [01:23:38]Write i2c OK [01:23:38]MH_I2C_Read... [01:23:38]Read from MH i2c: 01 [01:23:38]MH_I2C_Read... [01:23:38]Read from MH i2c: 01 07 00 [01:23:38]MH_I2C_Read... [01:23:38]Read from MH i2c: 01 07 00 56 06 00 00 00 00 00 07 0D 77 [01:23:38]RasterBufferAndPrint [01:23:38]line [01:23:38]line [01:23:38]line [01:23:38]line [01:23:38]line [01:23:38]written 0, free lines is 3341 [01:23:38]MH_Cut [01:23:38]Write to MH i2c: D1 01 00 5D 06 01 35 [01:23:38]Write i2c OK [01:23:38]MH_I2C_Read... [01:23:38]Read from MH i2c: D1 [01:23:38]MH_I2C_Read... [01:23:38]Read from MH i2c: D1 01 00 [01:23:38]MH_I2C_Read... [01:23:38]Read from MH i2c: D1 01 00 5D 06 00 34 [01:23:38]Write to MH i2c: 01 00 00 5E 06 64 [01:23:38]Write i2c OK [01:23:38]MH_I2C_Read... [01:23:39]OFD Sender: No OFD packet to send [01:23:39]*** Cut start [01:23:39]*** Purtial cut [01:23:39]*** Stage 1: CUTSNS_PIN = 1 [01:23:41]Read from MH i2c: 01 [01:23:41]MH_I2C_Read... [01:23:41]*** Stop cut motor [01:23:41]*** Cut end [01:23:41]Read from MH i2c: 01 07 00 [01:23:41]MH_I2C_Read... [01:23:41]Read from MH i2c: 01 07 00 5E 06 00 00 00 00 00 FF 0F 79 [01:23:41]process_action close_receipt done [01:23:41]requested_data is exist [01:23:41]produce_requested_data [01:23:41]requested_item fm.sn is exist - process it [01:23:41]wFMCommunicate request_size=4 [01:23:41]MH_SAM_APDU [01:23:41]CAPDU: 80 11 00 00 [01:23:41]Write to MH i2c: E2 08 00 5F 06 80 11 00 00 00 00 00 00 DF [01:23:41]Write i2c OK [01:23:41]MH_I2C_Read... [01:23:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:23:41]Read from MH i2c: E2 [01:23:41]MH_I2C_Read... [01:23:41]Read from MH i2c: E2 17 00 [01:23:41]MH_I2C_Read... [01:23:41]Read from MH i2c: E2 17 00 5F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 36 [01:23:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:23:41]wFMCommunicate OK [01:23:41]requested_item fd.num is exist - process it [01:23:41]SAM_PROTO_GetFieldsCounters [01:23:41]wFMCommunicate request_size=4 [01:23:41]MH_SAM_APDU [01:23:41]CAPDU: 80 13 00 00 [01:23:41]Write to MH i2c: E2 08 00 60 06 80 13 00 00 00 00 00 00 E2 [01:23:41]Write i2c OK [01:23:41]MH_I2C_Read... [01:23:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:23:41]Read from MH i2c: E2 [01:23:41]MH_I2C_Read... [01:23:41]Read from MH i2c: E2 62 00 [01:23:41]MH_I2C_Read... [01:23:41]Read from MH i2c: E2 62 00 60 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 26 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [01:23:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 26 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:23:41]wFMCommunicate OK [01:23:41]SAM_PROTO_GetFieldsCounters done [01:23:41]requested_item shift.num is exist - process it [01:23:41]requested_item shift.opened is exist - process it [01:23:41]req_shift_opened [01:23:41]FM_GetShiftState [01:23:41]SAM_PROTO_GetShiftState [01:23:41]wFMCommunicate request_size=4 [01:23:41]MH_SAM_APDU [01:23:41]CAPDU: 80 13 01 00 [01:23:41]Write to MH i2c: E2 08 00 61 06 80 13 01 00 00 00 00 00 E4 [01:23:41]Write i2c OK [01:23:41]MH_I2C_Read... [01:23:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:23:41]Read from MH i2c: E2 [01:23:41]MH_I2C_Read... [01:23:41]Read from MH i2c: E2 0E 00 [01:23:41]MH_I2C_Read... [01:23:41]Read from MH i2c: E2 0E 00 61 06 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 7D [01:23:41]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [01:23:41]wFMCommunicate OK [01:23:41]SAM_PROTO_GetShiftState done [01:23:41]FM_GetShiftState done [01:23:41]req_shift_opened done [01:23:41]requested_item shift.open_date is exist - process it [01:23:41]req_shift_open_date [01:23:41]req_shift_open_date done [01:23:41]produce_requested_data done [01:23:41]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92710,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278} [01:23:41]process_action_free close_receipt [01:23:41]json_value_free [01:23:41]json_value_free done [01:23:41]process_json_proto returns [01:23:41]Send response to host [01:23:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92710,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278}}} [01:23:41]free response buf [01:23:41]execute_script done [01:23:41]execute_script returns [01:23:41]free content buf [01:23:41]Sock 6.Close socket [01:23:41]Sock 6.Thread stoped [01:23:44]OFD Sender: No OFD packet to send [01:23:49]OFD Sender: No OFD packet to send [01:23:54]OFD Sender: No OFD packet to send [01:23:58]accept exits with 7 [01:23:58]New connection [01:23:58]New thread 3066752356 created [01:23:58]Thread 3066608996 joined [01:23:58]Waiting for new connection... [01:23:58] Sock 7.Parse request [01:23:58]Sock 7.Check first char [01:23:58]Sock 7.First char is OK [01:23:58]request: POST /json_proto HTTP/1.0 [01:23:58]Method: POST [01:23:58]URL: /json_proto [01:23:58]Method is POST - this is cgi request [01:23:58]url: /json_proto [01:23:58]query_string will be loaded in cgi processing [01:23:58]execute_cgi json_proto POST (null) [01:23:58]execute_cgi path=json_proto method=POST [01:23:58]POST find Content-Length [01:23:58]Host: 172.17.57.71:8080 [01:23:58]Content-Length: 677 [01:23:58]Content-Type: application/json [01:23:58] [01:23:58]POST finish read [01:23:58]Found Content-Length = 677 [01:23:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.890, "sum" : 260.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:23:58]execute_script... [01:23:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.890, "sum" : 260.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:23:58]POST & json_proto [01:23:58]process_json_proto [01:23:58]json parsed OK: [01:23:58]protocol is kg_v1.0 [01:23:58]action value=close_receipt [01:23:58]process_action close_receipt [01:23:58]cmd_close_receipt [01:23:58]MH_GetDate [01:23:58]Write to MH i2c: F0 00 00 62 06 57 [01:23:58]Write i2c OK [01:23:58]MH_I2C_Read... [01:23:58]Read from MH i2c: F0 [01:23:58]MH_I2C_Read... [01:23:58]Read from MH i2c: F0 09 00 [01:23:58]MH_I2C_Read... [01:23:58]Read from MH i2c: F0 09 00 62 06 00 AE 88 E7 66 33 3A A4 66 5A [01:23:58]GetLastDocTimeStamp 1726449817 [01:23:58]current date 1726449838 [01:23:58]FM_GetShiftState [01:23:58]SAM_PROTO_GetShiftState [01:23:58]wFMCommunicate request_size=4 [01:23:58]MH_SAM_APDU [01:23:58]CAPDU: 80 13 01 00 [01:23:58]Write to MH i2c: E2 08 00 63 06 80 13 01 00 00 00 00 00 E6 [01:23:58]Write i2c OK [01:23:58]MH_I2C_Read... [01:23:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:23:58]Read from MH i2c: E2 [01:23:58]MH_I2C_Read... [01:23:58]Read from MH i2c: E2 0E 00 [01:23:58]MH_I2C_Read... [01:23:58]Read from MH i2c: E2 0E 00 63 06 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 7F [01:23:58]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [01:23:58]wFMCommunicate OK [01:23:58]SAM_PROTO_GetShiftState done [01:23:58]FM_GetShiftState done [01:23:58]opened in 1726446278 [01:23:58]opened+sec_in_day 1726532678 [01:23:58]quantity*price = 26024 [01:23:58]sum+1 = 26025 [01:23:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 260.00 Внесено: 260.00 СДАЧА: 0.00 НСП 1% : 2.30 НДС 12% : 27.64 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 14 16.09.2024 01:23 Смена: 508 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92711 ФПД: 222017295548100 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T012358&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92711&fm=222017295548100&tin=02508201610067®Number=0000000000091423&sum=26000 [01:23:59]StoreToDocumentArchive [01:23:59]shift 508 fd 92711 [01:23:59]save to /storage/0508/doc_00092711 [01:23:59]save last doc name /storage/0508/doc_00092711 to /storage/kkm_last_doc_name [01:23:59]save OK [01:23:59]Clear old archive folders... [01:23:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:23:59]tlvbuf is 0176BDA0 [01:23:59]SAM_PROTO_ClearQueue [01:23:59]wFMCommunicate request_size=4 [01:23:59]MH_SAM_APDU [01:23:59]CAPDU: 80 09 00 00 [01:23:59]Write to MH i2c: E2 08 00 70 06 80 09 00 00 00 00 00 00 E8 [01:23:59]Write i2c OK [01:23:59]MH_I2C_Read... [01:23:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:23:59]Read from MH i2c: E2 [01:23:59]MH_I2C_Read... [01:23:59]Read from MH i2c: E2 03 00 [01:23:59]MH_I2C_Read... [01:23:59]Read from MH i2c: E2 03 00 70 06 00 90 00 EA [01:23:59]RAPDU: 90 00 [01:23:59]wFMCommunicate OK [01:23:59]SAM_PROTO_ClearQueue done [01:23:59]KKMCreateOFDPacket [01:23:59]OFDProtocolAddRootSTLVToBuf [01:23:59]FM_MakeSignedData [01:23:59]FM_MakeSignedData [01:23:59]SAM_PROTO_SignData [01:23:59]wFMCommunicate request_size=4 [01:23:59]MH_SAM_APDU [01:23:59]CAPDU: 80 0D 01 02 [01:23:59]Write to MH i2c: E2 08 00 71 06 80 0D 01 02 00 00 00 00 F0 [01:23:59]Write i2c OK [01:23:59]MH_I2C_Read... [01:23:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:23:59]Read from MH i2c: E2 [01:23:59]MH_I2C_Read... [01:23:59]Read from MH i2c: E2 03 00 [01:23:59]MH_I2C_Read... [01:23:59]Read from MH i2c: E2 03 00 71 06 00 90 00 EB [01:23:59]RAPDU: 90 00 [01:23:59]wFMCommunicate OK [01:23:59]wFMCommunicate request_size=255 [01:23:59]MH_SAM_APDU [01:23:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 AE 88 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 27 6A 01 00 35 04 06 00 C9 [01:23:59]Write to MH i2c: E2 02 01 72 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 AE 88 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 27 6A 01 00 35 04 06 00 C9 00 00 11 [01:23:59]Write i2c OK [01:23:59]MH_I2C_Read... [01:23:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:23:59]Read from MH i2c: E2 [01:23:59]MH_I2C_Read... [01:23:59]Read from MH i2c: E2 03 00 [01:23:59]MH_I2C_Read... [01:23:59]Read from MH i2c: E2 03 00 72 06 00 90 00 EC [01:23:59]RAPDU: 90 00 [01:23:59]wFMCommunicate OK [01:23:59]wFMCommunicate request_size=10 [01:23:59]MH_SAM_APDU [01:23:59]CAPDU: 80 0D 02 02 05 EC 6E 08 FE C4 [01:23:59]Write to MH i2c: E2 0D 00 73 06 80 0D 02 02 05 00 EC 6E 08 FE C4 00 00 21 [01:23:59]Write i2c OK [01:23:59]MH_I2C_Read... [01:23:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:23:59]Read from MH i2c: E2 [01:23:59]MH_I2C_Read... [01:23:59]Read from MH i2c: E2 03 00 [01:23:59]MH_I2C_Read... [01:23:59]Read from MH i2c: E2 03 00 73 06 00 90 00 ED [01:23:59]RAPDU: 90 00 [01:23:59]wFMCommunicate OK [01:23:59]wFMCommunicate request_size=4 [01:23:59]MH_SAM_APDU [01:23:59]CAPDU: 80 0D 03 02 [01:23:59]Write to MH i2c: E2 08 00 74 06 80 0D 03 02 00 00 00 00 F5 [01:23:59]Write i2c OK [01:23:59]MH_I2C_Read... [01:23:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:23:59]Read from MH i2c: E2 [01:23:59]MH_I2C_Read... [01:23:59]Read from MH i2c: E2 0B 00 [01:23:59]MH_I2C_Read... [01:23:59]Read from MH i2c: E2 0B 00 74 06 00 4C 07 D0 84 E6 58 EB BF 90 00 85 [01:23:59]RAPDU: 4C 07 D0 84 E6 58 EB BF 90 00 [01:23:59]wFMCommunicate OK [01:23:59]SAM_PROTO_SignData done [01:23:59]FM_MakeSignedData done [01:23:59]CreateOFDProtocolMessage [01:23:59]wFMCommunicate request_size=4 [01:23:59]MH_SAM_APDU [01:23:59]CAPDU: 80 11 00 00 [01:23:59]Write to MH i2c: E2 08 00 75 06 80 11 00 00 00 00 00 00 F5 [01:23:59]Write i2c OK [01:23:59]MH_I2C_Read... [01:23:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:23:59]Read from MH i2c: E2 [01:23:59]MH_I2C_Read... [01:23:59]Read from MH i2c: E2 17 00 [01:23:59]MH_I2C_Read... [01:23:59]Read from MH i2c: E2 17 00 75 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 4C [01:23:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:23:59]wFMCommunicate OK [01:23:59]CreateOFDProtocolMessage done [01:23:59]OFDSenderStorePacket 92711 [01:23:59]StoreOFDPacket docnum=92711 [01:23:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 E8 22 07 01 85 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 AE 88 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 27 6A 01 00 35 04 06 00 C9 EC 6E 08 FE C4 4C 07 D0 84 E6 58 EB BF [01:23:59]CheckFolder [01:23:59]dirname=/storage/ofd_packets [01:23:59]CheckFolder done [01:23:59]ProducePacketName [01:23:59]name=ofd_packets/00092711 [01:23:59]NVStorageSaveData ofd_packets/00092711 [01:23:59]File name is /storage/ofd_packets/00092711 [01:23:59]Write 301 bytes [01:23:59]NVStorageSaveData done [01:23:59]OFDSenderStorePacket done [01:23:59]KKMCreateOFDPacket done [01:23:59]NVStorageSaveData kkm_last_timestamp [01:23:59]File name is /storage/kkm_last_timestamp [01:23:59]Write 4 bytes [01:23:59]NVStorageSaveData done [01:23:59]OFD Sender: Processing packet 92711 [packets to send 63, broken 62] [01:23:59]ProducePacketName [01:23:59]name=ofd_packets/00092711 [01:23:59]OFD Sender: To server: pG, [01:23:59]CommunicateWithHost lk.salyk.kg:30040 [01:23:59]ConnectInit lk.salyk.kg [01:23:59]ExternCall_PrintAddStr [01:23:59]wPrintStart [01:23:59]Write to MH i2c: 01 00 00 76 06 7C [01:23:59]Write i2c OK [01:23:59]MH_I2C_Read... [01:23:59]Read from MH i2c: 01 [01:23:59]MH_I2C_Read... [01:23:59]Read from MH i2c: 01 07 00 [01:23:59]MH_I2C_Read... [01:23:59]Read from MH i2c: 01 07 00 76 06 00 00 00 00 00 FF 0F 91 [01:23:59]RasterBufferAndPrint [01:23:59]line Счет N : (1)648811 [01:23:59]line ИНН: 02508201610067 [01:23:59]line Контрольно-Кассовый Чек [01:23:59]line ПРОДАЖА [01:23:59]line ТРК (МРК, ГНК) : 13 [01:23:59]line Товар: 2710124130 [01:23:59]line Аи-92-К-5 [01:23:59]line 3.890 * 66.90 [01:23:59]line = 260.24 [01:23:59]line НДС 12% НСП 1% [01:23:59]line > о реализуемом товаре [01:23:59]line ОКРУГЛЕНИЕ: -0.24 [01:23:59]line ИТОГО: 260.00 [01:23:59]line Внесено: 260.00 [01:23:59]line СДАЧА: 0.00 [01:23:59]line НСП 1% : 2.30 [01:23:59]line НДС 12% : 27.64 [01:23:59]line Наличными: 260.00 [01:23:59]line Безнал.: 0.00 [01:23:59]line Место: АЗС № 5 "Партнер Нефть" [01:23:59]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [01:23:59]line СНО: Общий режим [01:23:59]line Чек 14 16.09.2024 01:23 [01:23:59]line Смена: 508 ФФД: 1.0 [01:23:59]line ЗНМ: 03000000022 [01:23:59]line РНМ: 0000000000091423 [01:23:59]line Версия ККМ: 001 [01:23:59]line ФМ: 0000000000874692 [01:23:59]line ФД: 92711 [01:23:59]line ФПД: 222017295548100 [01:24:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T012358&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92711&fm=222017295548100&tin=02508201610067®Number=0000000000091423&sum=26000 [01:24:00]Connected sock=9 [01:24:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 E8 22 07 01 85 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 AE 88 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 27 6A 01 00 35 04 06 00 C9 EC 6E 08 FE C4 4C 07 D0 84 E6 58 EB BF [01:24:00]written 0, free lines is 4095 [01:24:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 9B C4 47 00 07 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 27 6A 01 00 F4 03 04 00 24 31 E7 66 B6 04 01 00 00 E1 54 1A D6 C7 FD BB 5D [01:24:00]CommunicateWithHost err = 0 [01:24:00]CheckOFDResponse [01:24:00]1017 (14) - 77093643461234 [01:24:00]1041 (16) - 0000000000874692 [01:24:00]1040 (4) - 92711 [01:24:00]1012 (4) - 15.09.2024 19:10 [01:24:00]1206 (1) - 0 [01:24:00]OFD Sender: Remove packet 92711 [01:24:00]ProducePacketName [01:24:00]name=ofd_packets/00092711 [01:24:00]NVStorageDeleteData [01:24:00]Write to MH i2c: 01 00 00 A1 06 A7 [01:24:00]Write i2c OK [01:24:00]MH_I2C_Read... [01:24:00]Read from MH i2c: 01 [01:24:00]MH_I2C_Read... [01:24:00]Read from MH i2c: 01 07 00 [01:24:00]MH_I2C_Read... [01:24:00]Read from MH i2c: 01 07 00 A1 06 00 00 00 00 00 E9 0C A3 [01:24:00]RasterBufferAndPrint [01:24:00]line [01:24:00]line [01:24:00]line [01:24:00]line [01:24:00]line [01:24:00]written 0, free lines is 3313 [01:24:00]MH_Cut [01:24:00]Write to MH i2c: D1 01 00 A8 06 01 80 [01:24:00]Write i2c OK [01:24:00]MH_I2C_Read... [01:24:00]Read from MH i2c: D1 [01:24:00]MH_I2C_Read... [01:24:00]Read from MH i2c: D1 01 00 [01:24:00]MH_I2C_Read... [01:24:00]Read from MH i2c: D1 01 00 A8 06 00 7F [01:24:00]Write to MH i2c: 01 00 00 A9 06 AF [01:24:00]Write i2c OK [01:24:00]MH_I2C_Read... [01:24:00]OFD Sender: No OFD packet to send [01:24:01]*** Cut start [01:24:01]*** Purtial cut [01:24:01]*** Stage 1: CUTSNS_PIN = 1 [01:24:03]Read from MH i2c: 01 [01:24:03]MH_I2C_Read... [01:24:03]*** Stop cut motor [01:24:03]*** Cut end [01:24:03]Read from MH i2c: 01 07 00 [01:24:03]MH_I2C_Read... [01:24:03]Read from MH i2c: 01 07 00 A9 06 00 00 00 00 00 FF 0F C4 [01:24:03]process_action close_receipt done [01:24:03]requested_data is exist [01:24:03]produce_requested_data [01:24:03]requested_item fm.sn is exist - process it [01:24:03]wFMCommunicate request_size=4 [01:24:03]MH_SAM_APDU [01:24:03]CAPDU: 80 11 00 00 [01:24:03]Write to MH i2c: E2 08 00 AA 06 80 11 00 00 00 00 00 00 2A [01:24:03]Write i2c OK [01:24:03]MH_I2C_Read... [01:24:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:24:03]Read from MH i2c: E2 [01:24:03]MH_I2C_Read... [01:24:03]Read from MH i2c: E2 17 00 [01:24:03]MH_I2C_Read... [01:24:03]Read from MH i2c: E2 17 00 AA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 81 [01:24:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:24:03]wFMCommunicate OK [01:24:03]requested_item fd.num is exist - process it [01:24:03]SAM_PROTO_GetFieldsCounters [01:24:03]wFMCommunicate request_size=4 [01:24:03]MH_SAM_APDU [01:24:03]CAPDU: 80 13 00 00 [01:24:03]Write to MH i2c: E2 08 00 AB 06 80 13 00 00 00 00 00 00 2D [01:24:03]Write i2c OK [01:24:03]MH_I2C_Read... [01:24:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:24:03]Read from MH i2c: E2 [01:24:03]MH_I2C_Read... [01:24:03]Read from MH i2c: E2 62 00 [01:24:03]MH_I2C_Read... [01:24:03]Read from MH i2c: E2 62 00 AB 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 27 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [01:24:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 27 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:24:03]wFMCommunicate OK [01:24:03]SAM_PROTO_GetFieldsCounters done [01:24:03]requested_item shift.num is exist - process it [01:24:03]requested_item shift.opened is exist - process it [01:24:03]req_shift_opened [01:24:03]FM_GetShiftState [01:24:03]SAM_PROTO_GetShiftState [01:24:03]wFMCommunicate request_size=4 [01:24:03]MH_SAM_APDU [01:24:03]CAPDU: 80 13 01 00 [01:24:03]Write to MH i2c: E2 08 00 AC 06 80 13 01 00 00 00 00 00 2F [01:24:03]Write i2c OK [01:24:03]MH_I2C_Read... [01:24:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:24:03]Read from MH i2c: E2 [01:24:03]MH_I2C_Read... [01:24:03]Read from MH i2c: E2 0E 00 [01:24:03]MH_I2C_Read... [01:24:03]Read from MH i2c: E2 0E 00 AC 06 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 C8 [01:24:03]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [01:24:03]wFMCommunicate OK [01:24:03]SAM_PROTO_GetShiftState done [01:24:03]FM_GetShiftState done [01:24:03]req_shift_opened done [01:24:03]requested_item shift.open_date is exist - process it [01:24:03]req_shift_open_date [01:24:03]req_shift_open_date done [01:24:03]produce_requested_data done [01:24:03]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92711,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278} [01:24:03]process_action_free close_receipt [01:24:03]json_value_free [01:24:03]json_value_free done [01:24:03]process_json_proto returns [01:24:03]Send response to host [01:24:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92711,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278}}} [01:24:03]free response buf [01:24:03]execute_script done [01:24:03]execute_script returns [01:24:03]free content buf [01:24:03]Sock 7.Close socket [01:24:03]Sock 7.Thread stoped [01:24:05]OFD Sender: No OFD packet to send [01:24:10]OFD Sender: No OFD packet to send [01:24:15]OFD Sender: No OFD packet to send [01:24:20]OFD Sender: No OFD packet to send [01:24:25]OFD Sender: No OFD packet to send [01:24:30]OFD Sender: No OFD packet to send [01:24:35]OFD Sender: No OFD packet to send [01:24:40]OFD Sender: No OFD packet to send [01:24:45]OFD Sender: No OFD packet to send [01:24:50]OFD Sender: No OFD packet to send [01:24:55]OFD Sender: No OFD packet to send [01:25:00]OFD Sender: No OFD packet to send [01:25:03]accept exits with 6 [01:25:03]New connection [01:25:03]New thread 3066608996 created [01:25:03]Thread 3066752356 joined [01:25:03]Waiting for new connection... [01:25:03] Sock 6.Parse request [01:25:03]Sock 6.Check first char [01:25:03]Sock 6.First char is OK [01:25:03]request: POST /json_proto HTTP/1.0 [01:25:03]Method: POST [01:25:03]URL: /json_proto [01:25:03]Method is POST - this is cgi request [01:25:03]url: /json_proto [01:25:03]query_string will be loaded in cgi processing [01:25:03]execute_cgi json_proto POST (null) [01:25:03]execute_cgi path=json_proto method=POST [01:25:03]POST find Content-Length [01:25:03]Host: 172.17.57.71:8080 [01:25:03]Content-Length: 677 [01:25:03]Content-Type: application/json [01:25:03] [01:25:03]POST finish read [01:25:03]Found Content-Length = 677 [01:25:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 6.770, "sum" : 500.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:25:03]execute_script... [01:25:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 6.770, "sum" : 500.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:25:03]POST & json_proto [01:25:03]process_json_proto [01:25:03]json parsed OK: [01:25:03]protocol is kg_v1.0 [01:25:03]action value=close_receipt [01:25:03]process_action close_receipt [01:25:03]cmd_close_receipt [01:25:03]MH_GetDate [01:25:03]Write to MH i2c: F0 00 00 AD 06 A2 [01:25:03]Write i2c OK [01:25:03]MH_I2C_Read... [01:25:03]Read from MH i2c: F0 [01:25:03]MH_I2C_Read... [01:25:03]Read from MH i2c: F0 09 00 [01:25:03]MH_I2C_Read... [01:25:03]Read from MH i2c: F0 09 00 AD 06 00 F0 88 E7 66 33 3A A4 66 E7 [01:25:03]GetLastDocTimeStamp 1726449838 [01:25:03]current date 1726449904 [01:25:03]FM_GetShiftState [01:25:03]SAM_PROTO_GetShiftState [01:25:03]wFMCommunicate request_size=4 [01:25:03]MH_SAM_APDU [01:25:03]CAPDU: 80 13 01 00 [01:25:03]Write to MH i2c: E2 08 00 AE 06 80 13 01 00 00 00 00 00 31 [01:25:03]Write i2c OK [01:25:03]MH_I2C_Read... [01:25:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:25:03]Read from MH i2c: E2 [01:25:03]MH_I2C_Read... [01:25:03]Read from MH i2c: E2 0E 00 [01:25:03]MH_I2C_Read... [01:25:03]Read from MH i2c: E2 0E 00 AE 06 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 CA [01:25:03]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [01:25:03]wFMCommunicate OK [01:25:03]SAM_PROTO_GetShiftState done [01:25:03]FM_GetShiftState done [01:25:03]opened in 1726446278 [01:25:03]opened+sec_in_day 1726532678 [01:25:03]quantity*price = 50030 [01:25:03]sum+1 = 50031 [01:25:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 15 16.09.2024 01:25 Смена: 508 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92712 ФПД: 71540144275316 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T012504&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92712&fm=71540144275316&tin=02508201610067®Number=0000000000091423&sum=50000 [01:25:05]StoreToDocumentArchive [01:25:05]shift 508 fd 92712 [01:25:05]save to /storage/0508/doc_00092712 [01:25:05]save last doc name /storage/0508/doc_00092712 to /storage/kkm_last_doc_name [01:25:05]save OK [01:25:05]Clear old archive folders... [01:25:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:25:05]tlvbuf is 016FBA80 [01:25:05]SAM_PROTO_ClearQueue [01:25:05]wFMCommunicate request_size=4 [01:25:05]MH_SAM_APDU [01:25:05]CAPDU: 80 09 00 00 [01:25:05]Write to MH i2c: E2 08 00 BB 06 80 09 00 00 00 00 00 00 33 [01:25:05]Write i2c OK [01:25:05]MH_I2C_Read... [01:25:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:25:05]Read from MH i2c: E2 [01:25:05]MH_I2C_Read... [01:25:05]Read from MH i2c: E2 03 00 [01:25:05]MH_I2C_Read... [01:25:05]Read from MH i2c: E2 03 00 BB 06 00 90 00 35 [01:25:05]RAPDU: 90 00 [01:25:05]wFMCommunicate OK [01:25:05]SAM_PROTO_ClearQueue done [01:25:05]KKMCreateOFDPacket [01:25:05]OFDProtocolAddRootSTLVToBuf [01:25:05]FM_MakeSignedData [01:25:05]FM_MakeSignedData [01:25:05]SAM_PROTO_SignData [01:25:05]wFMCommunicate request_size=4 [01:25:05]MH_SAM_APDU [01:25:05]CAPDU: 80 0D 01 02 [01:25:05]Write to MH i2c: E2 08 00 BC 06 80 0D 01 02 00 00 00 00 3B [01:25:05]Write i2c OK [01:25:05]MH_I2C_Read... [01:25:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:25:05]Read from MH i2c: E2 [01:25:05]MH_I2C_Read... [01:25:05]Read from MH i2c: E2 03 00 [01:25:05]MH_I2C_Read... [01:25:05]Read from MH i2c: E2 03 00 BC 06 00 90 00 36 [01:25:05]RAPDU: 90 00 [01:25:05]wFMCommunicate OK [01:25:05]wFMCommunicate request_size=255 [01:25:05]MH_SAM_APDU [01:25:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 F0 88 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 28 6A 01 00 35 04 06 00 41 [01:25:05]Write to MH i2c: E2 02 01 BD 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 F0 88 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 28 6A 01 00 35 04 06 00 41 00 00 5A [01:25:05]Write i2c OK [01:25:05]MH_I2C_Read... [01:25:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:25:05]Read from MH i2c: E2 [01:25:05]MH_I2C_Read... [01:25:05]Read from MH i2c: E2 03 00 [01:25:05]MH_I2C_Read... [01:25:05]Read from MH i2c: E2 03 00 BD 06 00 90 00 37 [01:25:05]RAPDU: 90 00 [01:25:05]wFMCommunicate OK [01:25:05]wFMCommunicate request_size=10 [01:25:05]MH_SAM_APDU [01:25:05]CAPDU: 80 0D 02 02 05 10 BC E2 FF 74 [01:25:05]Write to MH i2c: E2 0D 00 BE 06 80 0D 02 02 05 00 10 BC E2 FF 74 00 00 69 [01:25:05]Write i2c OK [01:25:05]MH_I2C_Read... [01:25:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:25:05]Read from MH i2c: E2 [01:25:05]MH_I2C_Read... [01:25:05]Read from MH i2c: E2 03 00 [01:25:05]MH_I2C_Read... [01:25:05]Read from MH i2c: E2 03 00 BE 06 00 90 00 38 [01:25:05]RAPDU: 90 00 [01:25:05]wFMCommunicate OK [01:25:05]wFMCommunicate request_size=4 [01:25:05]MH_SAM_APDU [01:25:05]CAPDU: 80 0D 03 02 [01:25:05]Write to MH i2c: E2 08 00 BF 06 80 0D 03 02 00 00 00 00 40 [01:25:05]Write i2c OK [01:25:05]MH_I2C_Read... [01:25:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:25:05]Read from MH i2c: E2 [01:25:05]MH_I2C_Read... [01:25:05]Read from MH i2c: E2 0B 00 [01:25:05]MH_I2C_Read... [01:25:05]Read from MH i2c: E2 0B 00 BF 06 00 83 17 61 5F 4B 2D 80 32 90 00 C5 [01:25:05]RAPDU: 83 17 61 5F 4B 2D 80 32 90 00 [01:25:05]wFMCommunicate OK [01:25:05]SAM_PROTO_SignData done [01:25:05]FM_MakeSignedData done [01:25:05]CreateOFDProtocolMessage [01:25:05]wFMCommunicate request_size=4 [01:25:05]MH_SAM_APDU [01:25:05]CAPDU: 80 11 00 00 [01:25:05]Write to MH i2c: E2 08 00 C0 06 80 11 00 00 00 00 00 00 40 [01:25:05]Write i2c OK [01:25:05]MH_I2C_Read... [01:25:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:25:05]Read from MH i2c: E2 [01:25:05]MH_I2C_Read... [01:25:05]Read from MH i2c: E2 17 00 [01:25:05]MH_I2C_Read... [01:25:05]Read from MH i2c: E2 17 00 C0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 97 [01:25:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:25:05]wFMCommunicate OK [01:25:05]CreateOFDProtocolMessage done [01:25:05]OFDSenderStorePacket 92712 [01:25:05]StoreOFDPacket docnum=92712 [01:25:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 21 5A 07 01 4A 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 F0 88 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 28 6A 01 00 35 04 06 00 41 10 BC E2 FF 74 83 17 61 5F 4B 2D 80 32 [01:25:05]CheckFolder [01:25:05]dirname=/storage/ofd_packets [01:25:05]CheckFolder done [01:25:05]ProducePacketName [01:25:05]name=ofd_packets/00092712 [01:25:05]NVStorageSaveData ofd_packets/00092712 [01:25:05]File name is /storage/ofd_packets/00092712 [01:25:05]Write 301 bytes [01:25:05]NVStorageSaveData done [01:25:05]OFDSenderStorePacket done [01:25:05]KKMCreateOFDPacket done [01:25:05]NVStorageSaveData kkm_last_timestamp [01:25:05]File name is /storage/kkm_last_timestamp [01:25:05]Write 4 bytes [01:25:05]NVStorageSaveData done [01:25:05]ExternCall_PrintAddStr [01:25:05]wPrintStart [01:25:05]Write to MH i2c: 01 00 00 C1 06 C7 [01:25:05]Write i2c OK [01:25:05]MH_I2C_Read... [01:25:05]Read from MH i2c: 01 [01:25:05]MH_I2C_Read... [01:25:05]Read from MH i2c: 01 07 00 [01:25:05]MH_I2C_Read... [01:25:05]Read from MH i2c: 01 07 00 C1 06 00 00 00 00 00 FF 0F DC [01:25:05]RasterBufferAndPrint [01:25:05]line Счет N : (1)648812 [01:25:05]line ИНН: 02508201610067 [01:25:05]line Контрольно-Кассовый Чек [01:25:05]line ПРОДАЖА [01:25:05]line ТРК (МРК, ГНК) : 22 [01:25:05]line Товар: 2710124500 [01:25:05]line Аи-95-К-5 [01:25:05]line 6.770 * 73.90 [01:25:05]line = 500.30 [01:25:05]line НДС 12% НСП 1% [01:25:05]line > о реализуемом товаре [01:25:05]line ОКРУГЛЕНИЕ: -0.30 [01:25:05]line ИТОГО: 500.00 [01:25:05]line Внесено: 500.00 [01:25:05]line СДАЧА: 0.00 [01:25:05]line НСП 1% : 4.43 [01:25:05]line НДС 12% : 53.13 [01:25:05]line Наличными: 500.00 [01:25:05]line Безнал.: 0.00 [01:25:05]line Место: АЗС № 5 "Партнер Нефть" [01:25:05]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [01:25:05]line СНО: Общий режим [01:25:05]line Чек 15 16.09.2024 01:25 [01:25:05]line Смена: 508 ФФД: 1.0 [01:25:05]line ЗНМ: 03000000022 [01:25:05]line РНМ: 0000000000091423 [01:25:05]line Версия ККМ: 001 [01:25:05]line ФМ: 0000000000874692 [01:25:05]line ФД: 92712 [01:25:05]line ФПД: 71540144275316 [01:25:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T012504&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92712&fm=71540144275316&tin=02508201610067®Number=0000000000091423&sum=50000 [01:25:05]written 0, free lines is 4095 [01:25:05]OFD Sender: Processing packet 92712 [packets to send 63, broken 62] [01:25:05]ProducePacketName [01:25:05]name=ofd_packets/00092712 [01:25:05]OFD Sender: To server: pG, [01:25:05]CommunicateWithHost lk.salyk.kg:30040 [01:25:05]ConnectInit lk.salyk.kg [01:25:06]Connected sock=8 [01:25:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 21 5A 07 01 4A 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 F0 88 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 28 6A 01 00 35 04 06 00 41 10 BC E2 FF 74 83 17 61 5F 4B 2D 80 32 [01:25:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 EA 68 47 00 7E 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 28 6A 01 00 F4 03 04 00 66 31 E7 66 B6 04 01 00 00 8B DB C3 52 F1 95 F3 05 [01:25:06]CommunicateWithHost err = 0 [01:25:06]CheckOFDResponse [01:25:06]1017 (14) - 77093643461234 [01:25:06]1041 (16) - 0000000000874692 [01:25:06]1040 (4) - 92712 [01:25:06]1012 (4) - 15.09.2024 19:11 [01:25:06]1206 (1) - 0 [01:25:06]OFD Sender: Remove packet 92712 [01:25:06]ProducePacketName [01:25:06]name=ofd_packets/00092712 [01:25:06]NVStorageDeleteData [01:25:06]Write to MH i2c: 01 00 00 EC 06 F2 [01:25:06]Write i2c OK [01:25:06]MH_I2C_Read... [01:25:06]Read from MH i2c: 01 [01:25:06]MH_I2C_Read... [01:25:06]Read from MH i2c: 01 07 00 [01:25:06]MH_I2C_Read... [01:25:06]Read from MH i2c: 01 07 00 EC 06 00 00 00 00 00 E8 0C ED [01:25:06]RasterBufferAndPrint [01:25:06]line [01:25:06]line [01:25:06]line [01:25:06]line [01:25:06]line [01:25:06]written 0, free lines is 3308 [01:25:06]MH_Cut [01:25:06]Write to MH i2c: D1 01 00 F3 06 01 CB [01:25:06]Write i2c OK [01:25:06]MH_I2C_Read... [01:25:06]Read from MH i2c: D1 [01:25:06]MH_I2C_Read... [01:25:06]Read from MH i2c: D1 01 00 [01:25:06]MH_I2C_Read... [01:25:06]Read from MH i2c: D1 01 00 F3 06 00 CA [01:25:06]Write to MH i2c: 01 00 00 F4 06 FA [01:25:06]Write i2c OK [01:25:06]MH_I2C_Read... [01:25:06]OFD Sender: No OFD packet to send [01:25:07]*** Cut start [01:25:07]*** Purtial cut [01:25:07]*** Stage 1: CUTSNS_PIN = 1 [01:25:09]Read from MH i2c: 01 [01:25:09]MH_I2C_Read... [01:25:09]*** Stop cut motor [01:25:09]*** Cut end [01:25:09]Read from MH i2c: 01 07 00 [01:25:09]MH_I2C_Read... [01:25:09]Read from MH i2c: 01 07 00 F4 06 00 00 00 00 00 FF 0F 0F [01:25:09]process_action close_receipt done [01:25:09]requested_data is exist [01:25:09]produce_requested_data [01:25:09]requested_item fm.sn is exist - process it [01:25:09]wFMCommunicate request_size=4 [01:25:09]MH_SAM_APDU [01:25:09]CAPDU: 80 11 00 00 [01:25:09]Write to MH i2c: E2 08 00 F5 06 80 11 00 00 00 00 00 00 75 [01:25:09]Write i2c OK [01:25:09]MH_I2C_Read... [01:25:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:25:09]Read from MH i2c: E2 [01:25:09]MH_I2C_Read... [01:25:09]Read from MH i2c: E2 17 00 [01:25:09]MH_I2C_Read... [01:25:09]Read from MH i2c: E2 17 00 F5 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 CC [01:25:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:25:09]wFMCommunicate OK [01:25:09]requested_item fd.num is exist - process it [01:25:09]SAM_PROTO_GetFieldsCounters [01:25:09]wFMCommunicate request_size=4 [01:25:09]MH_SAM_APDU [01:25:09]CAPDU: 80 13 00 00 [01:25:09]Write to MH i2c: E2 08 00 F6 06 80 13 00 00 00 00 00 00 78 [01:25:09]Write i2c OK [01:25:09]MH_I2C_Read... [01:25:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:25:09]Read from MH i2c: E2 [01:25:09]MH_I2C_Read... [01:25:09]Read from MH i2c: E2 62 00 [01:25:09]MH_I2C_Read... [01:25:09]Read from MH i2c: E2 62 00 F6 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 28 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [01:25:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 28 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:25:09]wFMCommunicate OK [01:25:09]SAM_PROTO_GetFieldsCounters done [01:25:09]requested_item shift.num is exist - process it [01:25:09]requested_item shift.opened is exist - process it [01:25:09]req_shift_opened [01:25:09]FM_GetShiftState [01:25:09]SAM_PROTO_GetShiftState [01:25:09]wFMCommunicate request_size=4 [01:25:09]MH_SAM_APDU [01:25:09]CAPDU: 80 13 01 00 [01:25:09]Write to MH i2c: E2 08 00 F7 06 80 13 01 00 00 00 00 00 7A [01:25:09]Write i2c OK [01:25:09]MH_I2C_Read... [01:25:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:25:09]Read from MH i2c: E2 [01:25:09]MH_I2C_Read... [01:25:09]Read from MH i2c: E2 0E 00 [01:25:09]MH_I2C_Read... [01:25:09]Read from MH i2c: E2 0E 00 F7 06 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 13 [01:25:09]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [01:25:09]wFMCommunicate OK [01:25:09]SAM_PROTO_GetShiftState done [01:25:09]FM_GetShiftState done [01:25:09]req_shift_opened done [01:25:09]requested_item shift.open_date is exist - process it [01:25:09]req_shift_open_date [01:25:09]req_shift_open_date done [01:25:09]produce_requested_data done [01:25:09]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92712,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278} [01:25:09]process_action_free close_receipt [01:25:09]json_value_free [01:25:09]json_value_free done [01:25:09]process_json_proto returns [01:25:09]Send response to host [01:25:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92712,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278}}} [01:25:09]free response buf [01:25:09]execute_script done [01:25:09]execute_script returns [01:25:09]free content buf [01:25:09]Sock 6.Close socket [01:25:09]Sock 6.Thread stoped [01:25:11]OFD Sender: No OFD packet to send [01:25:16]OFD Sender: No OFD packet to send [01:25:21]OFD Sender: No OFD packet to send [01:25:26]OFD Sender: No OFD packet to send [01:25:31]OFD Sender: No OFD packet to send [01:25:36]OFD Sender: No OFD packet to send [01:25:41]OFD Sender: No OFD packet to send [01:25:46]OFD Sender: No OFD packet to send [01:25:51]OFD Sender: No OFD packet to send [01:25:56]OFD Sender: No OFD packet to send [01:26:01]OFD Sender: No OFD packet to send [01:26:06]OFD Sender: No OFD packet to send [01:26:11]OFD Sender: No OFD packet to send [01:26:16]OFD Sender: No OFD packet to send [01:26:21]OFD Sender: No OFD packet to send [01:26:26]OFD Sender: No OFD packet to send [01:26:31]OFD Sender: No OFD packet to send [01:26:36]OFD Sender: No OFD packet to send [01:26:41]OFD Sender: No OFD packet to send [01:26:46]OFD Sender: No OFD packet to send [01:26:51]OFD Sender: No OFD packet to send [01:26:56]OFD Sender: No OFD packet to send [01:27:01]OFD Sender: No OFD packet to send [01:27:06]OFD Sender: No OFD packet to send [01:27:11]OFD Sender: No OFD packet to send [01:27:16]OFD Sender: No OFD packet to send [01:27:21]OFD Sender: No OFD packet to send [01:27:26]OFD Sender: No OFD packet to send [01:27:31]OFD Sender: No OFD packet to send [01:27:36]OFD Sender: No OFD packet to send [01:27:41]OFD Sender: No OFD packet to send [01:27:46]OFD Sender: No OFD packet to send [01:27:51]OFD Sender: No OFD packet to send [01:27:56]OFD Sender: No OFD packet to send [01:28:01]OFD Sender: No OFD packet to send [01:28:06]OFD Sender: No OFD packet to send [01:28:11]OFD Sender: No OFD packet to send [01:28:16]OFD Sender: No OFD packet to send [01:28:21]OFD Sender: No OFD packet to send [01:28:26]OFD Sender: No OFD packet to send [01:28:31]OFD Sender: No OFD packet to send [01:28:36]OFD Sender: No OFD packet to send [01:28:41]OFD Sender: No OFD packet to send [01:28:46]OFD Sender: No OFD packet to send [01:28:51]OFD Sender: No OFD packet to send [01:28:56]OFD Sender: No OFD packet to send [01:29:01]OFD Sender: No OFD packet to send [01:29:06]OFD Sender: No OFD packet to send [01:29:12]OFD Sender: No OFD packet to send [01:29:17]OFD Sender: No OFD packet to send [01:29:22]OFD Sender: No OFD packet to send [01:29:27]OFD Sender: No OFD packet to send [01:29:32]OFD Sender: No OFD packet to send [01:29:37]OFD Sender: No OFD packet to send [01:29:42]OFD Sender: No OFD packet to send [01:29:47]OFD Sender: No OFD packet to send [01:29:52]OFD Sender: No OFD packet to send [01:29:57]OFD Sender: No OFD packet to send [01:30:02]OFD Sender: No OFD packet to send [01:30:07]OFD Sender: No OFD packet to send [01:30:12]OFD Sender: No OFD packet to send [01:30:17]OFD Sender: No OFD packet to send [01:30:22]OFD Sender: No OFD packet to send [01:30:27]OFD Sender: No OFD packet to send [01:30:32]OFD Sender: No OFD packet to send [01:30:37]OFD Sender: No OFD packet to send [01:30:42]OFD Sender: No OFD packet to send [01:30:47]OFD Sender: No OFD packet to send [01:30:52]OFD Sender: No OFD packet to send [01:30:57]OFD Sender: No OFD packet to send [01:31:02]OFD Sender: No OFD packet to send [01:31:07]OFD Sender: No OFD packet to send [01:31:12]OFD Sender: No OFD packet to send [01:31:17]OFD Sender: No OFD packet to send [01:31:22]OFD Sender: No OFD packet to send [01:31:27]OFD Sender: No OFD packet to send [01:31:32]OFD Sender: No OFD packet to send [01:31:37]OFD Sender: No OFD packet to send [01:31:42]OFD Sender: No OFD packet to send [01:31:47]OFD Sender: No OFD packet to send [01:31:52]OFD Sender: No OFD packet to send [01:31:57]OFD Sender: No OFD packet to send [01:32:02]OFD Sender: No OFD packet to send [01:32:07]OFD Sender: No OFD packet to send [01:32:12]OFD Sender: No OFD packet to send [01:32:17]OFD Sender: No OFD packet to send [01:32:22]OFD Sender: No OFD packet to send [01:32:27]OFD Sender: No OFD packet to send [01:32:32]OFD Sender: No OFD packet to send [01:32:37]OFD Sender: No OFD packet to send [01:32:42]OFD Sender: No OFD packet to send [01:32:47]OFD Sender: No OFD packet to send [01:32:52]OFD Sender: No OFD packet to send [01:32:57]OFD Sender: No OFD packet to send [01:33:02]OFD Sender: No OFD packet to send [01:33:07]OFD Sender: No OFD packet to send [01:33:12]OFD Sender: No OFD packet to send [01:33:17]OFD Sender: No OFD packet to send [01:33:22]OFD Sender: No OFD packet to send [01:33:27]OFD Sender: No OFD packet to send [01:33:32]OFD Sender: No OFD packet to send [01:33:37]OFD Sender: No OFD packet to send [01:33:42]OFD Sender: No OFD packet to send [01:33:47]OFD Sender: No OFD packet to send [01:33:52]OFD Sender: No OFD packet to send [01:33:57]OFD Sender: No OFD packet to send [01:34:02]OFD Sender: No OFD packet to send [01:34:07]OFD Sender: No OFD packet to send [01:34:12]OFD Sender: No OFD packet to send [01:34:17]OFD Sender: No OFD packet to send [01:34:22]OFD Sender: No OFD packet to send [01:34:27]OFD Sender: No OFD packet to send [01:34:32]OFD Sender: No OFD packet to send [01:34:37]OFD Sender: No OFD packet to send [01:34:42]OFD Sender: No OFD packet to send [01:34:47]OFD Sender: No OFD packet to send [01:34:52]OFD Sender: No OFD packet to send [01:34:57]OFD Sender: No OFD packet to send [01:35:02]OFD Sender: No OFD packet to send [01:35:07]OFD Sender: No OFD packet to send [01:35:12]OFD Sender: No OFD packet to send [01:35:17]OFD Sender: No OFD packet to send [01:35:22]OFD Sender: No OFD packet to send [01:35:27]OFD Sender: No OFD packet to send [01:35:32]OFD Sender: No OFD packet to send [01:35:37]OFD Sender: No OFD packet to send [01:35:42]OFD Sender: No OFD packet to send [01:35:47]OFD Sender: No OFD packet to send [01:35:52]OFD Sender: No OFD packet to send [01:35:57]OFD Sender: No OFD packet to send [01:36:02]OFD Sender: No OFD packet to send [01:36:07]OFD Sender: No OFD packet to send [01:36:12]OFD Sender: No OFD packet to send [01:36:17]OFD Sender: No OFD packet to send [01:36:22]OFD Sender: No OFD packet to send [01:36:27]OFD Sender: No OFD packet to send [01:36:32]OFD Sender: No OFD packet to send [01:36:37]OFD Sender: No OFD packet to send [01:36:42]OFD Sender: No OFD packet to send [01:36:47]OFD Sender: No OFD packet to send [01:36:52]OFD Sender: No OFD packet to send [01:36:57]OFD Sender: No OFD packet to send [01:37:02]OFD Sender: No OFD packet to send [01:37:07]OFD Sender: No OFD packet to send [01:37:12]OFD Sender: No OFD packet to send [01:37:17]OFD Sender: No OFD packet to send [01:37:22]OFD Sender: No OFD packet to send [01:37:27]OFD Sender: No OFD packet to send [01:37:32]OFD Sender: No OFD packet to send [01:37:37]OFD Sender: No OFD packet to send [01:37:42]OFD Sender: No OFD packet to send [01:37:47]OFD Sender: No OFD packet to send [01:37:52]OFD Sender: No OFD packet to send [01:37:57]OFD Sender: No OFD packet to send [01:38:02]OFD Sender: No OFD packet to send [01:38:07]OFD Sender: No OFD packet to send [01:38:12]OFD Sender: No OFD packet to send [01:38:17]OFD Sender: No OFD packet to send [01:38:22]OFD Sender: No OFD packet to send [01:38:27]OFD Sender: No OFD packet to send [01:38:32]OFD Sender: No OFD packet to send [01:38:37]OFD Sender: No OFD packet to send [01:38:42]OFD Sender: No OFD packet to send [01:38:47]OFD Sender: No OFD packet to send [01:38:52]OFD Sender: No OFD packet to send [01:38:57]OFD Sender: No OFD packet to send [01:39:02]OFD Sender: No OFD packet to send [01:39:07]OFD Sender: No OFD packet to send [01:39:12]OFD Sender: No OFD packet to send [01:39:17]OFD Sender: No OFD packet to send [01:39:22]OFD Sender: No OFD packet to send [01:39:27]OFD Sender: No OFD packet to send [01:39:32]OFD Sender: No OFD packet to send [01:39:37]OFD Sender: No OFD packet to send [01:39:42]OFD Sender: No OFD packet to send [01:39:47]OFD Sender: No OFD packet to send [01:39:52]OFD Sender: No OFD packet to send [01:39:57]OFD Sender: No OFD packet to send [01:40:02]OFD Sender: No OFD packet to send [01:40:07]OFD Sender: No OFD packet to send [01:40:12]OFD Sender: No OFD packet to send [01:40:17]OFD Sender: No OFD packet to send [01:40:22]OFD Sender: No OFD packet to send [01:40:27]OFD Sender: No OFD packet to send [01:40:32]OFD Sender: No OFD packet to send [01:40:37]OFD Sender: No OFD packet to send [01:40:42]OFD Sender: No OFD packet to send [01:40:47]OFD Sender: No OFD packet to send [01:40:52]OFD Sender: No OFD packet to send [01:40:57]OFD Sender: No OFD packet to send [01:41:02]OFD Sender: No OFD packet to send [01:41:07]OFD Sender: No OFD packet to send [01:41:12]OFD Sender: No OFD packet to send [01:41:17]OFD Sender: No OFD packet to send [01:41:22]OFD Sender: No OFD packet to send [01:41:26]*** FLAG_PRN_PAP1 set [01:41:26]*** FLAG_PRN_PAP2 set [01:41:27]OFD Sender: No OFD packet to send [01:41:29]*** FLAG_PRN_PAP1 reset [01:41:29]*** FLAG_PRN_PAP2 reset [01:41:32]*** FLAG_PRN_PAP1 set [01:41:32]*** FLAG_PRN_PAP2 set [01:41:32]OFD Sender: No OFD packet to send [01:41:33]*** FLAG_PRN_PAP2 reset [01:41:33]*** FLAG_PRN_PAP1 reset [01:41:35]*** FLAG_PRN_PAP1 set [01:41:36]*** FLAG_PRN_PAP2 set [01:41:37]OFD Sender: No OFD packet to send [01:41:38]*** FLAG_PRN_PAP2 reset [01:41:38]*** FLAG_PRN_PAP1 reset [01:41:42]OFD Sender: No OFD packet to send [01:41:47]OFD Sender: No OFD packet to send [01:41:52]OFD Sender: No OFD packet to send [01:41:57]OFD Sender: No OFD packet to send [01:42:02]OFD Sender: No OFD packet to send [01:42:07]OFD Sender: No OFD packet to send [01:42:12]OFD Sender: No OFD packet to send [01:42:17]OFD Sender: No OFD packet to send [01:42:22]OFD Sender: No OFD packet to send [01:42:27]OFD Sender: No OFD packet to send [01:42:28]accept exits with 7 [01:42:28]New connection [01:42:28]New thread 3066752356 created [01:42:28]Thread 3066608996 joined [01:42:28]Waiting for new connection... [01:42:28] Sock 7.Parse request [01:42:28]Sock 7.Check first char [01:42:28]Sock 7.First char is OK [01:42:28]request: POST /json_proto HTTP/1.0 [01:42:28]Method: POST [01:42:28]URL: /json_proto [01:42:28]Method is POST - this is cgi request [01:42:28]url: /json_proto [01:42:28]query_string will be loaded in cgi processing [01:42:28]execute_cgi json_proto POST (null) [01:42:28]execute_cgi path=json_proto method=POST [01:42:28]POST find Content-Length [01:42:28]Host: 172.17.57.71:8080 [01:42:28]Content-Length: 1087 [01:42:28]Content-Type: application/json [01:42:28] [01:42:28]POST finish read [01:42:28]Found Content-Length = 1087 [01:42:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127597", "tax_sys" : 0, "items" : [ { "code": "50173822", "name": "\u0420/\u0436 Orbit \u0431/\u0441\u0430\u0445 \u043C\u044F\u0442\u0430 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8710732217097", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 112.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:42:28]execute_script... [01:42:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127597", "tax_sys" : 0, "items" : [ { "code": "50173822", "name": "\u0420/\u0436 Orbit \u0431/\u0441\u0430\u0445 \u043C\u044F\u0442\u0430 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8710732217097", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 112.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:42:28]POST & json_proto [01:42:28]process_json_proto [01:42:28]json parsed OK: [01:42:28]protocol is kg_v1.0 [01:42:28]action value=close_receipt [01:42:28]process_action close_receipt [01:42:28]cmd_close_receipt [01:42:28]MH_GetDate [01:42:28]Write to MH i2c: F0 00 00 F8 06 ED [01:42:28]Write i2c OK [01:42:28]MH_I2C_Read... [01:42:28]Read from MH i2c: F0 [01:42:28]MH_I2C_Read... [01:42:28]Read from MH i2c: F0 09 00 [01:42:28]MH_I2C_Read... [01:42:28]Read from MH i2c: F0 09 00 F8 06 00 05 8D E7 66 33 3A A4 66 4C [01:42:28]GetLastDocTimeStamp 1726449904 [01:42:28]current date 1726450949 [01:42:28]FM_GetShiftState [01:42:28]SAM_PROTO_GetShiftState [01:42:28]wFMCommunicate request_size=4 [01:42:28]MH_SAM_APDU [01:42:28]CAPDU: 80 13 01 00 [01:42:28]Write to MH i2c: E2 08 00 F9 06 80 13 01 00 00 00 00 00 7C [01:42:28]Write i2c OK [01:42:28]MH_I2C_Read... [01:42:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:42:28]Read from MH i2c: E2 [01:42:28]MH_I2C_Read... [01:42:28]Read from MH i2c: E2 0E 00 [01:42:28]MH_I2C_Read... [01:42:28]Read from MH i2c: E2 0E 00 F9 06 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 15 [01:42:28]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [01:42:28]wFMCommunicate OK [01:42:28]SAM_PROTO_GetShiftState done [01:42:28]FM_GetShiftState done [01:42:28]opened in 1726446278 [01:42:28]opened+sec_in_day 1726532678 [01:42:28]quantity*price = 4500 [01:42:28]sum+1 = 4501 [01:42:28]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 8710732217097 Зажигалка Cricket ПН пьезо 1.000 * 67.00 = 67.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 112.00 НСП 1% : 0.99 НДС 12% : 11.89 Наличными: 0.00 Безнал.: 112.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 16 16.09.2024 01:42 Смена: 508 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92713 ФПД: 106229910579548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T014229&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92713&fm=106229910579548&tin=02508201610067®Number=0000000000091423&sum=11200 0 [01:42:29]StoreToDocumentArchive [01:42:29]shift 508 fd 92713 [01:42:29]save to /storage/0508/doc_00092713 [01:42:29]save last doc name /storage/0508/doc_00092713 to /storage/kkm_last_doc_name [01:42:29]save OK [01:42:29]Clear old archive folders... [01:42:29]ProcessDocumentItem done err = 0, tmpTLVsize=388 [01:42:29]tlvbuf is 01771E10 [01:42:29]SAM_PROTO_ClearQueue [01:42:29]wFMCommunicate request_size=4 [01:42:29]MH_SAM_APDU [01:42:29]CAPDU: 80 09 00 00 [01:42:29]Write to MH i2c: E2 08 00 06 07 80 09 00 00 00 00 00 00 7F [01:42:29]Write i2c OK [01:42:29]MH_I2C_Read... [01:42:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:42:29]Read from MH i2c: E2 [01:42:29]MH_I2C_Read... [01:42:29]Read from MH i2c: E2 03 00 [01:42:29]MH_I2C_Read... [01:42:29]Read from MH i2c: E2 03 00 06 07 00 90 00 81 [01:42:29]RAPDU: 90 00 [01:42:29]wFMCommunicate OK [01:42:29]SAM_PROTO_ClearQueue done [01:42:29]KKMCreateOFDPacket [01:42:29]OFDProtocolAddRootSTLVToBuf [01:42:29]FM_MakeSignedData [01:42:29]FM_MakeSignedData [01:42:29]SAM_PROTO_SignData [01:42:29]wFMCommunicate request_size=4 [01:42:29]MH_SAM_APDU [01:42:29]CAPDU: 80 0D 01 02 [01:42:29]Write to MH i2c: E2 08 00 07 07 80 0D 01 02 00 00 00 00 87 [01:42:29]Write i2c OK [01:42:29]MH_I2C_Read... [01:42:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:42:29]Read from MH i2c: E2 [01:42:29]MH_I2C_Read... [01:42:29]Read from MH i2c: E2 03 00 [01:42:29]MH_I2C_Read... [01:42:29]Read from MH i2c: E2 03 00 07 07 00 90 00 82 [01:42:29]RAPDU: 90 00 [01:42:29]wFMCommunicate OK [01:42:29]wFMCommunicate request_size=255 [01:42:29]MH_SAM_APDU [01:42:29]CAPDU: 80 0D 02 02 FA 03 00 84 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 [01:42:29]Write to MH i2c: E2 02 01 08 07 80 0D 02 02 FA 00 03 00 84 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 00 00 A3 [01:42:29]Write i2c OK [01:42:29]MH_I2C_Read... [01:42:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:42:30]Read from MH i2c: E2 [01:42:30]MH_I2C_Read... [01:42:30]Read from MH i2c: E2 03 00 [01:42:30]MH_I2C_Read... [01:42:30]Read from MH i2c: E2 03 00 08 07 00 90 00 83 [01:42:30]RAPDU: 90 00 [01:42:30]wFMCommunicate OK [01:42:30]wFMCommunicate request_size=147 [01:42:30]MH_SAM_APDU [01:42:30]CAPDU: 80 0D 02 02 8E F7 03 06 00 63 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 2B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 05 8D E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 29 6A 01 00 35 04 06 00 60 9D 94 15 A9 5C [01:42:30]Write to MH i2c: E2 96 00 09 07 80 0D 02 02 8E 00 F7 03 06 00 63 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 2B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 05 8D E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 29 6A 01 00 35 04 06 00 60 9D 94 15 A9 5C 00 00 F3 [01:42:30]Write i2c OK [01:42:30]MH_I2C_Read... [01:42:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:42:30]Read from MH i2c: E2 [01:42:30]MH_I2C_Read... [01:42:30]Read from MH i2c: E2 03 00 [01:42:30]MH_I2C_Read... [01:42:30]Read from MH i2c: E2 03 00 09 07 00 90 00 84 [01:42:30]RAPDU: 90 00 [01:42:30]wFMCommunicate OK [01:42:30]wFMCommunicate request_size=4 [01:42:30]MH_SAM_APDU [01:42:30]CAPDU: 80 0D 03 02 [01:42:30]Write to MH i2c: E2 08 00 0A 07 80 0D 03 02 00 00 00 00 8C [01:42:30]Write i2c OK [01:42:30]MH_I2C_Read... [01:42:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:42:30]Read from MH i2c: E2 [01:42:30]MH_I2C_Read... [01:42:30]Read from MH i2c: E2 0B 00 [01:42:30]MH_I2C_Read... [01:42:30]Read from MH i2c: E2 0B 00 0A 07 00 C1 C4 67 DC 6F E5 B1 C0 90 00 1A [01:42:30]RAPDU: C1 C4 67 DC 6F E5 B1 C0 90 00 [01:42:30]wFMCommunicate OK [01:42:30]SAM_PROTO_SignData done [01:42:30]FM_MakeSignedData done [01:42:30]CreateOFDProtocolMessage [01:42:30]wFMCommunicate request_size=4 [01:42:30]MH_SAM_APDU [01:42:30]CAPDU: 80 11 00 00 [01:42:30]Write to MH i2c: E2 08 00 0B 07 80 11 00 00 00 00 00 00 8C [01:42:30]Write i2c OK [01:42:30]MH_I2C_Read... [01:42:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:42:30]Read from MH i2c: E2 [01:42:30]MH_I2C_Read... [01:42:30]Read from MH i2c: E2 17 00 [01:42:30]MH_I2C_Read... [01:42:30]Read from MH i2c: E2 17 00 0B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E3 [01:42:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:42:30]wFMCommunicate OK [01:42:30]CreateOFDProtocolMessage done [01:42:30]OFDSenderStorePacket 92713 [01:42:30]StoreOFDPacket docnum=92713 [01:42:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 98 01 00 00 9D 90 90 01 29 91 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 2B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 05 8D E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 29 6A 01 00 35 04 06 00 60 9D 94 15 A9 5C C1 C4 67 DC 6F E5 B1 C0 [01:42:30]CheckFolder [01:42:30]dirname=/storage/ofd_packets [01:42:30]CheckFolder done [01:42:30]ProducePacketName [01:42:30]name=ofd_packets/00092713 [01:42:30]NVStorageSaveData ofd_packets/00092713 [01:42:30]File name is /storage/ofd_packets/00092713 [01:42:30]Write 438 bytes [01:42:30]NVStorageSaveData done [01:42:30]OFDSenderStorePacket done [01:42:30]KKMCreateOFDPacket done [01:42:30]NVStorageSaveData kkm_last_timestamp [01:42:30]File name is /storage/kkm_last_timestamp [01:42:30]Write 4 bytes [01:42:30]NVStorageSaveData done [01:42:30]ExternCall_PrintAddStr [01:42:30]wPrintStart [01:42:30]Write to MH i2c: 01 00 00 0C 07 13 [01:42:30]OFD Sender: Processing packet 92713 [packets to send 63, broken 62] [01:42:30]ProducePacketName [01:42:30]name=ofd_packets/00092713 [01:42:30]OFD Sender: To server: pG, [01:42:30]CommunicateWithHost lk.salyk.kg:30040 [01:42:30]Write i2c OK [01:42:30]ConnectInit lk.salyk.kg [01:42:30]MH_I2C_Read... [01:42:30]Read from MH i2c: 01 [01:42:30]MH_I2C_Read... [01:42:30]Read from MH i2c: 01 07 00 [01:42:30]MH_I2C_Read... [01:42:30]Read from MH i2c: 01 07 00 0C 07 00 00 00 00 00 FF 0F 28 [01:42:30]RasterBufferAndPrint [01:42:30]line Счет N : (3)127597 [01:42:30]line ИНН: 02508201610067 [01:42:30]line Контрольно-Кассовый Чек [01:42:30]line ПРОДАЖА [01:42:30]line Товар: 50173822 [01:42:30]line Р/ж Orbit б/сах мята 13,6г [01:42:30]line 1.000 * 45.00 [01:42:30]line = 45.00 [01:42:30]line НДС 12% НСП 1% [01:42:30]line > о реализуемом товаре [01:42:30]line Товар: 8710732217097 [01:42:30]line Зажигалка Cricket ПН пьезо [01:42:30]line 1.000 * 67.00 [01:42:30]line = 67.00 [01:42:30]line НДС 12% НСП 1% [01:42:30]line > о реализуемом товаре [01:42:30]line ИТОГО: 112.00 [01:42:30]line НСП 1% : 0.99 [01:42:30]line НДС 12% : 11.89 [01:42:30]line Наличными: 0.00 [01:42:30]line Безнал.: 112.00 [01:42:30]line Место: АЗС № 5 "Партнер Нефть" [01:42:30]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [01:42:30]line СНО: Общий режим [01:42:30]line Чек 16 16.09.2024 01:42 [01:42:30]line Смена: 508 ФФД: 1.0 [01:42:30]line ЗНМ: 03000000022 [01:42:30]line РНМ: 0000000000091423 [01:42:30]line Версия ККМ: 001 [01:42:30]line Платежная система: Бакай Банк [01:42:30]line ФМ: 0000000000874692 [01:42:30]line ФД: 92713 [01:42:30]line ФПД: 106229910579548 [01:42:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T014229&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92713&fm=106229910579548&tin=02508201610067®Number=0000000000091423&sum=11200 [01:42:30]line 0 [01:42:30]written 0, free lines is 4095 [01:42:30]Connected sock=8 [01:42:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 98 01 00 00 9D 90 90 01 29 91 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 2B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 05 8D E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 29 6A 01 00 35 04 06 00 60 9D 94 15 A9 5C C1 C4 67 DC 6F E5 B1 C0 [01:42:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 1A 5E 47 00 FC E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 29 6A 01 00 F4 03 04 00 7B 35 E7 66 B6 04 01 00 00 EF 30 99 7F 6E 87 BF A2 [01:42:30]CommunicateWithHost err = 0 [01:42:30]CheckOFDResponse [01:42:30]1017 (14) - 77093643461234 [01:42:30]1041 (16) - 0000000000874692 [01:42:30]1040 (4) - 92713 [01:42:30]1012 (4) - 15.09.2024 19:28 [01:42:30]1206 (1) - 0 [01:42:30]OFD Sender: Remove packet 92713 [01:42:30]ProducePacketName [01:42:30]name=ofd_packets/00092713 [01:42:30]NVStorageDeleteData [01:42:31]Write to MH i2c: 01 00 00 3C 07 43 [01:42:31]Write i2c OK [01:42:31]MH_I2C_Read... [01:42:31]Read from MH i2c: 01 [01:42:31]MH_I2C_Read... [01:42:31]Read from MH i2c: 01 07 00 [01:42:31]MH_I2C_Read... [01:42:31]Read from MH i2c: 01 07 00 3C 07 00 00 00 00 00 BD 0C 13 [01:42:31]RasterBufferAndPrint [01:42:31]line [01:42:31]line [01:42:31]line [01:42:31]line [01:42:31]line [01:42:31]written 0, free lines is 3269 [01:42:31]MH_Cut [01:42:31]Write to MH i2c: D1 01 00 43 07 01 1C [01:42:31]Write i2c OK [01:42:31]MH_I2C_Read... [01:42:31]Read from MH i2c: D1 [01:42:31]MH_I2C_Read... [01:42:31]Read from MH i2c: D1 01 00 [01:42:31]MH_I2C_Read... [01:42:31]Read from MH i2c: D1 01 00 43 07 00 1B [01:42:31]Write to MH i2c: 01 00 00 44 07 4B [01:42:31]Write i2c OK [01:42:31]MH_I2C_Read... [01:42:31]OFD Sender: No OFD packet to send [01:42:31]*** Cut start [01:42:31]*** Purtial cut [01:42:31]*** Stage 1: CUTSNS_PIN = 1 [01:42:33]Read from MH i2c: 01 [01:42:33]MH_I2C_Read... [01:42:33]*** Stop cut motor [01:42:33]*** Cut end [01:42:33]Read from MH i2c: 01 07 00 [01:42:33]MH_I2C_Read... [01:42:33]Read from MH i2c: 01 07 00 44 07 00 00 00 00 00 FF 0F 60 [01:42:33]process_action close_receipt done [01:42:33]requested_data is exist [01:42:33]produce_requested_data [01:42:33]requested_item fm.sn is exist - process it [01:42:33]wFMCommunicate request_size=4 [01:42:33]MH_SAM_APDU [01:42:33]CAPDU: 80 11 00 00 [01:42:33]Write to MH i2c: E2 08 00 45 07 80 11 00 00 00 00 00 00 C6 [01:42:33]Write i2c OK [01:42:33]MH_I2C_Read... [01:42:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:42:33]Read from MH i2c: E2 [01:42:33]MH_I2C_Read... [01:42:33]Read from MH i2c: E2 17 00 [01:42:33]MH_I2C_Read... [01:42:33]Read from MH i2c: E2 17 00 45 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 1D [01:42:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:42:33]wFMCommunicate OK [01:42:33]requested_item fd.num is exist - process it [01:42:33]SAM_PROTO_GetFieldsCounters [01:42:33]wFMCommunicate request_size=4 [01:42:33]MH_SAM_APDU [01:42:33]CAPDU: 80 13 00 00 [01:42:33]Write to MH i2c: E2 08 00 46 07 80 13 00 00 00 00 00 00 C9 [01:42:33]Write i2c OK [01:42:33]MH_I2C_Read... [01:42:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:42:34]Read from MH i2c: E2 [01:42:34]MH_I2C_Read... [01:42:34]Read from MH i2c: E2 62 00 [01:42:34]MH_I2C_Read... [01:42:34]Read from MH i2c: E2 62 00 46 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 29 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [01:42:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 29 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:42:34]wFMCommunicate OK [01:42:34]SAM_PROTO_GetFieldsCounters done [01:42:34]requested_item shift.num is exist - process it [01:42:34]requested_item shift.opened is exist - process it [01:42:34]req_shift_opened [01:42:34]FM_GetShiftState [01:42:34]SAM_PROTO_GetShiftState [01:42:34]wFMCommunicate request_size=4 [01:42:34]MH_SAM_APDU [01:42:34]CAPDU: 80 13 01 00 [01:42:34]Write to MH i2c: E2 08 00 47 07 80 13 01 00 00 00 00 00 CB [01:42:34]Write i2c OK [01:42:34]MH_I2C_Read... [01:42:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:42:34]Read from MH i2c: E2 [01:42:34]MH_I2C_Read... [01:42:34]Read from MH i2c: E2 0E 00 [01:42:34]MH_I2C_Read... [01:42:34]Read from MH i2c: E2 0E 00 47 07 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 64 [01:42:34]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [01:42:34]wFMCommunicate OK [01:42:34]SAM_PROTO_GetShiftState done [01:42:34]FM_GetShiftState done [01:42:34]req_shift_opened done [01:42:34]requested_item shift.open_date is exist - process it [01:42:34]req_shift_open_date [01:42:34]req_shift_open_date done [01:42:34]produce_requested_data done [01:42:34]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92713,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278} [01:42:34]process_action_free close_receipt [01:42:34]json_value_free [01:42:34]json_value_free done [01:42:34]process_json_proto returns [01:42:34]Send response to host [01:42:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92713,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278}}} [01:42:34]free response buf [01:42:34]execute_script done [01:42:34]execute_script returns [01:42:34]free content buf [01:42:34]Sock 7.Close socket [01:42:34]Sock 7.Thread stoped [01:42:36]OFD Sender: No OFD packet to send [01:42:41]OFD Sender: No OFD packet to send [01:42:46]OFD Sender: No OFD packet to send [01:42:51]OFD Sender: No OFD packet to send [01:42:56]OFD Sender: No OFD packet to send [01:43:01]OFD Sender: No OFD packet to send [01:43:06]OFD Sender: No OFD packet to send [01:43:11]OFD Sender: No OFD packet to send [01:43:16]OFD Sender: No OFD packet to send [01:43:21]OFD Sender: No OFD packet to send [01:43:26]OFD Sender: No OFD packet to send [01:43:31]OFD Sender: No OFD packet to send [01:43:36]OFD Sender: No OFD packet to send [01:43:41]OFD Sender: No OFD packet to send [01:43:46]OFD Sender: No OFD packet to send [01:43:51]OFD Sender: No OFD packet to send [01:43:56]OFD Sender: No OFD packet to send [01:44:01]OFD Sender: No OFD packet to send [01:44:06]OFD Sender: No OFD packet to send [01:44:11]OFD Sender: No OFD packet to send [01:44:16]OFD Sender: No OFD packet to send [01:44:21]OFD Sender: No OFD packet to send [01:44:26]OFD Sender: No OFD packet to send [01:44:31]OFD Sender: No OFD packet to send [01:44:36]OFD Sender: No OFD packet to send [01:44:41]OFD Sender: No OFD packet to send [01:44:46]OFD Sender: No OFD packet to send [01:44:51]OFD Sender: No OFD packet to send [01:44:56]OFD Sender: No OFD packet to send [01:45:01]OFD Sender: No OFD packet to send [01:45:06]OFD Sender: No OFD packet to send [01:45:11]OFD Sender: No OFD packet to send [01:45:16]OFD Sender: No OFD packet to send [01:45:21]OFD Sender: No OFD packet to send [01:45:26]OFD Sender: No OFD packet to send [01:45:31]OFD Sender: No OFD packet to send [01:45:36]OFD Sender: No OFD packet to send [01:45:41]OFD Sender: No OFD packet to send [01:45:46]OFD Sender: No OFD packet to send [01:45:51]OFD Sender: No OFD packet to send [01:45:56]OFD Sender: No OFD packet to send [01:46:01]OFD Sender: No OFD packet to send [01:46:06]OFD Sender: No OFD packet to send [01:46:11]OFD Sender: No OFD packet to send [01:46:16]OFD Sender: No OFD packet to send [01:46:21]OFD Sender: No OFD packet to send [01:46:26]OFD Sender: No OFD packet to send [01:46:31]OFD Sender: No OFD packet to send [01:46:36]OFD Sender: No OFD packet to send [01:46:41]OFD Sender: No OFD packet to send [01:46:46]OFD Sender: No OFD packet to send [01:46:51]OFD Sender: No OFD packet to send [01:46:56]OFD Sender: No OFD packet to send [01:47:01]OFD Sender: No OFD packet to send [01:47:06]OFD Sender: No OFD packet to send [01:47:11]OFD Sender: No OFD packet to send [01:47:16]OFD Sender: No OFD packet to send [01:47:21]OFD Sender: No OFD packet to send [01:47:26]OFD Sender: No OFD packet to send [01:47:31]OFD Sender: No OFD packet to send [01:47:36]OFD Sender: No OFD packet to send [01:47:41]OFD Sender: No OFD packet to send [01:47:46]OFD Sender: No OFD packet to send [01:47:51]OFD Sender: No OFD packet to send [01:47:56]OFD Sender: No OFD packet to send [01:48:01]OFD Sender: No OFD packet to send [01:48:06]OFD Sender: No OFD packet to send [01:48:11]OFD Sender: No OFD packet to send [01:48:16]OFD Sender: No OFD packet to send [01:48:21]OFD Sender: No OFD packet to send [01:48:26]OFD Sender: No OFD packet to send [01:48:31]OFD Sender: No OFD packet to send [01:48:36]OFD Sender: No OFD packet to send [01:48:41]OFD Sender: No OFD packet to send [01:48:46]OFD Sender: No OFD packet to send [01:48:51]OFD Sender: No OFD packet to send [01:48:56]OFD Sender: No OFD packet to send [01:49:01]OFD Sender: No OFD packet to send [01:49:06]OFD Sender: No OFD packet to send [01:49:11]OFD Sender: No OFD packet to send [01:49:16]OFD Sender: No OFD packet to send [01:49:21]OFD Sender: No OFD packet to send [01:49:26]OFD Sender: No OFD packet to send [01:49:31]OFD Sender: No OFD packet to send [01:49:36]OFD Sender: No OFD packet to send [01:49:41]OFD Sender: No OFD packet to send [01:49:46]OFD Sender: No OFD packet to send [01:49:51]OFD Sender: No OFD packet to send [01:49:56]OFD Sender: No OFD packet to send [01:50:01]OFD Sender: No OFD packet to send [01:50:06]OFD Sender: No OFD packet to send [01:50:11]OFD Sender: No OFD packet to send [01:50:16]OFD Sender: No OFD packet to send [01:50:21]OFD Sender: No OFD packet to send [01:50:26]OFD Sender: No OFD packet to send [01:50:31]OFD Sender: No OFD packet to send [01:50:36]OFD Sender: No OFD packet to send [01:50:41]OFD Sender: No OFD packet to send [01:50:46]OFD Sender: No OFD packet to send [01:50:51]OFD Sender: No OFD packet to send [01:50:56]OFD Sender: No OFD packet to send [01:51:01]OFD Sender: No OFD packet to send [01:51:06]OFD Sender: No OFD packet to send [01:51:11]OFD Sender: No OFD packet to send [01:51:16]OFD Sender: No OFD packet to send [01:51:21]OFD Sender: No OFD packet to send [01:51:26]OFD Sender: No OFD packet to send [01:51:31]OFD Sender: No OFD packet to send [01:51:36]OFD Sender: No OFD packet to send [01:51:41]OFD Sender: No OFD packet to send [01:51:46]OFD Sender: No OFD packet to send [01:51:50]accept exits with 6 [01:51:50]New connection [01:51:50]New thread 3066608996 created [01:51:50]Thread 3066752356 joined [01:51:50]Waiting for new connection... [01:51:50] Sock 6.Parse request [01:51:50]Sock 6.Check first char [01:51:50]Sock 6.First char is OK [01:51:50]request: POST /json_proto HTTP/1.0 [01:51:50]Method: POST [01:51:50]URL: /json_proto [01:51:50]Method is POST - this is cgi request [01:51:50]url: /json_proto [01:51:50]query_string will be loaded in cgi processing [01:51:50]execute_cgi json_proto POST (null) [01:51:50]execute_cgi path=json_proto method=POST [01:51:50]POST find Content-Length [01:51:50]Host: 172.17.57.71:8080 [01:51:50]Content-Length: 988 [01:51:50]Content-Type: application/json [01:51:50] [01:51:50]POST finish read [01:51:50]Found Content-Length = 988 [01:51:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127598", "tax_sys" : 0, "items" : [ { "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46116482", "name": "\u0416\u0435\u0432 Orbit \u044F\u0433\u043E\u0434\u043D\u044B\u0439 \u043C\u0438\u043A\u0441", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:51:50]execute_script... [01:51:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127598", "tax_sys" : 0, "items" : [ { "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46116482", "name": "\u0416\u0435\u0432 Orbit \u044F\u0433\u043E\u0434\u043D\u044B\u0439 \u043C\u0438\u043A\u0441", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:51:50]POST & json_proto [01:51:50]process_json_proto [01:51:50]json parsed OK: [01:51:50]protocol is kg_v1.0 [01:51:50]action value=close_receipt [01:51:50]process_action close_receipt [01:51:50]cmd_close_receipt [01:51:50]MH_GetDate [01:51:50]Write to MH i2c: F0 00 00 48 07 3E [01:51:50]Write i2c OK [01:51:50]MH_I2C_Read... [01:51:50]Read from MH i2c: F0 [01:51:50]MH_I2C_Read... [01:51:50]Read from MH i2c: F0 09 00 [01:51:50]MH_I2C_Read... [01:51:50]Read from MH i2c: F0 09 00 48 07 00 37 8F E7 66 33 3A A4 66 D1 [01:51:50]GetLastDocTimeStamp 1726450949 [01:51:50]current date 1726451511 [01:51:50]FM_GetShiftState [01:51:50]SAM_PROTO_GetShiftState [01:51:50]wFMCommunicate request_size=4 [01:51:50]MH_SAM_APDU [01:51:50]CAPDU: 80 13 01 00 [01:51:50]Write to MH i2c: E2 08 00 49 07 80 13 01 00 00 00 00 00 CD [01:51:50]Write i2c OK [01:51:50]MH_I2C_Read... [01:51:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:51:50]Read from MH i2c: E2 [01:51:50]MH_I2C_Read... [01:51:50]Read from MH i2c: E2 0E 00 [01:51:50]MH_I2C_Read... [01:51:50]Read from MH i2c: E2 0E 00 49 07 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 66 [01:51:50]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [01:51:50]wFMCommunicate OK [01:51:50]SAM_PROTO_GetShiftState done [01:51:50]FM_GetShiftState done [01:51:50]opened in 1726446278 [01:51:50]opened+sec_in_day 1726532678 [01:51:50]quantity*price = 6000 [01:51:50]sum+1 = 6001 [01:51:50]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46116482 Жев Orbit ягодный микс 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 17 16.09.2024 01:51 Смена: 508 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92714 ФПД: 64697006996506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T015151&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92714&fm=64697006996506&tin=02508201610067®Number=0000000000091423&sum=10500 0 [01:51:51]StoreToDocumentArchive [01:51:51]shift 508 fd 92714 [01:51:51]save to /storage/0508/doc_00092714 [01:51:51]save last doc name /storage/0508/doc_00092714 to /storage/kkm_last_doc_name [01:51:51]save OK [01:51:51]Clear old archive folders... [01:51:51]ProcessDocumentItem done err = 0, tmpTLVsize=406 [01:51:51]tlvbuf is 01771950 [01:51:51]SAM_PROTO_ClearQueue [01:51:51]wFMCommunicate request_size=4 [01:51:51]MH_SAM_APDU [01:51:51]CAPDU: 80 09 00 00 [01:51:51]Write to MH i2c: E2 08 00 56 07 80 09 00 00 00 00 00 00 CF [01:51:51]Write i2c OK [01:51:51]MH_I2C_Read... [01:51:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:51:51]Read from MH i2c: E2 [01:51:51]MH_I2C_Read... [01:51:51]Read from MH i2c: E2 03 00 [01:51:51]MH_I2C_Read... [01:51:51]Read from MH i2c: E2 03 00 56 07 00 90 00 D1 [01:51:51]RAPDU: 90 00 [01:51:51]wFMCommunicate OK [01:51:51]SAM_PROTO_ClearQueue done [01:51:51]KKMCreateOFDPacket [01:51:51]OFDProtocolAddRootSTLVToBuf [01:51:51]FM_MakeSignedData [01:51:51]FM_MakeSignedData [01:51:51]SAM_PROTO_SignData [01:51:51]wFMCommunicate request_size=4 [01:51:51]MH_SAM_APDU [01:51:51]CAPDU: 80 0D 01 02 [01:51:51]Write to MH i2c: E2 08 00 57 07 80 0D 01 02 00 00 00 00 D7 [01:51:51]Write i2c OK [01:51:51]MH_I2C_Read... [01:51:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:51:51]Read from MH i2c: E2 [01:51:51]MH_I2C_Read... [01:51:51]Read from MH i2c: E2 03 00 [01:51:51]MH_I2C_Read... [01:51:51]Read from MH i2c: E2 03 00 57 07 00 90 00 D2 [01:51:51]RAPDU: 90 00 [01:51:51]wFMCommunicate OK [01:51:51]wFMCommunicate request_size=255 [01:51:51]MH_SAM_APDU [01:51:51]CAPDU: 80 0D 02 02 FA 03 00 96 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 31 31 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 [01:51:51]Write to MH i2c: E2 02 01 58 07 80 0D 02 02 FA 00 03 00 96 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 31 31 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 00 00 52 [01:51:51]Write i2c OK [01:51:51]MH_I2C_Read... [01:51:51]OFD Sender: No OFD packet to send [01:51:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:51:52]Read from MH i2c: E2 [01:51:52]MH_I2C_Read... [01:51:52]Read from MH i2c: E2 03 00 [01:51:52]MH_I2C_Read... [01:51:52]Read from MH i2c: E2 03 00 58 07 00 90 00 D3 [01:51:52]RAPDU: 90 00 [01:51:52]wFMCommunicate OK [01:51:52]wFMCommunicate request_size=165 [01:51:52]MH_SAM_APDU [01:51:52]CAPDU: 80 0D 02 02 A0 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 37 8F E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2A 6A 01 00 35 04 06 00 3A D7 72 1E BC 1A [01:51:52]Write to MH i2c: E2 A8 00 59 07 80 0D 02 02 A0 00 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 37 8F E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2A 6A 01 00 35 04 06 00 3A D7 72 1E BC 1A 00 00 94 [01:51:52]Write i2c OK [01:51:52]MH_I2C_Read... [01:51:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:51:52]Read from MH i2c: E2 [01:51:52]MH_I2C_Read... [01:51:52]Read from MH i2c: E2 03 00 [01:51:52]MH_I2C_Read... [01:51:52]Read from MH i2c: E2 03 00 59 07 00 90 00 D4 [01:51:52]RAPDU: 90 00 [01:51:52]wFMCommunicate OK [01:51:52]wFMCommunicate request_size=4 [01:51:52]MH_SAM_APDU [01:51:52]CAPDU: 80 0D 03 02 [01:51:52]Write to MH i2c: E2 08 00 5A 07 80 0D 03 02 00 00 00 00 DC [01:51:52]Write i2c OK [01:51:52]MH_I2C_Read... [01:51:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:51:52]Read from MH i2c: E2 [01:51:52]MH_I2C_Read... [01:51:52]Read from MH i2c: E2 0B 00 [01:51:52]MH_I2C_Read... [01:51:52]Read from MH i2c: E2 0B 00 5A 07 00 DD BD E2 0C 13 73 9B 78 90 00 FE [01:51:52]RAPDU: DD BD E2 0C 13 73 9B 78 90 00 [01:51:52]wFMCommunicate OK [01:51:52]SAM_PROTO_SignData done [01:51:52]FM_MakeSignedData done [01:51:52]CreateOFDProtocolMessage [01:51:52]wFMCommunicate request_size=4 [01:51:52]MH_SAM_APDU [01:51:52]CAPDU: 80 11 00 00 [01:51:52]Write to MH i2c: E2 08 00 5B 07 80 11 00 00 00 00 00 00 DC [01:51:52]Write i2c OK [01:51:52]MH_I2C_Read... [01:51:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:51:52]Read from MH i2c: E2 [01:51:52]MH_I2C_Read... [01:51:52]Read from MH i2c: E2 17 00 [01:51:52]MH_I2C_Read... [01:51:52]Read from MH i2c: E2 17 00 5B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 33 [01:51:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:51:52]wFMCommunicate OK [01:51:52]CreateOFDProtocolMessage done [01:51:52]OFDSenderStorePacket 92714 [01:51:52]StoreOFDPacket docnum=92714 [01:51:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 AA 01 00 00 ED 47 A2 01 F8 74 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 31 31 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 37 8F E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2A 6A 01 00 35 04 06 00 3A D7 72 1E BC 1A DD BD E2 0C 13 73 9B 78 [01:51:52]CheckFolder [01:51:52]dirname=/storage/ofd_packets [01:51:52]CheckFolder done [01:51:52]ProducePacketName [01:51:52]name=ofd_packets/00092714 [01:51:52]NVStorageSaveData ofd_packets/00092714 [01:51:52]File name is /storage/ofd_packets/00092714 [01:51:52]Write 456 bytes [01:51:52]NVStorageSaveData done [01:51:52]OFDSenderStorePacket done [01:51:52]KKMCreateOFDPacket done [01:51:52]NVStorageSaveData kkm_last_timestamp [01:51:52]File name is /storage/kkm_last_timestamp [01:51:52]Write 4 bytes [01:51:52]NVStorageSaveData done [01:51:52]ExternCall_PrintAddStr [01:51:52]wPrintStart [01:51:52]Write to MH i2c: 01 00 00 5C 07 63 [01:51:52]Write i2c OK [01:51:52]MH_I2C_Read... [01:51:52]Read from MH i2c: 01 [01:51:52]MH_I2C_Read... [01:51:52]Read from MH i2c: 01 07 00 [01:51:52]MH_I2C_Read... [01:51:52]OFD Sender: Processing packet 92714 [packets to send 63, broken 62] [01:51:52]ProducePacketName [01:51:52]name=ofd_packets/00092714 [01:51:52]OFD Sender: To server: pG, [01:51:52]CommunicateWithHost lk.salyk.kg:30040 [01:51:52]ConnectInit lk.salyk.kg [01:51:52]Read from MH i2c: 01 07 00 5C 07 00 00 00 00 00 FF 0F 78 [01:51:52]RasterBufferAndPrint [01:51:52]line Счет N : (3)127598 [01:51:52]line ИНН: 02508201610067 [01:51:52]line Контрольно-Кассовый Чек [01:51:52]line ПРОДАЖА [01:51:52]line Товар: 4700000160792 [01:51:52]line Снек Курут классический (круглый) [01:51:52]line 1.000 * 60.00 [01:51:52]line = 60.00 [01:51:52]line НДС 12% НСП 1% [01:51:52]line > о реализуемом товаре [01:51:52]line Товар: 46116482 [01:51:52]line Жев Orbit ягодный микс [01:51:52]line 1.000 * 45.00 [01:51:52]line = 45.00 [01:51:52]line НДС 12% НСП 1% [01:51:52]line > о реализуемом товаре [01:51:52]line ИТОГО: 105.00 [01:51:52]line НСП 1% : 0.93 [01:51:52]line НДС 12% : 11.15 [01:51:52]line Наличными: 105.00 [01:51:52]line Безнал.: 0.00 [01:51:52]line Место: АЗС № 5 "Партнер Нефть" [01:51:52]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [01:51:52]line СНО: Общий режим [01:51:52]line Чек 17 16.09.2024 01:51 [01:51:52]line Смена: 508 ФФД: 1.0 [01:51:52]line ЗНМ: 03000000022 [01:51:52]line РНМ: 0000000000091423 [01:51:52]line Версия ККМ: 001 [01:51:52]line ФМ: 0000000000874692 [01:51:52]line ФД: 92714 [01:51:52]line ФПД: 64697006996506 [01:51:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T015151&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92714&fm=64697006996506&tin=02508201610067®Number=0000000000091423&sum=10500 [01:51:52]line 0 [01:51:52]written 0, free lines is 4095 [01:51:52]Connected sock=8 [01:51:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 AA 01 00 00 ED 47 A2 01 F8 74 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 31 31 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 37 8F E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2A 6A 01 00 35 04 06 00 3A D7 72 1E BC 1A DD BD E2 0C 13 73 9B 78 [01:51:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 85 E9 47 00 C3 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2A 6A 01 00 F4 03 04 00 AD 37 E7 66 B6 04 01 00 00 50 37 D3 EE DE 8D 64 3F [01:51:53]CommunicateWithHost err = 0 [01:51:53]CheckOFDResponse [01:51:53]1017 (14) - 77093643461234 [01:51:53]1041 (16) - 0000000000874692 [01:51:53]1040 (4) - 92714 [01:51:53]1012 (4) - 15.09.2024 19:38 [01:51:53]1206 (1) - 0 [01:51:53]OFD Sender: Remove packet 92714 [01:51:53]ProducePacketName [01:51:53]name=ofd_packets/00092714 [01:51:53]NVStorageDeleteData [01:51:53]Write to MH i2c: 01 00 00 8B 07 92 [01:51:53]Write i2c OK [01:51:53]MH_I2C_Read... [01:51:53]Read from MH i2c: 01 [01:51:53]MH_I2C_Read... [01:51:53]Read from MH i2c: 01 07 00 [01:51:53]MH_I2C_Read... [01:51:53]Read from MH i2c: 01 07 00 8B 07 00 00 00 00 00 BB 0C 60 [01:51:53]RasterBufferAndPrint [01:51:53]line [01:51:53]line [01:51:53]line [01:51:53]line [01:51:53]line [01:51:53]written 0, free lines is 3268 [01:51:53]MH_Cut [01:51:53]Write to MH i2c: D1 01 00 92 07 01 6B [01:51:53]Write i2c OK [01:51:53]MH_I2C_Read... [01:51:53]Read from MH i2c: D1 [01:51:53]MH_I2C_Read... [01:51:53]Read from MH i2c: D1 01 00 [01:51:53]MH_I2C_Read... [01:51:53]Read from MH i2c: D1 01 00 92 07 00 6A [01:51:53]Write to MH i2c: 01 00 00 93 07 9A [01:51:53]Write i2c OK [01:51:53]MH_I2C_Read... [01:51:53]OFD Sender: No OFD packet to send [01:51:54]*** Cut start [01:51:54]*** Purtial cut [01:51:54]*** Stage 1: CUTSNS_PIN = 1 [01:51:56]Read from MH i2c: 01 [01:51:56]MH_I2C_Read... [01:51:56]*** Stop cut motor [01:51:56]*** Cut end [01:51:56]Read from MH i2c: 01 07 00 [01:51:56]MH_I2C_Read... [01:51:56]Read from MH i2c: 01 07 00 93 07 00 00 00 00 00 FF 0F AF [01:51:56]process_action close_receipt done [01:51:56]requested_data is exist [01:51:56]produce_requested_data [01:51:56]requested_item fm.sn is exist - process it [01:51:56]wFMCommunicate request_size=4 [01:51:56]MH_SAM_APDU [01:51:56]CAPDU: 80 11 00 00 [01:51:56]Write to MH i2c: E2 08 00 94 07 80 11 00 00 00 00 00 00 15 [01:51:56]Write i2c OK [01:51:56]MH_I2C_Read... [01:51:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:51:56]Read from MH i2c: E2 [01:51:56]MH_I2C_Read... [01:51:56]Read from MH i2c: E2 17 00 [01:51:56]MH_I2C_Read... [01:51:56]Read from MH i2c: E2 17 00 94 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 6C [01:51:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:51:56]wFMCommunicate OK [01:51:56]requested_item fd.num is exist - process it [01:51:56]SAM_PROTO_GetFieldsCounters [01:51:56]wFMCommunicate request_size=4 [01:51:56]MH_SAM_APDU [01:51:56]CAPDU: 80 13 00 00 [01:51:56]Write to MH i2c: E2 08 00 95 07 80 13 00 00 00 00 00 00 18 [01:51:56]Write i2c OK [01:51:56]MH_I2C_Read... [01:51:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:51:56]Read from MH i2c: E2 [01:51:56]MH_I2C_Read... [01:51:56]Read from MH i2c: E2 62 00 [01:51:56]MH_I2C_Read... [01:51:56]Read from MH i2c: E2 62 00 95 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2A 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [01:51:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2A 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:51:56]wFMCommunicate OK [01:51:56]SAM_PROTO_GetFieldsCounters done [01:51:56]requested_item shift.num is exist - process it [01:51:56]requested_item shift.opened is exist - process it [01:51:56]req_shift_opened [01:51:56]FM_GetShiftState [01:51:56]SAM_PROTO_GetShiftState [01:51:56]wFMCommunicate request_size=4 [01:51:56]MH_SAM_APDU [01:51:56]CAPDU: 80 13 01 00 [01:51:56]Write to MH i2c: E2 08 00 96 07 80 13 01 00 00 00 00 00 1A [01:51:56]Write i2c OK [01:51:56]MH_I2C_Read... [01:51:56]Read from MH i2c: E2 [01:51:56]MH_I2C_Read... [01:51:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:51:56]Read from MH i2c: E2 0E 00 [01:51:56]MH_I2C_Read... [01:51:56]Read from MH i2c: E2 0E 00 96 07 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 B3 [01:51:56]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [01:51:56]wFMCommunicate OK [01:51:56]SAM_PROTO_GetShiftState done [01:51:56]FM_GetShiftState done [01:51:56]req_shift_opened done [01:51:56]requested_item shift.open_date is exist - process it [01:51:56]req_shift_open_date [01:51:56]req_shift_open_date done [01:51:56]produce_requested_data done [01:51:56]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92714,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278} [01:51:56]process_action_free close_receipt [01:51:56]json_value_free [01:51:56]json_value_free done [01:51:56]process_json_proto returns [01:51:56]Send response to host [01:51:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92714,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278}}} [01:51:56]free response buf [01:51:56]execute_script done [01:51:56]execute_script returns [01:51:56]free content buf [01:51:56]Sock 6.Close socket [01:51:56]Sock 6.Thread stoped [01:51:58]OFD Sender: No OFD packet to send [01:52:03]OFD Sender: No OFD packet to send [01:52:08]OFD Sender: No OFD packet to send [01:52:13]OFD Sender: No OFD packet to send [01:52:18]OFD Sender: No OFD packet to send [01:52:23]OFD Sender: No OFD packet to send [01:52:28]OFD Sender: No OFD packet to send [01:52:33]OFD Sender: No OFD packet to send [01:52:38]OFD Sender: No OFD packet to send [01:52:43]OFD Sender: No OFD packet to send [01:52:48]OFD Sender: No OFD packet to send [01:52:53]OFD Sender: No OFD packet to send [01:52:58]OFD Sender: No OFD packet to send [01:53:03]OFD Sender: No OFD packet to send [01:53:08]OFD Sender: No OFD packet to send [01:53:13]OFD Sender: No OFD packet to send [01:53:18]OFD Sender: No OFD packet to send [01:53:23]OFD Sender: No OFD packet to send [01:53:28]OFD Sender: No OFD packet to send [01:53:33]OFD Sender: No OFD packet to send [01:53:38]OFD Sender: No OFD packet to send [01:53:43]OFD Sender: No OFD packet to send [01:53:48]OFD Sender: No OFD packet to send [01:53:53]OFD Sender: No OFD packet to send [01:53:58]OFD Sender: No OFD packet to send [01:54:03]OFD Sender: No OFD packet to send [01:54:08]OFD Sender: No OFD packet to send [01:54:13]OFD Sender: No OFD packet to send [01:54:18]OFD Sender: No OFD packet to send [01:54:23]OFD Sender: No OFD packet to send [01:54:25]accept exits with 7 [01:54:25]New connection [01:54:25]New thread 3066752356 created [01:54:25]Thread 3066608996 joined [01:54:25]Waiting for new connection... [01:54:25] Sock 7.Parse request [01:54:25]Sock 7.Check first char [01:54:25]Sock 7.First char is OK [01:54:25]request: POST /json_proto HTTP/1.0 [01:54:25]Method: POST [01:54:25]URL: /json_proto [01:54:25]Method is POST - this is cgi request [01:54:25]url: /json_proto [01:54:25]query_string will be loaded in cgi processing [01:54:25]execute_cgi json_proto POST (null) [01:54:25]execute_cgi path=json_proto method=POST [01:54:25]POST find Content-Length [01:54:25]Host: 172.17.57.71:8080 [01:54:25]Content-Length: 1025 [01:54:25]Content-Type: application/json [01:54:25] [01:54:25]POST finish read [01:54:25]Found Content-Length = 1025 [01:54:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127599", "tax_sys" : 0, "items" : [ { "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 2.000, "sum" : 290.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 440.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:54:25]execute_script... [01:54:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127599", "tax_sys" : 0, "items" : [ { "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 2.000, "sum" : 290.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 440.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:54:25]POST & json_proto [01:54:25]process_json_proto [01:54:25]json parsed OK: [01:54:25]protocol is kg_v1.0 [01:54:25]action value=close_receipt [01:54:25]process_action close_receipt [01:54:25]cmd_close_receipt [01:54:25]MH_GetDate [01:54:25]Write to MH i2c: F0 00 00 97 07 8D [01:54:25]Write i2c OK [01:54:25]MH_I2C_Read... [01:54:25]Read from MH i2c: F0 [01:54:25]MH_I2C_Read... [01:54:25]Read from MH i2c: F0 09 00 [01:54:25]MH_I2C_Read... [01:54:25]Read from MH i2c: F0 09 00 97 07 00 D2 8F E7 66 33 3A A4 66 BB [01:54:25]GetLastDocTimeStamp 1726451511 [01:54:25]current date 1726451666 [01:54:25]FM_GetShiftState [01:54:25]SAM_PROTO_GetShiftState [01:54:25]wFMCommunicate request_size=4 [01:54:25]MH_SAM_APDU [01:54:25]CAPDU: 80 13 01 00 [01:54:25]Write to MH i2c: E2 08 00 98 07 80 13 01 00 00 00 00 00 1C [01:54:25]Write i2c OK [01:54:25]MH_I2C_Read... [01:54:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:54:25]Read from MH i2c: E2 [01:54:25]MH_I2C_Read... [01:54:25]Read from MH i2c: E2 0E 00 [01:54:25]MH_I2C_Read... [01:54:25]Read from MH i2c: E2 0E 00 98 07 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 B5 [01:54:25]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [01:54:25]wFMCommunicate OK [01:54:25]SAM_PROTO_GetShiftState done [01:54:25]FM_GetShiftState done [01:54:25]opened in 1726446278 [01:54:25]opened+sec_in_day 1726532678 [01:54:25]quantity*price = 29000 [01:54:25]sum+1 = 29001 [01:54:25]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030092499 Сигареты ESSE SENSE Himalaya 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 440.00 НСП 1% : 3.90 НДС 12% : 46.73 Наличными: 0.00 Безнал.: 440.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 18 16.09.2024 01:54 Смена: 508 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92715 ФПД: 47623473967431 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T015426&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92715&fm=47623473967431&tin=02508201610067®Number=0000000000091423&sum=44000 0 [01:54:26]StoreToDocumentArchive [01:54:26]shift 508 fd 92715 [01:54:26]save to /storage/0508/doc_00092715 [01:54:26]save last doc name /storage/0508/doc_00092715 to /storage/kkm_last_doc_name [01:54:26]save OK [01:54:26]Clear old archive folders... [01:54:26]ProcessDocumentItem done err = 0, tmpTLVsize=373 [01:54:26]tlvbuf is 016FC1B0 [01:54:26]SAM_PROTO_ClearQueue [01:54:26]wFMCommunicate request_size=4 [01:54:26]MH_SAM_APDU [01:54:26]CAPDU: 80 09 00 00 [01:54:26]Write to MH i2c: E2 08 00 A5 07 80 09 00 00 00 00 00 00 1E [01:54:26]Write i2c OK [01:54:26]MH_I2C_Read... [01:54:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:54:26]Read from MH i2c: E2 [01:54:26]MH_I2C_Read... [01:54:26]Read from MH i2c: E2 03 00 [01:54:26]MH_I2C_Read... [01:54:26]Read from MH i2c: E2 03 00 A5 07 00 90 00 20 [01:54:26]RAPDU: 90 00 [01:54:26]wFMCommunicate OK [01:54:26]SAM_PROTO_ClearQueue done [01:54:26]KKMCreateOFDPacket [01:54:26]OFDProtocolAddRootSTLVToBuf [01:54:26]FM_MakeSignedData [01:54:26]FM_MakeSignedData [01:54:26]SAM_PROTO_SignData [01:54:26]wFMCommunicate request_size=4 [01:54:26]MH_SAM_APDU [01:54:26]CAPDU: 80 0D 01 02 [01:54:26]Write to MH i2c: E2 08 00 A6 07 80 0D 01 02 00 00 00 00 26 [01:54:26]Write i2c OK [01:54:26]MH_I2C_Read... [01:54:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:54:26]Read from MH i2c: E2 [01:54:26]MH_I2C_Read... [01:54:26]Read from MH i2c: E2 03 00 [01:54:26]MH_I2C_Read... [01:54:26]Read from MH i2c: E2 03 00 A6 07 00 90 00 21 [01:54:26]RAPDU: 90 00 [01:54:26]wFMCommunicate OK [01:54:26]wFMCommunicate request_size=255 [01:54:26]MH_SAM_APDU [01:54:26]CAPDU: 80 0D 02 02 FA 03 00 75 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 [01:54:26]Write to MH i2c: E2 02 01 A7 07 80 0D 02 02 FA 00 03 00 75 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 00 00 A2 [01:54:26]Write i2c OK [01:54:26]MH_I2C_Read... [01:54:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:54:27]Read from MH i2c: E2 [01:54:27]MH_I2C_Read... [01:54:27]Read from MH i2c: E2 03 00 [01:54:27]MH_I2C_Read... [01:54:27]Read from MH i2c: E2 03 00 A7 07 00 90 00 22 [01:54:27]RAPDU: 90 00 [01:54:27]wFMCommunicate OK [01:54:27]wFMCommunicate request_size=132 [01:54:27]MH_SAM_APDU [01:54:27]CAPDU: 80 0D 02 02 7F 03 01 00 01 F3 03 06 00 41 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 AB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 D2 8F E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2B 6A 01 00 35 04 06 00 2B 50 34 3F B1 47 [01:54:27]Write to MH i2c: E2 87 00 A8 07 80 0D 02 02 7F 00 03 01 00 01 F3 03 06 00 41 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 AB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 D2 8F E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2B 6A 01 00 35 04 06 00 2B 50 34 3F B1 47 00 00 77 [01:54:27]Write i2c OK [01:54:27]MH_I2C_Read... [01:54:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:54:27]Read from MH i2c: E2 [01:54:27]MH_I2C_Read... [01:54:27]Read from MH i2c: E2 03 00 [01:54:27]MH_I2C_Read... [01:54:27]Read from MH i2c: E2 03 00 A8 07 00 90 00 23 [01:54:27]RAPDU: 90 00 [01:54:27]wFMCommunicate OK [01:54:27]wFMCommunicate request_size=4 [01:54:27]MH_SAM_APDU [01:54:27]CAPDU: 80 0D 03 02 [01:54:27]Write to MH i2c: E2 08 00 A9 07 80 0D 03 02 00 00 00 00 2B [01:54:27]Write i2c OK [01:54:27]MH_I2C_Read... [01:54:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:54:27]Read from MH i2c: E2 [01:54:27]MH_I2C_Read... [01:54:27]Read from MH i2c: E2 0B 00 [01:54:27]MH_I2C_Read... [01:54:27]Read from MH i2c: E2 0B 00 A9 07 00 11 E3 39 92 7B 14 92 92 90 00 9E [01:54:27]RAPDU: 11 E3 39 92 7B 14 92 92 90 00 [01:54:27]wFMCommunicate OK [01:54:27]SAM_PROTO_SignData done [01:54:27]FM_MakeSignedData done [01:54:27]CreateOFDProtocolMessage [01:54:27]wFMCommunicate request_size=4 [01:54:27]MH_SAM_APDU [01:54:27]CAPDU: 80 11 00 00 [01:54:27]Write to MH i2c: E2 08 00 AA 07 80 11 00 00 00 00 00 00 2B [01:54:27]Write i2c OK [01:54:27]MH_I2C_Read... [01:54:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:54:27]Read from MH i2c: E2 [01:54:27]MH_I2C_Read... [01:54:27]Read from MH i2c: E2 17 00 [01:54:27]MH_I2C_Read... [01:54:27]Read from MH i2c: E2 17 00 AA 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 82 [01:54:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:54:27]wFMCommunicate OK [01:54:27]CreateOFDProtocolMessage done [01:54:27]OFDSenderStorePacket 92715 [01:54:27]StoreOFDPacket docnum=92715 [01:54:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 89 01 00 00 2E 75 81 01 F9 0B 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 AB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 D2 8F E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2B 6A 01 00 35 04 06 00 2B 50 34 3F B1 47 11 E3 39 92 7B 14 92 92 [01:54:27]CheckFolder [01:54:27]dirname=/storage/ofd_packets [01:54:27]CheckFolder done [01:54:27]ProducePacketName [01:54:27]name=ofd_packets/00092715 [01:54:27]NVStorageSaveData ofd_packets/00092715 [01:54:27]File name is /storage/ofd_packets/00092715 [01:54:27]Write 423 bytes [01:54:27]NVStorageSaveData done [01:54:27]OFDSenderStorePacket done [01:54:27]KKMCreateOFDPacket done [01:54:27]NVStorageSaveData kkm_last_timestamp [01:54:27]File name is /storage/kkm_last_timestamp [01:54:27]Write 4 bytes [01:54:27]NVStorageSaveData done [01:54:27]ExternCall_PrintAddStr [01:54:27]wPrintStart [01:54:27]Write to MH i2c: 01 00 00 AB 07 B2 [01:54:27]OFD Sender: Processing packet 92715 [packets to send 63, broken 62] [01:54:27]ProducePacketName [01:54:27]name=ofd_packets/00092715 [01:54:27]OFD Sender: To server: pG, [01:54:27]CommunicateWithHost lk.salyk.kg:30040 [01:54:27]ConnectInit lk.salyk.kg [01:54:27]Write i2c OK [01:54:27]MH_I2C_Read... [01:54:27]Read from MH i2c: 01 [01:54:27]MH_I2C_Read... [01:54:27]Read from MH i2c: 01 07 00 [01:54:27]MH_I2C_Read... [01:54:27]Read from MH i2c: 01 07 00 AB 07 00 00 00 00 00 FF 0F C7 [01:54:27]RasterBufferAndPrint [01:54:27]line Счет N : (3)127599 [01:54:27]line ИНН: 02508201610067 [01:54:27]line Контрольно-Кассовый Чек [01:54:27]line ПРОДАЖА [01:54:27]line Товар: 4700001610012 [01:54:27]line Пиво Арпа 0,5л [01:54:27]line 2.000 * 145.00 [01:54:27]line = 290.00 [01:54:27]line НДС 12% НСП 1% [01:54:27]line > о реализуемом товаре [01:54:27]line Товар: 4640030092499 [01:54:27]line Сигареты ESSE SENSE Himalaya [01:54:27]line 1.000 * 150.00 [01:54:27]line = 150.00 [01:54:27]line НДС 12% НСП 1% [01:54:27]line > о реализуемом товаре [01:54:27]line ИТОГО: 440.00 [01:54:27]line НСП 1% : 3.90 [01:54:27]line НДС 12% : 46.73 [01:54:27]line Наличными: 0.00 [01:54:27]line Безнал.: 440.00 [01:54:27]line Место: АЗС № 5 "Партнер Нефть" [01:54:27]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [01:54:27]line СНО: Общий режим [01:54:27]line Чек 18 16.09.2024 01:54 [01:54:27]line Смена: 508 ФФД: 1.0 [01:54:27]line ЗНМ: 03000000022 [01:54:27]line РНМ: 0000000000091423 [01:54:27]line Версия ККМ: 001 [01:54:27]line Платежная система: О! деньги [01:54:27]line ФМ: 0000000000874692 [01:54:27]line ФД: 92715 [01:54:27]line ФПД: 47623473967431 [01:54:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T015426&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92715&fm=47623473967431&tin=02508201610067®Number=0000000000091423&sum=44000 [01:54:27]line 0 [01:54:27]written 0, free lines is 4095 [01:54:27]Connected sock=8 [01:54:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 89 01 00 00 2E 75 81 01 F9 0B 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 AB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 D2 8F E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2B 6A 01 00 35 04 06 00 2B 50 34 3F B1 47 11 E3 39 92 7B 14 92 92 [01:54:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 DD B4 47 00 84 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2B 6A 01 00 F4 03 04 00 48 38 E7 66 B6 04 01 00 00 5E FB B1 7A 35 F4 45 10 [01:54:28]CommunicateWithHost err = 0 [01:54:28]CheckOFDResponse [01:54:28]1017 (14) - 77093643461234 [01:54:28]1041 (16) - 0000000000874692 [01:54:28]1040 (4) - 92715 [01:54:28]1012 (4) - 15.09.2024 19:40 [01:54:28]1206 (1) - 0 [01:54:28]OFD Sender: Remove packet 92715 [01:54:28]ProducePacketName [01:54:28]name=ofd_packets/00092715 [01:54:28]NVStorageDeleteData [01:54:28]Write to MH i2c: 01 00 00 DC 07 E3 [01:54:28]Write i2c OK [01:54:28]MH_I2C_Read... [01:54:28]Read from MH i2c: 01 [01:54:28]MH_I2C_Read... [01:54:28]Read from MH i2c: 01 07 00 [01:54:28]MH_I2C_Read... [01:54:28]Read from MH i2c: 01 07 00 DC 07 00 00 00 00 00 A9 0C 9F [01:54:28]RasterBufferAndPrint [01:54:28]line [01:54:28]line [01:54:28]line [01:54:28]line [01:54:28]line [01:54:28]written 0, free lines is 3247 [01:54:28]MH_Cut [01:54:28]Write to MH i2c: D1 01 00 E3 07 01 BC [01:54:28]Write i2c OK [01:54:28]MH_I2C_Read... [01:54:28]Read from MH i2c: D1 [01:54:28]MH_I2C_Read... [01:54:28]Read from MH i2c: D1 01 00 [01:54:28]MH_I2C_Read... [01:54:28]Read from MH i2c: D1 01 00 E3 07 00 BB [01:54:28]Write to MH i2c: 01 00 00 E4 07 EB [01:54:28]Write i2c OK [01:54:28]MH_I2C_Read... [01:54:28]OFD Sender: No OFD packet to send [01:54:28]*** Cut start [01:54:28]*** Purtial cut [01:54:28]*** Stage 1: CUTSNS_PIN = 1 [01:54:30]Read from MH i2c: 01 [01:54:30]MH_I2C_Read... [01:54:30]*** Stop cut motor [01:54:31]*** Cut end [01:54:31]Read from MH i2c: 01 07 00 [01:54:31]MH_I2C_Read... [01:54:31]Read from MH i2c: 01 07 00 E4 07 00 00 00 00 00 FF 0F 00 [01:54:31]process_action close_receipt done [01:54:31]requested_data is exist [01:54:31]produce_requested_data [01:54:31]requested_item fm.sn is exist - process it [01:54:31]wFMCommunicate request_size=4 [01:54:31]MH_SAM_APDU [01:54:31]CAPDU: 80 11 00 00 [01:54:31]Write to MH i2c: E2 08 00 E5 07 80 11 00 00 00 00 00 00 66 [01:54:31]Write i2c OK [01:54:31]MH_I2C_Read... [01:54:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:54:31]Read from MH i2c: E2 [01:54:31]MH_I2C_Read... [01:54:31]Read from MH i2c: E2 17 00 [01:54:31]MH_I2C_Read... [01:54:31]Read from MH i2c: E2 17 00 E5 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 BD [01:54:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:54:31]wFMCommunicate OK [01:54:31]requested_item fd.num is exist - process it [01:54:31]SAM_PROTO_GetFieldsCounters [01:54:31]wFMCommunicate request_size=4 [01:54:31]MH_SAM_APDU [01:54:31]CAPDU: 80 13 00 00 [01:54:31]Write to MH i2c: E2 08 00 E6 07 80 13 00 00 00 00 00 00 69 [01:54:31]Write i2c OK [01:54:31]MH_I2C_Read... [01:54:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:54:31]Read from MH i2c: E2 [01:54:31]MH_I2C_Read... [01:54:31]Read from MH i2c: E2 62 00 [01:54:31]MH_I2C_Read... [01:54:31]Read from MH i2c: E2 62 00 E6 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2B 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [01:54:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2B 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:54:31]wFMCommunicate OK [01:54:31]SAM_PROTO_GetFieldsCounters done [01:54:31]requested_item shift.num is exist - process it [01:54:31]requested_item shift.opened is exist - process it [01:54:31]req_shift_opened [01:54:31]FM_GetShiftState [01:54:31]SAM_PROTO_GetShiftState [01:54:31]wFMCommunicate request_size=4 [01:54:31]MH_SAM_APDU [01:54:31]CAPDU: 80 13 01 00 [01:54:31]Write to MH i2c: E2 08 00 E7 07 80 13 01 00 00 00 00 00 6B [01:54:31]Write i2c OK [01:54:31]MH_I2C_Read... [01:54:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:54:31]Read from MH i2c: E2 [01:54:31]MH_I2C_Read... [01:54:31]Read from MH i2c: E2 0E 00 [01:54:31]MH_I2C_Read... [01:54:31]Read from MH i2c: E2 0E 00 E7 07 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 04 [01:54:31]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [01:54:31]wFMCommunicate OK [01:54:31]SAM_PROTO_GetShiftState done [01:54:31]FM_GetShiftState done [01:54:31]req_shift_opened done [01:54:31]requested_item shift.open_date is exist - process it [01:54:31]req_shift_open_date [01:54:31]req_shift_open_date done [01:54:31]produce_requested_data done [01:54:31]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92715,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278} [01:54:31]process_action_free close_receipt [01:54:31]json_value_free [01:54:31]json_value_free done [01:54:31]process_json_proto returns [01:54:31]Send response to host [01:54:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92715,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278}}} [01:54:31]free response buf [01:54:31]execute_script done [01:54:31]execute_script returns [01:54:31]free content buf [01:54:31]Sock 7.Close socket [01:54:31]Sock 7.Thread stoped [01:54:33]OFD Sender: No OFD packet to send [01:54:38]OFD Sender: No OFD packet to send [01:54:43]OFD Sender: No OFD packet to send [01:54:48]OFD Sender: No OFD packet to send [01:54:53]OFD Sender: No OFD packet to send [01:54:58]OFD Sender: No OFD packet to send [01:55:03]OFD Sender: No OFD packet to send [01:55:08]OFD Sender: No OFD packet to send [01:55:13]OFD Sender: No OFD packet to send [01:55:18]OFD Sender: No OFD packet to send [01:55:23]OFD Sender: No OFD packet to send [01:55:28]OFD Sender: No OFD packet to send [01:55:33]OFD Sender: No OFD packet to send [01:55:38]OFD Sender: No OFD packet to send [01:55:43]OFD Sender: No OFD packet to send [01:55:48]OFD Sender: No OFD packet to send [01:55:53]OFD Sender: No OFD packet to send [01:55:58]OFD Sender: No OFD packet to send [01:56:03]OFD Sender: No OFD packet to send [01:56:08]OFD Sender: No OFD packet to send [01:56:13]OFD Sender: No OFD packet to send [01:56:18]OFD Sender: No OFD packet to send [01:56:23]OFD Sender: No OFD packet to send [01:56:28]OFD Sender: No OFD packet to send [01:56:33]OFD Sender: No OFD packet to send [01:56:38]OFD Sender: No OFD packet to send [01:56:43]OFD Sender: No OFD packet to send [01:56:48]OFD Sender: No OFD packet to send [01:56:53]OFD Sender: No OFD packet to send [01:56:58]OFD Sender: No OFD packet to send [01:57:03]OFD Sender: No OFD packet to send [01:57:08]OFD Sender: No OFD packet to send [01:57:13]OFD Sender: No OFD packet to send [01:57:18]OFD Sender: No OFD packet to send [01:57:23]OFD Sender: No OFD packet to send [01:57:28]OFD Sender: No OFD packet to send [01:57:33]OFD Sender: No OFD packet to send [01:57:38]OFD Sender: No OFD packet to send [01:57:43]OFD Sender: No OFD packet to send [01:57:48]OFD Sender: No OFD packet to send [01:57:53]OFD Sender: No OFD packet to send [01:57:58]OFD Sender: No OFD packet to send [01:58:03]OFD Sender: No OFD packet to send [01:58:08]OFD Sender: No OFD packet to send [01:58:13]OFD Sender: No OFD packet to send [01:58:18]OFD Sender: No OFD packet to send [01:58:23]OFD Sender: No OFD packet to send [01:58:28]OFD Sender: No OFD packet to send [01:58:33]OFD Sender: No OFD packet to send [01:58:38]OFD Sender: No OFD packet to send [01:58:43]OFD Sender: No OFD packet to send [01:58:48]OFD Sender: No OFD packet to send [01:58:53]OFD Sender: No OFD packet to send [01:58:58]OFD Sender: No OFD packet to send [01:59:03]OFD Sender: No OFD packet to send [01:59:08]OFD Sender: No OFD packet to send [01:59:13]OFD Sender: No OFD packet to send [01:59:18]OFD Sender: No OFD packet to send [01:59:23]OFD Sender: No OFD packet to send [01:59:28]OFD Sender: No OFD packet to send [01:59:33]OFD Sender: No OFD packet to send [01:59:38]OFD Sender: No OFD packet to send [01:59:43]OFD Sender: No OFD packet to send [01:59:44]accept exits with 6 [01:59:44]New connection [01:59:44]New thread 3066608996 created [01:59:44]Thread 3066752356 joined [01:59:44]Waiting for new connection... [01:59:44] Sock 6.Parse request [01:59:44]Sock 6.Check first char [01:59:44]Sock 6.First char is OK [01:59:44]request: POST /json_proto HTTP/1.0 [01:59:44]Method: POST [01:59:44]URL: /json_proto [01:59:44]Method is POST - this is cgi request [01:59:44]url: /json_proto [01:59:44]query_string will be loaded in cgi processing [01:59:44]execute_cgi json_proto POST (null) [01:59:44]execute_cgi path=json_proto method=POST [01:59:44]POST find Content-Length [01:59:44]Host: 172.17.57.71:8080 [01:59:44]Content-Length: 812 [01:59:44]Content-Type: application/json [01:59:44] [01:59:44]POST finish read [01:59:44]Found Content-Length = 812 [01:59:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127600", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 185.00, "quantity" : 2.000, "sum" : 370.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 370.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:59:44]execute_script... [01:59:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127600", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 185.00, "quantity" : 2.000, "sum" : 370.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 370.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:59:44]POST & json_proto [01:59:44]process_json_proto [01:59:44]json parsed OK: [01:59:44]protocol is kg_v1.0 [01:59:44]action value=close_receipt [01:59:44]process_action close_receipt [01:59:44]cmd_close_receipt [01:59:44]MH_GetDate [01:59:44]Write to MH i2c: F0 00 00 E8 07 DE [01:59:44]Write i2c OK [01:59:44]MH_I2C_Read... [01:59:44]Read from MH i2c: F0 [01:59:44]MH_I2C_Read... [01:59:44]Read from MH i2c: F0 09 00 [01:59:44]MH_I2C_Read... [01:59:44]Read from MH i2c: F0 09 00 E8 07 00 11 91 E7 66 33 3A A4 66 4D [01:59:44]GetLastDocTimeStamp 1726451666 [01:59:44]current date 1726451985 [01:59:44]FM_GetShiftState [01:59:44]SAM_PROTO_GetShiftState [01:59:44]wFMCommunicate request_size=4 [01:59:44]MH_SAM_APDU [01:59:44]CAPDU: 80 13 01 00 [01:59:44]Write to MH i2c: E2 08 00 E9 07 80 13 01 00 00 00 00 00 6D [01:59:44]Write i2c OK [01:59:44]MH_I2C_Read... [01:59:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:59:44]Read from MH i2c: E2 [01:59:44]MH_I2C_Read... [01:59:44]Read from MH i2c: E2 0E 00 [01:59:44]MH_I2C_Read... [01:59:44]Read from MH i2c: E2 0E 00 E9 07 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 06 [01:59:44]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [01:59:44]wFMCommunicate OK [01:59:44]SAM_PROTO_GetShiftState done [01:59:44]FM_GetShiftState done [01:59:44]opened in 1726446278 [01:59:44]opened+sec_in_day 1726532678 [01:59:44]quantity*price = 37000 [01:59:44]sum+1 = 37001 [01:59:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 370.00 НСП 1% : 3.27 НДС 12% : 39.29 Наличными: 0.00 Безнал.: 370.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 19 16.09.2024 01:59 Смена: 508 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92716 ФПД: 258779288180486 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T015945&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92716&fm=258779288180486&tin=02508201610067®Number=0000000000091423&sum=37000 0 [01:59:45]StoreToDocumentArchive [01:59:45]shift 508 fd 92716 [01:59:45]save to /storage/0508/doc_00092716 [01:59:45]save last doc name /storage/0508/doc_00092716 to /storage/kkm_last_doc_name [01:59:45]save OK [01:59:45]Clear old archive folders... [01:59:45]ProcessDocumentItem done err = 0, tmpTLVsize=278 [01:59:45]tlvbuf is 017E23E0 [01:59:45]SAM_PROTO_ClearQueue [01:59:45]wFMCommunicate request_size=4 [01:59:45]MH_SAM_APDU [01:59:45]CAPDU: 80 09 00 00 [01:59:45]Write to MH i2c: E2 08 00 F6 07 80 09 00 00 00 00 00 00 6F [01:59:45]Write i2c OK [01:59:45]MH_I2C_Read... [01:59:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:59:45]Read from MH i2c: E2 [01:59:45]MH_I2C_Read... [01:59:45]Read from MH i2c: E2 03 00 [01:59:45]MH_I2C_Read... [01:59:45]Read from MH i2c: E2 03 00 F6 07 00 90 00 71 [01:59:45]RAPDU: 90 00 [01:59:45]wFMCommunicate OK [01:59:45]SAM_PROTO_ClearQueue done [01:59:45]KKMCreateOFDPacket [01:59:45]OFDProtocolAddRootSTLVToBuf [01:59:45]FM_MakeSignedData [01:59:45]FM_MakeSignedData [01:59:45]SAM_PROTO_SignData [01:59:45]wFMCommunicate request_size=4 [01:59:45]MH_SAM_APDU [01:59:45]CAPDU: 80 0D 01 02 [01:59:45]Write to MH i2c: E2 08 00 F7 07 80 0D 01 02 00 00 00 00 77 [01:59:45]Write i2c OK [01:59:45]MH_I2C_Read... [01:59:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:59:45]Read from MH i2c: E2 [01:59:45]MH_I2C_Read... [01:59:45]Read from MH i2c: E2 03 00 [01:59:45]MH_I2C_Read... [01:59:45]Read from MH i2c: E2 03 00 F7 07 00 90 00 72 [01:59:45]RAPDU: 90 00 [01:59:45]wFMCommunicate OK [01:59:45]wFMCommunicate request_size=255 [01:59:45]MH_SAM_APDU [01:59:45]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 88 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 90 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 11 91 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 [01:59:45]Write to MH i2c: E2 02 01 F8 07 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 88 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 90 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 11 91 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 00 00 C6 [01:59:45]Write i2c OK [01:59:45]MH_I2C_Read... [01:59:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:59:45]Read from MH i2c: E2 [01:59:45]MH_I2C_Read... [01:59:45]Read from MH i2c: E2 03 00 [01:59:45]MH_I2C_Read... [01:59:45]Read from MH i2c: E2 03 00 F8 07 00 90 00 73 [01:59:45]RAPDU: 90 00 [01:59:45]wFMCommunicate OK [01:59:45]wFMCommunicate request_size=37 [01:59:45]MH_SAM_APDU [01:59:45]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2C 6A 01 00 35 04 06 00 EB 5B BF 8C 17 06 [01:59:45]Write to MH i2c: E2 28 00 F9 07 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2C 6A 01 00 35 04 06 00 EB 5B BF 8C 17 06 00 00 1A [01:59:45]Write i2c OK [01:59:45]MH_I2C_Read... [01:59:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:59:45]Read from MH i2c: E2 [01:59:45]MH_I2C_Read... [01:59:45]Read from MH i2c: E2 03 00 [01:59:45]MH_I2C_Read... [01:59:45]Read from MH i2c: E2 03 00 F9 07 00 90 00 74 [01:59:45]RAPDU: 90 00 [01:59:45]wFMCommunicate OK [01:59:45]wFMCommunicate request_size=4 [01:59:45]MH_SAM_APDU [01:59:45]CAPDU: 80 0D 03 02 [01:59:45]Write to MH i2c: E2 08 00 FA 07 80 0D 03 02 00 00 00 00 7C [01:59:46]Write i2c OK [01:59:46]MH_I2C_Read... [01:59:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:59:46]Read from MH i2c: E2 [01:59:46]MH_I2C_Read... [01:59:46]Read from MH i2c: E2 0B 00 [01:59:46]MH_I2C_Read... [01:59:46]Read from MH i2c: E2 0B 00 FA 07 00 BC CC F0 6A D0 C0 BA 84 90 00 2D [01:59:46]RAPDU: BC CC F0 6A D0 C0 BA 84 90 00 [01:59:46]wFMCommunicate OK [01:59:46]SAM_PROTO_SignData done [01:59:46]FM_MakeSignedData done [01:59:46]CreateOFDProtocolMessage [01:59:46]wFMCommunicate request_size=4 [01:59:46]MH_SAM_APDU [01:59:46]CAPDU: 80 11 00 00 [01:59:46]Write to MH i2c: E2 08 00 FB 07 80 11 00 00 00 00 00 00 7C [01:59:46]Write i2c OK [01:59:46]MH_I2C_Read... [01:59:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:59:46]Read from MH i2c: E2 [01:59:46]MH_I2C_Read... [01:59:46]Read from MH i2c: E2 17 00 [01:59:46]MH_I2C_Read... [01:59:46]Read from MH i2c: E2 17 00 FB 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D3 [01:59:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:59:46]wFMCommunicate OK [01:59:46]CreateOFDProtocolMessage done [01:59:46]OFDSenderStorePacket 92716 [01:59:46]StoreOFDPacket docnum=92716 [01:59:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2A 01 00 00 AA 5B 22 01 30 2B 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 88 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 90 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 11 91 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2C 6A 01 00 35 04 06 00 EB 5B BF 8C 17 06 BC CC F0 6A D0 C0 BA 84 [01:59:46]CheckFolder [01:59:46]dirname=/storage/ofd_packets [01:59:46]CheckFolder done [01:59:46]ProducePacketName [01:59:46]name=ofd_packets/00092716 [01:59:46]NVStorageSaveData ofd_packets/00092716 [01:59:46]File name is /storage/ofd_packets/00092716 [01:59:46]Write 328 bytes [01:59:46]NVStorageSaveData done [01:59:46]OFDSenderStorePacket done [01:59:46]KKMCreateOFDPacket done [01:59:46]NVStorageSaveData kkm_last_timestamp [01:59:46]File name is /storage/kkm_last_timestamp [01:59:46]Write 4 bytes [01:59:46]NVStorageSaveData done [01:59:46]ExternCall_PrintAddStr [01:59:46]wPrintStart [01:59:46]Write to MH i2c: 01 00 00 FC 07 03 [01:59:46]Write i2c OK [01:59:46]MH_I2C_Read... [01:59:46]Read from MH i2c: 01 [01:59:46]MH_I2C_Read... [01:59:46]Read from MH i2c: 01 07 00 [01:59:46]MH_I2C_Read... [01:59:46]Read from MH i2c: 01 07 00 FC 07 00 00 00 00 00 FF 0F 18 [01:59:46]RasterBufferAndPrint [01:59:46]line Счет N : (3)127600 [01:59:46]line ИНН: 02508201610067 [01:59:46]line Контрольно-Кассовый Чек [01:59:46]line ПРОДАЖА [01:59:46]line Товар: 90162602 [01:59:46]line Энерг напиток Red bull 0,25л [01:59:46]line 2.000 * 185.00 [01:59:46]line = 370.00 [01:59:46]line НДС 12% НСП 1% [01:59:46]line > о реализуемом товаре [01:59:46]line ИТОГО: 370.00 [01:59:46]line НСП 1% : 3.27 [01:59:46]line НДС 12% : 39.29 [01:59:46]line Наличными: 0.00 [01:59:46]line Безнал.: 370.00 [01:59:46]line Место: АЗС № 5 "Партнер Нефть" [01:59:46]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [01:59:46]line СНО: Общий режим [01:59:46]line Чек 19 16.09.2024 01:59 [01:59:46]line Смена: 508 ФФД: 1.0 [01:59:46]line ЗНМ: 03000000022 [01:59:46]line РНМ: 0000000000091423 [01:59:46]line Версия ККМ: 001 [01:59:46]line Платежная система: О! деньги [01:59:46]line ФМ: 0000000000874692 [01:59:46]line ФД: 92716 [01:59:46]line ФПД: 258779288180486 [01:59:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T015945&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92716&fm=258779288180486&tin=02508201610067®Number=0000000000091423&sum=37000 [01:59:46]OFD Sender: Processing packet 92716 [packets to send 63, broken 62] [01:59:46]ProducePacketName [01:59:46]name=ofd_packets/00092716 [01:59:46]OFD Sender: To server: pG, [01:59:46]CommunicateWithHost lk.salyk.kg:30040 [01:59:46]ConnectInit lk.salyk.kg [01:59:46]line 0 [01:59:46]written 0, free lines is 4095 [01:59:46]Connected sock=8 [01:59:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2A 01 00 00 AA 5B 22 01 30 2B 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 88 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 90 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 11 91 E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2C 6A 01 00 35 04 06 00 EB 5B BF 8C 17 06 BC CC F0 6A D0 C0 BA 84 [01:59:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 49 97 47 00 0C 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2C 6A 01 00 F4 03 04 00 87 39 E7 66 B6 04 01 00 00 F2 F8 F0 98 17 C5 66 07 [01:59:46]CommunicateWithHost err = 0 [01:59:46]CheckOFDResponse [01:59:46]1017 (14) - 77093643461234 [01:59:46]1041 (16) - 0000000000874692 [01:59:46]1040 (4) - 92716 [01:59:46]1012 (4) - 15.09.2024 19:46 [01:59:46]1206 (1) - 0 [01:59:46]OFD Sender: Remove packet 92716 [01:59:46]ProducePacketName [01:59:46]name=ofd_packets/00092716 [01:59:46]NVStorageDeleteData [01:59:46]Write to MH i2c: 01 00 00 26 08 2E [01:59:46]Write i2c OK [01:59:46]MH_I2C_Read... [01:59:46]Read from MH i2c: 01 [01:59:46]MH_I2C_Read... [01:59:46]Read from MH i2c: 01 07 00 [01:59:46]MH_I2C_Read... [01:59:46]Read from MH i2c: 01 07 00 26 08 00 00 00 00 00 09 0D 4B [01:59:46]RasterBufferAndPrint [01:59:46]line [01:59:46]line [01:59:46]line [01:59:46]line [01:59:46]line [01:59:46]written 0, free lines is 3344 [01:59:46]MH_Cut [01:59:46]Write to MH i2c: D1 01 00 2D 08 01 07 [01:59:46]Write i2c OK [01:59:46]MH_I2C_Read... [01:59:46]Read from MH i2c: D1 [01:59:46]MH_I2C_Read... [01:59:46]Read from MH i2c: D1 01 00 [01:59:46]MH_I2C_Read... [01:59:46]Read from MH i2c: D1 01 00 2D 08 00 06 [01:59:46]Write to MH i2c: 01 00 00 2E 08 36 [01:59:46]Write i2c OK [01:59:46]MH_I2C_Read... [01:59:47]OFD Sender: No OFD packet to send [01:59:47]*** Cut start [01:59:47]*** Purtial cut [01:59:47]*** Stage 1: CUTSNS_PIN = 1 [01:59:49]Read from MH i2c: 01 [01:59:49]MH_I2C_Read... [01:59:49]*** Stop cut motor [01:59:49]*** Cut end [01:59:49]Read from MH i2c: 01 07 00 [01:59:49]MH_I2C_Read... [01:59:49]Read from MH i2c: 01 07 00 2E 08 00 00 00 00 00 FF 0F 4B [01:59:49]process_action close_receipt done [01:59:49]requested_data is exist [01:59:49]produce_requested_data [01:59:49]requested_item fm.sn is exist - process it [01:59:49]wFMCommunicate request_size=4 [01:59:49]MH_SAM_APDU [01:59:49]CAPDU: 80 11 00 00 [01:59:49]Write to MH i2c: E2 08 00 2F 08 80 11 00 00 00 00 00 00 B1 [01:59:49]Write i2c OK [01:59:49]MH_I2C_Read... [01:59:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:59:49]Read from MH i2c: E2 [01:59:49]MH_I2C_Read... [01:59:49]Read from MH i2c: E2 17 00 [01:59:49]MH_I2C_Read... [01:59:49]Read from MH i2c: E2 17 00 2F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 08 [01:59:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:59:49]wFMCommunicate OK [01:59:49]requested_item fd.num is exist - process it [01:59:49]SAM_PROTO_GetFieldsCounters [01:59:49]wFMCommunicate request_size=4 [01:59:49]MH_SAM_APDU [01:59:49]CAPDU: 80 13 00 00 [01:59:49]Write to MH i2c: E2 08 00 30 08 80 13 00 00 00 00 00 00 B4 [01:59:49]Write i2c OK [01:59:49]MH_I2C_Read... [01:59:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:59:49]Read from MH i2c: E2 [01:59:49]MH_I2C_Read... [01:59:49]Read from MH i2c: E2 62 00 [01:59:49]MH_I2C_Read... [01:59:49]Read from MH i2c: E2 62 00 30 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2C 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [01:59:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2C 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:59:49]wFMCommunicate OK [01:59:49]SAM_PROTO_GetFieldsCounters done [01:59:49]requested_item shift.num is exist - process it [01:59:49]requested_item shift.opened is exist - process it [01:59:49]req_shift_opened [01:59:49]FM_GetShiftState [01:59:49]SAM_PROTO_GetShiftState [01:59:49]wFMCommunicate request_size=4 [01:59:49]MH_SAM_APDU [01:59:49]CAPDU: 80 13 01 00 [01:59:49]Write to MH i2c: E2 08 00 31 08 80 13 01 00 00 00 00 00 B6 [01:59:49]Write i2c OK [01:59:49]MH_I2C_Read... [01:59:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:59:49]Read from MH i2c: E2 [01:59:49]MH_I2C_Read... [01:59:49]Read from MH i2c: E2 0E 00 [01:59:49]MH_I2C_Read... [01:59:49]Read from MH i2c: E2 0E 00 31 08 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 4F [01:59:49]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [01:59:49]wFMCommunicate OK [01:59:49]SAM_PROTO_GetShiftState done [01:59:49]FM_GetShiftState done [01:59:49]req_shift_opened done [01:59:49]requested_item shift.open_date is exist - process it [01:59:49]req_shift_open_date [01:59:49]req_shift_open_date done [01:59:49]produce_requested_data done [01:59:49]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92716,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278} [01:59:49]process_action_free close_receipt [01:59:49]json_value_free [01:59:49]json_value_free done [01:59:49]process_json_proto returns [01:59:49]Send response to host [01:59:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92716,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278}}} [01:59:49]free response buf [01:59:49]execute_script done [01:59:49]execute_script returns [01:59:49]free content buf [01:59:49]Sock 6.Close socket [01:59:49]Sock 6.Thread stoped [01:59:52]OFD Sender: No OFD packet to send [01:59:57]OFD Sender: No OFD packet to send [02:00:02]OFD Sender: No OFD packet to send [02:00:07]OFD Sender: No OFD packet to send [02:00:12]OFD Sender: No OFD packet to send [02:00:17]OFD Sender: No OFD packet to send [02:00:22]OFD Sender: No OFD packet to send [02:00:27]OFD Sender: No OFD packet to send [02:00:32]OFD Sender: No OFD packet to send [02:00:37]OFD Sender: No OFD packet to send [02:00:42]OFD Sender: No OFD packet to send [02:00:47]OFD Sender: No OFD packet to send [02:00:52]OFD Sender: No OFD packet to send [02:00:57]OFD Sender: No OFD packet to send [02:01:02]OFD Sender: No OFD packet to send [02:01:07]OFD Sender: No OFD packet to send [02:01:12]OFD Sender: No OFD packet to send [02:01:17]OFD Sender: No OFD packet to send [02:01:22]OFD Sender: No OFD packet to send [02:01:27]OFD Sender: No OFD packet to send [02:01:32]OFD Sender: No OFD packet to send [02:01:37]OFD Sender: No OFD packet to send [02:01:42]OFD Sender: No OFD packet to send [02:01:47]OFD Sender: No OFD packet to send [02:01:52]OFD Sender: No OFD packet to send [02:01:57]OFD Sender: No OFD packet to send [02:02:02]OFD Sender: No OFD packet to send [02:02:07]OFD Sender: No OFD packet to send [02:02:12]OFD Sender: No OFD packet to send [02:02:17]OFD Sender: No OFD packet to send [02:02:22]OFD Sender: No OFD packet to send [02:02:27]OFD Sender: No OFD packet to send [02:02:32]OFD Sender: No OFD packet to send [02:02:37]OFD Sender: No OFD packet to send [02:02:42]OFD Sender: No OFD packet to send [02:02:47]OFD Sender: No OFD packet to send [02:02:52]OFD Sender: No OFD packet to send [02:02:57]OFD Sender: No OFD packet to send [02:03:02]OFD Sender: No OFD packet to send [02:03:07]OFD Sender: No OFD packet to send [02:03:12]OFD Sender: No OFD packet to send [02:03:17]OFD Sender: No OFD packet to send [02:03:22]OFD Sender: No OFD packet to send [02:03:27]OFD Sender: No OFD packet to send [02:03:32]OFD Sender: No OFD packet to send [02:03:37]OFD Sender: No OFD packet to send [02:03:42]OFD Sender: No OFD packet to send [02:03:47]OFD Sender: No OFD packet to send [02:03:52]OFD Sender: No OFD packet to send [02:03:57]OFD Sender: No OFD packet to send [02:04:02]OFD Sender: No OFD packet to send [02:04:07]OFD Sender: No OFD packet to send [02:04:12]OFD Sender: No OFD packet to send [02:04:17]OFD Sender: No OFD packet to send [02:04:22]OFD Sender: No OFD packet to send [02:04:27]OFD Sender: No OFD packet to send [02:04:32]OFD Sender: No OFD packet to send [02:04:37]OFD Sender: No OFD packet to send [02:04:42]OFD Sender: No OFD packet to send [02:04:47]OFD Sender: No OFD packet to send [02:04:52]OFD Sender: No OFD packet to send [02:04:57]OFD Sender: No OFD packet to send [02:05:02]OFD Sender: No OFD packet to send [02:05:07]OFD Sender: No OFD packet to send [02:05:12]OFD Sender: No OFD packet to send [02:05:17]OFD Sender: No OFD packet to send [02:05:22]OFD Sender: No OFD packet to send [02:05:27]OFD Sender: No OFD packet to send [02:05:32]OFD Sender: No OFD packet to send [02:05:37]OFD Sender: No OFD packet to send [02:05:42]OFD Sender: No OFD packet to send [02:05:47]OFD Sender: No OFD packet to send [02:05:52]OFD Sender: No OFD packet to send [02:05:57]OFD Sender: No OFD packet to send [02:06:02]OFD Sender: No OFD packet to send [02:06:07]OFD Sender: No OFD packet to send [02:06:12]OFD Sender: No OFD packet to send [02:06:17]OFD Sender: No OFD packet to send [02:06:22]OFD Sender: No OFD packet to send [02:06:27]OFD Sender: No OFD packet to send [02:06:32]OFD Sender: No OFD packet to send [02:06:37]OFD Sender: No OFD packet to send [02:06:42]OFD Sender: No OFD packet to send [02:06:47]OFD Sender: No OFD packet to send [02:06:52]OFD Sender: No OFD packet to send [02:06:57]OFD Sender: No OFD packet to send [02:07:02]OFD Sender: No OFD packet to send [02:07:07]OFD Sender: No OFD packet to send [02:07:12]OFD Sender: No OFD packet to send [02:07:17]OFD Sender: No OFD packet to send [02:07:22]OFD Sender: No OFD packet to send [02:07:27]OFD Sender: No OFD packet to send [02:07:32]OFD Sender: No OFD packet to send [02:07:37]OFD Sender: No OFD packet to send [02:07:42]OFD Sender: No OFD packet to send [02:07:47]OFD Sender: No OFD packet to send [02:07:52]OFD Sender: No OFD packet to send [02:07:57]OFD Sender: No OFD packet to send [02:08:02]OFD Sender: No OFD packet to send [02:08:07]OFD Sender: No OFD packet to send [02:08:12]OFD Sender: No OFD packet to send [02:08:17]OFD Sender: No OFD packet to send [02:08:22]OFD Sender: No OFD packet to send [02:08:27]OFD Sender: No OFD packet to send [02:08:32]OFD Sender: No OFD packet to send [02:08:37]OFD Sender: No OFD packet to send [02:08:42]OFD Sender: No OFD packet to send [02:08:47]OFD Sender: No OFD packet to send [02:08:52]OFD Sender: No OFD packet to send [02:08:57]OFD Sender: No OFD packet to send [02:09:02]OFD Sender: No OFD packet to send [02:09:07]OFD Sender: No OFD packet to send [02:09:12]OFD Sender: No OFD packet to send [02:09:17]OFD Sender: No OFD packet to send [02:09:22]OFD Sender: No OFD packet to send [02:09:27]OFD Sender: No OFD packet to send [02:09:32]OFD Sender: No OFD packet to send [02:09:37]OFD Sender: No OFD packet to send [02:09:42]OFD Sender: No OFD packet to send [02:09:47]OFD Sender: No OFD packet to send [02:09:52]OFD Sender: No OFD packet to send [02:09:57]OFD Sender: No OFD packet to send [02:10:02]OFD Sender: No OFD packet to send [02:10:07]OFD Sender: No OFD packet to send [02:10:12]OFD Sender: No OFD packet to send [02:10:17]OFD Sender: No OFD packet to send [02:10:22]OFD Sender: No OFD packet to send [02:10:27]OFD Sender: No OFD packet to send [02:10:32]OFD Sender: No OFD packet to send [02:10:37]OFD Sender: No OFD packet to send [02:10:42]OFD Sender: No OFD packet to send [02:10:47]OFD Sender: No OFD packet to send [02:10:52]OFD Sender: No OFD packet to send [02:10:57]OFD Sender: No OFD packet to send [02:11:02]OFD Sender: No OFD packet to send [02:11:07]OFD Sender: No OFD packet to send [02:11:12]OFD Sender: No OFD packet to send [02:11:17]OFD Sender: No OFD packet to send [02:11:22]OFD Sender: No OFD packet to send [02:11:27]OFD Sender: No OFD packet to send [02:11:32]OFD Sender: No OFD packet to send [02:11:37]OFD Sender: No OFD packet to send [02:11:42]OFD Sender: No OFD packet to send [02:11:47]OFD Sender: No OFD packet to send [02:11:52]OFD Sender: No OFD packet to send [02:11:57]OFD Sender: No OFD packet to send [02:12:02]OFD Sender: No OFD packet to send [02:12:07]OFD Sender: No OFD packet to send [02:12:12]OFD Sender: No OFD packet to send [02:12:17]OFD Sender: No OFD packet to send [02:12:22]OFD Sender: No OFD packet to send [02:12:27]OFD Sender: No OFD packet to send [02:12:32]OFD Sender: No OFD packet to send [02:12:37]OFD Sender: No OFD packet to send [02:12:42]OFD Sender: No OFD packet to send [02:12:47]OFD Sender: No OFD packet to send [02:12:52]OFD Sender: No OFD packet to send [02:12:57]OFD Sender: No OFD packet to send [02:13:02]OFD Sender: No OFD packet to send [02:13:07]OFD Sender: No OFD packet to send [02:13:12]OFD Sender: No OFD packet to send [02:13:18]OFD Sender: No OFD packet to send [02:13:23]OFD Sender: No OFD packet to send [02:13:28]OFD Sender: No OFD packet to send [02:13:33]OFD Sender: No OFD packet to send [02:13:38]OFD Sender: No OFD packet to send [02:13:43]OFD Sender: No OFD packet to send [02:13:48]OFD Sender: No OFD packet to send [02:13:53]OFD Sender: No OFD packet to send [02:13:58]OFD Sender: No OFD packet to send [02:14:03]OFD Sender: No OFD packet to send [02:14:08]OFD Sender: No OFD packet to send [02:14:13]OFD Sender: No OFD packet to send [02:14:18]OFD Sender: No OFD packet to send [02:14:23]OFD Sender: No OFD packet to send [02:14:28]OFD Sender: No OFD packet to send [02:14:33]OFD Sender: No OFD packet to send [02:14:38]OFD Sender: No OFD packet to send [02:14:43]OFD Sender: No OFD packet to send [02:14:48]OFD Sender: No OFD packet to send [02:14:53]OFD Sender: No OFD packet to send [02:14:58]OFD Sender: No OFD packet to send [02:15:03]OFD Sender: No OFD packet to send [02:15:08]OFD Sender: No OFD packet to send [02:15:13]OFD Sender: No OFD packet to send [02:15:18]OFD Sender: No OFD packet to send [02:15:23]OFD Sender: No OFD packet to send [02:15:28]OFD Sender: No OFD packet to send [02:15:33]OFD Sender: No OFD packet to send [02:15:38]OFD Sender: No OFD packet to send [02:15:43]OFD Sender: No OFD packet to send [02:15:48]OFD Sender: No OFD packet to send [02:15:53]OFD Sender: No OFD packet to send [02:15:58]OFD Sender: No OFD packet to send [02:16:03]OFD Sender: No OFD packet to send [02:16:08]OFD Sender: No OFD packet to send [02:16:13]OFD Sender: No OFD packet to send [02:16:18]OFD Sender: No OFD packet to send [02:16:23]OFD Sender: No OFD packet to send [02:16:28]OFD Sender: No OFD packet to send [02:16:33]OFD Sender: No OFD packet to send [02:16:38]OFD Sender: No OFD packet to send [02:16:43]OFD Sender: No OFD packet to send [02:16:48]OFD Sender: No OFD packet to send [02:16:53]OFD Sender: No OFD packet to send [02:16:58]OFD Sender: No OFD packet to send [02:17:03]OFD Sender: No OFD packet to send [02:17:08]OFD Sender: No OFD packet to send [02:17:13]OFD Sender: No OFD packet to send [02:17:18]OFD Sender: No OFD packet to send [02:17:23]OFD Sender: No OFD packet to send [02:17:28]OFD Sender: No OFD packet to send [02:17:33]OFD Sender: No OFD packet to send [02:17:38]OFD Sender: No OFD packet to send [02:17:43]OFD Sender: No OFD packet to send [02:17:48]OFD Sender: No OFD packet to send [02:17:53]OFD Sender: No OFD packet to send [02:17:58]OFD Sender: No OFD packet to send [02:18:03]OFD Sender: No OFD packet to send [02:18:08]OFD Sender: No OFD packet to send [02:18:13]OFD Sender: No OFD packet to send [02:18:18]OFD Sender: No OFD packet to send [02:18:23]OFD Sender: No OFD packet to send [02:18:28]OFD Sender: No OFD packet to send [02:18:33]OFD Sender: No OFD packet to send [02:18:38]OFD Sender: No OFD packet to send [02:18:43]OFD Sender: No OFD packet to send [02:18:48]OFD Sender: No OFD packet to send [02:18:53]OFD Sender: No OFD packet to send [02:18:58]OFD Sender: No OFD packet to send [02:19:03]OFD Sender: No OFD packet to send [02:19:08]OFD Sender: No OFD packet to send [02:19:13]OFD Sender: No OFD packet to send [02:19:18]OFD Sender: No OFD packet to send [02:19:23]OFD Sender: No OFD packet to send [02:19:28]OFD Sender: No OFD packet to send [02:19:33]OFD Sender: No OFD packet to send [02:19:38]OFD Sender: No OFD packet to send [02:19:43]OFD Sender: No OFD packet to send [02:19:48]OFD Sender: No OFD packet to send [02:19:53]OFD Sender: No OFD packet to send [02:19:58]OFD Sender: No OFD packet to send [02:20:03]OFD Sender: No OFD packet to send [02:20:08]OFD Sender: No OFD packet to send [02:20:13]OFD Sender: No OFD packet to send [02:20:18]OFD Sender: No OFD packet to send [02:20:23]OFD Sender: No OFD packet to send [02:20:28]OFD Sender: No OFD packet to send [02:20:33]OFD Sender: No OFD packet to send [02:20:38]OFD Sender: No OFD packet to send [02:20:43]OFD Sender: No OFD packet to send [02:20:48]OFD Sender: No OFD packet to send [02:20:53]OFD Sender: No OFD packet to send [02:20:58]OFD Sender: No OFD packet to send [02:21:03]OFD Sender: No OFD packet to send [02:21:08]OFD Sender: No OFD packet to send [02:21:13]OFD Sender: No OFD packet to send [02:21:18]OFD Sender: No OFD packet to send [02:21:23]OFD Sender: No OFD packet to send [02:21:28]OFD Sender: No OFD packet to send [02:21:33]OFD Sender: No OFD packet to send [02:21:38]OFD Sender: No OFD packet to send [02:21:43]OFD Sender: No OFD packet to send [02:21:48]OFD Sender: No OFD packet to send [02:21:53]OFD Sender: No OFD packet to send [02:21:58]OFD Sender: No OFD packet to send [02:22:03]OFD Sender: No OFD packet to send [02:22:08]OFD Sender: No OFD packet to send [02:22:13]OFD Sender: No OFD packet to send [02:22:18]OFD Sender: No OFD packet to send [02:22:23]OFD Sender: No OFD packet to send [02:22:28]OFD Sender: No OFD packet to send [02:22:33]OFD Sender: No OFD packet to send [02:22:38]OFD Sender: No OFD packet to send [02:22:43]OFD Sender: No OFD packet to send [02:22:48]OFD Sender: No OFD packet to send [02:22:53]OFD Sender: No OFD packet to send [02:22:58]OFD Sender: No OFD packet to send [02:23:03]OFD Sender: No OFD packet to send [02:23:08]OFD Sender: No OFD packet to send [02:23:13]OFD Sender: No OFD packet to send [02:23:18]OFD Sender: No OFD packet to send [02:23:23]OFD Sender: No OFD packet to send [02:23:28]OFD Sender: No OFD packet to send [02:23:33]OFD Sender: No OFD packet to send [02:23:38]OFD Sender: No OFD packet to send [02:23:43]OFD Sender: No OFD packet to send [02:23:48]OFD Sender: No OFD packet to send [02:23:53]OFD Sender: No OFD packet to send [02:23:58]OFD Sender: No OFD packet to send [02:24:03]OFD Sender: No OFD packet to send [02:24:08]OFD Sender: No OFD packet to send [02:24:13]OFD Sender: No OFD packet to send [02:24:18]OFD Sender: No OFD packet to send [02:24:23]OFD Sender: No OFD packet to send [02:24:28]OFD Sender: No OFD packet to send [02:24:33]OFD Sender: No OFD packet to send [02:24:38]OFD Sender: No OFD packet to send [02:24:43]OFD Sender: No OFD packet to send [02:24:48]OFD Sender: No OFD packet to send [02:24:53]OFD Sender: No OFD packet to send [02:24:58]OFD Sender: No OFD packet to send [02:25:03]OFD Sender: No OFD packet to send [02:25:08]OFD Sender: No OFD packet to send [02:25:13]OFD Sender: No OFD packet to send [02:25:18]OFD Sender: No OFD packet to send [02:25:23]OFD Sender: No OFD packet to send [02:25:28]OFD Sender: No OFD packet to send [02:25:33]OFD Sender: No OFD packet to send [02:25:38]OFD Sender: No OFD packet to send [02:25:43]OFD Sender: No OFD packet to send [02:25:48]OFD Sender: No OFD packet to send [02:25:53]OFD Sender: No OFD packet to send [02:25:58]OFD Sender: No OFD packet to send [02:26:03]OFD Sender: No OFD packet to send [02:26:08]OFD Sender: No OFD packet to send [02:26:13]OFD Sender: No OFD packet to send [02:26:18]OFD Sender: No OFD packet to send [02:26:23]OFD Sender: No OFD packet to send [02:26:28]OFD Sender: No OFD packet to send [02:26:33]OFD Sender: No OFD packet to send [02:26:38]OFD Sender: No OFD packet to send [02:26:43]OFD Sender: No OFD packet to send [02:26:48]OFD Sender: No OFD packet to send [02:26:53]OFD Sender: No OFD packet to send [02:26:58]OFD Sender: No OFD packet to send [02:27:03]OFD Sender: No OFD packet to send [02:27:08]OFD Sender: No OFD packet to send [02:27:13]OFD Sender: No OFD packet to send [02:27:18]OFD Sender: No OFD packet to send [02:27:23]OFD Sender: No OFD packet to send [02:27:28]OFD Sender: No OFD packet to send [02:27:33]OFD Sender: No OFD packet to send [02:27:38]OFD Sender: No OFD packet to send [02:27:43]OFD Sender: No OFD packet to send [02:27:48]OFD Sender: No OFD packet to send [02:27:53]OFD Sender: No OFD packet to send [02:27:58]OFD Sender: No OFD packet to send [02:28:03]OFD Sender: No OFD packet to send [02:28:08]OFD Sender: No OFD packet to send [02:28:13]OFD Sender: No OFD packet to send [02:28:18]OFD Sender: No OFD packet to send [02:28:23]OFD Sender: No OFD packet to send [02:28:28]OFD Sender: No OFD packet to send [02:28:33]OFD Sender: No OFD packet to send [02:28:38]OFD Sender: No OFD packet to send [02:28:43]OFD Sender: No OFD packet to send [02:28:48]OFD Sender: No OFD packet to send [02:28:53]OFD Sender: No OFD packet to send [02:28:58]OFD Sender: No OFD packet to send [02:29:03]OFD Sender: No OFD packet to send [02:29:08]OFD Sender: No OFD packet to send [02:29:13]OFD Sender: No OFD packet to send [02:29:18]OFD Sender: No OFD packet to send [02:29:23]OFD Sender: No OFD packet to send [02:29:28]OFD Sender: No OFD packet to send [02:29:33]OFD Sender: No OFD packet to send [02:29:38]OFD Sender: No OFD packet to send [02:29:43]OFD Sender: No OFD packet to send [02:29:48]OFD Sender: No OFD packet to send [02:29:53]OFD Sender: No OFD packet to send [02:29:58]OFD Sender: No OFD packet to send [02:30:03]OFD Sender: No OFD packet to send [02:30:08]OFD Sender: No OFD packet to send [02:30:13]OFD Sender: No OFD packet to send [02:30:18]OFD Sender: No OFD packet to send [02:30:23]OFD Sender: No OFD packet to send [02:30:28]OFD Sender: No OFD packet to send [02:30:33]OFD Sender: No OFD packet to send [02:30:38]OFD Sender: No OFD packet to send [02:30:43]OFD Sender: No OFD packet to send [02:30:49]OFD Sender: No OFD packet to send [02:30:54]OFD Sender: No OFD packet to send [02:30:59]OFD Sender: No OFD packet to send [02:31:04]OFD Sender: No OFD packet to send [02:31:09]OFD Sender: No OFD packet to send [02:31:14]OFD Sender: No OFD packet to send [02:31:19]OFD Sender: No OFD packet to send [02:31:24]OFD Sender: No OFD packet to send [02:31:29]OFD Sender: No OFD packet to send [02:31:34]OFD Sender: No OFD packet to send [02:31:39]OFD Sender: No OFD packet to send [02:31:44]OFD Sender: No OFD packet to send [02:31:49]OFD Sender: No OFD packet to send [02:31:54]OFD Sender: No OFD packet to send [02:31:59]OFD Sender: No OFD packet to send [02:32:04]OFD Sender: No OFD packet to send [02:32:09]OFD Sender: No OFD packet to send [02:32:14]OFD Sender: No OFD packet to send [02:32:19]OFD Sender: No OFD packet to send [02:32:24]OFD Sender: No OFD packet to send [02:32:29]OFD Sender: No OFD packet to send [02:32:34]OFD Sender: No OFD packet to send [02:32:39]OFD Sender: No OFD packet to send [02:32:44]OFD Sender: No OFD packet to send [02:32:49]OFD Sender: No OFD packet to send [02:32:54]OFD Sender: No OFD packet to send [02:32:59]OFD Sender: No OFD packet to send [02:33:04]OFD Sender: No OFD packet to send [02:33:09]OFD Sender: No OFD packet to send [02:33:14]OFD Sender: No OFD packet to send [02:33:19]OFD Sender: No OFD packet to send [02:33:24]OFD Sender: No OFD packet to send [02:33:29]OFD Sender: No OFD packet to send [02:33:34]OFD Sender: No OFD packet to send [02:33:39]OFD Sender: No OFD packet to send [02:33:44]OFD Sender: No OFD packet to send [02:33:49]OFD Sender: No OFD packet to send [02:33:54]OFD Sender: No OFD packet to send [02:33:59]OFD Sender: No OFD packet to send [02:34:04]OFD Sender: No OFD packet to send [02:34:09]OFD Sender: No OFD packet to send [02:34:14]OFD Sender: No OFD packet to send [02:34:19]OFD Sender: No OFD packet to send [02:34:24]OFD Sender: No OFD packet to send [02:34:29]OFD Sender: No OFD packet to send [02:34:34]OFD Sender: No OFD packet to send [02:34:39]OFD Sender: No OFD packet to send [02:34:44]OFD Sender: No OFD packet to send [02:34:49]OFD Sender: No OFD packet to send [02:34:54]OFD Sender: No OFD packet to send [02:34:59]OFD Sender: No OFD packet to send [02:35:04]OFD Sender: No OFD packet to send [02:35:09]OFD Sender: No OFD packet to send [02:35:14]OFD Sender: No OFD packet to send [02:35:19]OFD Sender: No OFD packet to send [02:35:24]OFD Sender: No OFD packet to send [02:35:29]OFD Sender: No OFD packet to send [02:35:34]OFD Sender: No OFD packet to send [02:35:39]OFD Sender: No OFD packet to send [02:35:44]OFD Sender: No OFD packet to send [02:35:49]OFD Sender: No OFD packet to send [02:35:54]OFD Sender: No OFD packet to send [02:35:59]OFD Sender: No OFD packet to send [02:36:04]OFD Sender: No OFD packet to send [02:36:09]OFD Sender: No OFD packet to send [02:36:14]OFD Sender: No OFD packet to send [02:36:19]OFD Sender: No OFD packet to send [02:36:24]OFD Sender: No OFD packet to send [02:36:29]OFD Sender: No OFD packet to send [02:36:34]OFD Sender: No OFD packet to send [02:36:39]OFD Sender: No OFD packet to send [02:36:44]OFD Sender: No OFD packet to send [02:36:49]OFD Sender: No OFD packet to send [02:36:54]OFD Sender: No OFD packet to send [02:36:59]OFD Sender: No OFD packet to send [02:37:04]OFD Sender: No OFD packet to send [02:37:09]OFD Sender: No OFD packet to send [02:37:14]OFD Sender: No OFD packet to send [02:37:19]OFD Sender: No OFD packet to send [02:37:24]OFD Sender: No OFD packet to send [02:37:29]OFD Sender: No OFD packet to send [02:37:34]OFD Sender: No OFD packet to send [02:37:39]OFD Sender: No OFD packet to send [02:37:44]OFD Sender: No OFD packet to send [02:37:49]OFD Sender: No OFD packet to send [02:37:54]OFD Sender: No OFD packet to send [02:37:59]OFD Sender: No OFD packet to send [02:38:04]OFD Sender: No OFD packet to send [02:38:09]OFD Sender: No OFD packet to send [02:38:14]OFD Sender: No OFD packet to send [02:38:19]OFD Sender: No OFD packet to send [02:38:24]OFD Sender: No OFD packet to send [02:38:29]OFD Sender: No OFD packet to send [02:38:34]OFD Sender: No OFD packet to send [02:38:39]OFD Sender: No OFD packet to send [02:38:44]OFD Sender: No OFD packet to send [02:38:49]OFD Sender: No OFD packet to send [02:38:54]OFD Sender: No OFD packet to send [02:38:59]OFD Sender: No OFD packet to send [02:39:04]OFD Sender: No OFD packet to send [02:39:09]OFD Sender: No OFD packet to send [02:39:14]OFD Sender: No OFD packet to send [02:39:19]OFD Sender: No OFD packet to send [02:39:24]OFD Sender: No OFD packet to send [02:39:29]OFD Sender: No OFD packet to send [02:39:34]OFD Sender: No OFD packet to send [02:39:39]OFD Sender: No OFD packet to send [02:39:44]OFD Sender: No OFD packet to send [02:39:49]OFD Sender: No OFD packet to send [02:39:54]OFD Sender: No OFD packet to send [02:39:59]OFD Sender: No OFD packet to send [02:40:04]OFD Sender: No OFD packet to send [02:40:09]OFD Sender: No OFD packet to send [02:40:14]OFD Sender: No OFD packet to send [02:40:19]OFD Sender: No OFD packet to send [02:40:24]OFD Sender: No OFD packet to send [02:40:29]OFD Sender: No OFD packet to send [02:40:34]OFD Sender: No OFD packet to send [02:40:39]OFD Sender: No OFD packet to send [02:40:44]OFD Sender: No OFD packet to send [02:40:49]OFD Sender: No OFD packet to send [02:40:54]OFD Sender: No OFD packet to send [02:40:59]OFD Sender: No OFD packet to send [02:41:04]OFD Sender: No OFD packet to send [02:41:09]OFD Sender: No OFD packet to send [02:41:14]OFD Sender: No OFD packet to send [02:41:19]OFD Sender: No OFD packet to send [02:41:24]OFD Sender: No OFD packet to send [02:41:29]OFD Sender: No OFD packet to send [02:41:34]OFD Sender: No OFD packet to send [02:41:39]OFD Sender: No OFD packet to send [02:41:44]OFD Sender: No OFD packet to send [02:41:49]OFD Sender: No OFD packet to send [02:41:54]OFD Sender: No OFD packet to send [02:41:59]OFD Sender: No OFD packet to send [02:42:00]accept exits with 7 [02:42:00]New connection [02:42:00]New thread 3066752356 created [02:42:00]Thread 3066608996 joined [02:42:00]Waiting for new connection... [02:42:00] Sock 7.Parse request [02:42:00]Sock 7.Check first char [02:42:00]Sock 7.First char is OK [02:42:00]request: POST /json_proto HTTP/1.0 [02:42:00]Method: POST [02:42:00]URL: /json_proto [02:42:00]Method is POST - this is cgi request [02:42:00]url: /json_proto [02:42:00]query_string will be loaded in cgi processing [02:42:00]execute_cgi json_proto POST (null) [02:42:00]execute_cgi path=json_proto method=POST [02:42:00]POST find Content-Length [02:42:00]Host: 172.17.57.71:8080 [02:42:00]Content-Length: 869 [02:42:00]Content-Type: application/json [02:42:00] [02:42:00]POST finish read [02:42:00]Found Content-Length = 869 [02:42:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127601", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5904310231343", "name": "\u041B\u0435\u0434\u0435\u043D\u0435\u0446 Johny Bee BOOTS POP", "price" : 212.00, "quantity" : 1.000, "sum" : 212.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 252.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:42:00]execute_script... [02:42:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127601", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5904310231343", "name": "\u041B\u0435\u0434\u0435\u043D\u0435\u0446 Johny Bee BOOTS POP", "price" : 212.00, "quantity" : 1.000, "sum" : 212.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 252.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:42:00]POST & json_proto [02:42:00]process_json_proto [02:42:00]json parsed OK: [02:42:00]protocol is kg_v1.0 [02:42:00]action value=close_receipt [02:42:00]process_action close_receipt [02:42:00]cmd_close_receipt [02:42:00]MH_GetDate [02:42:00]Write to MH i2c: F0 00 00 32 08 29 [02:42:00]Write i2c OK [02:42:00]MH_I2C_Read... [02:42:00]Read from MH i2c: F0 [02:42:00]MH_I2C_Read... [02:42:00]Read from MH i2c: F0 09 00 [02:42:00]MH_I2C_Read... [02:42:00]Read from MH i2c: F0 09 00 32 08 00 F9 9A E7 66 33 3A A4 66 89 [02:42:00]GetLastDocTimeStamp 1726451985 [02:42:00]current date 1726454521 [02:42:00]FM_GetShiftState [02:42:00]SAM_PROTO_GetShiftState [02:42:00]wFMCommunicate request_size=4 [02:42:00]MH_SAM_APDU [02:42:00]CAPDU: 80 13 01 00 [02:42:00]Write to MH i2c: E2 08 00 33 08 80 13 01 00 00 00 00 00 B8 [02:42:00]Write i2c OK [02:42:00]MH_I2C_Read... [02:42:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:42:00]Read from MH i2c: E2 [02:42:00]MH_I2C_Read... [02:42:00]Read from MH i2c: E2 0E 00 [02:42:00]MH_I2C_Read... [02:42:00]Read from MH i2c: E2 0E 00 33 08 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 51 [02:42:00]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [02:42:00]wFMCommunicate OK [02:42:00]SAM_PROTO_GetShiftState done [02:42:00]FM_GetShiftState done [02:42:00]opened in 1726446278 [02:42:00]opened+sec_in_day 1726532678 [02:42:00]quantity*price = 4000 [02:42:00]sum+1 = 4001 [02:42:00]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5904310231343 Леденец Johny Bee BOOTS POP 1.000 * 212.00 = 212.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 252.00 НСП 1% : 2.23 НДС 12% : 26.76 Наличными: 252.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 20 16.09.2024 02:42 Смена: 508 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92717 ФПД: 215355483547537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T024201&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92717&fm=215355483547537&tin=02508201610067®Number=0000000000091423&sum=25200 0 [02:42:01]StoreToDocumentArchive [02:42:01]shift 508 fd 92717 [02:42:01]save to /storage/0508/doc_00092717 [02:42:01]save last doc name /storage/0508/doc_00092717 to /storage/kkm_last_doc_name [02:42:01]save OK [02:42:01]Clear old archive folders... [02:42:01]ProcessDocumentItem done err = 0, tmpTLVsize=377 [02:42:01]tlvbuf is 017F3B30 [02:42:01]SAM_PROTO_ClearQueue [02:42:01]wFMCommunicate request_size=4 [02:42:01]MH_SAM_APDU [02:42:01]CAPDU: 80 09 00 00 [02:42:01]Write to MH i2c: E2 08 00 40 08 80 09 00 00 00 00 00 00 BA [02:42:01]Write i2c OK [02:42:01]MH_I2C_Read... [02:42:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:42:01]Read from MH i2c: E2 [02:42:01]MH_I2C_Read... [02:42:01]Read from MH i2c: E2 03 00 [02:42:01]MH_I2C_Read... [02:42:01]Read from MH i2c: E2 03 00 40 08 00 90 00 BC [02:42:01]RAPDU: 90 00 [02:42:01]wFMCommunicate OK [02:42:01]SAM_PROTO_ClearQueue done [02:42:01]KKMCreateOFDPacket [02:42:01]OFDProtocolAddRootSTLVToBuf [02:42:01]FM_MakeSignedData [02:42:01]FM_MakeSignedData [02:42:01]SAM_PROTO_SignData [02:42:01]wFMCommunicate request_size=4 [02:42:01]MH_SAM_APDU [02:42:01]CAPDU: 80 0D 01 02 [02:42:01]Write to MH i2c: E2 08 00 41 08 80 0D 01 02 00 00 00 00 C2 [02:42:01]Write i2c OK [02:42:01]MH_I2C_Read... [02:42:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:42:01]Read from MH i2c: E2 [02:42:01]MH_I2C_Read... [02:42:01]Read from MH i2c: E2 03 00 [02:42:01]MH_I2C_Read... [02:42:01]Read from MH i2c: E2 03 00 41 08 00 90 00 BD [02:42:01]RAPDU: 90 00 [02:42:01]wFMCommunicate OK [02:42:01]wFMCommunicate request_size=255 [02:42:01]MH_SAM_APDU [02:42:01]CAPDU: 80 0D 02 02 FA 03 00 79 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 35 39 30 34 33 31 30 32 33 31 33 34 33 06 04 22 00 D0 9B D0 B5 D0 B4 D0 B5 D0 BD D0 B5 D1 86 20 4A 6F 68 6E 79 20 42 65 65 20 42 4F 4F 54 53 20 50 4F 50 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 52 00 00 00 00 13 04 06 00 D0 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 00 00 00 00 00 EE [02:42:01]Write to MH i2c: E2 02 01 42 08 80 0D 02 02 FA 00 03 00 79 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 35 39 30 34 33 31 30 32 33 31 33 34 33 06 04 22 00 D0 9B D0 B5 D0 B4 D0 B5 D0 BD D0 B5 D1 86 20 4A 6F 68 6E 79 20 42 65 65 20 42 4F 4F 54 53 20 50 4F 50 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 52 00 00 00 00 13 04 06 00 D0 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 00 00 00 00 00 EE 00 00 C3 [02:42:01]Write i2c OK [02:42:01]MH_I2C_Read... [02:42:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:42:02]Read from MH i2c: E2 [02:42:02]MH_I2C_Read... [02:42:02]Read from MH i2c: E2 03 00 [02:42:02]MH_I2C_Read... [02:42:02]Read from MH i2c: E2 03 00 42 08 00 90 00 BE [02:42:02]RAPDU: 90 00 [02:42:02]wFMCommunicate OK [02:42:02]wFMCommunicate request_size=136 [02:42:02]MH_SAM_APDU [02:42:02]CAPDU: 80 0D 02 02 83 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0A 00 00 00 00 07 04 06 00 70 62 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 F9 9A E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2D 6A 01 00 35 04 06 00 C3 DD 5B 18 E7 91 [02:42:02]Write to MH i2c: E2 8B 00 43 08 80 0D 02 02 83 00 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0A 00 00 00 00 07 04 06 00 70 62 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 F9 9A E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2D 6A 01 00 35 04 06 00 C3 DD 5B 18 E7 91 00 00 6C [02:42:02]Write i2c OK [02:42:02]MH_I2C_Read... [02:42:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:42:02]Read from MH i2c: E2 [02:42:02]MH_I2C_Read... [02:42:02]Read from MH i2c: E2 03 00 [02:42:02]MH_I2C_Read... [02:42:02]Read from MH i2c: E2 03 00 43 08 00 90 00 BF [02:42:02]RAPDU: 90 00 [02:42:02]wFMCommunicate OK [02:42:02]wFMCommunicate request_size=4 [02:42:02]MH_SAM_APDU [02:42:02]CAPDU: 80 0D 03 02 [02:42:02]Write to MH i2c: E2 08 00 44 08 80 0D 03 02 00 00 00 00 C7 [02:42:02]Write i2c OK [02:42:02]MH_I2C_Read... [02:42:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:42:02]Read from MH i2c: E2 [02:42:02]MH_I2C_Read... [02:42:02]Read from MH i2c: E2 0B 00 [02:42:02]MH_I2C_Read... [02:42:02]Read from MH i2c: E2 0B 00 44 08 00 78 41 88 69 51 05 5B 9B 90 00 BE [02:42:02]RAPDU: 78 41 88 69 51 05 5B 9B 90 00 [02:42:02]wFMCommunicate OK [02:42:02]SAM_PROTO_SignData done [02:42:02]FM_MakeSignedData done [02:42:02]CreateOFDProtocolMessage [02:42:02]wFMCommunicate request_size=4 [02:42:02]MH_SAM_APDU [02:42:02]CAPDU: 80 11 00 00 [02:42:02]Write to MH i2c: E2 08 00 45 08 80 11 00 00 00 00 00 00 C7 [02:42:02]Write i2c OK [02:42:02]MH_I2C_Read... [02:42:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:42:02]Read from MH i2c: E2 [02:42:02]MH_I2C_Read... [02:42:02]Read from MH i2c: E2 17 00 [02:42:02]MH_I2C_Read... [02:42:02]Read from MH i2c: E2 17 00 45 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 1E [02:42:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [02:42:02]wFMCommunicate OK [02:42:02]CreateOFDProtocolMessage done [02:42:02]OFDSenderStorePacket 92717 [02:42:02]StoreOFDPacket docnum=92717 [02:42:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 8D 01 00 00 68 AE 85 01 80 BB 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 35 39 30 34 33 31 30 32 33 31 33 34 33 06 04 22 00 D0 9B D0 B5 D0 B4 D0 B5 D0 BD D0 B5 D1 86 20 4A 6F 68 6E 79 20 42 65 65 20 42 4F 4F 54 53 20 50 4F 50 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 52 00 00 00 00 13 04 06 00 D0 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0A 00 00 00 00 07 04 06 00 70 62 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 F9 9A E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2D 6A 01 00 35 04 06 00 C3 DD 5B 18 E7 91 78 41 88 69 51 05 5B 9B [02:42:02]CheckFolder [02:42:02]dirname=/storage/ofd_packets [02:42:02]CheckFolder done [02:42:02]ProducePacketName [02:42:02]name=ofd_packets/00092717 [02:42:02]NVStorageSaveData ofd_packets/00092717 [02:42:02]File name is /storage/ofd_packets/00092717 [02:42:02]Write 427 bytes [02:42:02]NVStorageSaveData done [02:42:02]OFDSenderStorePacket done [02:42:02]KKMCreateOFDPacket done [02:42:02]NVStorageSaveData kkm_last_timestamp [02:42:02]File name is /storage/kkm_last_timestamp [02:42:02]Write 4 bytes [02:42:02]NVStorageSaveData done [02:42:02]ExternCall_PrintAddStr [02:42:02]wPrintStart [02:42:02]Write to MH i2c: 01 00 00 46 08 4E [02:42:02]Write i2c OK [02:42:02]MH_I2C_Read... [02:42:02]Read from MH i2c: 01 [02:42:02]MH_I2C_Read... [02:42:02]Read from MH i2c: 01 07 00 [02:42:02]MH_I2C_Read... [02:42:02]Read from MH i2c: 01 07 00 46 08 00 00 00 00 00 FF 0F 63 [02:42:02]RasterBufferAndPrint [02:42:02]line Счет N : (3)127601 [02:42:02]line ИНН: 02508201610067 [02:42:02]line Контрольно-Кассовый Чек [02:42:02]line ПРОДАЖА [02:42:02]line Товар: 4700000160211 [02:42:02]line Вода Легенда 0,5л [02:42:02]line 1.000 * 40.00 [02:42:02]line = 40.00 [02:42:02]line НДС 12% НСП 1% [02:42:02]line > о реализуемом товаре [02:42:02]line Товар: 5904310231343 [02:42:02]line Леденец Johny Bee BOOTS POP [02:42:02]line 1.000 * 212.00 [02:42:02]line = 212.00 [02:42:02]line НДС 12% НСП 1% [02:42:02]line > о реализуемом товаре [02:42:02]line ИТОГО: 252.00 [02:42:02]line НСП 1% : 2.23 [02:42:02]line НДС 12% : 26.76 [02:42:02]line Наличными: 252.00 [02:42:02]line Безнал.: 0.00 [02:42:02]line Место: АЗС № 5 "Партнер Нефть" [02:42:02]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [02:42:02]line СНО: Общий режим [02:42:02]line Чек 20 16.09.2024 02:42 [02:42:02]line Смена: 508 ФФД: 1.0 [02:42:02]line ЗНМ: 03000000022 [02:42:02]line РНМ: 0000000000091423 [02:42:02]line Версия ККМ: 001 [02:42:02]line ФМ: 0000000000874692 [02:42:02]line ФД: 92717 [02:42:02]line ФПД: 215355483547537 [02:42:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T024201&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92717&fm=215355483547537&tin=02508201610067®Number=0000000000091423&sum=25200 [02:42:02]line 0 [02:42:02]OFD Sender: Processing packet 92717 [packets to send 63, broken 62] [02:42:02]ProducePacketName [02:42:02]name=ofd_packets/00092717 [02:42:02]OFD Sender: To server: pG, [02:42:02]CommunicateWithHost lk.salyk.kg:30040 [02:42:02]ConnectInit lk.salyk.kg [02:42:02]written 0, free lines is 4095 [02:42:02]Connected sock=8 [02:42:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 8D 01 00 00 68 AE 85 01 80 BB 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 35 39 30 34 33 31 30 32 33 31 33 34 33 06 04 22 00 D0 9B D0 B5 D0 B4 D0 B5 D0 BD D0 B5 D1 86 20 4A 6F 68 6E 79 20 42 65 65 20 42 4F 4F 54 53 20 50 4F 50 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 52 00 00 00 00 13 04 06 00 D0 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0A 00 00 00 00 07 04 06 00 70 62 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 F9 9A E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2D 6A 01 00 35 04 06 00 C3 DD 5B 18 E7 91 78 41 88 69 51 05 5B 9B [02:42:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 52 76 47 00 EA B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2D 6A 01 00 F4 03 04 00 6F 43 E7 66 B6 04 01 00 00 A0 DB D4 E0 0E 3E 33 7B [02:42:02]CommunicateWithHost err = 0 [02:42:02]CheckOFDResponse [02:42:02]1017 (14) - 77093643461234 [02:42:02]1041 (16) - 0000000000874692 [02:42:02]1040 (4) - 92717 [02:42:02]1012 (4) - 15.09.2024 20:28 [02:42:02]1206 (1) - 0 [02:42:02]OFD Sender: Remove packet 92717 [02:42:02]ProducePacketName [02:42:02]name=ofd_packets/00092717 [02:42:02]NVStorageDeleteData [02:42:03]Write to MH i2c: 01 00 00 75 08 7D [02:42:03]Write i2c OK [02:42:03]MH_I2C_Read... [02:42:03]Read from MH i2c: 01 [02:42:03]MH_I2C_Read... [02:42:03]Read from MH i2c: 01 07 00 [02:42:03]MH_I2C_Read... [02:42:03]Read from MH i2c: 01 07 00 75 08 00 00 00 00 00 C9 0C 59 [02:42:03]RasterBufferAndPrint [02:42:03]line [02:42:03]line [02:42:03]line [02:42:03]line [02:42:03]line [02:42:03]written 0, free lines is 3280 [02:42:03]MH_Cut [02:42:03]Write to MH i2c: D1 01 00 7C 08 01 56 [02:42:03]Write i2c OK [02:42:03]MH_I2C_Read... [02:42:03]Read from MH i2c: D1 [02:42:03]MH_I2C_Read... [02:42:03]Read from MH i2c: D1 01 00 [02:42:03]MH_I2C_Read... [02:42:03]Read from MH i2c: D1 01 00 7C 08 00 55 [02:42:03]Write to MH i2c: 01 00 00 7D 08 85 [02:42:03]Write i2c OK [02:42:03]MH_I2C_Read... [02:42:03]OFD Sender: No OFD packet to send [02:42:03]*** Cut start [02:42:03]*** Purtial cut [02:42:03]*** Stage 1: CUTSNS_PIN = 1 [02:42:05]Read from MH i2c: 01 [02:42:05]MH_I2C_Read... [02:42:05]*** Stop cut motor [02:42:05]*** Cut end [02:42:05]Read from MH i2c: 01 07 00 [02:42:05]MH_I2C_Read... [02:42:05]Read from MH i2c: 01 07 00 7D 08 00 00 00 00 00 FF 0F 9A [02:42:05]process_action close_receipt done [02:42:05]requested_data is exist [02:42:05]produce_requested_data [02:42:05]requested_item fm.sn is exist - process it [02:42:05]wFMCommunicate request_size=4 [02:42:05]MH_SAM_APDU [02:42:05]CAPDU: 80 11 00 00 [02:42:05]Write to MH i2c: E2 08 00 7E 08 80 11 00 00 00 00 00 00 00 [02:42:05]Write i2c OK [02:42:05]MH_I2C_Read... [02:42:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:42:05]Read from MH i2c: E2 [02:42:05]MH_I2C_Read... [02:42:05]Read from MH i2c: E2 17 00 [02:42:05]MH_I2C_Read... [02:42:05]Read from MH i2c: E2 17 00 7E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 57 [02:42:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [02:42:05]wFMCommunicate OK [02:42:05]requested_item fd.num is exist - process it [02:42:05]SAM_PROTO_GetFieldsCounters [02:42:05]wFMCommunicate request_size=4 [02:42:05]MH_SAM_APDU [02:42:05]CAPDU: 80 13 00 00 [02:42:05]Write to MH i2c: E2 08 00 7F 08 80 13 00 00 00 00 00 00 03 [02:42:05]Write i2c OK [02:42:05]MH_I2C_Read... [02:42:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:42:06]Read from MH i2c: E2 [02:42:06]MH_I2C_Read... [02:42:06]Read from MH i2c: E2 62 00 [02:42:06]MH_I2C_Read... [02:42:06]Read from MH i2c: E2 62 00 7F 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2D 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [02:42:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2D 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:42:06]wFMCommunicate OK [02:42:06]SAM_PROTO_GetFieldsCounters done [02:42:06]requested_item shift.num is exist - process it [02:42:06]requested_item shift.opened is exist - process it [02:42:06]req_shift_opened [02:42:06]FM_GetShiftState [02:42:06]SAM_PROTO_GetShiftState [02:42:06]wFMCommunicate request_size=4 [02:42:06]MH_SAM_APDU [02:42:06]CAPDU: 80 13 01 00 [02:42:06]Write to MH i2c: E2 08 00 80 08 80 13 01 00 00 00 00 00 05 [02:42:06]Write i2c OK [02:42:06]MH_I2C_Read... [02:42:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:42:06]Read from MH i2c: E2 [02:42:06]MH_I2C_Read... [02:42:06]Read from MH i2c: E2 0E 00 [02:42:06]MH_I2C_Read... [02:42:06]Read from MH i2c: E2 0E 00 80 08 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 9E [02:42:06]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [02:42:06]wFMCommunicate OK [02:42:06]SAM_PROTO_GetShiftState done [02:42:06]FM_GetShiftState done [02:42:06]req_shift_opened done [02:42:06]requested_item shift.open_date is exist - process it [02:42:06]req_shift_open_date [02:42:06]req_shift_open_date done [02:42:06]produce_requested_data done [02:42:06]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92717,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278} [02:42:06]process_action_free close_receipt [02:42:06]json_value_free [02:42:06]json_value_free done [02:42:06]process_json_proto returns [02:42:06]Send response to host [02:42:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92717,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278}}} [02:42:06]free response buf [02:42:06]execute_script done [02:42:06]execute_script returns [02:42:06]free content buf [02:42:06]Sock 7.Close socket [02:42:06]Sock 7.Thread stoped [02:42:08]OFD Sender: No OFD packet to send [02:42:13]OFD Sender: No OFD packet to send [02:42:18]OFD Sender: No OFD packet to send [02:42:23]OFD Sender: No OFD packet to send [02:42:28]OFD Sender: No OFD packet to send [02:42:33]OFD Sender: No OFD packet to send [02:42:38]OFD Sender: No OFD packet to send [02:42:43]OFD Sender: No OFD packet to send [02:42:48]OFD Sender: No OFD packet to send [02:42:53]OFD Sender: No OFD packet to send [02:42:58]OFD Sender: No OFD packet to send [02:43:03]OFD Sender: No OFD packet to send [02:43:08]OFD Sender: No OFD packet to send [02:43:13]OFD Sender: No OFD packet to send [02:43:18]OFD Sender: No OFD packet to send [02:43:23]OFD Sender: No OFD packet to send [02:43:28]OFD Sender: No OFD packet to send [02:43:33]OFD Sender: No OFD packet to send [02:43:38]OFD Sender: No OFD packet to send [02:43:43]OFD Sender: No OFD packet to send [02:43:48]OFD Sender: No OFD packet to send [02:43:53]OFD Sender: No OFD packet to send [02:43:58]OFD Sender: No OFD packet to send [02:44:03]OFD Sender: No OFD packet to send [02:44:08]OFD Sender: No OFD packet to send [02:44:13]OFD Sender: No OFD packet to send [02:44:18]accept exits with 6 [02:44:18]New connection [02:44:18]New thread 3066608996 created [02:44:18]Thread 3066752356 joined [02:44:18]Waiting for new connection... [02:44:18] Sock 6.Parse request [02:44:18]Sock 6.Check first char [02:44:18]Sock 6.First char is OK [02:44:18]request: POST /json_proto HTTP/1.0 [02:44:18]Method: POST [02:44:18]URL: /json_proto [02:44:18]Method is POST - this is cgi request [02:44:18]url: /json_proto [02:44:18]query_string will be loaded in cgi processing [02:44:18]execute_cgi json_proto POST (null) [02:44:18]execute_cgi path=json_proto method=POST [02:44:18]POST find Content-Length [02:44:18]Host: 172.17.57.71:8080 [02:44:18]Content-Length: 626 [02:44:18]Content-Type: application/json [02:44:18] [02:44:18]POST finish read [02:44:18]Found Content-Length = 626 [02:44:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127602", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:44:18]execute_script... [02:44:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127602", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:44:18]POST & json_proto [02:44:18]process_json_proto [02:44:18]json parsed OK: [02:44:18]protocol is kg_v1.0 [02:44:18]action value=close_receipt [02:44:18]process_action close_receipt [02:44:18]cmd_close_receipt [02:44:18]MH_GetDate [02:44:18]Write to MH i2c: F0 00 00 81 08 78 [02:44:18]Write i2c OK [02:44:18]MH_I2C_Read... [02:44:18]Read from MH i2c: F0 [02:44:18]MH_I2C_Read... [02:44:18]Read from MH i2c: F0 09 00 [02:44:18]MH_I2C_Read... [02:44:18]Read from MH i2c: F0 09 00 81 08 00 83 9B E7 66 33 3A A4 66 63 [02:44:18]GetLastDocTimeStamp 1726454521 [02:44:18]current date 1726454659 [02:44:18]FM_GetShiftState [02:44:18]SAM_PROTO_GetShiftState [02:44:18]wFMCommunicate request_size=4 [02:44:18]MH_SAM_APDU [02:44:18]CAPDU: 80 13 01 00 [02:44:18]Write to MH i2c: E2 08 00 82 08 80 13 01 00 00 00 00 00 07 [02:44:18]Write i2c OK [02:44:18]MH_I2C_Read... [02:44:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:44:18]Read from MH i2c: E2 [02:44:18]MH_I2C_Read... [02:44:18]Read from MH i2c: E2 0E 00 [02:44:18]MH_I2C_Read... [02:44:18]Read from MH i2c: E2 0E 00 82 08 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 A0 [02:44:18]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [02:44:18]wFMCommunicate OK [02:44:18]SAM_PROTO_GetShiftState done [02:44:18]FM_GetShiftState done [02:44:18]opened in 1726446278 [02:44:18]opened+sec_in_day 1726532678 [02:44:18]quantity*price = 15000 [02:44:18]sum+1 = 15001 [02:44:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 21 16.09.2024 02:44 Смена: 508 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92718 ФПД: 90967909126558 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T024419&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92718&fm=90967909126558&tin=02508201610067®Number=0000000000091423&sum=15000 0 [02:44:19]StoreToDocumentArchive [02:44:19]shift 508 fd 92718 [02:44:19]save to /storage/0508/doc_00092718 [02:44:19]save last doc name /storage/0508/doc_00092718 to /storage/kkm_last_doc_name [02:44:19]save OK [02:44:19]Clear old archive folders... [02:44:19]ProcessDocumentItem done err = 0, tmpTLVsize=278 [02:44:19]tlvbuf is 01758700 [02:44:19]SAM_PROTO_ClearQueue [02:44:19]wFMCommunicate request_size=4 [02:44:19]MH_SAM_APDU [02:44:19]CAPDU: 80 09 00 00 [02:44:19]Write to MH i2c: E2 08 00 8F 08 80 09 00 00 00 00 00 00 09 [02:44:19]Write i2c OK [02:44:19]MH_I2C_Read... [02:44:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:44:19]Read from MH i2c: E2 [02:44:19]MH_I2C_Read... [02:44:19]Read from MH i2c: E2 03 00 [02:44:19]MH_I2C_Read... [02:44:19]Read from MH i2c: E2 03 00 8F 08 00 90 00 0B [02:44:19]RAPDU: 90 00 [02:44:19]wFMCommunicate OK [02:44:19]SAM_PROTO_ClearQueue done [02:44:19]KKMCreateOFDPacket [02:44:19]OFDProtocolAddRootSTLVToBuf [02:44:19]FM_MakeSignedData [02:44:19]FM_MakeSignedData [02:44:19]SAM_PROTO_SignData [02:44:19]wFMCommunicate request_size=4 [02:44:19]MH_SAM_APDU [02:44:19]CAPDU: 80 0D 01 02 [02:44:19]Write to MH i2c: E2 08 00 90 08 80 0D 01 02 00 00 00 00 11 [02:44:19]Write i2c OK [02:44:19]MH_I2C_Read... [02:44:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:44:19]Read from MH i2c: E2 [02:44:19]MH_I2C_Read... [02:44:19]Read from MH i2c: E2 03 00 [02:44:19]MH_I2C_Read... [02:44:19]Read from MH i2c: E2 03 00 90 08 00 90 00 0C [02:44:19]RAPDU: 90 00 [02:44:19]wFMCommunicate OK [02:44:19]wFMCommunicate request_size=255 [02:44:19]MH_SAM_APDU [02:44:19]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 83 9B E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 [02:44:19]Write to MH i2c: E2 02 01 91 08 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 83 9B E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 00 00 AD [02:44:19]Write i2c OK [02:44:19]MH_I2C_Read... [02:44:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:44:19]Read from MH i2c: E2 [02:44:19]MH_I2C_Read... [02:44:19]Read from MH i2c: E2 03 00 [02:44:19]MH_I2C_Read... [02:44:19]Read from MH i2c: E2 03 00 91 08 00 90 00 0D [02:44:19]RAPDU: 90 00 [02:44:19]wFMCommunicate OK [02:44:19]wFMCommunicate request_size=37 [02:44:19]MH_SAM_APDU [02:44:19]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2E 6A 01 00 35 04 06 00 52 BC 1D E8 D1 9E [02:44:19]Write to MH i2c: E2 28 00 92 08 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2E 6A 01 00 35 04 06 00 52 BC 1D E8 D1 9E 00 00 8A [02:44:19]Write i2c OK [02:44:19]MH_I2C_Read... [02:44:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:44:19]Read from MH i2c: E2 [02:44:19]MH_I2C_Read... [02:44:19]Read from MH i2c: E2 03 00 [02:44:19]MH_I2C_Read... [02:44:19]Read from MH i2c: E2 03 00 92 08 00 90 00 0E [02:44:19]RAPDU: 90 00 [02:44:19]wFMCommunicate OK [02:44:19]wFMCommunicate request_size=4 [02:44:19]MH_SAM_APDU [02:44:19]CAPDU: 80 0D 03 02 [02:44:19]Write to MH i2c: E2 08 00 93 08 80 0D 03 02 00 00 00 00 16 [02:44:19]Write i2c OK [02:44:19]MH_I2C_Read... [02:44:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:44:19]Read from MH i2c: E2 [02:44:19]MH_I2C_Read... [02:44:19]Read from MH i2c: E2 0B 00 [02:44:19]MH_I2C_Read... [02:44:19]Read from MH i2c: E2 0B 00 93 08 00 4A 32 33 35 0A 2C 24 B7 90 00 0C [02:44:19]RAPDU: 4A 32 33 35 0A 2C 24 B7 90 00 [02:44:19]wFMCommunicate OK [02:44:19]SAM_PROTO_SignData done [02:44:19]FM_MakeSignedData done [02:44:19]CreateOFDProtocolMessage [02:44:19]wFMCommunicate request_size=4 [02:44:19]MH_SAM_APDU [02:44:19]CAPDU: 80 11 00 00 [02:44:19]Write to MH i2c: E2 08 00 94 08 80 11 00 00 00 00 00 00 16 [02:44:19]Write i2c OK [02:44:19]MH_I2C_Read... [02:44:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:44:19]Read from MH i2c: E2 [02:44:19]MH_I2C_Read... [02:44:19]Read from MH i2c: E2 17 00 [02:44:19]MH_I2C_Read... [02:44:19]Read from MH i2c: E2 17 00 94 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 6D [02:44:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [02:44:19]wFMCommunicate OK [02:44:19]CreateOFDProtocolMessage done [02:44:19]OFDSenderStorePacket 92718 [02:44:19]StoreOFDPacket docnum=92718 [02:44:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2A 01 00 00 0B 42 22 01 37 97 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 83 9B E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2E 6A 01 00 35 04 06 00 52 BC 1D E8 D1 9E 4A 32 33 35 0A 2C 24 B7 [02:44:19]CheckFolder [02:44:19]dirname=/storage/ofd_packets [02:44:19]CheckFolder done [02:44:19]ProducePacketName [02:44:19]name=ofd_packets/00092718 [02:44:19]NVStorageSaveData ofd_packets/00092718 [02:44:19]File name is /storage/ofd_packets/00092718 [02:44:19]Write 328 bytes [02:44:19]NVStorageSaveData done [02:44:19]OFDSenderStorePacket done [02:44:19]KKMCreateOFDPacket done [02:44:19]NVStorageSaveData kkm_last_timestamp [02:44:19]File name is /storage/kkm_last_timestamp [02:44:19]Write 4 bytes [02:44:19]NVStorageSaveData done [02:44:19]ExternCall_PrintAddStr [02:44:19]wPrintStart [02:44:19]Write to MH i2c: 01 00 00 95 08 9D [02:44:19]Write i2c OK [02:44:19]MH_I2C_Read... [02:44:19]Read from MH i2c: 01 [02:44:19]MH_I2C_Read... [02:44:19]Read from MH i2c: 01 07 00 [02:44:19]MH_I2C_Read... [02:44:19]Read from MH i2c: 01 07 00 95 08 00 00 00 00 00 FF 0F B2 [02:44:19]RasterBufferAndPrint [02:44:19]line Счет N : (3)127602 [02:44:19]line ИНН: 02508201610067 [02:44:19]line Контрольно-Кассовый Чек [02:44:19]line ПРОДАЖА [02:44:19]line Товар: 4640030092499 [02:44:19]line Сигареты ESSE SENSE Himalaya [02:44:19]line 1.000 * 150.00 [02:44:19]line = 150.00 [02:44:19]line НДС 12% НСП 1% [02:44:19]line > о реализуемом товаре [02:44:19]line ИТОГО: 150.00 [02:44:19]line НСП 1% : 1.33 [02:44:19]line НДС 12% : 15.93 [02:44:19]line Наличными: 150.00 [02:44:19]line Безнал.: 0.00 [02:44:19]line Место: АЗС № 5 "Партнер Нефть" [02:44:19]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [02:44:19]line СНО: Общий режим [02:44:19]line Чек 21 16.09.2024 02:44 [02:44:19]line Смена: 508 ФФД: 1.0 [02:44:19]line ЗНМ: 03000000022 [02:44:19]line РНМ: 0000000000091423 [02:44:19]line Версия ККМ: 001 [02:44:19]line ФМ: 0000000000874692 [02:44:19]line ФД: 92718 [02:44:19]line ФПД: 90967909126558 [02:44:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T024419&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92718&fm=90967909126558&tin=02508201610067®Number=0000000000091423&sum=15000 [02:44:20]line 0 [02:44:20]OFD Sender: Processing packet 92718 [packets to send 63, broken 62] [02:44:20]ProducePacketName [02:44:20]name=ofd_packets/00092718 [02:44:20]OFD Sender: To server: pG, [02:44:20]CommunicateWithHost lk.salyk.kg:30040 [02:44:20]ConnectInit lk.salyk.kg [02:44:20]written 0, free lines is 4095 [02:44:20]Connected sock=8 [02:44:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2A 01 00 00 0B 42 22 01 37 97 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 83 9B E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2E 6A 01 00 35 04 06 00 52 BC 1D E8 D1 9E 4A 32 33 35 0A 2C 24 B7 [02:44:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 75 E3 47 00 53 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2E 6A 01 00 F4 03 04 00 F9 43 E7 66 B6 04 01 00 00 2A 70 D6 38 4A AE 31 B3 [02:44:20]CommunicateWithHost err = 0 [02:44:20]CheckOFDResponse [02:44:20]1017 (14) - 77093643461234 [02:44:20]1041 (16) - 0000000000874692 [02:44:20]1040 (4) - 92718 [02:44:20]1012 (4) - 15.09.2024 20:30 [02:44:20]1206 (1) - 0 [02:44:20]OFD Sender: Remove packet 92718 [02:44:20]ProducePacketName [02:44:20]name=ofd_packets/00092718 [02:44:20]NVStorageDeleteData [02:44:20]Write to MH i2c: 01 00 00 BE 08 C6 [02:44:20]Write i2c OK [02:44:20]MH_I2C_Read... [02:44:20]Read from MH i2c: 01 [02:44:20]MH_I2C_Read... [02:44:20]Read from MH i2c: 01 07 00 [02:44:20]MH_I2C_Read... [02:44:20]Read from MH i2c: 01 07 00 BE 08 00 00 00 00 00 04 0D DE [02:44:20]RasterBufferAndPrint [02:44:20]line [02:44:20]line [02:44:20]line [02:44:20]line [02:44:20]line [02:44:20]written 0, free lines is 3339 [02:44:20]MH_Cut [02:44:20]Write to MH i2c: D1 01 00 C5 08 01 9F [02:44:20]Write i2c OK [02:44:20]MH_I2C_Read... [02:44:20]Read from MH i2c: D1 [02:44:20]MH_I2C_Read... [02:44:20]Read from MH i2c: D1 01 00 [02:44:20]MH_I2C_Read... [02:44:20]Read from MH i2c: D1 01 00 C5 08 00 9E [02:44:20]Write to MH i2c: 01 00 00 C6 08 CE [02:44:20]Write i2c OK [02:44:20]MH_I2C_Read... [02:44:21]OFD Sender: No OFD packet to send [02:44:21]*** Cut start [02:44:21]*** Purtial cut [02:44:21]*** Stage 1: CUTSNS_PIN = 1 [02:44:23]Read from MH i2c: 01 [02:44:23]MH_I2C_Read... [02:44:23]*** Stop cut motor [02:44:23]*** Cut end [02:44:23]Read from MH i2c: 01 07 00 [02:44:23]MH_I2C_Read... [02:44:23]Read from MH i2c: 01 07 00 C6 08 00 00 00 00 00 FF 0F E3 [02:44:23]process_action close_receipt done [02:44:23]requested_data is exist [02:44:23]produce_requested_data [02:44:23]requested_item fm.sn is exist - process it [02:44:23]wFMCommunicate request_size=4 [02:44:23]MH_SAM_APDU [02:44:23]CAPDU: 80 11 00 00 [02:44:23]Write to MH i2c: E2 08 00 C7 08 80 11 00 00 00 00 00 00 49 [02:44:23]Write i2c OK [02:44:23]MH_I2C_Read... [02:44:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:44:23]Read from MH i2c: E2 [02:44:23]MH_I2C_Read... [02:44:23]Read from MH i2c: E2 17 00 [02:44:23]MH_I2C_Read... [02:44:23]Read from MH i2c: E2 17 00 C7 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A0 [02:44:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [02:44:23]wFMCommunicate OK [02:44:23]requested_item fd.num is exist - process it [02:44:23]SAM_PROTO_GetFieldsCounters [02:44:23]wFMCommunicate request_size=4 [02:44:23]MH_SAM_APDU [02:44:23]CAPDU: 80 13 00 00 [02:44:23]Write to MH i2c: E2 08 00 C8 08 80 13 00 00 00 00 00 00 4C [02:44:23]Write i2c OK [02:44:23]MH_I2C_Read... [02:44:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:44:23]Read from MH i2c: E2 [02:44:23]MH_I2C_Read... [02:44:23]Read from MH i2c: E2 62 00 [02:44:23]MH_I2C_Read... [02:44:23]Read from MH i2c: E2 62 00 C8 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2E 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [02:44:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2E 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:44:23]wFMCommunicate OK [02:44:23]SAM_PROTO_GetFieldsCounters done [02:44:23]requested_item shift.num is exist - process it [02:44:23]requested_item shift.opened is exist - process it [02:44:23]req_shift_opened [02:44:23]FM_GetShiftState [02:44:23]SAM_PROTO_GetShiftState [02:44:23]wFMCommunicate request_size=4 [02:44:23]MH_SAM_APDU [02:44:23]CAPDU: 80 13 01 00 [02:44:23]Write to MH i2c: E2 08 00 C9 08 80 13 01 00 00 00 00 00 4E [02:44:23]Write i2c OK [02:44:23]MH_I2C_Read... [02:44:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:44:23]Read from MH i2c: E2 [02:44:23]MH_I2C_Read... [02:44:23]Read from MH i2c: E2 0E 00 [02:44:23]MH_I2C_Read... [02:44:23]Read from MH i2c: E2 0E 00 C9 08 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 E7 [02:44:23]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [02:44:23]wFMCommunicate OK [02:44:23]SAM_PROTO_GetShiftState done [02:44:23]FM_GetShiftState done [02:44:23]req_shift_opened done [02:44:23]requested_item shift.open_date is exist - process it [02:44:23]req_shift_open_date [02:44:23]req_shift_open_date done [02:44:23]produce_requested_data done [02:44:23]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92718,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278} [02:44:23]process_action_free close_receipt [02:44:23]json_value_free [02:44:23]json_value_free done [02:44:23]process_json_proto returns [02:44:23]Send response to host [02:44:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92718,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278}}} [02:44:23]free response buf [02:44:23]execute_script done [02:44:23]execute_script returns [02:44:23]free content buf [02:44:23]Sock 6.Close socket [02:44:23]Sock 6.Thread stoped [02:44:26]OFD Sender: No OFD packet to send [02:44:31]OFD Sender: No OFD packet to send [02:44:36]OFD Sender: No OFD packet to send [02:44:41]OFD Sender: No OFD packet to send [02:44:46]OFD Sender: No OFD packet to send [02:44:51]OFD Sender: No OFD packet to send [02:44:56]OFD Sender: No OFD packet to send [02:45:01]OFD Sender: No OFD packet to send [02:45:06]OFD Sender: No OFD packet to send [02:45:11]OFD Sender: No OFD packet to send [02:45:16]OFD Sender: No OFD packet to send [02:45:21]OFD Sender: No OFD packet to send [02:45:26]OFD Sender: No OFD packet to send [02:45:31]OFD Sender: No OFD packet to send [02:45:36]OFD Sender: No OFD packet to send [02:45:41]OFD Sender: No OFD packet to send [02:45:46]OFD Sender: No OFD packet to send [02:45:51]OFD Sender: No OFD packet to send [02:45:56]OFD Sender: No OFD packet to send [02:46:01]OFD Sender: No OFD packet to send [02:46:06]OFD Sender: No OFD packet to send [02:46:11]OFD Sender: No OFD packet to send [02:46:16]OFD Sender: No OFD packet to send [02:46:21]OFD Sender: No OFD packet to send [02:46:26]OFD Sender: No OFD packet to send [02:46:31]OFD Sender: No OFD packet to send [02:46:36]OFD Sender: No OFD packet to send [02:46:41]OFD Sender: No OFD packet to send [02:46:46]OFD Sender: No OFD packet to send [02:46:51]OFD Sender: No OFD packet to send [02:46:56]OFD Sender: No OFD packet to send [02:47:01]OFD Sender: No OFD packet to send [02:47:06]OFD Sender: No OFD packet to send [02:47:11]OFD Sender: No OFD packet to send [02:47:16]OFD Sender: No OFD packet to send [02:47:21]OFD Sender: No OFD packet to send [02:47:26]OFD Sender: No OFD packet to send [02:47:31]OFD Sender: No OFD packet to send [02:47:36]OFD Sender: No OFD packet to send [02:47:41]OFD Sender: No OFD packet to send [02:47:46]OFD Sender: No OFD packet to send [02:47:51]OFD Sender: No OFD packet to send [02:47:56]OFD Sender: No OFD packet to send [02:48:01]OFD Sender: No OFD packet to send [02:48:06]OFD Sender: No OFD packet to send [02:48:11]OFD Sender: No OFD packet to send [02:48:16]OFD Sender: No OFD packet to send [02:48:21]OFD Sender: No OFD packet to send [02:48:26]OFD Sender: No OFD packet to send [02:48:31]OFD Sender: No OFD packet to send [02:48:36]OFD Sender: No OFD packet to send [02:48:41]OFD Sender: No OFD packet to send [02:48:46]OFD Sender: No OFD packet to send [02:48:51]OFD Sender: No OFD packet to send [02:48:56]OFD Sender: No OFD packet to send [02:49:01]OFD Sender: No OFD packet to send [02:49:06]OFD Sender: No OFD packet to send [02:49:11]OFD Sender: No OFD packet to send [02:49:16]OFD Sender: No OFD packet to send [02:49:21]OFD Sender: No OFD packet to send [02:49:26]OFD Sender: No OFD packet to send [02:49:31]OFD Sender: No OFD packet to send [02:49:36]OFD Sender: No OFD packet to send [02:49:41]OFD Sender: No OFD packet to send [02:49:46]OFD Sender: No OFD packet to send [02:49:51]OFD Sender: No OFD packet to send [02:49:56]OFD Sender: No OFD packet to send [02:50:01]OFD Sender: No OFD packet to send [02:50:06]OFD Sender: No OFD packet to send [02:50:11]OFD Sender: No OFD packet to send [02:50:16]OFD Sender: No OFD packet to send [02:50:21]OFD Sender: No OFD packet to send [02:50:26]OFD Sender: No OFD packet to send [02:50:31]OFD Sender: No OFD packet to send [02:50:36]OFD Sender: No OFD packet to send [02:50:41]OFD Sender: No OFD packet to send [02:50:45]accept exits with 7 [02:50:45]New connection [02:50:45]New thread 3066752356 created [02:50:45]Thread 3066608996 joined [02:50:45]Waiting for new connection... [02:50:45] Sock 7.Parse request [02:50:45]Sock 7.Check first char [02:50:45]Sock 7.First char is OK [02:50:45]request: POST /json_proto HTTP/1.0 [02:50:45]Method: POST [02:50:45]URL: /json_proto [02:50:45]Method is POST - this is cgi request [02:50:45]url: /json_proto [02:50:45]query_string will be loaded in cgi processing [02:50:45]execute_cgi json_proto POST (null) [02:50:45]execute_cgi path=json_proto method=POST [02:50:45]POST find Content-Length [02:50:45]Host: 172.17.57.71:8080 [02:50:45]Content-Length: 639 [02:50:45]Content-Type: application/json [02:50:45] [02:50:45]POST finish read [02:50:45]Found Content-Length = 639 [02:50:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127603", "tax_sys" : 0, "items" : [ { "code": "4700000160044", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:50:45]execute_script... [02:50:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127603", "tax_sys" : 0, "items" : [ { "code": "4700000160044", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:50:45]POST & json_proto [02:50:45]process_json_proto [02:50:45]json parsed OK: [02:50:45]protocol is kg_v1.0 [02:50:45]action value=close_receipt [02:50:45]process_action close_receipt [02:50:45]cmd_close_receipt [02:50:45]MH_GetDate [02:50:45]Write to MH i2c: F0 00 00 CA 08 C1 [02:50:45]Write i2c OK [02:50:45]MH_I2C_Read... [02:50:45]Read from MH i2c: F0 [02:50:45]MH_I2C_Read... [02:50:45]Read from MH i2c: F0 09 00 [02:50:45]MH_I2C_Read... [02:50:45]Read from MH i2c: F0 09 00 CA 08 00 06 9D E7 66 33 3A A4 66 31 [02:50:45]GetLastDocTimeStamp 1726454659 [02:50:45]current date 1726455046 [02:50:45]FM_GetShiftState [02:50:45]SAM_PROTO_GetShiftState [02:50:45]wFMCommunicate request_size=4 [02:50:45]MH_SAM_APDU [02:50:45]CAPDU: 80 13 01 00 [02:50:45]Write to MH i2c: E2 08 00 CB 08 80 13 01 00 00 00 00 00 50 [02:50:45]Write i2c OK [02:50:45]MH_I2C_Read... [02:50:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:50:45]Read from MH i2c: E2 [02:50:45]MH_I2C_Read... [02:50:45]Read from MH i2c: E2 0E 00 [02:50:45]MH_I2C_Read... [02:50:45]Read from MH i2c: E2 0E 00 CB 08 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 E9 [02:50:45]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [02:50:45]wFMCommunicate OK [02:50:45]SAM_PROTO_GetShiftState done [02:50:45]FM_GetShiftState done [02:50:45]opened in 1726446278 [02:50:45]opened+sec_in_day 1726532678 [02:50:45]quantity*price = 4000 [02:50:45]sum+1 = 4001 [02:50:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 22 16.09.2024 02:50 Смена: 508 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92719 ФПД: 45184407769311 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T025046&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92719&fm=45184407769311&tin=02508201610067®Number=0000000000091423&sum=4000 0 [02:50:46]StoreToDocumentArchive [02:50:46]shift 508 fd 92719 [02:50:46]save to /storage/0508/doc_00092719 [02:50:46]save last doc name /storage/0508/doc_00092719 to /storage/kkm_last_doc_name [02:50:46]save OK [02:50:46]Clear old archive folders... [02:50:46]ProcessDocumentItem done err = 0, tmpTLVsize=274 [02:50:46]tlvbuf is 01770C80 [02:50:46]SAM_PROTO_ClearQueue [02:50:46]wFMCommunicate request_size=4 [02:50:46]MH_SAM_APDU [02:50:46]CAPDU: 80 09 00 00 [02:50:46]Write to MH i2c: E2 08 00 D8 08 80 09 00 00 00 00 00 00 52 [02:50:46]Write i2c OK [02:50:46]MH_I2C_Read... [02:50:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:50:46]Read from MH i2c: E2 [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: E2 03 00 [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: E2 03 00 D8 08 00 90 00 54 [02:50:46]RAPDU: 90 00 [02:50:46]wFMCommunicate OK [02:50:46]SAM_PROTO_ClearQueue done [02:50:46]KKMCreateOFDPacket [02:50:46]OFDProtocolAddRootSTLVToBuf [02:50:46]FM_MakeSignedData [02:50:46]FM_MakeSignedData [02:50:46]SAM_PROTO_SignData [02:50:46]wFMCommunicate request_size=4 [02:50:46]MH_SAM_APDU [02:50:46]CAPDU: 80 0D 01 02 [02:50:46]Write to MH i2c: E2 08 00 D9 08 80 0D 01 02 00 00 00 00 5A [02:50:46]Write i2c OK [02:50:46]MH_I2C_Read... [02:50:46]OFD Sender: No OFD packet to send [02:50:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:50:46]Read from MH i2c: E2 [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: E2 03 00 [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: E2 03 00 D9 08 00 90 00 55 [02:50:46]RAPDU: 90 00 [02:50:46]wFMCommunicate OK [02:50:46]wFMCommunicate request_size=255 [02:50:46]MH_SAM_APDU [02:50:46]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 06 9D E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 [02:50:46]Write to MH i2c: E2 02 01 DA 08 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 06 9D E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 00 00 88 [02:50:46]Write i2c OK [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: E2 [02:50:46]MH_I2C_Read... [02:50:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:50:46]Read from MH i2c: E2 03 00 [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: E2 03 00 DA 08 00 90 00 56 [02:50:46]RAPDU: 90 00 [02:50:46]wFMCommunicate OK [02:50:46]wFMCommunicate request_size=33 [02:50:46]MH_SAM_APDU [02:50:46]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2F 6A 01 00 35 04 06 00 29 18 50 93 10 DF [02:50:46]Write to MH i2c: E2 24 00 DB 08 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2F 6A 01 00 35 04 06 00 29 18 50 93 10 DF 00 00 9D [02:50:46]Write i2c OK [02:50:46]MH_I2C_Read... [02:50:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:50:46]Read from MH i2c: E2 [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: E2 03 00 [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: E2 03 00 DB 08 00 90 00 57 [02:50:46]RAPDU: 90 00 [02:50:46]wFMCommunicate OK [02:50:46]wFMCommunicate request_size=4 [02:50:46]MH_SAM_APDU [02:50:46]CAPDU: 80 0D 03 02 [02:50:46]Write to MH i2c: E2 08 00 DC 08 80 0D 03 02 00 00 00 00 5F [02:50:46]Write i2c OK [02:50:46]MH_I2C_Read... [02:50:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:50:46]Read from MH i2c: E2 [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: E2 0B 00 [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: E2 0B 00 DC 08 00 D6 3D 5C 55 74 F5 AE 58 90 00 93 [02:50:46]RAPDU: D6 3D 5C 55 74 F5 AE 58 90 00 [02:50:46]wFMCommunicate OK [02:50:46]SAM_PROTO_SignData done [02:50:46]FM_MakeSignedData done [02:50:46]CreateOFDProtocolMessage [02:50:46]wFMCommunicate request_size=4 [02:50:46]MH_SAM_APDU [02:50:46]CAPDU: 80 11 00 00 [02:50:46]Write to MH i2c: E2 08 00 DD 08 80 11 00 00 00 00 00 00 5F [02:50:46]Write i2c OK [02:50:46]MH_I2C_Read... [02:50:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:50:46]Read from MH i2c: E2 [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: E2 17 00 [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: E2 17 00 DD 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B6 [02:50:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [02:50:46]wFMCommunicate OK [02:50:46]CreateOFDProtocolMessage done [02:50:46]OFDSenderStorePacket 92719 [02:50:46]StoreOFDPacket docnum=92719 [02:50:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 26 01 00 00 4C 81 1E 01 59 2C 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 06 9D E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2F 6A 01 00 35 04 06 00 29 18 50 93 10 DF D6 3D 5C 55 74 F5 AE 58 [02:50:46]CheckFolder [02:50:46]dirname=/storage/ofd_packets [02:50:46]CheckFolder done [02:50:46]ProducePacketName [02:50:46]name=ofd_packets/00092719 [02:50:46]NVStorageSaveData ofd_packets/00092719 [02:50:46]File name is /storage/ofd_packets/00092719 [02:50:46]Write 324 bytes [02:50:46]NVStorageSaveData done [02:50:46]OFDSenderStorePacket done [02:50:46]KKMCreateOFDPacket done [02:50:46]NVStorageSaveData kkm_last_timestamp [02:50:46]File name is /storage/kkm_last_timestamp [02:50:46]Write 4 bytes [02:50:46]NVStorageSaveData done [02:50:46]ExternCall_PrintAddStr [02:50:46]wPrintStart [02:50:46]Write to MH i2c: 01 00 00 DE 08 E6 [02:50:46]Write i2c OK [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: 01 [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: 01 07 00 [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: 01 07 00 DE 08 00 00 00 00 00 FF 0F FB [02:50:46]RasterBufferAndPrint [02:50:46]line Счет N : (3)127603 [02:50:46]line ИНН: 02508201610067 [02:50:46]line Контрольно-Кассовый Чек [02:50:46]line ПРОДАЖА [02:50:46]line Товар: 4700000160044 [02:50:46]line Вода Ыссык Ата 0,5л [02:50:46]line 1.000 * 40.00 [02:50:46]line = 40.00 [02:50:46]line НДС 12% НСП 1% [02:50:46]line > о реализуемом товаре [02:50:46]line ИТОГО: 40.00 [02:50:46]line НСП 1% : 0.35 [02:50:46]line НДС 12% : 4.25 [02:50:46]line Наличными: 40.00 [02:50:46]line Безнал.: 0.00 [02:50:46]line Место: АЗС № 5 "Партнер Нефть" [02:50:46]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [02:50:46]line СНО: Общий режим [02:50:46]line Чек 22 16.09.2024 02:50 [02:50:46]line Смена: 508 ФФД: 1.0 [02:50:46]line ЗНМ: 03000000022 [02:50:46]line РНМ: 0000000000091423 [02:50:46]line Версия ККМ: 001 [02:50:46]line ФМ: 0000000000874692 [02:50:46]line ФД: 92719 [02:50:46]line ФПД: 45184407769311 [02:50:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T025046&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92719&fm=45184407769311&tin=02508201610067®Number=0000000000091423&sum=4000 [02:50:47]line 0 [02:50:47]OFD Sender: Processing packet 92719 [packets to send 63, broken 62] [02:50:47]ProducePacketName [02:50:47]name=ofd_packets/00092719 [02:50:47]OFD Sender: To server: pG, [02:50:47]CommunicateWithHost lk.salyk.kg:30040 [02:50:47]ConnectInit lk.salyk.kg [02:50:47]written 0, free lines is 4095 [02:50:47]Connected sock=8 [02:50:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 26 01 00 00 4C 81 1E 01 59 2C 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 06 9D E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2F 6A 01 00 35 04 06 00 29 18 50 93 10 DF D6 3D 5C 55 74 F5 AE 58 [02:50:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 D4 66 47 00 CA 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2F 6A 01 00 F4 03 04 00 7C 45 E7 66 B6 04 01 00 00 EF E2 A2 E5 F4 F8 F6 67 [02:50:47]CommunicateWithHost err = 0 [02:50:47]CheckOFDResponse [02:50:47]1017 (14) - 77093643461234 [02:50:47]1041 (16) - 0000000000874692 [02:50:47]1040 (4) - 92719 [02:50:47]1012 (4) - 15.09.2024 20:37 [02:50:47]1206 (1) - 0 [02:50:47]OFD Sender: Remove packet 92719 [02:50:47]ProducePacketName [02:50:47]name=ofd_packets/00092719 [02:50:47]NVStorageDeleteData [02:50:47]Write to MH i2c: 01 00 00 06 09 0F [02:50:47]Write i2c OK [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: 01 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: 01 07 00 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: 01 07 00 06 09 00 00 00 00 00 0E 0D 31 [02:50:47]RasterBufferAndPrint [02:50:47]line [02:50:47]line [02:50:47]line [02:50:47]line [02:50:47]line [02:50:47]written 0, free lines is 3349 [02:50:47]MH_Cut [02:50:47]Write to MH i2c: D1 01 00 0D 09 01 E8 [02:50:47]Write i2c OK [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: D1 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: D1 01 00 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: D1 01 00 0D 09 00 E7 [02:50:47]Write to MH i2c: 01 00 00 0E 09 17 [02:50:47]Write i2c OK [02:50:47]MH_I2C_Read... [02:50:48]OFD Sender: No OFD packet to send [02:50:48]*** Cut start [02:50:48]*** Purtial cut [02:50:48]*** Stage 1: CUTSNS_PIN = 1 [02:50:50]Read from MH i2c: 01 [02:50:50]MH_I2C_Read... [02:50:50]*** Stop cut motor [02:50:50]*** Cut end [02:50:50]Read from MH i2c: 01 07 00 [02:50:50]MH_I2C_Read... [02:50:50]Read from MH i2c: 01 07 00 0E 09 00 00 00 00 00 FF 0F 2C [02:50:50]process_action close_receipt done [02:50:50]requested_data is exist [02:50:50]produce_requested_data [02:50:50]requested_item fm.sn is exist - process it [02:50:50]wFMCommunicate request_size=4 [02:50:50]MH_SAM_APDU [02:50:50]CAPDU: 80 11 00 00 [02:50:50]Write to MH i2c: E2 08 00 0F 09 80 11 00 00 00 00 00 00 92 [02:50:50]Write i2c OK [02:50:50]MH_I2C_Read... [02:50:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:50:50]Read from MH i2c: E2 [02:50:50]MH_I2C_Read... [02:50:50]Read from MH i2c: E2 17 00 [02:50:50]MH_I2C_Read... [02:50:50]Read from MH i2c: E2 17 00 0F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E9 [02:50:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [02:50:50]wFMCommunicate OK [02:50:50]requested_item fd.num is exist - process it [02:50:50]SAM_PROTO_GetFieldsCounters [02:50:50]wFMCommunicate request_size=4 [02:50:50]MH_SAM_APDU [02:50:50]CAPDU: 80 13 00 00 [02:50:50]Write to MH i2c: E2 08 00 10 09 80 13 00 00 00 00 00 00 95 [02:50:50]Write i2c OK [02:50:50]MH_I2C_Read... [02:50:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:50:50]Read from MH i2c: E2 [02:50:50]MH_I2C_Read... [02:50:50]Read from MH i2c: E2 62 00 [02:50:50]MH_I2C_Read... [02:50:50]Read from MH i2c: E2 62 00 10 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2F 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [02:50:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2F 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:50:50]wFMCommunicate OK [02:50:50]SAM_PROTO_GetFieldsCounters done [02:50:50]requested_item shift.num is exist - process it [02:50:50]requested_item shift.opened is exist - process it [02:50:50]req_shift_opened [02:50:50]FM_GetShiftState [02:50:50]SAM_PROTO_GetShiftState [02:50:50]wFMCommunicate request_size=4 [02:50:50]MH_SAM_APDU [02:50:50]CAPDU: 80 13 01 00 [02:50:50]Write to MH i2c: E2 08 00 11 09 80 13 01 00 00 00 00 00 97 [02:50:50]Write i2c OK [02:50:50]MH_I2C_Read... [02:50:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:50:50]Read from MH i2c: E2 [02:50:50]MH_I2C_Read... [02:50:50]Read from MH i2c: E2 0E 00 [02:50:50]MH_I2C_Read... [02:50:50]Read from MH i2c: E2 0E 00 11 09 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 30 [02:50:50]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [02:50:50]wFMCommunicate OK [02:50:50]SAM_PROTO_GetShiftState done [02:50:50]FM_GetShiftState done [02:50:50]req_shift_opened done [02:50:50]requested_item shift.open_date is exist - process it [02:50:50]req_shift_open_date [02:50:50]req_shift_open_date done [02:50:50]produce_requested_data done [02:50:50]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92719,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278} [02:50:50]process_action_free close_receipt [02:50:50]json_value_free [02:50:50]json_value_free done [02:50:50]process_json_proto returns [02:50:50]Send response to host [02:50:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92719,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278}}} [02:50:50]free response buf [02:50:50]execute_script done [02:50:50]execute_script returns [02:50:50]free content buf [02:50:50]Sock 7.Close socket [02:50:50]Sock 7.Thread stoped [02:50:53]OFD Sender: No OFD packet to send [02:50:58]OFD Sender: No OFD packet to send [02:51:03]OFD Sender: No OFD packet to send [02:51:04]accept exits with 6 [02:51:04]New connection [02:51:04]New thread 3066608996 created [02:51:04]Thread 3066752356 joined [02:51:04]Waiting for new connection... [02:51:04] Sock 6.Parse request [02:51:04]Sock 6.Check first char [02:51:04]Sock 6.First char is OK [02:51:04]request: POST /json_proto HTTP/1.0 [02:51:04]Method: POST [02:51:04]URL: /json_proto [02:51:04]Method is POST - this is cgi request [02:51:04]url: /json_proto [02:51:04]query_string will be loaded in cgi processing [02:51:04]execute_cgi json_proto POST (null) [02:51:04]execute_cgi path=json_proto method=POST [02:51:04]POST find Content-Length [02:51:04]Host: 172.17.57.71:8080 [02:51:04]Content-Length: 798 [02:51:04]Content-Type: application/json [02:51:04] [02:51:04]POST finish read [02:51:04]Found Content-Length = 798 [02:51:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127604", "tax_sys" : 0, "items" : [ { "code": "50173372", "name": "\u0416\u0435\u0432 Orbit \u0434\u043B\u044F \u0434\u0435\u0442\u0435\u0439 Classic", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:51:04]execute_script... [02:51:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127604", "tax_sys" : 0, "items" : [ { "code": "50173372", "name": "\u0416\u0435\u0432 Orbit \u0434\u043B\u044F \u0434\u0435\u0442\u0435\u0439 Classic", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:51:04]POST & json_proto [02:51:04]process_json_proto [02:51:04]json parsed OK: [02:51:04]protocol is kg_v1.0 [02:51:04]action value=close_receipt [02:51:04]process_action close_receipt [02:51:04]cmd_close_receipt [02:51:04]MH_GetDate [02:51:04]Write to MH i2c: F0 00 00 12 09 0A [02:51:04]Write i2c OK [02:51:04]MH_I2C_Read... [02:51:04]Read from MH i2c: F0 [02:51:04]MH_I2C_Read... [02:51:04]Read from MH i2c: F0 09 00 [02:51:04]MH_I2C_Read... [02:51:04]Read from MH i2c: F0 09 00 12 09 00 19 9D E7 66 33 3A A4 66 8D [02:51:04]GetLastDocTimeStamp 1726455046 [02:51:04]current date 1726455065 [02:51:04]FM_GetShiftState [02:51:04]SAM_PROTO_GetShiftState [02:51:04]wFMCommunicate request_size=4 [02:51:04]MH_SAM_APDU [02:51:04]CAPDU: 80 13 01 00 [02:51:04]Write to MH i2c: E2 08 00 13 09 80 13 01 00 00 00 00 00 99 [02:51:04]Write i2c OK [02:51:04]MH_I2C_Read... [02:51:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:51:04]Read from MH i2c: E2 [02:51:04]MH_I2C_Read... [02:51:04]Read from MH i2c: E2 0E 00 [02:51:04]MH_I2C_Read... [02:51:04]Read from MH i2c: E2 0E 00 13 09 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 32 [02:51:04]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [02:51:04]wFMCommunicate OK [02:51:04]SAM_PROTO_GetShiftState done [02:51:04]FM_GetShiftState done [02:51:04]opened in 1726446278 [02:51:04]opened+sec_in_day 1726532678 [02:51:04]quantity*price = 4000 [02:51:04]sum+1 = 4001 [02:51:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 0.00 Безнал.: 40.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 23 16.09.2024 02:51 Смена: 508 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92720 ФПД: 39970527849228 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T025105&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92720&fm=39970527849228&tin=02508201610067®Number=0000000000091423&sum=4000 0 [02:51:05]StoreToDocumentArchive [02:51:05]shift 508 fd 92720 [02:51:05]save to /storage/0508/doc_00092720 [02:51:05]save last doc name /storage/0508/doc_00092720 to /storage/kkm_last_doc_name [02:51:05]save OK [02:51:05]Clear old archive folders... [02:51:05]ProcessDocumentItem done err = 0, tmpTLVsize=275 [02:51:05]tlvbuf is 0175A590 [02:51:05]SAM_PROTO_ClearQueue [02:51:05]wFMCommunicate request_size=4 [02:51:05]MH_SAM_APDU [02:51:05]CAPDU: 80 09 00 00 [02:51:05]Write to MH i2c: E2 08 00 20 09 80 09 00 00 00 00 00 00 9B [02:51:05]Write i2c OK [02:51:05]MH_I2C_Read... [02:51:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:51:05]Read from MH i2c: E2 [02:51:05]MH_I2C_Read... [02:51:05]Read from MH i2c: E2 03 00 [02:51:05]MH_I2C_Read... [02:51:05]Read from MH i2c: E2 03 00 20 09 00 90 00 9D [02:51:05]RAPDU: 90 00 [02:51:05]wFMCommunicate OK [02:51:05]SAM_PROTO_ClearQueue done [02:51:05]KKMCreateOFDPacket [02:51:05]OFDProtocolAddRootSTLVToBuf [02:51:05]FM_MakeSignedData [02:51:05]FM_MakeSignedData [02:51:05]SAM_PROTO_SignData [02:51:05]wFMCommunicate request_size=4 [02:51:05]MH_SAM_APDU [02:51:05]CAPDU: 80 0D 01 02 [02:51:05]Write to MH i2c: E2 08 00 21 09 80 0D 01 02 00 00 00 00 A3 [02:51:05]Write i2c OK [02:51:05]MH_I2C_Read... [02:51:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:51:05]Read from MH i2c: E2 [02:51:05]MH_I2C_Read... [02:51:05]Read from MH i2c: E2 03 00 [02:51:05]MH_I2C_Read... [02:51:05]Read from MH i2c: E2 03 00 21 09 00 90 00 9E [02:51:05]RAPDU: 90 00 [02:51:05]wFMCommunicate OK [02:51:05]wFMCommunicate request_size=255 [02:51:05]MH_SAM_APDU [02:51:05]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 19 9D E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 [02:51:05]Write to MH i2c: E2 02 01 22 09 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 19 9D E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 00 00 AA [02:51:05]Write i2c OK [02:51:05]MH_I2C_Read... [02:51:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:51:05]Read from MH i2c: E2 [02:51:05]MH_I2C_Read... [02:51:05]Read from MH i2c: E2 03 00 [02:51:05]MH_I2C_Read... [02:51:05]Read from MH i2c: E2 03 00 22 09 00 90 00 9F [02:51:05]RAPDU: 90 00 [02:51:05]wFMCommunicate OK [02:51:05]wFMCommunicate request_size=34 [02:51:05]MH_SAM_APDU [02:51:05]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 30 6A 01 00 35 04 06 00 24 5A 5D 1D 2B 0C [02:51:05]Write to MH i2c: E2 25 00 23 09 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 30 6A 01 00 35 04 06 00 24 5A 5D 1D 2B 0C 00 00 35 [02:51:05]Write i2c OK [02:51:05]MH_I2C_Read... [02:51:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:51:05]Read from MH i2c: E2 [02:51:05]MH_I2C_Read... [02:51:05]Read from MH i2c: E2 03 00 [02:51:05]MH_I2C_Read... [02:51:05]Read from MH i2c: E2 03 00 23 09 00 90 00 A0 [02:51:05]RAPDU: 90 00 [02:51:05]wFMCommunicate OK [02:51:05]wFMCommunicate request_size=4 [02:51:05]MH_SAM_APDU [02:51:05]CAPDU: 80 0D 03 02 [02:51:05]Write to MH i2c: E2 08 00 24 09 80 0D 03 02 00 00 00 00 A8 [02:51:05]Write i2c OK [02:51:05]MH_I2C_Read... [02:51:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:51:05]Read from MH i2c: E2 [02:51:05]MH_I2C_Read... [02:51:05]Read from MH i2c: E2 0B 00 [02:51:05]MH_I2C_Read... [02:51:05]Read from MH i2c: E2 0B 00 24 09 00 4A EA EF 53 A1 FD AF 8C 90 00 F8 [02:51:05]RAPDU: 4A EA EF 53 A1 FD AF 8C 90 00 [02:51:05]wFMCommunicate OK [02:51:05]SAM_PROTO_SignData done [02:51:05]FM_MakeSignedData done [02:51:05]CreateOFDProtocolMessage [02:51:05]wFMCommunicate request_size=4 [02:51:05]MH_SAM_APDU [02:51:05]CAPDU: 80 11 00 00 [02:51:05]Write to MH i2c: E2 08 00 25 09 80 11 00 00 00 00 00 00 A8 [02:51:05]Write i2c OK [02:51:05]MH_I2C_Read... [02:51:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:51:05]Read from MH i2c: E2 [02:51:05]MH_I2C_Read... [02:51:05]Read from MH i2c: E2 17 00 [02:51:05]MH_I2C_Read... [02:51:05]Read from MH i2c: E2 17 00 25 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 FF [02:51:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [02:51:05]wFMCommunicate OK [02:51:05]CreateOFDProtocolMessage done [02:51:05]OFDSenderStorePacket 92720 [02:51:05]StoreOFDPacket docnum=92720 [02:51:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 35 03 1F 01 12 0A 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 19 9D E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 30 6A 01 00 35 04 06 00 24 5A 5D 1D 2B 0C 4A EA EF 53 A1 FD AF 8C [02:51:05]CheckFolder [02:51:05]dirname=/storage/ofd_packets [02:51:05]CheckFolder done [02:51:05]ProducePacketName [02:51:05]name=ofd_packets/00092720 [02:51:05]NVStorageSaveData ofd_packets/00092720 [02:51:05]File name is /storage/ofd_packets/00092720 [02:51:05]Write 325 bytes [02:51:05]NVStorageSaveData done [02:51:05]OFDSenderStorePacket done [02:51:05]KKMCreateOFDPacket done [02:51:05]NVStorageSaveData kkm_last_timestamp [02:51:05]File name is /storage/kkm_last_timestamp [02:51:05]Write 4 bytes [02:51:05]NVStorageSaveData done [02:51:05]ExternCall_PrintAddStr [02:51:05]wPrintStart [02:51:05]Write to MH i2c: 01 00 00 26 09 2F [02:51:05]Write i2c OK [02:51:05]MH_I2C_Read... [02:51:05]Read from MH i2c: 01 [02:51:05]MH_I2C_Read... [02:51:05]Read from MH i2c: 01 07 00 [02:51:05]MH_I2C_Read... [02:51:05]Read from MH i2c: 01 07 00 26 09 00 00 00 00 00 FF 0F 44 [02:51:05]RasterBufferAndPrint [02:51:05]line Счет N : (3)127604 [02:51:05]line ИНН: 02508201610067 [02:51:05]line Контрольно-Кассовый Чек [02:51:05]line ПРОДАЖА [02:51:05]line Товар: 50173372 [02:51:05]line Жев Orbit для детей Classic [02:51:05]line 1.000 * 40.00 [02:51:05]line = 40.00 [02:51:05]line НДС 12% НСП 1% [02:51:05]line > о реализуемом товаре [02:51:05]line ИТОГО: 40.00 [02:51:05]line НСП 1% : 0.35 [02:51:05]line НДС 12% : 4.25 [02:51:05]line Наличными: 0.00 [02:51:05]line Безнал.: 40.00 [02:51:05]line Место: АЗС № 5 "Партнер Нефть" [02:51:05]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [02:51:05]line СНО: Общий режим [02:51:05]line Чек 23 16.09.2024 02:51 [02:51:05]line Смена: 508 ФФД: 1.0 [02:51:05]line ЗНМ: 03000000022 [02:51:05]line РНМ: 0000000000091423 [02:51:05]line Версия ККМ: 001 [02:51:05]line Платежная система: О! деньги [02:51:05]line ФМ: 0000000000874692 [02:51:05]line ФД: 92720 [02:51:05]line ФПД: 39970527849228 [02:51:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240916T025105&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92720&fm=39970527849228&tin=02508201610067®Number=0000000000091423&sum=4000 [02:51:06]line 0 [02:51:06]OFD Sender: Processing packet 92720 [packets to send 63, broken 62] [02:51:06]ProducePacketName [02:51:06]name=ofd_packets/00092720 [02:51:06]OFD Sender: To server: pG, [02:51:06]CommunicateWithHost lk.salyk.kg:30040 [02:51:06]ConnectInit lk.salyk.kg [02:51:06]written 0, free lines is 4095 [02:51:06]Connected sock=8 [02:51:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 35 03 1F 01 12 0A 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 19 9D E7 66 0E 04 04 00 FC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 30 6A 01 00 35 04 06 00 24 5A 5D 1D 2B 0C 4A EA EF 53 A1 FD AF 8C [02:51:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 61 4C 47 00 EA 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 30 6A 01 00 F4 03 04 00 8F 45 E7 66 B6 04 01 00 00 87 E9 20 36 39 7F D2 15 [02:51:06]CommunicateWithHost err = 0 [02:51:06]CheckOFDResponse [02:51:06]1017 (14) - 77093643461234 [02:51:06]1041 (16) - 0000000000874692 [02:51:06]1040 (4) - 92720 [02:51:06]1012 (4) - 15.09.2024 20:37 [02:51:06]1206 (1) - 0 [02:51:06]OFD Sender: Remove packet 92720 [02:51:06]ProducePacketName [02:51:06]name=ofd_packets/00092720 [02:51:06]NVStorageDeleteData [02:51:06]Write to MH i2c: 01 00 00 50 09 59 [02:51:06]Write i2c OK [02:51:06]MH_I2C_Read... [02:51:06]Read from MH i2c: 01 [02:51:06]MH_I2C_Read... [02:51:06]Read from MH i2c: 01 07 00 [02:51:06]MH_I2C_Read... [02:51:06]Read from MH i2c: 01 07 00 50 09 00 00 00 00 00 F4 0C 60 [02:51:06]RasterBufferAndPrint [02:51:06]line [02:51:06]line [02:51:06]line [02:51:06]line [02:51:06]line [02:51:06]written 0, free lines is 3324 [02:51:06]MH_Cut [02:51:06]Write to MH i2c: D1 01 00 57 09 01 32 [02:51:06]Write i2c OK [02:51:06]MH_I2C_Read... [02:51:06]Read from MH i2c: D1 [02:51:06]MH_I2C_Read... [02:51:06]Read from MH i2c: D1 01 00 [02:51:06]MH_I2C_Read... [02:51:06]Read from MH i2c: D1 01 00 57 09 00 31 [02:51:06]Write to MH i2c: 01 00 00 58 09 61 [02:51:06]Write i2c OK [02:51:06]MH_I2C_Read... [02:51:07]OFD Sender: No OFD packet to send [02:51:07]*** Cut start [02:51:07]*** Purtial cut [02:51:07]*** Stage 1: CUTSNS_PIN = 1 [02:51:09]Read from MH i2c: 01 [02:51:09]MH_I2C_Read... [02:51:09]*** Stop cut motor [02:51:09]*** Cut end [02:51:09]Read from MH i2c: 01 07 00 [02:51:09]MH_I2C_Read... [02:51:09]Read from MH i2c: 01 07 00 58 09 00 00 00 00 00 FF 0F 76 [02:51:09]process_action close_receipt done [02:51:09]requested_data is exist [02:51:09]produce_requested_data [02:51:09]requested_item fm.sn is exist - process it [02:51:09]wFMCommunicate request_size=4 [02:51:09]MH_SAM_APDU [02:51:09]CAPDU: 80 11 00 00 [02:51:09]Write to MH i2c: E2 08 00 59 09 80 11 00 00 00 00 00 00 DC [02:51:09]Write i2c OK [02:51:09]MH_I2C_Read... [02:51:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:51:09]Read from MH i2c: E2 [02:51:09]MH_I2C_Read... [02:51:09]Read from MH i2c: E2 17 00 [02:51:09]MH_I2C_Read... [02:51:09]Read from MH i2c: E2 17 00 59 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 33 [02:51:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [02:51:09]wFMCommunicate OK [02:51:09]requested_item fd.num is exist - process it [02:51:09]SAM_PROTO_GetFieldsCounters [02:51:09]wFMCommunicate request_size=4 [02:51:09]MH_SAM_APDU [02:51:09]CAPDU: 80 13 00 00 [02:51:09]Write to MH i2c: E2 08 00 5A 09 80 13 00 00 00 00 00 00 DF [02:51:09]Write i2c OK [02:51:09]MH_I2C_Read... [02:51:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:51:09]Read from MH i2c: E2 [02:51:09]MH_I2C_Read... [02:51:09]Read from MH i2c: E2 62 00 [02:51:09]MH_I2C_Read... [02:51:09]Read from MH i2c: E2 62 00 5A 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 30 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [02:51:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 30 6A 01 00 0E 04 04 00 FC 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:51:09]wFMCommunicate OK [02:51:09]SAM_PROTO_GetFieldsCounters done [02:51:09]requested_item shift.num is exist - process it [02:51:09]requested_item shift.opened is exist - process it [02:51:09]req_shift_opened [02:51:09]FM_GetShiftState [02:51:09]SAM_PROTO_GetShiftState [02:51:09]wFMCommunicate request_size=4 [02:51:09]MH_SAM_APDU [02:51:09]CAPDU: 80 13 01 00 [02:51:09]Write to MH i2c: E2 08 00 5B 09 80 13 01 00 00 00 00 00 E1 [02:51:09]Write i2c OK [02:51:09]MH_I2C_Read... [02:51:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:51:09]Read from MH i2c: E2 [02:51:09]MH_I2C_Read... [02:51:09]Read from MH i2c: E2 0E 00 [02:51:09]MH_I2C_Read... [02:51:09]Read from MH i2c: E2 0E 00 5B 09 00 09 00 01 C6 7A E7 66 00 00 00 00 90 00 7A [02:51:09]RAPDU: 09 00 01 C6 7A E7 66 00 00 00 00 90 00 [02:51:09]wFMCommunicate OK [02:51:09]SAM_PROTO_GetShiftState done [02:51:09]FM_GetShiftState done [02:51:09]req_shift_opened done [02:51:09]requested_item shift.open_date is exist - process it [02:51:09]req_shift_open_date [02:51:09]req_shift_open_date done [02:51:09]produce_requested_data done [02:51:09]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92720,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278} [02:51:09]process_action_free close_receipt [02:51:09]json_value_free [02:51:09]json_value_free done [02:51:09]process_json_proto returns [02:51:09]Send response to host [02:51:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92720,"shift.num":508,"shift.opened":1,"shift.open_date":1726446278}}} [02:51:09]free response buf [02:51:09]execute_script done [02:51:09]execute_script returns [02:51:09]free content buf [02:51:09]Sock 6.Close socket [02:51:09]Sock 6.Thread stoped [02:51:12]OFD Sender: No OFD packet to send [02:51:17]OFD Sender: No OFD packet to send [02:51:22]OFD Sender: No OFD packet to send [02:51:27]OFD Sender: No OFD packet to send [02:51:32]OFD Sender: No OFD packet to send [02:51:37]OFD Sender: No OFD packet to send [02:51:42]OFD Sender: No OFD packet to send [02:51:47]OFD Sender: No OFD packet to send [02:51:52]OFD Sender: No OFD packet to send [02:51:57]OFD Sender: No OFD packet to send [02:52:02]OFD Sender: No OFD packet to send [02:52:07]OFD Sender: No OFD packet to send [02:52:12]OFD Sender: No OFD packet to send [02:52:17]OFD Sender: No OFD packet to send [02:52:22]OFD Sender: No OFD packet to send [02:52:27]OFD Sender: No OFD packet to send [02:52:32]OFD Sender: No OFD packet to send [02:52:37]OFD Sender: No OFD packet to send [02:52:42]OFD Sender: No OFD packet to send [02:52:47]OFD Sender: No OFD packet to send [02:52:52]OFD Sender: No OFD packet to send [02:52:57]OFD Sender: No OFD packet to send [02:53:02]OFD Sender: No OFD packet to send [02:53:07]OFD Sender: No OFD packet to send [02:53:12]OFD Sender: No OFD packet to send [02:53:17]OFD Sender: No OFD packet to send [02:53:22]OFD Sender: No OFD packet to send [02:53:27]OFD Sender: No OFD packet to send [02:53:32]OFD Sender: No OFD packet to send [02:53:37]OFD Sender: No OFD packet to send [02:53:42]OFD Sender: No OFD packet to send [02:53:47]OFD Sender: No OFD packet to send [02:53:52]OFD Sender: No OFD packet to send [02:53:57]OFD Sender: No OFD packet to send [02:54:02]OFD Sender: No OFD packet to send [02:54:07]OFD Sender: No OFD packet to send [02:54:12]OFD Sender: No OFD packet to send [02:54:17]OFD Sender: No OFD packet to send [02:54:22]OFD Sender: No OFD packet to send [02:54:27]OFD Sender: No OFD packet to send [02:54:32]OFD Sender: No OFD packet to send [02:54:37]OFD Sender: No OFD packet to send [02:54:42]OFD Sender: No OFD packet to send [02:54:47]OFD Sender: No OFD packet to send [02:54:52]OFD Sender: No OFD packet to send [02:54:57]OFD Sender: No OFD packet to send [02:55:02]OFD Sender: No OFD packet to send [02:55:07]OFD Sender: No OFD packet to send [02:55:12]OFD Sender: No OFD packet to send [02:55:17]OFD Sender: No OFD packet to send [02:55:22]OFD Sender: No OFD packet to send [02:55:27]OFD Sender: No OFD packet to send [02:55:32]OFD Sender: No OFD packet to send [02:55:37]OFD Sender: No OFD packet to send [02:55:42]OFD Sender: No OFD packet to send [02:55:47]OFD Sender: No OFD packet to send [02:55:52]OFD Sender: No OFD packet to send [02:55:57]OFD Sender: No OFD packet to send [02:56:02]OFD Sender: No OFD packet to send [02:56:07]OFD Sender: No OFD packet to send [02:56:12]OFD Sender: No OFD packet to send [02:56:17]OFD Sender: No OFD packet to send [02:56:22]OFD Sender: No OFD packet to send [02:56:27]OFD Sender: No OFD packet to send [02:56:32]OFD Sender: No OFD packet to send [02:56:37]OFD Sender: No OFD packet to send [02:56:42]OFD Sender: No OFD packet to send [02:56:47]OFD Sender: No OFD packet to send [02:56:52]OFD Sender: No OFD packet to send [02:56:57]OFD Sender: No OFD packet to send [02:57:02]OFD Sender: No OFD packet to send [02:57:07]OFD Sender: No OFD packet to send [02:57:12]OFD Sender: No OFD packet to send [02:57:17]OFD Sender: No OFD packet to send [02:57:22]OFD Sender: No OFD packet to send [02:57:27]OFD Sender: No OFD packet to send [02:57:32]OFD Sender: No OFD packet to send [02:57:37]OFD Sender: No OFD packet to send [02:57:42]OFD Sender: No OFD packet to send [02:57:47]OFD Sender: No OFD packet to send [02:57:52]OFD Sender: No OFD packet to send [02:57:57]OFD Sender: No OFD packet to send [02:58:02]OFD Sender: No OFD packet to send [02:58:07]OFD Sender: No OFD packet to send [02:58:12]OFD Sender: No OFD packet to send [02:58:17]OFD Sender: No OFD packet to send [02:58:22]OFD Sender: No OFD packet to send [02:58:27]OFD Sender: No OFD packet to send [02:58:32]OFD Sender: No OFD packet to send [02:58:37]OFD Sender: No OFD packet to send [02:58:42]OFD Sender: No OFD packet to send [02:58:47]OFD Sender: No OFD packet to send [02:58:52]OFD Sender: No OFD packet to send [02:58:57]OFD Sender: No OFD packet to send [02:59:02]OFD Sender: No OFD packet to send [02:59:07]OFD Sender: No OFD packet to send [02:59:12]OFD Sender: No OFD packet to send [02:59:17]OFD Sender: No OFD packet to send [02:59:22]OFD Sender: No OFD packet to send [02:59:27]OFD Sender: No OFD packet to send [02:59:32]OFD Sender: No OFD packet to send [02:59:37]OFD Sender: No OFD packet to send [02:59:42]OFD Sender: No OFD packet to send [02:59:47]OFD Sender: No OFD packet to send [02:59:52]OFD Sender: No OFD packet to send [02:59:57]OFD Sender: No OFD packet to send [03:00:02]OFD Sender: No OFD packet to send [03:00:07]OFD Sender: No OFD packet to send [03:00:12]OFD Sender: No OFD packet to send [03:00:17]OFD Sender: No OFD packet to send [03:00:22]OFD Sender: No OFD packet to send [03:00:27]OFD Sender: No OFD packet to send [03:00:32]OFD Sender: No OFD packet to send [03:00:37]OFD Sender: No OFD packet to send [03:00:42]OFD Sender: No OFD packet to send [03:00:47]OFD Sender: No OFD packet to send [03:00:52]OFD Sender: No OFD packet to send [03:00:57]OFD Sender: No OFD packet to send [03:01:02]OFD Sender: No OFD packet to send [03:01:07]OFD Sender: No OFD packet to send [03:01:12]OFD Sender: No OFD packet to send [03:01:17]OFD Sender: No OFD packet to send [03:01:22]OFD Sender: No OFD packet to send [03:01:27]OFD Sender: No OFD packet to send [03:01:32]OFD Sender: No OFD packet to send [03:01:37]OFD Sender: No OFD packet to send [03:01:42]OFD Sender: No OFD packet to send [03:01:47]OFD Sender: No OFD packet to send [03:01:52]OFD Sender: No OFD packet to send [03:01:57]OFD Sender: No OFD packet to send [03:02:02]OFD Sender: No OFD packet to send [03:02:07]OFD Sender: No OFD packet to send [03:02:12]OFD Sender: No OFD packet to send [03:02:17]OFD Sender: No OFD packet to send [03:02:22]OFD Sender: No OFD packet to send [03:02:27]OFD Sender: No OFD packet to send [03:02:32]OFD Sender: No OFD packet to send [03:02:37]OFD Sender: No OFD packet to send [03:02:42]OFD Sender: No OFD packet to send [03:02:47]OFD Sender: No OFD packet to send [03:02:52]OFD Sender: No OFD packet to send [03:02:57]OFD Sender: No OFD packet to send [03:03:02]OFD Sender: No OFD packet to send [03:03:07]OFD Sender: No OFD packet to send [03:03:12]OFD Sender: No OFD packet to send [03:03:17]OFD Sender: No OFD packet to send [03:03:22]OFD Sender: No OFD packet to send [03:03:27]OFD Sender: No OFD packet to send [03:03:32]OFD Sender: No OFD packet to send [03:03:37]OFD Sender: No OFD packet to send [03:03:42]OFD Sender: No OFD packet to send [03:03:47]OFD Sender: No OFD packet to send [03:03:52]OFD Sender: No OFD packet to send [03:03:57]OFD Sender: No OFD packet to send [03:04:02]OFD Sender: No OFD packet to send [03:04:07]OFD Sender: No OFD packet to send [03:04:12]OFD Sender: No OFD packet to send [03:04:17]OFD Sender: No OFD packet to send [03:04:22]OFD Sender: No OFD packet to send [03:04:27]OFD Sender: No OFD packet to send [03:04:32]OFD Sender: No OFD packet to send [03:04:37]OFD Sender: No OFD packet to send [03:04:42]OFD Sender: No OFD packet to send [03:04:47]OFD Sender: No OFD packet to send [03:04:52]OFD Sender: No OFD packet to send [03:04:57]OFD Sender: No OFD packet to send [03:05:02]OFD Sender: No OFD packet to send [03:05:07]OFD Sender: No OFD packet to send [03:05:12]OFD Sender: No OFD packet to send [03:05:17]OFD Sender: No OFD packet to send [03:05:22]OFD Sender: No OFD packet to send [03:05:27]OFD Sender: No OFD packet to send [03:05:32]OFD Sender: No OFD packet to send [03:05:37]OFD Sender: No OFD packet to send [03:05:42]OFD Sender: No OFD packet to send [03:05:47]OFD Sender: No OFD packet to send [03:05:52]OFD Sender: No OFD packet to send [03:05:57]OFD Sender: No OFD packet to send [03:06:02]OFD Sender: No OFD packet to send [03:06:07]OFD Sender: No OFD packet to send [03:06:12]OFD Sender: No OFD packet to send [03:06:17]OFD Sender: No OFD packet to send [03:06:22]OFD Sender: No OFD packet to send [03:06:27]OFD Sender: No OFD packet to send [03:06:32]OFD Sender: No OFD packet to send [03:06:37]OFD Sender: No OFD packet to send [03:06:42]OFD Sender: No OFD packet to send [03:06:47]OFD Sender: No OFD packet to send [03:06:52]OFD Sender: No OFD packet to send [03:06:57]OFD Sender: No OFD packet to send [03:07:02]OFD Sender: No OFD packet to send [03:07:07]OFD Sender: No OFD packet to send [03:07:12]OFD Sender: No OFD packet to send [03:07:17]OFD Sender: No OFD packet to send [03:07:22]OFD Sender: No OFD packet to send [03:07:27]OFD Sender: No OFD packet to send [03:07:32]OFD Sender: No OFD packet to send [03:07:37]OFD Sender: No OFD packet to send [03:07:42]OFD Sender: No OFD packet to send [03:07:47]OFD Sender: No OFD packet to send [03:07:52]OFD Sender: No OFD packet to send [03:07:57]OFD Sender: No OFD packet to send [03:08:03]OFD Sender: No OFD packet to send [03:08:08]OFD Sender: No OFD packet to send [03:08:13]OFD Sender: No OFD packet to send [03:08:18]OFD Sender: No OFD packet to send [03:08:23]OFD Sender: No OFD packet to send [03:08:28]OFD Sender: No OFD packet to send [03:08:33]OFD Sender: No OFD packet to send [03:08:38]OFD Sender: No OFD packet to send [03:08:43]OFD Sender: No OFD packet to send [03:08:48]OFD Sender: No OFD packet to send [03:08:53]OFD Sender: No OFD packet to send [03:08:58]OFD Sender: No OFD packet to send [03:09:03]OFD Sender: No OFD packet to send [03:09:08]OFD Sender: No OFD packet to send [03:09:13]OFD Sender: No OFD packet to send [03:09:18]OFD Sender: No OFD packet to send [03:09:23]OFD Sender: No OFD packet to send [03:09:28]OFD Sender: No OFD packet to send [03:09:33]OFD Sender: No OFD packet to send [03:09:38]OFD Sender: No OFD packet to send [03:09:43]OFD Sender: No OFD packet to send [03:09:48]OFD Sender: No OFD packet to send [03:09:53]OFD Sender: No OFD packet to send [03:09:58]OFD Sender: No OFD packet to send [03:10:03]OFD Sender: No OFD packet to send [03:10:08]OFD Sender: No OFD packet to send [03:10:13]OFD Sender: No OFD packet to send [03:10:18]OFD Sender: No OFD packet to send [03:10:23]OFD Sender: No OFD packet to send [03:10:28]OFD Sender: No OFD packet to send [03:10:33]OFD Sender: No OFD packet to send [03:10:38]OFD Sender: No OFD packet to send [03:10:43]OFD Sender: No OFD packet to send [03:10:48]OFD Sender: No OFD packet to send [03:10:53]OFD Sender: No OFD packet to send [03:10:58]OFD Sender: No OFD packet to send [03:11:03]OFD Sender: No OFD packet to send [03:11:08]OFD Sender: No OFD packet to send [03:11:13]OFD Sender: No OFD packet to send [03:11:18]OFD Sender: No OFD packet to send [03:11:23]OFD Sender: No OFD packet to send [03:11:28]OFD Sender: No OFD packet to send [03:11:33]OFD Sender: No OFD packet to send [03:11:38]OFD Sender: No OFD packet to send [03:11:43]OFD Sender: No OFD packet to send [03:11:48]OFD Sender: No OFD packet to send [03:11:53]OFD Sender: No OFD packet to send [03:11:58]OFD Sender: No OFD packet to send [03:12:03]OFD Sender: No OFD packet to send [03:12:08]OFD Sender: No OFD packet to send [03:12:13]OFD Sender: No OFD packet to send [03:12:18]OFD Sender: No OFD packet to send [03:12:23]OFD Sender: No OFD packet to send [03:12:28]OFD Sender: No OFD packet to send [03:12:33]OFD Sender: No OFD packet to send [03:12:38]OFD Sender: No OFD packet to send [03:12:43]OFD Sender: No OFD packet to send [03:12:48]OFD Sender: No OFD packet to send [03:12:53]OFD Sender: No OFD packet to send [03:12:58]OFD Sender: No OFD packet to send [03:13:03]OFD Sender: No OFD packet to send [03:13:08]OFD Sender: No OFD packet to send [03:13:13]OFD Sender: No OFD packet to send [03:13:18]OFD Sender: No OFD packet to send [03:13:23]OFD Sender: No OFD packet to send [03:13:28]OFD Sender: No OFD packet to send